[PATCH 07/15] android/gatt: Minor change in get_include_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change service to prim so it is more readable that this is primary
service
---
 android/gatt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index 6259176..6ac930d 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1208,7 +1208,7 @@ static struct service *find_service_by_uuid(struct gatt_device *device,
 }
 
 struct get_included_data {
-	struct service *service;
+	struct service *prim;
 	struct gatt_device *device;
 };
 
@@ -1217,7 +1217,7 @@ static void get_included_cb(uint8_t status, GSList *included, void *user_data)
 	struct hal_ev_gatt_client_get_inc_service ev;
 	struct get_included_data *data = user_data;
 	struct gatt_device *device = data->device;
-	struct service *service = data->service;
+	struct service *service = data->prim;
 	bt_uuid_t uuid;
 
 	DBG("");
@@ -1304,7 +1304,7 @@ static void handle_client_get_included_service(const void *buf, uint16_t len)
 		goto failed;
 	}
 
-	data->service = service;
+	data->prim = service;
 	data->device = device;
 
 	gatt_find_included(device->attrib, service->prim.range.start,
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux