Switch reporter context. More...
#include <reporter.h>
Public Member Functions | |
struct oscap_reporter_switch_ctxt * | oscap_reporter_switch_ctxt_new (void) |
void | oscap_reporter_switch_ctxt_add_range_reporter (struct oscap_reporter_switch_ctxt *ctxt, oscap_reporter reporter, void *arg, oscap_reporter_family_t family, oscap_reporter_code_t min_code, oscap_reporter_code_t max_code) |
void | oscap_reporter_switch_ctxt_add_family_reporter (struct oscap_reporter_switch_ctxt *ctxt, oscap_reporter reporter, void *arg, oscap_reporter_family_t family) |
void | oscap_reporter_switch_ctxt_add_reporter (struct oscap_reporter_switch_ctxt *ctxt, oscap_reporter reporter, void *arg) |
void | oscap_reporter_switch_ctxt_free (struct oscap_reporter_switch_ctxt *ctxt) |
int | oscap_reporter_switch (const struct oscap_reporter_message *msg, void *arg) |
Data Fields | |
struct oscap_list * | units |
Switch reporter context.
oscap_reporter_switch expects an instance of this structure as its argument. Each received message is forwarded to other reporters if it meets criteria given by the filter (i.e. family and code range).