diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile.am | 1 | ||||
| -rw-r--r-- | include/Makefile.in | 10 | ||||
| -rw-r--r-- | include/NetworkManager.h | 54 | ||||
| -rw-r--r-- | include/NetworkManagerVPN.h | 3 | ||||
| -rw-r--r-- | include/nm-glib-compat.h | 15 | ||||
| -rw-r--r-- | include/nm-version.h | 2 | ||||
| -rw-r--r-- | include/wireless-helper.h | 32 |
7 files changed, 70 insertions, 47 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index b5b44d82..a058bff3 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,7 +1,6 @@ EXTRA_DIST = \ NetworkManager.h \ NetworkManagerVPN.h \ - wireless-helper.h \ nm-dbus-glib-types.h \ nm-glib-compat.h \ nm-test-helpers.h \ diff --git a/include/Makefile.in b/include/Makefile.in index e10ca22c..8b60268a 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -134,6 +134,8 @@ GIO_LIBS = @GIO_LIBS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ +GLIB_MAKEFILE = @GLIB_MAKEFILE@ +GLIB_MKENUMS = @GLIB_MKENUMS@ GMODULE_CFLAGS = @GMODULE_CFLAGS@ GMODULE_LIBS = @GMODULE_LIBS@ GMSGFMT = @GMSGFMT@ @@ -188,11 +190,15 @@ LIBNL2_LIBS = @LIBNL2_LIBS@ LIBNL3_CFLAGS = @LIBNL3_CFLAGS@ LIBNL3_LIBS = @LIBNL3_LIBS@ LIBNL_CFLAGS = @LIBNL_CFLAGS@ +LIBNL_GENL3_CFLAGS = @LIBNL_GENL3_CFLAGS@ +LIBNL_GENL3_LIBS = @LIBNL_GENL3_LIBS@ LIBNL_LIBS = @LIBNL_LIBS@ LIBNL_ROUTE3_CFLAGS = @LIBNL_ROUTE3_CFLAGS@ LIBNL_ROUTE3_LIBS = @LIBNL_ROUTE3_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ +LIBSOUP_CFLAGS = @LIBSOUP_CFLAGS@ +LIBSOUP_LIBS = @LIBSOUP_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ @@ -203,6 +209,7 @@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ +MOC = @MOC@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ @@ -242,6 +249,8 @@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ +SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@ +SYSTEMD_LIBS = @SYSTEMD_LIBS@ SYSTEM_CA_PATH = @SYSTEM_CA_PATH@ UDEV_BASE_DIR = @UDEV_BASE_DIR@ USE_NLS = @USE_NLS@ @@ -308,7 +317,6 @@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ NetworkManager.h \ NetworkManagerVPN.h \ - wireless-helper.h \ nm-dbus-glib-types.h \ nm-glib-compat.h \ nm-test-helpers.h \ diff --git a/include/NetworkManager.h b/include/NetworkManager.h index 3522dd25..0aa31aef 100644 --- a/include/NetworkManager.h +++ b/include/NetworkManager.h @@ -17,7 +17,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * (C) Copyright 2004 - 2011 Red Hat, Inc. + * (C) Copyright 2004 - 2012 Red Hat, Inc. */ #ifndef NETWORK_MANAGER_H @@ -36,6 +36,7 @@ #define NM_DBUS_INTERFACE_DEVICE_WIRED NM_DBUS_INTERFACE_DEVICE ".Wired" #define NM_DBUS_INTERFACE_DEVICE_WIRELESS NM_DBUS_INTERFACE_DEVICE ".Wireless" #define NM_DBUS_INTERFACE_DEVICE_BLUETOOTH NM_DBUS_INTERFACE_DEVICE ".Bluetooth" +#define NM_DBUS_INTERFACE_DEVICE_OLPC_MESH NM_DBUS_INTERFACE_DEVICE ".OlpcMesh" #define NM_DBUS_PATH_ACCESS_POINT NM_DBUS_PATH "/AccessPoint" #define NM_DBUS_INTERFACE_ACCESS_POINT NM_DBUS_INTERFACE ".AccessPoint" #define NM_DBUS_INTERFACE_DEVICE_MODEM NM_DBUS_INTERFACE_DEVICE ".Modem" @@ -47,6 +48,9 @@ #define NM_DBUS_INTERFACE_DHCP4_CONFIG NM_DBUS_INTERFACE ".DHCP4Config" #define NM_DBUS_INTERFACE_IP6_CONFIG NM_DBUS_INTERFACE ".IP6Config" #define NM_DBUS_INTERFACE_DHCP6_CONFIG NM_DBUS_INTERFACE ".DHCP6Config" +#define NM_DBUS_INTERFACE_DEVICE_INFINIBAND NM_DBUS_INTERFACE_DEVICE ".Infiniband" +#define NM_DBUS_INTERFACE_DEVICE_BOND NM_DBUS_INTERFACE_DEVICE ".Bond" +#define NM_DBUS_INTERFACE_DEVICE_VLAN NM_DBUS_INTERFACE_DEVICE ".Vlan" #define NM_DBUS_IFACE_SETTINGS "org.freedesktop.NetworkManager.Settings" @@ -101,19 +105,25 @@ typedef enum { * @NM_DEVICE_TYPE_WIMAX: an 802.16e Mobile WiMAX broadband device * @NM_DEVICE_TYPE_MODEM: a modem supporting analog telephone, CDMA/EVDO, * GSM/UMTS, or LTE network access protocols + * @NM_DEVICE_TYPE_INFINIBAND: an IP-over-InfiniBand device + * @NM_DEVICE_TYPE_BOND: a bond master interface * - * #NMState values indicate the current overall networking state. + * #NMDeviceType values indicate the type of hardware represented by + * an #NMDevice. **/ typedef enum { - NM_DEVICE_TYPE_UNKNOWN = 0, - NM_DEVICE_TYPE_ETHERNET = 1, - NM_DEVICE_TYPE_WIFI = 2, - NM_DEVICE_TYPE_UNUSED1 = 3, - NM_DEVICE_TYPE_UNUSED2 = 4, - NM_DEVICE_TYPE_BT = 5, /* Bluetooth */ - NM_DEVICE_TYPE_OLPC_MESH = 6, - NM_DEVICE_TYPE_WIMAX = 7, - NM_DEVICE_TYPE_MODEM = 8, + NM_DEVICE_TYPE_UNKNOWN = 0, + NM_DEVICE_TYPE_ETHERNET = 1, + NM_DEVICE_TYPE_WIFI = 2, + NM_DEVICE_TYPE_UNUSED1 = 3, + NM_DEVICE_TYPE_UNUSED2 = 4, + NM_DEVICE_TYPE_BT = 5, /* Bluetooth */ + NM_DEVICE_TYPE_OLPC_MESH = 6, + NM_DEVICE_TYPE_WIMAX = 7, + NM_DEVICE_TYPE_MODEM = 8, + NM_DEVICE_TYPE_INFINIBAND = 9, + NM_DEVICE_TYPE_BOND = 10, + NM_DEVICE_TYPE_VLAN = 11, } NMDeviceType; /** @@ -141,6 +151,7 @@ typedef enum { * @NM_WIFI_DEVICE_CAP_CIPHER_CCMP: device supports AES/CCMP encryption * @NM_WIFI_DEVICE_CAP_WPA: device supports WPA1 authentication * @NM_WIFI_DEVICE_CAP_RSN: device supports WPA2/RSN authentication + * @NM_WIFI_DEVICE_CAP_AP: device supports Access Point mode * * 802.11 specific device encryption and authentication capabilities. **/ @@ -152,7 +163,8 @@ typedef enum { NM_WIFI_DEVICE_CAP_CIPHER_TKIP = 0x00000004, NM_WIFI_DEVICE_CAP_CIPHER_CCMP = 0x00000008, NM_WIFI_DEVICE_CAP_WPA = 0x00000010, - NM_WIFI_DEVICE_CAP_RSN = 0x00000020 + NM_WIFI_DEVICE_CAP_RSN = 0x00000020, + NM_WIFI_DEVICE_CAP_AP = 0x00000040 } NMDeviceWifiCapabilities; @@ -461,6 +473,24 @@ typedef enum { /* The Bluetooth connection failed or timed out */ NM_DEVICE_STATE_REASON_BT_FAILED = 44, + /* GSM Modem's SIM Card not inserted */ + NM_DEVICE_STATE_REASON_GSM_SIM_NOT_INSERTED = 45, + + /* GSM Modem's SIM Pin required */ + NM_DEVICE_STATE_REASON_GSM_SIM_PIN_REQUIRED = 46, + + /* GSM Modem's SIM Puk required */ + NM_DEVICE_STATE_REASON_GSM_SIM_PUK_REQUIRED = 47, + + /* GSM Modem's SIM wrong */ + NM_DEVICE_STATE_REASON_GSM_SIM_WRONG = 48, + + /* InfiniBand device does not support connected mode */ + NM_DEVICE_STATE_REASON_INFINIBAND_MODE = 49, + + /* A dependency of the connection failed */ + NM_DEVICE_STATE_REASON_DEPENDENCY_FAILED = 50, + /* Unused */ NM_DEVICE_STATE_REASON_LAST = 0xFFFF } NMDeviceStateReason; diff --git a/include/NetworkManagerVPN.h b/include/NetworkManagerVPN.h index f4ef93d3..8ee5b9a3 100644 --- a/include/NetworkManagerVPN.h +++ b/include/NetworkManagerVPN.h @@ -151,6 +151,9 @@ typedef enum { /* string: DNS domain name */ #define NM_VPN_PLUGIN_IP4_CONFIG_DOMAIN "domain" +/* array of strings: DNS domain names */ +#define NM_VPN_PLUGIN_IP4_CONFIG_DOMAINS "domains" + /* string: Login message */ #define NM_VPN_PLUGIN_IP4_CONFIG_BANNER "banner" diff --git a/include/nm-glib-compat.h b/include/nm-glib-compat.h index 4b968710..30b83e0d 100644 --- a/include/nm-glib-compat.h +++ b/include/nm-glib-compat.h @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* NetworkManager -- Network link manager * * Dan Williams <dcbw@redhat.com> @@ -22,6 +23,7 @@ #ifndef NM_GLIB_COMPAT_H #define NM_GLIB_COMPAT_H + #include <glib.h> #if !GLIB_CHECK_VERSION(2,31,0) @@ -29,4 +31,17 @@ #define g_value_get_schar g_value_get_char #endif +#if !GLIB_CHECK_VERSION(2,30,0) +#define G_VALUE_INIT { 0, { { 0 } } } +#endif + +#if !GLIB_CHECK_VERSION(2,28,0) +#define g_simple_async_result_take_error(result, error) \ + G_STMT_START { \ + GError *__error = error; \ + g_simple_async_result_set_from_error (result, __error); \ + g_error_free (__error); \ + } G_STMT_END +#endif + #endif /* NM_GLIB_COMPAT_H */ diff --git a/include/nm-version.h b/include/nm-version.h index b7b6ca2e..19af476b 100644 --- a/include/nm-version.h +++ b/include/nm-version.h @@ -43,7 +43,7 @@ * Evaluates to the micro version number of NetworkManager which this source * compiled against. */ -#define NM_MICRO_VERSION (2) +#define NM_MICRO_VERSION (4) /** * NM_CHECK_VERSION: diff --git a/include/wireless-helper.h b/include/wireless-helper.h deleted file mode 100644 index 2e4509a8..00000000 --- a/include/wireless-helper.h +++ /dev/null @@ -1,32 +0,0 @@ -/* NetworkManager -- Network link manager - * - * Dan Williams <dcbw@redhat.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * (C) Copyright 2008 Red Hat, Inc. - */ - -/* Hacks necessary to #include wireless.h; yay for WEXT */ - -#ifndef __user -#define __user -#endif -#include <sys/types.h> -#include <linux/types.h> -#include <sys/socket.h> -#include <linux/if.h> -#include <wireless.h> - |