diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/idevice.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index d5817c6..e3cbb19 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AM_PROG_CC_C_O AC_PROG_LIBTOOL # Checks for libraries. -PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 0.1.4) +PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 1.0.8) PKG_CHECK_MODULES(libplist, libplist >= 1.8) PKG_CHECK_MODULES(libplistmm, libplist++ >= 1.8) AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) diff --git a/src/idevice.c b/src/idevice.c index a6091f2..91d67e6 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -49,7 +49,7 @@ static void usbmux_event_cb(const usbmuxd_event_t *event, void *user_data) idevice_event_t ev; ev.event = event->event; - ev.udid = event->device.uuid; + ev.udid = event->device.udid; ev.conn_type = CONNECTION_USBMUXD; if (event_cb) { @@ -122,7 +122,7 @@ idevice_error_t idevice_get_device_list(char ***devices, int *count) for (i = 0; dev_list[i].handle > 0; i++) { newlist = realloc(*devices, sizeof(char*) * (newcount+1)); - newlist[newcount++] = strdup(dev_list[i].uuid); + newlist[newcount++] = strdup(dev_list[i].udid); *devices = newlist; } usbmuxd_device_list_free(&dev_list); @@ -171,10 +171,10 @@ idevice_error_t idevice_device_list_free(char **devices) idevice_error_t idevice_new(idevice_t * device, const char *udid) { usbmuxd_device_info_t muxdev; - int res = usbmuxd_get_device_by_uuid(udid, &muxdev); + int res = usbmuxd_get_device_by_udid(udid, &muxdev); if (res > 0) { idevice_t phone = (idevice_t) malloc(sizeof(struct idevice_private)); - phone->udid = strdup(muxdev.uuid); + phone->udid = strdup(muxdev.udid); phone->conn_type = CONNECTION_USBMUXD; phone->conn_data = (void*)(long)muxdev.handle; *device = phone; |