summaryrefslogtreecommitdiffstats
path: root/dev/iphone_id.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-07 21:02:00 +0200
committerGravatar Matt Colyer2009-07-18 10:39:42 -0700
commitb8ce722ffaeab22e141e18907c46bbed4659d857 (patch)
treeb30563dacd1ef2699fe79af9695bf237e1e688aa /dev/iphone_id.c
parentab8e29dafc0577203e6867329b1d3ff9095a4fb2 (diff)
downloadlibimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.gz
libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.bz2
Cleanup lockdown request API and fix docs, tools, bindings and exports
Diffstat (limited to 'dev/iphone_id.c')
-rw-r--r--dev/iphone_id.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/iphone_id.c b/dev/iphone_id.c
index c191608..15081f0 100644
--- a/dev/iphone_id.c
+++ b/dev/iphone_id.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <getopt.h>
#include <libiphone/libiphone.h>
+#include <libiphone/lockdown.h>
#include <usbmuxd.h>
static void usage()
@@ -18,7 +19,7 @@ static void usage()
int main(int argc, char **argv)
{
iphone_device_t phone = NULL;
- iphone_lckd_client_t control = NULL;
+ lockdownd_client_t client = NULL;
usbmuxd_scan_result *dev_list;
char *devname = NULL;
int ret = 0;
@@ -67,18 +68,18 @@ int main(int argc, char **argv)
return -2;
}
- if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) {
+ if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) {
iphone_free_device(phone);
fprintf(stderr, "ERROR: Connecting to device failed!\n");
return -2;
}
- if ((IPHONE_E_SUCCESS != lockdownd_get_device_name(control, &devname)) || !devname) {
+ if ((IPHONE_E_SUCCESS != lockdownd_get_device_name(client, &devname)) || !devname) {
fprintf(stderr, "ERROR: Could not get device name!\n");
ret = -2;
}
- iphone_lckd_free_client(control);
+ lockdownd_free_client(client);
iphone_free_device(phone);
if (ret == 0) {