summaryrefslogtreecommitdiffstats
path: root/dev/msyncclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev/msyncclient.c')
-rw-r--r--dev/msyncclient.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/msyncclient.c b/dev/msyncclient.c
index e3bb0c2..e06a5fe 100644
--- a/dev/msyncclient.c
+++ b/dev/msyncclient.c
@@ -25,12 +25,12 @@
25#include <usb.h> 25#include <usb.h>
26 26
27#include <libiphone/libiphone.h> 27#include <libiphone/libiphone.h>
28 28#include <libiphone/lockdown.h>
29 29
30int main(int argc, char *argv[]) 30int main(int argc, char *argv[])
31{ 31{
32 int bytes = 0, port = 0, i = 0; 32 int port = 0;
33 iphone_lckd_client_t control = NULL; 33 lockdownd_client_t client = NULL;
34 iphone_device_t phone = NULL; 34 iphone_device_t phone = NULL;
35 35
36 if (argc > 1 && !strcasecmp(argv[1], "--debug")) 36 if (argc > 1 && !strcasecmp(argv[1], "--debug"))
@@ -42,12 +42,12 @@ int main(int argc, char *argv[])
42 return -1; 42 return -1;
43 } 43 }
44 44
45 if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) { 45 if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) {
46 iphone_free_device(phone); 46 iphone_free_device(phone);
47 return -1; 47 return -1;
48 } 48 }
49 49
50 iphone_lckd_start_service(control, "com.apple.mobilesync", &port); 50 lockdownd_start_service(client, "com.apple.mobilesync", &port);
51 51
52 if (port) { 52 if (port) {
53 iphone_msync_client_t msync = NULL; 53 iphone_msync_client_t msync = NULL;
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
62 62
63 printf("All done.\n"); 63 printf("All done.\n");
64 64
65 iphone_lckd_free_client(control); 65 lockdownd_free_client(client);
66 iphone_free_device(phone); 66 iphone_free_device(phone);
67 67
68 return 0; 68 return 0;