From 700061f2702e09cb929bbc14ccfe60e2419b6018 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 14 Oct 2015 18:43:21 +0200 Subject: [PATCH] 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. --- libnm/nm-vpn-service-plugin.c | 15 +++++++++++++++ libnm/nm-vpn-service-plugin.h | 1 + 2 files changed, 16 insertions(+) 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