Diff between f59732aefc2a2eec0811f51db689546536a71b8b and 8fb123e8d90117b845f944fb202b32a1b5a740da

Changed Files

File Additions Deletions Status
android/avctp.c +12 -0 modified
android/avctp.h +2 -0 modified

Full Patch

diff --git a/android/avctp.c b/android/avctp.c
index 94f84ad..7098fc2 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;
diff --git a/android/avctp.h b/android/avctp.h
index b395188..2b33858 100644
--- a/android/avctp.h
+++ b/android/avctp.h
@@ -172,6 +172,8 @@ int avctp_send_vendor(struct avctp *session, uint8_t transaction,
 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(struct avctp *session, uint8_t transaction,
+					const struct iovec *iov, int iov_cnt);
 int avctp_send_browsing_req(struct avctp *session,
 				const struct iovec *iov, int iov_cnt,
 				avctp_browsing_rsp_cb func, void *user_data);