diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-08 16:23:38 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-15 11:13:38 +0300 |
commit | 8679e400513e504c5b52cd9eac8c159ada64fd19 (patch) | |
tree | 48bddfc9013b13b06a6db42a48c527826988732a /android/avctp.h | |
parent | 14e46aae16fcc80d469bed2d444ac6c68cd6c4b9 (diff) | |
download | bluez-8679e400513e504c5b52cd9eac8c159ada64fd19.tar.gz |
android/avctp: Make avctp_send_vendor_req to take struct iovec
This makes it possible to pass data without copying.
Diffstat (limited to 'android/avctp.h')
-rw-r--r-- | android/avctp.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/android/avctp.h b/android/avctp.h index 6e6bfad31..1b15398e7 100644 --- a/android/avctp.h +++ b/android/avctp.h @@ -166,12 +166,11 @@ bool avctp_unregister_browsing_pdu_handler(struct avctp *session, int avctp_send_passthrough(struct avctp *session, uint8_t op, uint8_t *params, size_t params_len); -int avctp_send_vendordep(struct avctp *session, uint8_t transaction, +int avctp_send_vendor(struct avctp *session, uint8_t transaction, uint8_t code, uint8_t subunit, uint8_t *operands, size_t operand_count); -int avctp_send_vendordep_req(struct avctp *session, uint8_t code, - uint8_t subunit, uint8_t *operands, - size_t operand_count, +int avctp_send_vendor_req(struct avctp *session, uint8_t code, uint8_t subunit, + const struct iovec *iov, int iov_cnt, avctp_rsp_cb func, void *user_data); int avctp_send_browsing_req(struct avctp *session, const struct iovec *iov, int iov_cnt, |