]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
* Added CtdlRegisterServiceHook() and its data type, for implementing arbitrary
[citadel.git] / citadel / server.h
index 001775ad8e55415f4ddc8814b4973fe92299f752..f101ca9c876ecf29e0bed661c71ea51615af62f7 100644 (file)
@@ -307,6 +307,18 @@ enum {
 
 
 
+/*
+ * ServiceFunctionHook extensions are used for hooks which implement various
+ * non-Citadel services (on TCP protocols) directly in the Citadel server.
+ */
+struct ServiceFunctionHook {
+       struct ServiceFunctionHook *next;
+       int tcp_port;
+       void (*h_greeting_function) (void) ;
+       void (*h_command_function) (void) ;
+};
+extern struct ServiceFunctionHook *ServiceHookTable;
+
 
 
 /* Defines the relationship of a user to a particular room */