From: Wootak Jung Date: Mon, 1 Oct 2018 01:52:37 +0000 (+0900) Subject: Fix incorrect interface name and improve dbus policy X-Git-Tag: accepted/tizen/unified/20181011.095202~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=fb6c7048cb2a150aebcef0e2821c369e46c5a9ad Fix incorrect interface name and improve dbus policy Dbus -> DBus Objectmanager -> ObjectManager Change-Id: I97a05856ff7b8357aeb92d595d5d4aacfc786bee --- diff --git a/bt-api/bt-gatt-service.c b/bt-api/bt-gatt-service.c index 4d30589..724780e 100644 --- a/bt-api/bt-gatt-service.c +++ b/bt-api/bt-gatt-service.c @@ -1352,7 +1352,7 @@ gboolean __bt_gatt_emit_interface_removed(gchar *object_path, gchar *interface) g_variant_builder_add(array_builder, "s", interface); ret = g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.Objectmanager", + "org.freedesktop.DBus.ObjectManager", "InterfacesRemoved", g_variant_new("(oas)", object_path, array_builder), @@ -1967,7 +1967,7 @@ BT_EXPORT_API int bluetooth_gatt_add_service(const char *svc_uuid, GATT_SERV_INTERFACE, inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder), @@ -2097,7 +2097,7 @@ BT_EXPORT_API int bluetooth_gatt_add_new_characteristic( inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder), @@ -2178,7 +2178,7 @@ BT_EXPORT_API int bluetooth_gatt_set_characteristic_value( inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", char_info->char_path, builder), @@ -2301,7 +2301,7 @@ BT_EXPORT_API int bluetooth_gatt_add_descriptor( inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder), @@ -2380,7 +2380,7 @@ BT_EXPORT_API int bluetooth_gatt_set_descriptor_value( inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", desc_info->desc_path, builder), diff --git a/bt-oal/bluez_hal/bluetooth-frwk-gap-agent.conf b/bt-oal/bluez_hal/bluetooth-frwk-gap-agent.conf index aedbd95..52c610e 100644 --- a/bt-oal/bluez_hal/bluetooth-frwk-gap-agent.conf +++ b/bt-oal/bluez_hal/bluetooth-frwk-gap-agent.conf @@ -7,9 +7,9 @@ - - - + + + @@ -17,13 +17,15 @@ - - - + + + + + diff --git a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c index b2313dd..3da7597 100644 --- a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c +++ b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c @@ -1437,7 +1437,7 @@ gboolean __bt_hal_gatt_emit_interface_removed(gchar *object_path, gchar *interfa g_variant_builder_add(array_builder, "s", interface); ret = g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.Objectmanager", + "org.freedesktop.DBus.ObjectManager", "InterfacesRemoved", g_variant_new("(oas)", object_path, array_builder), @@ -2053,7 +2053,7 @@ int __bt_hal_add_service_to_dbus(char *app_path, int slot, btgatt_srvc_id_t *srv GATT_SERV_INTERFACE, inner_builder); ret = g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder), @@ -2447,7 +2447,7 @@ static bt_status_t gatt_server_add_characteristic(int slot, int service_handle, inner_builder); ret = g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder), @@ -2613,7 +2613,7 @@ static bt_status_t gatt_server_add_descriptor(int slot, int service_handle, bt_u inner_builder); g_dbus_connection_emit_signal(g_conn, NULL, "/", - "org.freedesktop.Dbus.ObjectManager", + "org.freedesktop.DBus.ObjectManager", "InterfacesAdded", g_variant_new("(oa{sa{sv}})", path, builder),