mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
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:
parent
6786164e78
commit
700061f270
2 changed files with 16 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue