1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
13 # if defined(__SUNPRO_CC)
14 # define SWIG_TEMPLATE_DISAMBIGUATOR template
16 # define SWIG_TEMPLATE_DISAMBIGUATOR
20 /***********************************************************************
23 * This file contains generic CAPI SWIG runtime support for pointer
26 ************************************************************************/
28 /* This should only be incremented when either the layout of swig_type_info changes,
29 or for whatever reason, the runtime changes incompatibly */
30 #define SWIG_RUNTIME_VERSION "1"
32 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
33 #ifdef SWIG_TYPE_TABLE
34 #define SWIG_QUOTE_STRING(x) #x
35 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
36 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
38 #define SWIG_TYPE_TABLE_NAME
44 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
45 # define SWIGINLINE inline
52 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
53 creating a static or dynamic library from the swig runtime code.
54 In 99.9% of the cases, swig just needs to declare them as 'static'.
56 But only do this if is strictly necessary, ie, if you have problems
57 with your compiler or so.
60 #define SWIGRUNTIME static
62 #ifndef SWIGRUNTIMEINLINE
63 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
70 typedef void *(*swig_converter_func
)(void *);
71 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
73 typedef struct swig_type_info
{
75 swig_converter_func converter
;
78 swig_dycast_func dcast
;
79 struct swig_type_info
*next
;
80 struct swig_type_info
*prev
;
84 Compare two type names skipping the space characters, therefore
85 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
87 Return 0 when the two name types are equivalent, as in
88 strncmp, but skipping ' '.
91 SWIG_TypeNameComp(const char *f1
, const char *l1
,
92 const char *f2
, const char *l2
) {
93 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
94 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
95 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
96 if (*f1
!= *f2
) return *f1
- *f2
;
98 return (l1
- f1
) - (l2
- f2
);
102 Check type equivalence in a name list like <name1>|<name2>|...
105 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
107 const char* te
= tb
+ strlen(tb
);
109 while (!equiv
&& *ne
) {
110 for (nb
= ne
; *ne
; ++ne
) {
111 if (*ne
== '|') break;
113 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
120 Register a type mapping with the type-checking
122 SWIGRUNTIME swig_type_info
*
123 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
124 swig_type_info
*tc
, *head
, *ret
, *next
;
125 /* Check to see if this type has already been registered */
128 /* check simple type equivalence */
129 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
130 /* check full type equivalence, resolving typedefs */
132 /* only if tc is not a typedef (no '|' on it) */
133 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
134 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
138 /* Already exists in the table. Just add additional types to the list */
139 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
153 /* Build linked lists */
157 /* Patch up the rest of the links */
164 if (next
) next
->prev
= head
;
173 SWIGRUNTIME swig_type_info
*
174 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
176 if (!ty
) return 0; /* Void pointer */
177 s
= ty
->next
; /* First element always just a name */
179 if (strcmp(s
->name
,c
) == 0) {
180 if (s
== ty
->next
) return s
;
181 /* Move s to the top of the linked list */
182 s
->prev
->next
= s
->next
;
184 s
->next
->prev
= s
->prev
;
186 /* Insert s as second element in the list */
188 if (ty
->next
) ty
->next
->prev
= s
;
194 } while (s
&& (s
!= ty
->next
));
199 Cast a pointer up an inheritance hierarchy
201 SWIGRUNTIMEINLINE
void *
202 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
203 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
207 Dynamic pointer casting. Down an inheritance hierarchy
209 SWIGRUNTIME swig_type_info
*
210 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
211 swig_type_info
*lastty
= ty
;
212 if (!ty
|| !ty
->dcast
) return ty
;
213 while (ty
&& (ty
->dcast
)) {
214 ty
= (*ty
->dcast
)(ptr
);
221 Return the name associated with this type
223 SWIGRUNTIMEINLINE
const char *
224 SWIG_TypeName(const swig_type_info
*ty
) {
229 Return the pretty name associated with this type,
230 that is an unmangled type name in a form presentable to the user.
232 SWIGRUNTIME
const char *
233 SWIG_TypePrettyName(const swig_type_info
*type
) {
234 /* The "str" field contains the equivalent pretty names of the
235 type, separated by vertical-bar characters. We choose
236 to print the last name, as it is often (?) the most
238 if (type
->str
!= NULL
) {
239 const char *last_name
= type
->str
;
241 for (s
= type
->str
; *s
; s
++)
242 if (*s
== '|') last_name
= s
+1;
250 Search for a swig_type_info structure
252 SWIGRUNTIME swig_type_info
*
253 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
254 swig_type_info
*ty
= tl
;
256 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
257 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
264 Set the clientdata field for a type
267 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
268 swig_type_info
*tc
, *equiv
;
269 if (ti
->clientdata
) return;
270 /* if (ti->clientdata == clientdata) return; */
271 ti
->clientdata
= clientdata
;
274 if (!equiv
->converter
) {
277 if ((strcmp(tc
->name
, equiv
->name
) == 0))
278 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
287 Pack binary data into a string
290 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
291 static char hex
[17] = "0123456789abcdef";
292 unsigned char *u
= (unsigned char *) ptr
;
293 const unsigned char *eu
= u
+ sz
;
294 register unsigned char uu
;
295 for (; u
!= eu
; ++u
) {
297 *(c
++) = hex
[(uu
& 0xf0) >> 4];
298 *(c
++) = hex
[uu
& 0xf];
304 Unpack binary data from a string
306 SWIGRUNTIME
const char *
307 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
308 register unsigned char *u
= (unsigned char *) ptr
;
309 register const unsigned char *eu
= u
+ sz
;
310 for (; u
!= eu
; ++u
) {
311 register int d
= *(c
++);
312 register unsigned char uu
= 0;
313 if ((d
>= '0') && (d
<= '9'))
314 uu
= ((d
- '0') << 4);
315 else if ((d
>= 'a') && (d
<= 'f'))
316 uu
= ((d
- ('a'-10)) << 4);
320 if ((d
>= '0') && (d
<= '9'))
322 else if ((d
>= 'a') && (d
<= 'f'))
323 uu
|= (d
- ('a'-10));
332 This function will propagate the clientdata field of type to any new
333 swig_type_info structures that have been added into the list of
334 equivalent types. It is like calling SWIG_TypeClientData(type,
335 clientdata) a second time.
338 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
339 swig_type_info
*equiv
= type
->next
;
341 if (!type
->clientdata
) return;
343 if (!equiv
->converter
) {
346 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
347 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
356 Pack 'void *' into a string buffer.
359 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
361 if ((2*sizeof(void *) + 2) > bsz
) return 0;
363 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
364 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
369 SWIGRUNTIME
const char *
370 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
372 if (strcmp(c
,"NULL") == 0) {
379 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
383 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
385 size_t lname
= (name
? strlen(name
) : 0);
386 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
388 r
= SWIG_PackData(r
,ptr
,sz
);
390 strncpy(r
,name
,lname
+1);
397 SWIGRUNTIME
const char *
398 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
400 if (strcmp(c
,"NULL") == 0) {
407 return SWIG_UnpackData(++c
,ptr
,sz
);
414 /***********************************************************************
417 * This file contains generic SWIG runtime support for pointer
418 * type checking as well as a few commonly used macros to control
421 * Author : David Beazley (beazley@cs.uchicago.edu)
423 * Copyright (c) 1999-2000, The University of Chicago
425 * This file may be freely redistributed without license or fee provided
426 * this copyright message remains intact.
427 ************************************************************************/
430 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
431 # if !defined(STATIC_LINKED)
432 # define SWIGEXPORT(a) __declspec(dllexport) a
434 # define SWIGEXPORT(a) a
437 # define SWIGEXPORT(a) a
445 /*************************************************************************/
448 /* The static type info list */
450 static swig_type_info
*swig_type_list
= 0;
451 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
454 /* Register a type mapping with the type-checking */
455 static swig_type_info
*
456 SWIG_TypeRegister(swig_type_info
*ti
) {
457 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
460 /* Search for a swig_type_info structure */
461 static swig_type_info
*
462 SWIG_TypeQuery(const char *name
) {
463 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
466 /* Set the clientdata field for a type */
468 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
469 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
472 /* This function will propagate the clientdata field of type to
473 * any new swig_type_info structures that have been added into the list
474 * of equivalent types. It is like calling
475 * SWIG_TypeClientData(type, clientdata) a second time.
478 SWIG_PropagateClientData(swig_type_info
*type
) {
479 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
489 * PHP4 runtime library
497 #include "zend_API.h"
500 /* These TSRMLS_ stuff should already be defined now, but with older php under
519 /* used to wrap returned objects in so we know whether they are newobject
520 and need freeing, or not */
521 typedef struct _swig_object_wrapper
{
524 } swig_object_wrapper
;
526 /* local scope self_constructors are set to 1 inside function wrappers
527 which are also class constructors, so that the php4.swg output typemaps
528 know whether or not to wrap returned objects in this_ptr or a new object */
529 int self_constructor
=0;
531 /* empty zend destructor for types without one */
532 static ZEND_RSRC_DTOR_FUNC(SWIG_landfill
) {};
534 /* This one makes old swig style string pointers but the php module doesn't
535 use these any more. This is just left here for old times sake and may go */
537 SWIG_MakePtr(char *c
, void *ptr
, swig_type_info
*ty
) {
538 static char hex
[17] = "0123456789abcdef";
543 p
= (unsigned long) ptr
;
554 strcpy (c
, ty
->name
);
561 SWIG_SetPointerChar(char **c
, void *ptr
, swig_type_info
*type
) {
564 SWIG_MakePtr(data
, ptr
, type
);
568 #define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d, SWIG_module_entry TSRMLS_CC)
571 SWIG_ZTS_SetPointerZval(zval
*z
, void *ptr
, swig_type_info
*type
, int newobject
, zend_module_entry
* module_entry TSRMLS_DC
) {
572 swig_object_wrapper
*value
=NULL
;
573 /* No need to call SWIG_MakePtr here! */
574 if (type
->clientdata
) {
575 if (! (*(int *)(type
->clientdata
))) zend_error(E_ERROR
, "Type: %s failed to register with zend",type
->name
);
576 value
=(swig_object_wrapper
*)emalloc(sizeof(swig_object_wrapper
));
578 value
->newobject
=newobject
;
579 ZEND_REGISTER_RESOURCE(z
, value
, *(int *)(type
->clientdata
));
581 } else { /* have to deal with old fashioned string pointer?
582 but this should not get this far */
583 zend_error(E_ERROR
, "Type: %s not registered with zend",type
->name
);
587 /* This old-style routine converts an old string-pointer c into a real pointer
588 ptr calling making appropriate casting functions according to ty
589 We don't use this any more */
591 SWIG_ConvertPtr_(char *c
, void **ptr
, swig_type_info
*ty
) {
604 if (strcmp(c
,"NULL") == 0) {
612 /* Extract hex value from pointer */
614 if ((d
>= '0') && (d
<= '9'))
615 p
= (p
<< 4) + (d
- '0');
616 else if ((d
>= 'a') && (d
<= 'f'))
617 p
= (p
<< 4) + (d
- ('a'-10));
625 tc
= SWIG_TypeCheck(c
,ty
);
626 if(!tc
) goto type_error
;
627 *ptr
= SWIG_TypeCast(tc
, (void*)p
);
636 /* This is a new pointer conversion routine
637 Taking the native pointer p (which would have been converted from the old
638 string pointer) and it's php type id, and it's type name (which also would
639 have come from the old string pointer) it converts it to ptr calling
640 appropriate casting functions according to ty
641 Sadly PHP has no API to find a type name from a type id, only from an instance
642 of a resource of the type id, so we have to pass type_name as well.
643 The two functions which might call this are:
644 SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource
645 and the registered zend destructors for which we have one per type each
646 with the type name hard wired in. */
648 SWIG_ZTS_ConvertResourceData(void * p
, int type
, const char *type_name
, void **ptr
, swig_type_info
*ty TSRMLS_DC
) {
653 /* can't convert p to ptr type ty if we don't know what type p is */
656 /* convert and cast p from type_name to ptr as ty
657 Need to sort out const-ness, can SWIG_TypeCast really not take a const? */
658 tc
= SWIG_TypeCheck((char *)type_name
,ty
);
660 *ptr
= SWIG_TypeCast(tc
, (void*)p
);
663 /* They don't care about the target type, so just pass on the pointer! */
669 /* This function fills ptr with a pointer of type ty by extracting the pointer
670 and type info from the resource in z. z must be a resource
671 It uses SWIG_ZTS_ConvertResourceData to do the real work. */
673 SWIG_ZTS_ConvertResourcePtr(zval
*z
, void **ptr
, swig_type_info
*ty TSRMLS_DC
) {
674 swig_object_wrapper
*value
;
679 value
= (swig_object_wrapper
*) zend_list_find(z
->value
.lval
,&type
);
681 if (type
==-1) return -1;
683 type_name
=zend_rsrc_list_get_rsrc_type(z
->value
.lval
);
685 return SWIG_ZTS_ConvertResourceData(p
,type
,type_name
,ptr
,ty TSRMLS_CC
);
688 /* But in fact SWIG_ConvertPtr is the native interface for getting typed
689 pointer values out of zvals. We need the TSRMLS_ macros for when we
690 make PHP type calls later as we handle php resources */
691 #define SWIG_ConvertPtr(a,b,c) SWIG_ZTS_ConvertPtr(a,b,c TSRMLS_CC)
693 /* We allow passing of a STRING or RESOURCE pointing to the object
694 or an OBJECT whose _cPtr is a string or resource pointing to the object
695 STRING pointers are very depracated */
697 SWIG_ZTS_ConvertPtr(zval
*z
, void **ptr
, swig_type_info
*ty TSRMLS_DC
) {
706 if (z
->type
==IS_OBJECT
) {
708 if (zend_hash_find(HASH_OF(z
),"_cPtr",sizeof("_cPtr"),(void**)&_cPtr
)==SUCCESS
) {
709 /* Don't co-erce to string if it isn't */
710 if ((*_cPtr
)->type
==IS_STRING
) c
= Z_STRVAL_PP(_cPtr
);
711 else if ((*_cPtr
)->type
==IS_RESOURCE
) {
712 return SWIG_ZTS_ConvertResourcePtr(*_cPtr
,ptr
,ty TSRMLS_CC
);
713 } else goto type_error
; /* _cPtr was not string or resource property */
714 } else goto type_error
; /* can't find property _cPtr */
715 } else if (z
->type
==IS_RESOURCE
) {
716 return SWIG_ZTS_ConvertResourcePtr(z
,ptr
,ty TSRMLS_CC
);
717 } else if (z
->type
==IS_STRING
) {
719 return SWIG_ConvertPtr_(c
,ptr
,ty
);
720 } else goto type_error
;
728 /* -------- TYPES TABLE (BEGIN) -------- */
730 #define SWIGTYPE_p_lwes_event_type_db swig_types[0]
731 #define SWIGTYPE_p_unsigned_long_long swig_types[1]
732 #define SWIGTYPE_p_long_long swig_types[2]
733 #define SWIGTYPE_p_in_addr swig_types[3]
734 #define SWIGTYPE_p_lwes_emitter swig_types[4]
735 #define SWIGTYPE_p_p_char swig_types[5]
736 #define SWIGTYPE_p_lwes_event swig_types[6]
737 #define SWIGTYPE_p_unsigned_int swig_types[7]
738 #define SWIGTYPE_p_unsigned_short swig_types[8]
739 #define SWIGTYPE_p_short swig_types[9]
740 #define SWIGTYPE_p_int swig_types[10]
741 static swig_type_info
*swig_types
[12];
743 /* -------- TYPES TABLE (END) -------- */
747 +----------------------------------------------------------------------+
749 +----------------------------------------------------------------------+
750 | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
751 +----------------------------------------------------------------------+
752 | This source file is subject to version 2.02 of the PHP license, |
753 | that is bundled with this package in the file LICENSE, and is |
754 | available at through the world-wide-web at |
755 | http://www.php.net/license/2_02.txt. |
756 | If you did not receive a copy of the PHP license and are unable to |
757 | obtain it through the world-wide-web, please send a note to |
758 | license@php.net so we can mail you a copy immediately. |
759 +----------------------------------------------------------------------+
762 +----------------------------------------------------------------------+
764 #define SWIG_init initlwes
766 #define SWIG_name "lwes"
772 #include "ext/standard/info.h"
773 #include "php_lwes.h"
784 lwes_event_create_no_db(char *event_name
)
786 return lwes_event_create(NULL
, event_name
);
790 /* class entry subsection */
793 /* entry subsection */
794 /* Every non-class user visible function must have an entry here */
795 function_entry lwes_functions
[] = {
796 ZEND_NAMED_FE(lwes_event_type_db_create
,
797 _wrap_lwes_event_type_db_create
, NULL
)
798 ZEND_NAMED_FE(lwes_event_type_db_destroy
,
799 _wrap_lwes_event_type_db_destroy
, NULL
)
800 ZEND_NAMED_FE(lwes_emitter_create
,
801 _wrap_lwes_emitter_create
, NULL
)
802 ZEND_NAMED_FE(lwes_emitter_create_with_ttl
,
803 _wrap_lwes_emitter_create_with_ttl
, NULL
)
804 ZEND_NAMED_FE(lwes_emitter_emit
,
805 _wrap_lwes_emitter_emit
, NULL
)
806 ZEND_NAMED_FE(lwes_emitter_emitto
,
807 _wrap_lwes_emitter_emitto
, NULL
)
808 ZEND_NAMED_FE(lwes_emitter_destroy
,
809 _wrap_lwes_emitter_destroy
, NULL
)
810 ZEND_NAMED_FE(lwes_event_create
,
811 _wrap_lwes_event_create
, NULL
)
812 ZEND_NAMED_FE(lwes_event_create_with_encoding
,
813 _wrap_lwes_event_create_with_encoding
, NULL
)
814 ZEND_NAMED_FE(lwes_event_set_u_int_16
,
815 _wrap_lwes_event_set_U_INT_16
, NULL
)
816 ZEND_NAMED_FE(lwes_event_get_u_int_16
,
817 _wrap_lwes_event_get_U_INT_16
, NULL
)
818 ZEND_NAMED_FE(lwes_event_set_int_16
,
819 _wrap_lwes_event_set_INT_16
, NULL
)
820 ZEND_NAMED_FE(lwes_event_get_int_16
,
821 _wrap_lwes_event_get_INT_16
, NULL
)
822 ZEND_NAMED_FE(lwes_event_set_u_int_32
,
823 _wrap_lwes_event_set_U_INT_32
, NULL
)
824 ZEND_NAMED_FE(lwes_event_get_u_int_32
,
825 _wrap_lwes_event_get_U_INT_32
, NULL
)
826 ZEND_NAMED_FE(lwes_event_set_int_32
,
827 _wrap_lwes_event_set_INT_32
, NULL
)
828 ZEND_NAMED_FE(lwes_event_get_int_32
,
829 _wrap_lwes_event_get_INT_32
, NULL
)
830 ZEND_NAMED_FE(lwes_event_set_string
,
831 _wrap_lwes_event_set_STRING
, NULL
)
832 ZEND_NAMED_FE(lwes_event_get_string
,
833 _wrap_lwes_event_get_STRING
, NULL
)
834 ZEND_NAMED_FE(lwes_event_set_ip_addr_w_string
,
835 _wrap_lwes_event_set_IP_ADDR_w_string
, NULL
)
836 ZEND_NAMED_FE(lwes_event_get_ip_addr
,
837 _wrap_lwes_event_get_IP_ADDR
, NULL
)
838 ZEND_NAMED_FE(lwes_event_set_boolean
,
839 _wrap_lwes_event_set_BOOLEAN
, NULL
)
840 ZEND_NAMED_FE(lwes_event_get_boolean
,
841 _wrap_lwes_event_get_BOOLEAN
, NULL
)
842 ZEND_NAMED_FE(lwes_event_destroy
,
843 _wrap_lwes_event_destroy
, NULL
)
844 ZEND_NAMED_FE(lwes_event_create_no_db
,
845 _wrap_lwes_event_create_no_db
, NULL
)
849 zend_module_entry lwes_module_entry
= {
850 #if ZEND_MODULE_API_NO > 20010900
851 STANDARD_MODULE_HEADER
,
860 #if ZEND_MODULE_API_NO > 20010900
863 STANDARD_MODULE_PROPERTIES
865 zend_module_entry
* SWIG_module_entry
= &lwes_module_entry
;
868 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
870 static swig_type_info _swigt__p_lwes_event_type_db
[] = {{"_p_lwes_event_type_db", 0, "struct lwes_event_type_db *", 0, 0, 0, 0},{"_p_lwes_event_type_db", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
871 static swig_type_info _swigt__p_unsigned_long_long
[] = {{"_p_unsigned_long_long", 0, "unsigned long long *", 0, 0, 0, 0},{"_p_unsigned_long_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
872 static swig_type_info _swigt__p_long_long
[] = {{"_p_long_long", 0, "long long *", 0, 0, 0, 0},{"_p_long_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
873 static swig_type_info _swigt__p_in_addr
[] = {{"_p_in_addr", 0, "struct in_addr *", 0, 0, 0, 0},{"_p_in_addr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
874 static swig_type_info _swigt__p_lwes_emitter
[] = {{"_p_lwes_emitter", 0, "struct lwes_emitter *", 0, 0, 0, 0},{"_p_lwes_emitter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
875 static swig_type_info _swigt__p_p_char
[] = {{"_p_p_char", 0, "char **", 0, 0, 0, 0},{"_p_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
876 static swig_type_info _swigt__p_lwes_event
[] = {{"_p_lwes_event", 0, "struct lwes_event *", 0, 0, 0, 0},{"_p_lwes_event", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
877 static swig_type_info _swigt__p_unsigned_int
[] = {{"_p_unsigned_int", 0, "unsigned int *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
878 static swig_type_info _swigt__p_unsigned_short
[] = {{"_p_unsigned_short", 0, "unsigned short *", 0, 0, 0, 0},{"_p_unsigned_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
879 static swig_type_info _swigt__p_short
[] = {{"_p_short", 0, "short *", 0, 0, 0, 0},{"_p_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
880 static swig_type_info _swigt__p_int
[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
882 static swig_type_info
*swig_types_initial
[] = {
883 _swigt__p_lwes_event_type_db
,
884 _swigt__p_unsigned_long_long
,
887 _swigt__p_lwes_emitter
,
889 _swigt__p_lwes_event
,
890 _swigt__p_unsigned_int
,
891 _swigt__p_unsigned_short
,
898 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
900 /* vdecl subsection */
901 static int le_swig__p_lwes_event_type_db
=0; /* handle for */
902 static int le_swig__p_unsigned_long_long
=0; /* handle for */
903 static int le_swig__p_long_long
=0; /* handle for */
904 static int le_swig__p_in_addr
=0; /* handle for */
905 static int le_swig__p_lwes_emitter
=0; /* handle for */
906 static int le_swig__p_p_char
=0; /* handle for */
907 static int le_swig__p_lwes_event
=0; /* handle for */
908 static int le_swig__p_unsigned_int
=0; /* handle for */
909 static int le_swig__p_unsigned_short
=0; /* handle for */
910 static int le_swig__p_short
=0; /* handle for */
911 static int le_swig__p_int
=0; /* handle for */
912 /* end vdecl subsection */
913 /* wrapper section */
914 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_create
) {
915 char *arg1
= (char *) 0 ;
916 struct lwes_event_type_db
*result
;
920 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
921 /* fake this_ptr as first arg (till we can work out how to do it better */
924 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
929 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
932 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
933 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
937 result
= (struct lwes_event_type_db
*)lwes_event_type_db_create(arg1
);
940 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event_type_db
, 0);
945 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_destroy
) {
946 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
951 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
952 /* fake this_ptr as first arg (till we can work out how to do it better */
955 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
960 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
963 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
969 result
= (int)lwes_event_type_db_destroy(arg1
);
972 ZVAL_LONG(return_value
,result
);
977 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create
) {
978 char *arg1
= (char *) 0 ;
979 char *arg2
= (char *) 0 ;
983 struct lwes_emitter
*result
;
987 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
988 /* fake this_ptr as first arg (till we can work out how to do it better */
991 if(((ZEND_NUM_ARGS() + argbase
)!= 5) || (zend_get_parameters_array_ex(5-argbase
, args
)!= SUCCESS
)) {
996 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
999 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1000 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1005 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1008 convert_to_string_ex(args
[1-argbase
]);
1009 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1014 convert_to_long_ex(args
[2-argbase
]);
1015 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1018 convert_to_long_ex(args
[3-argbase
]);
1019 arg4
= (int) Z_LVAL_PP(args
[3-argbase
]);
1022 convert_to_long_ex(args
[4-argbase
]);
1023 arg5
= (short) Z_LVAL_PP(args
[4-argbase
]);
1025 result
= (struct lwes_emitter
*)lwes_emitter_create(arg1
,arg2
,arg3
,arg4
,arg5
);
1028 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_emitter
, 0);
1033 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create_with_ttl
) {
1034 char *arg1
= (char *) 0 ;
1035 char *arg2
= (char *) 0 ;
1040 struct lwes_emitter
*result
;
1044 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1045 /* fake this_ptr as first arg (till we can work out how to do it better */
1048 if(((ZEND_NUM_ARGS() + argbase
)!= 6) || (zend_get_parameters_array_ex(6-argbase
, args
)!= SUCCESS
)) {
1053 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1056 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1057 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1062 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1065 convert_to_string_ex(args
[1-argbase
]);
1066 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1071 convert_to_long_ex(args
[2-argbase
]);
1072 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1075 convert_to_long_ex(args
[3-argbase
]);
1076 arg4
= (int) Z_LVAL_PP(args
[3-argbase
]);
1079 convert_to_long_ex(args
[4-argbase
]);
1080 arg5
= (short) Z_LVAL_PP(args
[4-argbase
]);
1083 convert_to_long_ex(args
[5-argbase
]);
1084 arg6
= (int) Z_LVAL_PP(args
[5-argbase
]);
1086 result
= (struct lwes_emitter
*)lwes_emitter_create_with_ttl(arg1
,arg2
,arg3
,arg4
,arg5
,arg6
);
1089 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_emitter
, 0);
1094 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emit
) {
1095 struct lwes_emitter
*arg1
= (struct lwes_emitter
*) 0 ;
1096 struct lwes_event
*arg2
= (struct lwes_event
*) 0 ;
1101 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1102 /* fake this_ptr as first arg (till we can work out how to do it better */
1105 if(((ZEND_NUM_ARGS() + argbase
)!= 2) || (zend_get_parameters_array_ex(2-argbase
, args
)!= SUCCESS
)) {
1110 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_emitter
) < 0) {
1111 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emit. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1115 if(SWIG_ConvertPtr(*args
[1-argbase
], (void **) &arg2
, SWIGTYPE_p_lwes_event
) < 0) {
1116 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emit. Expected %s", 2-argbase
, SWIGTYPE_p_lwes_event
->name
);
1119 result
= (int)lwes_emitter_emit(arg1
,arg2
);
1122 ZVAL_LONG(return_value
,result
);
1127 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emitto
) {
1128 char *arg1
= (char *) 0 ;
1129 char *arg2
= (char *) 0 ;
1131 struct lwes_emitter
*arg4
= (struct lwes_emitter
*) 0 ;
1132 struct lwes_event
*arg5
= (struct lwes_event
*) 0 ;
1137 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1138 /* fake this_ptr as first arg (till we can work out how to do it better */
1141 if(((ZEND_NUM_ARGS() + argbase
)!= 5) || (zend_get_parameters_array_ex(5-argbase
, args
)!= SUCCESS
)) {
1146 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1149 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1150 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1155 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1158 convert_to_string_ex(args
[1-argbase
]);
1159 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1164 convert_to_long_ex(args
[2-argbase
]);
1165 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1168 if(SWIG_ConvertPtr(*args
[3-argbase
], (void **) &arg4
, SWIGTYPE_p_lwes_emitter
) < 0) {
1169 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emitto. Expected %s", 4-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1173 if(SWIG_ConvertPtr(*args
[4-argbase
], (void **) &arg5
, SWIGTYPE_p_lwes_event
) < 0) {
1174 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emitto. Expected %s", 5-argbase
, SWIGTYPE_p_lwes_event
->name
);
1177 result
= (int)lwes_emitter_emitto(arg1
,arg2
,arg3
,arg4
,arg5
);
1180 ZVAL_LONG(return_value
,result
);
1185 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_destroy
) {
1186 struct lwes_emitter
*arg1
= (struct lwes_emitter
*) 0 ;
1191 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1192 /* fake this_ptr as first arg (till we can work out how to do it better */
1195 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
1200 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_emitter
) < 0) {
1201 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_destroy. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1204 result
= (int)lwes_emitter_destroy(arg1
);
1207 ZVAL_LONG(return_value
,result
);
1212 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create
) {
1213 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
1214 char *arg2
= (char *) 0 ;
1215 struct lwes_event
*result
;
1219 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1220 /* fake this_ptr as first arg (till we can work out how to do it better */
1223 if(((ZEND_NUM_ARGS() + argbase
)!= 2) || (zend_get_parameters_array_ex(2-argbase
, args
)!= SUCCESS
)) {
1228 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1231 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
1238 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1241 convert_to_string_ex(args
[1-argbase
]);
1242 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1246 result
= (struct lwes_event
*)lwes_event_create(arg1
,arg2
);
1249 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
1254 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_with_encoding
) {
1255 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
1256 char *arg2
= (char *) 0 ;
1258 struct lwes_event
*result
;
1262 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1263 /* fake this_ptr as first arg (till we can work out how to do it better */
1266 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1271 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1274 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
1281 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1284 convert_to_string_ex(args
[1-argbase
]);
1285 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1290 convert_to_long_ex(args
[2-argbase
]);
1291 arg3
= (short) Z_LVAL_PP(args
[2-argbase
]);
1293 result
= (struct lwes_event
*)lwes_event_create_with_encoding(arg1
,arg2
,arg3
);
1296 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
1301 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_16
) {
1302 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1303 char *arg2
= (char *) 0 ;
1304 unsigned short arg3
;
1309 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1310 /* fake this_ptr as first arg (till we can work out how to do it better */
1313 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1318 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1319 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_U_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1323 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1326 convert_to_string_ex(args
[1-argbase
]);
1327 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1332 convert_to_long_ex(args
[2-argbase
]);
1333 arg3
= (unsigned short) Z_LVAL_PP(args
[2-argbase
]);
1335 result
= (int)lwes_event_set_U_INT_16(arg1
,arg2
,arg3
);
1338 ZVAL_LONG(return_value
,result
);
1343 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_16
) {
1344 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1345 char *arg2
= (char *) 0 ;
1346 unsigned short *arg3
= (unsigned short *) 0 ;
1348 unsigned short intr3
;
1354 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1355 /* fake this_ptr as first arg (till we can work out how to do it better */
1358 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1363 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1364 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1368 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1371 convert_to_string_ex(args
[1-argbase
]);
1372 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1377 /* inout typemap for unsigned short using convert_to_long_ex and ZVAL_LONG */
1378 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_unsigned_short
) < 0) {
1379 /* So... we didn't get a ref or ptr, but can it be reasonably
1380 co-erced into what we were looking for a ref of or ptr to? */
1381 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1382 // null passed not by reference means pass NULL
1385 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1386 ((*args
[2-argbase
])->type
==IS_STRING
||
1387 (*args
[2-argbase
])->type
==IS_LONG
||
1388 /* Null passed by reference means we want a value back */
1389 (*args
[2-argbase
])->type
==IS_NULL
||
1390 (*args
[2-argbase
])->type
==IS_BOOL
||
1391 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1392 convert_to_long_ex(args
[2-argbase
]);
1393 intr3
= (unsigned short) (*args
[2-argbase
])->value
.lval
;
1395 /* have to passback arg$arg too */
1398 /* wasn't a pre/ref/thing, OR anything like an int thing */
1400 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_16. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase
, SWIGTYPE_p_unsigned_short
->name
);
1404 _saved
[0] = args
[2-argbase
];
1405 result
= (int)lwes_event_get_U_INT_16(arg1
,arg2
,arg3
);
1408 ZVAL_LONG(return_value
,result
);
1412 /* pass back arg3 through params (_saved[0]) if we can */
1413 if(! PZVAL_IS_REF(*_saved
[0])) {
1414 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_U_INT_16 wasn't passed by reference [argout unsigned short *, unsigned short &]",3-argbase
);
1416 ZVAL_LONG(*_saved
[0],intr3
);
1423 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_16
) {
1424 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1425 char *arg2
= (char *) 0 ;
1431 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1432 /* fake this_ptr as first arg (till we can work out how to do it better */
1435 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1440 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1441 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1445 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1448 convert_to_string_ex(args
[1-argbase
]);
1449 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1454 convert_to_long_ex(args
[2-argbase
]);
1455 arg3
= (short) Z_LVAL_PP(args
[2-argbase
]);
1457 result
= (int)lwes_event_set_INT_16(arg1
,arg2
,arg3
);
1460 ZVAL_LONG(return_value
,result
);
1465 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_16
) {
1466 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1467 char *arg2
= (char *) 0 ;
1468 short *arg3
= (short *) 0 ;
1476 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1477 /* fake this_ptr as first arg (till we can work out how to do it better */
1480 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1485 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1486 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1490 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1493 convert_to_string_ex(args
[1-argbase
]);
1494 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1499 /* inout typemap for short using convert_to_long_ex and ZVAL_LONG */
1500 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_short
) < 0) {
1501 /* So... we didn't get a ref or ptr, but can it be reasonably
1502 co-erced into what we were looking for a ref of or ptr to? */
1503 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1504 // null passed not by reference means pass NULL
1507 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1508 ((*args
[2-argbase
])->type
==IS_STRING
||
1509 (*args
[2-argbase
])->type
==IS_LONG
||
1510 /* Null passed by reference means we want a value back */
1511 (*args
[2-argbase
])->type
==IS_NULL
||
1512 (*args
[2-argbase
])->type
==IS_BOOL
||
1513 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1514 convert_to_long_ex(args
[2-argbase
]);
1515 intr3
= (short) (*args
[2-argbase
])->value
.lval
;
1517 /* have to passback arg$arg too */
1520 /* wasn't a pre/ref/thing, OR anything like an int thing */
1522 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_16. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase
, SWIGTYPE_p_short
->name
);
1526 _saved
[0] = args
[2-argbase
];
1527 result
= (int)lwes_event_get_INT_16(arg1
,arg2
,arg3
);
1530 ZVAL_LONG(return_value
,result
);
1534 /* pass back arg3 through params (_saved[0]) if we can */
1535 if(! PZVAL_IS_REF(*_saved
[0])) {
1536 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_INT_16 wasn't passed by reference [argout short *, short &]",3-argbase
);
1538 ZVAL_LONG(*_saved
[0],intr3
);
1545 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_32
) {
1546 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1547 char *arg2
= (char *) 0 ;
1553 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1554 /* fake this_ptr as first arg (till we can work out how to do it better */
1557 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1562 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1563 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_U_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1567 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1570 convert_to_string_ex(args
[1-argbase
]);
1571 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1576 convert_to_long_ex(args
[2-argbase
]);
1577 arg3
= (unsigned int) Z_LVAL_PP(args
[2-argbase
]);
1579 result
= (int)lwes_event_set_U_INT_32(arg1
,arg2
,arg3
);
1582 ZVAL_LONG(return_value
,result
);
1587 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_32
) {
1588 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1589 char *arg2
= (char *) 0 ;
1590 unsigned int *arg3
= (unsigned int *) 0 ;
1592 unsigned int intr3
;
1598 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1599 /* fake this_ptr as first arg (till we can work out how to do it better */
1602 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1607 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1608 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1612 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1615 convert_to_string_ex(args
[1-argbase
]);
1616 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1621 /* inout typemap for unsigned int using convert_to_long_ex and ZVAL_LONG */
1622 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_unsigned_int
) < 0) {
1623 /* So... we didn't get a ref or ptr, but can it be reasonably
1624 co-erced into what we were looking for a ref of or ptr to? */
1625 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1626 // null passed not by reference means pass NULL
1629 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1630 ((*args
[2-argbase
])->type
==IS_STRING
||
1631 (*args
[2-argbase
])->type
==IS_LONG
||
1632 /* Null passed by reference means we want a value back */
1633 (*args
[2-argbase
])->type
==IS_NULL
||
1634 (*args
[2-argbase
])->type
==IS_BOOL
||
1635 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1636 convert_to_long_ex(args
[2-argbase
]);
1637 intr3
= (unsigned int) (*args
[2-argbase
])->value
.lval
;
1639 /* have to passback arg$arg too */
1642 /* wasn't a pre/ref/thing, OR anything like an int thing */
1644 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_32. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase
, SWIGTYPE_p_unsigned_int
->name
);
1648 _saved
[0] = args
[2-argbase
];
1649 result
= (int)lwes_event_get_U_INT_32(arg1
,arg2
,arg3
);
1652 ZVAL_LONG(return_value
,result
);
1656 /* pass back arg3 through params (_saved[0]) if we can */
1657 if(! PZVAL_IS_REF(*_saved
[0])) {
1658 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_U_INT_32 wasn't passed by reference [argout unsigned int *, unsigned int &]",3-argbase
);
1660 ZVAL_LONG(*_saved
[0],intr3
);
1667 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_32
) {
1668 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1669 char *arg2
= (char *) 0 ;
1675 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1676 /* fake this_ptr as first arg (till we can work out how to do it better */
1679 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1684 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1685 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1689 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1692 convert_to_string_ex(args
[1-argbase
]);
1693 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1698 convert_to_long_ex(args
[2-argbase
]);
1699 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1701 result
= (int)lwes_event_set_INT_32(arg1
,arg2
,arg3
);
1704 ZVAL_LONG(return_value
,result
);
1709 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_32
) {
1710 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1711 char *arg2
= (char *) 0 ;
1712 int *arg3
= (int *) 0 ;
1720 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1721 /* fake this_ptr as first arg (till we can work out how to do it better */
1724 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1729 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1730 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1734 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1737 convert_to_string_ex(args
[1-argbase
]);
1738 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1743 /* inout typemap for int using convert_to_long_ex and ZVAL_LONG */
1744 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_int
) < 0) {
1745 /* So... we didn't get a ref or ptr, but can it be reasonably
1746 co-erced into what we were looking for a ref of or ptr to? */
1747 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1748 // null passed not by reference means pass NULL
1751 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1752 ((*args
[2-argbase
])->type
==IS_STRING
||
1753 (*args
[2-argbase
])->type
==IS_LONG
||
1754 /* Null passed by reference means we want a value back */
1755 (*args
[2-argbase
])->type
==IS_NULL
||
1756 (*args
[2-argbase
])->type
==IS_BOOL
||
1757 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1758 convert_to_long_ex(args
[2-argbase
]);
1759 intr3
= (int) (*args
[2-argbase
])->value
.lval
;
1761 /* have to passback arg$arg too */
1764 /* wasn't a pre/ref/thing, OR anything like an int thing */
1766 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_32. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase
, SWIGTYPE_p_int
->name
);
1770 _saved
[0] = args
[2-argbase
];
1771 result
= (int)lwes_event_get_INT_32(arg1
,arg2
,arg3
);
1774 ZVAL_LONG(return_value
,result
);
1778 /* pass back arg3 through params (_saved[0]) if we can */
1779 if(! PZVAL_IS_REF(*_saved
[0])) {
1780 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_INT_32 wasn't passed by reference [argout int *, int &]",3-argbase
);
1782 ZVAL_LONG(*_saved
[0],intr3
);
1790 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_STRING
) {
1791 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1792 char *arg2
= (char *) 0 ;
1793 char *arg3
= (char *) 0 ;
1798 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1799 /* fake this_ptr as first arg (till we can work out how to do it better */
1802 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1807 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1808 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_STRING. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1812 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1815 convert_to_string_ex(args
[1-argbase
]);
1816 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1821 if ((*args
[2-argbase
])->type
== IS_NULL
) {
1824 convert_to_string_ex(args
[2-argbase
]);
1825 arg3
= Z_STRVAL_PP(args
[2-argbase
]);
1829 result
= (int)lwes_event_set_STRING(arg1
,arg2
,arg3
);
1832 ZVAL_LONG(return_value
,result
);
1837 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_STRING
) {
1838 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1839 char *arg2
= (char *) 0 ;
1840 char **arg3
= (char **) 0 ;
1845 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1846 /* fake this_ptr as first arg (till we can work out how to do it better */
1849 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1854 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1855 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_STRING. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1859 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1862 convert_to_string_ex(args
[1-argbase
]);
1863 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1868 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_p_char
) < 0) {
1869 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_STRING. Expected %s", 3-argbase
, SWIGTYPE_p_p_char
->name
);
1872 result
= (int)lwes_event_get_STRING(arg1
,arg2
,arg3
);
1875 ZVAL_LONG(return_value
,result
);
1880 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_IP_ADDR_w_string
) {
1881 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1882 char *arg2
= (char *) 0 ;
1883 char *arg3
= (char *) 0 ;
1888 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1889 /* fake this_ptr as first arg (till we can work out how to do it better */
1892 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1897 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1898 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_IP_ADDR_w_string. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1902 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1905 convert_to_string_ex(args
[1-argbase
]);
1906 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1911 if ((*args
[2-argbase
])->type
== IS_NULL
) {
1914 convert_to_string_ex(args
[2-argbase
]);
1915 arg3
= Z_STRVAL_PP(args
[2-argbase
]);
1919 result
= (int)lwes_event_set_IP_ADDR_w_string(arg1
,arg2
,arg3
);
1922 ZVAL_LONG(return_value
,result
);
1927 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_IP_ADDR
) {
1928 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1929 char *arg2
= (char *) 0 ;
1930 struct in_addr
*arg3
= (struct in_addr
*) 0 ;
1935 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1936 /* fake this_ptr as first arg (till we can work out how to do it better */
1939 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1944 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1945 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_IP_ADDR. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1949 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1952 convert_to_string_ex(args
[1-argbase
]);
1953 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1958 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_in_addr
) < 0) {
1959 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_IP_ADDR. Expected %s", 3-argbase
, SWIGTYPE_p_in_addr
->name
);
1962 result
= (int)lwes_event_get_IP_ADDR(arg1
,arg2
,arg3
);
1965 ZVAL_LONG(return_value
,result
);
1970 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_BOOLEAN
) {
1971 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1972 char *arg2
= (char *) 0 ;
1978 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1979 /* fake this_ptr as first arg (till we can work out how to do it better */
1982 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1987 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1988 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_BOOLEAN. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1992 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1995 convert_to_string_ex(args
[1-argbase
]);
1996 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2001 convert_to_long_ex(args
[2-argbase
]);
2002 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
2004 result
= (int)lwes_event_set_BOOLEAN(arg1
,arg2
,arg3
);
2007 ZVAL_LONG(return_value
,result
);
2012 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_BOOLEAN
) {
2013 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2014 char *arg2
= (char *) 0 ;
2015 int *arg3
= (int *) 0 ;
2023 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2024 /* fake this_ptr as first arg (till we can work out how to do it better */
2027 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2032 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2033 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_BOOLEAN. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2037 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2040 convert_to_string_ex(args
[1-argbase
]);
2041 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2046 /* inout typemap for int using convert_to_long_ex and ZVAL_LONG */
2047 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_int
) < 0) {
2048 /* So... we didn't get a ref or ptr, but can it be reasonably
2049 co-erced into what we were looking for a ref of or ptr to? */
2050 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
2051 // null passed not by reference means pass NULL
2054 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
2055 ((*args
[2-argbase
])->type
==IS_STRING
||
2056 (*args
[2-argbase
])->type
==IS_LONG
||
2057 /* Null passed by reference means we want a value back */
2058 (*args
[2-argbase
])->type
==IS_NULL
||
2059 (*args
[2-argbase
])->type
==IS_BOOL
||
2060 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
2061 convert_to_long_ex(args
[2-argbase
]);
2062 intr3
= (int) (*args
[2-argbase
])->value
.lval
;
2064 /* have to passback arg$arg too */
2067 /* wasn't a pre/ref/thing, OR anything like an int thing */
2069 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_BOOLEAN. Expected %s or at least something looking vaguely like a number hopefully passed by reference", 3-argbase
, SWIGTYPE_p_int
->name
);
2073 _saved
[0] = args
[2-argbase
];
2074 result
= (int)lwes_event_get_BOOLEAN(arg1
,arg2
,arg3
);
2077 ZVAL_LONG(return_value
,result
);
2081 /* pass back arg3 through params (_saved[0]) if we can */
2082 if(! PZVAL_IS_REF(*_saved
[0])) {
2083 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_BOOLEAN wasn't passed by reference [argout int *, int &]",3-argbase
);
2085 ZVAL_LONG(*_saved
[0],intr3
);
2092 ZEND_NAMED_FUNCTION(_wrap_lwes_event_destroy
) {
2093 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2098 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2099 /* fake this_ptr as first arg (till we can work out how to do it better */
2102 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
2107 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2108 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_destroy. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2111 result
= (int)lwes_event_destroy(arg1
);
2114 ZVAL_LONG(return_value
,result
);
2119 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_no_db
) {
2120 char *arg1
= (char *) 0 ;
2121 struct lwes_event
*result
;
2125 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2126 /* fake this_ptr as first arg (till we can work out how to do it better */
2129 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
2134 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
2137 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
2138 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
2142 result
= (struct lwes_event
*)lwes_event_create_no_db(arg1
);
2145 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
2150 /* NEW Destructor style */
2151 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_event_type_db
) {
2152 /* bah! No destructor for this simple type!! */
2154 /* NEW Destructor style */
2155 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_long_long
) {
2156 /* bah! No destructor for this simple type!! */
2158 /* NEW Destructor style */
2159 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_long_long
) {
2160 /* bah! No destructor for this simple type!! */
2162 /* NEW Destructor style */
2163 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_in_addr
) {
2164 /* bah! No destructor for this simple type!! */
2166 /* NEW Destructor style */
2167 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_emitter
) {
2168 /* bah! No destructor for this simple type!! */
2170 /* NEW Destructor style */
2171 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char
) {
2172 /* bah! No destructor for this simple type!! */
2174 /* NEW Destructor style */
2175 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_event
) {
2176 /* bah! No destructor for this simple type!! */
2178 /* NEW Destructor style */
2179 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_int
) {
2180 /* bah! No destructor for this simple type!! */
2182 /* NEW Destructor style */
2183 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_short
) {
2184 /* bah! No destructor for this simple type!! */
2186 /* NEW Destructor style */
2187 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_short
) {
2188 /* bah! No destructor for this simple type!! */
2190 /* NEW Destructor style */
2191 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int
) {
2192 /* bah! No destructor for this simple type!! */
2198 /* end wrapper section */
2200 #ifdef COMPILE_DL_LWES
2204 ZEND_GET_MODULE(lwes
)
2211 PHP_MSHUTDOWN_FUNCTION(lwes
)
2215 PHP_MINIT_FUNCTION(lwes
)
2218 for (i
= 0; swig_types_initial
[i
]; i
++) {
2219 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
2221 /* oinit subsection */
2223 /* Register resource destructors for pointer types */
2224 le_swig__p_lwes_event_type_db
=zend_register_list_destructors_ex(_wrap_destroy_p_lwes_event_type_db
,NULL
,(char *)(SWIGTYPE_p_lwes_event_type_db
->name
),module_number
);
2225 SWIG_TypeClientData(SWIGTYPE_p_lwes_event_type_db
,&le_swig__p_lwes_event_type_db
);
2226 le_swig__p_unsigned_long_long
=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_long_long
,NULL
,(char *)(SWIGTYPE_p_unsigned_long_long
->name
),module_number
);
2227 SWIG_TypeClientData(SWIGTYPE_p_unsigned_long_long
,&le_swig__p_unsigned_long_long
);
2228 le_swig__p_long_long
=zend_register_list_destructors_ex(_wrap_destroy_p_long_long
,NULL
,(char *)(SWIGTYPE_p_long_long
->name
),module_number
);
2229 SWIG_TypeClientData(SWIGTYPE_p_long_long
,&le_swig__p_long_long
);
2230 le_swig__p_in_addr
=zend_register_list_destructors_ex(_wrap_destroy_p_in_addr
,NULL
,(char *)(SWIGTYPE_p_in_addr
->name
),module_number
);
2231 SWIG_TypeClientData(SWIGTYPE_p_in_addr
,&le_swig__p_in_addr
);
2232 le_swig__p_lwes_emitter
=zend_register_list_destructors_ex(_wrap_destroy_p_lwes_emitter
,NULL
,(char *)(SWIGTYPE_p_lwes_emitter
->name
),module_number
);
2233 SWIG_TypeClientData(SWIGTYPE_p_lwes_emitter
,&le_swig__p_lwes_emitter
);
2234 le_swig__p_p_char
=zend_register_list_destructors_ex(_wrap_destroy_p_p_char
,NULL
,(char *)(SWIGTYPE_p_p_char
->name
),module_number
);
2235 SWIG_TypeClientData(SWIGTYPE_p_p_char
,&le_swig__p_p_char
);
2236 le_swig__p_lwes_event
=zend_register_list_destructors_ex(_wrap_destroy_p_lwes_event
,NULL
,(char *)(SWIGTYPE_p_lwes_event
->name
),module_number
);
2237 SWIG_TypeClientData(SWIGTYPE_p_lwes_event
,&le_swig__p_lwes_event
);
2238 le_swig__p_unsigned_int
=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_int
,NULL
,(char *)(SWIGTYPE_p_unsigned_int
->name
),module_number
);
2239 SWIG_TypeClientData(SWIGTYPE_p_unsigned_int
,&le_swig__p_unsigned_int
);
2240 le_swig__p_unsigned_short
=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_short
,NULL
,(char *)(SWIGTYPE_p_unsigned_short
->name
),module_number
);
2241 SWIG_TypeClientData(SWIGTYPE_p_unsigned_short
,&le_swig__p_unsigned_short
);
2242 le_swig__p_short
=zend_register_list_destructors_ex(_wrap_destroy_p_short
,NULL
,(char *)(SWIGTYPE_p_short
->name
),module_number
);
2243 SWIG_TypeClientData(SWIGTYPE_p_short
,&le_swig__p_short
);
2244 le_swig__p_int
=zend_register_list_destructors_ex(_wrap_destroy_p_int
,NULL
,(char *)(SWIGTYPE_p_int
->name
),module_number
);
2245 SWIG_TypeClientData(SWIGTYPE_p_int
,&le_swig__p_int
);
2246 CG(active_class_entry
) = NULL
;
2247 /* end oinit subsection */
2251 PHP_RINIT_FUNCTION(lwes
)
2253 /* cinit subsection */
2254 /* end cinit subsection */
2256 /* vinit subsection */
2257 /* end vinit subsection */
2261 PHP_RSHUTDOWN_FUNCTION(lwes
)
2265 PHP_MINFO_FUNCTION(lwes
)
2268 /* end init section */