mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libutil: Add support for indenting records
Functions rec_print_xxx allows to print records in different formats. Add support to optionally indent the output by a specific number of characters. The indention is set using a new function util_rec_set_indent(). The default indention is zero, thus existing applications will behave the same as before. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Acked-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
28deb03178
commit
5f2ddad6a8
@@ -69,4 +69,6 @@ const char *util_rec_get(struct util_rec *rec, const char *key);
|
||||
void util_rec_print_hdr(struct util_rec *rec);
|
||||
void util_rec_print(struct util_rec *rec);
|
||||
|
||||
void util_rec_set_indent(struct util_rec *rec, int indent);
|
||||
|
||||
#endif /** LIB_UTIL_REC_H @} */
|
||||
|
||||
Reference in New Issue
Block a user