- Added proper destructors for resources and custom types
[lwes-php.git] / php_lwes.h
blob7a0af6e8e7522d8a40825d4f20e63a3b747facb3
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 +----------------------------------------------------------------------+
30 #include "config.h"
32 #ifndef PHP_LWES_H
33 #define PHP_LWES_H
35 extern zend_module_entry lwes_module_entry;
36 #define phpext_lwes_ptr &lwes_module_entry
38 #ifdef PHP_WIN32
39 # define PHP_LWES_API __declspec(dllexport)
40 #else
41 # define PHP_LWES_API
42 #endif
44 PHP_MINIT_FUNCTION(lwes);
45 PHP_MSHUTDOWN_FUNCTION(lwes);
46 PHP_RINIT_FUNCTION(lwes);
47 PHP_RSHUTDOWN_FUNCTION(lwes);
48 PHP_MINFO_FUNCTION(lwes);
50 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_create);
51 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_destroy);
52 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create);
53 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create_with_ttl);
54 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emit);
55 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emitto);
56 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_destroy);
57 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create);
58 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_with_encoding);
59 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_16);
60 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_16);
61 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_16);
62 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_16);
63 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_32);
64 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_32);
65 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_32);
66 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_32);
67 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_STRING);
68 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_STRING);
69 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_IP_ADDR_w_string);
70 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_IP_ADDR);
71 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_BOOLEAN);
72 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_BOOLEAN);
73 ZEND_NAMED_FUNCTION(_wrap_lwes_event_destroy);
74 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_no_db);
75 /*If you declare any globals in php_lwes.h uncomment this:
76 ZEND_BEGIN_MODULE_GLOBALS(lwes)
77 ZEND_END_MODULE_GLOBALS(lwes)
79 #ifdef ZTS
80 #define LWES_D zend_lwes_globals *lwes_globals
81 #define LWES_DC , LWES_D
82 #define LWES_C lwes_globals
83 #define LWES_CC , LWES_C
84 #define LWES_SG(v) (lwes_globals->v)
85 #define LWES_FETCH() zend_lwes_globals *lwes_globals = ts_resource(lwes_globals_id)
86 #else
87 #define LWES_D
88 #define LWES_DC
89 #define LWES_C
90 #define LWES_CC
91 #define LWES_SG(v) (lwes_globals.v)
92 #define LWES_FETCH()
93 #endif
95 #endif /* PHP_LWES_H */