Back to index

webcit  8.12-dfsg
modules_init.c
Go to the documentation of this file.
00001 /*
00002  * /var/www/easyinstall/citadel/webcit/modules_init.c
00003  * Auto generated by mk_modules_init.sh DO NOT EDIT THIS FILE
00004  */
00005 
00006 
00007 
00008 #include "sysdep.h"
00009 #include <stdlib.h>
00010 #include <time.h>
00011 #include <ctype.h>
00012 #include <stdio.h>
00013 #include <sys/types.h>
00014 #include <unistd.h>
00015 #include <libcitadel.h>
00016 #include "webcit.h"
00017 #include "modules_init.h"
00018 #include "webserver.h"
00019 
00020 void LogPrintMessages(long err);
00021 extern long DetailErrorFlags;
00022 
00023 void start_modules (void)
00024 {
00025 #ifdef DBG_PRINNT_HOOKS_AT_START
00026        syslog(CTDL_INFO, "Starting CONTEXT\n");
00027 #endif
00028        ServerStartModule_CONTEXT();
00029 #ifdef DBG_PRINNT_HOOKS_AT_START
00030        syslog(CTDL_INFO, "Starting DAV\n");
00031 #endif
00032        ServerStartModule_DAV();
00033 #ifdef DBG_PRINNT_HOOKS_AT_START
00034        syslog(CTDL_INFO, "Starting ICONBAR\n");
00035 #endif
00036        ServerStartModule_ICONBAR();
00037 #ifdef DBG_PRINNT_HOOKS_AT_START
00038        syslog(CTDL_INFO, "Starting MSGRENDERERS\n");
00039 #endif
00040        ServerStartModule_MSGRENDERERS();
00041 #ifdef DBG_PRINNT_HOOKS_AT_START
00042        syslog(CTDL_INFO, "Starting PREFERENCES\n");
00043 #endif
00044        ServerStartModule_PREFERENCES();
00045 #ifdef DBG_PRINNT_HOOKS_AT_START
00046        syslog(CTDL_INFO, "Starting SERV_FUNC\n");
00047 #endif
00048        ServerStartModule_SERV_FUNC();
00049 #ifdef DBG_PRINNT_HOOKS_AT_START
00050        syslog(CTDL_INFO, "Starting SITECONFIG\n");
00051 #endif
00052        ServerStartModule_SITECONFIG();
00053 #ifdef DBG_PRINNT_HOOKS_AT_START
00054        syslog(CTDL_INFO, "Starting SMTP_QUEUE\n");
00055 #endif
00056        ServerStartModule_SMTP_QUEUE();
00057 #ifdef DBG_PRINNT_HOOKS_AT_START
00058        syslog(CTDL_INFO, "Starting STATIC\n");
00059 #endif
00060        ServerStartModule_STATIC();
00061 #ifdef DBG_PRINNT_HOOKS_AT_START
00062        syslog(CTDL_INFO, "Starting SUBST\n");
00063 #endif
00064        ServerStartModule_SUBST();
00065 #ifdef DBG_PRINNT_HOOKS_AT_START
00066        syslog(CTDL_INFO, "Starting VCARD\n");
00067 #endif
00068        ServerStartModule_VCARD();
00069 #ifdef DBG_PRINNT_HOOKS_AT_START
00070        syslog(CTDL_INFO, "Starting WEBCIT\n");
00071 #endif
00072        ServerStartModule_WEBCIT();
00073 }
00074 
00075 
00076 void initialise_modules (void)
00077 {
00078 
00079 #ifdef DBG_PRINNT_HOOKS_AT_START
00080        syslog(CTDL_INFO, "Initializing ADDRBOOK_POPUP\n");
00081 #endif
00082        InitModule_ADDRBOOK_POPUP();
00083 #ifdef DBG_PRINNT_HOOKS_AT_START
00084        syslog(CTDL_INFO, "Initializing AUTH\n");
00085 #endif
00086        InitModule_AUTH();
00087 #ifdef DBG_PRINNT_HOOKS_AT_START
00088        syslog(CTDL_INFO, "Initializing AUTO_COMPLETE\n");
00089 #endif
00090        InitModule_AUTO_COMPLETE();
00091 #ifdef DBG_PRINNT_HOOKS_AT_START
00092        syslog(CTDL_INFO, "Initializing BBSVIEWRENDERERS\n");
00093 #endif
00094        InitModule_BBSVIEWRENDERERS();
00095 #ifdef DBG_PRINNT_HOOKS_AT_START
00096        syslog(CTDL_INFO, "Initializing BLOGVIEWRENDERERS\n");
00097 #endif
00098        InitModule_BLOGVIEWRENDERERS();
00099 #ifdef DBG_PRINNT_HOOKS_AT_START
00100        syslog(CTDL_INFO, "Initializing CALENDAR\n");
00101 #endif
00102        InitModule_CALENDAR();
00103 #ifdef DBG_PRINNT_HOOKS_AT_START
00104        syslog(CTDL_INFO, "Initializing CALENDAR_VIEW\n");
00105 #endif
00106        InitModule_CALENDAR_VIEW();
00107 #ifdef DBG_PRINNT_HOOKS_AT_START
00108        syslog(CTDL_INFO, "Initializing CONTEXT\n");
00109 #endif
00110        InitModule_CONTEXT();
00111 #ifdef DBG_PRINNT_HOOKS_AT_START
00112        syslog(CTDL_INFO, "Initializing DATE\n");
00113 #endif
00114        InitModule_DATE();
00115 #ifdef DBG_PRINNT_HOOKS_AT_START
00116        syslog(CTDL_INFO, "Initializing DATETIME\n");
00117 #endif
00118        InitModule_DATETIME();
00119 #ifdef DBG_PRINNT_HOOKS_AT_START
00120        syslog(CTDL_INFO, "Initializing DOWNLOAD\n");
00121 #endif
00122        InitModule_DOWNLOAD();
00123 #ifdef DBG_PRINNT_HOOKS_AT_START
00124        syslog(CTDL_INFO, "Initializing GETTEXT\n");
00125 #endif
00126        InitModule_GETTEXT();
00127 #ifdef DBG_PRINNT_HOOKS_AT_START
00128        syslog(CTDL_INFO, "Initializing GRAPHICS\n");
00129 #endif
00130        InitModule_GRAPHICS();
00131 #ifdef DBG_PRINNT_HOOKS_AT_START
00132        syslog(CTDL_INFO, "Initializing GROUPDAV\n");
00133 #endif
00134        InitModule_GROUPDAV();
00135 #ifdef DBG_PRINNT_HOOKS_AT_START
00136        syslog(CTDL_INFO, "Initializing ICAL_SUBST\n");
00137 #endif
00138        InitModule_ICAL_SUBST();
00139 #ifdef DBG_PRINNT_HOOKS_AT_START
00140        syslog(CTDL_INFO, "Initializing ICONBAR\n");
00141 #endif
00142        InitModule_ICONBAR();
00143 #ifdef DBG_PRINNT_HOOKS_AT_START
00144        syslog(CTDL_INFO, "Initializing INETCONF\n");
00145 #endif
00146        InitModule_INETCONF();
00147 #ifdef DBG_PRINNT_HOOKS_AT_START
00148        syslog(CTDL_INFO, "Initializing LISTSUB\n");
00149 #endif
00150        InitModule_LISTSUB();
00151 #ifdef DBG_PRINNT_HOOKS_AT_START
00152        syslog(CTDL_INFO, "Initializing MAINMENU\n");
00153 #endif
00154        InitModule_MAINMENU();
00155 #ifdef DBG_PRINNT_HOOKS_AT_START
00156        syslog(CTDL_INFO, "Initializing MARCHLIST\n");
00157 #endif
00158        InitModule_MARCHLIST();
00159 #ifdef DBG_PRINNT_HOOKS_AT_START
00160        syslog(CTDL_INFO, "Initializing MSG\n");
00161 #endif
00162        InitModule_MSG();
00163 #ifdef DBG_PRINNT_HOOKS_AT_START
00164        syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
00165 #endif
00166        InitModule_MSGRENDERERS();
00167 #ifdef DBG_PRINNT_HOOKS_AT_START
00168        syslog(CTDL_INFO, "Initializing NETCONF\n");
00169 #endif
00170        InitModule_NETCONF();
00171 #ifdef DBG_PRINNT_HOOKS_AT_START
00172        syslog(CTDL_INFO, "Initializing NOTES\n");
00173 #endif
00174        InitModule_NOTES();
00175 #ifdef DBG_PRINNT_HOOKS_AT_START
00176        syslog(CTDL_INFO, "Initializing OPENID\n");
00177 #endif
00178        InitModule_OPENID();
00179 #ifdef DBG_PRINNT_HOOKS_AT_START
00180        syslog(CTDL_INFO, "Initializing PAGING\n");
00181 #endif
00182        InitModule_PAGING();
00183 #ifdef DBG_PRINNT_HOOKS_AT_START
00184        syslog(CTDL_INFO, "Initializing PARAMHANDLING\n");
00185 #endif
00186        InitModule_PARAMHANDLING();
00187 #ifdef DBG_PRINNT_HOOKS_AT_START
00188        syslog(CTDL_INFO, "Initializing PREFERENCES\n");
00189 #endif
00190        InitModule_PREFERENCES();
00191 #ifdef DBG_PRINNT_HOOKS_AT_START
00192        syslog(CTDL_INFO, "Initializing PROPFIND\n");
00193 #endif
00194        InitModule_PROPFIND();
00195 #ifdef DBG_PRINNT_HOOKS_AT_START
00196        syslog(CTDL_INFO, "Initializing PUSHMAIL\n");
00197 #endif
00198        InitModule_PUSHMAIL();
00199 #ifdef DBG_PRINNT_HOOKS_AT_START
00200        syslog(CTDL_INFO, "Initializing REPORT\n");
00201 #endif
00202        InitModule_REPORT();
00203 #ifdef DBG_PRINNT_HOOKS_AT_START
00204        syslog(CTDL_INFO, "Initializing ROOMCHAT\n");
00205 #endif
00206        InitModule_ROOMCHAT();
00207 #ifdef DBG_PRINNT_HOOKS_AT_START
00208        syslog(CTDL_INFO, "Initializing ROOMLIST\n");
00209 #endif
00210        InitModule_ROOMLIST();
00211 #ifdef DBG_PRINNT_HOOKS_AT_START
00212        syslog(CTDL_INFO, "Initializing ROOMOPS\n");
00213 #endif
00214        InitModule_ROOMOPS();
00215 #ifdef DBG_PRINNT_HOOKS_AT_START
00216        syslog(CTDL_INFO, "Initializing ROOMTOKENS\n");
00217 #endif
00218        InitModule_ROOMTOKENS();
00219 #ifdef DBG_PRINNT_HOOKS_AT_START
00220        syslog(CTDL_INFO, "Initializing ROOMVIEWS\n");
00221 #endif
00222        InitModule_ROOMVIEWS();
00223 #ifdef DBG_PRINNT_HOOKS_AT_START
00224        syslog(CTDL_INFO, "Initializing RSS\n");
00225 #endif
00226        InitModule_RSS();
00227 #ifdef DBG_PRINNT_HOOKS_AT_START
00228        syslog(CTDL_INFO, "Initializing SERVFUNC\n");
00229 #endif
00230        InitModule_SERVFUNC();
00231 #ifdef DBG_PRINNT_HOOKS_AT_START
00232        syslog(CTDL_INFO, "Initializing SETUP_WIZARD\n");
00233 #endif
00234        InitModule_SETUP_WIZARD();
00235 #ifdef DBG_PRINNT_HOOKS_AT_START
00236        syslog(CTDL_INFO, "Initializing SIEVE\n");
00237 #endif
00238        InitModule_SIEVE();
00239 #ifdef DBG_PRINNT_HOOKS_AT_START
00240        syslog(CTDL_INFO, "Initializing SITECONFIG\n");
00241 #endif
00242        InitModule_SITECONFIG();
00243 #ifdef DBG_PRINNT_HOOKS_AT_START
00244        syslog(CTDL_INFO, "Initializing SITEMAP\n");
00245 #endif
00246        InitModule_SITEMAP();
00247 #ifdef DBG_PRINNT_HOOKS_AT_START
00248        syslog(CTDL_INFO, "Initializing SMTP_QUEUE\n");
00249 #endif
00250        InitModule_SMTP_QUEUE();
00251 #ifdef DBG_PRINNT_HOOKS_AT_START
00252        syslog(CTDL_INFO, "Initializing STATIC\n");
00253 #endif
00254        InitModule_STATIC();
00255 #ifdef DBG_PRINNT_HOOKS_AT_START
00256        syslog(CTDL_INFO, "Initializing SUBST\n");
00257 #endif
00258        InitModule_SUBST();
00259 #ifdef DBG_PRINNT_HOOKS_AT_START
00260        syslog(CTDL_INFO, "Initializing SUMMARY\n");
00261 #endif
00262        InitModule_SUMMARY();
00263 #ifdef DBG_PRINNT_HOOKS_AT_START
00264        syslog(CTDL_INFO, "Initializing SYSMSG\n");
00265 #endif
00266        InitModule_SYSMSG();
00267 #ifdef DBG_PRINNT_HOOKS_AT_START
00268        syslog(CTDL_INFO, "Initializing TASKS\n");
00269 #endif
00270        InitModule_TASKS();
00271 #ifdef DBG_PRINNT_HOOKS_AT_START
00272        syslog(CTDL_INFO, "Initializing USEREDIT\n");
00273 #endif
00274        InitModule_USEREDIT();
00275 #ifdef DBG_PRINNT_HOOKS_AT_START
00276        syslog(CTDL_INFO, "Initializing VCARD\n");
00277 #endif
00278        InitModule_VCARD();
00279 #ifdef DBG_PRINNT_HOOKS_AT_START
00280        syslog(CTDL_INFO, "Initializing WEBCIT\n");
00281 #endif
00282        InitModule_WEBCIT();
00283 #ifdef DBG_PRINNT_HOOKS_AT_START
00284        syslog(CTDL_INFO, "Initializing WHO\n");
00285 #endif
00286        InitModule_WHO();
00287 #ifdef DBG_PRINNT_HOOKS_AT_START
00288        syslog(CTDL_INFO, "Initializing WIKI\n");
00289 #endif
00290        InitModule_WIKI();
00291 }
00292 
00293 
00294 void initialise2_modules (void)
00295 {
00296 
00297 #ifdef DBG_PRINNT_HOOKS_AT_START
00298        syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
00299 #endif
00300        InitModule2_MSGRENDERERS();
00301 }
00302 
00303 
00304 void shutdown_modules (void)
00305 {
00306 
00307 #ifdef DBG_PRINNT_HOOKS_AT_START
00308        syslog(CTDL_INFO, "Shutting down CONTEXT\n");
00309 #endif
00310        ServerShutdownModule_CONTEXT();
00311 #ifdef DBG_PRINNT_HOOKS_AT_START
00312        syslog(CTDL_INFO, "Shutting down DAV\n");
00313 #endif
00314        ServerShutdownModule_DAV();
00315 #ifdef DBG_PRINNT_HOOKS_AT_START
00316        syslog(CTDL_INFO, "Shutting down GETTEXT\n");
00317 #endif
00318        ServerShutdownModule_GETTEXT();
00319 #ifdef DBG_PRINNT_HOOKS_AT_START
00320        syslog(CTDL_INFO, "Shutting down ICAL\n");
00321 #endif
00322        ServerShutdownModule_ICAL();
00323 #ifdef DBG_PRINNT_HOOKS_AT_START
00324        syslog(CTDL_INFO, "Shutting down ICONBAR\n");
00325 #endif
00326        ServerShutdownModule_ICONBAR();
00327 #ifdef DBG_PRINNT_HOOKS_AT_START
00328        syslog(CTDL_INFO, "Shutting down MSGRENDERERS\n");
00329 #endif
00330        ServerShutdownModule_MSGRENDERERS();
00331 #ifdef DBG_PRINNT_HOOKS_AT_START
00332        syslog(CTDL_INFO, "Shutting down PREFERENCES\n");
00333 #endif
00334        ServerShutdownModule_PREFERENCES();
00335 #ifdef DBG_PRINNT_HOOKS_AT_START
00336        syslog(CTDL_INFO, "Shutting down SERV_FUNC\n");
00337 #endif
00338        ServerShutdownModule_SERV_FUNC();
00339 #ifdef DBG_PRINNT_HOOKS_AT_START
00340        syslog(CTDL_INFO, "Shutting down SITECONFIG\n");
00341 #endif
00342        ServerShutdownModule_SITECONFIG();
00343 #ifdef DBG_PRINNT_HOOKS_AT_START
00344        syslog(CTDL_INFO, "Shutting down SMTP_QUEUE\n");
00345 #endif
00346        ServerShutdownModule_SMTP_QUEUE();
00347 #ifdef DBG_PRINNT_HOOKS_AT_START
00348        syslog(CTDL_INFO, "Shutting down STATIC\n");
00349 #endif
00350        ServerShutdownModule_STATIC();
00351 #ifdef DBG_PRINNT_HOOKS_AT_START
00352        syslog(CTDL_INFO, "Shutting down SUBST\n");
00353 #endif
00354        ServerShutdownModule_SUBST();
00355 #ifdef DBG_PRINNT_HOOKS_AT_START
00356        syslog(CTDL_INFO, "Shutting down VCARD\n");
00357 #endif
00358        ServerShutdownModule_VCARD();
00359 #ifdef DBG_PRINNT_HOOKS_AT_START
00360        syslog(CTDL_INFO, "Shutting down WEBCIT\n");
00361 #endif
00362        ServerShutdownModule_WEBCIT();
00363 }
00364 
00365 
00366 void session_new_modules (wcsession *sess)
00367 {
00368 
00369 #ifdef DBG_PRINNT_HOOKS_AT_START
00370        syslog(CTDL_INFO, "Initializing GETTEXT\n");
00371 #endif
00372        SessionNewModule_GETTEXT(sess);
00373 #ifdef DBG_PRINNT_HOOKS_AT_START
00374        syslog(CTDL_INFO, "Initializing PREFERENCES\n");
00375 #endif
00376        SessionNewModule_PREFERENCES(sess);
00377 #ifdef DBG_PRINNT_HOOKS_AT_START
00378        syslog(CTDL_INFO, "Initializing SUBST\n");
00379 #endif
00380        SessionNewModule_SUBST(sess);
00381 #ifdef DBG_PRINNT_HOOKS_AT_START
00382        syslog(CTDL_INFO, "Initializing TCPSOCKETS\n");
00383 #endif
00384        SessionNewModule_TCPSOCKETS(sess);
00385 #ifdef DBG_PRINNT_HOOKS_AT_START
00386        syslog(CTDL_INFO, "Initializing WEBCIT\n");
00387 #endif
00388        SessionNewModule_WEBCIT(sess);
00389 }
00390 
00391 
00392 void session_attach_modules (wcsession *sess)
00393 {
00394 
00395 #ifdef DBG_PRINNT_HOOKS_AT_START
00396        syslog(CTDL_INFO, "Attaching Session; GETTEXT\n");
00397 #endif
00398        SessionAttachModule_GETTEXT(sess);
00399 #ifdef DBG_PRINNT_HOOKS_AT_START
00400        syslog(CTDL_INFO, "Attaching Session; PARAMHANDLING\n");
00401 #endif
00402        SessionAttachModule_PARAMHANDLING(sess);
00403 #ifdef DBG_PRINNT_HOOKS_AT_START
00404        syslog(CTDL_INFO, "Attaching Session; SUBST\n");
00405 #endif
00406        SessionAttachModule_SUBST(sess);
00407 }
00408 
00409 
00410 void session_detach_modules (wcsession *sess)
00411 {
00412 
00413 #ifdef DBG_PRINNT_HOOKS_AT_START
00414        syslog(CTDL_INFO, "Initializing MSG\n");
00415 #endif
00416        SessionDetachModule_MSG(sess);
00417 #ifdef DBG_PRINNT_HOOKS_AT_START
00418        syslog(CTDL_INFO, "Initializing PARAMHANDLING\n");
00419 #endif
00420        SessionDetachModule_PARAMHANDLING(sess);
00421 #ifdef DBG_PRINNT_HOOKS_AT_START
00422        syslog(CTDL_INFO, "Initializing _PREFERENCES\n");
00423 #endif
00424        SessionDetachModule__PREFERENCES(sess);
00425 #ifdef DBG_PRINNT_HOOKS_AT_START
00426        syslog(CTDL_INFO, "Initializing SIEVE\n");
00427 #endif
00428        SessionDetachModule_SIEVE(sess);
00429 #ifdef DBG_PRINNT_HOOKS_AT_START
00430        syslog(CTDL_INFO, "Initializing SUBST\n");
00431 #endif
00432        SessionDetachModule_SUBST(sess);
00433 #ifdef DBG_PRINNT_HOOKS_AT_START
00434        syslog(CTDL_INFO, "Initializing WEBCIT\n");
00435 #endif
00436        SessionDetachModule_WEBCIT(sess);
00437 }
00438 
00439 
00440 void session_destroy_modules (wcsession **sess)
00441 {
00442 
00443 #ifdef DBG_PRINNT_HOOKS_AT_START
00444        syslog(CTDL_INFO, "Initializing AUTH\n");
00445 #endif
00446        SessionDestroyModule_AUTH(*sess);
00447 #ifdef DBG_PRINNT_HOOKS_AT_START
00448        syslog(CTDL_INFO, "Initializing GETTEXT\n");
00449 #endif
00450        SessionDestroyModule_GETTEXT(*sess);
00451 #ifdef DBG_PRINNT_HOOKS_AT_START
00452        syslog(CTDL_INFO, "Initializing ICONBAR\n");
00453 #endif
00454        SessionDestroyModule_ICONBAR(*sess);
00455 #ifdef DBG_PRINNT_HOOKS_AT_START
00456        syslog(CTDL_INFO, "Initializing MSGRENDERERS\n");
00457 #endif
00458        SessionDestroyModule_MSGRENDERERS(*sess);
00459 #ifdef DBG_PRINNT_HOOKS_AT_START
00460        syslog(CTDL_INFO, "Initializing PAGING\n");
00461 #endif
00462        SessionDestroyModule_PAGING(*sess);
00463 #ifdef DBG_PRINNT_HOOKS_AT_START
00464        syslog(CTDL_INFO, "Initializing PREFERENCES\n");
00465 #endif
00466        SessionDestroyModule_PREFERENCES(*sess);
00467 #ifdef DBG_PRINNT_HOOKS_AT_START
00468        syslog(CTDL_INFO, "Initializing ROOMCHAT\n");
00469 #endif
00470        SessionDestroyModule_ROOMCHAT(*sess);
00471 #ifdef DBG_PRINNT_HOOKS_AT_START
00472        syslog(CTDL_INFO, "Initializing ROOMOPS\n");
00473 #endif
00474        SessionDestroyModule_ROOMOPS(*sess);
00475 #ifdef DBG_PRINNT_HOOKS_AT_START
00476        syslog(CTDL_INFO, "Initializing SERVFUNC\n");
00477 #endif
00478        SessionDestroyModule_SERVFUNC(*sess);
00479 #ifdef DBG_PRINNT_HOOKS_AT_START
00480        syslog(CTDL_INFO, "Initializing SITECONFIG\n");
00481 #endif
00482        SessionDestroyModule_SITECONFIG(*sess);
00483 #ifdef DBG_PRINNT_HOOKS_AT_START
00484        syslog(CTDL_INFO, "Initializing SUBST\n");
00485 #endif
00486        SessionDestroyModule_SUBST(*sess);
00487 #ifdef DBG_PRINNT_HOOKS_AT_START
00488        syslog(CTDL_INFO, "Initializing TCPSOCKETS\n");
00489 #endif
00490        SessionDestroyModule_TCPSOCKETS(*sess);
00491 #ifdef DBG_PRINNT_HOOKS_AT_START
00492        syslog(CTDL_INFO, "Initializing WEBCIT\n");
00493 #endif
00494        SessionDestroyModule_WEBCIT(*sess);
00495        free((*sess));
00496        (*sess) = NULL;
00497 }
00498 
00499 
00500 
00501 void http_new_modules (ParsedHttpHdrs *httpreq)
00502 {
00503 #ifdef DBG_PRINNT_HOOKS_AT_START
00504        syslog(CTDL_INFO, "NEW AUTH\n");
00505 #endif
00506        HttpNewModule_AUTH(httpreq);
00507 #ifdef DBG_PRINNT_HOOKS_AT_START
00508        syslog(CTDL_INFO, "NEW CONTEXT\n");
00509 #endif
00510        HttpNewModule_CONTEXT(httpreq);
00511 #ifdef DBG_PRINNT_HOOKS_AT_START
00512        syslog(CTDL_INFO, "NEW TCPSOCKETS\n");
00513 #endif
00514        HttpNewModule_TCPSOCKETS(httpreq);
00515 }
00516 
00517 void http_detach_modules (ParsedHttpHdrs *httpreq)
00518 {
00519 #ifdef DBG_PRINNT_HOOKS_AT_START
00520        syslog(CTDL_INFO, "Detaching AUTH\n");
00521 #endif
00522        HttpDetachModule_AUTH(httpreq);
00523 #ifdef DBG_PRINNT_HOOKS_AT_START
00524        syslog(CTDL_INFO, "Detaching CONTEXT\n");
00525 #endif
00526        HttpDetachModule_CONTEXT(httpreq);
00527 #ifdef DBG_PRINNT_HOOKS_AT_START
00528        syslog(CTDL_INFO, "Detaching TCPSOCKETS\n");
00529 #endif
00530        HttpDetachModule_TCPSOCKETS(httpreq);
00531 }
00532 
00533 void http_destroy_modules (ParsedHttpHdrs *httpreq)
00534 {
00535 #ifdef DBG_PRINNT_HOOKS_AT_START
00536        syslog(CTDL_INFO, "Destructing AUTH\n");
00537 #endif
00538        HttpDestroyModule_AUTH(httpreq);
00539 #ifdef DBG_PRINNT_HOOKS_AT_START
00540        syslog(CTDL_INFO, "Destructing CONTEXT\n");
00541 #endif
00542        HttpDestroyModule_CONTEXT(httpreq);
00543 #ifdef DBG_PRINNT_HOOKS_AT_START
00544        syslog(CTDL_INFO, "Destructing TCPSOCKETS\n");
00545 #endif
00546        HttpDestroyModule_TCPSOCKETS(httpreq);
00547 }