commit | b1a765050b2744cb621bf5fe0d463a0f49f8a870 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Wed Aug 18 00:59:15 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | 27b97089edc0e1be40959712a6461b7d568b5c52 | |
parent | 4d276010a82aaab25176c795626c23dde5f7a8fb [diff] |
tools: kwbimage: Simplify iteration over version 1 optional headers Create macro for_each_opt_hdr_v1 and functions opt_hdr_v1_size(), opt_hdr_v1_valid_size(), opt_hdr_v1_ext(), opt_hdr_v1_first() and opt_hdr_v1_next() to simplify iteration over version 1 optional headers. This prevents ugly code repetition and makes it nicer to read. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>