Skip to content

Commit

Permalink
Fix compilation warnings about enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermartin committed Mar 12, 2024
1 parent 2edc8f2 commit 7925aa6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions dbus/gattlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions dbus/gattlib_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions dbus/gattlib_char.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7925aa6

Please sign in to comment.