summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-27 21:58:00 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-27 22:06:00 +0200
commit836c502d8adf137c586ffe6a5733d61ba2f57482 (patch)
treeb739b4c59a06697f41c093121069c104ee2dbdf7 /audio/avdtp.h
parente7158358e0b780e08b64050033634263a635d001 (diff)
Don't auto-disconnect explicitly created A2DP connections
This patch makes sure that explicitly created connections (remotely initiated or using AudioSink.Connect()) stay up until explictly disconnected. The control for this needs to be in the stream timer and not the disconnect timer since our AVDTP state machine always tries to keep one stream in configured state (i.e. it should be ok to always disconnect if we stay too long in IDLE state).
Diffstat (limited to 'audio/avdtp.h')
-rw-r--r--audio/avdtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/avdtp.h b/audio/avdtp.h
index 906d61ea..197c262d 100644
--- a/audio/avdtp.h
+++ b/audio/avdtp.h
@@ -265,5 +265,7 @@ int avdtp_error_posix_errno(struct avdtp_error *err);
void avdtp_get_peers(struct avdtp *session, bdaddr_t *src, bdaddr_t *dst);
+void avdtp_set_auto_disconnect(struct avdtp *session, gboolean auto_dc);
+
int avdtp_init(const bdaddr_t *src, GKeyFile *config);
void avdtp_exit(const bdaddr_t *src);