Eliminated all destructor hooks. The operating system can clean this up for us bette...
[citadel.git] / citadel / serv_extensions.h
index 136be62f1b85d454ec8e17cd01dedefb83b325ce..cd39831ca8ca08d563ad0bc5f32321058f4f789e 100644 (file)
@@ -4,33 +4,6 @@
 
 #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);
-/*
- */
-
-typedef void (*CtdlDbgFunction) (const int);
-
-extern int DebugModules;
-#define MDBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (DebugModules != 0))
-
-#define MOD_syslog(LEVEL, FORMAT, ...)                                 \
-       MDBGLOG(LEVEL) syslog(LEVEL,                                    \
-                             "%s Modules: " FORMAT, IOSTR, __VA_ARGS__)
-
-#define MODM_syslog(LEVEL, FORMAT)                             \
-       MDBGLOG(LEVEL) syslog(LEVEL,                            \
-                             "%s Modules: " FORMAT, IOSTR);
-
-
-
-
 /*
  * ServiceFunctionHook extensions are used for hooks which implement various
  * protocols (either on TCP or on unix domain sockets) directly in the Citadel server.
@@ -55,60 +28,28 @@ struct CleanupFunctionHook {
 };
 extern CleanupFunctionHook *CleanupHookTable;
 
-
-typedef struct __LogDebugEntry {
-       CtdlDbgFunction F;
-       const char *Name;
-       long Len;
-       const int *LogP;
-} LogDebugEntry;
-extern HashList *LogDebugEntryTable;
 void initialize_server_extensions(void);
 int DLoader_Exec_Cmd(char *cmdbuf);
 char *Dynamic_Module_Init(void);
 
-void CtdlDestroySessionHooks(void);
 void PerformSessionHooks(int EventType);
 
-int CheckTDAPVeto (int DBType, StrBuf *ErrMsg);
-void CtdlDestroyTDAPVetoHooks(void);
-
-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 *, recptypes *recps, 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);
 
-void CtdlRegisterDebugFlagHook(const char *Name, long len, CtdlDbgFunction F, const int *);
-void CtdlSetDebugLogFacilities(const char **Str, long n);
-void CtdlDestroyDebugTable(void);
+void netcfg_keyname(char *keybuf, long roomnum);
 
 #endif /* SERV_EXTENSIONS_H */