diff options
author | Nikias Bassen | 2010-01-28 22:18:41 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-29 02:16:00 +0100 |
commit | 96101a1231a4ddfeb40fd738a24e108a3a904048 (patch) | |
tree | 65a8f54354d9acbbba93dac2c8602d07e469482c /dev/msyncclient.c | |
parent | 45b88ae3956de089fdc35605910f1359a1d3961c (diff) | |
download | libimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.gz libimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.bz2 |
Global renames due to project rename to libimobiledevice
Diffstat (limited to 'dev/msyncclient.c')
-rw-r--r-- | dev/msyncclient.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dev/msyncclient.c b/dev/msyncclient.c index 0107240..b9e39e6 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c @@ -1,6 +1,6 @@ /* * msyncclient.c - * Rudimentary interface to the MobileSync iPhone + * Rudimentary interface to the MobileSync service. * * Copyright (c) 2009 Jonathan Beck All Rights Reserved. * @@ -23,9 +23,9 @@ #include <string.h> #include <errno.h> -#include <libiphone/libiphone.h> -#include <libiphone/lockdown.h> -#include <libiphone/mobilesync.h> +#include <libimobiledevice/libimobiledevice.h> +#include <libimobiledevice/lockdown.h> +#include <libimobiledevice/mobilesync.h> static char check_string(plist_t node, char* string) { @@ -143,18 +143,18 @@ int main(int argc, char *argv[]) { uint16_t port = 0; lockdownd_client_t client = NULL; - iphone_device_t phone = NULL; + idevice_t phone = NULL; if (argc > 1 && !strcasecmp(argv[1], "--debug")) - iphone_set_debug_level(1); + idevice_set_debug_level(1); - if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { - printf("No iPhone found, is it plugged in?\n"); + if (IDEVICE_E_SUCCESS != idevice_new(&phone, NULL)) { + printf("No device found, is it plugged in?\n"); return -1; } if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { - iphone_device_free(phone); + idevice_free(phone); return -1; } @@ -174,7 +174,7 @@ int main(int argc, char *argv[]) printf("All done.\n"); lockdownd_client_free(client); - iphone_device_free(phone); + idevice_free(phone); return 0; } |