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
.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
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);