Diff between b1cde69a66270076ff5afb86250b29dd4fa53256 and 96f60e1411514fb4b0d8690aca1c02b3c6b32b9c

Changed Files

File Additions Deletions Status
src/profile.h +8 -2 modified

Full Patch

diff --git a/src/profile.h b/src/profile.h
index 9088c32..a297462 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);