2 #ifndef SERV_EXTENSIONS_H
3 #define SERV_EXTENSIONS_H
8 * This is where we declare all of the server extensions we have.
9 * We'll probably start moving these to a more sane location in the near
10 * future. For now, this just shuts up the compiler.
12 //void serv_calendar_destroy(void);
13 //char *serv_test_init(void);
14 //char *serv_postfix_tcpdict(void);
18 typedef void (*CtdlDbgFunction) (const int);
24 * ServiceFunctionHook extensions are used for hooks which implement various
25 * protocols (either on TCP or on unix domain sockets) directly in the Citadel server.
27 typedef struct ServiceFunctionHook ServiceFunctionHook;
28 struct ServiceFunctionHook {
29 ServiceFunctionHook *next;
32 void (*h_greeting_function) (void) ;
33 void (*h_command_function) (void) ;
34 void (*h_async_function) (void) ;
36 const char* ServiceName; /* this is just for debugging and logging purposes. */
38 extern ServiceFunctionHook *ServiceHookTable;
40 typedef struct CleanupFunctionHook CleanupFunctionHook;
41 struct CleanupFunctionHook {
42 CleanupFunctionHook *next;
43 void (*h_function_pointer) (void);
45 extern CleanupFunctionHook *CleanupHookTable;
48 typedef struct __LogDebugEntry {
54 extern HashList *LogDebugEntryTable;
55 void initialize_server_extensions(void);
56 int DLoader_Exec_Cmd(char *cmdbuf);
57 char *Dynamic_Module_Init(void);
59 void CtdlDestroySessionHooks(void);
60 void PerformSessionHooks(int EventType);
62 void CtdlDestroyUserHooks(void);
63 void PerformUserHooks(struct ctdluser *usbuf, int EventType);
65 int PerformXmsgHooks(char *, char *, char *, char *);
66 void CtdlDestroyXmsgHooks(void);
70 void CtdlDestroyMessageHook(void);
71 int PerformMessageHooks(struct CtdlMessage *, recptypes *recps, int EventType);
74 void CtdlDestroyNetprocHooks(void);
75 int PerformNetprocHooks(struct CtdlMessage *, char *);
77 void CtdlDestroyRoomHooks(void);
78 int PerformRoomHooks(struct ctdlroom *);
81 void CtdlDestroyDeleteHooks(void);
82 void PerformDeleteHooks(char *, long);
85 void CtdlDestroyCleanupHooks(void);
87 void CtdlDestroyProtoHooks(void);
89 void CtdlDestroyServiceHook(void);
91 void CtdlDestroySearchHooks(void);
93 void CtdlDestroyFixedOutputHooks(void);
94 int PerformFixedOutputHooks(char *, char *, int);
96 void CtdlRegisterDebugFlagHook(const char *Name, long len, CtdlDbgFunction F, const int *);
97 void CtdlSetDebugLogFacilities(const char **Str, long n);
98 void CtdlDestroyDebugTable(void);
100 void netcfg_keyname(char *keybuf, long roomnum);
102 #endif /* SERV_EXTENSIONS_H */