aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
blob: 0e19d7b21c150698b4bc1b34f30fd4fcee84ed2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "wydawca.h"

void
notify(struct notification *n, struct wy_triplet *t,
       enum wy_event e)
{
	for (; n; n = n->next)
		if (n->ev == e) {
			if (n->modname)
				module_notify(n->modname, n->modcfg, e, t);
		}
}

void
notify_stats()
{
	notify(default_notification, NULL, wy_ev_statistics);
}

void
notify_flush(struct spool *sp)
{
	struct notification *n;
	
	for (n = sp->notification; n; n = n->next)
		if (n->modcfg)
			module_flush(n->modname, n->modcfg);
}

Return to:

Send suggestions and report system problems to the System administrator.