From 4be993ccf130ca100f58f6fd4bbb19bc4d7c1c6e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 25 Sep 2012 11:08:29 +0300 Subject: [PATCH] core: Add error reporting to profile callbacks --- src/profile.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/profile.h b/src/profile.h index a29746244..513188ba4 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); -- 2.47.3