2 #ifndef SERV_EXTENSIONS_H
3 #define SERV_EXTENSIONS_H
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;
14 void (*h_greeting_function) (void) ;
15 void (*h_command_function) (void) ;
16 void (*h_async_function) (void) ;
18 const char *ServiceName; // this is just for debugging and logging purposes.
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);