From 1a922a408e77d3b62cb389d848cf4ebfa6092b11 Mon Sep 17 00:00:00 2001 From: "taemin.yeom" Date: Fri, 19 Mar 2021 17:41:50 +0900 Subject: Change dbus function name Change-Id: I337f7887d7be6e4b52e7d207ced3368f65dc15d1 Signed-off-by: taemin.yeom --- hw/battery/battery.c | 6 +++--- 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 #include -#include +#include #include @@ -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 #include -#include +#include #include @@ -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; -- cgit v1.2.3