rendered paste bodycommit 18571fa39ae34d8f3422b4c752ce77133bb70bebAuthor: Hector Martin <hector@marcansoft.com>Date: Mon Oct 19 16:50:54 2009 +0200 Fix libiphone API changediff --git a/src/itdb_iphone.c b/src/itdb_iphone.cindex fc8aebe..f4752fc 100644--- a/src/itdb_iphone.c+++ b/src/itdb_iphone.c@@ -93,7 +93,7 @@ int itdb_iphone_start_sync(Itdb_Device *device, void **prepdata) pdata_loc = g_new0 (struct itdbprep_int, 1); - if (IPHONE_E_SUCCESS != iphone_get_device_by_uuid(&pdata_loc->device, uuid)) {+ if (IPHONE_E_SUCCESS != iphone_device_new(&pdata_loc->device, uuid)) { fprintf(stderr, "No iPhone found, is it plugged in?\n"); res = -ENODEV; goto leave_with_err;diff --git a/tools/ipod-lockdown.c b/tools/ipod-lockdown.cindex f831494..5048dea 100644--- a/tools/ipod-lockdown.c+++ b/tools/ipod-lockdown.c@@ -48,7 +48,7 @@ read_sysinfo_extended_by_uuid (const char *uuid) plist_t global = NULL; plist_t ptr = NULL; - ret = iphone_get_device_by_uuid(&device, uuid);+ ret = iphone_device_new(&device, uuid); if (ret != IPHONE_E_SUCCESS) { printf("No device found with uuid %s, is it plugged in?\n", uuid); return NULL;