diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-25 11:08:29 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-25 11:08:29 +0300 |
commit | 4be993ccf130ca100f58f6fd4bbb19bc4d7c1c6e (patch) | |
tree | f613193a7333d0d9de7a498c1c75f71fa35c1eb1 /src/profile.h | |
parent | f7540d9902bb9006301adfe84c331205606eeb08 (diff) | |
download | bluez-4be993ccf130ca100f58f6fd4bbb19bc4d7c1c6e.tar.gz |
core: Add error reporting to profile callbacks
Diffstat (limited to 'src/profile.h')
-rw-r--r-- | src/profile.h | 10 |
1 files 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); |