Back to index

webcit  8.12-dfsg
Functions | Variables
modules_init.c File Reference
#include "sysdep.h"
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <libcitadel.h>
#include "webcit.h"
#include "modules_init.h"
#include "webserver.h"

Go to the source code of this file.

Functions

void LogPrintMessages (long err)
void start_modules (void)
void initialise_modules (void)
void initialise2_modules (void)
void shutdown_modules (void)
void session_new_modules (wcsession *sess)
void session_attach_modules (wcsession *sess)
void session_detach_modules (wcsession *sess)
void session_destroy_modules (wcsession **sess)
void http_new_modules (ParsedHttpHdrs *httpreq)
void http_detach_modules (ParsedHttpHdrs *httpreq)
void http_destroy_modules (ParsedHttpHdrs *httpreq)

Variables

long DetailErrorFlags

Function Documentation

void http_destroy_modules ( ParsedHttpHdrs httpreq)

Definition at line 533 of file modules_init.c.

{
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Destructing AUTH\n");
#endif
       HttpDestroyModule_AUTH(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Destructing CONTEXT\n");
#endif
       HttpDestroyModule_CONTEXT(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Destructing TCPSOCKETS\n");
#endif
       HttpDestroyModule_TCPSOCKETS(httpreq);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void http_detach_modules ( ParsedHttpHdrs httpreq)

Definition at line 517 of file modules_init.c.

{
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Detaching AUTH\n");
#endif
       HttpDetachModule_AUTH(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Detaching CONTEXT\n");
#endif
       HttpDetachModule_CONTEXT(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Detaching TCPSOCKETS\n");
#endif
       HttpDetachModule_TCPSOCKETS(httpreq);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void http_new_modules ( ParsedHttpHdrs httpreq)

Definition at line 501 of file modules_init.c.

{
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "NEW AUTH\n");
#endif
       HttpNewModule_AUTH(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "NEW CONTEXT\n");
#endif
       HttpNewModule_CONTEXT(httpreq);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "NEW TCPSOCKETS\n");
#endif
       HttpNewModule_TCPSOCKETS(httpreq);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void initialise2_modules ( void  )

Definition at line 294 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
#endif
       InitModule2_MSGRENDERERS();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void initialise_modules ( void  )

Definition at line 76 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ADDRBOOK_POPUP\n");
#endif
       InitModule_ADDRBOOK_POPUP();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing AUTH\n");
#endif
       InitModule_AUTH();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing AUTO_COMPLETE\n");
#endif
       InitModule_AUTO_COMPLETE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing BBSVIEWRENDERERS\n");
#endif
       InitModule_BBSVIEWRENDERERS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing BLOGVIEWRENDERERS\n");
#endif
       InitModule_BLOGVIEWRENDERERS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing CALENDAR\n");
#endif
       InitModule_CALENDAR();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing CALENDAR_VIEW\n");
#endif
       InitModule_CALENDAR_VIEW();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing CONTEXT\n");
#endif
       InitModule_CONTEXT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing DATE\n");
#endif
       InitModule_DATE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing DATETIME\n");
#endif
       InitModule_DATETIME();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing DOWNLOAD\n");
#endif
       InitModule_DOWNLOAD();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing GETTEXT\n");
#endif
       InitModule_GETTEXT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing GRAPHICS\n");
#endif
       InitModule_GRAPHICS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing GROUPDAV\n");
#endif
       InitModule_GROUPDAV();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ICAL_SUBST\n");
#endif
       InitModule_ICAL_SUBST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ICONBAR\n");
#endif
       InitModule_ICONBAR();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing INETCONF\n");
#endif
       InitModule_INETCONF();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing LISTSUB\n");
#endif
       InitModule_LISTSUB();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MAINMENU\n");
#endif
       InitModule_MAINMENU();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MARCHLIST\n");
#endif
       InitModule_MARCHLIST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MSG\n");
#endif
       InitModule_MSG();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
#endif
       InitModule_MSGRENDERERS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing NETCONF\n");
#endif
       InitModule_NETCONF();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing NOTES\n");
#endif
       InitModule_NOTES();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing OPENID\n");
#endif
       InitModule_OPENID();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PAGING\n");
#endif
       InitModule_PAGING();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PARAMHANDLING\n");
#endif
       InitModule_PARAMHANDLING();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PREFERENCES\n");
#endif
       InitModule_PREFERENCES();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PROPFIND\n");
#endif
       InitModule_PROPFIND();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PUSHMAIL\n");
#endif
       InitModule_PUSHMAIL();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing REPORT\n");
#endif
       InitModule_REPORT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMCHAT\n");
#endif
       InitModule_ROOMCHAT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMLIST\n");
#endif
       InitModule_ROOMLIST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMOPS\n");
#endif
       InitModule_ROOMOPS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMTOKENS\n");
#endif
       InitModule_ROOMTOKENS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMVIEWS\n");
#endif
       InitModule_ROOMVIEWS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing RSS\n");
#endif
       InitModule_RSS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SERVFUNC\n");
#endif
       InitModule_SERVFUNC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SETUP_WIZARD\n");
#endif
       InitModule_SETUP_WIZARD();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SIEVE\n");
#endif
       InitModule_SIEVE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SITECONFIG\n");
#endif
       InitModule_SITECONFIG();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SITEMAP\n");
#endif
       InitModule_SITEMAP();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SMTP_QUEUE\n");
#endif
       InitModule_SMTP_QUEUE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing STATIC\n");
#endif
       InitModule_STATIC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SUBST\n");
#endif
       InitModule_SUBST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SUMMARY\n");
#endif
       InitModule_SUMMARY();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SYSMSG\n");
#endif
       InitModule_SYSMSG();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing TASKS\n");
#endif
       InitModule_TASKS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing USEREDIT\n");
#endif
       InitModule_USEREDIT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing VCARD\n");
#endif
       InitModule_VCARD();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WEBCIT\n");
#endif
       InitModule_WEBCIT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WHO\n");
#endif
       InitModule_WHO();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WIKI\n");
#endif
       InitModule_WIKI();
}

Here is the caller graph for this function:

void LogPrintMessages ( long  err)

Definition at line 392 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Attaching Session; GETTEXT\n");
#endif
       SessionAttachModule_GETTEXT(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Attaching Session; PARAMHANDLING\n");
#endif
       SessionAttachModule_PARAMHANDLING(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Attaching Session; SUBST\n");
#endif
       SessionAttachModule_SUBST(sess);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 440 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing AUTH\n");
#endif
       SessionDestroyModule_AUTH(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing GETTEXT\n");
#endif
       SessionDestroyModule_GETTEXT(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ICONBAR\n");
#endif
       SessionDestroyModule_ICONBAR(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
#endif
       SessionDestroyModule_MSGRENDERERS(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PAGING\n");
#endif
       SessionDestroyModule_PAGING(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PREFERENCES\n");
#endif
       SessionDestroyModule_PREFERENCES(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMCHAT\n");
#endif
       SessionDestroyModule_ROOMCHAT(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing ROOMOPS\n");
#endif
       SessionDestroyModule_ROOMOPS(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SERVFUNC\n");
#endif
       SessionDestroyModule_SERVFUNC(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SITECONFIG\n");
#endif
       SessionDestroyModule_SITECONFIG(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SUBST\n");
#endif
       SessionDestroyModule_SUBST(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing TCPSOCKETS\n");
#endif
       SessionDestroyModule_TCPSOCKETS(*sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WEBCIT\n");
#endif
       SessionDestroyModule_WEBCIT(*sess);
       free((*sess));
       (*sess) = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 410 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing MSG\n");
#endif
       SessionDetachModule_MSG(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PARAMHANDLING\n");
#endif
       SessionDetachModule_PARAMHANDLING(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing _PREFERENCES\n");
#endif
       SessionDetachModule__PREFERENCES(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SIEVE\n");
#endif
       SessionDetachModule_SIEVE(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SUBST\n");
#endif
       SessionDetachModule_SUBST(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WEBCIT\n");
#endif
       SessionDetachModule_WEBCIT(sess);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void session_new_modules ( wcsession sess)

Definition at line 366 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing GETTEXT\n");
#endif
       SessionNewModule_GETTEXT(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing PREFERENCES\n");
#endif
       SessionNewModule_PREFERENCES(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing SUBST\n");
#endif
       SessionNewModule_SUBST(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing TCPSOCKETS\n");
#endif
       SessionNewModule_TCPSOCKETS(sess);
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Initializing WEBCIT\n");
#endif
       SessionNewModule_WEBCIT(sess);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void shutdown_modules ( void  )

Definition at line 304 of file modules_init.c.

{

#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down CONTEXT\n");
#endif
       ServerShutdownModule_CONTEXT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down DAV\n");
#endif
       ServerShutdownModule_DAV();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down GETTEXT\n");
#endif
       ServerShutdownModule_GETTEXT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down ICAL\n");
#endif
       ServerShutdownModule_ICAL();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down ICONBAR\n");
#endif
       ServerShutdownModule_ICONBAR();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down MSGRENDERERS\n");
#endif
       ServerShutdownModule_MSGRENDERERS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down PREFERENCES\n");
#endif
       ServerShutdownModule_PREFERENCES();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down SERV_FUNC\n");
#endif
       ServerShutdownModule_SERV_FUNC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down SITECONFIG\n");
#endif
       ServerShutdownModule_SITECONFIG();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down SMTP_QUEUE\n");
#endif
       ServerShutdownModule_SMTP_QUEUE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down STATIC\n");
#endif
       ServerShutdownModule_STATIC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down SUBST\n");
#endif
       ServerShutdownModule_SUBST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down VCARD\n");
#endif
       ServerShutdownModule_VCARD();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Shutting down WEBCIT\n");
#endif
       ServerShutdownModule_WEBCIT();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void start_modules ( void  )

Definition at line 23 of file modules_init.c.

{
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting CONTEXT\n");
#endif
       ServerStartModule_CONTEXT();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting DAV\n");
#endif
       ServerStartModule_DAV();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting ICONBAR\n");
#endif
       ServerStartModule_ICONBAR();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting MSGRENDERERS\n");
#endif
       ServerStartModule_MSGRENDERERS();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting PREFERENCES\n");
#endif
       ServerStartModule_PREFERENCES();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting SERV_FUNC\n");
#endif
       ServerStartModule_SERV_FUNC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting SITECONFIG\n");
#endif
       ServerStartModule_SITECONFIG();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting SMTP_QUEUE\n");
#endif
       ServerStartModule_SMTP_QUEUE();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting STATIC\n");
#endif
       ServerStartModule_STATIC();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting SUBST\n");
#endif
       ServerStartModule_SUBST();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting VCARD\n");
#endif
       ServerStartModule_VCARD();
#ifdef DBG_PRINNT_HOOKS_AT_START
       syslog(CTDL_INFO, "Starting WEBCIT\n");
#endif
       ServerStartModule_WEBCIT();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation