Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

gwlib.h File Reference

#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include "gw-config.h"
#include "gw-getopt.h"
#include "gwpoll.h"
#include "utils.h"
#include "log.h"
#include "thread.h"
#include "gwthread.h"
#include "gwmem.h"
#include "socket.h"
#include "cfg.h"
#include "date.h"
#include "http.h"
#include "octstr.h"
#include "list.h"
#include "fdset.h"
#include "gwassert.h"
#include "counter.h"
#include "charset.h"
#include "conn.h"
#include "ssl.h"
#include "parse.h"
#include "protected.h"
#include "accesslog.h"
#include "dict.h"
#include "semaphore.h"
#include "xmlrpc.h"
#include "md5.h"
#include "gw_uuid.h"
#include "gw-rwlock.h"
#include "gw-prioqueue.h"

Include dependency graph for gwlib.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void gwlib_assert_init (void)
void gwlib_init (void)
void gwlib_shutdown (void)


Function Documentation

void gwlib_assert_init void   ) 
 

Referenced by cookies_destroy(), gwlib_shutdown(), http_append_headers(), http_cgi_variable(), http_cgivar_dump(), http_cgivar_dump_into(), http_create_empty_headers(), http_destroy_cgiargs(), http_destroy_headers(), http_header_add(), http_header_dump(), http_header_duplicate(), http_header_find_all(), http_header_find_first_real(), http_header_get(), http_header_get_content_type(), http_header_pack(), http_header_remove_all(), http_header_value(), http_remove_hop_headers(), http_shutdown(), and http_something_accepted().

void gwlib_init void   ) 
 

Definition at line 78 of file gwlib.c.

References cfg_init(), charset_init(), gw_assert, gwlib_protected_init(), gwthread_init(), http_init(), init, log_init(), octstr_init(), socket_init(), and uuid_init().

Referenced by main().

00079 {
00080     gw_assert(!init);
00081     gw_init_mem();
00082     uuid_init();
00083     octstr_init();
00084     gwlib_protected_init();
00085     gwthread_init();
00086     log_init();
00087     http_init();
00088     socket_init();
00089     charset_init();
00090     cfg_init();
00091     init = 1;
00092 }

Here is the call graph for this function:

void gwlib_shutdown void   ) 
 

Definition at line 94 of file gwlib.c.

References cfg_shutdown(), charset_shutdown(), gwlib_assert_init(), gwlib_protected_shutdown(), gwthread_shutdown(), http_shutdown(), init, log_shutdown(), octstr_shutdown(), socket_shutdown(), and uuid_shutdown().

Referenced by main(), and parachute_start().

00095 {
00096     gwlib_assert_init();
00097     charset_shutdown();
00098     http_shutdown();
00099     socket_shutdown();
00100     gwthread_shutdown();
00101     octstr_shutdown();
00102     gwlib_protected_shutdown();
00103     uuid_shutdown();
00104     cfg_shutdown();
00105     gw_check_leaks();
00106     log_shutdown();
00107     gwmem_shutdown();
00108     init = 0;
00109 }

Here is the call graph for this function:

See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.