summaryrefslogtreecommitdiffstats
path: root/dev/afccheck.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-25 02:40:25 +0200
committerGravatar Martin Szulecki2009-07-25 02:40:25 +0200
commitf5e9d76ebd74999512ab73f44fabba86879b1c1f (patch)
tree9e01e1b8bda52c04c31c5334805a530403713e08 /dev/afccheck.c
parentd11abfb48218a37d9c66831ebec8b0a736d5385f (diff)
downloadlibimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.gz
libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.bz2
Update lockdown API and introduce new error codes
Diffstat (limited to 'dev/afccheck.c')
-rw-r--r--dev/afccheck.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index 0525417..370742b 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -104,13 +104,13 @@ int main(int argc, char *argv[])
104 return 1; 104 return 1;
105 } 105 }
106 106
107 if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { 107 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
108 iphone_free_device(phone); 108 iphone_free_device(phone);
109 return 1; 109 return 1;
110 } 110 }
111 111
112 if (IPHONE_E_SUCCESS == lockdownd_start_service(client, "com.apple.afc", &port) && !port) { 112 if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, "com.apple.afc", &port) && !port) {
113 lockdownd_free_client(client); 113 lockdownd_client_free(client);
114 iphone_free_device(phone); 114 iphone_free_device(phone);
115 fprintf(stderr, "Something went wrong when starting AFC."); 115 fprintf(stderr, "Something went wrong when starting AFC.");
116 return 1; 116 return 1;
@@ -136,8 +136,7 @@ int main(int argc, char *argv[])
136 g_thread_join(threads[i]); 136 g_thread_join(threads[i]);
137 } 137 }
138 138
139 139 lockdownd_client_free(client);
140 lockdownd_free_client(client);
141 iphone_free_device(phone); 140 iphone_free_device(phone);
142 141
143 return 0; 142 return 0;