aboutsummaryrefslogtreecommitdiff
path: root/src/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 /src/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 'src/wydawca.h')
-rw-r--r--src/wydawca.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index 0dd99e1..580d0be 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -263,31 +263,6 @@ struct spool {
} \
} while (0)
-enum wydawca_stat {
- STAT_ERRORS,
- STAT_WARNINGS,
- STAT_BAD_SIGNATURE,
- STAT_ACCESS_VIOLATIONS,
- STAT_COMPLETE_TRIPLETS,
- STAT_INCOMPLETE_TRIPLETS,
- STAT_BAD_TRIPLETS,
- STAT_EXPIRED_TRIPLETS,
- STAT_TRIPLET_SUCCESS,
- STAT_UPLOADS,
- STAT_ARCHIVES,
- STAT_SYMLINKS,
- STAT_RMSYMLINKS,
- STAT_CHECK_FAIL,
- MAX_STAT
-};
-
-#define STAT_MASK(c) (1<<(c))
-#define STAT_MASK_NONE 0
-#define STAT_MASK_ALL (STAT_MASK(MAX_STAT) - 1)
-
-int wy_cb_statistics(enum grecs_callback_command cmd, grecs_node_t *node,
- void *varptr, void *cb_data);
-
struct notification {
struct notification *next;
enum wy_event ev;
@@ -351,7 +326,7 @@ extern int syslog_include_prio; /* Syslog priority indication */
extern time_t file_sweep_time; /* Unlink stale file after this amount of time
*/
extern char *tar_command_name; /* Name of the tar command */
-extern unsigned wydawca_stat[MAX_STAT];
+extern unsigned wydawca_stat[WY_MAX_STAT];
extern unsigned long print_stats;
extern int archive_signatures;
@@ -385,7 +360,7 @@ extern int inotify_enable;
extern struct notification *default_notification;
#define UPDATE_STATS(what) do { \
- if (what >= MAX_STAT) abort(); \
+ if (what >= WY_MAX_STAT) abort(); \
wydawca_stat[what]++; \
} while (0)

Return to:

Send suggestions and report system problems to the System administrator.