core: expose device's IP interface when activated

Lets apps find out what the actual kernel interface name is for the
device so they can do fun stuff with it.
This commit is contained in:
Dan Williams
2010-06-10 10:16:39 -07:00
parent 69f25ca5cb
commit 763f2f1d01
5 changed files with 41 additions and 5 deletions

View File

@@ -90,7 +90,15 @@ nm_device_interface_init (gpointer g_iface)
"Interface",
"Interface",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_interface_install_property
(g_iface,
g_param_spec_string (NM_DEVICE_INTERFACE_IP_IFACE,
"IP Interface",
"IP Interface",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_interface_install_property
(g_iface,