diff options
| author | 2009-05-18 22:29:39 +0200 | |
|---|---|---|
| committer | 2009-05-18 18:47:20 -0700 | |
| commit | 8eaac0513bfb238edec22d46320669f5c9c76542 (patch) | |
| tree | 2db842339bf525d67017525bcbd3f4d35181e5ca /dev/iphoneinfo.c | |
| parent | dca1758c4f9602fc240c6a7c9ae45839e154d15f (diff) | |
| download | libimobiledevice-8eaac0513bfb238edec22d46320669f5c9c76542.tar.gz libimobiledevice-8eaac0513bfb238edec22d46320669f5c9c76542.tar.bz2 | |
Make use of usbmuxd and remove libusb dependencies
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'dev/iphoneinfo.c')
| -rw-r--r-- | dev/iphoneinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c index 4995b9b..409ad2d 100644 --- a/dev/iphoneinfo.c +++ b/dev/iphoneinfo.c | |||
| @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) | |||
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | if (bus_n != -1) { | 65 | /* if (bus_n != -1) { |
| 66 | ret = iphone_get_specific_device(bus_n, dev_n, &phone); | 66 | ret = iphone_get_specific_device(bus_n, dev_n, &phone); |
| 67 | if (ret != IPHONE_E_SUCCESS) { | 67 | if (ret != IPHONE_E_SUCCESS) { |
| 68 | printf("No device found for usb bus %d and dev %d, is it plugged in?\n", bus_n, dev_n); | 68 | printf("No device found for usb bus %d and dev %d, is it plugged in?\n", bus_n, dev_n); |
| @@ -70,13 +70,13 @@ int main(int argc, char *argv[]) | |||
| 70 | } | 70 | } |
| 71 | } | 71 | } |
| 72 | else | 72 | else |
| 73 | { | 73 | {*/ |
| 74 | ret = iphone_get_device(&phone); | 74 | ret = iphone_get_device(&phone); |
| 75 | if (ret != IPHONE_E_SUCCESS) { | 75 | if (ret != IPHONE_E_SUCCESS) { |
| 76 | printf("No device found, is it plugged in?\n"); | 76 | printf("No device found, is it plugged in?\n"); |
| 77 | return -1; | 77 | return -1; |
| 78 | } | 78 | } |
| 79 | } | 79 | /* }*/ |
| 80 | 80 | ||
| 81 | if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) { | 81 | if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) { |
| 82 | iphone_free_device(phone); | 82 | iphone_free_device(phone); |
