fixed php typemaps to handle NULL values
[lwes-php.git] / php_lwes.h
blob9dc12fb8918045bc08d3ea3839986a687ec21c46
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.24
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 +----------------------------------------------------------------------+
13 | PHP version 4.0 |
14 +----------------------------------------------------------------------+
15 | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
16 +----------------------------------------------------------------------+
17 | This source file is subject to version 2.02 of the PHP license, |
18 | that is bundled with this package in the file LICENSE, and is |
19 | available at through the world-wide-web at |
20 | http://www.php.net/license/2_02.txt. |
21 | If you did not receive a copy of the PHP license and are unable to |
22 | obtain it through the world-wide-web, please send a note to |
23 | license@php.net so we can mail you a copy immediately. |
24 +----------------------------------------------------------------------+
25 | Authors: |
26 | |
27 +----------------------------------------------------------------------+
31 #ifndef PHP_LWES_H
32 #define PHP_LWES_H
34 extern zend_module_entry lwes_module_entry;
35 #define phpext_lwes_ptr &lwes_module_entry
37 #ifdef PHP_WIN32
38 # define PHP_LWES_API __declspec(dllexport)
39 #else
40 # define PHP_LWES_API
41 #endif
43 PHP_MINIT_FUNCTION(lwes);
44 PHP_MSHUTDOWN_FUNCTION(lwes);
45 PHP_RINIT_FUNCTION(lwes);
46 PHP_RSHUTDOWN_FUNCTION(lwes);
47 PHP_MINFO_FUNCTION(lwes);
49 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_create);
50 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_destroy);
51 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create);
52 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create_with_ttl);
53 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emit);
54 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emitto);
55 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_destroy);
56 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create);
57 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_with_encoding);
58 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_16);
59 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_16);
60 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_16);
61 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_16);
62 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_32);
63 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_32);
64 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_32);
65 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_32);
66 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_64);
67 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_64);
68 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_64);
69 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_64);
70 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_STRING);
71 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_STRING);
72 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_IP_ADDR_w_string);
73 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_IP_ADDR);
74 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_BOOLEAN);
75 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_BOOLEAN);
76 ZEND_NAMED_FUNCTION(_wrap_lwes_event_destroy);
77 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_no_db);
78 /*If you declare any globals in php_lwes.h uncomment this:
79 ZEND_BEGIN_MODULE_GLOBALS(lwes)
80 ZEND_END_MODULE_GLOBALS(lwes)
82 #ifdef ZTS
83 #define LWES_D zend_lwes_globals *lwes_globals
84 #define LWES_DC , LWES_D
85 #define LWES_C lwes_globals
86 #define LWES_CC , LWES_C
87 #define LWES_SG(v) (lwes_globals->v)
88 #define LWES_FETCH() zend_lwes_globals *lwes_globals = ts_resource(lwes_globals_id)
89 #else
90 #define LWES_D
91 #define LWES_DC
92 #define LWES_C
93 #define LWES_CC
94 #define LWES_SG(v) (lwes_globals.v)
95 #define LWES_FETCH()
96 #endif
98 #endif /* PHP_LWES_H */