summaryrefslogtreecommitdiffstats
path: root/tools/idevicescreenshot.c
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 /tools/idevicescreenshot.c
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 'tools/idevicescreenshot.c')
-rw-r--r--tools/idevicescreenshot.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/idevicescreenshot.c b/tools/idevicescreenshot.c
index 31717dd..8f75fd1 100644
--- a/tools/idevicescreenshot.c
+++ b/tools/idevicescreenshot.c
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
uint16_t port = 0;
int result = -1;
int i;
- char *uuid = NULL;
+ char *udid = NULL;
/* parse cmdline args */
for (i = 1; i < argc; i++) {
@@ -49,13 +49,13 @@ int main(int argc, char **argv)
idevice_set_debug_level(1);
continue;
}
- else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) {
+ else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) {
i++;
if (!argv[i] || (strlen(argv[i]) != 40)) {
print_usage(argc, argv);
return 0;
}
- uuid = strdup(argv[i]);
+ udid = strdup(argv[i]);
continue;
}
else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
@@ -68,15 +68,15 @@ int main(int argc, char **argv)
}
}
- if (IDEVICE_E_SUCCESS != idevice_new(&device, uuid)) {
+ if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) {
printf("No device found, is it plugged in?\n");
- if (uuid) {
- free(uuid);
+ if (udid) {
+ free(udid);
}
return -1;
}
- if (uuid) {
- free(uuid);
+ if (udid) {
+ free(udid);
}
if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lckd, NULL)) {
@@ -133,7 +133,7 @@ void print_usage(int argc, char **argv)
printf("NOTE: A mounted developer disk image is required on the device, otherwise\n");
printf("the screenshotr service is not available.\n\n");
printf(" -d, --debug\t\tenable communication debugging\n");
- printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n");
+ printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
printf(" -h, --help\t\tprints usage information\n");
printf("\n");
}