mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
supplicant: move defines for supplicant D-Bus API to header
This commit is contained in:
parent
bf9e016a13
commit
837e71a374
|
@ -16,16 +16,6 @@
|
|||
#include "nm-core-internal.h"
|
||||
#include "nm-std-aux/nm-dbus-compat.h"
|
||||
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE NM_WPAS_DBUS_INTERFACE ".Interface"
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE_WPS NM_WPAS_DBUS_INTERFACE ".Interface.WPS"
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE_P2P_DEVICE NM_WPAS_DBUS_INTERFACE ".Interface.P2PDevice"
|
||||
#define NM_WPAS_DBUS_IFACE_BSS NM_WPAS_DBUS_INTERFACE ".BSS"
|
||||
#define NM_WPAS_DBUS_IFACE_PEER NM_WPAS_DBUS_INTERFACE ".Peer"
|
||||
#define NM_WPAS_DBUS_IFACE_GROUP NM_WPAS_DBUS_INTERFACE ".Group"
|
||||
#define NM_WPAS_DBUS_IFACE_NETWORK NM_WPAS_DBUS_INTERFACE ".Network"
|
||||
#define NM_WPAS_ERROR_INVALID_IFACE NM_WPAS_DBUS_INTERFACE ".InvalidInterface"
|
||||
#define NM_WPAS_ERROR_EXISTS_ERROR NM_WPAS_DBUS_INTERFACE ".InterfaceExists"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct {
|
||||
|
@ -1779,12 +1769,6 @@ interface_removed_cb (GDBusProxy *proxy,
|
|||
g_object_unref (self);
|
||||
}
|
||||
|
||||
#if HAVE_WEXT
|
||||
#define DEFAULT_WIFI_DRIVER "nl80211,wext"
|
||||
#else
|
||||
#define DEFAULT_WIFI_DRIVER "nl80211"
|
||||
#endif
|
||||
|
||||
static void
|
||||
on_wpas_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_data)
|
||||
{
|
||||
|
@ -1823,7 +1807,7 @@ on_wpas_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_d
|
|||
|
||||
switch (priv->driver) {
|
||||
case NM_SUPPLICANT_DRIVER_WIRELESS:
|
||||
driver_name = DEFAULT_WIFI_DRIVER;
|
||||
driver_name = NM_WPAS_DEFAULT_WIFI_DRIVER;
|
||||
break;
|
||||
case NM_SUPPLICANT_DRIVER_WIRED:
|
||||
driver_name = "wired";
|
||||
|
|
|
@ -10,6 +10,23 @@
|
|||
#define NM_WPAS_DBUS_PATH "/fi/w1/wpa_supplicant1"
|
||||
#define NM_WPAS_DBUS_INTERFACE "fi.w1.wpa_supplicant1"
|
||||
|
||||
#if HAVE_WEXT
|
||||
#define NM_WPAS_DEFAULT_WIFI_DRIVER "nl80211,wext"
|
||||
#else
|
||||
#define NM_WPAS_DEFAULT_WIFI_DRIVER "nl80211"
|
||||
#endif
|
||||
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE NM_WPAS_DBUS_INTERFACE ".Interface"
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE_WPS NM_WPAS_DBUS_INTERFACE ".Interface.WPS"
|
||||
#define NM_WPAS_DBUS_IFACE_INTERFACE_P2P_DEVICE NM_WPAS_DBUS_INTERFACE ".Interface.P2PDevice"
|
||||
#define NM_WPAS_DBUS_IFACE_BSS NM_WPAS_DBUS_INTERFACE ".BSS"
|
||||
#define NM_WPAS_DBUS_IFACE_PEER NM_WPAS_DBUS_INTERFACE ".Peer"
|
||||
#define NM_WPAS_DBUS_IFACE_GROUP NM_WPAS_DBUS_INTERFACE ".Group"
|
||||
#define NM_WPAS_DBUS_IFACE_NETWORK NM_WPAS_DBUS_INTERFACE ".Network"
|
||||
#define NM_WPAS_ERROR_INVALID_IFACE NM_WPAS_DBUS_INTERFACE ".InvalidInterface"
|
||||
#define NM_WPAS_ERROR_EXISTS_ERROR NM_WPAS_DBUS_INTERFACE ".InterfaceExists"
|
||||
#define NM_WPAS_ERROR_UNKNOWN_IFACE NM_WPAS_DBUS_INTERFACE ".InterfaceUnknown"
|
||||
|
||||
typedef struct _NMSupplicantManager NMSupplicantManager;
|
||||
typedef struct _NMSupplicantInterface NMSupplicantInterface;
|
||||
typedef struct _NMSupplicantConfig NMSupplicantConfig;
|
||||
|
|
Loading…
Reference in a new issue