uuid[15 - i] = src->value.u128.data[i];
}
+static void hal_srvc_id_to_element_id(const struct hal_gatt_srvc_id *from,
+ struct element_id *to)
+{
+ to->instance = from->inst_id;
+ android2uuid(from->uuid, &to->uuid);
+}
+
+static void hal_gatt_id_to_element_id(const struct hal_gatt_gatt_id *from,
+ struct element_id *to)
+{
+ to->instance = from->inst_id;
+ android2uuid(from->uuid, &to->uuid);
+}
+
static void destroy_service(void *data)
{
struct service *srvc = data;
return false;
}
-static void hal_gatt_id_to_element_id(const struct hal_gatt_gatt_id *from,
- struct element_id *to)
-{
- to->instance = from->inst_id;
- android2uuid(from->uuid, &to->uuid);
-}
-
static void destroy_notification(void *data)
{
struct notification_data *notification = data;
free(data);
}
-static void hal_srvc_id_to_element_id(const struct hal_gatt_srvc_id *from,
- struct element_id *to)
-{
- to->instance = from->inst_id;
- android2uuid(from->uuid, &to->uuid);
-}
-
static bool find_service(int32_t conn_id, struct element_id *service_id,
struct gatt_device **dev, struct service **srvc)
{