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 fd61b21706.
This commit is contained in:
Lubomir Rintel 2015-10-14 18:43:21 +02:00
parent 6786164e78
commit 700061f270
2 changed files with 16 additions and 0 deletions

View file

@ -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",

View file

@ -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