summaryrefslogtreecommitdiffstats
path: root/dev/msyncclient.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-28 22:18:41 +0100
committerGravatar Martin Szulecki2010-01-29 02:16:00 +0100
commit96101a1231a4ddfeb40fd738a24e108a3a904048 (patch)
tree65a8f54354d9acbbba93dac2c8602d07e469482c /dev/msyncclient.c
parent45b88ae3956de089fdc35605910f1359a1d3961c (diff)
downloadlibimobiledevice-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.c20
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 @@
1/* 1/*
2 * msyncclient.c 2 * msyncclient.c
3 * Rudimentary interface to the MobileSync iPhone 3 * Rudimentary interface to the MobileSync service.
4 * 4 *
5 * Copyright (c) 2009 Jonathan Beck All Rights Reserved. 5 * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6 * 6 *
@@ -23,9 +23,9 @@
23#include <string.h> 23#include <string.h>
24#include <errno.h> 24#include <errno.h>
25 25
26#include <libiphone/libiphone.h> 26#include <libimobiledevice/libimobiledevice.h>
27#include <libiphone/lockdown.h> 27#include <libimobiledevice/lockdown.h>
28#include <libiphone/mobilesync.h> 28#include <libimobiledevice/mobilesync.h>
29 29
30static char check_string(plist_t node, char* string) 30static char check_string(plist_t node, char* string)
31{ 31{
@@ -143,18 +143,18 @@ int main(int argc, char *argv[])
143{ 143{
144 uint16_t port = 0; 144 uint16_t port = 0;
145 lockdownd_client_t client = NULL; 145 lockdownd_client_t client = NULL;
146 iphone_device_t phone = NULL; 146 idevice_t phone = NULL;
147 147
148 if (argc > 1 && !strcasecmp(argv[1], "--debug")) 148 if (argc > 1 && !strcasecmp(argv[1], "--debug"))
149 iphone_set_debug_level(1); 149 idevice_set_debug_level(1);
150 150
151 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { 151 if (IDEVICE_E_SUCCESS != idevice_new(&phone, NULL)) {
152 printf("No iPhone found, is it plugged in?\n"); 152 printf("No device found, is it plugged in?\n");
153 return -1; 153 return -1;
154 } 154 }
155 155
156 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { 156 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) {
157 iphone_device_free(phone); 157 idevice_free(phone);
158 return -1; 158 return -1;
159 } 159 }
160 160
@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
174 printf("All done.\n"); 174 printf("All done.\n");
175 175
176 lockdownd_client_free(client); 176 lockdownd_client_free(client);
177 iphone_device_free(phone); 177 idevice_free(phone);
178 178
179 return 0; 179 return 0;
180} 180}