summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2011-04-14 20:11:09 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2011-04-14 20:11:09 +0000
commit88bf84069c919f11e6072a750f6b1ac7a9f492ed (patch)
treeaa65e237bb6da0e7a3a54688a157d9dad87cec47 /usr.sbin/smtpd/smtpd.h
parent37d103bd8ed97c8b053353cc4a7f56b18f87a1af (diff)
fsqueue queue backend will implement a filesystem queue:
- fsqueue->setup() performs the queue initialization; - fsqueue->message() controls messages; - fsqueue->envelope() controls envelopes; This commit brings the following to fsbackend: fsqueue_setup(), fsqueue_message_delete(), fsqueue_envelope_load(), fsqueue_envelope_update(), fsqueue_envelope_delete(). It also makes smtpd use the queue_backend API for these operations.
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index d1d84cccc58..67ca4e3c1fb 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.209 2011/04/14 17:06:43 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.210 2011/04/14 20:11:08 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -931,6 +931,7 @@ enum queue_op {
struct queue_backend {
enum queue_type type;
+ int (*setup)(struct smtpd *);
int (*message)(struct smtpd *, enum queue_kind, enum queue_op, char *);
int (*envelope)(struct smtpd *, enum queue_kind, enum queue_op,
struct message *);
@@ -1097,7 +1098,7 @@ int queue_remove_incoming_envelope(struct message *);
int queue_commit_incoming_message(struct message *);
int queue_open_incoming_message_file(struct message *);
int queue_open_message_file(char *msgid);
-void queue_message_update(struct message *);
+void queue_message_update(struct smtpd *, struct message *);
void queue_delete_message(char *);
struct qwalk *qwalk_new(char *);
int qwalk(struct qwalk *, char *);