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_u_int_64
,
831 _wrap_lwes_event_set_U_INT_64
, NULL
)
832 ZEND_NAMED_FE(lwes_event_get_u_int_64
,
833 _wrap_lwes_event_get_U_INT_64
, NULL
)
834 ZEND_NAMED_FE(lwes_event_set_int_64
,
835 _wrap_lwes_event_set_INT_64
, NULL
)
836 ZEND_NAMED_FE(lwes_event_get_int_64
,
837 _wrap_lwes_event_get_INT_64
, NULL
)
838 ZEND_NAMED_FE(lwes_event_set_string
,
839 _wrap_lwes_event_set_STRING
, NULL
)
840 ZEND_NAMED_FE(lwes_event_get_string
,
841 _wrap_lwes_event_get_STRING
, NULL
)
842 ZEND_NAMED_FE(lwes_event_set_ip_addr_w_string
,
843 _wrap_lwes_event_set_IP_ADDR_w_string
, NULL
)
844 ZEND_NAMED_FE(lwes_event_get_ip_addr
,
845 _wrap_lwes_event_get_IP_ADDR
, NULL
)
846 ZEND_NAMED_FE(lwes_event_set_boolean
,
847 _wrap_lwes_event_set_BOOLEAN
, NULL
)
848 ZEND_NAMED_FE(lwes_event_get_boolean
,
849 _wrap_lwes_event_get_BOOLEAN
, NULL
)
850 ZEND_NAMED_FE(lwes_event_destroy
,
851 _wrap_lwes_event_destroy
, NULL
)
852 ZEND_NAMED_FE(lwes_event_create_no_db
,
853 _wrap_lwes_event_create_no_db
, NULL
)
857 zend_module_entry lwes_module_entry
= {
858 #if ZEND_MODULE_API_NO > 20010900
859 STANDARD_MODULE_HEADER
,
868 #if ZEND_MODULE_API_NO > 20010900
871 STANDARD_MODULE_PROPERTIES
873 zend_module_entry
* SWIG_module_entry
= &lwes_module_entry
;
876 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
878 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}};
879 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}};
880 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}};
881 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}};
882 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}};
883 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}};
884 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}};
885 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}};
886 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}};
887 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}};
888 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}};
890 static swig_type_info
*swig_types_initial
[] = {
891 _swigt__p_lwes_event_type_db
,
892 _swigt__p_unsigned_long_long
,
895 _swigt__p_lwes_emitter
,
897 _swigt__p_lwes_event
,
898 _swigt__p_unsigned_int
,
899 _swigt__p_unsigned_short
,
906 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
908 /* vdecl subsection */
909 static int le_swig__p_lwes_event_type_db
=0; /* handle for */
910 static int le_swig__p_unsigned_long_long
=0; /* handle for */
911 static int le_swig__p_long_long
=0; /* handle for */
912 static int le_swig__p_in_addr
=0; /* handle for */
913 static int le_swig__p_lwes_emitter
=0; /* handle for */
914 static int le_swig__p_p_char
=0; /* handle for */
915 static int le_swig__p_lwes_event
=0; /* handle for */
916 static int le_swig__p_unsigned_int
=0; /* handle for */
917 static int le_swig__p_unsigned_short
=0; /* handle for */
918 static int le_swig__p_short
=0; /* handle for */
919 static int le_swig__p_int
=0; /* handle for */
920 /* end vdecl subsection */
921 /* wrapper section */
922 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_create
) {
923 char *arg1
= (char *) 0 ;
924 struct lwes_event_type_db
*result
;
928 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
929 /* fake this_ptr as first arg (till we can work out how to do it better */
932 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
937 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
940 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
941 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
945 result
= (struct lwes_event_type_db
*)lwes_event_type_db_create(arg1
);
948 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event_type_db
, 0);
953 ZEND_NAMED_FUNCTION(_wrap_lwes_event_type_db_destroy
) {
954 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
959 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
960 /* fake this_ptr as first arg (till we can work out how to do it better */
963 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
968 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
971 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
977 result
= (int)lwes_event_type_db_destroy(arg1
);
980 ZVAL_LONG(return_value
,result
);
985 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create
) {
986 char *arg1
= (char *) 0 ;
987 char *arg2
= (char *) 0 ;
991 struct lwes_emitter
*result
;
995 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
996 /* fake this_ptr as first arg (till we can work out how to do it better */
999 if(((ZEND_NUM_ARGS() + argbase
)!= 5) || (zend_get_parameters_array_ex(5-argbase
, args
)!= SUCCESS
)) {
1004 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1007 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1008 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1013 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1016 convert_to_string_ex(args
[1-argbase
]);
1017 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1022 convert_to_long_ex(args
[2-argbase
]);
1023 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1026 convert_to_long_ex(args
[3-argbase
]);
1027 arg4
= (int) Z_LVAL_PP(args
[3-argbase
]);
1030 convert_to_long_ex(args
[4-argbase
]);
1031 arg5
= (short) Z_LVAL_PP(args
[4-argbase
]);
1033 result
= (struct lwes_emitter
*)lwes_emitter_create(arg1
,arg2
,arg3
,arg4
,arg5
);
1036 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_emitter
, 0);
1041 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_create_with_ttl
) {
1042 char *arg1
= (char *) 0 ;
1043 char *arg2
= (char *) 0 ;
1048 struct lwes_emitter
*result
;
1052 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1053 /* fake this_ptr as first arg (till we can work out how to do it better */
1056 if(((ZEND_NUM_ARGS() + argbase
)!= 6) || (zend_get_parameters_array_ex(6-argbase
, args
)!= SUCCESS
)) {
1061 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1064 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1065 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1070 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1073 convert_to_string_ex(args
[1-argbase
]);
1074 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1079 convert_to_long_ex(args
[2-argbase
]);
1080 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1083 convert_to_long_ex(args
[3-argbase
]);
1084 arg4
= (int) Z_LVAL_PP(args
[3-argbase
]);
1087 convert_to_long_ex(args
[4-argbase
]);
1088 arg5
= (short) Z_LVAL_PP(args
[4-argbase
]);
1091 convert_to_long_ex(args
[5-argbase
]);
1092 arg6
= (int) Z_LVAL_PP(args
[5-argbase
]);
1094 result
= (struct lwes_emitter
*)lwes_emitter_create_with_ttl(arg1
,arg2
,arg3
,arg4
,arg5
,arg6
);
1097 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_emitter
, 0);
1102 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emit
) {
1103 struct lwes_emitter
*arg1
= (struct lwes_emitter
*) 0 ;
1104 struct lwes_event
*arg2
= (struct lwes_event
*) 0 ;
1109 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1110 /* fake this_ptr as first arg (till we can work out how to do it better */
1113 if(((ZEND_NUM_ARGS() + argbase
)!= 2) || (zend_get_parameters_array_ex(2-argbase
, args
)!= SUCCESS
)) {
1118 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_emitter
) < 0) {
1119 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emit. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1123 if(SWIG_ConvertPtr(*args
[1-argbase
], (void **) &arg2
, SWIGTYPE_p_lwes_event
) < 0) {
1124 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emit. Expected %s", 2-argbase
, SWIGTYPE_p_lwes_event
->name
);
1127 result
= (int)lwes_emitter_emit(arg1
,arg2
);
1130 ZVAL_LONG(return_value
,result
);
1135 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_emitto
) {
1136 char *arg1
= (char *) 0 ;
1137 char *arg2
= (char *) 0 ;
1139 struct lwes_emitter
*arg4
= (struct lwes_emitter
*) 0 ;
1140 struct lwes_event
*arg5
= (struct lwes_event
*) 0 ;
1145 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1146 /* fake this_ptr as first arg (till we can work out how to do it better */
1149 if(((ZEND_NUM_ARGS() + argbase
)!= 5) || (zend_get_parameters_array_ex(5-argbase
, args
)!= SUCCESS
)) {
1154 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1157 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1158 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
1163 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1166 convert_to_string_ex(args
[1-argbase
]);
1167 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1172 convert_to_long_ex(args
[2-argbase
]);
1173 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1176 if(SWIG_ConvertPtr(*args
[3-argbase
], (void **) &arg4
, SWIGTYPE_p_lwes_emitter
) < 0) {
1177 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emitto. Expected %s", 4-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1181 if(SWIG_ConvertPtr(*args
[4-argbase
], (void **) &arg5
, SWIGTYPE_p_lwes_event
) < 0) {
1182 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_emitto. Expected %s", 5-argbase
, SWIGTYPE_p_lwes_event
->name
);
1185 result
= (int)lwes_emitter_emitto(arg1
,arg2
,arg3
,arg4
,arg5
);
1188 ZVAL_LONG(return_value
,result
);
1193 ZEND_NAMED_FUNCTION(_wrap_lwes_emitter_destroy
) {
1194 struct lwes_emitter
*arg1
= (struct lwes_emitter
*) 0 ;
1199 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1200 /* fake this_ptr as first arg (till we can work out how to do it better */
1203 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
1208 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_emitter
) < 0) {
1209 zend_error(E_ERROR
, "Type error in argument %d of lwes_emitter_destroy. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_emitter
->name
);
1212 result
= (int)lwes_emitter_destroy(arg1
);
1215 ZVAL_LONG(return_value
,result
);
1220 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create
) {
1221 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
1222 char *arg2
= (char *) 0 ;
1223 struct lwes_event
*result
;
1227 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1228 /* fake this_ptr as first arg (till we can work out how to do it better */
1231 if(((ZEND_NUM_ARGS() + argbase
)!= 2) || (zend_get_parameters_array_ex(2-argbase
, args
)!= SUCCESS
)) {
1236 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1239 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
1246 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1249 convert_to_string_ex(args
[1-argbase
]);
1250 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1254 result
= (struct lwes_event
*)lwes_event_create(arg1
,arg2
);
1257 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
1262 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_with_encoding
) {
1263 struct lwes_event_type_db
*arg1
= (struct lwes_event_type_db
*) 0 ;
1264 char *arg2
= (char *) 0 ;
1266 struct lwes_event
*result
;
1270 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1271 /* fake this_ptr as first arg (till we can work out how to do it better */
1274 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1279 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
1282 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **)&arg1
, SWIGTYPE_p_lwes_event_type_db
) < 0) {
1289 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1292 convert_to_string_ex(args
[1-argbase
]);
1293 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1298 convert_to_long_ex(args
[2-argbase
]);
1299 arg3
= (short) Z_LVAL_PP(args
[2-argbase
]);
1301 result
= (struct lwes_event
*)lwes_event_create_with_encoding(arg1
,arg2
,arg3
);
1304 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
1309 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_16
) {
1310 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1311 char *arg2
= (char *) 0 ;
1312 unsigned short arg3
;
1317 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1318 /* fake this_ptr as first arg (till we can work out how to do it better */
1321 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1326 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1327 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
);
1331 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1334 convert_to_string_ex(args
[1-argbase
]);
1335 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1340 convert_to_long_ex(args
[2-argbase
]);
1341 arg3
= (unsigned short) Z_LVAL_PP(args
[2-argbase
]);
1343 result
= (int)lwes_event_set_U_INT_16(arg1
,arg2
,arg3
);
1346 ZVAL_LONG(return_value
,result
);
1351 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_16
) {
1352 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1353 char *arg2
= (char *) 0 ;
1354 unsigned short *arg3
= (unsigned short *) 0 ;
1356 unsigned short intr3
;
1362 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1363 /* fake this_ptr as first arg (till we can work out how to do it better */
1366 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1371 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1372 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
);
1376 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1379 convert_to_string_ex(args
[1-argbase
]);
1380 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1385 /* inout typemap for unsigned short using convert_to_long_ex and ZVAL_LONG */
1386 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_unsigned_short
) < 0) {
1387 /* So... we didn't get a ref or ptr, but can it be reasonably
1388 co-erced into what we were looking for a ref of or ptr to? */
1389 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1390 // null passed not by reference means pass NULL
1393 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1394 ((*args
[2-argbase
])->type
==IS_STRING
||
1395 (*args
[2-argbase
])->type
==IS_LONG
||
1396 /* Null passed by reference means we want a value back */
1397 (*args
[2-argbase
])->type
==IS_NULL
||
1398 (*args
[2-argbase
])->type
==IS_BOOL
||
1399 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1400 convert_to_long_ex(args
[2-argbase
]);
1401 intr3
= (unsigned short) (*args
[2-argbase
])->value
.lval
;
1403 /* have to passback arg$arg too */
1406 /* wasn't a pre/ref/thing, OR anything like an int thing */
1408 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
);
1412 _saved
[0] = args
[2-argbase
];
1413 result
= (int)lwes_event_get_U_INT_16(arg1
,arg2
,arg3
);
1416 ZVAL_LONG(return_value
,result
);
1420 /* pass back arg3 through params (_saved[0]) if we can */
1421 if(! PZVAL_IS_REF(*_saved
[0])) {
1422 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
);
1424 ZVAL_LONG(*_saved
[0],intr3
);
1431 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_16
) {
1432 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1433 char *arg2
= (char *) 0 ;
1439 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1440 /* fake this_ptr as first arg (till we can work out how to do it better */
1443 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1448 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1449 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1453 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1456 convert_to_string_ex(args
[1-argbase
]);
1457 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1462 convert_to_long_ex(args
[2-argbase
]);
1463 arg3
= (short) Z_LVAL_PP(args
[2-argbase
]);
1465 result
= (int)lwes_event_set_INT_16(arg1
,arg2
,arg3
);
1468 ZVAL_LONG(return_value
,result
);
1473 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_16
) {
1474 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1475 char *arg2
= (char *) 0 ;
1476 short *arg3
= (short *) 0 ;
1484 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1485 /* fake this_ptr as first arg (till we can work out how to do it better */
1488 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1493 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1494 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_16. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1498 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1501 convert_to_string_ex(args
[1-argbase
]);
1502 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1507 /* inout typemap for short using convert_to_long_ex and ZVAL_LONG */
1508 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_short
) < 0) {
1509 /* So... we didn't get a ref or ptr, but can it be reasonably
1510 co-erced into what we were looking for a ref of or ptr to? */
1511 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1512 // null passed not by reference means pass NULL
1515 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1516 ((*args
[2-argbase
])->type
==IS_STRING
||
1517 (*args
[2-argbase
])->type
==IS_LONG
||
1518 /* Null passed by reference means we want a value back */
1519 (*args
[2-argbase
])->type
==IS_NULL
||
1520 (*args
[2-argbase
])->type
==IS_BOOL
||
1521 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1522 convert_to_long_ex(args
[2-argbase
]);
1523 intr3
= (short) (*args
[2-argbase
])->value
.lval
;
1525 /* have to passback arg$arg too */
1528 /* wasn't a pre/ref/thing, OR anything like an int thing */
1530 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
);
1534 _saved
[0] = args
[2-argbase
];
1535 result
= (int)lwes_event_get_INT_16(arg1
,arg2
,arg3
);
1538 ZVAL_LONG(return_value
,result
);
1542 /* pass back arg3 through params (_saved[0]) if we can */
1543 if(! PZVAL_IS_REF(*_saved
[0])) {
1544 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_INT_16 wasn't passed by reference [argout short *, short &]",3-argbase
);
1546 ZVAL_LONG(*_saved
[0],intr3
);
1553 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_32
) {
1554 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1555 char *arg2
= (char *) 0 ;
1561 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1562 /* fake this_ptr as first arg (till we can work out how to do it better */
1565 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1570 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1571 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
);
1575 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1578 convert_to_string_ex(args
[1-argbase
]);
1579 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1584 convert_to_long_ex(args
[2-argbase
]);
1585 arg3
= (unsigned int) Z_LVAL_PP(args
[2-argbase
]);
1587 result
= (int)lwes_event_set_U_INT_32(arg1
,arg2
,arg3
);
1590 ZVAL_LONG(return_value
,result
);
1595 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_32
) {
1596 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1597 char *arg2
= (char *) 0 ;
1598 unsigned int *arg3
= (unsigned int *) 0 ;
1600 unsigned int intr3
;
1606 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1607 /* fake this_ptr as first arg (till we can work out how to do it better */
1610 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1615 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1616 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
);
1620 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1623 convert_to_string_ex(args
[1-argbase
]);
1624 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1629 /* inout typemap for unsigned int using convert_to_long_ex and ZVAL_LONG */
1630 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_unsigned_int
) < 0) {
1631 /* So... we didn't get a ref or ptr, but can it be reasonably
1632 co-erced into what we were looking for a ref of or ptr to? */
1633 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1634 // null passed not by reference means pass NULL
1637 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1638 ((*args
[2-argbase
])->type
==IS_STRING
||
1639 (*args
[2-argbase
])->type
==IS_LONG
||
1640 /* Null passed by reference means we want a value back */
1641 (*args
[2-argbase
])->type
==IS_NULL
||
1642 (*args
[2-argbase
])->type
==IS_BOOL
||
1643 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1644 convert_to_long_ex(args
[2-argbase
]);
1645 intr3
= (unsigned int) (*args
[2-argbase
])->value
.lval
;
1647 /* have to passback arg$arg too */
1650 /* wasn't a pre/ref/thing, OR anything like an int thing */
1652 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
);
1656 _saved
[0] = args
[2-argbase
];
1657 result
= (int)lwes_event_get_U_INT_32(arg1
,arg2
,arg3
);
1660 ZVAL_LONG(return_value
,result
);
1664 /* pass back arg3 through params (_saved[0]) if we can */
1665 if(! PZVAL_IS_REF(*_saved
[0])) {
1666 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
);
1668 ZVAL_LONG(*_saved
[0],intr3
);
1675 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_32
) {
1676 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1677 char *arg2
= (char *) 0 ;
1683 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1684 /* fake this_ptr as first arg (till we can work out how to do it better */
1687 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1692 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1693 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1697 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1700 convert_to_string_ex(args
[1-argbase
]);
1701 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1706 convert_to_long_ex(args
[2-argbase
]);
1707 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
1709 result
= (int)lwes_event_set_INT_32(arg1
,arg2
,arg3
);
1712 ZVAL_LONG(return_value
,result
);
1717 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_32
) {
1718 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1719 char *arg2
= (char *) 0 ;
1720 int *arg3
= (int *) 0 ;
1728 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1729 /* fake this_ptr as first arg (till we can work out how to do it better */
1732 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1737 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1738 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_32. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1742 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1745 convert_to_string_ex(args
[1-argbase
]);
1746 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1751 /* inout typemap for int using convert_to_long_ex and ZVAL_LONG */
1752 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_int
) < 0) {
1753 /* So... we didn't get a ref or ptr, but can it be reasonably
1754 co-erced into what we were looking for a ref of or ptr to? */
1755 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
1756 // null passed not by reference means pass NULL
1759 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
1760 ((*args
[2-argbase
])->type
==IS_STRING
||
1761 (*args
[2-argbase
])->type
==IS_LONG
||
1762 /* Null passed by reference means we want a value back */
1763 (*args
[2-argbase
])->type
==IS_NULL
||
1764 (*args
[2-argbase
])->type
==IS_BOOL
||
1765 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
1766 convert_to_long_ex(args
[2-argbase
]);
1767 intr3
= (int) (*args
[2-argbase
])->value
.lval
;
1769 /* have to passback arg$arg too */
1772 /* wasn't a pre/ref/thing, OR anything like an int thing */
1774 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
);
1778 _saved
[0] = args
[2-argbase
];
1779 result
= (int)lwes_event_get_INT_32(arg1
,arg2
,arg3
);
1782 ZVAL_LONG(return_value
,result
);
1786 /* pass back arg3 through params (_saved[0]) if we can */
1787 if(! PZVAL_IS_REF(*_saved
[0])) {
1788 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_INT_32 wasn't passed by reference [argout int *, int &]",3-argbase
);
1790 ZVAL_LONG(*_saved
[0],intr3
);
1797 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_U_INT_64
) {
1798 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1799 char *arg2
= (char *) 0 ;
1800 unsigned long long arg3
;
1805 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1806 /* fake this_ptr as first arg (till we can work out how to do it better */
1809 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1814 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1815 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_U_INT_64. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1819 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1822 convert_to_string_ex(args
[1-argbase
]);
1823 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1828 unsigned long long * argp
;
1829 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &argp
, SWIGTYPE_p_unsigned_long_long
) < 0) {
1830 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_U_INT_64. Expected %s", 3-argbase
, SWIGTYPE_p_unsigned_long_long
->name
);
1834 result
= (int)lwes_event_set_U_INT_64(arg1
,arg2
,arg3
);
1837 ZVAL_LONG(return_value
,result
);
1842 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_U_INT_64
) {
1843 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1844 char *arg2
= (char *) 0 ;
1845 unsigned long long *arg3
= (unsigned long long *) 0 ;
1850 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1851 /* fake this_ptr as first arg (till we can work out how to do it better */
1854 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1859 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1860 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_64. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1864 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1867 convert_to_string_ex(args
[1-argbase
]);
1868 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1873 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_unsigned_long_long
) < 0) {
1874 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_U_INT_64. Expected %s", 3-argbase
, SWIGTYPE_p_unsigned_long_long
->name
);
1877 result
= (int)lwes_event_get_U_INT_64(arg1
,arg2
,arg3
);
1880 ZVAL_LONG(return_value
,result
);
1885 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_INT_64
) {
1886 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1887 char *arg2
= (char *) 0 ;
1893 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1894 /* fake this_ptr as first arg (till we can work out how to do it better */
1897 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1902 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1903 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_64. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1907 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1910 convert_to_string_ex(args
[1-argbase
]);
1911 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1917 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &argp
, SWIGTYPE_p_long_long
) < 0) {
1918 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_INT_64. Expected %s", 3-argbase
, SWIGTYPE_p_long_long
->name
);
1922 result
= (int)lwes_event_set_INT_64(arg1
,arg2
,arg3
);
1925 ZVAL_LONG(return_value
,result
);
1930 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_INT_64
) {
1931 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1932 char *arg2
= (char *) 0 ;
1933 long long *arg3
= (long long *) 0 ;
1938 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1939 /* fake this_ptr as first arg (till we can work out how to do it better */
1942 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1947 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1948 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_64. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1952 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1955 convert_to_string_ex(args
[1-argbase
]);
1956 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
1961 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_long_long
) < 0) {
1962 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_INT_64. Expected %s", 3-argbase
, SWIGTYPE_p_long_long
->name
);
1965 result
= (int)lwes_event_get_INT_64(arg1
,arg2
,arg3
);
1968 ZVAL_LONG(return_value
,result
);
1973 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_STRING
) {
1974 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
1975 char *arg2
= (char *) 0 ;
1976 char *arg3
= (char *) 0 ;
1981 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
1982 /* fake this_ptr as first arg (till we can work out how to do it better */
1985 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
1990 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
1991 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_STRING. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
1995 if ((*args
[1-argbase
])->type
== IS_NULL
) {
1998 convert_to_string_ex(args
[1-argbase
]);
1999 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2004 if ((*args
[2-argbase
])->type
== IS_NULL
) {
2007 convert_to_string_ex(args
[2-argbase
]);
2008 arg3
= Z_STRVAL_PP(args
[2-argbase
]);
2012 result
= (int)lwes_event_set_STRING(arg1
,arg2
,arg3
);
2015 ZVAL_LONG(return_value
,result
);
2020 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_STRING
) {
2021 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2022 char *arg2
= (char *) 0 ;
2023 char **arg3
= (char **) 0 ;
2028 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2029 /* fake this_ptr as first arg (till we can work out how to do it better */
2032 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2037 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2038 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_STRING. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2042 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2045 convert_to_string_ex(args
[1-argbase
]);
2046 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2051 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_p_char
) < 0) {
2052 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_STRING. Expected %s", 3-argbase
, SWIGTYPE_p_p_char
->name
);
2055 result
= (int)lwes_event_get_STRING(arg1
,arg2
,arg3
);
2058 ZVAL_LONG(return_value
,result
);
2063 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_IP_ADDR_w_string
) {
2064 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2065 char *arg2
= (char *) 0 ;
2066 char *arg3
= (char *) 0 ;
2071 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2072 /* fake this_ptr as first arg (till we can work out how to do it better */
2075 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2080 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2081 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
);
2085 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2088 convert_to_string_ex(args
[1-argbase
]);
2089 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2094 if ((*args
[2-argbase
])->type
== IS_NULL
) {
2097 convert_to_string_ex(args
[2-argbase
]);
2098 arg3
= Z_STRVAL_PP(args
[2-argbase
]);
2102 result
= (int)lwes_event_set_IP_ADDR_w_string(arg1
,arg2
,arg3
);
2105 ZVAL_LONG(return_value
,result
);
2110 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_IP_ADDR
) {
2111 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2112 char *arg2
= (char *) 0 ;
2113 struct in_addr
*arg3
= (struct in_addr
*) 0 ;
2118 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2119 /* fake this_ptr as first arg (till we can work out how to do it better */
2122 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2127 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2128 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_IP_ADDR. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2132 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2135 convert_to_string_ex(args
[1-argbase
]);
2136 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2141 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_in_addr
) < 0) {
2142 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_IP_ADDR. Expected %s", 3-argbase
, SWIGTYPE_p_in_addr
->name
);
2145 result
= (int)lwes_event_get_IP_ADDR(arg1
,arg2
,arg3
);
2148 ZVAL_LONG(return_value
,result
);
2153 ZEND_NAMED_FUNCTION(_wrap_lwes_event_set_BOOLEAN
) {
2154 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2155 char *arg2
= (char *) 0 ;
2161 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2162 /* fake this_ptr as first arg (till we can work out how to do it better */
2165 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2170 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2171 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_set_BOOLEAN. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2175 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2178 convert_to_string_ex(args
[1-argbase
]);
2179 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2184 convert_to_long_ex(args
[2-argbase
]);
2185 arg3
= (int) Z_LVAL_PP(args
[2-argbase
]);
2187 result
= (int)lwes_event_set_BOOLEAN(arg1
,arg2
,arg3
);
2190 ZVAL_LONG(return_value
,result
);
2195 ZEND_NAMED_FUNCTION(_wrap_lwes_event_get_BOOLEAN
) {
2196 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2197 char *arg2
= (char *) 0 ;
2198 int *arg3
= (int *) 0 ;
2206 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2207 /* fake this_ptr as first arg (till we can work out how to do it better */
2210 if(((ZEND_NUM_ARGS() + argbase
)!= 3) || (zend_get_parameters_array_ex(3-argbase
, args
)!= SUCCESS
)) {
2215 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2216 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_get_BOOLEAN. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2220 if ((*args
[1-argbase
])->type
== IS_NULL
) {
2223 convert_to_string_ex(args
[1-argbase
]);
2224 arg2
= Z_STRVAL_PP(args
[1-argbase
]);
2229 /* inout typemap for int using convert_to_long_ex and ZVAL_LONG */
2230 if(SWIG_ConvertPtr(*args
[2-argbase
], (void **) &arg3
, SWIGTYPE_p_int
) < 0) {
2231 /* So... we didn't get a ref or ptr, but can it be reasonably
2232 co-erced into what we were looking for a ref of or ptr to? */
2233 if (!PZVAL_IS_REF(*args
[2-argbase
]) && (*args
[2-argbase
])->type
==IS_NULL
) {
2234 // null passed not by reference means pass NULL
2237 } else if (PZVAL_IS_REF(*args
[2-argbase
]) &&
2238 ((*args
[2-argbase
])->type
==IS_STRING
||
2239 (*args
[2-argbase
])->type
==IS_LONG
||
2240 /* Null passed by reference means we want a value back */
2241 (*args
[2-argbase
])->type
==IS_NULL
||
2242 (*args
[2-argbase
])->type
==IS_BOOL
||
2243 (*args
[2-argbase
])->type
==IS_DOUBLE
)) {
2244 convert_to_long_ex(args
[2-argbase
]);
2245 intr3
= (int) (*args
[2-argbase
])->value
.lval
;
2247 /* have to passback arg$arg too */
2250 /* wasn't a pre/ref/thing, OR anything like an int thing */
2252 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
);
2256 _saved
[0] = args
[2-argbase
];
2257 result
= (int)lwes_event_get_BOOLEAN(arg1
,arg2
,arg3
);
2260 ZVAL_LONG(return_value
,result
);
2264 /* pass back arg3 through params (_saved[0]) if we can */
2265 if(! PZVAL_IS_REF(*_saved
[0])) {
2266 zend_error(E_WARNING
, "Parameter %d of lwes_event_get_BOOLEAN wasn't passed by reference [argout int *, int &]",3-argbase
);
2268 ZVAL_LONG(*_saved
[0],intr3
);
2275 ZEND_NAMED_FUNCTION(_wrap_lwes_event_destroy
) {
2276 struct lwes_event
*arg1
= (struct lwes_event
*) 0 ;
2281 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2282 /* fake this_ptr as first arg (till we can work out how to do it better */
2285 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
2290 if(SWIG_ConvertPtr(*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])), (void **) &arg1
, SWIGTYPE_p_lwes_event
) < 0) {
2291 zend_error(E_ERROR
, "Type error in argument %d of lwes_event_destroy. Expected %s", 1-argbase
, SWIGTYPE_p_lwes_event
->name
);
2294 result
= (int)lwes_event_destroy(arg1
);
2297 ZVAL_LONG(return_value
,result
);
2302 ZEND_NAMED_FUNCTION(_wrap_lwes_event_create_no_db
) {
2303 char *arg1
= (char *) 0 ;
2304 struct lwes_event
*result
;
2308 if (this_ptr
&& this_ptr
->type
==IS_OBJECT
) {
2309 /* fake this_ptr as first arg (till we can work out how to do it better */
2312 if(((ZEND_NUM_ARGS() + argbase
)!= 1) || (zend_get_parameters_array_ex(1-argbase
, args
)!= SUCCESS
)) {
2317 if ((*((0<argbase
)?(&this_ptr
):(args
[0-argbase
])))->type
== IS_NULL
) {
2320 convert_to_string_ex(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
2321 arg1
= Z_STRVAL_PP(((0<argbase
)?(&this_ptr
):(args
[0-argbase
])));
2325 result
= (struct lwes_event
*)lwes_event_create_no_db(arg1
);
2328 SWIG_SetPointerZval(return_value
, (void *)result
, SWIGTYPE_p_lwes_event
, 0);
2333 /* NEW Destructor style */
2334 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_event_type_db
) {
2335 /* bah! No destructor for this simple type!! */
2337 /* NEW Destructor style */
2338 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_long_long
) {
2339 /* bah! No destructor for this simple type!! */
2341 /* NEW Destructor style */
2342 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_long_long
) {
2343 /* bah! No destructor for this simple type!! */
2345 /* NEW Destructor style */
2346 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_in_addr
) {
2347 /* bah! No destructor for this simple type!! */
2349 /* NEW Destructor style */
2350 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_emitter
) {
2351 /* bah! No destructor for this simple type!! */
2353 /* NEW Destructor style */
2354 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char
) {
2355 /* bah! No destructor for this simple type!! */
2357 /* NEW Destructor style */
2358 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_lwes_event
) {
2359 /* bah! No destructor for this simple type!! */
2361 /* NEW Destructor style */
2362 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_int
) {
2363 /* bah! No destructor for this simple type!! */
2365 /* NEW Destructor style */
2366 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_short
) {
2367 /* bah! No destructor for this simple type!! */
2369 /* NEW Destructor style */
2370 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_short
) {
2371 /* bah! No destructor for this simple type!! */
2373 /* NEW Destructor style */
2374 static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int
) {
2375 /* bah! No destructor for this simple type!! */
2381 /* end wrapper section */
2383 #ifdef COMPILE_DL_LWES
2387 ZEND_GET_MODULE(lwes
)
2394 PHP_MSHUTDOWN_FUNCTION(lwes
)
2398 PHP_MINIT_FUNCTION(lwes
)
2401 for (i
= 0; swig_types_initial
[i
]; i
++) {
2402 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
2404 /* oinit subsection */
2406 /* Register resource destructors for pointer types */
2407 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
);
2408 SWIG_TypeClientData(SWIGTYPE_p_lwes_event_type_db
,&le_swig__p_lwes_event_type_db
);
2409 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
);
2410 SWIG_TypeClientData(SWIGTYPE_p_unsigned_long_long
,&le_swig__p_unsigned_long_long
);
2411 le_swig__p_long_long
=zend_register_list_destructors_ex(_wrap_destroy_p_long_long
,NULL
,(char *)(SWIGTYPE_p_long_long
->name
),module_number
);
2412 SWIG_TypeClientData(SWIGTYPE_p_long_long
,&le_swig__p_long_long
);
2413 le_swig__p_in_addr
=zend_register_list_destructors_ex(_wrap_destroy_p_in_addr
,NULL
,(char *)(SWIGTYPE_p_in_addr
->name
),module_number
);
2414 SWIG_TypeClientData(SWIGTYPE_p_in_addr
,&le_swig__p_in_addr
);
2415 le_swig__p_lwes_emitter
=zend_register_list_destructors_ex(_wrap_destroy_p_lwes_emitter
,NULL
,(char *)(SWIGTYPE_p_lwes_emitter
->name
),module_number
);
2416 SWIG_TypeClientData(SWIGTYPE_p_lwes_emitter
,&le_swig__p_lwes_emitter
);
2417 le_swig__p_p_char
=zend_register_list_destructors_ex(_wrap_destroy_p_p_char
,NULL
,(char *)(SWIGTYPE_p_p_char
->name
),module_number
);
2418 SWIG_TypeClientData(SWIGTYPE_p_p_char
,&le_swig__p_p_char
);
2419 le_swig__p_lwes_event
=zend_register_list_destructors_ex(_wrap_destroy_p_lwes_event
,NULL
,(char *)(SWIGTYPE_p_lwes_event
->name
),module_number
);
2420 SWIG_TypeClientData(SWIGTYPE_p_lwes_event
,&le_swig__p_lwes_event
);
2421 le_swig__p_unsigned_int
=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_int
,NULL
,(char *)(SWIGTYPE_p_unsigned_int
->name
),module_number
);
2422 SWIG_TypeClientData(SWIGTYPE_p_unsigned_int
,&le_swig__p_unsigned_int
);
2423 le_swig__p_unsigned_short
=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_short
,NULL
,(char *)(SWIGTYPE_p_unsigned_short
->name
),module_number
);
2424 SWIG_TypeClientData(SWIGTYPE_p_unsigned_short
,&le_swig__p_unsigned_short
);
2425 le_swig__p_short
=zend_register_list_destructors_ex(_wrap_destroy_p_short
,NULL
,(char *)(SWIGTYPE_p_short
->name
),module_number
);
2426 SWIG_TypeClientData(SWIGTYPE_p_short
,&le_swig__p_short
);
2427 le_swig__p_int
=zend_register_list_destructors_ex(_wrap_destroy_p_int
,NULL
,(char *)(SWIGTYPE_p_int
->name
),module_number
);
2428 SWIG_TypeClientData(SWIGTYPE_p_int
,&le_swig__p_int
);
2429 CG(active_class_entry
) = NULL
;
2430 /* end oinit subsection */
2434 PHP_RINIT_FUNCTION(lwes
)
2436 /* cinit subsection */
2437 /* end cinit subsection */
2439 /* vinit subsection */
2440 /* end vinit subsection */
2444 PHP_RSHUTDOWN_FUNCTION(lwes
)
2448 PHP_MINFO_FUNCTION(lwes
)
2451 /* end init section */