From c4dd7a1a684490673e25aaf4fabec5df138854c4 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Thu, 14 Mar 2013 05:42:27 +0000 Subject: Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2. --- sapi/milter/php_milter.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sapi/milter/php_milter.h (limited to 'sapi/milter/php_milter.h') diff --git a/sapi/milter/php_milter.h b/sapi/milter/php_milter.h new file mode 100644 index 0000000..72d7ac5 --- /dev/null +++ b/sapi/milter/php_milter.h @@ -0,0 +1,31 @@ +#ifndef PHP_MILTER_H +#define PHP_MILTER_H + +#include "libmilter/mfapi.h" + +#define MLFI_NONE 0 +#define MLFI_CONNECT 1 +#define MLFI_HELO 2 +#define MLFI_ENVFROM 3 +#define MLFI_ENVRCPT 4 +#define MLFI_HEADER 5 +#define MLFI_EOH 6 +#define MLFI_BODY 7 +#define MLFI_EOM 8 +#define MLFI_ABORT 9 +#define MLFI_CLOSE 10 +#define MLFI_INIT 11 + +#define MG(v) TSRMG(milter_globals_id, zend_milter_globals *, v) + +typedef struct { + pthread_t thread; + MUTEX_T receiver; + MUTEX_T sender; + SMFICTX *ctx; + sfsistat retval; + int message; + void **args; +} worker_thread; + +#endif -- cgit v1.2.1