summaryrefslogtreecommitdiffstats
path: root/tools/iphoneinfo.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-09-10 13:28:13 +0200
committerGravatar Martin Szulecki2009-09-12 11:41:38 +0200
commit1f6282ffddec7012df82fa929dfe72cfc74b063a (patch)
tree452c927c07806855f360ee9803111a1f72e05d3c /tools/iphoneinfo.c
parent26ce10634d277df51c4e9c2bd61b409df3f5b060 (diff)
downloadlibimobiledevice-1f6282ffddec7012df82fa929dfe72cfc74b063a.tar.gz
libimobiledevice-1f6282ffddec7012df82fa929dfe72cfc74b063a.tar.bz2
Public API rework, extension and adaption to latest libusbmuxd-1.0 API.
Diffstat (limited to 'tools/iphoneinfo.c')
-rw-r--r--tools/iphoneinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iphoneinfo.c b/tools/iphoneinfo.c
index 7e275b2..16a1069 100644
--- a/tools/iphoneinfo.c
+++ b/tools/iphoneinfo.c
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
121 } 121 }
122 122
123 if (uuid[0] != 0) { 123 if (uuid[0] != 0) {
124 ret = iphone_get_device_by_uuid(&phone, uuid); 124 ret = iphone_device_new(&phone, uuid);
125 if (ret != IPHONE_E_SUCCESS) { 125 if (ret != IPHONE_E_SUCCESS) {
126 printf("No device found with uuid %s, is it plugged in?\n", uuid); 126 printf("No device found with uuid %s, is it plugged in?\n", uuid);
127 return -1; 127 return -1;
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
129 } 129 }
130 else 130 else
131 { 131 {
132 ret = iphone_get_device(&phone); 132 ret = iphone_device_new(&phone, NULL);
133 if (ret != IPHONE_E_SUCCESS) { 133 if (ret != IPHONE_E_SUCCESS) {
134 printf("No device found, is it plugged in?\n"); 134 printf("No device found, is it plugged in?\n");
135 return -1; 135 return -1;