-
Notifications
You must be signed in to change notification settings - Fork 3
/
mailfront-internal.h
38 lines (30 loc) · 874 Bytes
/
mailfront-internal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef MAIL_FRONT__MAILFRONT_INTERNAL__H__
#define MAIL_FRONT__MAILFRONT_INTERNAL__H__
#include "mailfront.h"
#include <bglibs/ghash.h>
struct session
{
struct protocol* protocol;
struct plugin* backend;
struct ghash strs;
struct ghash nums;
str env;
int fd;
struct plugin* plugin_list;
struct plugin* plugin_tail;
unsigned flags;
const char* module_path;
};
GHASH_DECL(session_strs,const char*,const char*);
GHASH_DECL(session_nums,const char*,unsigned long);
extern struct session session;
/* From builtins.c */
extern struct plugin builtin_plugins[];
/* From modules.c */
extern void add_plugin(struct plugin*);
extern const response* load_modules(const char* protocol_name,
const char* backend_name,
const char** plugins);
/* From session.c */
extern void session_init(void);
#endif /* MAIL_FRONT__MAILFRONT_INTERNAL__H__ */