Diff between f7540d9902bb9006301adfe84c331205606eeb08 and 4be993ccf130ca100f58f6fd4bbb19bc4d7c1c6e

Changed Files

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

Full Patch

diff --git a/src/profile.h b/src/profile.h
index a297462..513188b 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -25,7 +25,8 @@
 
 struct btd_profile;
 
-typedef void (*btd_profile_cb)(struct btd_profile *profile, void *data);
+typedef void (*btd_profile_cb)(struct btd_profile *profile,
+					struct btd_device *device, int err);
 
 struct btd_profile {
 	const char *name;
@@ -38,10 +39,9 @@ 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, btd_profile_cb cb,
-								void *data);
-	void (*disconnect) (struct btd_device *device, btd_profile_cb cb,
-								void *data);
+	int (*connect) (struct btd_device *device, struct btd_profile *profile,
+							btd_profile_cb cb);
+	int (*disconnect) (struct btd_device *device, btd_profile_cb cb);
 
 	int (*adapter_probe) (struct btd_adapter *adapter);
 	void (*adapter_remove) (struct btd_adapter *adapter);