summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2012-01-11 10:45:05 +0100
committerDan Williams <dcbw@redhat.com>2012-01-25 11:12:43 -0600
commit1ba50e2f1bd236ab6857aa4a8c97f06a9e0b5d9b (patch)
tree25bc6019156d630a9c28fca22a85f67c2cf1dba4 /src/nm-active-connection.c
parent93f289bc13729e6bc362b40dc28d96d0b7bdf3bf (diff)
downloadNetworkManager-1ba50e2f1bd236ab6857aa4a8c97f06a9e0b5d9b.tar.gz
bonding: export path of master device property over DBUS
Adds a new "master" property to NMActiveConnection containing the path of the master NMDevice if the connection has a master. Signed-off-by: Thomas Graf <tgraf@redhat.com>
Diffstat (limited to 'src/nm-active-connection.c')
-rw-r--r--src/nm-active-connection.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nm-active-connection.c b/src/nm-active-connection.c
index ae2afb0727..f27ad70dbc 100644
--- a/src/nm-active-connection.c
+++ b/src/nm-active-connection.c
@@ -41,7 +41,8 @@ nm_active_connection_install_properties (GObjectClass *object_class,
guint prop_state,
guint prop_default,
guint prop_default6,
- guint prop_vpn)
+ guint prop_vpn,
+ guint prop_master)
{
g_object_class_install_property (object_class, prop_connection,
g_param_spec_boxed (NM_ACTIVE_CONNECTION_CONNECTION,
@@ -100,5 +101,12 @@ nm_active_connection_install_properties (GObjectClass *object_class,
"Is a VPN connection",
FALSE,
G_PARAM_READABLE));
+
+ g_object_class_install_property (object_class, prop_master,
+ g_param_spec_string (NM_ACTIVE_CONNECTION_MASTER,
+ "Master",
+ "Path of master device",
+ NULL,
+ G_PARAM_READABLE));
}