diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2015-10-14 18:43:21 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2015-10-14 18:44:57 +0200 |
commit | 700061f2702e09cb929bbc14ccfe60e2419b6018 (patch) | |
tree | 7cc097bcd10f9f07882156f4f7395ceb5cd869bb | |
parent | 6786164e7837dd5d57b039bc2faade1893e256e4 (diff) | |
download | NetworkManager-700061f2702e09cb929bbc14ccfe60e2419b6018.tar.gz |
libnm/vpn-service-plugin: leave the state property in place
It's part of the DBus API; the skeleton has it and we can't remove it.
This partially reverts commit fd61b217064c1b62b505d6a71211bf4340e4b3ac.
-rw-r--r-- | libnm/nm-vpn-service-plugin.c | 15 | ||||
-rw-r--r-- | libnm/nm-vpn-service-plugin.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libnm/nm-vpn-service-plugin.c b/libnm/nm-vpn-service-plugin.c index 7fa7459967..ed9141ea53 100644 --- a/libnm/nm-vpn-service-plugin.c +++ b/libnm/nm-vpn-service-plugin.c @@ -1197,6 +1197,21 @@ nm_vpn_service_plugin_class_init (NMVpnServicePluginClass *plugin_class) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); + /** + * NMVpnServicePlugin:state: + * + * The state of the plugin. + * + * Since: 1.2 + */ + g_object_class_install_property + (object_class, PROP_STATE, + g_param_spec_enum (NM_VPN_SERVICE_PLUGIN_STATE, "", "", + NM_TYPE_VPN_SERVICE_STATE, + NM_VPN_SERVICE_STATE_INIT, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); + /* signals */ signals[STATE_CHANGED] = g_signal_new ("state-changed", diff --git a/libnm/nm-vpn-service-plugin.h b/libnm/nm-vpn-service-plugin.h index dd2b52a14f..f8b4ff8761 100644 --- a/libnm/nm-vpn-service-plugin.h +++ b/libnm/nm-vpn-service-plugin.h @@ -37,6 +37,7 @@ G_BEGIN_DECLS #define NM_VPN_SERVICE_PLUGIN_DBUS_SERVICE_NAME "service-name" #define NM_VPN_SERVICE_PLUGIN_DBUS_WATCH_PEER "watch-peer" +#define NM_VPN_SERVICE_PLUGIN_STATE "state" typedef struct { NM_AVAILABLE_IN_1_2 |