diff options
author | Martin Szulecki | 2009-07-07 21:02:00 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-07-07 21:02:00 +0200 |
commit | 62a6f558ac7ca7a9b83c2ed810929732c02bbc9d (patch) | |
tree | 4e78a77238af4d96e00f5b16b7a276f9a7db91f1 /dev/msyncclient.c | |
parent | a1e2fec59eb7d0d2a3adbd4691b3ea2ee1302921 (diff) | |
download | libimobiledevice-62a6f558ac7ca7a9b83c2ed810929732c02bbc9d.tar.gz libimobiledevice-62a6f558ac7ca7a9b83c2ed810929732c02bbc9d.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 @@ #include <usb.h> #include <libiphone/libiphone.h> - +#include <libiphone/lockdown.h> int main(int argc, char *argv[]) { - int bytes = 0, port = 0, i = 0; - iphone_lckd_client_t control = NULL; + int port = 0; + lockdownd_client_t client = NULL; iphone_device_t phone = NULL; if (argc > 1 && !strcasecmp(argv[1], "--debug")) @@ -42,12 +42,12 @@ int main(int argc, char *argv[]) return -1; } - if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) { + if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { iphone_free_device(phone); return -1; } - iphone_lckd_start_service(control, "com.apple.mobilesync", &port); + lockdownd_start_service(client, "com.apple.mobilesync", &port); if (port) { iphone_msync_client_t msync = NULL; @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) printf("All done.\n"); - iphone_lckd_free_client(control); + lockdownd_free_client(client); iphone_free_device(phone); return 0; |