diff options
author | Nikias Bassen | 2010-02-01 21:13:53 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-02-02 11:24:28 +0100 |
commit | 375a10385cfb1267d57f6ea717b235c9e2978d5a (patch) | |
tree | c8db9a56b4793cce8d8862acdbc484819e7dcd8a | |
parent | 1f9bf779543bf7fde74905c1f52119d234e629fe (diff) | |
download | ideviceinstaller-375a10385cfb1267d57f6ea717b235c9e2978d5a.tar.gz ideviceinstaller-375a10385cfb1267d57f6ea717b235c9e2978d5a.tar.bz2 |
Rename project and use libimobiledevice API
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/Makefile.am | 12 | ||||
-rw-r--r-- | src/ideviceinstaller.c (renamed from src/iphoneinstaller.c) | 24 |
4 files changed, 21 insertions, 22 deletions
@@ -30,5 +30,4 @@ libtool *Makefile stamp-h1 src/.libs -src/sbmanager -data/data.h +src/ideviceinstaller diff --git a/configure.ac b/configure.ac index 790e004..5a6073f 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT(iphoneinstaller, 1.0.0, nospam@nowhere.com) +AC_INIT(ideviceinstaller, 1.0.0, nospam@nowhere.com) AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) AC_CONFIG_SRCDIR([src/]) @@ -15,7 +15,7 @@ AM_PROG_CC_C_O AC_PROG_LIBTOOL # Checks for libraries. -PKG_CHECK_MODULES(libiphone, libiphone-1.0) +PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 0.9.7) PKG_CHECK_MODULES(libplist, libplist >= 0.15) PKG_CHECK_MODULES(libzip, libzip >= 0.8) 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 @@ AM_CFLAGS = \ $(GLOBAL_CFLAGS) \ - $(libiphone_CFLAGS) \ + $(libimobiledevice_CFLAGS) \ $(libplist_CFLAGS) \ $(libzip_CFLAGS) AM_LDFLAGS = \ - $(libiphone_LIBS) \ + $(libimobiledevice_LIBS) \ $(libplist_LIBS) \ $(libzip_LIBS) -bin_PROGRAMS = iphoneinstaller +bin_PROGRAMS = ideviceinstaller -iphoneinstaller_SOURCES = iphoneinstaller.c -iphoneinstaller_CFLAGS = $(AM_CFLAGS) -iphoneinstaller_LDFLAGS = $(AM_LDFLAGS) +ideviceinstaller_SOURCES = ideviceinstaller.c +ideviceinstaller_CFLAGS = $(AM_CFLAGS) +ideviceinstaller_LDFLAGS = $(AM_LDFLAGS) 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 @@ /** - * iphoneinstaller -- Manage iPhone/iPod apps + * ideviceinstaller -- Manage iPhone/iPod apps * * Copyright (C) 2010 Nikias Bassen <nikias@gmx.li> * @@ -29,11 +29,11 @@ #include <errno.h> #include <time.h> -#include <libiphone/libiphone.h> -#include <libiphone/lockdown.h> -#include <libiphone/installation_proxy.h> -#include <libiphone/notification_proxy.h> -#include <libiphone/afc.h> +#include <libimobiledevice/libimobiledevice.h> +#include <libimobiledevice/lockdown.h> +#include <libimobiledevice/installation_proxy.h> +#include <libimobiledevice/notification_proxy.h> +#include <libimobiledevice/afc.h> #include <plist/plist.h> @@ -296,7 +296,7 @@ static void parse_opts(int argc, char **argv) } break; case 'D': - iphone_set_debug_level(1); + idevice_set_debug_level(1); break; default: print_usage(argc, argv); @@ -312,7 +312,7 @@ static void parse_opts(int argc, char **argv) int main(int argc, char **argv) { - iphone_device_t phone = NULL; + idevice_t phone = NULL; lockdownd_client_t client = NULL; instproxy_client_t ipc = NULL; np_client_t np = NULL; @@ -325,12 +325,12 @@ int main(int argc, char **argv) argc -= optind; argv += optind; - if (IPHONE_E_SUCCESS != iphone_device_new(&phone, uuid)) { + if (IDEVICE_E_SUCCESS != idevice_new(&phone, uuid)) { fprintf(stderr, "No iPhone found, is it plugged in?\n"); return -1; } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceinstaller")) { fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); goto leave_cleanup; } @@ -950,7 +950,7 @@ run_again: remove_archive_mode = 1; free(options); options = NULL; - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceinstaller")) { fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); goto leave_cleanup; } @@ -993,7 +993,7 @@ run_again: if (client) { lockdownd_client_free(client); } - iphone_device_free(phone); + idevice_free(phone); if (uuid) { free(uuid); |