summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am12
-rw-r--r--src/ideviceinstaller.c (renamed from src/iphoneinstaller.c)24
2 files changed, 18 insertions, 18 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 028e2e1..4d90181 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,17 +1,17 @@
1AM_CFLAGS = \ 1AM_CFLAGS = \
2 $(GLOBAL_CFLAGS) \ 2 $(GLOBAL_CFLAGS) \
3 $(libiphone_CFLAGS) \ 3 $(libimobiledevice_CFLAGS) \
4 $(libplist_CFLAGS) \ 4 $(libplist_CFLAGS) \
5 $(libzip_CFLAGS) 5 $(libzip_CFLAGS)
6 6
7AM_LDFLAGS = \ 7AM_LDFLAGS = \
8 $(libiphone_LIBS) \ 8 $(libimobiledevice_LIBS) \
9 $(libplist_LIBS) \ 9 $(libplist_LIBS) \
10 $(libzip_LIBS) 10 $(libzip_LIBS)
11 11
12bin_PROGRAMS = iphoneinstaller 12bin_PROGRAMS = ideviceinstaller
13 13
14iphoneinstaller_SOURCES = iphoneinstaller.c 14ideviceinstaller_SOURCES = ideviceinstaller.c
15iphoneinstaller_CFLAGS = $(AM_CFLAGS) 15ideviceinstaller_CFLAGS = $(AM_CFLAGS)
16iphoneinstaller_LDFLAGS = $(AM_LDFLAGS) 16ideviceinstaller_LDFLAGS = $(AM_LDFLAGS)
17 17
diff --git a/src/iphoneinstaller.c b/src/ideviceinstaller.c
index 04ac341..808a1e9 100644
--- a/src/iphoneinstaller.c
+++ b/src/ideviceinstaller.c
@@ -1,5 +1,5 @@
1/** 1/**
2 * iphoneinstaller -- Manage iPhone/iPod apps 2 * ideviceinstaller -- Manage iPhone/iPod apps
3 * 3 *
4 * Copyright (C) 2010 Nikias Bassen <nikias@gmx.li> 4 * Copyright (C) 2010 Nikias Bassen <nikias@gmx.li>
5 * 5 *
@@ -29,11 +29,11 @@
29#include <errno.h> 29#include <errno.h>
30#include <time.h> 30#include <time.h>
31 31
32#include <libiphone/libiphone.h> 32#include <libimobiledevice/libimobiledevice.h>
33#include <libiphone/lockdown.h> 33#include <libimobiledevice/lockdown.h>
34#include <libiphone/installation_proxy.h> 34#include <libimobiledevice/installation_proxy.h>
35#include <libiphone/notification_proxy.h> 35#include <libimobiledevice/notification_proxy.h>
36#include <libiphone/afc.h> 36#include <libimobiledevice/afc.h>
37 37
38#include <plist/plist.h> 38#include <plist/plist.h>
39 39
@@ -296,7 +296,7 @@ static void parse_opts(int argc, char **argv)
296 } 296 }
297 break; 297 break;
298 case 'D': 298 case 'D':
299 iphone_set_debug_level(1); 299 idevice_set_debug_level(1);
300 break; 300 break;
301 default: 301 default:
302 print_usage(argc, argv); 302 print_usage(argc, argv);
@@ -312,7 +312,7 @@ static void parse_opts(int argc, char **argv)
312 312
313int main(int argc, char **argv) 313int main(int argc, char **argv)
314{ 314{
315 iphone_device_t phone = NULL; 315 idevice_t phone = NULL;
316 lockdownd_client_t client = NULL; 316 lockdownd_client_t client = NULL;
317 instproxy_client_t ipc = NULL; 317 instproxy_client_t ipc = NULL;
318 np_client_t np = NULL; 318 np_client_t np = NULL;
@@ -325,12 +325,12 @@ int main(int argc, char **argv)
325 argc -= optind; 325 argc -= optind;
326 argv += optind; 326 argv += optind;
327 327
328 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, uuid)) { 328 if (IDEVICE_E_SUCCESS != idevice_new(&phone, uuid)) {
329 fprintf(stderr, "No iPhone found, is it plugged in?\n"); 329 fprintf(stderr, "No iPhone found, is it plugged in?\n");
330 return -1; 330 return -1;
331 } 331 }
332 332
333 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { 333 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceinstaller")) {
334 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); 334 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
335 goto leave_cleanup; 335 goto leave_cleanup;
336 } 336 }
@@ -950,7 +950,7 @@ run_again:
950 remove_archive_mode = 1; 950 remove_archive_mode = 1;
951 free(options); 951 free(options);
952 options = NULL; 952 options = NULL;
953 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { 953 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceinstaller")) {
954 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); 954 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
955 goto leave_cleanup; 955 goto leave_cleanup;
956 } 956 }
@@ -993,7 +993,7 @@ run_again:
993 if (client) { 993 if (client) {
994 lockdownd_client_free(client); 994 lockdownd_client_free(client);
995 } 995 }
996 iphone_device_free(phone); 996 idevice_free(phone);
997 997
998 if (uuid) { 998 if (uuid) {
999 free(uuid); 999 free(uuid);