2 #ifndef SERV_EXTENSIONS_H
3 #define SERV_EXTENSIONS_H
8 * ServiceFunctionHook extensions are used for hooks which implement various
9 * protocols (either on TCP or on unix domain sockets) directly in the Citadel server.
11 typedef struct ServiceFunctionHook ServiceFunctionHook;
12 struct ServiceFunctionHook {
13 ServiceFunctionHook *next;
16 void (*h_greeting_function) (void) ;
17 void (*h_command_function) (void) ;
18 void (*h_async_function) (void) ;
20 const char* ServiceName; /* this is just for debugging and logging purposes. */
22 extern ServiceFunctionHook *ServiceHookTable;
24 typedef struct CleanupFunctionHook CleanupFunctionHook;
25 struct CleanupFunctionHook {
26 CleanupFunctionHook *next;
27 void (*h_function_pointer) (void);
29 extern CleanupFunctionHook *CleanupHookTable;
31 void initialize_server_extensions(void);
32 int DLoader_Exec_Cmd(char *cmdbuf);
33 char *Dynamic_Module_Init(void);
35 void CtdlDestroySessionHooks(void);
36 void PerformSessionHooks(int EventType);
38 void CtdlDestroyUserHooks(void);
39 void PerformUserHooks(struct ctdluser *usbuf, int EventType);
41 int PerformXmsgHooks(char *, char *, char *, char *);
42 void CtdlDestroyXmsgHooks(void);
44 void CtdlDestroyMessageHook(void);
45 int PerformMessageHooks(struct CtdlMessage *, recptypes *recps, int EventType);
47 void CtdlDestroyRoomHooks(void);
48 int PerformRoomHooks(struct ctdlroom *);
50 void CtdlDestroyDeleteHooks(void);
51 void PerformDeleteHooks(char *, long);
53 void CtdlDestroyCleanupHooks(void);
55 void CtdlDestroyProtoHooks(void);
57 void CtdlDestroyServiceHook(void);
59 void CtdlDestroySearchHooks(void);
61 void CtdlDestroyFixedOutputHooks(void);
62 int PerformFixedOutputHooks(char *, char *, int);
64 void netcfg_keyname(char *keybuf, long roomnum);
66 #endif /* SERV_EXTENSIONS_H */