Mercurial > wflogs-daemon
diff src/wflogs-config.h @ 4:37eace15ef87
allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 12:03:21 -0700 |
parents | 400b1de6e1c6 |
children | 306059d0f677 |
line wrap: on
line diff
--- a/src/wflogs-config.h Fri May 17 10:37:25 2013 -0700 +++ b/src/wflogs-config.h Fri May 17 12:03:21 2013 -0700 @@ -31,11 +31,13 @@ // output side int fdo; // output tempin wflogs file time_t open_time; // time when fdo opened + tm open_tm; TOKEN *tokp; // our data int period; // in seconds int versions; // number to keep // all strings owned by the string table + const char * trigger; // trigger token or NULL const char * output; // output file name pattern const char * tempin; // temp wflogs input file name const char * wflogs; // wflogs command line @@ -63,7 +65,8 @@ void closeo(); void close(); void process(char *p); - void check_wflog(); // time to call it? + bool check_wflog_time(); + void check_wflog(); void free_all(); }; typedef CONTEXT * CONTEXTP; @@ -98,7 +101,9 @@ extern const char *token_context; +extern const char *token_daily; extern const char *token_file; +extern const char *token_hourly; extern const char *token_include; extern const char *token_lbrace; extern const char *token_output; @@ -107,5 +112,7 @@ extern const char *token_rbrace; extern const char *token_semi; extern const char *token_tempin; +extern const char *token_trigger; extern const char *token_versions; +extern const char *token_weekly; extern const char *token_wflogs;