~ubuntu-branches/ubuntu/trusty/postfix/trusty-proposed

« back to all changes in this revision

Viewing changes to src/master/mail_server.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-02-27 09:33:07 UTC
  • Revision ID: james.westby@ubuntu.com-20050227093307-cn789t27ibnlh6tf
Tags: upstream-2.1.5
ImportĀ upstreamĀ versionĀ 2.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*++
 
2
/* NAME
 
3
/*      mail_server 3h
 
4
/* SUMMARY
 
5
/*      skeleton servers
 
6
/* SYNOPSIS
 
7
/*      #include <mail_server.h>
 
8
/* DESCRIPTION
 
9
/* .nf
 
10
 
 
11
 /*
 
12
  * Utility library.
 
13
  */
 
14
#include <vstream.h>
 
15
 
 
16
 /*
 
17
  * External interface. Tables are defined in mail_conf.h.
 
18
  */
 
19
#define MAIL_SERVER_INT_TABLE   1
 
20
#define MAIL_SERVER_STR_TABLE   2
 
21
#define MAIL_SERVER_BOOL_TABLE  3
 
22
#define MAIL_SERVER_TIME_TABLE  4
 
23
#define MAIL_SERVER_RAW_TABLE   5
 
24
 
 
25
#define MAIL_SERVER_PRE_INIT    10
 
26
#define MAIL_SERVER_POST_INIT   11
 
27
#define MAIL_SERVER_LOOP        12
 
28
#define MAIL_SERVER_EXIT        13
 
29
#define MAIL_SERVER_PRE_ACCEPT  14
 
30
#define MAIL_SERVER_SOLITARY    15
 
31
#define MAIL_SERVER_UNLIMITED   16
 
32
#define MAIL_SERVER_PRE_DISCONN 17
 
33
 
 
34
#define MAIL_SERVER_IN_FLOW_DELAY       20
 
35
 
 
36
typedef void (*MAIL_SERVER_INIT_FN) (char *, char **);
 
37
typedef int (*MAIL_SERVER_LOOP_FN) (char *, char **);
 
38
typedef void (*MAIL_SERVER_EXIT_FN) (char *, char **);
 
39
typedef void (*MAIL_SERVER_ACCEPT_FN) (char *, char **);
 
40
typedef void (*MAIL_SERVER_DISCONN_FN) (VSTREAM *, char *, char **);
 
41
 
 
42
 /*
 
43
  * single_server.c
 
44
  */
 
45
typedef void (*SINGLE_SERVER_FN) (VSTREAM *, char *, char **);
 
46
extern NORETURN single_server_main(int, char **, SINGLE_SERVER_FN, ...);
 
47
 
 
48
 /*
 
49
  * multi_server.c
 
50
  */
 
51
typedef void (*MULTI_SERVER_FN) (VSTREAM *, char *, char **);
 
52
extern NORETURN multi_server_main(int, char **, MULTI_SERVER_FN,...);
 
53
extern void multi_server_disconnect(VSTREAM *);
 
54
 
 
55
 /*
 
56
  * trigger_server.c
 
57
  */
 
58
typedef void (*TRIGGER_SERVER_FN) (char *, int, char *, char **);
 
59
extern NORETURN trigger_server_main(int, char **, TRIGGER_SERVER_FN, ...);
 
60
 
 
61
#define TRIGGER_BUF_SIZE        1024
 
62
 
 
63
/* LICENSE
 
64
/* .ad
 
65
/* .fi
 
66
/*      The Secure Mailer license must be distributed with this software.
 
67
/* AUTHOR(S)
 
68
/*      Wietse Venema
 
69
/*      IBM T.J. Watson Research
 
70
/*      P.O. Box 704
 
71
/*      Yorktown Heights, NY 10598, USA
 
72
/*--*/