summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--configure.ac4
-rw-r--r--src/Makefile.am12
-rw-r--r--src/ideviceinstaller.c (renamed from src/iphoneinstaller.c)24
4 files changed, 21 insertions, 22 deletions
diff --git a/.gitignore b/.gitignore
index 58b2f17..589f286 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,5 +30,4 @@ libtool
30*Makefile 30*Makefile
31stamp-h1 31stamp-h1
32src/.libs 32src/.libs
33src/sbmanager 33src/ideviceinstaller
34data/data.h
diff --git a/configure.ac b/configure.ac
index 790e004..5a6073f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
2# Process this file with autoconf to produce a configure script. 2# Process this file with autoconf to produce a configure script.
3 3
4AC_PREREQ(2.61) 4AC_PREREQ(2.61)
5AC_INIT(iphoneinstaller, 1.0.0, nospam@nowhere.com) 5AC_INIT(ideviceinstaller, 1.0.0, nospam@nowhere.com)
6AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip]) 6AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
8AC_CONFIG_SRCDIR([src/]) 8AC_CONFIG_SRCDIR([src/])
@@ -15,7 +15,7 @@ AM_PROG_CC_C_O
15AC_PROG_LIBTOOL 15AC_PROG_LIBTOOL
16 16
17# Checks for libraries. 17# Checks for libraries.
18PKG_CHECK_MODULES(libiphone, libiphone-1.0) 18PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 0.9.7)
19PKG_CHECK_MODULES(libplist, libplist >= 0.15) 19PKG_CHECK_MODULES(libplist, libplist >= 0.15)
20PKG_CHECK_MODULES(libzip, libzip >= 0.8) 20PKG_CHECK_MODULES(libzip, libzip >= 0.8)
21 21
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);