diff options
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r-- | audio/avdtp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c index eb00f8bb..7194177f 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -1957,6 +1957,11 @@ struct avdtp *avdtp_get(bdaddr_t *src, bdaddr_t *dst) return avdtp_ref(session); } +gboolean avdtp_is_connected(bdaddr_t *src, bdaddr_t *dst) +{ + return find_session(src, dst) == NULL ? FALSE : TRUE; +} + gboolean avdtp_stream_get_transport(struct avdtp_stream *stream, int *sock, uint16_t *mtu, GSList **caps) { @@ -2489,6 +2494,11 @@ const char *avdtp_strerror(struct avdtp_error *err) } } +avdtp_state_t avdtp_sep_get_state(struct avdtp_local_sep *sep) +{ + return sep->state; +} + void avdtp_get_peers(struct avdtp *session, bdaddr_t *src, bdaddr_t *dst) { if (src) |