]> code.citadel.org Git - citadel.git/blob - citadel/server/serv_extensions.h
More C99-style comments.
[citadel.git] / citadel / server / serv_extensions.h
1
2 #ifndef SERV_EXTENSIONS_H
3 #define SERV_EXTENSIONS_H
4
5 #include "server.h"
6
7 // ServiceFunctionHook extensions are used for hooks which implement various
8 // protocols (either on TCP or on unix domain sockets) directly in the Citadel server.
9 typedef struct ServiceFunctionHook ServiceFunctionHook;
10 struct ServiceFunctionHook {
11         ServiceFunctionHook *next;
12         int tcp_port;
13         char *sockpath;
14         void (*h_greeting_function) (void) ;
15         void (*h_command_function) (void) ;
16         void (*h_async_function) (void) ;
17         int msock;
18         const char *ServiceName;                // this is just for debugging and logging purposes.
19 };
20 extern ServiceFunctionHook *ServiceHookTable;
21 void initialize_server_extensions(void);
22 int DLoader_Exec_Cmd(char *cmdbuf);
23 char *Dynamic_Module_Init(void);
24 void PerformSessionHooks(int EventType);
25 void PerformUserHooks(struct ctdluser *usbuf, int EventType);
26 int PerformXmsgHooks(char *, char *, char *, char *);
27 int PerformMessageHooks(struct CtdlMessage *, struct recptypes *recps, int EventType);
28 int PerformRoomHooks(struct ctdlroom *);
29 void PerformDeleteHooks(char *, long);
30 int PerformFixedOutputHooks(char *, char *, int);
31 void netcfg_keyname(char *keybuf, long roomnum);
32
33 #endif