summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-03-28 12:03:16 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-28 13:16:02 +0300
commitd5f15eac21c2795a2b0163cca15524e2a013803b (patch)
tree08628c698e9143d1036c8907ad9a96f40b7e7daf /lib
parent97b4ceb85cabb22a94422fc8b993da090a2b0574 (diff)
downloadbluez-d5f15eac21c2795a2b0163cca15524e2a013803b.tar.gz
mgmtops: Add support for setting Device ID
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index f3bc6da17..c9b0f1a1e 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -311,6 +311,14 @@ struct mgmt_cp_unblock_device {
struct mgmt_addr_info addr;
} __packed;
+#define MGMT_OP_SET_DEVICE_ID 0x0028
+struct mgmt_cp_set_device_id {
+ uint16_t source;
+ uint16_t vendor;
+ uint16_t product;
+ uint16_t version;
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;
@@ -475,6 +483,7 @@ static const char *mgmt_op[] = {
"Confirm Name",
"Block Device",
"Unblock Device",
+ "Set Device ID",
};
static const char *mgmt_ev[] = {