diff options
-rw-r--r-- | src/up-device.c | 5 | ||||
-rw-r--r-- | src/up-device.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/up-device.c b/src/up-device.c index 3f22dad..66a2df9 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -429,16 +429,17 @@ up_device_compute_object_path (UpDevice *device) return object_path; } -void +gboolean up_device_register (UpDevice *device) { g_autofree char *computed_object_path = NULL; if (g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (device)) != NULL) - return; + return FALSE; computed_object_path = up_device_compute_object_path (device); g_debug ("Exported UpDevice with path %s", computed_object_path); up_device_export_skeleton (device, computed_object_path); + return TRUE; } void diff --git a/src/up-device.h b/src/up-device.h index abaa817..807294e 100644 --- a/src/up-device.h +++ b/src/up-device.h @@ -72,7 +72,7 @@ void up_device_sibling_discovered (UpDevice *device, gboolean up_device_refresh_internal (UpDevice *device, UpRefreshReason reason); void up_device_unregister (UpDevice *device); -void up_device_register (UpDevice *device); +gboolean up_device_register (UpDevice *device); G_END_DECLS |