From 03f2baebe9aac44ed6a512f0f3374a944602917d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Apr 2022 00:20:48 +0200 Subject: tss/restore: Improve code readability with plist helpers and removal of unneeded comments --- src/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common.h') 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 } -- cgit v1.1-32-gdbae