Skip to content

Commit

Permalink
chore(userspace/libsinsp): make get_field_names a property of generic…
Browse files Browse the repository at this point in the history
… formatters

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and poiana committed May 29, 2023
1 parent 6a1fade commit dc9fcc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/eventformatter.h
Expand Up @@ -71,7 +71,7 @@ class SINSP_PUBLIC sinsp_evt_formatter : public gen_event_formatter
// interface. It just calls resolve_tokens().
bool get_field_values(gen_event *evt, std::map<std::string, std::string> &fields) override;

void get_field_names(std::vector<std::string> &fields);
void get_field_names(std::vector<std::string> &fields) override;

gen_event_formatter::output_format get_output_format() override;

Expand Down
2 changes: 2 additions & 0 deletions userspace/libsinsp/gen_filter.h
Expand Up @@ -291,6 +291,8 @@ class gen_event_formatter
// (e.g. "proc.name"), to field value (e.g. "nginx")
virtual bool get_field_values(gen_event *evt, std::map<std::string, std::string> &fields) = 0;

virtual void get_field_names(std::vector<std::string> &fields) = 0;

virtual output_format get_output_format() = 0;
};

Expand Down

0 comments on commit dc9fcc8

Please sign in to comment.