diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-22 23:50:24 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-22 23:50:24 +0000 |
commit | 1a03aad91407d5b170787c24e32edfc2e673d76c (patch) | |
tree | d9e8f3934c4dc5e722e77842bbb137392907da54 /audio/device.h | |
parent | 164736b5d2ee4c97d2495c5623fefec6770089a3 (diff) |
Add storage support and fixup messed up coding style
Diffstat (limited to 'audio/device.h')
-rw-r--r-- | audio/device.h | 61 |
1 files changed, 33 insertions, 28 deletions
diff --git a/audio/device.h b/audio/device.h index 1a9fd520..12e15806 100644 --- a/audio/device.h +++ b/audio/device.h @@ -26,48 +26,53 @@ #include "headset.h" #include "gateway.h" -#define AUDIO_DEVICE_INTERFACE "org.bluez.audio.Device" +#define AUDIO_DEVICE_INTERFACE "org.bluez.audio.Device" -#define GENERIC_AUDIO_UUID "00001203-0000-1000-8000-00805F9B34FB" +#define GENERIC_AUDIO_UUID "00001203-0000-1000-8000-00805F9B34FB" -#define HSP_HS_UUID "00001108-0000-1000-8000-00805F9B34FB" -#define HSP_AG_UUID "00001112-0000-1000-8000-00805F9B34FB" +#define HSP_HS_UUID "00001108-0000-1000-8000-00805F9B34FB" +#define HSP_AG_UUID "00001112-0000-1000-8000-00805F9B34FB" -#define HFP_HS_UUID "0000111E-0000-1000-8000-00805F9B34FB" -#define HFP_AG_UUID "0000111F-0000-1000-8000-00805F9B34FB" +#define HFP_HS_UUID "0000111E-0000-1000-8000-00805F9B34FB" +#define HFP_AG_UUID "0000111F-0000-1000-8000-00805F9B34FB" -#define ADVANCED_AUDIO_UUID "0000110D-0000-1000-8000-00805F9B34FB" +#define ADVANCED_AUDIO_UUID "0000110D-0000-1000-8000-00805F9B34FB" -#define A2DP_SOURCE_UUID "0000110A-0000-1000-8000-00805F9B34FB" -#define A2DP_SINK_UUID "0000110B-0000-1000-8000-00805F9B34FB" +#define A2DP_SOURCE_UUID "0000110A-0000-1000-8000-00805F9B34FB" +#define A2DP_SINK_UUID "0000110B-0000-1000-8000-00805F9B34FB" -#define AVRCP_REMOTE_UUID "0000110E-0000-1000-8000-00805F9B34FB" -#define AVRCP_TARGET_UUID "0000110C-0000-1000-8000-00805F9B34FB" +#define AVRCP_REMOTE_UUID "0000110E-0000-1000-8000-00805F9B34FB" +#define AVRCP_TARGET_UUID "0000110C-0000-1000-8000-00805F9B34FB" /* Move these to respective .h files once they exist */ -#define AUDIO_SINK_INTERFACE "org.bluez.audio.Sink" -#define AUDIO_SOURCE_INTERFACE "org.bluez.audio.Source" -#define AUDIO_CONTROL_INTERFACE "org.bluez.audio.Control" -#define AUDIO_TARGET_INTERFACE "org.bluez.audio.Target" +#define AUDIO_SINK_INTERFACE "org.bluez.audio.Sink" +#define AUDIO_SOURCE_INTERFACE "org.bluez.audio.Source" +#define AUDIO_CONTROL_INTERFACE "org.bluez.audio.Control" +#define AUDIO_TARGET_INTERFACE "org.bluez.audio.Target" + struct sink; struct source; struct control; struct target; struct device { - DBusConnection *conn; - char *adapter_path; - char *path; - bdaddr_t bda; - - struct headset *headset; - struct gateway *gateway; - struct sink *sink; - struct source *source; - struct control *control; - struct target *target; + DBusConnection *conn; + char *adapter_path; + char *path; + bdaddr_t src; + bdaddr_t dst; + + struct headset *headset; + struct gateway *gateway; + struct sink *sink; + struct source *source; + struct control *control; + struct target *target; }; -struct device *device_register(DBusConnection *conn, const char *path, - bdaddr_t *bda); +struct device *device_register(DBusConnection *conn, + const char *path, bdaddr_t *bda); + +int device_store(struct device *device, gboolean is_default); + void device_finish_sdp_transaction(struct device *device); |