diff options
| author | 2012-03-22 16:07:07 +0100 | |
|---|---|---|
| committer | 2012-03-22 16:07:07 +0100 | |
| commit | 7457346a7ad7dddc0188cd1cd6fc5920aabfe39a (patch) | |
| tree | 4d9aa158fc2fb1e05d3349ca8a5ec22207a9a7e4 /tools/ideviceimagemounter.c | |
| parent | 0331050438d1bd5824237d13240a766a9b503b55 (diff) | |
| download | libimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.gz libimobiledevice-7457346a7ad7dddc0188cd1cd6fc5920aabfe39a.tar.bz2 | |
Mass replace UUID by UDID, which is the correct term for it
Diffstat (limited to 'tools/ideviceimagemounter.c')
| -rw-r--r-- | tools/ideviceimagemounter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index 4a650ee..a9f6142 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c | |||
| @@ -43,7 +43,7 @@ static int indent_level = 0; | |||
| 43 | 43 | ||
| 44 | static int list_mode = 0; | 44 | static int list_mode = 0; |
| 45 | static int xml_mode = 0; | 45 | static int xml_mode = 0; |
| 46 | static char *uuid = NULL; | 46 | static char *udid = NULL; |
| 47 | static char *imagetype = NULL; | 47 | static char *imagetype = NULL; |
| 48 | 48 | ||
| 49 | static const char PKG_PATH[] = "PublicStaging"; | 49 | static const char PKG_PATH[] = "PublicStaging"; |
| @@ -56,7 +56,7 @@ static void print_usage(int argc, char **argv) | |||
| 56 | name = strrchr(argv[0], '/'); | 56 | name = strrchr(argv[0], '/'); |
| 57 | printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0])); | 57 | printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0])); |
| 58 | printf("Mounts the specified disk image on the device.\n\n"); | 58 | printf("Mounts the specified disk image on the device.\n\n"); |
| 59 | printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); | 59 | printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n"); |
| 60 | printf(" -l, --list\t\tList mount information\n"); | 60 | printf(" -l, --list\t\tList mount information\n"); |
| 61 | printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n"); | 61 | printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n"); |
| 62 | printf(" -x, --xml\t\tUse XML output\n"); | 62 | printf(" -x, --xml\t\tUse XML output\n"); |
| @@ -69,7 +69,7 @@ static void parse_opts(int argc, char **argv) | |||
| 69 | { | 69 | { |
| 70 | static struct option longopts[] = { | 70 | static struct option longopts[] = { |
| 71 | {"help", 0, NULL, 'h'}, | 71 | {"help", 0, NULL, 'h'}, |
| 72 | {"uuid", 0, NULL, 'u'}, | 72 | {"udid", 0, NULL, 'u'}, |
| 73 | {"list", 0, NULL, 'l'}, | 73 | {"list", 0, NULL, 'l'}, |
| 74 | {"imagetype", 0, NULL, 't'}, | 74 | {"imagetype", 0, NULL, 't'}, |
| 75 | {"xml", 0, NULL, 'x'}, | 75 | {"xml", 0, NULL, 'x'}, |
| @@ -91,12 +91,12 @@ static void parse_opts(int argc, char **argv) | |||
| 91 | exit(0); | 91 | exit(0); |
| 92 | case 'u': | 92 | case 'u': |
| 93 | if (strlen(optarg) != 40) { | 93 | if (strlen(optarg) != 40) { |
| 94 | printf("%s: invalid UUID specified (length != 40)\n", | 94 | printf("%s: invalid UDID specified (length != 40)\n", |
| 95 | argv[0]); | 95 | argv[0]); |
| 96 | print_usage(argc, argv); | 96 | print_usage(argc, argv); |
| 97 | exit(2); | 97 | exit(2); |
| 98 | } | 98 | } |
| 99 | uuid = strdup(optarg); | 99 | udid = strdup(optarg); |
| 100 | break; | 100 | break; |
| 101 | case 'l': | 101 | case 'l': |
| 102 | list_mode = 1; | 102 | list_mode = 1; |
| @@ -295,7 +295,7 @@ int main(int argc, char **argv) | |||
| 295 | } | 295 | } |
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | if (IDEVICE_E_SUCCESS != idevice_new(&device, uuid)) { | 298 | if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) { |
| 299 | printf("No device found, is it plugged in?\n"); | 299 | printf("No device found, is it plugged in?\n"); |
| 300 | return -1; | 300 | return -1; |
| 301 | } | 301 | } |
