summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-02-01 21:13:53 +0100
committerGravatar Martin Szulecki2010-02-02 11:24:28 +0100
commit375a10385cfb1267d57f6ea717b235c9e2978d5a (patch)
treec8db9a56b4793cce8d8862acdbc484819e7dcd8a /src
parent1f9bf779543bf7fde74905c1f52119d234e629fe (diff)
downloadideviceinstaller-375a10385cfb1267d57f6ea717b235c9e2978d5a.tar.gz
ideviceinstaller-375a10385cfb1267d57f6ea717b235c9e2978d5a.tar.bz2
Rename project and use libimobiledevice API
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 @@
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);