summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/profile.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/profile.h b/src/profile.h
index 9088c322..a2974624 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -23,6 +23,10 @@
#define BTD_UUIDS(args...) ((const char *[]) { args, NULL } )
+struct btd_profile;
+
+typedef void (*btd_profile_cb)(struct btd_profile *profile, void *data);
+
struct btd_profile {
const char *name;
@@ -34,8 +38,10 @@ struct btd_profile {
int (*device_probe) (struct btd_device *device, GSList *uuids);
void (*device_remove) (struct btd_device *device);
- void (*connect) (struct btd_device *device);
- void (*disconnect) (struct btd_device *device);
+ void (*connect) (struct btd_device *device, btd_profile_cb cb,
+ void *data);
+ void (*disconnect) (struct btd_device *device, btd_profile_cb cb,
+ void *data);
int (*adapter_probe) (struct btd_adapter *adapter);
void (*adapter_remove) (struct btd_adapter *adapter);