summaryrefslogtreecommitdiffstats
path: root/dev/filerelaytest.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-28 22:18:41 +0100
committerGravatar Martin Szulecki2010-01-29 02:16:00 +0100
commit96101a1231a4ddfeb40fd738a24e108a3a904048 (patch)
tree65a8f54354d9acbbba93dac2c8602d07e469482c /dev/filerelaytest.c
parent45b88ae3956de089fdc35605910f1359a1d3961c (diff)
downloadlibimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.gz
libimobiledevice-96101a1231a4ddfeb40fd738a24e108a3a904048.tar.bz2
Global renames due to project rename to libimobiledevice
Diffstat (limited to 'dev/filerelaytest.c')
-rw-r--r--dev/filerelaytest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c
index f7e0d07..caaa491 100644
--- a/dev/filerelaytest.c
+++ b/dev/filerelaytest.c
@@ -19,17 +19,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
-#include <libiphone/libiphone.h>
-#include <libiphone/lockdown.h>
-#include <libiphone/file_relay.h>
+#include <libimobiledevice/libimobiledevice.h>
+#include <libimobiledevice/lockdown.h>
+#include <libimobiledevice/file_relay.h>
int main(int argc, char **argv)
{
- iphone_device_t dev = NULL;
+ idevice_t dev = NULL;
lockdownd_client_t client = NULL;
file_relay_client_t frc = NULL;
- if (iphone_device_new(&dev, NULL) != IPHONE_E_SUCCESS) {
+ if (idevice_new(&dev, NULL) != IDEVICE_E_SUCCESS) {
printf("no device connected?!\n");
goto leave_cleanup;
}
@@ -56,7 +56,7 @@ int main(int argc, char **argv)
goto leave_cleanup;
}
- iphone_connection_t dump = NULL;
+ idevice_connection_t dump = NULL;
const char *sources[] = {"AppleSupport", "Network", "VPN", "WiFi", "UserDatabases", "CrashReporter", "tmp", "SystemConfiguration", NULL};
printf("Requesting");
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
FILE *f = fopen("dump.cpio.gz", "w");
setbuf(stdout, NULL);
printf("receiving ");
- while (iphone_connection_receive(dump, buf, 4096, &len) == IPHONE_E_SUCCESS) {
+ while (idevice_connection_receive(dump, buf, 4096, &len) == IDEVICE_E_SUCCESS) {
fwrite(buf, 1, len, f);
cnt += len;
printf(".", len);
@@ -101,7 +101,7 @@ leave_cleanup:
lockdownd_client_free(client);
}
if (dev) {
- iphone_device_free(dev);
+ idevice_free(dev);
}
return 0;