• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • Directories
  • File List
  • Globals

tls_hooks_init.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2007 iptelorg GmbH 
00005  *
00006  * Permission to use, copy, modify, and distribute this software for any
00007  * purpose with or without fee is hereby granted, provided that the above
00008  * copyright notice and this permission notice appear in all copies.
00009  *
00010  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
00011  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00012  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
00013  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00014  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00015  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00016  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00017  */
00018 /*
00019  * tls hooks init
00020  *
00021  * History:
00022  * --------
00023  *  2007-02-09  created by andrei
00024  */
00025 
00034 #ifndef _tls_hooks_init_h
00035 #define _tls_hooks_init_h
00036 
00037 #ifdef TLS_HOOKS
00038 
00039 #include "ip_addr.h" /* socket_info */
00040 
00041 #ifndef USE_TLS
00042 #error "USE_TLS required and not defined (please compile with make \
00043         TLS_HOOKS=1)"
00044 #endif
00045 
00046 #ifdef CORE_TLS
00047 #error "Conflict: CORE_TLS and TLS_HOOKS cannot be defined in the same time"
00048 #endif
00049 
00050 
00051 int tls_loaded(void);
00052 int tls_has_init_si(void); /*returns true if a handle for tls_init is registered*/
00053 int tls_init(struct socket_info* si);
00054 int init_tls(void);
00055 void destroy_tls(void);
00056 
00057 #endif /* TLS_HOOKS */
00058 #endif

Generated on Tue May 22 2012 13:10:17 for SIP Router by  doxygen 1.7.1