aboutsummaryrefslogtreecommitdiff
path: root/include/wydawca/wydawca.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-22 14:53:37 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-22 14:53:37 +0300
commitb369ed6ad26c07d3aec65a1bf0910c0d828c400f (patch)
tree525b13a5bbda244cbec3fe10c25c47aa2975e2a5 /include/wydawca/wydawca.h
parent0917d1276103d9cc893e8ac091e9e63c5e6182f8 (diff)
downloadwydawca-b369ed6ad26c07d3aec65a1bf0910c0d828c400f.tar.gz
wydawca-b369ed6ad26c07d3aec65a1bf0910c0d828c400f.tar.bz2
Finish mod_logstat implementation. Document it.
* doc/wydawca.texi: Document mod_logstat. * include/wydawca/wydawca.h (wy_ev_statistics): Rename to wy_ev_finish. All uses changed. (wydawca_stat): New enum (from src/wydawca.h) (WY_STAT_MASK,WY_STAT_MASK_NONE) (WY_STAT_MASK_ALL): New macros. All uses changed. * modules/logstat/mod_logstat.c (stat_mask): Default to WY_STAT_MASK_ALL. (wy_notify): Provide default output.
Diffstat (limited to 'include/wydawca/wydawca.h')
-rw-r--r--include/wydawca/wydawca.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/wydawca/wydawca.h b/include/wydawca/wydawca.h
index bc5a5a5..5af2996 100644
--- a/include/wydawca/wydawca.h
+++ b/include/wydawca/wydawca.h
@@ -54,12 +54,33 @@ enum wy_event {
wy_ev_bad_directive_signature,
wy_ev_bad_detached_signature,
wy_ev_check_fail,
- wy_ev_statistics,
+ wy_ev_finish,
WY_N_EVENT
};
const char *wy_event_str(enum wy_event evt);
+
+enum wydawca_stat {
+ WY_STAT_ERRORS,
+ WY_STAT_WARNINGS,
+ WY_STAT_BAD_SIGNATURE,
+ WY_STAT_ACCESS_VIOLATIONS,
+ WY_STAT_COMPLETE_TRIPLETS,
+ WY_STAT_INCOMPLETE_TRIPLETS,
+ WY_STAT_BAD_TRIPLETS,
+ WY_STAT_EXPIRED_TRIPLETS,
+ WY_STAT_TRIPLET_SUCCESS,
+ WY_STAT_UPLOADS,
+ WY_STAT_ARCHIVES,
+ WY_STAT_SYMLINKS,
+ WY_STAT_RMSYMLINKS,
+ WY_STAT_CHECK_FAIL,
+ WY_MAX_STAT
+};
+#define WY_STAT_MASK(c) (1<<(c))
+#define WY_STAT_MASK_NONE 0
+#define WY_STAT_MASK_ALL (WY_STAT_MASK(WY_MAX_STAT) - 1)
struct wy_user {
struct wy_user *next;

Return to:

Send suggestions and report system problems to the System administrator.