summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2008-04-15 20:39:34 +0000
committerDan Williams <dcbw@redhat.com>2008-04-15 20:39:34 +0000
commit1e1c99afba2b9a985725fd85626ecdd52eda15d2 (patch)
treec476a3ba9e883ebeed12c2632ce4393ae21d360e /include
parent95c44ecc1fd9779e795eacb347bb10ceb9c33ab8 (diff)
downloadNetworkManager-1e1c99afba2b9a985725fd85626ecdd52eda15d2.tar.gz
2008-04-15 Dan Williams <dcbw@redhat.com>
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
Diffstat (limited to 'include')
-rw-r--r--include/NetworkManager.h10
1 files changed, 10 insertions, 0 deletions
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