summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2015-11-30 14:47:40 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2015-11-30 14:47:40 +0000
commitef25d30b06bba34dd84be147958a3caf8cb776af (patch)
tree2ea9118574551a96a64dd12f8ad709bca09055c2 /usr.sbin/smtpd
parentc17cf49dc37d3bd08caae8d4c84ea23c07a80eb3 (diff)
smtpd-api.h update, missing prototypes, no functional change
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtpd-api.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/usr.sbin/smtpd/smtpd-api.h b/usr.sbin/smtpd/smtpd-api.h
index 8a598310709..89e41123a19 100644
--- a/usr.sbin/smtpd/smtpd-api.h
+++ b/usr.sbin/smtpd/smtpd-api.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd-api.h,v 1.25 2015/11/23 21:50:12 gilles Exp $ */
+/* $OpenBSD: smtpd-api.h,v 1.26 2015/11/30 14:47:39 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -190,15 +190,15 @@ struct table_open_params {
};
enum table_service {
- K_NONE = 0x00,
- K_ALIAS = 0x01, /* returns struct expand */
- K_DOMAIN = 0x02, /* returns struct destination */
- K_CREDENTIALS = 0x04, /* returns struct credentials */
- K_NETADDR = 0x08, /* returns struct netaddr */
- K_USERINFO = 0x10, /* returns struct userinfo */
- K_SOURCE = 0x20, /* returns struct source */
- K_MAILADDR = 0x40, /* returns struct mailaddr */
- K_ADDRNAME = 0x80, /* returns struct addrname */
+ K_NONE = 0x000,
+ K_ALIAS = 0x001, /* returns struct expand */
+ K_DOMAIN = 0x002, /* returns struct destination */
+ K_CREDENTIALS = 0x004, /* returns struct credentials */
+ K_NETADDR = 0x008, /* returns struct netaddr */
+ K_USERINFO = 0x010, /* returns struct userinfo */
+ K_SOURCE = 0x020, /* returns struct source */
+ K_MAILADDR = 0x040, /* returns struct mailaddr */
+ K_ADDRNAME = 0x080, /* returns struct addrname */
K_MAILADDRMAP = 0x100, /* returns struct maddrmap */
};
#define K_ANY 0xfff
@@ -326,10 +326,11 @@ const char *esc_description(enum enhanced_status_code);
void filter_api_setugid(uid_t, gid_t);
void filter_api_set_chroot(const char *);
void filter_api_no_chroot(void);
+void filter_api_set_udata(uint64_t, void *);
+void filter_api_get_udata(uint64_t);
void filter_api_loop(void);
int filter_api_accept(uint64_t);
-int filter_api_accept_notify(uint64_t, uint64_t *);
int filter_api_reject(uint64_t, enum filter_status);
int filter_api_reject_code(uint64_t, enum filter_status, uint32_t,
const char *);
@@ -344,6 +345,10 @@ void filter_api_on_rcpt(int(*)(uint64_t, struct mailaddr *));
void filter_api_on_data(int(*)(uint64_t));
void filter_api_on_dataline(void(*)(uint64_t, const char *));
void filter_api_on_eom(int(*)(uint64_t, size_t));
+void filter_api_on_reset(void(*)(uint64_t));
+void filter_api_on_disconnect(void(*)(uint64_t));
+void filter_api_on_commit(void(*)(uint64_t));
+void filter_api_on_rollback(void(*)(uint64_t));
/* queue */
void queue_api_on_close(int(*)(void));