|
|
|
@@ -26,6 +26,12 @@
|
|
|
|
|
#ifndef __NM_VPN_DBUS_INTERFACE_H__
|
|
|
|
|
#define __NM_VPN_DBUS_INTERFACE_H__
|
|
|
|
|
|
|
|
|
|
#include "nm-dbus-interface.h"
|
|
|
|
|
|
|
|
|
|
#ifndef NM_VERSION_H
|
|
|
|
|
#define NM_DEPRECATED_IN_1_8_FOR(n)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* dbus services details
|
|
|
|
|
*/
|
|
|
|
@@ -147,20 +153,22 @@ typedef enum {
|
|
|
|
|
*
|
|
|
|
|
* VPN connection state reasons
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_UNKNOWN = 0,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_NONE = 1,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_USER_DISCONNECTED = 2,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED = 3,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED = 4,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_IP_CONFIG_INVALID = 5,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_CONNECT_TIMEOUT = 6,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT = 7,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED = 8,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS = 9,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_LOGIN_FAILED = 10,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_CONNECTION_REMOVED = 11,
|
|
|
|
|
NM_DEPRECATED_IN_1_8_FOR(NMActiveConnectionStateReason)
|
|
|
|
|
typedef enum { /*< skip >*/
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_UNKNOWN = NM_ACTIVE_CONNECTION_STATE_REASON_UNKNOWN,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_NONE = NM_ACTIVE_CONNECTION_STATE_REASON_NONE,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_USER_DISCONNECTED = NM_ACTIVE_CONNECTION_STATE_REASON_USER_DISCONNECTED,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED = NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED = NM_ACTIVE_CONNECTION_STATE_REASON_SERVICE_STOPPED,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_IP_CONFIG_INVALID = NM_ACTIVE_CONNECTION_STATE_REASON_IP_CONFIG_INVALID,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_CONNECT_TIMEOUT = NM_ACTIVE_CONNECTION_STATE_REASON_CONNECT_TIMEOUT,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT = NM_ACTIVE_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED = NM_ACTIVE_CONNECTION_STATE_REASON_SERVICE_START_FAILED,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS = NM_ACTIVE_CONNECTION_STATE_REASON_NO_SECRETS,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_LOGIN_FAILED = NM_ACTIVE_CONNECTION_STATE_REASON_LOGIN_FAILED,
|
|
|
|
|
NM_VPN_CONNECTION_STATE_REASON_CONNECTION_REMOVED = NM_ACTIVE_CONNECTION_STATE_REASON_CONNECTION_REMOVED,
|
|
|
|
|
} NMVpnConnectionStateReason;
|
|
|
|
|
#define NMVpnConnectionStateReason NMActiveConnectionStateReason
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* NMVpnPluginFailure:
|
|
|
|
@@ -177,6 +185,9 @@ typedef enum {
|
|
|
|
|
NM_VPN_PLUGIN_FAILURE_BAD_IP_CONFIG
|
|
|
|
|
} NMVpnPluginFailure;
|
|
|
|
|
|
|
|
|
|
#ifndef NM_VERSION_H
|
|
|
|
|
#undef NM_DEPRECATED_IN_1_8_FOR
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*** Generic config ***/
|
|
|
|
|
|
|
|
|
|