mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
wifi-util: introduce nl80211_iftype_from_string()
This commit is contained in:
parent
edb69db2b0
commit
b4d55e8364
@ -153,7 +153,7 @@ static const char * const nl80211_iftype_table[NUM_NL80211_IFTYPES] = {
|
||||
[NL80211_IFTYPE_NAN] = "nan",
|
||||
};
|
||||
|
||||
DEFINE_STRING_TABLE_LOOKUP_TO_STRING(nl80211_iftype, enum nl80211_iftype);
|
||||
DEFINE_STRING_TABLE_LOOKUP(nl80211_iftype, enum nl80211_iftype);
|
||||
|
||||
static const char * const nl80211_cmd_table[__NL80211_CMD_AFTER_LAST] = {
|
||||
[NL80211_CMD_GET_WIPHY] = "get_wiphy",
|
||||
|
@ -12,4 +12,5 @@ int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_i
|
||||
int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
|
||||
|
||||
const char *nl80211_iftype_to_string(enum nl80211_iftype iftype) _const_;
|
||||
enum nl80211_iftype nl80211_iftype_from_string(const char *s) _pure_;
|
||||
const char *nl80211_cmd_to_string(int cmd) _const_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user