summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-09-12 19:44:51 +0200
committerGravatar Martin Szulecki2009-09-12 19:44:51 +0200
commite617375c3424ef341a172d05c58cfc4335049c44 (patch)
tree7b47c6f2b6f2ffc9c96caf0abcad4bd0fe185d99 /dev
parent1f6282ffddec7012df82fa929dfe72cfc74b063a (diff)
downloadlibimobiledevice-e617375c3424ef341a172d05c58cfc4335049c44.tar.gz
libimobiledevice-e617375c3424ef341a172d05c58cfc4335049c44.tar.bz2
Update tools to use new API
Diffstat (limited to 'dev')
-rw-r--r--dev/afccheck.c2
-rw-r--r--dev/iphoneclient.c4
-rw-r--r--dev/iphoneenterrecovery.c2
-rw-r--r--dev/lckdclient.c2
-rw-r--r--dev/msyncclient.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index b3fa102..88935a0 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
104 iphone_set_debug_mask(DBGMASK_NONE); 104 iphone_set_debug_mask(DBGMASK_NONE);
105 } 105 }
106 106
107 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { 107 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
108 printf("No iPhone found, is it plugged in?\n"); 108 printf("No iPhone found, is it plugged in?\n");
109 return 1; 109 return 1;
110 } 110 }
diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c
index bb5dfdd..d62d23f 100644
--- a/dev/iphoneclient.c
+++ b/dev/iphoneclient.c
@@ -20,9 +20,9 @@
20 */ 20 */
21 21
22#include <stdio.h> 22#include <stdio.h>
23#include <stdlib.h>
23#include <string.h> 24#include <string.h>
24#include <errno.h> 25#include <errno.h>
25#include <usb.h>
26#include <glib.h> 26#include <glib.h>
27 27
28#include <libiphone/libiphone.h> 28#include <libiphone/libiphone.h>
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
75 iphone_set_debug_mask(DBGMASK_NONE); 75 iphone_set_debug_mask(DBGMASK_NONE);
76 } 76 }
77 77
78 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { 78 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
79 printf("No iPhone found, is it plugged in?\n"); 79 printf("No iPhone found, is it plugged in?\n");
80 return -1; 80 return -1;
81 } 81 }
diff --git a/dev/iphoneenterrecovery.c b/dev/iphoneenterrecovery.c
index 2f7891c..1d4d332 100644
--- a/dev/iphoneenterrecovery.c
+++ b/dev/iphoneenterrecovery.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
68 } 68 }
69 strcpy(uuid, argv[i]); 69 strcpy(uuid, argv[i]);
70 70
71 ret = iphone_get_device_by_uuid(&phone, uuid); 71 ret = iphone_device_new(&phone, uuid);
72 if (ret != IPHONE_E_SUCCESS) { 72 if (ret != IPHONE_E_SUCCESS) {
73 printf("No device found with uuid %s, is it plugged in?\n", uuid); 73 printf("No device found with uuid %s, is it plugged in?\n", uuid);
74 return -1; 74 return -1;
diff --git a/dev/lckdclient.c b/dev/lckdclient.c
index b880253..d866435 100644
--- a/dev/lckdclient.c
+++ b/dev/lckdclient.c
@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
36 36
37 iphone_set_debug_level(1); 37 iphone_set_debug_level(1);
38 38
39 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { 39 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
40 printf("No iPhone found, is it plugged in?\n"); 40 printf("No iPhone found, is it plugged in?\n");
41 return -1; 41 return -1;
42 } 42 }
diff --git a/dev/msyncclient.c b/dev/msyncclient.c
index 5fffe7a..4b27eb7 100644
--- a/dev/msyncclient.c
+++ b/dev/msyncclient.c
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
136 if (argc > 1 && !strcasecmp(argv[1], "--debug")) 136 if (argc > 1 && !strcasecmp(argv[1], "--debug"))
137 iphone_set_debug_mask(DBGMASK_MOBILESYNC); 137 iphone_set_debug_mask(DBGMASK_MOBILESYNC);
138 138
139 if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { 139 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
140 printf("No iPhone found, is it plugged in?\n"); 140 printf("No iPhone found, is it plugged in?\n");
141 return -1; 141 return -1;
142 } 142 }