diff options
author | Bastien Nocera <hadess@hadess.net> | 2023-03-02 01:05:35 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-04-17 15:19:10 +0200 |
commit | 8c8c6315f99a7b7f1a02ca3f441fa970dc0e8379 (patch) | |
tree | 428e82edd8ca659313f4dddb88693a83225dd521 | |
parent | 8356dd01d6fe9cef055543cb5b45847b1d37f21e (diff) | |
download | upower-8c8c6315f99a7b7f1a02ca3f441fa970dc0e8379.tar.gz |
device: Export up_device_register()
It will be useful when we want to show some devices that aren't
duplicated any more.
-rw-r--r-- | src/up-device.c | 2 | ||||
-rw-r--r-- | src/up-device.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/up-device.c b/src/up-device.c index a2ce914..b27852a 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -423,7 +423,7 @@ up_device_compute_object_path (UpDevice *device) return object_path; } -static void +void up_device_register (UpDevice *device) { char *object_path = up_device_compute_object_path (device); diff --git a/src/up-device.h b/src/up-device.h index f7f1df9..abaa817 100644 --- a/src/up-device.h +++ b/src/up-device.h @@ -72,6 +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); G_END_DECLS |