mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-15 19:33:17 +03:00
Add the ability to output a reow of header data before the main report. This can be used to print a repeating banner including data such as the time, the report count, and system performance metrics. A 'header' behaves in a similar way to a field; they are defined by passing in an array of header types and selected using a string of names. This allows programs using dm_report to customize the available set of headers and allow their display to be configured by the user. Headers do not participate in any way in sorting or selection and can only appear in the special 'header' section of the report. A row of headers is added to a report by passing in a string of header names to be parsed. Header output is either written as soon as it is defined (unbuffered) or when the library user calls the dm_report_output_header() function.