summaryrefslogtreecommitdiffstats
path: root/audio/headset.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-25 11:42:25 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-25 11:42:25 -0300
commitc3a264a57a6e61c22280b52dd01f2677600a04f2 (patch)
tree0ee2658bfd373798003568d9b3f6fdbcefa0ef1b /audio/headset.h
parent0b6b1da0dd654d32873aacf81791c58316b377e3 (diff)
Fix headset_request_stream to check for stream locks.
A stream should only be configured if there is no other application holding the lock.
Diffstat (limited to 'audio/headset.h')
-rw-r--r--audio/headset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/headset.h b/audio/headset.h
index c8d63b9b..18205c4d 100644
--- a/audio/headset.h
+++ b/audio/headset.h
@@ -53,7 +53,9 @@ void headset_update(struct audio_device *dev, uint16_t svc,
const char *uuidstr);
unsigned int headset_request_stream(struct audio_device *dev,
- headset_stream_cb_t cb, void *user_data);
+ headset_stream_cb_t cb,
+ headset_lock_t lock,
+ void *user_data);
gboolean headset_cancel_stream(struct audio_device *dev, unsigned int id);
gboolean get_hfp_active(struct audio_device *dev);