diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-23 17:55:20 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-26 16:19:24 -0800 |
commit | 5826775ee88f195940e673a2841a141559fb46c3 (patch) | |
tree | 0baaa07fac5b350ec6ffdd89955ef31f5bdfa3d6 /android/avctp.h | |
parent | 538237b2993be670f8f7c80b9bdc7ca2f8d73252 (diff) | |
download | bluez-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.h | 3 |
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, |