From 1e1c99afba2b9a985725fd85626ecdd52eda15d2 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 15 Apr 2008 20:39:34 +0000 Subject: 2008-04-15 Dan Williams Remove exposure of wireless-tools mode types in the API. * include/NetworkManager.h - Define NM80211Mode enum * introspection/generic-types.xml - Describe NM_802_11_MODE enum - Remove IW_MODE_* enum * introspection/nm-access-point.xml libnm-glib/nm-access-point.c libnm-glib/nm-access-point.h - 'mode' is now of type NM80211Mode, a DBUS_TYPE_UINT * introspection/nm-device-802-11-wireless.xml libnm-glib/nm-device-802-11-wireless.c libnm-glib/nm-device-802-11-wireless.h - 'mode' is now of type NM80211Mode, a DBUS_TYPE_UINT * libnm-util/nm-setting-wireless.c src/NetworkManagerAP.c src/NetworkManagerAP.h src/nm-device-802-11-wireless.c src/nm-device-802-11-wireless.h test/nm-tool.c - Use NM80211Mode not IW_MODE_* git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3562 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- include/NetworkManager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/NetworkManager.h b/include/NetworkManager.h index 15bdfffd3e..3ed20d1b9f 100644 --- a/include/NetworkManager.h +++ b/include/NetworkManager.h @@ -121,6 +121,16 @@ typedef enum NMDeviceType #define NM_802_11_AP_SEC_KEY_MGMT_PSK 0x00000100 #define NM_802_11_AP_SEC_KEY_MGMT_802_1X 0x00000200 +/* + * 802.11 AP and Station modes + * + */ +typedef enum { + NM_802_11_MODE_UNKNOWN = 0, + NM_802_11_MODE_ADHOC, + NM_802_11_MODE_INFRA, +} NM80211Mode; + /* * Device states -- cgit v1.2.1