diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/preflight.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/preflight.c b/src/preflight.c index c74e49d..0eea179 100644 --- a/src/preflight.c +++ b/src/preflight.c @@ -49,8 +49,10 @@ enum connection_type { struct idevice_private { char *udid; + uint32_t mux_id; enum connection_type conn_type; void *conn_data; + int version; }; struct cb_data { @@ -123,8 +125,10 @@ static void* preflight_worker_handle_device_add(void* userdata) struct device_info *info = (struct device_info*)userdata; struct idevice_private *_dev = (struct idevice_private*)malloc(sizeof(struct idevice_private)); _dev->udid = strdup(info->serial); + _dev->mux_id = info->id; _dev->conn_type = CONNECTION_USBMUXD; - _dev->conn_data = (void*)(long)info->id; + _dev->conn_data = NULL; + _dev->version = 0; idevice_t dev = (idevice_t)_dev; |