summaryrefslogtreecommitdiff
path: root/android/avctp.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-03-12 16:40:24 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-03-13 13:04:41 +0200
commitebf14feae967821163585bac06be9d703232d1f8 (patch)
tree42eb07151726da8eb4dd917bced5f93f5cdb36c2 /android/avctp.h
parent1701a37e5242b4bd422d92b9c1dad196a8630425 (diff)
downloadbluez-ebf14feae967821163585bac06be9d703232d1f8.tar.gz
android/avctp: Add parameters to avctp passthrough send
This allows to use vendor unique commands
Diffstat (limited to 'android/avctp.h')
-rw-r--r--android/avctp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/android/avctp.h b/android/avctp.h
index 2f419a23c..98c114269 100644
--- a/android/avctp.h
+++ b/android/avctp.h
@@ -108,6 +108,11 @@
#define AVC_BLUE 0x7c
#define AVC_YELLOW 0x7c
+#define AVC_VENDOR_UNIQUE 0x7e
+
+#define AVC_VENDOR_NEXT_GROUP 0x00
+#define AVC_VENDOR_PREV_GROUP 0x01
+
struct avctp;
typedef bool (*avctp_passthrough_cb) (struct avctp *session,
@@ -159,7 +164,8 @@ unsigned int avctp_register_browsing_pdu_handler(struct avctp *session,
bool avctp_unregister_browsing_pdu_handler(struct avctp *session,
unsigned int id);
-int avctp_send_passthrough(struct avctp *session, uint8_t op);
+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,
uint8_t code, uint8_t subunit,
uint8_t *operands, size_t operand_count);