diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-10 15:32:22 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-09-11 11:29:57 +0300 |
commit | b1cde69a66270076ff5afb86250b29dd4fa53256 (patch) | |
tree | ccba6df43ae34607dbf3cbc7ac77e0f1a4e1631a /src/device.h | |
parent | 06a7852b69eda34ad5da609897c46191cffc4973 (diff) |
core: Move profile code into profile.{c,h}
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/device.h b/src/device.h index f1d95c6d..9426ef86 100644 --- a/src/device.h +++ b/src/device.h @@ -34,37 +34,6 @@ typedef enum { AUTH_TYPE_NOTIFY_PINCODE, } auth_type_t; -#define BTD_UUIDS(args...) ((const char *[]) { args, NULL } ) - -struct btd_profile { - const char *name; - - const char *local_uuid; - const char **remote_uuids; - - bool auto_connect; - - 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); - - int (*adapter_probe) (struct btd_adapter *adapter); - void (*adapter_remove) (struct btd_adapter *adapter); -}; - -void btd_profile_foreach(void (*func)(struct btd_profile *p, void *data), - void *data); - -int btd_profile_register(struct btd_profile *profile); -void btd_profile_unregister(struct btd_profile *profile); - -void btd_profile_connected(struct btd_profile *profile, - struct btd_device *device, int err); -void btd_profile_disconnected(struct btd_profile *profile, - struct btd_device *device); - struct btd_device *device_create(DBusConnection *conn, struct btd_adapter *adapter, const char *address, uint8_t bdaddr_type); |