diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-24 16:15:02 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-25 15:05:23 +0300 |
commit | 8fb123e8d90117b845f944fb202b32a1b5a740da (patch) | |
tree | 9e35fc80140f99319709bb78ffe29017e9f646ec /android/avctp.c | |
parent | f59732aefc2a2eec0811f51db689546536a71b8b (diff) | |
download | bluez-8fb123e8d90117b845f944fb202b32a1b5a740da.tar.gz |
android/avctp: Add avctp_send_browsing function
This function can be used to send responses over browsing channel.
Diffstat (limited to 'android/avctp.c')
-rw-r--r-- | android/avctp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/avctp.c b/android/avctp.c index 94f84ad4d..7098fc25e 100644 --- a/android/avctp.c +++ b/android/avctp.c @@ -1208,6 +1208,18 @@ int avctp_send_browsing_req(struct avctp *session, return 0; } +int avctp_send_browsing(struct avctp *session, uint8_t transaction, + const struct iovec *iov, int iov_cnt) +{ + struct avctp_channel *browsing = session->browsing; + + if (browsing == NULL) + return -ENOTCONN; + + return avctp_browsing_send(browsing, transaction, AVCTP_RESPONSE, + iov, iov_cnt); +} + static const char *op2str(uint8_t op) { int i; |