Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anysniff: Expose the log_out/stat_out/console_out/syslog_out through a module struct. #2

Open
wdoekes opened this issue Oct 7, 2015 · 0 comments

Comments

@wdoekes
Copy link
Member

wdoekes commented Oct 7, 2015

Current situation

void out_help();
int out_open(char const *config_file);
void out_close();
void out_write(uint32_t unixtime_begin, uint32_t interval, void *data);

Wanted situation

struct output_module {
    void (*print_help)(FILE *fp);
    void (*open)(int argc, const char **argv); /* have it read argv directly */
    FILE *(*begin_summary)(); /* have it return something that the sniff modules can write to */
    void (*end_summary)();
    void (*close)();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant