diff options
-rw-r--r-- | hw/battery/battery.c | 6 | ||||
-rw-r--r-- | hw/external_connection/external_connection.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/hw/battery/battery.c b/hw/battery/battery.c index ce4d76a..b87174b 100644 --- a/hw/battery/battery.c +++ b/hw/battery/battery.c @@ -28,7 +28,7 @@ #include <hal/hal-common-interface.h> #include <libsyscommon/file.h> -#include <libsyscommon/dbus-system.h> +#include <libsyscommon/libgdbus.h> #include </hal/include/device/hal-backend-common.h> @@ -133,7 +133,7 @@ static int battery_register_changed_event( return -EEXIST; } - signal_id = subscribe_dbus_signal(NULL, BATTERY_OBJECT, + signal_id = gdbus_signal_subscribe(NULL, BATTERY_OBJECT, BATTERY_IFACE, BATTERY_SIGNAL, signal_delivered, &sdata, NULL); if (signal_id <= 0) { @@ -151,7 +151,7 @@ static void battery_unregister_changed_event( BatteryUpdated updated_cb) { if (signal_id > 0) { - unsubscribe_dbus_signal(NULL, signal_id); + gdbus_signal_unsubscribe(NULL, signal_id); signal_id = 0; } sdata.updated_cb = NULL; diff --git a/hw/external_connection/external_connection.c b/hw/external_connection/external_connection.c index 5cd129b..c503f18 100644 --- a/hw/external_connection/external_connection.c +++ b/hw/external_connection/external_connection.c @@ -29,7 +29,7 @@ #include <hal/hal-common-interface.h> #include <libsyscommon/file.h> -#include <libsyscommon/dbus-system.h> +#include <libsyscommon/libgdbus.h> #include </hal/include/device/hal-backend-common.h> @@ -121,7 +121,7 @@ static int external_connection_register_changed_event( return -EEXIST; } - signal_id = subscribe_dbus_signal(NULL, EXTCON_OBJECT, + signal_id = gdbus_signal_subscribe(NULL, EXTCON_OBJECT, EXTCON_IFACE, EXTCON_SIGNAL, signal_delivered, &sdata, NULL); if (signal_id <= 0) { @@ -139,7 +139,7 @@ static void external_connection_unregister_changed_event( ConnectionUpdated updated_cb) { if (signal_id > 0) { - unsubscribe_dbus_signal(NULL, signal_id); + gdbus_signal_unsubscribe(NULL, signal_id); signal_id = 0; } sdata.updated_cb = NULL; |