| libnm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
#define NM_VPN_CONNECTION_VPN_STATE #define NM_VPN_CONNECTION_BANNER NMVPNConnection; NMVPNConnectionClass; GObject * nm_vpn_connection_new (DBusGConnection *connection,const char *path); NMVPNConnectionState nm_vpn_connection_get_vpn_state (NMVPNConnection *vpn); const char * nm_vpn_connection_get_banner (NMVPNConnection *vpn);
typedef struct {
NMActiveConnectionClass parent;
/* Signals */
void (*vpn_state_changed) (NMVPNConnection *connection,
NMVPNConnectionState state,
NMVPNConnectionStateReason reason);
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
void (*_reserved6) (void);
} NMVPNConnectionClass;
GObject * nm_vpn_connection_new (DBusGConnection *connection,const char *path);
Creates a new NMVPNConnection.
|
the DBusGConnection |
|
the DBus object path of the new connection |
Returns : |
a new connection object. [transfer full] |
NMVPNConnectionState nm_vpn_connection_get_vpn_state (NMVPNConnection *vpn);
"banner" property"banner" gchar* : Read
The VPN login banner of the active VPN connection.
Default value: NULL
"vpn-state" property"vpn-state" guint : Read
The VPN state of the active VPN connection.
Allowed values: <= 7
Default value: 0
"vpn-state-changed" signalvoid user_function (NMVPNConnection *nmvpnconnection,
guint arg1,
guint arg2,
gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |