Diff between d5e07945c4aa36a83addc3c269f55c720c28afdb and 713f6f09f017abfccc2da9dbf2b32adf9ecb8e58

Changed Files

File Additions Deletions Status
profiles/battery/battery.c +1 -0 modified
src/profile.h +4 -0 modified

Full Patch

diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index 4da4355..c9a1af4 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -354,6 +354,7 @@ static struct btd_profile batt_profile = {
 	.device_remove	= batt_remove,
 	.accept		= batt_accept,
 	.disconnect	= batt_disconnect,
+	.external	= true,
 };
 
 static int batt_init(void)
diff --git a/src/profile.h b/src/profile.h
index 4448a2a..95523e5 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -35,6 +35,10 @@ struct btd_profile {
 	const char *remote_uuid;
 
 	bool auto_connect;
+	/* Some profiles are considered safe to be handled internally and also
+	 * be exposed in the GATT API. This flag give such profiles exception
+	 * from being claimed internally.
+	 */
 	bool external;
 
 	int (*device_probe) (struct btd_service *service);