summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-09-25 14:23:57 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-25 15:38:38 +0300
commita3396702362776ca21bbf06686626c7f0bb39d28 (patch)
tree467df7696a3fb39c05611f1078004898e860cd75 /src/profile.h
parent76041ebc6b7b6a9cb95040ec6a824c2fea75b2f1 (diff)
downloadbluez-a3396702362776ca21bbf06686626c7f0bb39d28.tar.gz
core: Add profile parameter to adapter and device probe functions
This is necessary for the external profile implementation (which will have the same callback functions for all external profiles).
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/profile.h b/src/profile.h
index 178e7bfc1..12d2b3ea4 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -36,15 +36,19 @@ struct btd_profile {
bool auto_connect;
- int (*device_probe) (struct btd_device *device, GSList *uuids);
- void (*device_remove) (struct btd_device *device);
+ int (*device_probe) (struct btd_profile *p, struct btd_device *device,
+ GSList *uuids);
+ void (*device_remove) (struct btd_profile *p,
+ struct btd_device *device);
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);
+ int (*adapter_probe) (struct btd_profile *p,
+ struct btd_adapter *adapter);
+ void (*adapter_remove) (struct btd_profile *p,
+ struct btd_adapter *adapter);
};
void btd_profile_foreach(void (*func)(struct btd_profile *p, void *data),