diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 15:42:10 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 15:42:10 +0000 |
commit | cdd9e2e17ad674e5fc1a5ed19643880ef61d28c7 (patch) | |
tree | 5292da714c803e54ad8e199f3a06d6db9d9d42f2 /audio/a2dp.h | |
parent | 3863eba35ca65bb4ea17d3763ae27afafdf0f4c2 (diff) |
Rework interfacing with the avdtp state machine
Diffstat (limited to 'audio/a2dp.h')
-rw-r--r-- | audio/a2dp.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/audio/a2dp.h b/audio/a2dp.h index 23416988..3617afc4 100644 --- a/audio/a2dp.h +++ b/audio/a2dp.h @@ -58,6 +58,10 @@ struct sbc_codec_cap { uint8_t max_bitpool; } __attribute__ ((packed)); +typedef void (*a2dp_stream_cb_t) (struct avdtp *session, struct device *dev, + struct avdtp_stream *stream, + void *user_data); + int a2dp_init(DBusConnection *conn, gboolean enable_sink, gboolean enable_source); void a2dp_exit(void); @@ -67,5 +71,13 @@ gboolean a2dp_select_capabilities(struct avdtp_remote_sep *rsep, GSList **caps); gboolean a2dp_get_config(struct avdtp_stream *stream, struct ipc_data_cfg **cfg, int *fd); -void a2dp_start_stream_when_opened(struct avdtp *session, - struct avdtp_stream *stream); +int a2dp_source_request_stream(struct avdtp *session, struct device *dev, + gboolean start, a2dp_stream_cb_t cb, + void *user_data); +gboolean a2dp_source_cancel_stream(int id); + +gboolean a2dp_source_lock(struct device *dev, struct avdtp *session); +gboolean a2dp_source_unlock(struct device *dev, struct avdtp *session); +gboolean a2dp_source_suspend(struct device *dev, struct avdtp *session); +gboolean a2dp_source_start_stream(struct device *dev, struct avdtp *session); + |