nl80211rs

Crates.ionl80211rs
lib.rsnl80211rs
version0.1.0
sourcesrc
created_at2015-06-09 22:41:58.905651
updated_at2015-12-11 23:54:29.779751
descriptionHand conversion of netlink 802.11 interface public header file (nl80211.h) into a module
homepage
repositoryhttp://www.github.com/carrotsrc/nl80211rs
max_upload_size
id2348
size20,230
Admins (github:tinkerforge:admins)

documentation

README

nl80211rs

This is a hand conversion of the 802.11 netlink interface public header file into a rust module. The style has been changed to conventional CamelCase and the prefix to the enum and consts values is removed; reasoning being that the prefix is redundant given crate and module namespaces.

crate::enum::CamelCaseUid

eg.

nl80211_commands::NL80211_CMD_START_AP

Becomes

nl80211rs::Commands::StartAp

The constants are held in their own module nl80211rs::constants. Constants are almost identical to the prepocessor directives, except they are not prefixed with NL80211_.

Progress

  • Included all enums and structures in the header. They are near 1:1 with a few exceptions; one being aliased commands in nl80211::Commands, which have prefix Alias, where their real values can be resolved in nl80211::alias::Commands. It is a bit of a short term hack.

  • Included a range of constants, but not all define directives have been included.

  • Comments are sparse-to-non-existant.

Commit count: 0

cargo fmt