diff options
author | Jean Delvare <jdelvare@suse.de> | 2020-04-01 09:57:56 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2020-04-01 10:00:14 +0200 |
commit | 5893721859b73354a935135b4aee297bd41a5b1a (patch) | |
tree | fa96dcb1bd07701c5bb1d9fc4dee9cfa1da46274 /dmioutput.h | |
parent | 07968a8a578d34137eb6db0c26b860c567f60903 (diff) | |
download | dmidecode-git-5893721859b73354a935135b4aee297bd41a5b1a.tar.gz |
dmidecode: Add helper functions pr_list_start/item/end
Print lists through helper functions. pr_list_start() starts the
list, with an optional value. pr_list_item() prints a single item.
pr_list_end() is a no-op for plain text output, but is in place in
anticipation of supporting other output formats such as HTML.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'dmioutput.h')
-rw-r--r-- | dmioutput.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dmioutput.h b/dmioutput.h index 981dcb4..33f09c4 100644 --- a/dmioutput.h +++ b/dmioutput.h @@ -26,3 +26,6 @@ void pr_info(const char *format, ...); void pr_handle(const struct dmi_header *h); void pr_handle_name(const char *format, ...); void pr_attr(const char *name, const char *format, ...); +void pr_list_start(const char *name, const char *format, ...); +void pr_list_item(const char *format, ...); +void pr_list_end(void); |