diff options
author | Richard Hughes <richard@hughsie.com> | 2011-02-21 10:05:22 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-02-21 12:57:22 +0000 |
commit | c9a7f998180531135725b98389192304aa406584 (patch) | |
tree | 4abcc22c0145902b3760505060314c85f50d15a4 /panels/network/panel-common.h | |
parent | 21683ab85e9ce065a0f50efdd0e13d8a326cc1b0 (diff) | |
download | gnome-control-center-c9a7f998180531135725b98389192304aa406584.tar.gz |
network: port to the rm-userset branch of NetworkManager
Diffstat (limited to 'panels/network/panel-common.h')
-rw-r--r-- | panels/network/panel-common.h | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/panels/network/panel-common.h b/panels/network/panel-common.h index c76988754..c50f6b38a 100644 --- a/panels/network/panel-common.h +++ b/panels/network/panel-common.h @@ -23,45 +23,15 @@ #define PANEL_COMMON_H #include <glib-object.h> +#include <NetworkManager.h> G_BEGIN_DECLS -typedef enum { - NM_DEVICE_TYPE_UNKNOWN, - NM_DEVICE_TYPE_ETHERNET, - NM_DEVICE_TYPE_WIFI, - NM_DEVICE_TYPE_GSM, - NM_DEVICE_TYPE_CDMA, - NM_DEVICE_TYPE_BLUETOOTH, - NM_DEVICE_TYPE_MESH -} NMDeviceType; - -typedef enum { - NM_DEVICE_STATE_UNKNOWN, - NM_DEVICE_STATE_UNMANAGED, - NM_DEVICE_STATE_UNAVAILABLE, - NM_DEVICE_STATE_DISCONNECTED, - NM_DEVICE_STATE_PREPARE, - NM_DEVICE_STATE_CONFIG, - NM_DEVICE_STATE_NEED_AUTH, - NM_DEVICE_STATE_IP_CONFIG, - NM_DEVICE_STATE_ACTIVATED, - NM_DEVICE_STATE_FAILED -} NMDeviceState; - -typedef enum { - NM_802_11_MODE_UNKNOWN = 0, - NM_802_11_MODE_ADHOC, - NM_802_11_MODE_INFRA -} NM80211Mode; - -const gchar *panel_device_type_to_icon_name (guint type); -const gchar *panel_device_type_to_localized_string (guint type); -const gchar *panel_device_type_to_sortable_string (guint type); -const gchar *panel_ap_mode_to_localized_string (guint mode); -const gchar *panel_device_state_to_localized_string (guint type); -gchar *panel_ipv4_to_string (GVariant *variant); -gchar *panel_ipv6_to_string (GVariant *variant); +const gchar *panel_device_type_to_icon_name (NMDeviceType type); +const gchar *panel_device_type_to_localized_string (NMDeviceType type); +const gchar *panel_device_type_to_sortable_string (NMDeviceType type); +const gchar *panel_ap_mode_to_localized_string (NM80211Mode mode); +const gchar *panel_device_state_to_localized_string (NMDeviceState type); G_END_DECLS |