diff options
| author | 2025-10-30 13:28:09 +0100 | |
|---|---|---|
| committer | 2025-10-30 13:28:09 +0100 | |
| commit | fc32f8232cea75a731cb5adcf6340b79f5427d1c (patch) | |
| tree | f3e5b5987e9c9c6eb491dfcb536e607002351ce7 /src | |
| parent | baa9b5d16e1b387afebef98e96f48fc8b60332ce (diff) | |
| download | ideviceinstaller-fc32f8232cea75a731cb5adcf6340b79f5427d1c.tar.gz ideviceinstaller-fc32f8232cea75a731cb5adcf6340b79f5427d1c.tar.bz2 | |
Use plist_write_to_stream to print app list
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 22 | 
1 files changed, 1 insertions, 21 deletions
| diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index c50bacf..d07cedf 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -170,27 +170,7 @@ static void print_apps(plist_t apps)  				if (!strcmp(key, "CFBundleIdentifier")) {  					printf("%s", plist_get_string_ptr(node, NULL));  				} else { -					uint64_t uval = 0; -					switch (plist_get_node_type(node)) { -						case PLIST_STRING: -							printf("\"%s\"", plist_get_string_ptr(node, NULL)); -							break; -						case PLIST_INT: -							plist_get_uint_val(node, &uval); -							printf("%" PRIu64, uval); -							break; -						case PLIST_BOOLEAN: -							printf("%s", plist_bool_val_is_true(node) ? "true" : "false"); -							break; -						case PLIST_ARRAY: -							printf("(array)"); -							break; -						case PLIST_DICT: -							printf("(dict)"); -							break; -						default: -							break; -					} +					plist_write_to_stream(node, stdout, PLIST_FORMAT_PRINT, PLIST_OPT_NO_NEWLINE);  				}  			}  		} | 
