From 7925aa6a384c07fc9d0204baf9efc6f81605446f Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Tue, 12 Mar 2024 20:38:31 +0100 Subject: [PATCH] Fix compilation warnings about enum type --- dbus/gattlib.c | 18 +++++++++--------- dbus/gattlib_adapter.c | 4 ++-- dbus/gattlib_char.c | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dbus/gattlib.c b/dbus/gattlib.c index 94c9d89..453a1cb 100644 --- a/dbus/gattlib.c +++ b/dbus/gattlib.c @@ -196,7 +196,7 @@ int gattlib_connect(void *adapter, const char *dst, OrgBluezDevice1* device = org_bluez_device1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, @@ -368,7 +368,7 @@ int gattlib_discover_primary(gatt_connection_t* connection, gattlib_primary_serv error = NULL; OrgBluezGattService1* service_proxy = org_bluez_gatt_service1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", *service_str, NULL, @@ -469,7 +469,7 @@ int gattlib_discover_primary(gatt_connection_t* connection, gattlib_primary_serv error = NULL; OrgBluezGattService1* service_proxy = org_bluez_gatt_service1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, @@ -581,7 +581,7 @@ int gattlib_discover_char_range(gatt_connection_t* connection, uint16_t start, u error = NULL; OrgBluezGattService1* service_proxy = org_bluez_gatt_service1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", *service_str, NULL, @@ -628,7 +628,7 @@ int gattlib_discover_char_range(gatt_connection_t* connection, uint16_t start, u error = NULL; OrgBluezGattService1* service_proxy = org_bluez_gatt_service1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", *service_str, NULL, @@ -661,7 +661,7 @@ int gattlib_discover_char_range(gatt_connection_t* connection, uint16_t start, u OrgBluezGattCharacteristic1 *characteristic_proxy = org_bluez_gatt_characteristic1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", characteristic_str, NULL, @@ -731,7 +731,7 @@ static void add_characteristics_from_service(gattlib_context_t* conn_context, GD OrgBluezGattCharacteristic1* characteristic = org_bluez_gatt_characteristic1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, @@ -878,7 +878,7 @@ int gattlib_discover_char_range(gatt_connection_t* connection, uint16_t start, u error = NULL; OrgBluezGattService1* service_proxy = org_bluez_gatt_service1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, @@ -942,7 +942,7 @@ int get_bluez_device_from_mac(struct gattlib_adapter *adapter, const char *mac_a *bluez_device1 = org_bluez_device1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, diff --git a/dbus/gattlib_adapter.c b/dbus/gattlib_adapter.c index 162c107..ba43150 100644 --- a/dbus/gattlib_adapter.c +++ b/dbus/gattlib_adapter.c @@ -113,7 +113,7 @@ static void device_manager_on_device1_signal(const char* device1_path, struct ga GError *error = NULL; OrgBluezDevice1* device1 = org_bluez_device1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", device1_path, NULL, @@ -208,7 +208,7 @@ on_interface_proxy_properties_changed (GDBusObjectManagerClient *device_manager, OrgBluezDevice1* device1 = org_bluez_device1_proxy_new_for_bus_sync( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", proxy_object_path, NULL, &error); if (error) { diff --git a/dbus/gattlib_char.c b/dbus/gattlib_char.c index 7eb0f8f..54c486c 100644 --- a/dbus/gattlib_char.c +++ b/dbus/gattlib_char.c @@ -26,7 +26,7 @@ static bool handle_dbus_gattcharacteristic_from_path(gattlib_context_t* conn_con *error = NULL; characteristic = org_bluez_gatt_characteristic1_proxy_new_for_bus_sync ( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL, @@ -54,7 +54,7 @@ static bool handle_dbus_gattcharacteristic_from_path(gattlib_context_t* conn_con *error = NULL; OrgBluezGattService1* service = org_bluez_gatt_service1_proxy_new_for_bus_sync ( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", org_bluez_gatt_characteristic1_get_service(characteristic), NULL, @@ -87,7 +87,7 @@ static bool handle_dbus_battery_from_uuid(gattlib_context_t* conn_context, const *error = NULL; battery = org_bluez_battery1_proxy_new_for_bus_sync ( G_BUS_TYPE_SYSTEM, - G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_NONE, "org.bluez", object_path, NULL,