From b1cde69a66270076ff5afb86250b29dd4fa53256 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 10 Sep 2012 15:32:22 +0300 Subject: core: Move profile code into profile.{c,h} --- src/device.h | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/device.h') 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); -- cgit v1.2.3