Use filter_fieldclass_info::as_string to print field info

Instead of having a falco-specific function to print field info, use
the built-in filter_fieldclass_info::as_string() instead. This is a
better implementation (displays addl info, has better wrapping, wider
output) and having a single implementation allows for consistent
outputs between falco and other potential programs that could use the libs.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
Mark Stemm
2021-12-08 12:32:34 -08:00
committed by poiana
parent 473b94b386
commit eded1062cd
4 changed files with 52 additions and 72 deletions

View File

@@ -55,7 +55,7 @@ public:
// Print to stdout (using printf) a description of each field supported by this engine.
// If source is non-empty, only fields for the provided source are printed.
void list_fields(std::string &source, bool names_only);
void list_fields(std::string &source, bool verbose, bool names_only);
//
// Load rules either directly or from a filename.