summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaemin.yeom <taemin.yeom@samsung.com>2021-03-19 17:41:50 +0900
committertaemin.yeom <taemin.yeom@samsung.com>2021-03-19 17:41:50 +0900
commit1a922a408e77d3b62cb389d848cf4ebfa6092b11 (patch)
tree9a52ca3776fac5a271000fa976065eea7ce3b6a8
parentdc31b1568c11062a825ebae62466081a57e641cd (diff)
downloaddevice-emulator-1a922a408e77d3b62cb389d848cf4ebfa6092b11.tar.gz
device-emulator-1a922a408e77d3b62cb389d848cf4ebfa6092b11.tar.bz2
device-emulator-1a922a408e77d3b62cb389d848cf4ebfa6092b11.zip
Change-Id: I337f7887d7be6e4b52e7d207ced3368f65dc15d1 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
-rw-r--r--hw/battery/battery.c6
-rw-r--r--hw/external_connection/external_connection.c6
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;