summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-04-07 00:20:48 +0200
committerGravatar Nikias Bassen2022-04-07 00:20:48 +0200
commit03f2baebe9aac44ed6a512f0f3374a944602917d (patch)
treeddcde64d106eda3cd61fcdc43399151ab188f8be /src/common.h
parent7eaa1fa8546bfa12d23ba30f81db54ae2ff64784 (diff)
downloadidevicerestore-03f2baebe9aac44ed6a512f0f3374a944602917d.tar.gz
idevicerestore-03f2baebe9aac44ed6a512f0f3374a944602917d.tar.bz2
tss/restore: Improve code readability with plist helpers and removal of unneeded comments
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 6c839ce..cce63a4 100644
--- a/src/common.h
+++ b/src/common.h
@@ -182,6 +182,11 @@ void get_user_input(char *buf, int maxlen, int secure);
uint8_t _plist_dict_get_bool(plist_t dict, const char *key);
uint64_t _plist_dict_get_uint(plist_t dict, const char *key);
+int _plist_dict_copy_uint(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key);
+int _plist_dict_copy_bool(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key);
+int _plist_dict_copy_data(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key);
+int _plist_dict_copy_string(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key);
+int _plist_dict_copy_item(plist_t target_dict, plist_t source_dict, const char *key, const char *alt_source_key);
#ifdef __cplusplus
}