diff options
| author | 2009-07-07 21:02:00 +0200 | |
|---|---|---|
| committer | 2009-07-18 10:39:42 -0700 | |
| commit | b8ce722ffaeab22e141e18907c46bbed4659d857 (patch) | |
| tree | b30563dacd1ef2699fe79af9695bf237e1e688aa /dev/msyncclient.c | |
| parent | ab8e29dafc0577203e6867329b1d3ff9095a4fb2 (diff) | |
| download | libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.gz libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.bz2 | |
Cleanup lockdown request API and fix docs, tools, bindings and exports
Diffstat (limited to 'dev/msyncclient.c')
| -rw-r--r-- | dev/msyncclient.c | 12 |
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 | ||
| 30 | int main(int argc, char *argv[]) | 30 | int 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; |
