From 96101a1231a4ddfeb40fd738a24e108a3a904048 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 28 Jan 2010 22:18:41 +0100 Subject: Global renames due to project rename to libimobiledevice --- dev/msyncclient.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'dev/msyncclient.c') 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 #include -#include -#include -#include +#include +#include +#include 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; } -- cgit v1.1-32-gdbae