summaryrefslogtreecommitdiff
path: root/android/avctp.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-23 17:55:20 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-26 16:19:24 -0800
commit5826775ee88f195940e673a2841a141559fb46c3 (patch)
tree0baaa07fac5b350ec6ffdd89955ef31f5bdfa3d6 /android/avctp.h
parent538237b2993be670f8f7c80b9bdc7ca2f8d73252 (diff)
downloadbluez-5826775ee88f195940e673a2841a141559fb46c3.tar.gz
android/AVCTP: Add avctp_set_destroy_cb
This adds avctp_set_destroy_cb that can be use to set a callback when the AVCTP has been disconnected.
Diffstat (limited to 'android/avctp.h')
-rw-r--r--android/avctp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/avctp.h b/android/avctp.h
index 99aaf95b9..a22bf1307 100644
--- a/android/avctp.h
+++ b/android/avctp.h
@@ -103,6 +103,9 @@ typedef size_t (*avctp_browsing_pdu_cb) (struct avctp *session,
typedef void (*avctp_destroy_cb_t) (void *user_data);
struct avctp *avctp_new(int fd, size_t imtu, size_t omtu, uint16_t version);
+void avctp_set_destroy_cb(struct avctp *session, avctp_destroy_cb_t cb,
+ void *user_data);
+
int avctp_init_uinput(struct avctp *session, const char *name,
const char *address);
int avctp_connect_browsing(struct avctp *session, int fd, size_t imtu,