summaryrefslogtreecommitdiffstats
path: root/dev/main.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/main.c
parentd11abfb48218a37d9c66831ebec8b0a736d5385f (diff)
downloadlibimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.gz
libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.bz2
Update lockdown API and introduce new error codes
Diffstat (limited to 'dev/main.c')
-rw-r--r--dev/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/main.c b/dev/main.c
index 33c60f9..69b0b80 100644
--- a/dev/main.c
+++ b/dev/main.c
@@ -87,14 +87,14 @@ int main(int argc, char *argv[])
87 if (uuid) 87 if (uuid)
88 free(uuid); 88 free(uuid);
89 89
90 if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { 90 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
91 iphone_free_device(phone); 91 iphone_free_device(phone);
92 printf("Exiting.\n"); 92 printf("Exiting.\n");
93 return -1; 93 return -1;
94 } 94 }
95 95
96 char *nnn = NULL; 96 char *nnn = NULL;
97 if (IPHONE_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) { 97 if (LOCKDOWN_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) {
98 printf("DeviceName : %s\n", nnn); 98 printf("DeviceName : %s\n", nnn);
99 free(nnn); 99 free(nnn);
100 } 100 }
@@ -248,7 +248,7 @@ int main(int argc, char *argv[])
248 248
249 printf("All done.\n"); 249 printf("All done.\n");
250 250
251 lockdownd_free_client(client); 251 lockdownd_client_free(client);
252 iphone_free_device(phone); 252 iphone_free_device(phone);
253 253
254 return 0; 254 return 0;