"Fossies" - the Fresh Open Source Software Archive

Member "citadel/serv_extensions.h" (5 Jun 2021, 1221 Bytes) of package /linux/www/citadel.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "serv_extensions.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 9.01_vs_902.

    1 
    2 #ifndef SERV_EXTENSIONS_H
    3 #define SERV_EXTENSIONS_H
    4 
    5 #include "server.h"
    6 
    7 /*
    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.
   10  */
   11 typedef struct ServiceFunctionHook ServiceFunctionHook;
   12 struct ServiceFunctionHook {
   13     ServiceFunctionHook *next;
   14     int tcp_port;
   15     char *sockpath;
   16     void (*h_greeting_function) (void) ;
   17     void (*h_command_function) (void) ;
   18     void (*h_async_function) (void) ;
   19     int msock;
   20     const char* ServiceName; /* this is just for debugging and logging purposes. */
   21 };
   22 extern ServiceFunctionHook *ServiceHookTable;
   23 
   24 void initialize_server_extensions(void);
   25 int DLoader_Exec_Cmd(char *cmdbuf);
   26 char *Dynamic_Module_Init(void);
   27 
   28 void PerformSessionHooks(int EventType);
   29 
   30 void PerformUserHooks(struct ctdluser *usbuf, int EventType);
   31 
   32 int PerformXmsgHooks(char *, char *, char *, char *);
   33 
   34 int PerformMessageHooks(struct CtdlMessage *, struct recptypes *recps, int EventType);
   35 
   36 int PerformRoomHooks(struct ctdlroom *);
   37 
   38 void PerformDeleteHooks(char *, long);
   39 
   40 
   41 
   42 
   43 
   44 int PerformFixedOutputHooks(char *, char *, int);
   45 
   46 void netcfg_keyname(char *keybuf, long roomnum);
   47 
   48 #endif /* SERV_EXTENSIONS_H */