summaryrefslogtreecommitdiffstats
path: root/audio/sink.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-12 23:58:15 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-12 23:58:15 +0000
commitd013a1eaa7beebbb49c1fe0015c70ad81566d97c (patch)
treed4f99165dd4ee46c5bb3b73fc31a490a88744299 /audio/sink.h
parentf9d8837abad3b67b70425157ac854deb892b2b91 (diff)
Clean up mess with header files
Diffstat (limited to 'audio/sink.h')
-rw-r--r--audio/sink.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/audio/sink.h b/audio/sink.h
index 45745a19..4cb5d0c3 100644
--- a/audio/sink.h
+++ b/audio/sink.h
@@ -23,17 +23,16 @@
#include "ipc.h"
#include "avdtp.h"
+#include "device.h"
#define AUDIO_SINK_INTERFACE "org.bluez.audio.Sink"
-struct sink;
-
-struct sink *sink_init(void *device);
-void sink_free(void *device);
-int sink_get_config(void *device, int sock, struct ipc_packet *req,
+struct sink *sink_init(struct device *dev);
+void sink_free(struct device *dev);
+int sink_get_config(struct device *dev, int sock, struct ipc_packet *req,
int pkt_len, struct ipc_data_cfg **rsp, int *fd);
-gboolean sink_is_active(void *device);
-void sink_set_state(void *device, avdtp_state_t state);
-avdtp_state_t sink_get_state(void *device);
-gboolean sink_new_stream(struct avdtp *session, struct avdtp_stream *stream,
- void *dev);
+gboolean sink_is_active(struct device *dev);
+void sink_set_state(struct device *dev, avdtp_state_t state);
+avdtp_state_t sink_get_state(struct device *dev);
+gboolean sink_new_stream(struct device *dev, struct avdtp *session,
+ struct avdtp_stream *stream);