Fix compilation warnings about enum type

pull/185/merge
Olivier Martin 2024-03-12 20:38:31 +01:00
parent 2edc8f2620
commit 7925aa6a38
3 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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) {

View File

@ -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,