[PATCH 2/2] android/gatt: Change name to more approperiate for cache all services

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

 



This changes name of caching function from "primary callback" to "cache
all services".
---
 android/gatt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index d8c63bf..d540736 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -589,7 +589,7 @@ static struct service *create_service(uint8_t id, bool primary, char *uuid,
 	return s;
 }
 
-static void primary_cb(GSList *services, struct gatt_device *dev)
+static void cache_all_srvc(GSList *services, struct gatt_device *dev)
 {
 	GSList *l;
 	uint8_t instance_id;
@@ -1242,7 +1242,7 @@ static void discover_srvc_cb(uint8_t status, GSList *services, void *user_data)
 	}
 
 	/* Caching primary and included services from remote */
-	primary_cb(services, cb_data->dev);
+	cache_all_srvc(services, cb_data->dev);
 
 	/* Send filtered service by uuid */
 	if (cb_data->number) {
-- 
1.9.1

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