X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserv_extensions.h;h=c8308cf6260690a8569146d7db5960a98b50d3ab;hb=HEAD;hp=47a6070bfa5b1fb563bd55e9c5a41fad0fb0da67;hpb=a4b7b2c87bf09fe0c558358eb784bf21c26aca39;p=citadel.git diff --git a/citadel/serv_extensions.h b/citadel/serv_extensions.h deleted file mode 100644 index 47a6070bf..000000000 --- a/citadel/serv_extensions.h +++ /dev/null @@ -1,85 +0,0 @@ - -#ifndef SERV_EXTENSIONS_H -#define SERV_EXTENSIONS_H - -#include "server.h" - -/* - * This is where we declare all of the server extensions we have. - * We'll probably start moving these to a more sane location in the near - * future. For now, this just shuts up the compiler. - */ -//void serv_calendar_destroy(void); -//char *serv_test_init(void); -//char *serv_postfix_tcpdict(void); -/* - */ - - - -/* - * ServiceFunctionHook extensions are used for hooks which implement various - * protocols (either on TCP or on unix domain sockets) directly in the Citadel server. - */ -typedef struct ServiceFunctionHook ServiceFunctionHook; -struct ServiceFunctionHook { - ServiceFunctionHook *next; - int tcp_port; - char *sockpath; - void (*h_greeting_function) (void) ; - void (*h_command_function) (void) ; - void (*h_async_function) (void) ; - int msock; - const char* ServiceName; /* this is just for debugging and logging purposes. */ -}; -extern ServiceFunctionHook *ServiceHookTable; - -typedef struct CleanupFunctionHook CleanupFunctionHook; -struct CleanupFunctionHook { - CleanupFunctionHook *next; - void (*h_function_pointer) (void); -}; -extern CleanupFunctionHook *CleanupHookTable; - - -void initialize_server_extensions(void); -int DLoader_Exec_Cmd(char *cmdbuf); -char *Dynamic_Module_Init(void); - -void CtdlDestroySessionHooks(void); -void PerformSessionHooks(int EventType); - -void CtdlDestroyUserHooks(void); -void PerformUserHooks(struct ctdluser *usbuf, int EventType); - -int PerformXmsgHooks(char *, char *, char *, char *); -void CtdlDestroyXmsgHooks(void); - - - -void CtdlDestroyMessageHook(void); -int PerformMessageHooks(struct CtdlMessage *, int EventType); - - -void CtdlDestroyNetprocHooks(void); -int PerformNetprocHooks(struct CtdlMessage *, char *); - -void CtdlDestroyRoomHooks(void); -int PerformRoomHooks(struct ctdlroom *); - - -void CtdlDestroyDeleteHooks(void); -void PerformDeleteHooks(char *, long); - - -void CtdlDestroyCleanupHooks(void); - -void CtdlDestroyProtoHooks(void); - -void CtdlDestroyServiceHook(void); - -void CtdlDestroySearchHooks(void); - -void CtdlDestroyFixedOutputHooks(void); -int PerformFixedOutputHooks(char *, char *, int); -#endif /* SERV_EXTENSIONS_H */