diff options
Diffstat (limited to 'plugins/bluetooth.h')
-rw-r--r-- | plugins/bluetooth.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/bluetooth.h b/plugins/bluetooth.h index 42b0d133..505d9081 100644 --- a/plugins/bluetooth.h +++ b/plugins/bluetooth.h @@ -23,6 +23,7 @@ #define BLUEZ_MANAGER_INTERFACE BLUEZ_SERVICE ".Manager" #define BLUEZ_ADAPTER_INTERFACE BLUEZ_SERVICE ".Adapter" #define BLUEZ_DEVICE_INTERFACE BLUEZ_SERVICE ".Device" +#define BLUEZ_SERVICE_INTERFACE BLUEZ_SERVICE ".Service" #define DBUS_TIMEOUT 15 @@ -39,10 +40,18 @@ struct bluetooth_profile { void (*set_alias)(const char *device, const char *); }; +struct server; + +typedef void (*ConnectFunc)(GIOChannel *io, GError *err, gpointer user_data); + int bluetooth_register_uuid(const char *uuid, struct bluetooth_profile *profile); void bluetooth_unregister_uuid(const char *uuid); +struct server *bluetooth_register_server(guint8 channel, const char *sdp_record, + ConnectFunc cb, gpointer user_data); +void bluetooth_unregister_server(struct server *server); + void bluetooth_create_path(const char *dev_addr, const char *adapter_addr, char *buf, int size); |