Skip to content

Commit 3be2fdd

Browse files
author
Harald Radi
committed
initial checkin
1 parent 8f49147 commit 3be2fdd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

sapi/milter/php_milter.h

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#ifndef PHP_MILTER_H
2+
#define PHP_MILTER_H
3+
4+
#include "libmilter/mfapi.h"
5+
6+
#define MLFI_NONE 0
7+
#define MLFI_CONNECT 1
8+
#define MLFI_HELO 2
9+
#define MLFI_ENVFROM 3
10+
#define MLFI_ENVRCPT 4
11+
#define MLFI_HEADER 5
12+
#define MLFI_EOH 6
13+
#define MLFI_BODY 7
14+
#define MLFI_EOM 8
15+
#define MLFI_ABORT 9
16+
#define MLFI_CLOSE 10
17+
#define MLFI_INIT 11
18+
19+
#define MG(v) TSRMG(milter_globals_id, zend_milter_globals *, v)
20+
21+
typedef struct {
22+
pthread_t thread;
23+
MUTEX_T receiver;
24+
MUTEX_T sender;
25+
SMFICTX *ctx;
26+
sfsistat retval;
27+
int message;
28+
void **args;
29+
} worker_thread;
30+
31+
#endif

0 commit comments

Comments
 (0)