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);
21 * ServiceFunctionHook extensions are used for hooks which implement various
22 * protocols (either on TCP or on unix domain sockets) directly in the Citadel server.
24 typedef struct ServiceFunctionHook ServiceFunctionHook;
25 struct ServiceFunctionHook {
26 ServiceFunctionHook *next;
29 void (*h_greeting_function) (void) ;
30 void (*h_command_function) (void) ;
31 void (*h_async_function) (void) ;
33 const char* ServiceName; /* this is just for debugging and logging purposes. */
35 extern ServiceFunctionHook *ServiceHookTable;
37 typedef struct CleanupFunctionHook CleanupFunctionHook;
38 struct CleanupFunctionHook {
39 CleanupFunctionHook *next;
40 void (*h_function_pointer) (void);
42 extern CleanupFunctionHook *CleanupHookTable;
45 void initialize_server_extensions(void);
46 int DLoader_Exec_Cmd(char *cmdbuf);
47 char *Dynamic_Module_Init(void);
49 void CtdlDestroySessionHooks(void);
50 void PerformSessionHooks(int EventType);
52 void CtdlDestroyUserHooks(void);
53 void PerformUserHooks(struct ctdluser *usbuf, int EventType);
55 int PerformXmsgHooks(char *, char *, char *, char *);
56 void CtdlDestroyXmsgHooks(void);
60 void CtdlDestroyMessageHook(void);
61 int PerformMessageHooks(struct CtdlMessage *, int EventType);
64 void CtdlDestroyNetprocHooks(void);
65 int PerformNetprocHooks(struct CtdlMessage *, char *);
67 void CtdlDestroyRoomHooks(void);
68 int PerformRoomHooks(struct ctdlroom *);
71 void CtdlDestroyDeleteHooks(void);
72 void PerformDeleteHooks(char *, long);
75 void CtdlDestroyCleanupHooks(void);
77 void CtdlDestroyProtoHooks(void);
79 void CtdlDestroyServiceHook(void);
81 void CtdlDestroySearchHooks(void);
83 void CtdlDestroyFixedOutputHooks(void);
84 int PerformFixedOutputHooks(char *, char *, int);
85 #endif /* SERV_EXTENSIONS_H */