diff options
author | Martin Szulecki | 2013-11-20 11:28:43 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-20 11:39:37 +0100 |
commit | e44eb6beacb1d9519e1bf4a5fdc2203ffcd243f7 (patch) | |
tree | 0c7d96ed0199a8d88e4047b6cf302719cd599d1b /src/tss.c | |
parent | 728cb5727aa7e8abd08ff69ba3fed9749baf3579 (diff) | |
download | idevicerestore-e44eb6beacb1d9519e1bf4a5fdc2203ffcd243f7.tar.gz idevicerestore-e44eb6beacb1d9519e1bf4a5fdc2203ffcd243f7.tar.bz2 |
tss: Split img3 tag add helpers into common, img3 and img4
Diffstat (limited to 'src/tss.c')
-rw-r--r-- | src/tss.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -232,7 +232,7 @@ int tss_request_add_baseband_tags(plist_t request, plist_t parameters) { return 0; } -int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identity, plist_t overrides) { +int tss_request_add_common_tags_from_manifest(plist_t request, plist_t build_identity, plist_t overrides) { plist_t node = NULL; char* string = NULL; @@ -291,6 +291,15 @@ int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identit string = NULL; node = NULL; + /* apply overrides */ + if (overrides) { + plist_dict_merge(&request, overrides); + } + + return 0; +} + +int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identity, plist_t overrides) { /* loop over components from build manifest */ plist_t manifest_node = plist_dict_get_item(build_identity, "Manifest"); if (!manifest_node || plist_get_node_type(manifest_node) != PLIST_DICT) { |