core: ensure errors are dbus-glib accessible (rh #581794)
authorDan Williams <dcbw@redhat.com>
Thu, 22 Apr 2010 19:27:31 +0000 (12:27 -0700)
committerDan Williams <dcbw@redhat.com>
Thu, 22 Apr 2010 19:27:31 +0000 (12:27 -0700)
Errors that can possibly be returned from D-Bus method calls
need to be registered with dbus-glib.

libnm-glib/libnm-glib.ver
src/system-settings/nm-sysconfig-settings.c

index 1caa2d4..dfe4fe5 100644 (file)
@@ -129,6 +129,7 @@ global:
        nm_settings_connection_interface_get_type;
        nm_settings_connection_interface_update;
        nm_settings_interface_add_connection;
+       nm_settings_interface_error_get_type;
        nm_settings_interface_error_quark;
        nm_settings_interface_get_connection_by_path;
        nm_settings_interface_get_type;
index b120953..0054a99 100644 (file)
@@ -1475,7 +1475,12 @@ nm_sysconfig_settings_class_init (NMSysconfigSettingsClass *class)
                                      NM_DBUS_IFACE_SETTINGS_SYSTEM,
                                      NM_TYPE_SYSCONFIG_SETTINGS_ERROR);
 
+       dbus_g_error_domain_register (NM_SETTINGS_INTERFACE_ERROR,
+                                     NM_DBUS_IFACE_SETTINGS,
+                                     NM_TYPE_SETTINGS_INTERFACE_ERROR);
+
        /* And register all the settings errors with D-Bus */
+       dbus_g_error_domain_register (NM_CONNECTION_ERROR, NULL, NM_TYPE_CONNECTION_ERROR);
        dbus_g_error_domain_register (NM_SETTING_802_1X_ERROR, NULL, NM_TYPE_SETTING_802_1X_ERROR);
        dbus_g_error_domain_register (NM_SETTING_BLUETOOTH_ERROR, NULL, NM_TYPE_SETTING_BLUETOOTH_ERROR);
        dbus_g_error_domain_register (NM_SETTING_CDMA_ERROR, NULL, NM_TYPE_SETTING_CDMA_ERROR);