summaryrefslogtreecommitdiffstats
path: root/audio/manager.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-31 09:23:17 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-31 09:23:17 +0000
commit04efa14f48878cd1c1a31afc106f782fc97277a0 (patch)
tree23ba3be8876475a0e853a87df45238c7001027a3 /audio/manager.h
parent11f21abbc245e090345f21734a7a00cdde087078 (diff)
Bring the audio code up-to-date with the current API spec
Diffstat (limited to 'audio/manager.h')
-rw-r--r--audio/manager.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/audio/manager.h b/audio/manager.h
index 45c5fa5f..78ec63ab 100644
--- a/audio/manager.h
+++ b/audio/manager.h
@@ -48,18 +48,30 @@
#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_GATEWAY_INTERFACE "org.bluez.audio.Gateway"
+#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"
+typedef struct gateway gateway_t;
+typedef struct sink sink_t;
+typedef struct source source_t;
+typedef struct control control_t;
+typedef struct target target_t;
+
typedef struct audio_device {
char object_path[128];
bdaddr_t bda;
headset_t *headset;
-/*
- audio_gw_t *audio_gw;
+
+ gateway_t *gateway;
sink_t *sink;
source_t *source;
control_t *control;
target_t *target;
-*/
+
} audio_device_t;
audio_device_t *manager_headset_connected(bdaddr_t *bda);