Fix issue of not receiving signal changed events 33/318533/1
authorWootak Jung <wootak.jung@samsung.com>
Wed, 2 Oct 2024 00:49:11 +0000 (09:49 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 2 Oct 2024 00:49:11 +0000 (09:49 +0900)
sender should be NULL or org.freedesktop.DBus

signal time=5562.046279 sender=org.freedesktop.DBus -> destination=(null destination)
 serial=24 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string "org.bluez"
   string ":1.116"
   string ""

Change-Id: I7ca6ca160b3c1019ac1c5610cc4bcc1e8bf09877
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-event-handler.c
bt-oal/bluez_hal/src/bt-hal-event-receiver.c
bt-oal/bluez_hal/src/bt-hal-hdp-dbus-handler.c
bt-otp/bt-otpserver.c
bt-service/services/ipsp/bt-service-ipsp-event-receiver.c
bt-service/services/obex/bt-service-obex-event-receiver.c

index c20dfa1edeacb02717aea086ef1dbf4fe78be5c9..b8c6acb45e34ad0b816474de81d6ebf9bc2cb347 100644 (file)
@@ -4797,7 +4797,7 @@ void _bt_register_name_owner_changed(void)
                return;
        }
        owner_sig_id = g_dbus_connection_signal_subscribe(connection_type,
-                               BT_DBUS_NAME, BT_EVENT_FREEDESKTOP,
+                               NULL, BT_EVENT_FREEDESKTOP,
                                BT_NAME_OWNER_CHANGED, NULL, NULL, 0,
                                __bt_name_owner_changed, NULL, NULL);
 }
