summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-09 05:17:38 +0100
committerGravatar Nikias Bassen2013-12-09 05:17:38 +0100
commita648e0b133a4e372544c1ddfe2e45084e2b2c50a (patch)
treec5413fdf1cd51b1027280c111cc87b5a9208932f
parent4f695aa45972b2d13eecaa0f97a34c7530bfc8c5 (diff)
downloadusbmuxd-a648e0b133a4e372544c1ddfe2e45084e2b2c50a.tar.gz
usbmuxd-a648e0b133a4e372544c1ddfe2e45084e2b2c50a.tar.bz2
client: also add DeviceID to main dictionary for Attached message
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 65dc4ce..d902591 100644
--- a/src/client.c
+++ b/src/client.c
@@ -251,6 +251,7 @@ static int notify_device_add(struct mux_client *client, struct device_info *dev)
uint32_t xmlsize = 0;
plist_t dict = plist_new_dict();
plist_dict_insert_item(dict, "MessageType", plist_new_string("Attached"));
+ plist_dict_insert_item(dict, "DeviceID", plist_new_uint(dev->id));
plist_t props = plist_new_dict();
// TODO: get current usb speed
plist_dict_insert_item(props, "ConnectionSpeed", plist_new_uint(480000000));