summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-03-22 16:07:07 +0100
committerGravatar Martin Szulecki2012-03-22 16:07:07 +0100
commit7457346a7ad7dddc0188cd1cd6fc5920aabfe39a (patch)
tree4d9aa158fc2fb1e05d3349ca8a5ec22207a9a7e4 /dev
parent0331050438d1bd5824237d13240a766a9b503b55 (diff)
downloadlibimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.gz
libimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.bz2
Mass replace UUID by UDID, which is the correct term for it
Diffstat (limited to 'dev')
-rw-r--r--dev/housearresttest.c10
-rw-r--r--dev/ideviceclient.c10
-rw-r--r--dev/lckdclient.c10
3 files changed, 15 insertions, 15 deletions
diff --git a/dev/housearresttest.c b/dev/housearresttest.c
index 7282a8c..951ebe4 100644
--- a/dev/housearresttest.c
+++ b/dev/housearresttest.c
@@ -35,7 +35,7 @@ static void print_usage(int argc, char **argv)
35 printf("Usage: %s [OPTIONS] APPID\n", (name ? name + 1: argv[0])); 35 printf("Usage: %s [OPTIONS] APPID\n", (name ? name + 1: argv[0]));
36 printf("Test the house_arrest service.\n\n"); 36 printf("Test the house_arrest service.\n\n");
37 printf(" -d, --debug\t\tenable communication debugging\n"); 37 printf(" -d, --debug\t\tenable communication debugging\n");
38 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); 38 printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
39 printf(" -t, --test\t\ttest creating, writing, and deleting a file\n"); 39 printf(" -t, --test\t\ttest creating, writing, and deleting a file\n");
40 printf(" -h, --help\t\tprints usage information\n"); 40 printf(" -h, --help\t\tprints usage information\n");
41 printf("\n"); 41 printf("\n");
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
48 house_arrest_client_t hac = NULL; 48 house_arrest_client_t hac = NULL;
49 house_arrest_error_t res; 49 house_arrest_error_t res;
50 int i; 50 int i;
51 char *uuid = NULL; 51 char *udid = NULL;
52 const char *appid = NULL; 52 const char *appid = NULL;
53 int test_file_io = 0; 53 int test_file_io = 0;
54 54
@@ -58,13 +58,13 @@ int main(int argc, char **argv)
58 idevice_set_debug_level(1); 58 idevice_set_debug_level(1);
59 continue; 59 continue;
60 } 60 }
61 else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { 61 else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) {
62 i++; 62 i++;
63 if (!argv[i] || (strlen(argv[i]) != 40)) { 63 if (!argv[i] || (strlen(argv[i]) != 40)) {
64 print_usage(argc, argv); 64 print_usage(argc, argv);
65 return 0; 65 return 0;
66 } 66 }
67 uuid = strdup(argv[i]); 67 udid = strdup(argv[i]);
68 continue; 68 continue;
69 } 69 }
70 else if (!strcmp(argv[i], "-t") || !strcmp(argv[i], "--test")) { 70 else if (!strcmp(argv[i], "-t") || !strcmp(argv[i], "--test")) {
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
86 return 0; 86 return 0;
87 } 87 }
88 88
89 if (idevice_new(&dev, uuid) != IDEVICE_E_SUCCESS) { 89 if (idevice_new(&dev, udid) != IDEVICE_E_SUCCESS) {
90 printf("no device connected?!\n"); 90 printf("no device connected?!\n");
91 goto leave_cleanup; 91 goto leave_cleanup;
92 } 92 }
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c
index c7bde4d..d467ee8 100644
--- a/dev/ideviceclient.c
+++ b/dev/ideviceclient.c
@@ -83,12 +83,12 @@ int main(int argc, char *argv[])
83 return -1; 83 return -1;
84 } 84 }
85 85
86 char *uuid = NULL; 86 char *udid = NULL;
87 if (IDEVICE_E_SUCCESS == idevice_get_uuid(phone, &uuid)) { 87 if (IDEVICE_E_SUCCESS == idevice_get_udid(phone, &udid)) {
88 printf("DeviceUniqueID : %s\n", uuid); 88 printf("DeviceUniqueID : %s\n", udid);
89 } 89 }
90 if (uuid) 90 if (udid)
91 free(uuid); 91 free(udid);
92 92
93 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceclient")) { 93 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "ideviceclient")) {
94 idevice_free(phone); 94 idevice_free(phone);
diff --git a/dev/lckdclient.c b/dev/lckdclient.c
index 5ca72f8..cc89634 100644
--- a/dev/lckdclient.c
+++ b/dev/lckdclient.c
@@ -88,12 +88,12 @@ int main(int argc, char *argv[])
88 return -1; 88 return -1;
89 } 89 }
90 90
91 char *uuid = NULL; 91 char *udid = NULL;
92 if (IDEVICE_E_SUCCESS == idevice_get_uuid(phone, &uuid)) { 92 if (IDEVICE_E_SUCCESS == idevice_get_udid(phone, &udid)) {
93 printf("DeviceUniqueID : %s\n", uuid); 93 printf("DeviceUniqueID : %s\n", udid);
94 } 94 }
95 if (uuid) 95 if (udid)
96 free(uuid); 96 free(udid);
97 97
98 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "lckdclient")) { 98 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "lckdclient")) {
99 idevice_free(phone); 99 idevice_free(phone);