index ac7f9eb3129bf26bf036fe2f370f320ebd61109b..21aeae5e41adba04dee8d0b536626122ffb267f4 100644 (file)
@@ -1292,35 +1292,35 @@ static int __bt_hal_register_manager_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_interface_added_id == -1) {
                        subs_interface_added_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_MANAGER_INTERFACE,
+                                       NULL, BT_HAL_MANAGER_INTERFACE,
                                        BT_HAL_INTERFACES_ADDED, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_interface_removed_id == -1) {
                        subs_interface_removed_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_MANAGER_INTERFACE,
+                                       NULL, BT_HAL_MANAGER_INTERFACE,
                                        BT_HAL_INTERFACES_REMOVED, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_name_owner_id == -1) {
                        subs_name_owner_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_FREEDESKTOP_INTERFACE,
+                                       NULL, BT_HAL_FREEDESKTOP_INTERFACE,
                                        BT_HAL_NAME_OWNER_CHANGED, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_property_id == -1) {
                        subs_property_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_PROPERTIES_INTERFACE,
+                                       NULL, BT_HAL_PROPERTIES_INTERFACE,
                                        BT_HAL_PROPERTIES_CHANGED, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_adapter_id == -1) {
                        subs_adapter_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_ADAPTER_INTERFACE,
+                                       NULL, BT_HAL_ADAPTER_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
@@ -1366,7 +1366,7 @@ static int __bt_hal_register_device_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_device_id == -1) {
                        subs_device_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_DEVICE_INTERFACE,
+                                       NULL, BT_HAL_DEVICE_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
@@ -1392,7 +1392,7 @@ static int __bt_hal_register_input_subscribe_signal(GDBusConnection *conn, int s
        if (subscribe) {
                if (subs_input_id == -1) {
                        subs_input_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_INPUT_INTERFACE,
+                                       NULL, BT_HAL_INPUT_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
@@ -1417,14 +1417,14 @@ static int __bt_hal_register_gatt_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_gatt_char_id == -1) {
                        subs_gatt_char_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_GATT_CHAR_INTERFACE,
+                                       NULL, BT_HAL_GATT_CHAR_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_gatt_service_id == -1) {
                        subs_gatt_service_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_GATT_SERVICE_INTERFACE,
+                                       NULL, BT_HAL_GATT_SERVICE_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
@@ -1489,14 +1489,14 @@ static int __bt_hal_register_audio_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_headset_id == -1) {
                        subs_headset_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_HEADSET_INTERFACE,
+                                       NULL, BT_HAL_HEADSET_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
                }
                if (subs_sink_id == -1) {
                        subs_sink_id = g_dbus_connection_signal_subscribe(conn,
-                                       BT_HAL_BLUEZ_NAME, BT_HAL_SINK_INTERFACE,
+                                       NULL, BT_HAL_SINK_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __bt_hal_manager_event_filter,
                                        NULL, NULL);
index 002a109ac7c588196013cd8cf7358770af91e869..7678685e06cb0e1f36709c8802a53c1526f828b2 100644 (file)
@@ -529,7 +529,7 @@ static int __hdp_filter_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_add_filter_id == 0) {
                        subs_add_filter_id = g_dbus_connection_signal_subscribe(
-                                       conn, BT_HAL_BLUEZ_NAME, BT_HAL_HDP_DEVICE_INTERFACE,
+                                       conn, NULL, BT_HAL_HDP_DEVICE_INTERFACE,
                                        NULL, NULL, NULL, 0,
                                        __hdp_event_filter, NULL, NULL);
                } else {
index 43be7e0a282c3beab7499a6b2db3b286d5508028..27d45aa29ddde575d5d4f1d1be411a7344f4ecfd 100644 (file)
@@ -2173,7 +2173,7 @@ int _bt_otp_init_event_receiver()
                                        NULL, NULL);
 
        device_property_sub_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_BLUEZ_NAME, BT_PROPERTIES_INTERFACE,
+                               NULL, BT_PROPERTIES_INTERFACE,
                                PROPERTIES_CHANGED, NULL, NULL, 0,
                                _bt_otp_device_property_event_filter,
                                NULL, NULL);
index 8312faa5bacd4202cf6cab0f481f6b16593c135d..1ad244da22d7699dc140cd8646786ba359a037f3 100644 (file)
@@ -216,28 +216,28 @@ int _bt_register_ipsp_subscribe_signal(GDBusConnection *conn,
        if (subscribe) {
                if (subs_interface_added_id == -1) {
                        subs_interface_added_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_BLUEZ_NAME, BT_MANAGER_INTERFACE,
+                               NULL, BT_MANAGER_INTERFACE,
                                BT_INTERFACES_ADDED, NULL, NULL, 0,
                                __bt_manager_event_filter,
                                NULL, NULL);
                }
                if (subs_interface_removed_id == -1) {
                        subs_interface_removed_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_BLUEZ_NAME, BT_MANAGER_INTERFACE,
+                               NULL, BT_MANAGER_INTERFACE,
                                BT_INTERFACES_REMOVED, NULL, NULL, 0,
                                __bt_manager_event_filter,
                                NULL, NULL);
                }
                if (subs_property_id == -1) {
                        subs_property_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_BLUEZ_NAME, BT_PROPERTIES_INTERFACE,
+                               NULL, BT_PROPERTIES_INTERFACE,
                                BT_PROPERTIES_CHANGED, NULL, NULL, 0,
                                __bt_manager_event_filter,
                                NULL, NULL);
                }
                if (subs_ipsp_state_id == -1) {
                        subs_ipsp_state_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_BLUEZ_NAME, BT_DEVICE_INTERFACE,
+                               NULL, BT_DEVICE_INTERFACE,
                                BT_IPSP_STATE_CHANGE, NULL, NULL, 0,
                                __bt_manager_event_filter,
                                NULL, NULL);
index 5d22d11bb56ab2c3c43e6a912ea08b5da23e966d..555c128563c36cb092cac3c197824fd2b4e3b58d 100644 (file)
@@ -949,7 +949,7 @@ int _bt_register_opp_server_subscribe_signal(GDBusConnection *conn,
                }
                if (subs_opp_server_property_id == -1) {
                        subs_opp_server_property_id = g_dbus_connection_signal_subscribe(conn,
-                               BT_OBEX_SERVICE_NAME, BT_PROPERTIES_INTERFACE,
+                               NULL, BT_PROPERTIES_INTERFACE,
                                BT_PROPERTIES_CHANGED, NULL, NULL, 0,
                                __bt_obexd_event_filter,
                                NULL, NULL);