From 836c502d8adf137c586ffe6a5733d61ba2f57482 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 27 Jan 2009 21:58:00 +0200 Subject: 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). --- audio/avdtp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/avdtp.h') 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); -- cgit