Crates.io | nl80211rs |
lib.rs | nl80211rs |
version | 0.1.0 |
source | src |
created_at | 2015-06-09 22:41:58.905651 |
updated_at | 2015-12-11 23:54:29.779751 |
description | Hand conversion of netlink 802.11 interface public header file (nl80211.h) into a module |
homepage | |
repository | http://www.github.com/carrotsrc/nl80211rs |
max_upload_size | |
id | 2348 |
size | 20,230 |
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_.
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.