summaryrefslogtreecommitdiff
path: root/src/nm-dhcp6-config.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-05-07 12:18:41 -0400
committerDan Winship <danw@gnome.org>2013-05-20 16:38:33 -0300
commit5a223b908954a67aef0c77ca29a251560eaace60 (patch)
tree698e97637f73aab6bfb7689ad044068f56052add /src/nm-dhcp6-config.c
parent04cb58eacd1df9c25f0411b8c4062b0f9edcde0f (diff)
downloadNetworkManager-5a223b908954a67aef0c77ca29a251560eaace60.tar.gz
core: make nm-properties-changed-signal always export the right properties
Change the way that nm-properties-changed-signal works, and parse the dbus-binding-tool-generated info to get the exact list of properties that it's expected to export. This makes NM_PROPERTY_PARAM_NO_EXPORT unnecessary, and also fixes the problem of properties like NMDevice:hw-address being exported on classes where it shouldn't be.
Diffstat (limited to 'src/nm-dhcp6-config.c')
-rw-r--r--src/nm-dhcp6-config.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c
index 26c8d811c2..c50b8fdde4 100644
--- a/src/nm-dhcp6-config.c
+++ b/src/nm-dhcp6-config.c
@@ -26,7 +26,6 @@
#include "nm-dhcp6-config.h"
#include "nm-dhcp6-config-glue.h"
#include "nm-dbus-glib-types.h"
-#include "nm-properties-changed-signal.h"
#include "nm-utils.h"
@@ -47,14 +46,6 @@ enum {
LAST_PROP
};
-enum {
- PROPERTIES_CHANGED,
-
- LAST_SIGNAL
-};
-
-static guint signals[LAST_SIGNAL] = { 0 };
-
NMDHCP6Config *
nm_dhcp6_config_new (void)
@@ -194,11 +185,7 @@ nm_dhcp6_config_class_init (NMDHCP6ConfigClass *config_class)
DBUS_TYPE_G_MAP_OF_VARIANT,
G_PARAM_READABLE));
- /* Signals */
- signals[PROPERTIES_CHANGED] =
- nm_properties_changed_signal_new (object_class,
- G_STRUCT_OFFSET (NMDHCP6ConfigClass, properties_changed));
-
- dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (config_class),
- &dbus_glib_nm_dhcp6_config_object_info);
+ nm_dbus_manager_register_exported_type (nm_dbus_manager_get (),
+ G_TYPE_FROM_CLASS (config_class),
+ &dbus_glib_nm_dhcp6_config_object_info);
}