aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
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 /src/config.c
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 'src/config.c')
-rw-r--r--src/config.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/config.c b/src/config.c
index f6305c5..0d7da22 100644
--- a/src/config.c
+++ b/src/config.c
@@ -217,7 +217,7 @@ static struct keyword event_tab[] = {
{ "bad-directive-signature", wy_ev_bad_directive_signature },
{ "bad-detached-signature", wy_ev_bad_detached_signature },
{ "check-failure", wy_ev_check_fail },
- { "statistics", wy_ev_statistics },
+ { "finish", wy_ev_finish },
{NULL}
};
@@ -351,19 +351,19 @@ cb_set_umask(enum grecs_callback_command cmd,
}
static struct keyword stat_tab[] = {
- { "errors", STAT_ERRORS },
- { "warnings", STAT_WARNINGS },
- { "bad-signatures", STAT_BAD_SIGNATURE },
- { "access-violations", STAT_ACCESS_VIOLATIONS },
- { "complete-triplets", STAT_COMPLETE_TRIPLETS },
- { "incomplete-triplets", STAT_INCOMPLETE_TRIPLETS },
- { "bad-triplets", STAT_BAD_TRIPLETS },
- { "expired-triplets", STAT_EXPIRED_TRIPLETS },
- { "triplet-success", STAT_TRIPLET_SUCCESS },
- { "uploads", STAT_UPLOADS },
- { "archives", STAT_ARCHIVES },
- { "symlinks", STAT_SYMLINKS },
- { "rmsymlinks", STAT_RMSYMLINKS },
+ { "errors", WY_STAT_ERRORS },
+ { "warnings", WY_STAT_WARNINGS },
+ { "bad-signatures", WY_STAT_BAD_SIGNATURE },
+ { "access-violations", WY_STAT_ACCESS_VIOLATIONS },
+ { "complete-triplets", WY_STAT_COMPLETE_TRIPLETS },
+ { "incomplete-triplets", WY_STAT_INCOMPLETE_TRIPLETS },
+ { "bad-triplets", WY_STAT_BAD_TRIPLETS },
+ { "expired-triplets", WY_STAT_EXPIRED_TRIPLETS },
+ { "triplet-success", WY_STAT_TRIPLET_SUCCESS },
+ { "uploads", WY_STAT_UPLOADS },
+ { "archives", WY_STAT_ARCHIVES },
+ { "symlinks", WY_STAT_SYMLINKS },
+ { "rmsymlinks", WY_STAT_RMSYMLINKS },
{ NULL },
};
@@ -383,11 +383,11 @@ parse_single_statmask(grecs_locus_t *locus, const grecs_value_t *val,
arg = val->v.string;
if (strcmp(arg, "all") == 0) {
- *pmask = STAT_MASK_ALL;
+ *pmask = WY_STAT_MASK_ALL;
*invert = 1;
return 0;
} else if (strcmp(arg, "none") == 0) {
- *pmask = STAT_MASK_NONE;
+ *pmask = WY_STAT_MASK_NONE;
*invert = 0;
return 0;
}
@@ -397,7 +397,7 @@ parse_single_statmask(grecs_locus_t *locus, const grecs_value_t *val,
arg);
return 1;
}
- *pmask = STAT_MASK(x);
+ *pmask = WY_STAT_MASK(x);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.