summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-11-02 14:46:44 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-11-02 14:46:44 +0000
commitc487f7585b421c894cf8fd0a6d126f1f83ca4411 (patch)
tree5d806ea45fdf80efadc6b25c2246c0d0d1c3375a /usr.sbin/smtpd/smtpd.h
parent5d3006c15b704935b68ae9093f3eb60b72d19676 (diff)
Make counters more informative in the scheduler:
- Change the scheduler backend API a bit: commit() and rollback() API calls return the number of envelopes added or canceled; put the number of envelopes in the structure returned by batch(). - Properly report the number of incoming, registered, removed and expired envelopes, as well as the outcome of deliveries. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 91d4b403c24..9bac30b1b86 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.391 2012/10/28 08:46:26 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.392 2012/11/02 14:46:43 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -844,6 +844,7 @@ struct id_list {
struct scheduler_batch {
int type;
time_t delay;
+ size_t evpcount;
struct id_list *evpids;
};
@@ -851,8 +852,8 @@ struct scheduler_backend {
void (*init)(void);
void (*insert)(struct scheduler_info *);
- void (*commit)(uint32_t);
- void (*rollback)(uint32_t);
+ size_t (*commit)(uint32_t);
+ size_t (*rollback)(uint32_t);
void (*update)(struct scheduler_info *);
void (*delete)(uint64_t);