Bug Summary

File:src/mod/languages/mod_lua/mod_lua_wrap.cpp
Location:line 8202, column 17
Description:Called C++ object pointer is null

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.35
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11
12#ifdef __cplusplus199711L
13template<typename T> class SwigValueWrapper {
14 T *tt;
15public:
16 SwigValueWrapper() : tt(0) { }
17 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
18 SwigValueWrapper(const T& t) : tt(new T(t)) { }
19 ~SwigValueWrapper() { delete tt; }
20 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
21 operator T&() const { return *tt; }
22 T *operator&() { return tt; }
23private:
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25};
26
27template <typename T> T SwigValueInit() {
28 return T();
29}
30#endif
31
32/* -----------------------------------------------------------------------------
33 * This section contains generic SWIG labels for method/variable
34 * declarations/attributes, and other compiler dependent labels.
35 * ----------------------------------------------------------------------------- */
36
37/* template workaround for compilers that cannot correctly implement the C++ standard */
38#ifndef SWIGTEMPLATEDISAMBIGUATOR
39# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40# define SWIGTEMPLATEDISAMBIGUATOR template
41# elif defined(__HP_aCC)
42/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
43/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
44# define SWIGTEMPLATEDISAMBIGUATOR template
45# else
46# define SWIGTEMPLATEDISAMBIGUATOR
47# endif
48#endif
49
50/* inline attribute */
51#ifndef SWIGINLINEinline
52# if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
53# define SWIGINLINEinline inline
54# else
55# define SWIGINLINEinline
56# endif
57#endif
58
59/* attribute recognised by some compilers to avoid 'unused' warnings */
60#ifndef SWIGUNUSED__attribute__ ((__unused__))
61# if defined(__GNUC__4)
62# if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
63# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
64# else
65# define SWIGUNUSED__attribute__ ((__unused__))
66# endif
67# elif defined(__ICC)
68# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
69# else
70# define SWIGUNUSED__attribute__ ((__unused__))
71# endif
72#endif
73
74#ifndef SWIGUNUSEDPARM
75# ifdef __cplusplus199711L
76# define SWIGUNUSEDPARM(p)
77# else
78# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
79# endif
80#endif
81
82/* internal SWIG method */
83#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
84# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
85#endif
86
87/* internal inline SWIG method */
88#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
89# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
90#endif
91
92/* exporting methods */
93#if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
94# ifndef GCC_HASCLASSVISIBILITY
95# define GCC_HASCLASSVISIBILITY
96# endif
97#endif
98
99#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
100# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
101# if defined(STATIC_LINKED)
102# define SWIGEXPORT__attribute__ ((visibility("default")))
103# else
104# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
105# endif
106# else
107# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
108# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
109# else
110# define SWIGEXPORT__attribute__ ((visibility("default")))
111# endif
112# endif
113#endif
114
115/* calling conventions for Windows */
116#ifndef SWIGSTDCALL
117# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118# define SWIGSTDCALL __stdcall
119# else
120# define SWIGSTDCALL
121# endif
122#endif
123
124/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
125#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
126# define _CRT_SECURE_NO_DEPRECATE
127#endif
128
129/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
130#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
131# define _SCL_SECURE_NO_DEPRECATE
132#endif
133
134
135/* -----------------------------------------------------------------------------
136 * swigrun.swg
137 *
138 * This file contains generic CAPI SWIG runtime support for pointer
139 * type checking.
140 * ----------------------------------------------------------------------------- */
141
142/* This should only be incremented when either the layout of swig_type_info changes,
143 or for whatever reason, the runtime changes incompatibly */
144#define SWIG_RUNTIME_VERSION"4" "4"
145
146/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
147#ifdef SWIG_TYPE_TABLE
148# define SWIG_QUOTE_STRING(x) #x
149# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
150# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
151#else
152# define SWIG_TYPE_TABLE_NAME
153#endif
154
155/*
156 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
157 creating a static or dynamic library from the swig runtime code.
158 In 99.9% of the cases, swig just needs to declare them as 'static'.
159
160 But only do this if is strictly necessary, ie, if you have problems
161 with your compiler or so.
162*/
163
164#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
165# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
166#endif
167
168#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
169# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
170#endif
171
172/* Generic buffer size */
173#ifndef SWIG_BUFFER_SIZE1024
174# define SWIG_BUFFER_SIZE1024 1024
175#endif
176
177/* Flags for pointer conversions */
178#define SWIG_POINTER_DISOWN0x1 0x1
179#define SWIG_CAST_NEW_MEMORY0x2 0x2
180
181/* Flags for new pointer objects */
182#define SWIG_POINTER_OWN0x1 0x1
183
184
185/*
186 Flags/methods for returning states.
187
188 The swig conversion methods, as ConvertPtr, return and integer
189 that tells if the conversion was successful or not. And if not,
190 an error code can be returned (see swigerrors.swg for the codes).
191
192 Use the following macros/flags to set or process the returning
193 states.
194
195 In old swig versions, you usually write code as:
196
197 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
198 // success code
199 } else {
200 //fail code
201 }
202
203 Now you can be more explicit as:
204
205 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
206 if (SWIG_IsOK(res)) {
207 // success code
208 } else {
209 // fail code
210 }
211
212 that seems to be the same, but now you can also do
213
214 Type *ptr;
215 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
216 if (SWIG_IsOK(res)) {
217 // success code
218 if (SWIG_IsNewObj(res) {
219 ...
220 delete *ptr;
221 } else {
222 ...
223 }
224 } else {
225 // fail code
226 }
227
228 I.e., now SWIG_ConvertPtr can return new objects and you can
229 identify the case and take care of the deallocation. Of course that
230 requires also to SWIG_ConvertPtr to return new result values, as
231
232 int SWIG_ConvertPtr(obj, ptr,...) {
233 if (<obj is ok>) {
234 if (<need new object>) {
235 *ptr = <ptr to new allocated object>;
236 return SWIG_NEWOBJ;
237 } else {
238 *ptr = <ptr to old object>;
239 return SWIG_OLDOBJ;
240 }
241 } else {
242 return SWIG_BADOBJ;
243 }
244 }
245
246 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
247 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
248 swig errors code.
249
250 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
251 allows to return the 'cast rank', for example, if you have this
252
253 int food(double)
254 int fooi(int);
255
256 and you call
257
258 food(1) // cast rank '1' (1 -> 1.0)
259 fooi(1) // cast rank '0'
260
261 just use the SWIG_AddCast()/SWIG_CheckState()
262
263
264 */
265#define SWIG_OK(0) (0)
266#define SWIG_ERROR(-1) (-1)
267#define SWIG_IsOK(r)(r >= 0) (r >= 0)
268#define SWIG_ArgError(r)((r != (-1)) ? r : SWIG_TypeError) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError)
269
270/* The CastRankLimit says how many bits are used for the cast rank */
271#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
272/* The NewMask denotes the object was created (using new/malloc) */
273#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
274/* The TmpMask is for in/out typemaps that use temporal objects */
275#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
276/* Simple returning values */
277#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
278#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
279#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
280#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
281/* Check, add and del mask methods */
282#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
283#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
284#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
285#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
286#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
287#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
288
289
290/* Cast-Rank Mode */
291#if defined(SWIG_CASTRANK_MODE)
292# ifndef SWIG_TypeRank
293# define SWIG_TypeRank unsigned long
294# endif
295# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
296# define SWIG_MAXCASTRANK (2)
297# endif
298# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
299# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
300SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r) {
301 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
302}
303SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
304 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
305}
306#else /* no cast-rank mode */
307# define SWIG_AddCast
308# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
309#endif
310
311
312
313
314#include <string.h>
315
316#ifdef __cplusplus199711L
317extern "C" {
318#endif
319
320typedef void *(*swig_converter_func)(void *, int *);
321typedef struct swig_type_info *(*swig_dycast_func)(void **);
322
323/* Structure to store information on one type */
324typedef struct swig_type_info {
325 const char *name; /* mangled name of this type */
326 const char *str; /* human readable name of this type */
327 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
328 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
329 void *clientdata; /* language specific type data */
330 int owndata; /* flag if the structure owns the clientdata */
331} swig_type_info;
332
333/* Structure to store a type and conversion function used for casting */
334typedef struct swig_cast_info {
335 swig_type_info *type; /* pointer to type that is equivalent to this type */
336 swig_converter_func converter; /* function to cast the void pointers */
337 struct swig_cast_info *next; /* pointer to next cast in linked list */
338 struct swig_cast_info *prev; /* pointer to the previous cast */
339} swig_cast_info;
340
341/* Structure used to store module information
342 * Each module generates one structure like this, and the runtime collects
343 * all of these structures and stores them in a circularly linked list.*/
344typedef struct swig_module_info {
345 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
346 size_t size; /* Number of types in this module */
347 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
348 swig_type_info **type_initial; /* Array of initially generated type structures */
349 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
350 void *clientdata; /* Language specific module data */
351} swig_module_info;
352
353/*
354 Compare two type names skipping the space characters, therefore
355 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
356
357 Return 0 when the two name types are equivalent, as in
358 strncmp, but skipping ' '.
359*/
360SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
361SWIG_TypeNameComp(const char *f1, const char *l1,
362 const char *f2, const char *l2) {
363 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
364 while ((*f1 == ' ') && (f1 != l1)) ++f1;
365 while ((*f2 == ' ') && (f2 != l2)) ++f2;
366 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
367 }
368 return (int)((l1 - f1) - (l2 - f2));
369}
370
371/*
372 Check type equivalence in a name list like <name1>|<name2>|...
373 Return 0 if not equal, 1 if equal
374*/
375SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
376SWIG_TypeEquiv(const char *nb, const char *tb) {
377 int equiv = 0;
378 const char* te = tb + strlen(tb);
379 const char* ne = nb;
380 while (!equiv && *ne) {
381 for (nb = ne; *ne; ++ne) {
382 if (*ne == '|') break;
383 }
384 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
385 if (*ne) ++ne;
386 }
387 return equiv;
388}
389
390/*
391 Check type equivalence in a name list like <name1>|<name2>|...
392 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
393*/
394SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
395SWIG_TypeCompare(const char *nb, const char *tb) {
396 int equiv = 0;
397 const char* te = tb + strlen(tb);
398 const char* ne = nb;
399 while (!equiv && *ne) {
400 for (nb = ne; *ne; ++ne) {
401 if (*ne == '|') break;
402 }
403 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
404 if (*ne) ++ne;
405 }
406 return equiv;
407}
408
409
410/* think of this as a c++ template<> or a scheme macro */
411#define SWIG_TypeCheck_Template(comparison, ty)if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if
(comparison) { if (iter == ty->cast) return iter; iter->
prev->next = iter->next; if (iter->next) iter->next
->prev = iter->prev; iter->next = ty->cast; iter->
prev = 0; if (ty->cast) ty->cast->prev = iter; ty->
cast = iter; return iter; } iter = iter->next; } } return 0
\
412 if (ty) { \
413 swig_cast_info *iter = ty->cast; \
414 while (iter) { \
415 if (comparison) { \
416 if (iter == ty->cast) return iter; \
417 /* Move iter to the top of the linked list */ \
418 iter->prev->next = iter->next; \
419 if (iter->next) \
420 iter->next->prev = iter->prev; \
421 iter->next = ty->cast; \
422 iter->prev = 0; \
423 if (ty->cast) ty->cast->prev = iter; \
424 ty->cast = iter; \
425 return iter; \
426 } \
427 iter = iter->next; \
428 } \
429 } \
430 return 0
431
432/*
433 Check the typename
434*/
435SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
436SWIG_TypeCheck(const char *c, swig_type_info *ty) {
437 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty)if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if
(strcmp(iter->type->name, c) == 0) { if (iter == ty->
cast) return iter; iter->prev->next = iter->next; if
(iter->next) iter->next->prev = iter->prev; iter
->next = ty->cast; iter->prev = 0; if (ty->cast) ty
->cast->prev = iter; ty->cast = iter; return iter; }
iter = iter->next; } } return 0
;
438}
439
440/* Same as previous function, except strcmp is replaced with a pointer comparison */
441SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
442SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
443 SWIG_TypeCheck_Template(iter->type == from, into)if (into) { swig_cast_info *iter = into->cast; while (iter
) { if (iter->type == from) { if (iter == into->cast) return
iter; iter->prev->next = iter->next; if (iter->next
) iter->next->prev = iter->prev; iter->next = into
->cast; iter->prev = 0; if (into->cast) into->cast
->prev = iter; into->cast = iter; return iter; } iter =
iter->next; } } return 0
;
444}
445
446/*
447 Cast a pointer up an inheritance hierarchy
448*/
449SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
450SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
451 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
452}
453
454/*
455 Dynamic pointer casting. Down an inheritance hierarchy
456*/
457SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
458SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
459 swig_type_info *lastty = ty;
460 if (!ty || !ty->dcast) return ty;
461 while (ty && (ty->dcast)) {
462 ty = (*ty->dcast)(ptr);
463 if (ty) lastty = ty;
464 }
465 return lastty;
466}
467
468/*
469 Return the name associated with this type
470*/
471SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
472SWIG_TypeName(const swig_type_info *ty) {
473 return ty->name;
474}
475
476/*
477 Return the pretty name associated with this type,
478 that is an unmangled type name in a form presentable to the user.
479*/
480SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
481SWIG_TypePrettyName(const swig_type_info *type) {
482 /* The "str" field contains the equivalent pretty names of the
483 type, separated by vertical-bar characters. We choose
484 to print the last name, as it is often (?) the most
485 specific. */
486 if (!type) return NULL__null;
487 if (type->str != NULL__null) {
488 const char *last_name = type->str;
489 const char *s;
490 for (s = type->str; *s; s++)
491 if (*s == '|') last_name = s+1;
492 return last_name;
493 }
494 else
495 return type->name;
496}
497
498/*
499 Set the clientdata field for a type
500*/
501SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
502SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
503 swig_cast_info *cast = ti->cast;
504 /* if (ti->clientdata == clientdata) return; */
505 ti->clientdata = clientdata;
506
507 while (cast) {
508 if (!cast->converter) {
509 swig_type_info *tc = cast->type;
510 if (!tc->clientdata) {
511 SWIG_TypeClientData(tc, clientdata);
512 }
513 }
514 cast = cast->next;
515 }
516}
517SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
518SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
519 SWIG_TypeClientData(ti, clientdata);
520 ti->owndata = 1;
521}
522
523/*
524 Search for a swig_type_info structure only by mangled name
525 Search is a O(log #types)
526
527 We start searching at module start, and finish searching when start == end.
528 Note: if start == end at the beginning of the function, we go all the way around
529 the circular list.
530*/
531SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
532SWIG_MangledTypeQueryModule(swig_module_info *start,
533 swig_module_info *end,
534 const char *name) {
535 swig_module_info *iter = start;
536 do {
537 if (iter->size) {
538 register size_t l = 0;
539 register size_t r = iter->size - 1;
540 do {
541 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
542 register size_t i = (l + r) >> 1;
543 const char *iname = iter->types[i]->name;
544 if (iname) {
545 register int compare = strcmp(name, iname);
546 if (compare == 0) {
547 return iter->types[i];
548 } else if (compare < 0) {
549 if (i) {
550 r = i - 1;
551 } else {
552 break;
553 }
554 } else if (compare > 0) {
555 l = i + 1;
556 }
557 } else {
558 break; /* should never happen */
559 }
560 } while (l <= r);
561 }
562 iter = iter->next;
563 } while (iter != end);
564 return 0;
565}
566
567/*
568 Search for a swig_type_info structure for either a mangled name or a human readable name.
569 It first searches the mangled names of the types, which is a O(log #types)
570 If a type is not found it then searches the human readable names, which is O(#types).
571
572 We start searching at module start, and finish searching when start == end.
573 Note: if start == end at the beginning of the function, we go all the way around
574 the circular list.
575*/
576SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
577SWIG_TypeQueryModule(swig_module_info *start,
578 swig_module_info *end,
579 const char *name) {
580 /* STEP 1: Search the name field using binary search */
581 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
582 if (ret) {
583 return ret;
584 } else {
585 /* STEP 2: If the type hasn't been found, do a complete search
586 of the str field (the human readable name) */
587 swig_module_info *iter = start;
588 do {
589 register size_t i = 0;
590 for (; i < iter->size; ++i) {
591 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
592 return iter->types[i];
593 }
594 iter = iter->next;
595 } while (iter != end);
596 }
597
598 /* neither found a match */
599 return 0;
600}
601
602/*
603 Pack binary data into a string
604*/
605SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
606SWIG_PackData(char *c, void *ptr, size_t sz) {
607 static const char hex[17] = "0123456789abcdef";
608 register const unsigned char *u = (unsigned char *) ptr;
609 register const unsigned char *eu = u + sz;
610 for (; u != eu; ++u) {
611 register unsigned char uu = *u;
612 *(c++) = hex[(uu & 0xf0) >> 4];
613 *(c++) = hex[uu & 0xf];
614 }
615 return c;
616}
617
618/*
619 Unpack binary data from a string
620*/
621SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
622SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
623 register unsigned char *u = (unsigned char *) ptr;
624 register const unsigned char *eu = u + sz;
625 for (; u != eu; ++u) {
626 register char d = *(c++);
627 register unsigned char uu;
628 if ((d >= '0') && (d <= '9'))
629 uu = ((d - '0') << 4);
630 else if ((d >= 'a') && (d <= 'f'))
631 uu = ((d - ('a'-10)) << 4);
632 else
633 return (char *) 0;
634 d = *(c++);
635 if ((d >= '0') && (d <= '9'))
636 uu |= (d - '0');
637 else if ((d >= 'a') && (d <= 'f'))
638 uu |= (d - ('a'-10));
639 else
640 return (char *) 0;
641 *u = uu;
642 }
643 return c;
644}
645
646/*
647 Pack 'void *' into a string buffer.
648*/
649SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
650SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
651 char *r = buff;
652 if ((2*sizeof(void *) + 2) > bsz) return 0;
653 *(r++) = '_';
654 r = SWIG_PackData(r,&ptr,sizeof(void *));
655 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
656 strcpy(r,name);
657 return buff;
658}
659
660SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
661SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
662 if (*c != '_') {
663 if (strcmp(c,"NULL") == 0) {
664 *ptr = (void *) 0;
665 return name;
666 } else {
667 return 0;
668 }
669 }
670 return SWIG_UnpackData(++c,ptr,sizeof(void *));
671}
672
673SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
674SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
675 char *r = buff;
676 size_t lname = (name ? strlen(name) : 0);
677 if ((2*sz + 2 + lname) > bsz) return 0;
678 *(r++) = '_';
679 r = SWIG_PackData(r,ptr,sz);
680 if (lname) {
681 strncpy(r,name,lname+1);
682 } else {
683 *r = 0;
684 }
685 return buff;
686}
687
688SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
689SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
690 if (*c != '_') {
691 if (strcmp(c,"NULL") == 0) {
692 memset(ptr,0,sz);
693 return name;
694 } else {
695 return 0;
696 }
697 }
698 return SWIG_UnpackData(++c,ptr,sz);
699}
700
701#ifdef __cplusplus199711L
702}
703#endif
704
705/* -----------------------------------------------------------------------------
706 * See the LICENSE file for information on copyright, usage and redistribution
707 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
708 *
709 * luarun.swg
710 *
711 * This file contains the runtime support for Lua modules
712 * and includes code for managing global variables and pointer
713 * type checking.
714 * ----------------------------------------------------------------------------- */
715
716#ifdef __cplusplus199711L
717extern "C" {
718#endif
719
720#include "lua.h"
721#include "lauxlib.h"
722#include <stdlib.h> /* for malloc */
723#include <assert.h> /* for a few sanity tests */
724
725/* -----------------------------------------------------------------------------
726 * global swig types
727 * ----------------------------------------------------------------------------- */
728/* Constant table */
729#define SWIG_LUA_INT1 1
730#define SWIG_LUA_FLOAT2 2
731#define SWIG_LUA_STRING3 3
732#define SWIG_LUA_POINTER4 4
733#define SWIG_LUA_BINARY5 5
734#define SWIG_LUA_CHAR6 6
735
736/* Structure for variable linking table */
737typedef struct {
738 const char *name;
739 lua_CFunction get;
740 lua_CFunction set;
741} swig_lua_var_info;
742
743/* Constant information structure */
744typedef struct {
745 int type;
746 char *name;
747 long lvalue;
748 double dvalue;
749 void *pvalue;
750 swig_type_info **ptype;
751} swig_lua_const_info;
752
753typedef struct {
754 const char *name;
755 lua_CFunction method;
756} swig_lua_method;
757
758typedef struct {
759 const char *name;
760 lua_CFunction getmethod;
761 lua_CFunction setmethod;
762} swig_lua_attribute;
763
764typedef struct swig_lua_class {
765 const char *name;
766 swig_type_info **type;
767 lua_CFunction constructor;
768 void (*destructor)(void *);
769 swig_lua_method *methods;
770 swig_lua_attribute *attributes;
771 struct swig_lua_class **bases;
772 const char **base_names;
773} swig_lua_class;
774
775/* this is the struct for wrappering all pointers in SwigLua
776*/
777typedef struct {
778 swig_type_info *type;
779 int own; /* 1 if owned & must be destroyed */
780 void *ptr;
781} swig_lua_userdata;
782
783/* this is the struct for wrapping arbitary packed binary data
784(currently it is only used for member function pointers)
785the data ordering is similar to swig_lua_userdata, but it is currently not possible
786to tell the two structures apart within Swig, other than by looking at the type
787*/
788typedef struct {
789 swig_type_info *type;
790 int own; /* 1 if owned & must be destroyed */
791 char data[1]; /* arbitary amount of data */
792} swig_lua_rawdata;
793
794/* Common SWIG API */
795#define SWIG_NewPointerObj(L, ptr, type, owner)SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
796#define SWIG_ConvertPtr(L,idx, ptr, type, flags)SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
797#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname)SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
798/* for C++ member pointers, ie, member methods */
799#define SWIG_ConvertMember(L, idx, ptr, sz, ty)SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
800#define SWIG_NewMemberObj(L, ptr, sz, type)SWIG_Lua_NewPackedObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type)
801
802/* Runtime API */
803#define SWIG_GetModule(clientdata)SWIG_Lua_GetModule((lua_State*)(clientdata)) SWIG_Lua_GetModule((lua_State*)(clientdata))
804#define SWIG_SetModule(clientdata, pointer)SWIG_Lua_SetModule((lua_State*) (clientdata), pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
805#define SWIG_MODULE_CLIENTDATA_TYPElua_State* lua_State*
806
807/* Contract support */
808#define SWIG_contract_assert(expr, msg)if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else \
809 if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else
810
811/* helper #defines */
812#define SWIG_fail{goto fail;} {goto fail;}
813#define SWIG_fail_arg(func_name,argnum,type){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, func_name,argnum,type,SWIG_Lua_typename(L,argnum)); goto fail
;}
\
814 {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
815 func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
816 goto fail;}
817#define SWIG_fail_ptr(func_name,argnum,type){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, func_name,argnum,(type && type->str)?type->str
:"void*",SWIG_Lua_typename(L,argnum)); goto fail;}
\
818 SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, func_name,argnum,(type && type->str)?type->str
:"void*",SWIG_Lua_typename(L,argnum)); goto fail;}
819#define SWIG_check_num_args(func_name,a,b)if (lua_gettop(L)<a || lua_gettop(L)>b) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop
(L)); goto fail;}
\
820 if (lua_gettop(L)<a || lua_gettop(L)>b) \
821 {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
822 goto fail;}
823
824
825#define SWIG_Lua_get_table(L,n)(lua_pushstring(L, n), lua_rawget(L,-2)) \
826 (lua_pushstring(L, n), lua_rawget(L,-2))
827
828#define SWIG_Lua_add_function(L,n,f)(lua_pushstring(L, n), lua_pushcclosure(L, (f), 0), lua_rawset
(L,-3))
\
829 (lua_pushstring(L, n), \
830 lua_pushcfunction(L, f)lua_pushcclosure(L, (f), 0), \
831 lua_rawset(L,-3))
832
833/* special helper for allowing 'nil' for usertypes */
834#define SWIG_isptrtype(L,I)(lua_isuserdata(L,I) || (lua_type(L, (I)) == 0)) (lua_isuserdata(L,I) || lua_isnil(L,I)(lua_type(L, (I)) == 0))
835
836#ifdef __cplusplus199711L
837/* Special helper for member function pointers
838it gets the address, casts it, then dereferences it */
839//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a)))
840#endif
841
842/* storing/access of swig_module_info */
843SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
844SWIG_Lua_GetModule(lua_State* L) {
845 swig_module_info *ret = 0;
846 lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION"4" SWIG_TYPE_TABLE_NAME);
847 lua_rawget(L,LUA_REGISTRYINDEX(-1000000 - 1000));
848 if (lua_islightuserdata(L,-1)(lua_type(L, (-1)) == 2))
849 ret=(swig_module_info*)lua_touserdata(L,-1);
850 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy */
851 return ret;
852}
853
854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
855SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) {
856 /* add this all into the Lua registry: */
857 lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION"4" SWIG_TYPE_TABLE_NAME);
858 lua_pushlightuserdata(L,(void*)module);
859 lua_rawset(L,LUA_REGISTRYINDEX(-1000000 - 1000));
860}
861
862/* -----------------------------------------------------------------------------
863 * global variable support code: modules
864 * ----------------------------------------------------------------------------- */
865
866/* this function is called when trying to set an immutable.
867default value is to print an error.
868This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */
869SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_set_immutable(lua_State* L)
870{
871/* there should be 1 param passed in: the new value */
872#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
873 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove it */
874 lua_pushstring(L,"This variable is immutable");
875 lua_error(L);
876#endif
877 return 0; /* should not return anything */
878}
879
880/* the module.get method used for getting linked data */
881SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_module_get(lua_State* L)
882{
883/* there should be 2 params passed in
884 (1) table (not the meta table)
885 (2) string name of the attribute
886 printf("SWIG_Lua_module_get %p(%s) '%s'\n",
887 lua_topointer(L,1),lua_typename(L,lua_type(L,1)),
888 lua_tostring(L,2));
889*/
890 /* get the metatable */
891 assert(lua_istable(L,1))(((lua_type(L, (1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (1)) == 5)", "mod_lua_wrap.cpp", 891, __PRETTY_FUNCTION__
))
; /* just in case */
892 lua_getmetatable(L,1); /* get the metatable */
893 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 893, __PRETTY_FUNCTION__
))
; /* just in case */
894 SWIG_Lua_get_table(L,".get")(lua_pushstring(L, ".get"), lua_rawget(L,-2)); /* get the .get table */
895 lua_remove(L,3); /* remove metatable */
896 if (lua_istable(L,-1)(lua_type(L, (-1)) == 5))
897 {
898 /* look for the key in the .get table */
899 lua_pushvalue(L,2); /* key */
900 lua_rawget(L,-2);
901 lua_remove(L,3); /* remove .get */
902 if (lua_iscfunction(L,-1))
903 { /* found it so call the fn & return its value */
904 lua_call(L,0,1)lua_callk(L, (0), (1), 0, __null);
905 return 1;
906 }
907 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove the top */
908 }
909 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove the .get */
910 lua_pushnil(L); /* return a nil */
911 return 1;
912}
913
914/* the module.set method used for setting linked data */
915SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_module_set(lua_State* L)
916{
917/* there should be 3 params passed in
918 (1) table (not the meta table)
919 (2) string name of the attribute
920 (3) any for the new value
921*/
922 /* get the metatable */
923 assert(lua_istable(L,1))(((lua_type(L, (1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (1)) == 5)", "mod_lua_wrap.cpp", 923, __PRETTY_FUNCTION__
))
; /* just in case */
924 lua_getmetatable(L,1); /* get the metatable */
925 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 925, __PRETTY_FUNCTION__
))
; /* just in case */
926 SWIG_Lua_get_table(L,".set")(lua_pushstring(L, ".set"), lua_rawget(L,-2)); /* get the .set table */
927 lua_remove(L,4); /* remove metatable */
928 if (lua_istable(L,-1)(lua_type(L, (-1)) == 5))
929 {
930 /* look for the key in the .set table */
931 lua_pushvalue(L,2); /* key */
932 lua_rawget(L,-2);
933 lua_remove(L,4); /* remove .set */
934 if (lua_iscfunction(L,-1))
935 { /* found it so call the fn & return its value */
936 lua_pushvalue(L,3); /* value */
937 lua_call(L,1,0)lua_callk(L, (1), (0), 0, __null);
938 return 0;
939 }
940 }
941 lua_settop(L,3); /* reset back to start */
942 /* we now have the table, key & new value, so just set directly */
943 lua_rawset(L,1); /* add direct */
944 return 0;
945}
946
947/* registering a module in lua */
948SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_module_begin(lua_State* L,const char* name)
949{
950 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 950, __PRETTY_FUNCTION__
))
; /* just in case */
951 lua_pushstring(L,name);
952 lua_newtable(L)lua_createtable(L, 0, 0); /* the table */
953 /* add meta table */
954 lua_newtable(L)lua_createtable(L, 0, 0); /* the meta table */
955 SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get)(lua_pushstring(L, "__index"), lua_pushcclosure(L, (SWIG_Lua_module_get
), 0), lua_rawset(L,-3))
;
956 SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set)(lua_pushstring(L, "__newindex"), lua_pushcclosure(L, (SWIG_Lua_module_set
), 0), lua_rawset(L,-3))
;
957 lua_pushstring(L,".get");
958 lua_newtable(L)lua_createtable(L, 0, 0); /* the .get table */
959 lua_rawset(L,-3); /* add .get into metatable */
960 lua_pushstring(L,".set");
961 lua_newtable(L)lua_createtable(L, 0, 0); /* the .set table */
962 lua_rawset(L,-3); /* add .set into metatable */
963 lua_setmetatable(L,-2); /* sets meta table in module */
964 lua_rawset(L,-3); /* add module into parent */
965 SWIG_Lua_get_table(L,name)(lua_pushstring(L, name), lua_rawget(L,-2)); /* get the table back out */
966}
967
968/* ending the register */
969SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_module_end(lua_State* L)
970{
971 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove module) */
972}
973
974/* adding a linked variable to the module */
975SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn)
976{
977 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 977, __PRETTY_FUNCTION__
))
; /* just in case */
978 lua_getmetatable(L,-1); /* get the metatable */
979 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 979, __PRETTY_FUNCTION__
))
; /* just in case */
980 SWIG_Lua_get_table(L,".get")(lua_pushstring(L, ".get"), lua_rawget(L,-2)); /* find the .get table */
981 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 981, __PRETTY_FUNCTION__
))
; /* should be a table: */
982 SWIG_Lua_add_function(L,name,getFn)(lua_pushstring(L, name), lua_pushcclosure(L, (getFn), 0), lua_rawset
(L,-3))
;
983 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove table) */
984 if (setFn) /* if there is a set fn */
985 {
986 SWIG_Lua_get_table(L,".set")(lua_pushstring(L, ".set"), lua_rawget(L,-2)); /* find the .set table */
987 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 987, __PRETTY_FUNCTION__
))
; /* should be a table: */
988 SWIG_Lua_add_function(L,name,setFn)(lua_pushstring(L, name), lua_pushcclosure(L, (setFn), 0), lua_rawset
(L,-3))
;
989 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove table) */
990 }
991 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove meta) */
992}
993
994/* adding a function module */
995SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn)
996{
997 SWIG_Lua_add_function(L,name,fn)(lua_pushstring(L, name), lua_pushcclosure(L, (fn), 0), lua_rawset
(L,-3))
;
998}
999
1000/* -----------------------------------------------------------------------------
1001 * global variable support code: classes
1002 * ----------------------------------------------------------------------------- */
1003
1004/* the class.get method, performs the lookup of class attributes */
1005SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_class_get(lua_State* L)
1006{
1007/* there should be 2 params passed in
1008 (1) userdata (not the meta table)
1009 (2) string name of the attribute
1010*/
1011 assert(lua_isuserdata(L,-2))((lua_isuserdata(L,-2)) ? static_cast<void> (0) : __assert_fail
("lua_isuserdata(L,-2)", "mod_lua_wrap.cpp", 1011, __PRETTY_FUNCTION__
))
; /* just in case */
1012 lua_getmetatable(L,-2); /* get the meta table */
1013 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1013, __PRETTY_FUNCTION__
))
; /* just in case */
1014 SWIG_Lua_get_table(L,".get")(lua_pushstring(L, ".get"), lua_rawget(L,-2)); /* find the .get table */
1015 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1015, __PRETTY_FUNCTION__
))
; /* just in case */
1016 /* look for the key in the .get table */
1017 lua_pushvalue(L,2); /* key */
1018 lua_rawget(L,-2);
1019 lua_remove(L,-2); /* stack tidy, remove .get table */
1020 if (lua_iscfunction(L,-1))
1021 { /* found it so call the fn & return its value */
1022 lua_pushvalue(L,1); /* the userdata */
1023 lua_call(L,1,1)lua_callk(L, (1), (1), 0, __null); /* 1 value in (userdata),1 out (result) */
1024 lua_remove(L,-2); /* stack tidy, remove metatable */
1025 return 1;
1026 }
1027 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove whatever was there */
1028 /* ok, so try the .fn table */
1029 SWIG_Lua_get_table(L,".fn")(lua_pushstring(L, ".fn"), lua_rawget(L,-2)); /* find the .get table */
1030 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1030, __PRETTY_FUNCTION__
))
; /* just in case */
1031 lua_pushvalue(L,2); /* key */
1032 lua_rawget(L,-2); /* look for the fn */
1033 lua_remove(L,-2); /* stack tidy, remove .fn table */
1034 if (lua_isfunction(L,-1)(lua_type(L, (-1)) == 6)) /* note: if its a C function or lua function */
1035 { /* found it so return the fn & let lua call it */
1036 lua_remove(L,-2); /* stack tidy, remove metatable */
1037 return 1;
1038 }
1039 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove whatever was there */
1040 /* NEW: looks for the __getitem() fn
1041 this is a user provided get fn */
1042 SWIG_Lua_get_table(L,"__getitem")(lua_pushstring(L, "__getitem"), lua_rawget(L,-2)); /* find the __getitem fn */
1043 if (lua_iscfunction(L,-1)) /* if its there */
1044 { /* found it so call the fn & return its value */
1045 lua_pushvalue(L,1); /* the userdata */
1046 lua_pushvalue(L,2); /* the parameter */
1047 lua_call(L,2,1)lua_callk(L, (2), (1), 0, __null); /* 2 value in (userdata),1 out (result) */
1048 lua_remove(L,-2); /* stack tidy, remove metatable */
1049 return 1;
1050 }
1051 return 0; /* sorry not known */
1052}
1053
1054/* the class.set method, performs the lookup of class attributes */
1055SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_class_set(lua_State* L)
1056{
1057/* there should be 3 params passed in
1058 (1) table (not the meta table)
1059 (2) string name of the attribute
1060 (3) any for the new value
1061printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n",
1062 lua_topointer(L,1),lua_typename(L,lua_type(L,1)),
1063 lua_tostring(L,2),
1064 lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/
1065
1066 assert(lua_isuserdata(L,1))((lua_isuserdata(L,1)) ? static_cast<void> (0) : __assert_fail
("lua_isuserdata(L,1)", "mod_lua_wrap.cpp", 1066, __PRETTY_FUNCTION__
))
; /* just in case */
1067 lua_getmetatable(L,1); /* get the meta table */
1068 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1068, __PRETTY_FUNCTION__
))
; /* just in case */
1069
1070 SWIG_Lua_get_table(L,".set")(lua_pushstring(L, ".set"), lua_rawget(L,-2)); /* find the .set table */
1071 if (lua_istable(L,-1)(lua_type(L, (-1)) == 5))
1072 {
1073 /* look for the key in the .set table */
1074 lua_pushvalue(L,2); /* key */
1075 lua_rawget(L,-2);
1076 if (lua_iscfunction(L,-1))
1077 { /* found it so call the fn & return its value */
1078 lua_pushvalue(L,1); /* userdata */
1079 lua_pushvalue(L,3); /* value */
1080 lua_call(L,2,0)lua_callk(L, (2), (0), 0, __null);
1081 return 0;
1082 }
1083 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove the value */
1084 }
1085 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove the value .set table */
1086 /* NEW: looks for the __setitem() fn
1087 this is a user provided set fn */
1088 SWIG_Lua_get_table(L,"__setitem")(lua_pushstring(L, "__setitem"), lua_rawget(L,-2)); /* find the fn */
1089 if (lua_iscfunction(L,-1)) /* if its there */
1090 { /* found it so call the fn & return its value */
1091 lua_pushvalue(L,1); /* the userdata */
1092 lua_pushvalue(L,2); /* the parameter */
1093 lua_pushvalue(L,3); /* the value */
1094 lua_call(L,3,0)lua_callk(L, (3), (0), 0, __null); /* 3 values in ,0 out */
1095 lua_remove(L,-2); /* stack tidy, remove metatable */
1096 return 1;
1097 }
1098 return 0;
1099}
1100
1101/* the class.destruct method called by the interpreter */
1102SWIGINTERNstatic __attribute__ ((__unused__)) int SWIG_Lua_class_destruct(lua_State* L)
1103{
1104/* there should be 1 params passed in
1105 (1) userdata (not the meta table) */
1106 swig_lua_userdata* usr;
1107 swig_lua_class* clss;
1108 assert(lua_isuserdata(L,-1))((lua_isuserdata(L,-1)) ? static_cast<void> (0) : __assert_fail
("lua_isuserdata(L,-1)", "mod_lua_wrap.cpp", 1108, __PRETTY_FUNCTION__
))
; /* just in case */
1109 usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */
1110 /* if must be destroyed & has a destructor */
1111 if (usr->own) /* if must be destroyed */
1112 {
1113 clss=(swig_lua_class*)usr->type->clientdata; /* get the class */
1114 if (clss && clss->destructor) /* there is a destroy fn */
1115 {
1116 clss->destructor(usr->ptr); /* bye bye */
1117 }
1118 }
1119 return 0;
1120}
1121
1122/* gets the swig class registry (or creates it) */
1123SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_get_class_registry(lua_State* L)
1124{
1125 /* add this all into the swig registry: */
1126 lua_pushstring(L,"SWIG");
1127 lua_rawget(L,LUA_REGISTRYINDEX(-1000000 - 1000)); /* get the registry */
1128 if (!lua_istable(L,-1)(lua_type(L, (-1)) == 5)) /* not there */
1129 { /* must be first time, so add it */
1130 lua_pop(L,1)lua_settop(L, -(1)-1); /* remove the result */
1131 lua_pushstring(L,"SWIG");
1132 lua_newtable(L)lua_createtable(L, 0, 0);
1133 lua_rawset(L,LUA_REGISTRYINDEX(-1000000 - 1000));
1134 /* then get it */
1135 lua_pushstring(L,"SWIG");
1136 lua_rawget(L,LUA_REGISTRYINDEX(-1000000 - 1000));
1137 }
1138}
1139
1140/* helper fn to get the classes metatable from the register */
1141SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname)
1142{
1143 SWIG_Lua_get_class_registry(L); /* get the registry */
1144 lua_pushstring(L,cname); /* get the name */
1145 lua_rawget(L,-2); /* get it */
1146 lua_remove(L,-2); /* tidy up (remove registry) */
1147}
1148
1149/* helper add a variable to a registered class */
1150SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn)
1151{
1152 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1152, __PRETTY_FUNCTION__
))
; /* just in case */
1153 SWIG_Lua_get_table(L,".get")(lua_pushstring(L, ".get"), lua_rawget(L,-2)); /* find the .get table */
1154 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1154, __PRETTY_FUNCTION__
))
; /* just in case */
1155 SWIG_Lua_add_function(L,name,getFn)(lua_pushstring(L, name), lua_pushcclosure(L, (getFn), 0), lua_rawset
(L,-3))
;
1156 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove table) */
1157 if (setFn)
1158 {
1159 SWIG_Lua_get_table(L,".set")(lua_pushstring(L, ".set"), lua_rawget(L,-2)); /* find the .set table */
1160 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1160, __PRETTY_FUNCTION__
))
; /* just in case */
1161 SWIG_Lua_add_function(L,name,setFn)(lua_pushstring(L, name), lua_pushcclosure(L, (setFn), 0), lua_rawset
(L,-3))
;
1162 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove table) */
1163 }
1164}
1165
1166/* helper to recursively add class details (attributes & operations) */
1167SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss)
1168{
1169 int i;
1170 /* call all the base classes first: we can then override these later: */
1171 for(i=0;clss->bases[i];i++)
1172 {
1173 SWIG_Lua_add_class_details(L,clss->bases[i]);
1174 }
1175 /* add fns */
1176 for(i=0;clss->attributes[i].name;i++){
1177 SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod);
1178 }
1179 /* add methods to the metatable */
1180 SWIG_Lua_get_table(L,".fn")(lua_pushstring(L, ".fn"), lua_rawget(L,-2)); /* find the .fn table */
1181 assert(lua_istable(L,-1))(((lua_type(L, (-1)) == 5)) ? static_cast<void> (0) : __assert_fail
("(lua_type(L, (-1)) == 5)", "mod_lua_wrap.cpp", 1181, __PRETTY_FUNCTION__
))
; /* just in case */
1182 for(i=0;clss->methods[i].name;i++){
1183 SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method)(lua_pushstring(L, clss->methods[i].name), lua_pushcclosure
(L, (clss->methods[i].method), 0), lua_rawset(L,-3))
;
1184 }
1185 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove table) */
1186 /* add operator overloads
1187 these look ANY method which start with "__" and assume they
1188 are operator overloads & add them to the metatable
1189 (this might mess up is someone defines a method __gc (the destructor)*/
1190 for(i=0;clss->methods[i].name;i++){
1191 if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){
1192 SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method)(lua_pushstring(L, clss->methods[i].name), lua_pushcclosure
(L, (clss->methods[i].method), 0), lua_rawset(L,-3))
;
1193 }
1194 }
1195}
1196
1197/* set up the base classes pointers.
1198Each class structure has a list of pointers to the base class structures.
1199This function fills them.
1200It cannot be done at compile time, as this will not work with hireachies
1201spread over more than one swig file.
1202Therefore it must be done at runtime, querying the SWIG type system.
1203*/
1204SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss)
1205{
1206 int i=0;
1207 swig_module_info* module=SWIG_GetModule(L)SWIG_Lua_GetModule((lua_State*)(L));
1208 for(i=0;clss->base_names[i];i++)
1209 {
1210 if (clss->bases[i]==0) /* not found yet */
1211 {
1212 /* lookup and cache the base class */
1213 swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]);
1214 if (info) clss->bases[i] = (swig_lua_class *) info->clientdata;
1215 }
1216 }
1217}
1218
1219/* performs the entire class registration process */
1220SWIGINTERNstatic __attribute__ ((__unused__)) void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
1221{
1222 /* add its constructor to module with the name of the class
1223 so you can do MyClass(...) as well as new_MyClass(...)
1224 BUT only if a constructor is defined
1225 (this overcomes the problem of pure virtual classes without constructors)*/
1226 if (clss->constructor)
1227 SWIG_Lua_add_function(L,clss->name,clss->constructor)(lua_pushstring(L, clss->name), lua_pushcclosure(L, (clss->
constructor), 0), lua_rawset(L,-3))
;
1228
1229 SWIG_Lua_get_class_registry(L); /* get the registry */
1230 lua_pushstring(L,clss->name); /* get the name */
1231 lua_newtable(L)lua_createtable(L, 0, 0); /* create the metatable */
1232 /* add string of class name called ".type" */
1233 lua_pushstring(L,".type");
1234 lua_pushstring(L,clss->name);
1235 lua_rawset(L,-3);
1236 /* add a table called ".get" */
1237 lua_pushstring(L,".get");
1238 lua_newtable(L)lua_createtable(L, 0, 0);
1239 lua_rawset(L,-3);
1240 /* add a table called ".set" */
1241 lua_pushstring(L,".set");
1242 lua_newtable(L)lua_createtable(L, 0, 0);
1243 lua_rawset(L,-3);
1244 /* add a table called ".fn" */
1245 lua_pushstring(L,".fn");
1246 lua_newtable(L)lua_createtable(L, 0, 0);
1247 lua_rawset(L,-3);
1248 /* add accessor fns for using the .get,.set&.fn */
1249 SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get)(lua_pushstring(L, "__index"), lua_pushcclosure(L, (SWIG_Lua_class_get
), 0), lua_rawset(L,-3))
;
1250 SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set)(lua_pushstring(L, "__newindex"), lua_pushcclosure(L, (SWIG_Lua_class_set
), 0), lua_rawset(L,-3))
;
1251 SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct)(lua_pushstring(L, "__gc"), lua_pushcclosure(L, (SWIG_Lua_class_destruct
), 0), lua_rawset(L,-3))
;
1252 /* add it */
1253 lua_rawset(L,-3); /* metatable into registry */
1254 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove registry) */
1255
1256 SWIG_Lua_get_class_metatable(L,clss->name);
1257 SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */
1258 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove class metatable) */
1259}
1260
1261/* -----------------------------------------------------------------------------
1262 * Class/structure conversion fns
1263 * ----------------------------------------------------------------------------- */
1264
1265/* helper to add metatable to new lua object */
1266SWIGINTERNstatic __attribute__ ((__unused__)) void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type)
1267{
1268 if (type->clientdata) /* there is clientdata: so add the metatable */
1269 {
1270 SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name);
1271 if (lua_istable(L,-1)(lua_type(L, (-1)) == 5))
1272 {
1273 lua_setmetatable(L,-2);
1274 }
1275 else
1276 {
1277 lua_pop(L,1)lua_settop(L, -(1)-1);
1278 }
1279 }
1280}
1281
1282/* pushes a new object into the lua stack */
1283SWIGRUNTIMEstatic __attribute__ ((__unused__)) void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own)
1284{
1285 swig_lua_userdata* usr;
1286 if (!ptr){
1287 lua_pushnil(L);
1288 return;
1289 }
1290 usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); /* get data */
1291 usr->ptr=ptr; /* set the ptr */
1292 usr->type=type;
1293 usr->own=own;
1294 _SWIG_Lua_AddMetatable(L,type); /* add metatable */
1295}
1296
1297/* takes a object from the lua stack & converts it into an object of the correct type
1298 (if possible) */
1299SWIGRUNTIMEstatic __attribute__ ((__unused__)) int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags)
1300{
1301 swig_lua_userdata* usr;
1302 swig_cast_info *cast;
1303 if (lua_isnil(L,index)(lua_type(L, (index)) == 0)){*ptr=0; return SWIG_OK(0);} /* special case: lua nil => NULL pointer */
4
Taking true branch
5
Null pointer value stored to 'arg1'
1304 usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */
1305 if (usr)
1306 {
1307 if (flags & SWIG_POINTER_DISOWN0x1) /* must disown the object */
1308 {
1309 usr->own=0;
1310 }
1311 if (!type) /* special cast void*, no casting fn */
1312 {
1313 *ptr=usr->ptr;
1314 return SWIG_OK(0); /* ok */
1315 }
1316 cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */
1317 if (cast)
1318 {
1319 int newmemory = 0;
1320 *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory);
1321 assert(!newmemory)((!newmemory) ? static_cast<void> (0) : __assert_fail (
"!newmemory", "mod_lua_wrap.cpp", 1321, __PRETTY_FUNCTION__))
; /* newmemory handling not yet implemented */
1322 return SWIG_OK(0); /* ok */
1323 }
1324 }
1325 return SWIG_ERROR(-1); /* error */
1326}
1327
1328SWIGRUNTIMEstatic __attribute__ ((__unused__)) void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags,
1329 int argnum,const char* func_name){
1330 void* result;
1331 if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))(SWIG_Lua_ConvertPtr(L,index,&result,type,flags) >= 0)){
1332 lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n",
1333 func_name,(type && type->str)?type->str:"void*",argnum);
1334 lua_error(L);
1335 }
1336 return result;
1337}
1338
1339/* pushes a packed userdata. user for member fn pointers only */
1340SWIGRUNTIMEstatic __attribute__ ((__unused__)) void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type)
1341{
1342 swig_lua_rawdata* raw;
1343 assert(ptr)((ptr) ? static_cast<void> (0) : __assert_fail ("ptr", "mod_lua_wrap.cpp"
, 1343, __PRETTY_FUNCTION__))
; /* not acceptable to pass in a NULL value */
1344 raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */
1345 raw->type=type;
1346 raw->own=0;
1347 memcpy(raw->data,ptr,size); /* copy the data */
1348 _SWIG_Lua_AddMetatable(L,type); /* add metatable */
1349}
1350
1351/* converts a packed userdata. user for member fn pointers only */
1352SWIGRUNTIMEstatic __attribute__ ((__unused__)) int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type)
1353{
1354 swig_lua_rawdata* raw;
1355 raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */
1356 if (!raw) return SWIG_ERROR(-1); /* error */
1357 if (type==0 || type==raw->type) /* void* or identical type */
1358 {
1359 memcpy(ptr,raw->data,size); /* copy it */
1360 return SWIG_OK(0); /* ok */
1361 }
1362 return SWIG_ERROR(-1); /* error */
1363}
1364
1365/* a function to get the typestring of a piece of data */
1366SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *SWIG_Lua_typename(lua_State *L, int tp)
1367{
1368 swig_lua_userdata* usr;
1369 if (lua_isuserdata(L,tp))
1370 {
1371 usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */
1372 if (usr && usr->type && usr->type->str)
1373 return usr->type->str;
1374 return "userdata (unknown type)";
1375 }
1376 return lua_typename(L,lua_type(L,tp));
1377}
1378
1379/* lua callable function to get the userdata's type */
1380SWIGRUNTIMEstatic __attribute__ ((__unused__)) int SWIG_Lua_type(lua_State* L)
1381{
1382 lua_pushstring(L,SWIG_Lua_typename(L,1));
1383 return 1;
1384}
1385
1386/* lua callable function to compare userdata's value
1387the issue is that two userdata may point to the same thing
1388but to lua, they are different objects */
1389SWIGRUNTIMEstatic __attribute__ ((__unused__)) int SWIG_Lua_equal(lua_State* L)
1390{
1391 int result;
1392 swig_lua_userdata *usr1,*usr2;
1393 if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */
1394 return 0; /* nil reply */
1395 usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */
1396 usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */
1397 /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/
1398 result=(usr1->ptr==usr2->ptr);
1399 lua_pushboolean(L,result);
1400 return 1;
1401}
1402
1403/* -----------------------------------------------------------------------------
1404 * global variable support code: class/struct typemap functions
1405 * ----------------------------------------------------------------------------- */
1406
1407/* Install Constants */
1408SWIGINTERNstatic __attribute__ ((__unused__)) void
1409SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) {
1410 int i;
1411 for (i = 0; constants[i].type; i++) {
1412 switch(constants[i].type) {
1413 case SWIG_LUA_INT1:
1414 lua_pushstring(L,constants[i].name);
1415 lua_pushnumber(L,(lua_Number)constants[i].lvalue);
1416 lua_rawset(L,-3);
1417 break;
1418 case SWIG_LUA_FLOAT2:
1419 lua_pushstring(L,constants[i].name);
1420 lua_pushnumber(L,(lua_Number)constants[i].dvalue);
1421 lua_rawset(L,-3);
1422 break;
1423 case SWIG_LUA_CHAR6:
1424 lua_pushstring(L,constants[i].name);
1425 lua_pushfstring(L,"%c",(char)constants[i].lvalue);
1426 lua_rawset(L,-3);
1427 break;
1428 case SWIG_LUA_STRING3:
1429 lua_pushstring(L,constants[i].name);
1430 lua_pushstring(L,(char *) constants[i].pvalue);
1431 lua_rawset(L,-3);
1432 break;
1433 case SWIG_LUA_POINTER4:
1434 lua_pushstring(L,constants[i].name);
1435 SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Lua_NewPointerObj(L, (void *)constants[i].pvalue, *(constants
[i]).ptype, 0)
;
1436 lua_rawset(L,-3);
1437 break;
1438 case SWIG_LUA_BINARY5:
1439 lua_pushstring(L,constants[i].name);
1440 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype)SWIG_Lua_NewPackedObj(L, constants[i].pvalue, constants[i].lvalue
, *(constants[i]).ptype)
;
1441 lua_rawset(L,-3);
1442 break;
1443 default:
1444 break;
1445 }
1446 }
1447}
1448
1449/* -----------------------------------------------------------------------------
1450 * executing lua code from within the wrapper
1451 * ----------------------------------------------------------------------------- */
1452
1453#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */
1454#define SWIG_DOSTRING_FAIL(S)fprintf(stderr,"%s\n",S) fprintf(stderrstderr,"%s\n",S)
1455#endif
1456/* Executes a C string in Lua a really simple way of calling lua from C
1457Unfortunately lua keeps changing its API's, so we need a conditional compile
1458In lua 5.0.X its lua_dostring()
1459In lua 5.1.X its luaL_dostring()
1460*/
1461SWIGINTERNstatic __attribute__ ((__unused__)) int
1462SWIG_Lua_dostring(lua_State *L, const char* str) {
1463 int ok,top;
1464 if (str==0 || str[0]==0) return 0; /* nothing to do */
1465 top=lua_gettop(L); /* save stack */
1466#if (defined(LUA_VERSION_NUM502) && (LUA_VERSION_NUM502>=501))
1467 ok=luaL_dostring(L,str)(luaL_loadstring(L, str) || lua_pcallk(L, (0), ((-1)), (0), 0
, __null))
; /* looks like this is lua 5.1.X or later, good */
1468#else
1469 ok=lua_dostring(L,str); /* might be lua 5.0.x, using lua_dostring */
1470#endif
1471 if (ok!=0) {
1472 SWIG_DOSTRING_FAIL(lua_tostring(L,-1))fprintf(stderr,"%s\n",lua_tolstring(L, (-1), __null));
1473 }
1474 lua_settop(L,top); /* restore the stack */
1475 return ok;
1476}
1477
1478#ifdef __cplusplus199711L
1479}
1480#endif
1481
1482/* ------------------------------ end luarun.swg ------------------------------ */
1483
1484
1485/* -------- TYPES TABLE (BEGIN) -------- */
1486
1487#define SWIGTYPE_p_APIswig_types[0] swig_types[0]
1488#define SWIGTYPE_p_CoreSessionswig_types[1] swig_types[1]
1489#define SWIGTYPE_p_DTMFswig_types[2] swig_types[2]
1490#define SWIGTYPE_p_Eventswig_types[3] swig_types[3]
1491#define SWIGTYPE_p_EventConsumerswig_types[4] swig_types[4]
1492#define SWIGTYPE_p_IVRMenuswig_types[5] swig_types[5]
1493#define SWIGTYPE_p_LUA__Dbhswig_types[6] swig_types[6]
1494#define SWIGTYPE_p_LUA__Sessionswig_types[7] swig_types[7]
1495#define SWIGTYPE_p_SWIGLUA_FNswig_types[8] swig_types[8]
1496#define SWIGTYPE_p_Streamswig_types[9] swig_types[9]
1497#define SWIGTYPE_p_input_callback_stateswig_types[10] swig_types[10]
1498#define SWIGTYPE_p_intswig_types[11] swig_types[11]
1499#define SWIGTYPE_p_lua_Stateswig_types[12] swig_types[12]
1500#define SWIGTYPE_p_p_switch_event_node_tswig_types[13] swig_types[13]
1501#define SWIGTYPE_p_session_flag_tswig_types[14] swig_types[14]
1502#define SWIGTYPE_p_switch_call_cause_tswig_types[15] swig_types[15]
1503#define SWIGTYPE_p_switch_channel_state_tswig_types[16] swig_types[16]
1504#define SWIGTYPE_p_switch_channel_tswig_types[17] swig_types[17]
1505#define SWIGTYPE_p_switch_core_session_tswig_types[18] swig_types[18]
1506#define SWIGTYPE_p_switch_event_tswig_types[19] swig_types[19]
1507#define SWIGTYPE_p_switch_event_types_tswig_types[20] swig_types[20]
1508#define SWIGTYPE_p_switch_input_args_tswig_types[21] swig_types[21]
1509#define SWIGTYPE_p_switch_input_type_tswig_types[22] swig_types[22]
1510#define SWIGTYPE_p_switch_priority_tswig_types[23] swig_types[23]
1511#define SWIGTYPE_p_switch_queue_tswig_types[24] swig_types[24]
1512#define SWIGTYPE_p_switch_state_handler_table_tswig_types[25] swig_types[25]
1513#define SWIGTYPE_p_switch_status_tswig_types[26] swig_types[26]
1514#define SWIGTYPE_p_switch_stream_handle_tswig_types[27] swig_types[27]
1515#define SWIGTYPE_p_uint32_tswig_types[28] swig_types[28]
1516#define SWIGTYPE_p_voidswig_types[29] swig_types[29]
1517static swig_type_info *swig_types[31];
1518static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0};
1519#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1520#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1521
1522/* -------- TYPES TABLE (END) -------- */
1523
1524#define SWIG_name"freeswitch" "freeswitch"
1525#define SWIG_initluaopen_freeswitch luaopen_freeswitch
1526#define SWIG_init_userluaopen_freeswitch_user luaopen_freeswitch_user
1527
1528#define SWIG_LUACODEluaopen_freeswitch_luacode luaopen_freeswitch_luacode
1529
1530
1531namespace swig {
1532typedef struct{} LANGUAGE_OBJ;
1533}
1534
1535
1536#include "switch.h"
1537#include "switch_cpp.h"
1538#include "freeswitch_lua.h"
1539
1540
1541#ifdef __cplusplus199711L /* generic alloc/dealloc fns*/
1542#define SWIG_ALLOC_ARRAY(TYPE,LEN)new TYPE[LEN] new TYPE[LEN]
1543#define SWIG_FREE_ARRAY(PTR)delete[] PTR; delete[] PTR;
1544#else
1545#define SWIG_ALLOC_ARRAY(TYPE,LEN)new TYPE[LEN] (TYPE *)malloc(LEN*sizeof(TYPE))
1546#define SWIG_FREE_ARRAY(PTR)delete[] PTR; free(PTR);
1547#endif
1548/* counting the size of arrays:*/
1549int SWIG_itable_size(lua_State* L, int index)
1550{
1551 int n=0;
1552 while(1){
1553 lua_rawgeti(L,index,n+1);
1554 if (lua_isnil(L,-1)(lua_type(L, (-1)) == 0))break;
1555 ++n;
1556 lua_pop(L,1)lua_settop(L, -(1)-1);
1557 }
1558 lua_pop(L,1)lua_settop(L, -(1)-1);
1559 return n;
1560}
1561
1562int SWIG_table_size(lua_State* L, int index)
1563{
1564 int n=0;
1565 lua_pushnil(L); /* first key*/
1566 while (lua_next(L, index) != 0) {
1567 ++n;
1568 lua_pop(L, 1)lua_settop(L, -(1)-1); /* removes `value'; keeps `key' for next iteration*/
1569 }
1570 return n;
1571}
1572
1573/* super macro to declare array typemap helper fns */
1574#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)int SWIG_read_NAME_num_array(lua_State* L,int index,TYPE *array
,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (TYPE)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static TYPE* SWIG_get_NAME_num_array_fixed
(lua_State* L, int index, int size){ TYPE *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
TYPE[size]; if (!SWIG_read_NAME_num_array(L,index,array,size
)){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } static TYPE* SWIG_get_NAME_num_array_var
(lua_State* L, int index, int* size) { TYPE *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new TYPE[*
size]; if (!SWIG_read_NAME_num_array(L,index,array,*size)){ lua_pushstring
(L,"table must contain numbers"); delete[] array;; return 0; }
return array; } void SWIG_write_NAME_num_array(lua_State* L,
TYPE *array,int size){ int i; lua_createtable(L, 0, 0); for (
i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number)array[
i]); lua_rawseti(L,-2,i+1); } }
\
1575 int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\
1576 int i;\
1577 for (i = 0; i < size; i++) {\
1578 lua_rawgeti(L,index,i+1);\
1579 if (lua_isnumber(L,-1)){\
1580 array[i] = (TYPE)lua_tonumber(L,-1)lua_tonumberx(L,-1,__null);\
1581 } else {\
1582 lua_pop(L,1)lua_settop(L, -(1)-1);\
1583 return 0;\
1584 }\
1585 lua_pop(L,1)lua_settop(L, -(1)-1);\
1586 }\
1587 return 1;\
1588 }\
1589 static TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\
1590 TYPE *array;\
1591 if (!lua_istable(L,index)(lua_type(L, (index)) == 5) || SWIG_itable_size(L,index) != size) {\
1592 lua_pushfstring(L,"expected a table of size %d",size);\
1593 return 0;\
1594 }\
1595 array=SWIG_ALLOC_ARRAY(TYPE,size)new TYPE[size];\
1596 if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\
1597 lua_pushstring(L,"table must contain numbers");\
1598 SWIG_FREE_ARRAY(array)delete[] array;;\
1599 return 0;\
1600 }\
1601 return array;\
1602 }\
1603 static TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\
1604 {\
1605 TYPE *array;\
1606 if (!lua_istable(L,index)(lua_type(L, (index)) == 5)) {\
1607 lua_pushstring(L,"expected a table");\
1608 return 0;\
1609 }\
1610 *size=SWIG_itable_size(L,index);\
1611 if (*size<1){\
1612 lua_pushstring(L,"table appears to be empty");\
1613 return 0;\
1614 }\
1615 array=SWIG_ALLOC_ARRAY(TYPE,*size)new TYPE[*size];\
1616 if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\
1617 lua_pushstring(L,"table must contain numbers");\
1618 SWIG_FREE_ARRAY(array)delete[] array;;\
1619 return 0;\
1620 }\
1621 return array;\
1622 }\
1623 void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\
1624 int i;\
1625 lua_newtable(L)lua_createtable(L, 0, 0);\
1626 for (i = 0; i < size; i++){\
1627 lua_pushnumber(L,(lua_Number)array[i]);\
1628 lua_rawseti(L,-2,i+1);/* -1 is the number, -2 is the table*/ \
1629 }\
1630 }
1631
1632SWIG_DECLARE_TYPEMAP_ARR_FN(int,int)int SWIG_read_int_num_array(lua_State* L,int index,int *array
,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (int)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static int* SWIG_get_int_num_array_fixed
(lua_State* L, int index, int size){ int *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
int[size]; if (!SWIG_read_int_num_array(L,index,array,size))
{ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } static int* SWIG_get_int_num_array_var
(lua_State* L, int index, int* size) { int *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new int[*size
]; if (!SWIG_read_int_num_array(L,index,array,*size)){ lua_pushstring
(L,"table must contain numbers"); delete[] array;; return 0; }
return array; } void SWIG_write_int_num_array(lua_State* L,int
*array,int size){ int i; lua_createtable(L, 0, 0); for (i = 0
; i < size; i++){ lua_pushnumber(L,(lua_Number)array[i]); lua_rawseti
(L,-2,i+1); } }
;
1633SWIG_DECLARE_TYPEMAP_ARR_FN(uint,unsigned int)int SWIG_read_uint_num_array(lua_State* L,int index,unsigned int
*array,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (unsigned int
)lua_tonumberx(L,-1,__null); } else { lua_settop(L, -(1)-1); return
0; } lua_settop(L, -(1)-1); } return 1; } static unsigned int
* SWIG_get_uint_num_array_fixed(lua_State* L, int index, int size
){ unsigned int *array; if (!(lua_type(L, (index)) == 5) || SWIG_itable_size
(L,index) != size) { lua_pushfstring(L,"expected a table of size %d"
,size); return 0; } array=new unsigned int[size]; if (!SWIG_read_uint_num_array
(L,index,array,size)){ lua_pushstring(L,"table must contain numbers"
); delete[] array;; return 0; } return array; } static unsigned
int* SWIG_get_uint_num_array_var(lua_State* L, int index, int
* size) { unsigned int *array; if (!(lua_type(L, (index)) == 5
)) { lua_pushstring(L,"expected a table"); return 0; } *size=
SWIG_itable_size(L,index); if (*size<1){ lua_pushstring(L,
"table appears to be empty"); return 0; } array=new unsigned int
[*size]; if (!SWIG_read_uint_num_array(L,index,array,*size)){
lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } void SWIG_write_uint_num_array
(lua_State* L,unsigned int *array,int size){ int i; lua_createtable
(L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1634SWIG_DECLARE_TYPEMAP_ARR_FN(short,short)int SWIG_read_short_num_array(lua_State* L,int index,short *array
,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (short)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static short* SWIG_get_short_num_array_fixed
(lua_State* L, int index, int size){ short *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
short[size]; if (!SWIG_read_short_num_array(L,index,array,size
)){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } static short* SWIG_get_short_num_array_var
(lua_State* L, int index, int* size) { short *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new short[
*size]; if (!SWIG_read_short_num_array(L,index,array,*size)){
lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } void SWIG_write_short_num_array
(lua_State* L,short *array,int size){ int i; lua_createtable(
L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1635SWIG_DECLARE_TYPEMAP_ARR_FN(ushort,unsigned short)int SWIG_read_ushort_num_array(lua_State* L,int index,unsigned
short *array,int size){ int i; for (i = 0; i < size; i++)
{ lua_rawgeti(L,index,i+1); if (lua_isnumber(L,-1)){ array[i
] = (unsigned short)lua_tonumberx(L,-1,__null); } else { lua_settop
(L, -(1)-1); return 0; } lua_settop(L, -(1)-1); } return 1; }
static unsigned short* SWIG_get_ushort_num_array_fixed(lua_State
* L, int index, int size){ unsigned short *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
unsigned short[size]; if (!SWIG_read_ushort_num_array(L,index
,array,size)){ lua_pushstring(L,"table must contain numbers")
; delete[] array;; return 0; } return array; } static unsigned
short* SWIG_get_ushort_num_array_var(lua_State* L, int index
, int* size) { unsigned short *array; if (!(lua_type(L, (index
)) == 5)) { lua_pushstring(L,"expected a table"); return 0; }
*size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new unsigned
short[*size]; if (!SWIG_read_ushort_num_array(L,index,array,
*size)){ lua_pushstring(L,"table must contain numbers"); delete
[] array;; return 0; } return array; } void SWIG_write_ushort_num_array
(lua_State* L,unsigned short *array,int size){ int i; lua_createtable
(L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1636SWIG_DECLARE_TYPEMAP_ARR_FN(long,long)int SWIG_read_long_num_array(lua_State* L,int index,long *array
,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (long)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static long* SWIG_get_long_num_array_fixed
(lua_State* L, int index, int size){ long *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
long[size]; if (!SWIG_read_long_num_array(L,index,array,size
)){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } static long* SWIG_get_long_num_array_var
(lua_State* L, int index, int* size) { long *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new long[*
size]; if (!SWIG_read_long_num_array(L,index,array,*size)){ lua_pushstring
(L,"table must contain numbers"); delete[] array;; return 0; }
return array; } void SWIG_write_long_num_array(lua_State* L,
long *array,int size){ int i; lua_createtable(L, 0, 0); for (
i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number)array[
i]); lua_rawseti(L,-2,i+1); } }
;
1637SWIG_DECLARE_TYPEMAP_ARR_FN(ulong,unsigned long)int SWIG_read_ulong_num_array(lua_State* L,int index,unsigned
long *array,int size){ int i; for (i = 0; i < size; i++) {
lua_rawgeti(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] =
(unsigned long)lua_tonumberx(L,-1,__null); } else { lua_settop
(L, -(1)-1); return 0; } lua_settop(L, -(1)-1); } return 1; }
static unsigned long* SWIG_get_ulong_num_array_fixed(lua_State
* L, int index, int size){ unsigned long *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
unsigned long[size]; if (!SWIG_read_ulong_num_array(L,index,
array,size)){ lua_pushstring(L,"table must contain numbers");
delete[] array;; return 0; } return array; } static unsigned
long* SWIG_get_ulong_num_array_var(lua_State* L, int index, int
* size) { unsigned long *array; if (!(lua_type(L, (index)) ==
5)) { lua_pushstring(L,"expected a table"); return 0; } *size
=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring(L
,"table appears to be empty"); return 0; } array=new unsigned
long[*size]; if (!SWIG_read_ulong_num_array(L,index,array,*size
)){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } void SWIG_write_ulong_num_array
(lua_State* L,unsigned long *array,int size){ int i; lua_createtable
(L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1638SWIG_DECLARE_TYPEMAP_ARR_FN(float,float)int SWIG_read_float_num_array(lua_State* L,int index,float *array
,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (float)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static float* SWIG_get_float_num_array_fixed
(lua_State* L, int index, int size){ float *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
float[size]; if (!SWIG_read_float_num_array(L,index,array,size
)){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } static float* SWIG_get_float_num_array_var
(lua_State* L, int index, int* size) { float *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new float[
*size]; if (!SWIG_read_float_num_array(L,index,array,*size)){
lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } void SWIG_write_float_num_array
(lua_State* L,float *array,int size){ int i; lua_createtable(
L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1639SWIG_DECLARE_TYPEMAP_ARR_FN(double,double)int SWIG_read_double_num_array(lua_State* L,int index,double *
array,int size){ int i; for (i = 0; i < size; i++) { lua_rawgeti
(L,index,i+1); if (lua_isnumber(L,-1)){ array[i] = (double)lua_tonumberx
(L,-1,__null); } else { lua_settop(L, -(1)-1); return 0; } lua_settop
(L, -(1)-1); } return 1; } static double* SWIG_get_double_num_array_fixed
(lua_State* L, int index, int size){ double *array; if (!(lua_type
(L, (index)) == 5) || SWIG_itable_size(L,index) != size) { lua_pushfstring
(L,"expected a table of size %d",size); return 0; } array=new
double[size]; if (!SWIG_read_double_num_array(L,index,array,
size)){ lua_pushstring(L,"table must contain numbers"); delete
[] array;; return 0; } return array; } static double* SWIG_get_double_num_array_var
(lua_State* L, int index, int* size) { double *array; if (!(lua_type
(L, (index)) == 5)) { lua_pushstring(L,"expected a table"); return
0; } *size=SWIG_itable_size(L,index); if (*size<1){ lua_pushstring
(L,"table appears to be empty"); return 0; } array=new double
[*size]; if (!SWIG_read_double_num_array(L,index,array,*size)
){ lua_pushstring(L,"table must contain numbers"); delete[] array
;; return 0; } return array; } void SWIG_write_double_num_array
(lua_State* L,double *array,int size){ int i; lua_createtable
(L, 0, 0); for (i = 0; i < size; i++){ lua_pushnumber(L,(lua_Number
)array[i]); lua_rawseti(L,-2,i+1); } }
;
1640
1641int SWIG_read_ptr_array(lua_State* L,int index,void **array,int size,swig_type_info *type){
1642 int i;
1643 for (i = 0; i < size; i++) {
1644 lua_rawgeti(L,index,i+1);
1645 if (!lua_isuserdata(L,-1) || SWIG_ConvertPtr(L,-1,&array[i],type,0)SWIG_Lua_ConvertPtr(L,-1,&array[i],type,0)==-1){
1646 lua_pop(L,1)lua_settop(L, -(1)-1);
1647 return 0;
1648 }
1649 lua_pop(L,1)lua_settop(L, -(1)-1);
1650 }
1651 return 1;
1652}
1653static void** SWIG_get_ptr_array_fixed(lua_State* L, int index, int size,swig_type_info *type){
1654 void **array;
1655 if (!lua_istable(L,index)(lua_type(L, (index)) == 5) || SWIG_itable_size(L,index) != size) {
1656 lua_pushfstring(L,"expected a table of size %d",size);
1657 return 0;
1658 }
1659 array=SWIG_ALLOC_ARRAY(void*,size)new void*[size];
1660 if (!SWIG_read_ptr_array(L,index,array,size,type)){
1661 lua_pushfstring(L,"table must contain pointers of type %s",type->name);
1662 SWIG_FREE_ARRAY(array)delete[] array;;
1663 return 0;
1664 }
1665 return array;
1666}
1667static void** SWIG_get_ptr_array_var(lua_State* L, int index, int* size,swig_type_info *type){
1668 void **array;
1669 if (!lua_istable(L,index)(lua_type(L, (index)) == 5)) {
1670 lua_pushstring(L,"expected a table");
1671 return 0;
1672 }
1673 *size=SWIG_itable_size(L,index);
1674 if (*size<1){
1675 lua_pushstring(L,"table appears to be empty");
1676 return 0;
1677 }
1678 array=SWIG_ALLOC_ARRAY(void*,*size)new void*[*size];
1679 if (!SWIG_read_ptr_array(L,index,array,*size,type)){
1680 lua_pushfstring(L,"table must contain pointers of type %s",type->name);
1681 SWIG_FREE_ARRAY(array)delete[] array;;
1682 return 0;
1683 }
1684 return array;
1685}
1686void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_type_info *type,int own){
1687 int i;
1688 lua_newtable(L)lua_createtable(L, 0, 0);
1689 for (i = 0; i < size; i++){
1690 SWIG_NewPointerObj(L,array[i],type,own)SWIG_Lua_NewPointerObj(L, (void *)array[i], type, own);
1691 lua_rawseti(L,-2,i+1);/* -1 is the number, -2 is the table*/
1692 }
1693}
1694
1695#ifdef __cplusplus199711L
1696extern "C" {
1697#endif
1698static int _wrap_setGlobalVariable(lua_State* L) {
1699 int SWIG_arg = -1;
1700 char *arg1 = (char *) 0 ;
1701 char *arg2 = (char *) 0 ;
1702
1703 SWIG_check_num_args("setGlobalVariable",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setGlobalVariable"
,2,2,lua_gettop(L)); goto fail;}
1704 if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setGlobalVariable",1,"char *",SWIG_Lua_typename(L,1)); goto
fail;}
;
1705 if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setGlobalVariable",2,"char *",SWIG_Lua_typename(L,2)); goto
fail;}
;
1706 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1707 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
1708 setGlobalVariable(arg1,arg2);
1709 SWIG_arg=0;
1710
1711 return SWIG_arg;
1712
1713 if(0) SWIG_fail{goto fail;};
1714
1715fail:
1716 lua_error(L);
1717 return SWIG_arg;
1718}
1719
1720
1721static int _wrap_getGlobalVariable(lua_State* L) {
1722 int SWIG_arg = -1;
1723 char *arg1 = (char *) 0 ;
1724 char *result = 0 ;
1725
1726 SWIG_check_num_args("getGlobalVariable",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getGlobalVariable"
,1,1,lua_gettop(L)); goto fail;}
1727 if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getGlobalVariable",1,"char *",SWIG_Lua_typename(L,1)); goto
fail;}
;
1728 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1729 result = (char *)getGlobalVariable(arg1);
1730 SWIG_arg=0;
1731 lua_pushstring(L,(const char*)result); SWIG_arg++;
1732 free(result);
1733 return SWIG_arg;
1734
1735 if(0) SWIG_fail{goto fail;};
1736
1737fail:
1738 lua_error(L);
1739 return SWIG_arg;
1740}
1741
1742
1743static int _wrap_consoleLog(lua_State* L) {
1744 int SWIG_arg = -1;
1745 char *arg1 = (char *) 0 ;
1746 char *arg2 = (char *) 0 ;
1747
1748 SWIG_check_num_args("consoleLog",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","consoleLog",2,
2,lua_gettop(L)); goto fail;}
1749 if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog",1,"char *",SWIG_Lua_typename(L,1)); goto fail;
}
;
1750 if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
1751 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1752 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
1753 consoleLog(arg1,arg2);
1754 SWIG_arg=0;
1755
1756 return SWIG_arg;
1757
1758 if(0) SWIG_fail{goto fail;};
1759
1760fail:
1761 lua_error(L);
1762 return SWIG_arg;
1763}
1764
1765
1766static int _wrap_consoleLog2(lua_State* L) {
1767 int SWIG_arg = -1;
1768 char *arg1 = (char *) 0 ;
1769 char *arg2 = (char *) 0 ;
1770 char *arg3 = (char *) 0 ;
1771 int arg4 ;
1772 char *arg5 = (char *) 0 ;
1773
1774 SWIG_check_num_args("consoleLog2",5,5)if (lua_gettop(L)<5 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","consoleLog2",5
,5,lua_gettop(L)); goto fail;}
1775 if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
1776 if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
1777 if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
1778 if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
1779 if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",5,"char *",SWIG_Lua_typename(L,5)); goto fail
;}
;
1780 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1781 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
1782 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
1783 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
1784 arg5 = (char *)lua_tostring(L, 5)lua_tolstring(L, (5), __null);
1785 consoleLog2(arg1,arg2,arg3,arg4,arg5);
1786 SWIG_arg=0;
1787
1788 return SWIG_arg;
1789
1790 if(0) SWIG_fail{goto fail;};
1791
1792fail:
1793 lua_error(L);
1794 return SWIG_arg;
1795}
1796
1797
1798static int _wrap_consoleCleanLog(lua_State* L) {
1799 int SWIG_arg = -1;
1800 char *arg1 = (char *) 0 ;
1801
1802 SWIG_check_num_args("consoleCleanLog",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","consoleCleanLog"
,1,1,lua_gettop(L)); goto fail;}
1803 if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleCleanLog",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
1804 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1805 consoleCleanLog(arg1);
1806 SWIG_arg=0;
1807
1808 return SWIG_arg;
1809
1810 if(0) SWIG_fail{goto fail;};
1811
1812fail:
1813 lua_error(L);
1814 return SWIG_arg;
1815}
1816
1817
1818static int _wrap_running(lua_State* L) {
1819 int SWIG_arg = -1;
1820 bool result;
1821
1822 SWIG_check_num_args("running",0,0)if (lua_gettop(L)<0 || lua_gettop(L)>0) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","running",0,0,lua_gettop
(L)); goto fail;}
1823 result = (bool)running();
1824 SWIG_arg=0;
1825 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
1826 return SWIG_arg;
1827
1828 if(0) SWIG_fail{goto fail;};
1829
1830fail:
1831 lua_error(L);
1832 return SWIG_arg;
1833}
1834
1835
1836static int _wrap_email(lua_State* L) {
1837 int SWIG_arg = -1;
1838 char *arg1 = (char *) 0 ;
1839 char *arg2 = (char *) 0 ;
1840 char *arg3 = (char *) NULL__null ;
1841 char *arg4 = (char *) NULL__null ;
1842 char *arg5 = (char *) NULL__null ;
1843 char *arg6 = (char *) NULL__null ;
1844 char *arg7 = (char *) NULL__null ;
1845 bool result;
1846
1847 SWIG_check_num_args("email",2,7)if (lua_gettop(L)<2 || lua_gettop(L)>7) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","email",2,7,lua_gettop
(L)); goto fail;}
1848 if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",1,"char *",SWIG_Lua_typename(L,1)); goto fail;}
;
1849 if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
1850 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
1851 if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",4,"char *",SWIG_Lua_typename(L,4)); goto fail;}
;
1852 if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",5,"char *",SWIG_Lua_typename(L,5)); goto fail;}
;
1853 if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",6,"char *",SWIG_Lua_typename(L,6)); goto fail;}
;
1854 if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "email",7,"char *",SWIG_Lua_typename(L,7)); goto fail;}
;
1855 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
1856 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
1857 if(lua_gettop(L)>=3){
1858 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
1859 }
1860 if(lua_gettop(L)>=4){
1861 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
1862 }
1863 if(lua_gettop(L)>=5){
1864 arg5 = (char *)lua_tostring(L, 5)lua_tolstring(L, (5), __null);
1865 }
1866 if(lua_gettop(L)>=6){
1867 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
1868 }
1869 if(lua_gettop(L)>=7){
1870 arg7 = (char *)lua_tostring(L, 7)lua_tolstring(L, (7), __null);
1871 }
1872 result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
1873 SWIG_arg=0;
1874 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
1875 return SWIG_arg;
1876
1877 if(0) SWIG_fail{goto fail;};
1878
1879fail:
1880 lua_error(L);
1881 return SWIG_arg;
1882}
1883
1884
1885static int _wrap_new_IVRMenu(lua_State* L) {
1886 int SWIG_arg = -1;
1887 IVRMenu *arg1 = (IVRMenu *) 0 ;
1888 char *arg2 = (char *) 0 ;
1889 char *arg3 = (char *) 0 ;
1890 char *arg4 = (char *) 0 ;
1891 char *arg5 = (char *) 0 ;
1892 char *arg6 = (char *) 0 ;
1893 char *arg7 = (char *) 0 ;
1894 char *arg8 = (char *) 0 ;
1895 char *arg9 = (char *) 0 ;
1896 char *arg10 = (char *) 0 ;
1897 char *arg11 = (char *) 0 ;
1898 int arg12 ;
1899 int arg13 ;
1900 int arg14 ;
1901 int arg15 ;
1902 int arg16 ;
1903 int arg17 ;
1904 IVRMenu *result = 0 ;
1905
1906 SWIG_check_num_args("IVRMenu",17,17)if (lua_gettop(L)<17 || lua_gettop(L)>17) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","IVRMenu",17,17
,lua_gettop(L)); goto fail;}
1907 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",1,"IVRMenu *",SWIG_Lua_typename(L,1)); goto fail;
}
;
1908 if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
1909 if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
1910 if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",4,"char const *",SWIG_Lua_typename(L,4)); goto fail
;}
;
1911 if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",5,"char const *",SWIG_Lua_typename(L,5)); goto fail
;}
;
1912 if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",6,"char const *",SWIG_Lua_typename(L,6)); goto fail
;}
;
1913 if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",7,"char const *",SWIG_Lua_typename(L,7)); goto fail
;}
;
1914 if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",8,"char const *",SWIG_Lua_typename(L,8)); goto fail
;}
;
1915 if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",9,"char const *",SWIG_Lua_typename(L,9)); goto fail
;}
;
1916 if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",10,"char const *",SWIG_Lua_typename(L,10)); goto fail
;}
;
1917 if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",11,"char const *",SWIG_Lua_typename(L,11)); goto fail
;}
;
1918 if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",12,"int",SWIG_Lua_typename(L,12)); goto fail;}
;
1919 if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",13,"int",SWIG_Lua_typename(L,13)); goto fail;}
;
1920 if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",14,"int",SWIG_Lua_typename(L,14)); goto fail;}
;
1921 if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",15,"int",SWIG_Lua_typename(L,15)); goto fail;}
;
1922 if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",16,"int",SWIG_Lua_typename(L,16)); goto fail;}
;
1923 if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",17,"int",SWIG_Lua_typename(L,17)); goto fail;}
;
1924
1925 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[5],0) >=
0)
){
1926 SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_IVRMenu",1,(swig_types[5] && swig_types[5]->
str)?swig_types[5]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
1927 }
1928
1929 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
1930 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
1931 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
1932 arg5 = (char *)lua_tostring(L, 5)lua_tolstring(L, (5), __null);
1933 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
1934 arg7 = (char *)lua_tostring(L, 7)lua_tolstring(L, (7), __null);
1935 arg8 = (char *)lua_tostring(L, 8)lua_tolstring(L, (8), __null);
1936 arg9 = (char *)lua_tostring(L, 9)lua_tolstring(L, (9), __null);
1937 arg10 = (char *)lua_tostring(L, 10)lua_tolstring(L, (10), __null);
1938 arg11 = (char *)lua_tostring(L, 11)lua_tolstring(L, (11), __null);
1939 arg12 = (int)lua_tonumber(L, 12)lua_tonumberx(L,12,__null);
1940 arg13 = (int)lua_tonumber(L, 13)lua_tonumberx(L,13,__null);
1941 arg14 = (int)lua_tonumber(L, 14)lua_tonumberx(L,14,__null);
1942 arg15 = (int)lua_tonumber(L, 15)lua_tonumberx(L,15,__null);
1943 arg16 = (int)lua_tonumber(L, 16)lua_tonumberx(L,16,__null);
1944 arg17 = (int)lua_tonumber(L, 17)lua_tonumberx(L,17,__null);
1945 result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17);
1946 SWIG_arg=0;
1947 SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[5], 1); SWIG_arg++;
1948 return SWIG_arg;
1949
1950 if(0) SWIG_fail{goto fail;};
1951
1952fail:
1953 lua_error(L);
1954 return SWIG_arg;
1955}
1956
1957
1958static int _wrap_delete_IVRMenu(lua_State* L) {
1959 int SWIG_arg = -1;
1960 IVRMenu *arg1 = (IVRMenu *) 0 ;
1961
1962 SWIG_check_num_args("IVRMenu",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","IVRMenu",1,1,lua_gettop
(L)); goto fail;}
1963 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("IVRMenu",1,"IVRMenu *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu",1,"IVRMenu *",SWIG_Lua_typename(L,1)); goto fail;
}
;
1964
1965 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[5],0x1)
>= 0)
){
1966 SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_IVRMenu",1,(swig_types[5] && swig_types[5]->
str)?swig_types[5]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
1967 }
1968
1969 delete arg1;
1970
1971 SWIG_arg=0;
1972
1973 return SWIG_arg;
1974
1975 if(0) SWIG_fail{goto fail;};
1976
1977fail:
1978 lua_error(L);
1979 return SWIG_arg;
1980}
1981
1982
1983static int _wrap_IVRMenu_bindAction(lua_State* L) {
1984 int SWIG_arg = -1;
1985 IVRMenu *arg1 = (IVRMenu *) 0 ;
1986 char *arg2 = (char *) 0 ;
1987 char *arg3 = (char *) 0 ;
1988 char *arg4 = (char *) 0 ;
1989
1990 SWIG_check_num_args("bindAction",4,4)if (lua_gettop(L)<4 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","bindAction",4,
4,lua_gettop(L)); goto fail;}
1991 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("bindAction",1,"IVRMenu *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bindAction",1,"IVRMenu *",SWIG_Lua_typename(L,1)); goto fail
;}
;
1992 if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bindAction",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
1993 if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bindAction",3,"char const *",SWIG_Lua_typename(L,3)); goto
fail;}
;
1994 if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bindAction",4,"char const *",SWIG_Lua_typename(L,4)); goto
fail;}
;
1995
1996 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[5],0) >=
0)
){
1997 SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu_bindAction",1,(swig_types[5] && swig_types
[5]->str)?swig_types[5]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
1998 }
1999
2000 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2001 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
2002 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
2003 (arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4);
2004 SWIG_arg=0;
2005
2006 return SWIG_arg;
2007
2008 if(0) SWIG_fail{goto fail;};
2009
2010fail:
2011 lua_error(L);
2012 return SWIG_arg;
2013}
2014
2015
2016static int _wrap_IVRMenu_execute(lua_State* L) {
2017 int SWIG_arg = -1;
2018 IVRMenu *arg1 = (IVRMenu *) 0 ;
2019 CoreSession *arg2 = (CoreSession *) 0 ;
2020 char *arg3 = (char *) 0 ;
2021
2022 SWIG_check_num_args("execute",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","execute",3,3,lua_gettop
(L)); goto fail;}
2023 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("execute",1,"IVRMenu *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",1,"IVRMenu *",SWIG_Lua_typename(L,1)); goto fail;
}
;
2024 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("execute",2,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",2,"CoreSession *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2025 if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
2026
2027 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[5],0) >=
0)
){
2028 SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu_execute",1,(swig_types[5] && swig_types[5]
->str)?swig_types[5]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
2029 }
2030
2031
2032 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
2033 SWIG_fail_ptr("IVRMenu_execute",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "IVRMenu_execute",2,(swig_types[1] && swig_types[1]
->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L,2
)); goto fail;}
;
2034 }
2035
2036 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
2037 (arg1)->execute(arg2,(char const *)arg3);
2038 SWIG_arg=0;
2039
2040 return SWIG_arg;
2041
2042 if(0) SWIG_fail{goto fail;};
2043
2044fail:
2045 lua_error(L);
2046 return SWIG_arg;
2047}
2048
2049
2050static void swig_delete_IVRMenu(void *obj) {
2051IVRMenu *arg1 = (IVRMenu *) obj;
2052delete arg1;
2053}
2054static swig_lua_method swig_IVRMenu_methods[] = {
2055 {"bindAction", _wrap_IVRMenu_bindAction},
2056 {"execute", _wrap_IVRMenu_execute},
2057 {0,0}
2058};
2059static swig_lua_attribute swig_IVRMenu_attributes[] = {
2060 {0,0,0}
2061};
2062static swig_lua_class *swig_IVRMenu_bases[] = {0};
2063static const char *swig_IVRMenu_base_names[] = {0};
2064static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenuswig_types[5],_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names };
2065
2066static int _wrap_new_API(lua_State* L) {
2067 int SWIG_arg = -1;
2068 CoreSession *arg1 = (CoreSession *) NULL__null ;
2069 API *result = 0 ;
2070
2071 SWIG_check_num_args("API",0,1)if (lua_gettop(L)<0 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","API",0,1,lua_gettop
(L)); goto fail;}
2072 if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("API",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "API",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail;
}
;
2073 if(lua_gettop(L)>=1){
2074 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
2075 SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_API",1,(swig_types[1] && swig_types[1]->str
)?swig_types[1]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2076 }
2077 }
2078 result = (API *)new API(arg1);
2079 SWIG_arg=0;
2080 SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[0], 1); SWIG_arg++;
2081 return SWIG_arg;
2082
2083 if(0) SWIG_fail{goto fail;};
2084
2085fail:
2086 lua_error(L);
2087 return SWIG_arg;
2088}
2089
2090
2091static int _wrap_delete_API(lua_State* L) {
2092 int SWIG_arg = -1;
2093 API *arg1 = (API *) 0 ;
2094
2095 SWIG_check_num_args("API",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","API",1,1,lua_gettop
(L)); goto fail;}
2096 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("API",1,"API *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "API",1,"API *",SWIG_Lua_typename(L,1)); goto fail;}
;
2097
2098 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[0],0x1)
>= 0)
){
2099 SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_API",1,(swig_types[0] && swig_types[0]->
str)?swig_types[0]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2100 }
2101
2102 delete arg1;
2103
2104 SWIG_arg=0;
2105
2106 return SWIG_arg;
2107
2108 if(0) SWIG_fail{goto fail;};
2109
2110fail:
2111 lua_error(L);
2112 return SWIG_arg;
2113}
2114
2115
2116static int _wrap_API_execute(lua_State* L) {
2117 int SWIG_arg = -1;
2118 API *arg1 = (API *) 0 ;
2119 char *arg2 = (char *) 0 ;
2120 char *arg3 = (char *) NULL__null ;
2121 char *result = 0 ;
2122
2123 SWIG_check_num_args("execute",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","execute",2,3,lua_gettop
(L)); goto fail;}
2124 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("execute",1,"API *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",1,"API *",SWIG_Lua_typename(L,1)); goto fail;}
;
2125 if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2126 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
2127
2128 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[0],0) >=
0)
){
2129 SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "API_execute",1,(swig_types[0] && swig_types[0]->
str)?swig_types[0]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2130 }
2131
2132 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2133 if(lua_gettop(L)>=3){
2134 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
2135 }
2136 result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3);
2137 SWIG_arg=0;
2138 lua_pushstring(L,(const char*)result); SWIG_arg++;
2139 free(result);
2140 return SWIG_arg;
2141
2142 if(0) SWIG_fail{goto fail;};
2143
2144fail:
2145 lua_error(L);
2146 return SWIG_arg;
2147}
2148
2149
2150static int _wrap_API_executeString(lua_State* L) {
2151 int SWIG_arg = -1;
2152 API *arg1 = (API *) 0 ;
2153 char *arg2 = (char *) 0 ;
2154 char *result = 0 ;
2155
2156 SWIG_check_num_args("executeString",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","executeString"
,2,2,lua_gettop(L)); goto fail;}
2157 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("executeString",1,"API *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "executeString",1,"API *",SWIG_Lua_typename(L,1)); goto fail
;}
;
2158 if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "executeString",2,"char const *",SWIG_Lua_typename(L,2)); goto
fail;}
;
2159
2160 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[0],0) >=
0)
){
2161 SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "API_executeString",1,(swig_types[0] && swig_types[
0]->str)?swig_types[0]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
2162 }
2163
2164 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2165 result = (char *)(arg1)->executeString((char const *)arg2);
2166 SWIG_arg=0;
2167 lua_pushstring(L,(const char*)result); SWIG_arg++;
2168 free(result);
2169 return SWIG_arg;
2170
2171 if(0) SWIG_fail{goto fail;};
2172
2173fail:
2174 lua_error(L);
2175 return SWIG_arg;
2176}
2177
2178
2179static int _wrap_API_getTime(lua_State* L) {
2180 int SWIG_arg = -1;
2181 API *arg1 = (API *) 0 ;
2182 char *result = 0 ;
2183
2184 SWIG_check_num_args("getTime",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getTime",1,1,lua_gettop
(L)); goto fail;}
2185 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getTime",1,"API *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getTime",1,"API *",SWIG_Lua_typename(L,1)); goto fail;}
;
2186
2187 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[0],0) >=
0)
){
2188 SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "API_getTime",1,(swig_types[0] && swig_types[0]->
str)?swig_types[0]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2189 }
2190
2191 result = (char *)(arg1)->getTime();
2192 SWIG_arg=0;
2193 lua_pushstring(L,(const char*)result); SWIG_arg++;
2194 return SWIG_arg;
2195
2196 if(0) SWIG_fail{goto fail;};
2197
2198fail:
2199 lua_error(L);
2200 return SWIG_arg;
2201}
2202
2203
2204static void swig_delete_API(void *obj) {
2205API *arg1 = (API *) obj;
2206delete arg1;
2207}
2208static swig_lua_method swig_API_methods[] = {
2209 {"execute", _wrap_API_execute},
2210 {"executeString", _wrap_API_executeString},
2211 {"getTime", _wrap_API_getTime},
2212 {0,0}
2213};
2214static swig_lua_attribute swig_API_attributes[] = {
2215 {0,0,0}
2216};
2217static swig_lua_class *swig_API_bases[] = {0};
2218static const char *swig_API_base_names[] = {0};
2219static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_APIswig_types[0],_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names };
2220
2221static int _wrap_input_callback_state_t_function_set(lua_State* L) {
2222 int SWIG_arg = -1;
2223 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2224 void *arg2 = (void *) 0 ;
2225
2226 SWIG_check_num_args("function",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","function",2,2,
lua_gettop(L)); goto fail;}
2227 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("function",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "function",1,"input_callback_state_t *",SWIG_Lua_typename(L
,1)); goto fail;}
;
2228 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("function",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "function",2,"void *",SWIG_Lua_typename(L,2)); goto fail;}
;
2229
2230 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2231 SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_function_set",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2232 }
2233
2234 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"input_callback_state_t_function_set"
)
;
2235 if (arg1) (arg1)->function = arg2;
2236
2237 SWIG_arg=0;
2238
2239 return SWIG_arg;
2240
2241 if(0) SWIG_fail{goto fail;};
2242
2243fail:
2244 lua_error(L);
2245 return SWIG_arg;
2246}
2247
2248
2249static int _wrap_input_callback_state_t_function_get(lua_State* L) {
2250 int SWIG_arg = -1;
2251 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2252 void *result = 0 ;
2253
2254 SWIG_check_num_args("function",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","function",1,1,
lua_gettop(L)); goto fail;}
2255 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("function",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "function",1,"input_callback_state_t *",SWIG_Lua_typename(L
,1)); goto fail;}
;
2256
2257 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2258 SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_function_get",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2259 }
2260
2261 result = (void *) ((arg1)->function);
2262 SWIG_arg=0;
2263 SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[29], 0); SWIG_arg++;
2264 return SWIG_arg;
2265
2266 if(0) SWIG_fail{goto fail;};
2267
2268fail:
2269 lua_error(L);
2270 return SWIG_arg;
2271}
2272
2273
2274static int _wrap_input_callback_state_t_threadState_set(lua_State* L) {
2275 int SWIG_arg = -1;
2276 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2277 void *arg2 = (void *) 0 ;
2278
2279 SWIG_check_num_args("threadState",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","threadState",2
,2,lua_gettop(L)); goto fail;}
2280 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("threadState",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "threadState",1,"input_callback_state_t *",SWIG_Lua_typename
(L,1)); goto fail;}
;
2281 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("threadState",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "threadState",2,"void *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2282
2283 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2284 SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_threadState_set",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2285 }
2286
2287 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"input_callback_state_t_threadState_set"
)
;
2288 if (arg1) (arg1)->threadState = arg2;
2289
2290 SWIG_arg=0;
2291
2292 return SWIG_arg;
2293
2294 if(0) SWIG_fail{goto fail;};
2295
2296fail:
2297 lua_error(L);
2298 return SWIG_arg;
2299}
2300
2301
2302static int _wrap_input_callback_state_t_threadState_get(lua_State* L) {
2303 int SWIG_arg = -1;
2304 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2305 void *result = 0 ;
2306
2307 SWIG_check_num_args("threadState",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","threadState",1
,1,lua_gettop(L)); goto fail;}
2308 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("threadState",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "threadState",1,"input_callback_state_t *",SWIG_Lua_typename
(L,1)); goto fail;}
;
2309
2310 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2311 SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_threadState_get",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2312 }
2313
2314 result = (void *) ((arg1)->threadState);
2315 SWIG_arg=0;
2316 SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[29], 0); SWIG_arg++;
2317 return SWIG_arg;
2318
2319 if(0) SWIG_fail{goto fail;};
2320
2321fail:
2322 lua_error(L);
2323 return SWIG_arg;
2324}
2325
2326
2327static int _wrap_input_callback_state_t_extra_set(lua_State* L) {
2328 int SWIG_arg = -1;
2329 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2330 void *arg2 = (void *) 0 ;
2331
2332 SWIG_check_num_args("extra",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","extra",2,2,lua_gettop
(L)); goto fail;}
2333 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("extra",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "extra",1,"input_callback_state_t *",SWIG_Lua_typename(L,1)
); goto fail;}
;
2334 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("extra",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "extra",2,"void *",SWIG_Lua_typename(L,2)); goto fail;}
;
2335
2336 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2337 SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_extra_set",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2338 }
2339
2340 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"input_callback_state_t_extra_set"
)
;
2341 if (arg1) (arg1)->extra = arg2;
2342
2343 SWIG_arg=0;
2344
2345 return SWIG_arg;
2346
2347 if(0) SWIG_fail{goto fail;};
2348
2349fail:
2350 lua_error(L);
2351 return SWIG_arg;
2352}
2353
2354
2355static int _wrap_input_callback_state_t_extra_get(lua_State* L) {
2356 int SWIG_arg = -1;
2357 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2358 void *result = 0 ;
2359
2360 SWIG_check_num_args("extra",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","extra",1,1,lua_gettop
(L)); goto fail;}
2361 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("extra",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "extra",1,"input_callback_state_t *",SWIG_Lua_typename(L,1)
); goto fail;}
;
2362
2363 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2364 SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_extra_get",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2365 }
2366
2367 result = (void *) ((arg1)->extra);
2368 SWIG_arg=0;
2369 SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[29], 0); SWIG_arg++;
2370 return SWIG_arg;
2371
2372 if(0) SWIG_fail{goto fail;};
2373
2374fail:
2375 lua_error(L);
2376 return SWIG_arg;
2377}
2378
2379
2380static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) {
2381 int SWIG_arg = -1;
2382 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2383 char *arg2 = (char *) 0 ;
2384
2385 SWIG_check_num_args("funcargs",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","funcargs",2,2,
lua_gettop(L)); goto fail;}
2386 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "funcargs",1,"input_callback_state_t *",SWIG_Lua_typename(L
,1)); goto fail;}
;
2387 if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "funcargs",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
2388
2389 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2390 SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_funcargs_set",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2391 }
2392
2393 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2394 {
2395 if (arg1->funcargs) delete [] arg1->funcargs;
2396 if (arg2) {
2397 arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]);
2398 strcpy((char *)arg1->funcargs, (const char *)arg2);
2399 } else {
2400 arg1->funcargs = 0;
2401 }
2402 }
2403 SWIG_arg=0;
2404
2405 return SWIG_arg;
2406
2407 if(0) SWIG_fail{goto fail;};
2408
2409fail:
2410 lua_error(L);
2411 return SWIG_arg;
2412}
2413
2414
2415static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) {
2416 int SWIG_arg = -1;
2417 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2418 char *result = 0 ;
2419
2420 SWIG_check_num_args("funcargs",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","funcargs",1,1,
lua_gettop(L)); goto fail;}
2421 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("funcargs",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "funcargs",1,"input_callback_state_t *",SWIG_Lua_typename(L
,1)); goto fail;}
;
2422
2423 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0) >=
0)
){
2424 SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t_funcargs_get",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2425 }
2426
2427 result = (char *) ((arg1)->funcargs);
2428 SWIG_arg=0;
2429 lua_pushstring(L,(const char*)result); SWIG_arg++;
2430 return SWIG_arg;
2431
2432 if(0) SWIG_fail{goto fail;};
2433
2434fail:
2435 lua_error(L);
2436 return SWIG_arg;
2437}
2438
2439
2440static int _wrap_new_input_callback_state_t(lua_State* L) {
2441 int SWIG_arg = -1;
2442 input_callback_state_t *result = 0 ;
2443
2444 SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0)if (lua_gettop(L)<0 || lua_gettop(L)>0) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","input_callback_state_t::input_callback_state_t"
,0,0,lua_gettop(L)); goto fail;}
2445 result = (input_callback_state_t *)new input_callback_state_t();
2446 SWIG_arg=0;
2447 SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[10], 1); SWIG_arg++;
2448 return SWIG_arg;
2449
2450 if(0) SWIG_fail{goto fail;};
2451
2452fail:
2453 lua_error(L);
2454 return SWIG_arg;
2455}
2456
2457
2458static int _wrap_delete_input_callback_state_t(lua_State* L) {
2459 int SWIG_arg = -1;
2460 input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
2461
2462 SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","input_callback_state_t::~input_callback_state_t"
,1,1,lua_gettop(L)); goto fail;}
2463 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *"
,SWIG_Lua_typename(L,1)); goto fail;}
;
2464
2465 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[10],0x1
) >= 0)
){
2466 SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_input_callback_state_t",1,(swig_types[10] &&
swig_types[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
2467 }
2468
2469 delete arg1;
2470
2471 SWIG_arg=0;
2472
2473 return SWIG_arg;
2474
2475 if(0) SWIG_fail{goto fail;};
2476
2477fail:
2478 lua_error(L);
2479 return SWIG_arg;
2480}
2481
2482
2483static void swig_delete_input_callback_state_t(void *obj) {
2484input_callback_state_t *arg1 = (input_callback_state_t *) obj;
2485delete arg1;
2486}
2487static swig_lua_method swig_input_callback_state_t_methods[] = {
2488 {0,0}
2489};
2490static swig_lua_attribute swig_input_callback_state_t_attributes[] = {
2491 { "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set},
2492 { "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set},
2493 { "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set},
2494 { "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set},
2495 {0,0,0}
2496};
2497static swig_lua_class *swig_input_callback_state_t_bases[] = {0};
2498static const char *swig_input_callback_state_t_base_names[] = {0};
2499static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_stateswig_types[10],_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names };
2500
2501static int _wrap_DTMF_digit_set(lua_State* L) {
2502 int SWIG_arg = -1;
2503 DTMF *arg1 = (DTMF *) 0 ;
2504 char arg2 ;
2505
2506 SWIG_check_num_args("digit",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","digit",2,2,lua_gettop
(L)); goto fail;}
2507 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("digit",1,"DTMF *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "digit",1,"DTMF *",SWIG_Lua_typename(L,1)); goto fail;}
;
2508 if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "digit",2,"char",SWIG_Lua_typename(L,2)); goto fail;}
;
2509
2510 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[2],0) >=
0)
){
2511 SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF_digit_set",1,(swig_types[2] && swig_types[2]->
str)?swig_types[2]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2512 }
2513
2514 arg2 = (lua_tostring(L, 2)lua_tolstring(L, (2), __null))[0];
2515 if (arg1) (arg1)->digit = arg2;
2516
2517 SWIG_arg=0;
2518
2519 return SWIG_arg;
2520
2521 if(0) SWIG_fail{goto fail;};
2522
2523fail:
2524 lua_error(L);
2525 return SWIG_arg;
2526}
2527
2528
2529static int _wrap_DTMF_digit_get(lua_State* L) {
2530 int SWIG_arg = -1;
2531 DTMF *arg1 = (DTMF *) 0 ;
2532 char result;
2533
2534 SWIG_check_num_args("digit",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","digit",1,1,lua_gettop
(L)); goto fail;}
2535 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("digit",1,"DTMF *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "digit",1,"DTMF *",SWIG_Lua_typename(L,1)); goto fail;}
;
2536
2537 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[2],0) >=
0)
){
2538 SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF_digit_get",1,(swig_types[2] && swig_types[2]->
str)?swig_types[2]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2539 }
2540
2541 result = (char) ((arg1)->digit);
2542 SWIG_arg=0;
2543 lua_pushfstring(L,"%c",result); SWIG_arg++;
2544 return SWIG_arg;
2545
2546 if(0) SWIG_fail{goto fail;};
2547
2548fail:
2549 lua_error(L);
2550 return SWIG_arg;
2551}
2552
2553
2554static int _wrap_DTMF_duration_set(lua_State* L) {
2555 int SWIG_arg = -1;
2556 DTMF *arg1 = (DTMF *) 0 ;
2557 uint32_t arg2 ;
2558 uint32_t *argp2 ;
2559
2560 SWIG_check_num_args("duration",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","duration",2,2,
lua_gettop(L)); goto fail;}
2561 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("duration",1,"DTMF *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "duration",1,"DTMF *",SWIG_Lua_typename(L,1)); goto fail;}
;
2562 if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "duration",2,"uint32_t",SWIG_Lua_typename(L,2)); goto fail;
}
;
2563
2564 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[2],0) >=
0)
){
2565 SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF_duration_set",1,(swig_types[2] && swig_types[
2]->str)?swig_types[2]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
2566 }
2567
2568
2569 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[28],0)
>= 0)
){
2570 SWIG_fail_ptr("DTMF_duration_set",2,SWIGTYPE_p_uint32_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF_duration_set",2,(swig_types[28] && swig_types
[28]->str)?swig_types[28]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
2571 }
2572 arg2 = *argp2;
2573
2574 if (arg1) (arg1)->duration = arg2;
2575
2576 SWIG_arg=0;
2577
2578 return SWIG_arg;
2579
2580 if(0) SWIG_fail{goto fail;};
2581
2582fail:
2583 lua_error(L);
2584 return SWIG_arg;
2585}
2586
2587
2588static int _wrap_DTMF_duration_get(lua_State* L) {
2589 int SWIG_arg = -1;
2590 DTMF *arg1 = (DTMF *) 0 ;
2591 uint32_t result;
2592
2593 SWIG_check_num_args("duration",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","duration",1,1,
lua_gettop(L)); goto fail;}
2594 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("duration",1,"DTMF *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "duration",1,"DTMF *",SWIG_Lua_typename(L,1)); goto fail;}
;
2595
2596 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[2],0) >=
0)
){
2597 SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF_duration_get",1,(swig_types[2] && swig_types[
2]->str)?swig_types[2]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
2598 }
2599
2600 result = ((arg1)->duration);
2601 SWIG_arg=0;
2602 {
2603 uint32_t * resultptr = new uint32_t((uint32_t &) result);
2604 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[28], 1)
; SWIG_arg++;
2605 }
2606 return SWIG_arg;
2607
2608 if(0) SWIG_fail{goto fail;};
2609
2610fail:
2611 lua_error(L);
2612 return SWIG_arg;
2613}
2614
2615
2616static int _wrap_new_DTMF(lua_State* L) {
2617 int SWIG_arg = -1;
2618 char arg1 ;
2619 uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION2000 ;
2620 DTMF *result = 0 ;
2621 uint32_t *argp2 ;
2622
2623 SWIG_check_num_args("DTMF",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","DTMF",1,2,lua_gettop
(L)); goto fail;}
2624 if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF",1,"char",SWIG_Lua_typename(L,1)); goto fail;}
;
2625 if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF",2,"uint32_t",SWIG_Lua_typename(L,2)); goto fail;}
;
2626 arg1 = (lua_tostring(L, 1)lua_tolstring(L, (1), __null))[0];
2627 if(lua_gettop(L)>=2){
2628 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[28],0)
>= 0)
){
2629 SWIG_fail_ptr("new_DTMF",2,SWIGTYPE_p_uint32_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_DTMF",2,(swig_types[28] && swig_types[28]->
str)?swig_types[28]->str:"void*",SWIG_Lua_typename(L,2)); goto
fail;}
;
2630 }
2631 arg2 = *argp2;
2632 }
2633 result = (DTMF *)new DTMF(arg1,arg2);
2634 SWIG_arg=0;
2635 SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[2], 1); SWIG_arg++;
2636 return SWIG_arg;
2637
2638 if(0) SWIG_fail{goto fail;};
2639
2640fail:
2641 lua_error(L);
2642 return SWIG_arg;
2643}
2644
2645
2646static int _wrap_delete_DTMF(lua_State* L) {
2647 int SWIG_arg = -1;
2648 DTMF *arg1 = (DTMF *) 0 ;
2649
2650 SWIG_check_num_args("DTMF",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","DTMF",1,1,lua_gettop
(L)); goto fail;}
2651 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("DTMF",1,"DTMF *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "DTMF",1,"DTMF *",SWIG_Lua_typename(L,1)); goto fail;}
;
2652
2653 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[2],0x1)
>= 0)
){
2654 SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_DTMF",1,(swig_types[2] && swig_types[2]->
str)?swig_types[2]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2655 }
2656
2657 delete arg1;
2658
2659 SWIG_arg=0;
2660
2661 return SWIG_arg;
2662
2663 if(0) SWIG_fail{goto fail;};
2664
2665fail:
2666 lua_error(L);
2667 return SWIG_arg;
2668}
2669
2670
2671static void swig_delete_DTMF(void *obj) {
2672DTMF *arg1 = (DTMF *) obj;
2673delete arg1;
2674}
2675static swig_lua_method swig_DTMF_methods[] = {
2676 {0,0}
2677};
2678static swig_lua_attribute swig_DTMF_attributes[] = {
2679 { "digit", _wrap_DTMF_digit_get, _wrap_DTMF_digit_set},
2680 { "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set},
2681 {0,0,0}
2682};
2683static swig_lua_class *swig_DTMF_bases[] = {0};
2684static const char *swig_DTMF_base_names[] = {0};
2685static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMFswig_types[2],_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names };
2686
2687static int _wrap_new_Stream__SWIG_0(lua_State* L) {
2688 int SWIG_arg = -1;
2689 Stream *result = 0 ;
2690
2691 SWIG_check_num_args("Stream",0,0)if (lua_gettop(L)<0 || lua_gettop(L)>0) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Stream",0,0,lua_gettop
(L)); goto fail;}
2692 result = (Stream *)new Stream();
2693 SWIG_arg=0;
2694 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[9], 1); SWIG_arg++;
2695 return SWIG_arg;
2696
2697 if(0) SWIG_fail{goto fail;};
2698
2699fail:
2700 lua_error(L);
2701 return SWIG_arg;
2702}
2703
2704
2705static int _wrap_new_Stream__SWIG_1(lua_State* L) {
2706 int SWIG_arg = -1;
2707 switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ;
2708 Stream *result = 0 ;
2709
2710 SWIG_check_num_args("Stream",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Stream",1,1,lua_gettop
(L)); goto fail;}
2711 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream",1,"switch_stream_handle_t *",SWIG_Lua_typename(L,1
)); goto fail;}
;
2712
2713 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[27],0) >=
0)
){
2714 SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_Stream",1,(swig_types[27] && swig_types[27]->
str)?swig_types[27]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2715 }
2716
2717 result = (Stream *)new Stream(arg1);
2718 SWIG_arg=0;
2719 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[9], 1); SWIG_arg++;
2720 return SWIG_arg;
2721
2722 if(0) SWIG_fail{goto fail;};
2723
2724fail:
2725 lua_error(L);
2726 return SWIG_arg;
2727}
2728
2729
2730static int _wrap_new_Stream(lua_State* L) {
2731 int argc;
2732 int argv[2]={
2733 1,2
2734 };
2735
2736 argc = lua_gettop(L);
2737 if (argc == 0) {
2738 return _wrap_new_Stream__SWIG_0(L);
2739 }
2740 if (argc == 1) {
2741 int _v;
2742 {
2743 void *ptr;
2744 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_stream_handle_t, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[27
],0)
) {
2745 _v = 0;
2746 } else {
2747 _v = 1;
2748 }
2749 }
2750 if (_v) {
2751 return _wrap_new_Stream__SWIG_1(L);
2752 }
2753 }
2754
2755 lua_pushstring(L,"No matching function for overloaded 'new_Stream'");
2756 lua_error(L);return 0;
2757}
2758
2759
2760static int _wrap_delete_Stream(lua_State* L) {
2761 int SWIG_arg = -1;
2762 Stream *arg1 = (Stream *) 0 ;
2763
2764 SWIG_check_num_args("Stream",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Stream",1,1,lua_gettop
(L)); goto fail;}
2765 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("Stream",1,"Stream *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream",1,"Stream *",SWIG_Lua_typename(L,1)); goto fail;}
;
2766
2767 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[9],0x1)
>= 0)
){
2768 SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_Stream",1,(swig_types[9] && swig_types[9]->
str)?swig_types[9]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2769 }
2770
2771 delete arg1;
2772
2773 SWIG_arg=0;
2774
2775 return SWIG_arg;
2776
2777 if(0) SWIG_fail{goto fail;};
2778
2779fail:
2780 lua_error(L);
2781 return SWIG_arg;
2782}
2783
2784
2785static int _wrap_Stream_read(lua_State* L) {
2786 int SWIG_arg = -1;
2787 Stream *arg1 = (Stream *) 0 ;
2788 int *arg2 = (int *) 0 ;
2789 char *result = 0 ;
2790 int temp2 ;
2791
2792 arg2 = &temp2;
2793 SWIG_check_num_args("read",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","read",1,1,lua_gettop
(L)); goto fail;}
2794 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("read",1,"Stream *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",1,"Stream *",SWIG_Lua_typename(L,1)); goto fail;}
;
2795
2796 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[9],0) >=
0)
){
2797 SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream_read",1,(swig_types[9] && swig_types[9]->
str)?swig_types[9]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2798 }
2799
2800 result = (char *)(arg1)->read(arg2);
2801 SWIG_arg=0;
2802 lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++;
2803 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
2804 return SWIG_arg;
2805
2806 if(0) SWIG_fail{goto fail;};
2807
2808fail:
2809 lua_error(L);
2810 return SWIG_arg;
2811}
2812
2813
2814static int _wrap_Stream_write(lua_State* L) {
2815 int SWIG_arg = -1;
2816 Stream *arg1 = (Stream *) 0 ;
2817 char *arg2 = (char *) 0 ;
2818
2819 SWIG_check_num_args("write",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","write",2,2,lua_gettop
(L)); goto fail;}
2820 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("write",1,"Stream *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "write",1,"Stream *",SWIG_Lua_typename(L,1)); goto fail;}
;
2821 if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "write",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2822
2823 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[9],0) >=
0)
){
2824 SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream_write",1,(swig_types[9] && swig_types[9]->
str)?swig_types[9]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
2825 }
2826
2827 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2828 (arg1)->write((char const *)arg2);
2829 SWIG_arg=0;
2830
2831 return SWIG_arg;
2832
2833 if(0) SWIG_fail{goto fail;};
2834
2835fail:
2836 lua_error(L);
2837 return SWIG_arg;
2838}
2839
2840
2841static int _wrap_Stream_raw_write(lua_State* L) {
2842 int SWIG_arg = -1;
2843 Stream *arg1 = (Stream *) 0 ;
2844 char *arg2 = (char *) 0 ;
2845 int arg3 ;
2846
2847 SWIG_check_num_args("raw_write",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","raw_write",3,3
,lua_gettop(L)); goto fail;}
2848 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("raw_write",1,"Stream *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "raw_write",1,"Stream *",SWIG_Lua_typename(L,1)); goto fail
;}
;
2849 if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "raw_write",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2850 if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "raw_write",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
2851
2852 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[9],0) >=
0)
){
2853 SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream_raw_write",1,(swig_types[9] && swig_types[9
]->str)?swig_types[9]->str:"void*",SWIG_Lua_typename(L,
1)); goto fail;}
;
2854 }
2855
2856 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2857 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
2858 (arg1)->raw_write((char const *)arg2,arg3);
2859 SWIG_arg=0;
2860
2861 return SWIG_arg;
2862
2863 if(0) SWIG_fail{goto fail;};
2864
2865fail:
2866 lua_error(L);
2867 return SWIG_arg;
2868}
2869
2870
2871static int _wrap_Stream_get_data(lua_State* L) {
2872 int SWIG_arg = -1;
2873 Stream *arg1 = (Stream *) 0 ;
2874 char *result = 0 ;
2875
2876 SWIG_check_num_args("get_data",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","get_data",1,1,
lua_gettop(L)); goto fail;}
2877 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("get_data",1,"Stream *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "get_data",1,"Stream *",SWIG_Lua_typename(L,1)); goto fail;
}
;
2878
2879 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[9],0) >=
0)
){
2880 SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Stream_get_data",1,(swig_types[9] && swig_types[9]
->str)?swig_types[9]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
2881 }
2882
2883 result = (char *)(arg1)->get_data();
2884 SWIG_arg=0;
2885 lua_pushstring(L,(const char*)result); SWIG_arg++;
2886 return SWIG_arg;
2887
2888 if(0) SWIG_fail{goto fail;};
2889
2890fail:
2891 lua_error(L);
2892 return SWIG_arg;
2893}
2894
2895
2896static void swig_delete_Stream(void *obj) {
2897Stream *arg1 = (Stream *) obj;
2898delete arg1;
2899}
2900static swig_lua_method swig_Stream_methods[] = {
2901 {"read", _wrap_Stream_read},
2902 {"write", _wrap_Stream_write},
2903 {"raw_write", _wrap_Stream_raw_write},
2904 {"get_data", _wrap_Stream_get_data},
2905 {0,0}
2906};
2907static swig_lua_attribute swig_Stream_attributes[] = {
2908 {0,0,0}
2909};
2910static swig_lua_class *swig_Stream_bases[] = {0};
2911static const char *swig_Stream_base_names[] = {0};
2912static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Streamswig_types[9],_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names };
2913
2914static int _wrap_Event_event_set(lua_State* L) {
2915 int SWIG_arg = -1;
2916 Event *arg1 = (Event *) 0 ;
2917 switch_event_t *arg2 = (switch_event_t *) 0 ;
2918
2919 SWIG_check_num_args("event",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","event",2,2,lua_gettop
(L)); goto fail;}
2920 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("event",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "event",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
2921 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("event",2,"switch_event_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "event",2,"switch_event_t *",SWIG_Lua_typename(L,2)); goto fail
;}
;
2922
2923 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
2924 SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_event_set",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
2925 }
2926
2927
2928 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_t,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[19],0x1
) >= 0)
){
2929 SWIG_fail_ptr("Event_event_set",2,SWIGTYPE_p_switch_event_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_event_set",2,(swig_types[19] && swig_types[19
]->str)?swig_types[19]->str:"void*",SWIG_Lua_typename(L
,2)); goto fail;}
;
2930 }
2931
2932 if (arg1) (arg1)->event = arg2;
2933
2934 SWIG_arg=0;
2935
2936 return SWIG_arg;
2937
2938 if(0) SWIG_fail{goto fail;};
2939
2940fail:
2941 lua_error(L);
2942 return SWIG_arg;
2943}
2944
2945
2946static int _wrap_Event_event_get(lua_State* L) {
2947 int SWIG_arg = -1;
2948 Event *arg1 = (Event *) 0 ;
2949 switch_event_t *result = 0 ;
2950
2951 SWIG_check_num_args("event",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","event",1,1,lua_gettop
(L)); goto fail;}
2952 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("event",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "event",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
2953
2954 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
2955 SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_event_get",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
2956 }
2957
2958 result = (switch_event_t *) ((arg1)->event);
2959 SWIG_arg=0;
2960 SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[19], 0); SWIG_arg++;
2961 return SWIG_arg;
2962
2963 if(0) SWIG_fail{goto fail;};
2964
2965fail:
2966 lua_error(L);
2967 return SWIG_arg;
2968}
2969
2970
2971static int _wrap_Event_serialized_string_set(lua_State* L) {
2972 int SWIG_arg = -1;
2973 Event *arg1 = (Event *) 0 ;
2974 char *arg2 = (char *) 0 ;
2975
2976 SWIG_check_num_args("serialized_string",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","serialized_string"
,2,2,lua_gettop(L)); goto fail;}
2977 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("serialized_string",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "serialized_string",1,"Event *",SWIG_Lua_typename(L,1)); goto
fail;}
;
2978 if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "serialized_string",2,"char *",SWIG_Lua_typename(L,2)); goto
fail;}
;
2979
2980 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
2981 SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_serialized_string_set",1,(swig_types[3] && swig_types
[3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
2982 }
2983
2984 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
2985 {
2986 if (arg1->serialized_string) delete [] arg1->serialized_string;
2987 if (arg2) {
2988 arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
2989 strcpy((char *)arg1->serialized_string, (const char *)arg2);
2990 } else {
2991 arg1->serialized_string = 0;
2992 }
2993 }
2994 SWIG_arg=0;
2995
2996 return SWIG_arg;
2997
2998 if(0) SWIG_fail{goto fail;};
2999
3000fail:
3001 lua_error(L);
3002 return SWIG_arg;
3003}
3004
3005
3006static int _wrap_Event_serialized_string_get(lua_State* L) {
3007 int SWIG_arg = -1;
3008 Event *arg1 = (Event *) 0 ;
3009 char *result = 0 ;
3010
3011 SWIG_check_num_args("serialized_string",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","serialized_string"
,1,1,lua_gettop(L)); goto fail;}
3012 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("serialized_string",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "serialized_string",1,"Event *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3013
3014 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3015 SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_serialized_string_get",1,(swig_types[3] && swig_types
[3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3016 }
3017
3018 result = (char *) ((arg1)->serialized_string);
3019 SWIG_arg=0;
3020 lua_pushstring(L,(const char*)result); SWIG_arg++;
3021 return SWIG_arg;
3022
3023 if(0) SWIG_fail{goto fail;};
3024
3025fail:
3026 lua_error(L);
3027 return SWIG_arg;
3028}
3029
3030
3031static int _wrap_Event_mine_set(lua_State* L) {
3032 int SWIG_arg = -1;
3033 Event *arg1 = (Event *) 0 ;
3034 int arg2 ;
3035
3036 SWIG_check_num_args("mine",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","mine",2,2,lua_gettop
(L)); goto fail;}
3037 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("mine",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "mine",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3038 if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "mine",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
3039
3040 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3041 SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_mine_set",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3042 }
3043
3044 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
3045 if (arg1) (arg1)->mine = arg2;
3046
3047 SWIG_arg=0;
3048
3049 return SWIG_arg;
3050
3051 if(0) SWIG_fail{goto fail;};
3052
3053fail:
3054 lua_error(L);
3055 return SWIG_arg;
3056}
3057
3058
3059static int _wrap_Event_mine_get(lua_State* L) {
3060 int SWIG_arg = -1;
3061 Event *arg1 = (Event *) 0 ;
3062 int result;
3063
3064 SWIG_check_num_args("mine",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","mine",1,1,lua_gettop
(L)); goto fail;}
3065 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("mine",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "mine",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3066
3067 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3068 SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_mine_get",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3069 }
3070
3071 result = (int) ((arg1)->mine);
3072 SWIG_arg=0;
3073 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3074 return SWIG_arg;
3075
3076 if(0) SWIG_fail{goto fail;};
3077
3078fail:
3079 lua_error(L);
3080 return SWIG_arg;
3081}
3082
3083
3084static int _wrap_new_Event__SWIG_0(lua_State* L) {
3085 int SWIG_arg = -1;
3086 char *arg1 = (char *) 0 ;
3087 char *arg2 = (char *) NULL__null ;
3088 Event *result = 0 ;
3089
3090 SWIG_check_num_args("Event",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Event",1,2,lua_gettop
(L)); goto fail;}
3091 if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event",1,"char const *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3092 if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3093 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
3094 if(lua_gettop(L)>=2){
3095 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3096 }
3097 result = (Event *)new Event((char const *)arg1,(char const *)arg2);
3098 SWIG_arg=0;
3099 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[3], 1); SWIG_arg++;
3100 return SWIG_arg;
3101
3102 if(0) SWIG_fail{goto fail;};
3103
3104fail:
3105 lua_error(L);
3106 return SWIG_arg;
3107}
3108
3109
3110static int _wrap_new_Event__SWIG_1(lua_State* L) {
3111 int SWIG_arg = -1;
3112 switch_event_t *arg1 = (switch_event_t *) 0 ;
3113 int arg2 = (int) 0 ;
3114 Event *result = 0 ;
3115
3116 SWIG_check_num_args("Event",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Event",1,2,lua_gettop
(L)); goto fail;}
3117 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("Event",1,"switch_event_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event",1,"switch_event_t *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3118 if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
3119
3120 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[19],0) >=
0)
){
3121 SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_Event",1,(swig_types[19] && swig_types[19]->
str)?swig_types[19]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3122 }
3123
3124 if(lua_gettop(L)>=2){
3125 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
3126 }
3127 result = (Event *)new Event(arg1,arg2);
3128 SWIG_arg=0;
3129 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[3], 1); SWIG_arg++;
3130 return SWIG_arg;
3131
3132 if(0) SWIG_fail{goto fail;};
3133
3134fail:
3135 lua_error(L);
3136 return SWIG_arg;
3137}
3138
3139
3140static int _wrap_new_Event(lua_State* L) {
3141 int argc;
3142 int argv[3]={
3143 1,2,3
3144 };
3145
3146 argc = lua_gettop(L);
3147 if ((argc >= 1) && (argc <= 2)) {
3148 int _v;
3149 {
3150 void *ptr;
3151 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_event_t, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[19
],0)
) {
3152 _v = 0;
3153 } else {
3154 _v = 1;
3155 }
3156 }
3157 if (_v) {
3158 if (argc <= 1) {
3159 return _wrap_new_Event__SWIG_1(L);
3160 }
3161 {
3162 _v = lua_isnumber(L,argv[1]);
3163 }
3164 if (_v) {
3165 return _wrap_new_Event__SWIG_1(L);
3166 }
3167 }
3168 }
3169 if ((argc >= 1) && (argc <= 2)) {
3170 int _v;
3171 {
3172 _v = lua_isstring(L,argv[0]);
3173 }
3174 if (_v) {
3175 if (argc <= 1) {
3176 return _wrap_new_Event__SWIG_0(L);
3177 }
3178 {
3179 _v = lua_isstring(L,argv[1]);
3180 }
3181 if (_v) {
3182 return _wrap_new_Event__SWIG_0(L);
3183 }
3184 }
3185 }
3186
3187 lua_pushstring(L,"No matching function for overloaded 'new_Event'");
3188 lua_error(L);return 0;
3189}
3190
3191
3192static int _wrap_delete_Event(lua_State* L) {
3193 int SWIG_arg = -1;
3194 Event *arg1 = (Event *) 0 ;
3195
3196 SWIG_check_num_args("Event",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","Event",1,1,lua_gettop
(L)); goto fail;}
3197 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("Event",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3198
3199 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0x1)
>= 0)
){
3200 SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_Event",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3201 }
3202
3203 delete arg1;
3204
3205 SWIG_arg=0;
3206
3207 return SWIG_arg;
3208
3209 if(0) SWIG_fail{goto fail;};
3210
3211fail:
3212 lua_error(L);
3213 return SWIG_arg;
3214}
3215
3216
3217static int _wrap_Event_chat_execute(lua_State* L) {
3218 int SWIG_arg = -1;
3219 Event *arg1 = (Event *) 0 ;
3220 char *arg2 = (char *) 0 ;
3221 char *arg3 = (char *) NULL__null ;
3222 int result;
3223
3224 SWIG_check_num_args("chat_execute",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","chat_execute",
2,3,lua_gettop(L)); goto fail;}
3225 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("chat_execute",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "chat_execute",1,"Event *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3226 if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "chat_execute",2,"char const *",SWIG_Lua_typename(L,2)); goto
fail;}
;
3227 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "chat_execute",3,"char const *",SWIG_Lua_typename(L,3)); goto
fail;}
;
3228
3229 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3230 SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_chat_execute",1,(swig_types[3] && swig_types
[3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3231 }
3232
3233 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3234 if(lua_gettop(L)>=3){
3235 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
3236 }
3237 result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3);
3238 SWIG_arg=0;
3239 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3240 return SWIG_arg;
3241
3242 if(0) SWIG_fail{goto fail;};
3243
3244fail:
3245 lua_error(L);
3246 return SWIG_arg;
3247}
3248
3249
3250static int _wrap_Event_chat_send(lua_State* L) {
3251 int SWIG_arg = -1;
3252 Event *arg1 = (Event *) 0 ;
3253 char *arg2 = (char *) NULL__null ;
3254 int result;
3255
3256 SWIG_check_num_args("chat_send",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","chat_send",1,2
,lua_gettop(L)); goto fail;}
3257 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("chat_send",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "chat_send",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;
}
;
3258 if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "chat_send",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3259
3260 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3261 SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_chat_send",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
3262 }
3263
3264 if(lua_gettop(L)>=2){
3265 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3266 }
3267 result = (int)(arg1)->chat_send((char const *)arg2);
3268 SWIG_arg=0;
3269 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3270 return SWIG_arg;
3271
3272 if(0) SWIG_fail{goto fail;};
3273
3274fail:
3275 lua_error(L);
3276 return SWIG_arg;
3277}
3278
3279
3280static int _wrap_Event_serialize(lua_State* L) {
3281 int SWIG_arg = -1;
3282 Event *arg1 = (Event *) 0 ;
3283 char *arg2 = (char *) NULL__null ;
3284 char *result = 0 ;
3285
3286 SWIG_check_num_args("serialize",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","serialize",1,2
,lua_gettop(L)); goto fail;}
3287 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("serialize",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "serialize",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;
}
;
3288 if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "serialize",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3289
3290 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3291 SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_serialize",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
3292 }
3293
3294 if(lua_gettop(L)>=2){
3295 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3296 }
3297 result = (char *)(arg1)->serialize((char const *)arg2);
3298 SWIG_arg=0;
3299 lua_pushstring(L,(const char*)result); SWIG_arg++;
3300 return SWIG_arg;
3301
3302 if(0) SWIG_fail{goto fail;};
3303
3304fail:
3305 lua_error(L);
3306 return SWIG_arg;
3307}
3308
3309
3310static int _wrap_Event_setPriority(lua_State* L) {
3311 int SWIG_arg = -1;
3312 Event *arg1 = (Event *) 0 ;
3313 switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
3314 bool result;
3315 switch_priority_t *argp2 ;
3316
3317 SWIG_check_num_args("setPriority",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setPriority",1
,2,lua_gettop(L)); goto fail;}
3318 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setPriority",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setPriority",1,"Event *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3319 if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setPriority",2,"switch_priority_t",SWIG_Lua_typename(L,2))
; goto fail;}
;
3320
3321 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3322 SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_setPriority",1,(swig_types[3] && swig_types[
3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
3323 }
3324
3325 if(lua_gettop(L)>=2){
3326 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_priority_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[23],0)
>= 0)
){
3327 SWIG_fail_ptr("Event_setPriority",2,SWIGTYPE_p_switch_priority_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_setPriority",2,(swig_types[23] && swig_types
[23]->str)?swig_types[23]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
3328 }
3329 arg2 = *argp2;
3330 }
3331 result = (bool)(arg1)->setPriority(arg2);
3332 SWIG_arg=0;
3333 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
3334 return SWIG_arg;
3335
3336 if(0) SWIG_fail{goto fail;};
3337
3338fail:
3339 lua_error(L);
3340 return SWIG_arg;
3341}
3342
3343
3344static int _wrap_Event_getHeader(lua_State* L) {
3345 int SWIG_arg = -1;
3346 Event *arg1 = (Event *) 0 ;
3347 char *arg2 = (char *) 0 ;
3348 char *result = 0 ;
3349
3350 SWIG_check_num_args("getHeader",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getHeader",2,2
,lua_gettop(L)); goto fail;}
3351 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getHeader",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getHeader",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;
}
;
3352 if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getHeader",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3353
3354 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3355 SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_getHeader",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
3356 }
3357
3358 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3359 result = (char *)(arg1)->getHeader((char const *)arg2);
3360 SWIG_arg=0;
3361 lua_pushstring(L,(const char*)result); SWIG_arg++;
3362 return SWIG_arg;
3363
3364 if(0) SWIG_fail{goto fail;};
3365
3366fail:
3367 lua_error(L);
3368 return SWIG_arg;
3369}
3370
3371
3372static int _wrap_Event_getBody(lua_State* L) {
3373 int SWIG_arg = -1;
3374 Event *arg1 = (Event *) 0 ;
3375 char *result = 0 ;
3376
3377 SWIG_check_num_args("getBody",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getBody",1,1,lua_gettop
(L)); goto fail;}
3378 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getBody",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getBody",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3379
3380 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3381 SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_getBody",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3382 }
3383
3384 result = (char *)(arg1)->getBody();
3385 SWIG_arg=0;
3386 lua_pushstring(L,(const char*)result); SWIG_arg++;
3387 return SWIG_arg;
3388
3389 if(0) SWIG_fail{goto fail;};
3390
3391fail:
3392 lua_error(L);
3393 return SWIG_arg;
3394}
3395
3396
3397static int _wrap_Event_getType(lua_State* L) {
3398 int SWIG_arg = -1;
3399 Event *arg1 = (Event *) 0 ;
3400 char *result = 0 ;
3401
3402 SWIG_check_num_args("getType",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getType",1,1,lua_gettop
(L)); goto fail;}
3403 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getType",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getType",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3404
3405 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3406 SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_getType",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3407 }
3408
3409 result = (char *)(arg1)->getType();
3410 SWIG_arg=0;
3411 lua_pushstring(L,(const char*)result); SWIG_arg++;
3412 return SWIG_arg;
3413
3414 if(0) SWIG_fail{goto fail;};
3415
3416fail:
3417 lua_error(L);
3418 return SWIG_arg;
3419}
3420
3421
3422static int _wrap_Event_addBody(lua_State* L) {
3423 int SWIG_arg = -1;
3424 Event *arg1 = (Event *) 0 ;
3425 char *arg2 = (char *) 0 ;
3426 bool result;
3427
3428 SWIG_check_num_args("addBody",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","addBody",2,2,lua_gettop
(L)); goto fail;}
3429 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("addBody",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "addBody",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3430 if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "addBody",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3431
3432 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3433 SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_addBody",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3434 }
3435
3436 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3437 result = (bool)(arg1)->addBody((char const *)arg2);
3438 SWIG_arg=0;
3439 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
3440 return SWIG_arg;
3441
3442 if(0) SWIG_fail{goto fail;};
3443
3444fail:
3445 lua_error(L);
3446 return SWIG_arg;
3447}
3448
3449
3450static int _wrap_Event_addHeader(lua_State* L) {
3451 int SWIG_arg = -1;
3452 Event *arg1 = (Event *) 0 ;
3453 char *arg2 = (char *) 0 ;
3454 char *arg3 = (char *) 0 ;
3455 bool result;
3456
3457 SWIG_check_num_args("addHeader",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","addHeader",3,3
,lua_gettop(L)); goto fail;}
3458 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("addHeader",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "addHeader",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;
}
;
3459 if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "addHeader",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3460 if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "addHeader",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
3461
3462 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3463 SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_addHeader",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
3464 }
3465
3466 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3467 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
3468 result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
3469 SWIG_arg=0;
3470 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
3471 return SWIG_arg;
3472
3473 if(0) SWIG_fail{goto fail;};
3474
3475fail:
3476 lua_error(L);
3477 return SWIG_arg;
3478}
3479
3480
3481static int _wrap_Event_delHeader(lua_State* L) {
3482 int SWIG_arg = -1;
3483 Event *arg1 = (Event *) 0 ;
3484 char *arg2 = (char *) 0 ;
3485 bool result;
3486
3487 SWIG_check_num_args("delHeader",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","delHeader",2,2
,lua_gettop(L)); goto fail;}
3488 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("delHeader",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delHeader",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;
}
;
3489 if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delHeader",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3490
3491 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3492 SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_delHeader",1,(swig_types[3] && swig_types[3]
->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
3493 }
3494
3495 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3496 result = (bool)(arg1)->delHeader((char const *)arg2);
3497 SWIG_arg=0;
3498 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
3499 return SWIG_arg;
3500
3501 if(0) SWIG_fail{goto fail;};
3502
3503fail:
3504 lua_error(L);
3505 return SWIG_arg;
3506}
3507
3508
3509static int _wrap_Event_fire(lua_State* L) {
3510 int SWIG_arg = -1;
3511 Event *arg1 = (Event *) 0 ;
3512 bool result;
3513
3514 SWIG_check_num_args("fire",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","fire",1,1,lua_gettop
(L)); goto fail;}
3515 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("fire",1,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "fire",1,"Event *",SWIG_Lua_typename(L,1)); goto fail;}
;
3516
3517 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[3],0) >=
0)
){
3518 SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Event_fire",1,(swig_types[3] && swig_types[3]->
str)?swig_types[3]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
3519 }
3520
3521 result = (bool)(arg1)->fire();
3522 SWIG_arg=0;
3523 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
3524 return SWIG_arg;
3525
3526 if(0) SWIG_fail{goto fail;};
3527
3528fail:
3529 lua_error(L);
3530 return SWIG_arg;
3531}
3532
3533
3534static void swig_delete_Event(void *obj) {
3535Event *arg1 = (Event *) obj;
3536delete arg1;
3537}
3538static swig_lua_method swig_Event_methods[] = {
3539 {"chat_execute", _wrap_Event_chat_execute},
3540 {"chat_send", _wrap_Event_chat_send},
3541 {"serialize", _wrap_Event_serialize},
3542 {"setPriority", _wrap_Event_setPriority},
3543 {"getHeader", _wrap_Event_getHeader},
3544 {"getBody", _wrap_Event_getBody},
3545 {"getType", _wrap_Event_getType},
3546 {"addBody", _wrap_Event_addBody},
3547 {"addHeader", _wrap_Event_addHeader},
3548 {"delHeader", _wrap_Event_delHeader},
3549 {"fire", _wrap_Event_fire},
3550 {0,0}
3551};
3552static swig_lua_attribute swig_Event_attributes[] = {
3553 { "event", _wrap_Event_event_get, _wrap_Event_event_set},
3554 { "serialized_string", _wrap_Event_serialized_string_get, _wrap_Event_serialized_string_set},
3555 { "mine", _wrap_Event_mine_get, _wrap_Event_mine_set},
3556 {0,0,0}
3557};
3558static swig_lua_class *swig_Event_bases[] = {0};
3559static const char *swig_Event_base_names[] = {0};
3560static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Eventswig_types[3],_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names };
3561
3562static int _wrap_EventConsumer_events_set(lua_State* L) {
3563 int SWIG_arg = -1;
3564 EventConsumer *arg1 = (EventConsumer *) 0 ;
3565 switch_queue_t *arg2 = (switch_queue_t *) 0 ;
3566
3567 SWIG_check_num_args("events",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","events",2,2,lua_gettop
(L)); goto fail;}
3568 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("events",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "events",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3569 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("events",2,"switch_queue_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "events",2,"switch_queue_t *",SWIG_Lua_typename(L,2)); goto
fail;}
;
3570
3571 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3572 SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_events_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3573 }
3574
3575
3576 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[24],0x1
) >= 0)
){
3577 SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_events_set",2,(swig_types[24] && swig_types
[24]->str)?swig_types[24]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
3578 }
3579
3580 if (arg1) (arg1)->events = arg2;
3581
3582 SWIG_arg=0;
3583
3584 return SWIG_arg;
3585
3586 if(0) SWIG_fail{goto fail;};
3587
3588fail:
3589 lua_error(L);
3590 return SWIG_arg;
3591}
3592
3593
3594static int _wrap_EventConsumer_events_get(lua_State* L) {
3595 int SWIG_arg = -1;
3596 EventConsumer *arg1 = (EventConsumer *) 0 ;
3597 switch_queue_t *result = 0 ;
3598
3599 SWIG_check_num_args("events",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","events",1,1,lua_gettop
(L)); goto fail;}
3600 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("events",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "events",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3601
3602 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3603 SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_events_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3604 }
3605
3606 result = (switch_queue_t *) ((arg1)->events);
3607 SWIG_arg=0;
3608 SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[24], 0); SWIG_arg++;
3609 return SWIG_arg;
3610
3611 if(0) SWIG_fail{goto fail;};
3612
3613fail:
3614 lua_error(L);
3615 return SWIG_arg;
3616}
3617
3618
3619static int _wrap_EventConsumer_e_event_id_set(lua_State* L) {
3620 int SWIG_arg = -1;
3621 EventConsumer *arg1 = (EventConsumer *) 0 ;
3622 switch_event_types_t arg2 ;
3623 switch_event_types_t *argp2 ;
3624
3625 SWIG_check_num_args("e_event_id",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_event_id",2,
2,lua_gettop(L)); goto fail;}
3626 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_event_id",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_event_id",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3627 if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_event_id",2,"switch_event_types_t",SWIG_Lua_typename(L,2
)); goto fail;}
;
3628
3629 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3630 SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_event_id_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3631 }
3632
3633
3634 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[20],0)
>= 0)
){
3635 SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_event_id_set",2,(swig_types[20] &&
swig_types[20]->str)?swig_types[20]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
3636 }
3637 arg2 = *argp2;
3638
3639 if (arg1) (arg1)->e_event_id = arg2;
3640
3641 SWIG_arg=0;
3642
3643 return SWIG_arg;
3644
3645 if(0) SWIG_fail{goto fail;};
3646
3647fail:
3648 lua_error(L);
3649 return SWIG_arg;
3650}
3651
3652
3653static int _wrap_EventConsumer_e_event_id_get(lua_State* L) {
3654 int SWIG_arg = -1;
3655 EventConsumer *arg1 = (EventConsumer *) 0 ;
3656 switch_event_types_t result;
3657
3658 SWIG_check_num_args("e_event_id",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_event_id",1,
1,lua_gettop(L)); goto fail;}
3659 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_event_id",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_event_id",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3660
3661 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3662 SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_event_id_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3663 }
3664
3665 result = ((arg1)->e_event_id);
3666 SWIG_arg=0;
3667 {
3668 switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result);
3669 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[20], 1)
; SWIG_arg++;
3670 }
3671 return SWIG_arg;
3672
3673 if(0) SWIG_fail{goto fail;};
3674
3675fail:
3676 lua_error(L);
3677 return SWIG_arg;
3678}
3679
3680
3681static int _wrap_EventConsumer_e_callback_set(lua_State* L) {
3682 int SWIG_arg = -1;
3683 EventConsumer *arg1 = (EventConsumer *) 0 ;
3684 char *arg2 = (char *) 0 ;
3685
3686 SWIG_check_num_args("e_callback",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_callback",2,
2,lua_gettop(L)); goto fail;}
3687 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_callback",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_callback",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3688 if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_callback",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
3689
3690 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3691 SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_callback_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3692 }
3693
3694 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3695 {
3696 if (arg1->e_callback) delete [] arg1->e_callback;
3697 if (arg2) {
3698 arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]);
3699 strcpy((char *)arg1->e_callback, (const char *)arg2);
3700 } else {
3701 arg1->e_callback = 0;
3702 }
3703 }
3704 SWIG_arg=0;
3705
3706 return SWIG_arg;
3707
3708 if(0) SWIG_fail{goto fail;};
3709
3710fail:
3711 lua_error(L);
3712 return SWIG_arg;
3713}
3714
3715
3716static int _wrap_EventConsumer_e_callback_get(lua_State* L) {
3717 int SWIG_arg = -1;
3718 EventConsumer *arg1 = (EventConsumer *) 0 ;
3719 char *result = 0 ;
3720
3721 SWIG_check_num_args("e_callback",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_callback",1,
1,lua_gettop(L)); goto fail;}
3722 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_callback",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_callback",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3723
3724 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3725 SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_callback_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3726 }
3727
3728 result = (char *) ((arg1)->e_callback);
3729 SWIG_arg=0;
3730 lua_pushstring(L,(const char*)result); SWIG_arg++;
3731 return SWIG_arg;
3732
3733 if(0) SWIG_fail{goto fail;};
3734
3735fail:
3736 lua_error(L);
3737 return SWIG_arg;
3738}
3739
3740
3741static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) {
3742 int SWIG_arg = -1;
3743 EventConsumer *arg1 = (EventConsumer *) 0 ;
3744 char *arg2 = (char *) 0 ;
3745
3746 SWIG_check_num_args("e_subclass_name",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_subclass_name"
,2,2,lua_gettop(L)); goto fail;}
3747 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_subclass_name",1,"EventConsumer *",SWIG_Lua_typename(L,1
)); goto fail;}
;
3748 if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_subclass_name",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
3749
3750 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3751 SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_subclass_name_set",1,(swig_types[4] &&
swig_types[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
3752 }
3753
3754 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3755 {
3756 if (arg1->e_subclass_name) delete [] arg1->e_subclass_name;
3757 if (arg2) {
3758 arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]);
3759 strcpy((char *)arg1->e_subclass_name, (const char *)arg2);
3760 } else {
3761 arg1->e_subclass_name = 0;
3762 }
3763 }
3764 SWIG_arg=0;
3765
3766 return SWIG_arg;
3767
3768 if(0) SWIG_fail{goto fail;};
3769
3770fail:
3771 lua_error(L);
3772 return SWIG_arg;
3773}
3774
3775
3776static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) {
3777 int SWIG_arg = -1;
3778 EventConsumer *arg1 = (EventConsumer *) 0 ;
3779 char *result = 0 ;
3780
3781 SWIG_check_num_args("e_subclass_name",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_subclass_name"
,1,1,lua_gettop(L)); goto fail;}
3782 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_subclass_name",1,"EventConsumer *",SWIG_Lua_typename(L,1
)); goto fail;}
;
3783
3784 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3785 SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_subclass_name_get",1,(swig_types[4] &&
swig_types[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
3786 }
3787
3788 result = (char *) ((arg1)->e_subclass_name);
3789 SWIG_arg=0;
3790 lua_pushstring(L,(const char*)result); SWIG_arg++;
3791 return SWIG_arg;
3792
3793 if(0) SWIG_fail{goto fail;};
3794
3795fail:
3796 lua_error(L);
3797 return SWIG_arg;
3798}
3799
3800
3801static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) {
3802 int SWIG_arg = -1;
3803 EventConsumer *arg1 = (EventConsumer *) 0 ;
3804 char *arg2 = (char *) 0 ;
3805
3806 SWIG_check_num_args("e_cb_arg",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_cb_arg",2,2,
lua_gettop(L)); goto fail;}
3807 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_cb_arg",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3808 if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_cb_arg",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
3809
3810 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3811 SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_cb_arg_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3812 }
3813
3814 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3815 {
3816 if (arg1->e_cb_arg) delete [] arg1->e_cb_arg;
3817 if (arg2) {
3818 arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
3819 strcpy((char *)arg1->e_cb_arg, (const char *)arg2);
3820 } else {
3821 arg1->e_cb_arg = 0;
3822 }
3823 }
3824 SWIG_arg=0;
3825
3826 return SWIG_arg;
3827
3828 if(0) SWIG_fail{goto fail;};
3829
3830fail:
3831 lua_error(L);
3832 return SWIG_arg;
3833}
3834
3835
3836static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) {
3837 int SWIG_arg = -1;
3838 EventConsumer *arg1 = (EventConsumer *) 0 ;
3839 char *result = 0 ;
3840
3841 SWIG_check_num_args("e_cb_arg",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","e_cb_arg",1,1,
lua_gettop(L)); goto fail;}
3842 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "e_cb_arg",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3843
3844 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3845 SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_e_cb_arg_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3846 }
3847
3848 result = (char *) ((arg1)->e_cb_arg);
3849 SWIG_arg=0;
3850 lua_pushstring(L,(const char*)result); SWIG_arg++;
3851 return SWIG_arg;
3852
3853 if(0) SWIG_fail{goto fail;};
3854
3855fail:
3856 lua_error(L);
3857 return SWIG_arg;
3858}
3859
3860
3861static int _wrap_EventConsumer_enodes_set(lua_State* L) {
3862 int SWIG_arg = -1;
3863 EventConsumer *arg1 = (EventConsumer *) 0 ;
3864 switch_event_node_t **arg2 ;
3865
3866 SWIG_check_num_args("enodes",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","enodes",2,2,lua_gettop
(L)); goto fail;}
3867 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("enodes",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "enodes",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3868 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]",SWIG_Lua_typename
(L,2)); goto fail;}
;
3869
3870 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3871 SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_enodes_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3872 }
3873
3874
3875 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[13],0) >=
0)
){
3876 SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_enodes_set",2,(swig_types[13] && swig_types
[13]->str)?swig_types[13]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
3877 }
3878
3879 {
3880 size_t ii;
3881 switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes;
3882 for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii);
3883 }
3884 SWIG_arg=0;
3885
3886 return SWIG_arg;
3887
3888 if(0) SWIG_fail{goto fail;};
3889
3890fail:
3891 lua_error(L);
3892 return SWIG_arg;
3893}
3894
3895
3896static int _wrap_EventConsumer_enodes_get(lua_State* L) {
3897 int SWIG_arg = -1;
3898 EventConsumer *arg1 = (EventConsumer *) 0 ;
3899 switch_event_node_t **result = 0 ;
3900
3901 SWIG_check_num_args("enodes",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","enodes",1,1,lua_gettop
(L)); goto fail;}
3902 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("enodes",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "enodes",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
3903
3904 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3905 SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_enodes_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3906 }
3907
3908 result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes);
3909 SWIG_arg=0;
3910 SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[13], 0); SWIG_arg++;
3911 return SWIG_arg;
3912
3913 if(0) SWIG_fail{goto fail;};
3914
3915fail:
3916 lua_error(L);
3917 return SWIG_arg;
3918}
3919
3920
3921static int _wrap_EventConsumer_node_index_set(lua_State* L) {
3922 int SWIG_arg = -1;
3923 EventConsumer *arg1 = (EventConsumer *) 0 ;
3924 uint32_t arg2 ;
3925 uint32_t *argp2 ;
3926
3927 SWIG_check_num_args("node_index",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","node_index",2,
2,lua_gettop(L)); goto fail;}
3928 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("node_index",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "node_index",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3929 if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "node_index",2,"uint32_t",SWIG_Lua_typename(L,2)); goto fail
;}
;
3930
3931 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3932 SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_node_index_set",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3933 }
3934
3935
3936 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[28],0)
>= 0)
){
3937 SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_node_index_set",2,(swig_types[28] &&
swig_types[28]->str)?swig_types[28]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
3938 }
3939 arg2 = *argp2;
3940
3941 if (arg1) (arg1)->node_index = arg2;
3942
3943 SWIG_arg=0;
3944
3945 return SWIG_arg;
3946
3947 if(0) SWIG_fail{goto fail;};
3948
3949fail:
3950 lua_error(L);
3951 return SWIG_arg;
3952}
3953
3954
3955static int _wrap_EventConsumer_node_index_get(lua_State* L) {
3956 int SWIG_arg = -1;
3957 EventConsumer *arg1 = (EventConsumer *) 0 ;
3958 uint32_t result;
3959
3960 SWIG_check_num_args("node_index",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","node_index",1,
1,lua_gettop(L)); goto fail;}
3961 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("node_index",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "node_index",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3962
3963 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
3964 SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_node_index_get",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
3965 }
3966
3967 result = ((arg1)->node_index);
3968 SWIG_arg=0;
3969 {
3970 uint32_t * resultptr = new uint32_t((uint32_t &) result);
3971 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[28], 1)
; SWIG_arg++;
3972 }
3973 return SWIG_arg;
3974
3975 if(0) SWIG_fail{goto fail;};
3976
3977fail:
3978 lua_error(L);
3979 return SWIG_arg;
3980}
3981
3982
3983static int _wrap_new_EventConsumer(lua_State* L) {
3984 int SWIG_arg = -1;
3985 char *arg1 = (char *) NULL__null ;
3986 char *arg2 = (char *) "" ;
3987 int arg3 = (int) 5000 ;
3988 EventConsumer *result = 0 ;
3989
3990 SWIG_check_num_args("EventConsumer",0,3)if (lua_gettop(L)<0 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","EventConsumer"
,0,3,lua_gettop(L)); goto fail;}
3991 if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer",1,"char const *",SWIG_Lua_typename(L,1)); goto
fail;}
;
3992 if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer",2,"char const *",SWIG_Lua_typename(L,2)); goto
fail;}
;
3993 if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer",3,"int",SWIG_Lua_typename(L,3)); goto fail;
}
;
3994 if(lua_gettop(L)>=1){
3995 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
3996 }
3997 if(lua_gettop(L)>=2){
3998 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
3999 }
4000 if(lua_gettop(L)>=3){
4001 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
4002 }
4003 result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3);
4004 SWIG_arg=0;
4005 SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[4], 1); SWIG_arg++;
4006 return SWIG_arg;
4007
4008 if(0) SWIG_fail{goto fail;};
4009
4010fail:
4011 lua_error(L);
4012 return SWIG_arg;
4013}
4014
4015
4016static int _wrap_delete_EventConsumer(lua_State* L) {
4017 int SWIG_arg = -1;
4018 EventConsumer *arg1 = (EventConsumer *) 0 ;
4019
4020 SWIG_check_num_args("EventConsumer",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","EventConsumer"
,1,1,lua_gettop(L)); goto fail;}
4021 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("EventConsumer",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer",1,"EventConsumer *",SWIG_Lua_typename(L,1))
; goto fail;}
;
4022
4023 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0x1)
>= 0)
){
4024 SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_EventConsumer",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4025 }
4026
4027 delete arg1;
4028
4029 SWIG_arg=0;
4030
4031 return SWIG_arg;
4032
4033 if(0) SWIG_fail{goto fail;};
4034
4035fail:
4036 lua_error(L);
4037 return SWIG_arg;
4038}
4039
4040
4041static int _wrap_EventConsumer_bind(lua_State* L) {
4042 int SWIG_arg = -1;
4043 EventConsumer *arg1 = (EventConsumer *) 0 ;
4044 char *arg2 = (char *) 0 ;
4045 char *arg3 = (char *) "" ;
4046 int result;
4047
4048 SWIG_check_num_args("bind",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","bind",2,3,lua_gettop
(L)); goto fail;}
4049 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("bind",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bind",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4050 if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bind",2,"char const *",SWIG_Lua_typename(L,2)); goto fail;
}
;
4051 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bind",3,"char const *",SWIG_Lua_typename(L,3)); goto fail;
}
;
4052
4053 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
4054 SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_bind",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4055 }
4056
4057 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4058 if(lua_gettop(L)>=3){
4059 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
4060 }
4061 result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3);
4062 SWIG_arg=0;
4063 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4064 return SWIG_arg;
4065
4066 if(0) SWIG_fail{goto fail;};
4067
4068fail:
4069 lua_error(L);
4070 return SWIG_arg;
4071}
4072
4073
4074static int _wrap_EventConsumer_pop(lua_State* L) {
4075 int SWIG_arg = -1;
4076 EventConsumer *arg1 = (EventConsumer *) 0 ;
4077 int arg2 = (int) 0 ;
4078 int arg3 = (int) 0 ;
4079 Event *result = 0 ;
4080
4081 SWIG_check_num_args("pop",1,3)if (lua_gettop(L)<1 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","pop",1,3,lua_gettop
(L)); goto fail;}
4082 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("pop",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "pop",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4083 if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "pop",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
4084 if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "pop",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
4085
4086 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
4087 SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_pop",1,(swig_types[4] && swig_types[
4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
4088 }
4089
4090 if(lua_gettop(L)>=2){
4091 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
4092 }
4093 if(lua_gettop(L)>=3){
4094 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
4095 }
4096 result = (Event *)(arg1)->pop(arg2,arg3);
4097 SWIG_arg=0;
4098 SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[3], 1); SWIG_arg++;
4099 return SWIG_arg;
4100
4101 if(0) SWIG_fail{goto fail;};
4102
4103fail:
4104 lua_error(L);
4105 return SWIG_arg;
4106}
4107
4108
4109static int _wrap_EventConsumer_cleanup(lua_State* L) {
4110 int SWIG_arg = -1;
4111 EventConsumer *arg1 = (EventConsumer *) 0 ;
4112
4113 SWIG_check_num_args("cleanup",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cleanup",1,1,lua_gettop
(L)); goto fail;}
4114 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cleanup",1,"EventConsumer *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cleanup",1,"EventConsumer *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4115
4116 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[4],0) >=
0)
){
4117 SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "EventConsumer_cleanup",1,(swig_types[4] && swig_types
[4]->str)?swig_types[4]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4118 }
4119
4120 (arg1)->cleanup();
4121 SWIG_arg=0;
4122
4123 return SWIG_arg;
4124
4125 if(0) SWIG_fail{goto fail;};
4126
4127fail:
4128 lua_error(L);
4129 return SWIG_arg;
4130}
4131
4132
4133static void swig_delete_EventConsumer(void *obj) {
4134EventConsumer *arg1 = (EventConsumer *) obj;
4135delete arg1;
4136}
4137static swig_lua_method swig_EventConsumer_methods[] = {
4138 {"bind", _wrap_EventConsumer_bind},
4139 {"pop", _wrap_EventConsumer_pop},
4140 {"cleanup", _wrap_EventConsumer_cleanup},
4141 {0,0}
4142};
4143static swig_lua_attribute swig_EventConsumer_attributes[] = {
4144 { "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set},
4145 { "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set},
4146 { "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set},
4147 { "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set},
4148 { "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set},
4149 { "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set},
4150 { "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set},
4151 {0,0,0}
4152};
4153static swig_lua_class *swig_EventConsumer_bases[] = {0};
4154static const char *swig_EventConsumer_base_names[] = {0};
4155static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumerswig_types[4],_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names };
4156
4157static int _wrap_delete_CoreSession(lua_State* L) {
4158 int SWIG_arg = -1;
4159 CoreSession *arg1 = (CoreSession *) 0 ;
4160
4161 SWIG_check_num_args("CoreSession",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","CoreSession",1
,1,lua_gettop(L)); goto fail;}
4162 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("CoreSession",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4163
4164 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0x1)
>= 0)
){
4165 SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_CoreSession",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4166 }
4167
4168 delete arg1;
4169
4170 SWIG_arg=0;
4171
4172 return SWIG_arg;
4173
4174 if(0) SWIG_fail{goto fail;};
4175
4176fail:
4177 lua_error(L);
4178 return SWIG_arg;
4179}
4180
4181
4182static int _wrap_CoreSession_session_set(lua_State* L) {
4183 int SWIG_arg = -1;
4184 CoreSession *arg1 = (CoreSession *) 0 ;
4185 switch_core_session_t *arg2 = (switch_core_session_t *) 0 ;
4186
4187 SWIG_check_num_args("session",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","session",2,2,lua_gettop
(L)); goto fail;}
4188 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("session",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "session",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4189 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("session",2,"switch_core_session_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "session",2,"switch_core_session_t *",SWIG_Lua_typename(L,2
)); goto fail;}
;
4190
4191 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4192 SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_session_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4193 }
4194
4195
4196 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_core_session_t,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[18],0x1
) >= 0)
){
4197 SWIG_fail_ptr("CoreSession_session_set",2,SWIGTYPE_p_switch_core_session_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_session_set",2,(swig_types[18] && swig_types
[18]->str)?swig_types[18]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
4198 }
4199
4200 if (arg1) (arg1)->session = arg2;
4201
4202 SWIG_arg=0;
4203
4204 return SWIG_arg;
4205
4206 if(0) SWIG_fail{goto fail;};
4207
4208fail:
4209 lua_error(L);
4210 return SWIG_arg;
4211}
4212
4213
4214static int _wrap_CoreSession_session_get(lua_State* L) {
4215 int SWIG_arg = -1;
4216 CoreSession *arg1 = (CoreSession *) 0 ;
4217 switch_core_session_t *result = 0 ;
4218
4219 SWIG_check_num_args("session",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","session",1,1,lua_gettop
(L)); goto fail;}
4220 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("session",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "session",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4221
4222 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4223 SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_session_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4224 }
4225
4226 result = (switch_core_session_t *) ((arg1)->session);
4227 SWIG_arg=0;
4228 SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[18], 0); SWIG_arg++;
4229 return SWIG_arg;
4230
4231 if(0) SWIG_fail{goto fail;};
4232
4233fail:
4234 lua_error(L);
4235 return SWIG_arg;
4236}
4237
4238
4239static int _wrap_CoreSession_channel_set(lua_State* L) {
4240 int SWIG_arg = -1;
4241 CoreSession *arg1 = (CoreSession *) 0 ;
4242 switch_channel_t *arg2 = (switch_channel_t *) 0 ;
4243
4244 SWIG_check_num_args("channel",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","channel",2,2,lua_gettop
(L)); goto fail;}
4245 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("channel",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "channel",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4246 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("channel",2,"switch_channel_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "channel",2,"switch_channel_t *",SWIG_Lua_typename(L,2)); goto
fail;}
;
4247
4248 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4249 SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_channel_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4250 }
4251
4252
4253 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_channel_t,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[17],0x1
) >= 0)
){
4254 SWIG_fail_ptr("CoreSession_channel_set",2,SWIGTYPE_p_switch_channel_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_channel_set",2,(swig_types[17] && swig_types
[17]->str)?swig_types[17]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
4255 }
4256
4257 if (arg1) (arg1)->channel = arg2;
4258
4259 SWIG_arg=0;
4260
4261 return SWIG_arg;
4262
4263 if(0) SWIG_fail{goto fail;};
4264
4265fail:
4266 lua_error(L);
4267 return SWIG_arg;
4268}
4269
4270
4271static int _wrap_CoreSession_channel_get(lua_State* L) {
4272 int SWIG_arg = -1;
4273 CoreSession *arg1 = (CoreSession *) 0 ;
4274 switch_channel_t *result = 0 ;
4275
4276 SWIG_check_num_args("channel",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","channel",1,1,lua_gettop
(L)); goto fail;}
4277 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("channel",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "channel",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4278
4279 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4280 SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_channel_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4281 }
4282
4283 result = (switch_channel_t *) ((arg1)->channel);
4284 SWIG_arg=0;
4285 SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[17], 0); SWIG_arg++;
4286 return SWIG_arg;
4287
4288 if(0) SWIG_fail{goto fail;};
4289
4290fail:
4291 lua_error(L);
4292 return SWIG_arg;
4293}
4294
4295
4296static int _wrap_CoreSession_flags_set(lua_State* L) {
4297 int SWIG_arg = -1;
4298 CoreSession *arg1 = (CoreSession *) 0 ;
4299 unsigned int arg2 ;
4300
4301 SWIG_check_num_args("flags",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","flags",2,2,lua_gettop
(L)); goto fail;}
4302 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("flags",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "flags",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4303 if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "flags",2,"unsigned int",SWIG_Lua_typename(L,2)); goto fail
;}
;
4304
4305 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4306 SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_flags_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4307 }
4308
4309 arg2 = (unsigned int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
4310 if (arg1) (arg1)->flags = arg2;
4311
4312 SWIG_arg=0;
4313
4314 return SWIG_arg;
4315
4316 if(0) SWIG_fail{goto fail;};
4317
4318fail:
4319 lua_error(L);
4320 return SWIG_arg;
4321}
4322
4323
4324static int _wrap_CoreSession_flags_get(lua_State* L) {
4325 int SWIG_arg = -1;
4326 CoreSession *arg1 = (CoreSession *) 0 ;
4327 unsigned int result;
4328
4329 SWIG_check_num_args("flags",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","flags",1,1,lua_gettop
(L)); goto fail;}
4330 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("flags",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "flags",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4331
4332 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4333 SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_flags_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4334 }
4335
4336 result = (unsigned int) ((arg1)->flags);
4337 SWIG_arg=0;
4338 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4339 return SWIG_arg;
4340
4341 if(0) SWIG_fail{goto fail;};
4342
4343fail:
4344 lua_error(L);
4345 return SWIG_arg;
4346}
4347
4348
4349static int _wrap_CoreSession_allocated_set(lua_State* L) {
4350 int SWIG_arg = -1;
4351 CoreSession *arg1 = (CoreSession *) 0 ;
4352 int arg2 ;
4353
4354 SWIG_check_num_args("allocated",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","allocated",2,2
,lua_gettop(L)); goto fail;}
4355 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("allocated",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "allocated",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4356 if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "allocated",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
4357
4358 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4359 SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_allocated_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4360 }
4361
4362 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
4363 if (arg1) (arg1)->allocated = arg2;
4364
4365 SWIG_arg=0;
4366
4367 return SWIG_arg;
4368
4369 if(0) SWIG_fail{goto fail;};
4370
4371fail:
4372 lua_error(L);
4373 return SWIG_arg;
4374}
4375
4376
4377static int _wrap_CoreSession_allocated_get(lua_State* L) {
4378 int SWIG_arg = -1;
4379 CoreSession *arg1 = (CoreSession *) 0 ;
4380 int result;
4381
4382 SWIG_check_num_args("allocated",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","allocated",1,1
,lua_gettop(L)); goto fail;}
4383 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("allocated",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "allocated",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4384
4385 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4386 SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_allocated_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4387 }
4388
4389 result = (int) ((arg1)->allocated);
4390 SWIG_arg=0;
4391 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4392 return SWIG_arg;
4393
4394 if(0) SWIG_fail{goto fail;};
4395
4396fail:
4397 lua_error(L);
4398 return SWIG_arg;
4399}
4400
4401
4402static int _wrap_CoreSession_cb_state_set(lua_State* L) {
4403 int SWIG_arg = -1;
4404 CoreSession *arg1 = (CoreSession *) 0 ;
4405 input_callback_state *arg2 = (input_callback_state *) 0 ;
4406
4407 SWIG_check_num_args("cb_state",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_state",2,2,
lua_gettop(L)); goto fail;}
4408 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_state",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_state",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4409 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("cb_state",2,"input_callback_state *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_state",2,"input_callback_state *",SWIG_Lua_typename(L,2
)); goto fail;}
;
4410
4411 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4412 SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cb_state_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4413 }
4414
4415
4416 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_input_callback_state,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[10],0) >=
0)
){
4417 SWIG_fail_ptr("CoreSession_cb_state_set",2,SWIGTYPE_p_input_callback_state){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cb_state_set",2,(swig_types[10] && swig_types
[10]->str)?swig_types[10]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
4418 }
4419
4420 if (arg1) (arg1)->cb_state = *arg2;
4421
4422 SWIG_arg=0;
4423
4424 return SWIG_arg;
4425
4426 if(0) SWIG_fail{goto fail;};
4427
4428fail:
4429 lua_error(L);
4430 return SWIG_arg;
4431}
4432
4433
4434static int _wrap_CoreSession_cb_state_get(lua_State* L) {
4435 int SWIG_arg = -1;
4436 CoreSession *arg1 = (CoreSession *) 0 ;
4437 input_callback_state *result = 0 ;
4438
4439 SWIG_check_num_args("cb_state",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_state",1,1,
lua_gettop(L)); goto fail;}
4440 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_state",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_state",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4441
4442 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4443 SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cb_state_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4444 }
4445
4446 result = (input_callback_state *)& ((arg1)->cb_state);
4447 SWIG_arg=0;
4448 SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[10], 0); SWIG_arg++;
4449 return SWIG_arg;
4450
4451 if(0) SWIG_fail{goto fail;};
4452
4453fail:
4454 lua_error(L);
4455 return SWIG_arg;
4456}
4457
4458
4459static int _wrap_CoreSession_hook_state_set(lua_State* L) {
4460 int SWIG_arg = -1;
4461 CoreSession *arg1 = (CoreSession *) 0 ;
4462 switch_channel_state_t arg2 ;
4463 switch_channel_state_t *argp2 ;
4464
4465 SWIG_check_num_args("hook_state",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hook_state",2,
2,lua_gettop(L)); goto fail;}
4466 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hook_state",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hook_state",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4467 if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hook_state",2,"switch_channel_state_t",SWIG_Lua_typename(L
,2)); goto fail;}
;
4468
4469 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4470 SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hook_state_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4471 }
4472
4473
4474 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_channel_state_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[16],0)
>= 0)
){
4475 SWIG_fail_ptr("CoreSession_hook_state_set",2,SWIGTYPE_p_switch_channel_state_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hook_state_set",2,(swig_types[16] && swig_types
[16]->str)?swig_types[16]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
4476 }
4477 arg2 = *argp2;
4478
4479 if (arg1) (arg1)->hook_state = arg2;
4480
4481 SWIG_arg=0;
4482
4483 return SWIG_arg;
4484
4485 if(0) SWIG_fail{goto fail;};
4486
4487fail:
4488 lua_error(L);
4489 return SWIG_arg;
4490}
4491
4492
4493static int _wrap_CoreSession_hook_state_get(lua_State* L) {
4494 int SWIG_arg = -1;
4495 CoreSession *arg1 = (CoreSession *) 0 ;
4496 switch_channel_state_t result;
4497
4498 SWIG_check_num_args("hook_state",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hook_state",1,
1,lua_gettop(L)); goto fail;}
4499 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hook_state",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hook_state",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4500
4501 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4502 SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hook_state_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4503 }
4504
4505 result = ((arg1)->hook_state);
4506 SWIG_arg=0;
4507 {
4508 switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result);
4509 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[16], 1)
; SWIG_arg++;
4510 }
4511 return SWIG_arg;
4512
4513 if(0) SWIG_fail{goto fail;};
4514
4515fail:
4516 lua_error(L);
4517 return SWIG_arg;
4518}
4519
4520
4521static int _wrap_CoreSession_cause_set(lua_State* L) {
4522 int SWIG_arg = -1;
4523 CoreSession *arg1 = (CoreSession *) 0 ;
4524 switch_call_cause_t arg2 ;
4525 switch_call_cause_t *argp2 ;
4526
4527 SWIG_check_num_args("cause",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cause",2,2,lua_gettop
(L)); goto fail;}
4528 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cause",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cause",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4529 if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cause",2,"switch_call_cause_t",SWIG_Lua_typename(L,2)); goto
fail;}
;
4530
4531 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4532 SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cause_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4533 }
4534
4535
4536 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_call_cause_t,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&argp2,swig_types[15],0)
>= 0)
){
4537 SWIG_fail_ptr("CoreSession_cause_set",2,SWIGTYPE_p_switch_call_cause_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cause_set",2,(swig_types[15] && swig_types
[15]->str)?swig_types[15]->str:"void*",SWIG_Lua_typename
(L,2)); goto fail;}
;
4538 }
4539 arg2 = *argp2;
4540
4541 if (arg1) (arg1)->cause = arg2;
4542
4543 SWIG_arg=0;
4544
4545 return SWIG_arg;
4546
4547 if(0) SWIG_fail{goto fail;};
4548
4549fail:
4550 lua_error(L);
4551 return SWIG_arg;
4552}
4553
4554
4555static int _wrap_CoreSession_cause_get(lua_State* L) {
4556 int SWIG_arg = -1;
4557 CoreSession *arg1 = (CoreSession *) 0 ;
4558 switch_call_cause_t result;
4559
4560 SWIG_check_num_args("cause",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cause",1,1,lua_gettop
(L)); goto fail;}
4561 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cause",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cause",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4562
4563 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4564 SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_cause_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4565 }
4566
4567 result = ((arg1)->cause);
4568 SWIG_arg=0;
4569 {
4570 switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result);
4571 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[15], 1)
; SWIG_arg++;
4572 }
4573 return SWIG_arg;
4574
4575 if(0) SWIG_fail{goto fail;};
4576
4577fail:
4578 lua_error(L);
4579 return SWIG_arg;
4580}
4581
4582
4583static int _wrap_CoreSession_uuid_set(lua_State* L) {
4584 int SWIG_arg = -1;
4585 CoreSession *arg1 = (CoreSession *) 0 ;
4586 char *arg2 = (char *) 0 ;
4587
4588 SWIG_check_num_args("uuid",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","uuid",2,2,lua_gettop
(L)); goto fail;}
4589 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("uuid",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "uuid",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4590 if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "uuid",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
4591
4592 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4593 SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_uuid_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4594 }
4595
4596 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4597 {
4598 if (arg1->uuid) delete [] arg1->uuid;
4599 if (arg2) {
4600 arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]);
4601 strcpy((char *)arg1->uuid, (const char *)arg2);
4602 } else {
4603 arg1->uuid = 0;
4604 }
4605 }
4606 SWIG_arg=0;
4607
4608 return SWIG_arg;
4609
4610 if(0) SWIG_fail{goto fail;};
4611
4612fail:
4613 lua_error(L);
4614 return SWIG_arg;
4615}
4616
4617
4618static int _wrap_CoreSession_uuid_get(lua_State* L) {
4619 int SWIG_arg = -1;
4620 CoreSession *arg1 = (CoreSession *) 0 ;
4621 char *result = 0 ;
4622
4623 SWIG_check_num_args("uuid",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","uuid",1,1,lua_gettop
(L)); goto fail;}
4624 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("uuid",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "uuid",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4625
4626 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4627 SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_uuid_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4628 }
4629
4630 result = (char *) ((arg1)->uuid);
4631 SWIG_arg=0;
4632 lua_pushstring(L,(const char*)result); SWIG_arg++;
4633 return SWIG_arg;
4634
4635 if(0) SWIG_fail{goto fail;};
4636
4637fail:
4638 lua_error(L);
4639 return SWIG_arg;
4640}
4641
4642
4643static int _wrap_CoreSession_tts_name_set(lua_State* L) {
4644 int SWIG_arg = -1;
4645 CoreSession *arg1 = (CoreSession *) 0 ;
4646 char *arg2 = (char *) 0 ;
4647
4648 SWIG_check_num_args("tts_name",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","tts_name",2,2,
lua_gettop(L)); goto fail;}
4649 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("tts_name",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "tts_name",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4650 if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "tts_name",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
4651
4652 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4653 SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_tts_name_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4654 }
4655
4656 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4657 {
4658 if (arg1->tts_name) delete [] arg1->tts_name;
4659 if (arg2) {
4660 arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]);
4661 strcpy((char *)arg1->tts_name, (const char *)arg2);
4662 } else {
4663 arg1->tts_name = 0;
4664 }
4665 }
4666 SWIG_arg=0;
4667
4668 return SWIG_arg;
4669
4670 if(0) SWIG_fail{goto fail;};
4671
4672fail:
4673 lua_error(L);
4674 return SWIG_arg;
4675}
4676
4677
4678static int _wrap_CoreSession_tts_name_get(lua_State* L) {
4679 int SWIG_arg = -1;
4680 CoreSession *arg1 = (CoreSession *) 0 ;
4681 char *result = 0 ;
4682
4683 SWIG_check_num_args("tts_name",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","tts_name",1,1,
lua_gettop(L)); goto fail;}
4684 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("tts_name",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "tts_name",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4685
4686 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4687 SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_tts_name_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4688 }
4689
4690 result = (char *) ((arg1)->tts_name);
4691 SWIG_arg=0;
4692 lua_pushstring(L,(const char*)result); SWIG_arg++;
4693 return SWIG_arg;
4694
4695 if(0) SWIG_fail{goto fail;};
4696
4697fail:
4698 lua_error(L);
4699 return SWIG_arg;
4700}
4701
4702
4703static int _wrap_CoreSession_voice_name_set(lua_State* L) {
4704 int SWIG_arg = -1;
4705 CoreSession *arg1 = (CoreSession *) 0 ;
4706 char *arg2 = (char *) 0 ;
4707
4708 SWIG_check_num_args("voice_name",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","voice_name",2,
2,lua_gettop(L)); goto fail;}
4709 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("voice_name",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "voice_name",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4710 if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "voice_name",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
4711
4712 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4713 SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_voice_name_set",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4714 }
4715
4716 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4717 {
4718 if (arg1->voice_name) delete [] arg1->voice_name;
4719 if (arg2) {
4720 arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]);
4721 strcpy((char *)arg1->voice_name, (const char *)arg2);
4722 } else {
4723 arg1->voice_name = 0;
4724 }
4725 }
4726 SWIG_arg=0;
4727
4728 return SWIG_arg;
4729
4730 if(0) SWIG_fail{goto fail;};
4731
4732fail:
4733 lua_error(L);
4734 return SWIG_arg;
4735}
4736
4737
4738static int _wrap_CoreSession_voice_name_get(lua_State* L) {
4739 int SWIG_arg = -1;
4740 CoreSession *arg1 = (CoreSession *) 0 ;
4741 char *result = 0 ;
4742
4743 SWIG_check_num_args("voice_name",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","voice_name",1,
1,lua_gettop(L)); goto fail;}
4744 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("voice_name",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "voice_name",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4745
4746 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4747 SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_voice_name_get",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4748 }
4749
4750 result = (char *) ((arg1)->voice_name);
4751 SWIG_arg=0;
4752 lua_pushstring(L,(const char*)result); SWIG_arg++;
4753 return SWIG_arg;
4754
4755 if(0) SWIG_fail{goto fail;};
4756
4757fail:
4758 lua_error(L);
4759 return SWIG_arg;
4760}
4761
4762
4763static int _wrap_CoreSession_insertFile(lua_State* L) {
4764 int SWIG_arg = -1;
4765 CoreSession *arg1 = (CoreSession *) 0 ;
4766 char *arg2 = (char *) 0 ;
4767 char *arg3 = (char *) 0 ;
4768 int arg4 ;
4769 int result;
4770
4771 SWIG_check_num_args("insertFile",4,4)if (lua_gettop(L)<4 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","insertFile",4,
4,lua_gettop(L)); goto fail;}
4772 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("insertFile",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "insertFile",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4773 if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "insertFile",2,"char const *",SWIG_Lua_typename(L,2)); goto
fail;}
;
4774 if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "insertFile",3,"char const *",SWIG_Lua_typename(L,3)); goto
fail;}
;
4775 if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "insertFile",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
4776
4777 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4778 SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_insertFile",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4779 }
4780
4781 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4782 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
4783 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
4784 result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4);
4785 SWIG_arg=0;
4786 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4787 return SWIG_arg;
4788
4789 if(0) SWIG_fail{goto fail;};
4790
4791fail:
4792 lua_error(L);
4793 return SWIG_arg;
4794}
4795
4796
4797static int _wrap_CoreSession_answer(lua_State* L) {
4798 int SWIG_arg = -1;
4799 CoreSession *arg1 = (CoreSession *) 0 ;
4800 int result;
4801
4802 SWIG_check_num_args("answer",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","answer",1,1,lua_gettop
(L)); goto fail;}
4803 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("answer",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "answer",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4804
4805 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4806 SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_answer",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4807 }
4808
4809 result = (int)(arg1)->answer();
4810 SWIG_arg=0;
4811 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4812 return SWIG_arg;
4813
4814 if(0) SWIG_fail{goto fail;};
4815
4816fail:
4817 lua_error(L);
4818 return SWIG_arg;
4819}
4820
4821
4822static int _wrap_CoreSession_preAnswer(lua_State* L) {
4823 int SWIG_arg = -1;
4824 CoreSession *arg1 = (CoreSession *) 0 ;
4825 int result;
4826
4827 SWIG_check_num_args("preAnswer",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","preAnswer",1,1
,lua_gettop(L)); goto fail;}
4828 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("preAnswer",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "preAnswer",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4829
4830 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4831 SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_preAnswer",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4832 }
4833
4834 result = (int)(arg1)->preAnswer();
4835 SWIG_arg=0;
4836 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
4837 return SWIG_arg;
4838
4839 if(0) SWIG_fail{goto fail;};
4840
4841fail:
4842 lua_error(L);
4843 return SWIG_arg;
4844}
4845
4846
4847static int _wrap_CoreSession_hangup(lua_State* L) {
4848 int SWIG_arg = -1;
4849 CoreSession *arg1 = (CoreSession *) 0 ;
4850 char *arg2 = (char *) "normal_clearing" ;
4851
4852 SWIG_check_num_args("hangup",1,2)if (lua_gettop(L)<1 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangup",1,2,lua_gettop
(L)); goto fail;}
4853 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangup",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
4854 if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
4855
4856 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4857 SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hangup",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4858 }
4859
4860 if(lua_gettop(L)>=2){
4861 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4862 }
4863 (arg1)->hangup((char const *)arg2);
4864 SWIG_arg=0;
4865
4866 return SWIG_arg;
4867
4868 if(0) SWIG_fail{goto fail;};
4869
4870fail:
4871 lua_error(L);
4872 return SWIG_arg;
4873}
4874
4875
4876static int _wrap_CoreSession_hangupState(lua_State* L) {
4877 int SWIG_arg = -1;
4878 CoreSession *arg1 = (CoreSession *) 0 ;
4879
4880 SWIG_check_num_args("hangupState",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangupState",1
,1,lua_gettop(L)); goto fail;}
4881 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangupState",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangupState",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4882
4883 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4884 SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hangupState",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4885 }
4886
4887 (arg1)->hangupState();
4888 SWIG_arg=0;
4889
4890 return SWIG_arg;
4891
4892 if(0) SWIG_fail{goto fail;};
4893
4894fail:
4895 lua_error(L);
4896 return SWIG_arg;
4897}
4898
4899
4900static int _wrap_CoreSession_setVariable(lua_State* L) {
4901 int SWIG_arg = -1;
4902 CoreSession *arg1 = (CoreSession *) 0 ;
4903 char *arg2 = (char *) 0 ;
4904 char *arg3 = (char *) 0 ;
4905
4906 SWIG_check_num_args("setVariable",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setVariable",3
,3,lua_gettop(L)); goto fail;}
4907 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setVariable",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setVariable",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4908 if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setVariable",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
4909 if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setVariable",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
4910
4911 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4912 SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setVariable",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4913 }
4914
4915 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4916 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
4917 (arg1)->setVariable(arg2,arg3);
4918 SWIG_arg=0;
4919
4920 return SWIG_arg;
4921
4922 if(0) SWIG_fail{goto fail;};
4923
4924fail:
4925 lua_error(L);
4926 return SWIG_arg;
4927}
4928
4929
4930static int _wrap_CoreSession_setPrivate(lua_State* L) {
4931 int SWIG_arg = -1;
4932 CoreSession *arg1 = (CoreSession *) 0 ;
4933 char *arg2 = (char *) 0 ;
4934 void *arg3 = (void *) 0 ;
4935
4936 SWIG_check_num_args("setPrivate",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setPrivate",3,
3,lua_gettop(L)); goto fail;}
4937 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setPrivate",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setPrivate",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4938 if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setPrivate",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
4939 if(!SWIG_isptrtype(L,3)(lua_isuserdata(L,3) || (lua_type(L, (3)) == 0))) SWIG_fail_arg("setPrivate",3,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setPrivate",3,"void *",SWIG_Lua_typename(L,3)); goto fail;
}
;
4940
4941 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4942 SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setPrivate",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4943 }
4944
4945 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4946 arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate")SWIG_Lua_MustGetPtr(L,3, 0,0, 3,"CoreSession_setPrivate");
4947 (arg1)->setPrivate(arg2,arg3);
4948 SWIG_arg=0;
4949
4950 return SWIG_arg;
4951
4952 if(0) SWIG_fail{goto fail;};
4953
4954fail:
4955 lua_error(L);
4956 return SWIG_arg;
4957}
4958
4959
4960static int _wrap_CoreSession_getPrivate(lua_State* L) {
4961 int SWIG_arg = -1;
4962 CoreSession *arg1 = (CoreSession *) 0 ;
4963 char *arg2 = (char *) 0 ;
4964 void *result = 0 ;
4965
4966 SWIG_check_num_args("getPrivate",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getPrivate",2,
2,lua_gettop(L)); goto fail;}
4967 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getPrivate",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getPrivate",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4968 if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getPrivate",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
4969
4970 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4971 SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getPrivate",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
4972 }
4973
4974 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
4975 result = (void *)(arg1)->getPrivate(arg2);
4976 SWIG_arg=0;
4977 SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[29], 0); SWIG_arg++;
4978 return SWIG_arg;
4979
4980 if(0) SWIG_fail{goto fail;};
4981
4982fail:
4983 lua_error(L);
4984 return SWIG_arg;
4985}
4986
4987
4988static int _wrap_CoreSession_getVariable(lua_State* L) {
4989 int SWIG_arg = -1;
4990 CoreSession *arg1 = (CoreSession *) 0 ;
4991 char *arg2 = (char *) 0 ;
4992 char *result = 0 ;
4993
4994 SWIG_check_num_args("getVariable",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getVariable",2
,2,lua_gettop(L)); goto fail;}
4995 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getVariable",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getVariable",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
4996 if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getVariable",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
4997
4998 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
4999 SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getVariable",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5000 }
5001
5002 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5003 result = (char *)(arg1)->getVariable(arg2);
5004 SWIG_arg=0;
5005 lua_pushstring(L,(const char*)result); SWIG_arg++;
5006 return SWIG_arg;
5007
5008 if(0) SWIG_fail{goto fail;};
5009
5010fail:
5011 lua_error(L);
5012 return SWIG_arg;
5013}
5014
5015
5016static int _wrap_CoreSession_process_callback_result(lua_State* L) {
5017 int SWIG_arg = -1;
5018 CoreSession *arg1 = (CoreSession *) 0 ;
5019 char *arg2 = (char *) 0 ;
5020 switch_status_t result;
5021
5022 SWIG_check_num_args("process_callback_result",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","process_callback_result"
,2,2,lua_gettop(L)); goto fail;}
5023 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("process_callback_result",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "process_callback_result",1,"CoreSession *",SWIG_Lua_typename
(L,1)); goto fail;}
;
5024 if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "process_callback_result",2,"char *",SWIG_Lua_typename(L,2)
); goto fail;}
;
5025
5026 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5027 SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_process_callback_result",1,(swig_types[1] &&
swig_types[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
5028 }
5029
5030 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5031 result = (arg1)->process_callback_result(arg2);
5032 SWIG_arg=0;
5033 {
5034 switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
5035 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[26], 1)
; SWIG_arg++;
5036 }
5037 return SWIG_arg;
5038
5039 if(0) SWIG_fail{goto fail;};
5040
5041fail:
5042 lua_error(L);
5043 return SWIG_arg;
5044}
5045
5046
5047static int _wrap_CoreSession_say(lua_State* L) {
5048 int SWIG_arg = -1;
5049 CoreSession *arg1 = (CoreSession *) 0 ;
5050 char *arg2 = (char *) 0 ;
5051 char *arg3 = (char *) 0 ;
5052 char *arg4 = (char *) 0 ;
5053 char *arg5 = (char *) 0 ;
5054 char *arg6 = (char *) NULL__null ;
5055
5056 SWIG_check_num_args("say",5,6)if (lua_gettop(L)<5 || lua_gettop(L)>6) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","say",5,6,lua_gettop
(L)); goto fail;}
5057 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("say",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail;
}
;
5058 if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",2,"char const *",SWIG_Lua_typename(L,2)); goto fail;}
;
5059 if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",3,"char const *",SWIG_Lua_typename(L,3)); goto fail;}
;
5060 if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",4,"char const *",SWIG_Lua_typename(L,4)); goto fail;}
;
5061 if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",5,"char const *",SWIG_Lua_typename(L,5)); goto fail;}
;
5062 if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "say",6,"char const *",SWIG_Lua_typename(L,6)); goto fail;}
;
5063
5064 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5065 SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_say",1,(swig_types[1] && swig_types[1]
->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
5066 }
5067
5068 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5069 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5070 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
5071 arg5 = (char *)lua_tostring(L, 5)lua_tolstring(L, (5), __null);
5072 if(lua_gettop(L)>=6){
5073 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
5074 }
5075 (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
5076 SWIG_arg=0;
5077
5078 return SWIG_arg;
5079
5080 if(0) SWIG_fail{goto fail;};
5081
5082fail:
5083 lua_error(L);
5084 return SWIG_arg;
5085}
5086
5087
5088static int _wrap_CoreSession_sayPhrase(lua_State* L) {
5089 int SWIG_arg = -1;
5090 CoreSession *arg1 = (CoreSession *) 0 ;
5091 char *arg2 = (char *) 0 ;
5092 char *arg3 = (char *) "" ;
5093 char *arg4 = (char *) NULL__null ;
5094
5095 SWIG_check_num_args("sayPhrase",2,4)if (lua_gettop(L)<2 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","sayPhrase",2,4
,lua_gettop(L)); goto fail;}
5096 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("sayPhrase",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sayPhrase",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5097 if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sayPhrase",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
5098 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sayPhrase",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
5099 if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sayPhrase",4,"char const *",SWIG_Lua_typename(L,4)); goto fail
;}
;
5100
5101 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5102 SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_sayPhrase",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5103 }
5104
5105 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5106 if(lua_gettop(L)>=3){
5107 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5108 }
5109 if(lua_gettop(L)>=4){
5110 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
5111 }
5112 (arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4);
5113 SWIG_arg=0;
5114
5115 return SWIG_arg;
5116
5117 if(0) SWIG_fail{goto fail;};
5118
5119fail:
5120 lua_error(L);
5121 return SWIG_arg;
5122}
5123
5124
5125static int _wrap_CoreSession_hangupCause(lua_State* L) {
5126 int SWIG_arg = -1;
5127 CoreSession *arg1 = (CoreSession *) 0 ;
5128 char *result = 0 ;
5129
5130 SWIG_check_num_args("hangupCause",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangupCause",1
,1,lua_gettop(L)); goto fail;}
5131 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangupCause",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangupCause",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5132
5133 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5134 SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_hangupCause",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5135 }
5136
5137 result = (char *)(arg1)->hangupCause();
5138 SWIG_arg=0;
5139 lua_pushstring(L,(const char*)result); SWIG_arg++;
5140 return SWIG_arg;
5141
5142 if(0) SWIG_fail{goto fail;};
5143
5144fail:
5145 lua_error(L);
5146 return SWIG_arg;
5147}
5148
5149
5150static int _wrap_CoreSession_getState(lua_State* L) {
5151 int SWIG_arg = -1;
5152 CoreSession *arg1 = (CoreSession *) 0 ;
5153 char *result = 0 ;
5154
5155 SWIG_check_num_args("getState",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getState",1,1,
lua_gettop(L)); goto fail;}
5156 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getState",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getState",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5157
5158 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5159 SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getState",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5160 }
5161
5162 result = (char *)(arg1)->getState();
5163 SWIG_arg=0;
5164 lua_pushstring(L,(const char*)result); SWIG_arg++;
5165 return SWIG_arg;
5166
5167 if(0) SWIG_fail{goto fail;};
5168
5169fail:
5170 lua_error(L);
5171 return SWIG_arg;
5172}
5173
5174
5175static int _wrap_CoreSession_recordFile(lua_State* L) {
5176 int SWIG_arg = -1;
5177 CoreSession *arg1 = (CoreSession *) 0 ;
5178 char *arg2 = (char *) 0 ;
5179 int arg3 = (int) 0 ;
5180 int arg4 = (int) 0 ;
5181 int arg5 = (int) 0 ;
5182 int result;
5183
5184 SWIG_check_num_args("recordFile",2,5)if (lua_gettop(L)<2 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","recordFile",2,
5,lua_gettop(L)); goto fail;}
5185 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("recordFile",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "recordFile",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5186 if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "recordFile",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
5187 if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "recordFile",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
5188 if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "recordFile",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
5189 if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "recordFile",5,"int",SWIG_Lua_typename(L,5)); goto fail;}
;
5190
5191 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5192 SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_recordFile",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5193 }
5194
5195 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5196 if(lua_gettop(L)>=3){
5197 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5198 }
5199 if(lua_gettop(L)>=4){
5200 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
5201 }
5202 if(lua_gettop(L)>=5){
5203 arg5 = (int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
5204 }
5205 result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5);
5206 SWIG_arg=0;
5207 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5208 return SWIG_arg;
5209
5210 if(0) SWIG_fail{goto fail;};
5211
5212fail:
5213 lua_error(L);
5214 return SWIG_arg;
5215}
5216
5217
5218static int _wrap_CoreSession_originate(lua_State* L) {
5219 int SWIG_arg = -1;
5220 CoreSession *arg1 = (CoreSession *) 0 ;
5221 CoreSession *arg2 = (CoreSession *) 0 ;
5222 char *arg3 = (char *) 0 ;
5223 int arg4 = (int) 60 ;
5224 switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL__null ;
5225 int result;
5226
5227 SWIG_check_num_args("originate",3,5)if (lua_gettop(L)<3 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","originate",3,5
,lua_gettop(L)); goto fail;}
5228 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("originate",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5229 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("originate",2,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",2,"CoreSession *",SWIG_Lua_typename(L,2)); goto
fail;}
;
5230 if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
5231 if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
5232 if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)(lua_isuserdata(L,5) || (lua_type(L, (5)) == 0))) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",5,"switch_state_handler_table_t *",SWIG_Lua_typename
(L,5)); goto fail;}
;
5233
5234 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5235 SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_originate",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5236 }
5237
5238
5239 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
5240 SWIG_fail_ptr("CoreSession_originate",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_originate",2,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,2)); goto fail;}
;
5241 }
5242
5243 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5244 if(lua_gettop(L)>=4){
5245 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
5246 }
5247 if(lua_gettop(L)>=5){
5248 if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_switch_state_handler_table_t,0))(SWIG_Lua_ConvertPtr(L,5,(void**)&arg5,swig_types[25],0) >=
0)
){
5249 SWIG_fail_ptr("CoreSession_originate",5,SWIGTYPE_p_switch_state_handler_table_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_originate",5,(swig_types[25] && swig_types
[25]->str)?swig_types[25]->str:"void*",SWIG_Lua_typename
(L,5)); goto fail;}
;
5250 }
5251 }
5252 result = (int)(arg1)->originate(arg2,arg3,arg4,arg5);
5253 SWIG_arg=0;
5254 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5255 return SWIG_arg;
5256
5257 if(0) SWIG_fail{goto fail;};
5258
5259fail:
5260 lua_error(L);
5261 return SWIG_arg;
5262}
5263
5264
5265static int _wrap_CoreSession_destroy(lua_State* L) {
5266 int SWIG_arg = -1;
5267 CoreSession *arg1 = (CoreSession *) 0 ;
5268
5269 SWIG_check_num_args("destroy",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","destroy",1,1,lua_gettop
(L)); goto fail;}
5270 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("destroy",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "destroy",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5271
5272 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5273 SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_destroy",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5274 }
5275
5276 (arg1)->destroy();
5277 SWIG_arg=0;
5278
5279 return SWIG_arg;
5280
5281 if(0) SWIG_fail{goto fail;};
5282
5283fail:
5284 lua_error(L);
5285 return SWIG_arg;
5286}
5287
5288
5289static int _wrap_CoreSession_setDTMFCallback(lua_State* L) {
5290 int SWIG_arg = -1;
5291 CoreSession *arg1 = (CoreSession *) 0 ;
5292 void *arg2 = (void *) 0 ;
5293 char *arg3 = (char *) 0 ;
5294
5295 SWIG_check_num_args("setDTMFCallback",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setDTMFCallback"
,3,3,lua_gettop(L)); goto fail;}
5296 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setDTMFCallback",1,"CoreSession *",SWIG_Lua_typename(L,1))
; goto fail;}
;
5297 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("setDTMFCallback",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setDTMFCallback",2,"void *",SWIG_Lua_typename(L,2)); goto fail
;}
;
5298 if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setDTMFCallback",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
5299
5300 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5301 SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setDTMFCallback",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5302 }
5303
5304 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"CoreSession_setDTMFCallback"
)
;
5305 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5306 (arg1)->setDTMFCallback(arg2,arg3);
5307 SWIG_arg=0;
5308
5309 return SWIG_arg;
5310
5311 if(0) SWIG_fail{goto fail;};
5312
5313fail:
5314 lua_error(L);
5315 return SWIG_arg;
5316}
5317
5318
5319static int _wrap_CoreSession_speak(lua_State* L) {
5320 int SWIG_arg = -1;
5321 CoreSession *arg1 = (CoreSession *) 0 ;
5322 char *arg2 = (char *) 0 ;
5323 int result;
5324
5325 SWIG_check_num_args("speak",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","speak",2,2,lua_gettop
(L)); goto fail;}
5326 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("speak",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "speak",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5327 if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "speak",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
5328
5329 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5330 SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_speak",1,(swig_types[1] && swig_types[
1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
5331 }
5332
5333 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5334 result = (int)(arg1)->speak(arg2);
5335 SWIG_arg=0;
5336 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5337 return SWIG_arg;
5338
5339 if(0) SWIG_fail{goto fail;};
5340
5341fail:
5342 lua_error(L);
5343 return SWIG_arg;
5344}
5345
5346
5347static int _wrap_CoreSession_set_tts_parms(lua_State* L) {
5348 int SWIG_arg = -1;
5349 CoreSession *arg1 = (CoreSession *) 0 ;
5350 char *arg2 = (char *) 0 ;
5351 char *arg3 = (char *) 0 ;
5352
5353 SWIG_check_num_args("set_tts_parms",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","set_tts_parms"
,3,3,lua_gettop(L)); goto fail;}
5354 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("set_tts_parms",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_parms",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5355 if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_parms",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
5356 if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_parms",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
5357
5358 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5359 SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_set_tts_parms",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5360 }
5361
5362 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5363 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5364 (arg1)->set_tts_parms(arg2,arg3);
5365 SWIG_arg=0;
5366
5367 return SWIG_arg;
5368
5369 if(0) SWIG_fail{goto fail;};
5370
5371fail:
5372 lua_error(L);
5373 return SWIG_arg;
5374}
5375
5376
5377static int _wrap_CoreSession_set_tts_params(lua_State* L) {
5378 int SWIG_arg = -1;
5379 CoreSession *arg1 = (CoreSession *) 0 ;
5380 char *arg2 = (char *) 0 ;
5381 char *arg3 = (char *) 0 ;
5382
5383 SWIG_check_num_args("set_tts_params",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","set_tts_params"
,3,3,lua_gettop(L)); goto fail;}
5384 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("set_tts_params",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_params",1,"CoreSession *",SWIG_Lua_typename(L,1));
goto fail;}
;
5385 if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_params",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
5386 if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "set_tts_params",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
5387
5388 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5389 SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_set_tts_params",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5390 }
5391
5392 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5393 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5394 (arg1)->set_tts_params(arg2,arg3);
5395 SWIG_arg=0;
5396
5397 return SWIG_arg;
5398
5399 if(0) SWIG_fail{goto fail;};
5400
5401fail:
5402 lua_error(L);
5403 return SWIG_arg;
5404}
5405
5406
5407static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) {
5408 int SWIG_arg = -1;
5409 CoreSession *arg1 = (CoreSession *) 0 ;
5410 int arg2 ;
5411 int result;
5412
5413 SWIG_check_num_args("collectDigits",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","collectDigits"
,2,2,lua_gettop(L)); goto fail;}
5414 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("collectDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "collectDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5415 if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "collectDigits",2,"int",SWIG_Lua_typename(L,2)); goto fail;
}
;
5416
5417 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5418 SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_collectDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5419 }
5420
5421 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5422 result = (int)(arg1)->collectDigits(arg2);
5423 SWIG_arg=0;
5424 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5425 return SWIG_arg;
5426
5427 if(0) SWIG_fail{goto fail;};
5428
5429fail:
5430 lua_error(L);
5431 return SWIG_arg;
5432}
5433
5434
5435static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) {
5436 int SWIG_arg = -1;
5437 CoreSession *arg1 = (CoreSession *) 0 ;
5438 int arg2 ;
5439 int arg3 ;
5440 int result;
5441
5442 SWIG_check_num_args("collectDigits",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","collectDigits"
,3,3,lua_gettop(L)); goto fail;}
5443 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("collectDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "collectDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5444 if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "collectDigits",2,"int",SWIG_Lua_typename(L,2)); goto fail;
}
;
5445 if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "collectDigits",3,"int",SWIG_Lua_typename(L,3)); goto fail;
}
;
5446
5447 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5448 SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_collectDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5449 }
5450
5451 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5452 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5453 result = (int)(arg1)->collectDigits(arg2,arg3);
5454 SWIG_arg=0;
5455 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5456 return SWIG_arg;
5457
5458 if(0) SWIG_fail{goto fail;};
5459
5460fail:
5461 lua_error(L);
5462 return SWIG_arg;
5463}
5464
5465
5466static int _wrap_CoreSession_collectDigits(lua_State* L) {
5467 int argc;
5468 int argv[4]={
5469 1,2,3,4
5470 };
5471
5472 argc = lua_gettop(L);
5473 if (argc == 2) {
5474 int _v;
5475 {
5476 void *ptr;
5477 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[1
],0)
) {
5478 _v = 0;
5479 } else {
5480 _v = 1;
5481 }
5482 }
5483 if (_v) {
5484 {
5485 _v = lua_isnumber(L,argv[1]);
5486 }
5487 if (_v) {
5488 return _wrap_CoreSession_collectDigits__SWIG_0(L);
5489 }
5490 }
5491 }
5492 if (argc == 3) {
5493 int _v;
5494 {
5495 void *ptr;
5496 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[1
],0)
) {
5497 _v = 0;
5498 } else {
5499 _v = 1;
5500 }
5501 }
5502 if (_v) {
5503 {
5504 _v = lua_isnumber(L,argv[1]);
5505 }
5506 if (_v) {
5507 {
5508 _v = lua_isnumber(L,argv[2]);
5509 }
5510 if (_v) {
5511 return _wrap_CoreSession_collectDigits__SWIG_1(L);
5512 }
5513 }
5514 }
5515 }
5516
5517 lua_pushstring(L,"No matching function for overloaded 'CoreSession_collectDigits'");
5518 lua_error(L);return 0;
5519}
5520
5521
5522static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) {
5523 int SWIG_arg = -1;
5524 CoreSession *arg1 = (CoreSession *) 0 ;
5525 int arg2 ;
5526 char *arg3 = (char *) 0 ;
5527 int arg4 ;
5528 char *result = 0 ;
5529
5530 SWIG_check_num_args("getDigits",4,4)if (lua_gettop(L)<4 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getDigits",4,4
,lua_gettop(L)); goto fail;}
5531 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5532 if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
5533 if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
5534 if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
5535
5536 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5537 SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5538 }
5539
5540 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5541 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5542 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
5543 result = (char *)(arg1)->getDigits(arg2,arg3,arg4);
5544 SWIG_arg=0;
5545 lua_pushstring(L,(const char*)result); SWIG_arg++;
5546 return SWIG_arg;
5547
5548 if(0) SWIG_fail{goto fail;};
5549
5550fail:
5551 lua_error(L);
5552 return SWIG_arg;
5553}
5554
5555
5556static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) {
5557 int SWIG_arg = -1;
5558 CoreSession *arg1 = (CoreSession *) 0 ;
5559 int arg2 ;
5560 char *arg3 = (char *) 0 ;
5561 int arg4 ;
5562 int arg5 ;
5563 char *result = 0 ;
5564
5565 SWIG_check_num_args("getDigits",5,5)if (lua_gettop(L)<5 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getDigits",5,5
,lua_gettop(L)); goto fail;}
5566 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5567 if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
5568 if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
5569 if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
5570 if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getDigits",5,"int",SWIG_Lua_typename(L,5)); goto fail;}
;
5571
5572 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5573 SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5574 }
5575
5576 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5577 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5578 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
5579 arg5 = (int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
5580 result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5);
5581 SWIG_arg=0;
5582 lua_pushstring(L,(const char*)result); SWIG_arg++;
5583 return SWIG_arg;
5584
5585 if(0) SWIG_fail{goto fail;};
5586
5587fail:
5588 lua_error(L);
5589 return SWIG_arg;
5590}
5591
5592
5593static int _wrap_CoreSession_getDigits(lua_State* L) {
5594 int argc;
5595 int argv[6]={
5596 1,2,3,4,5,6
5597 };
5598
5599 argc = lua_gettop(L);
5600 if (argc == 4) {
5601 int _v;
5602 {
5603 void *ptr;
5604 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[1
],0)
) {
5605 _v = 0;
5606 } else {
5607 _v = 1;
5608 }
5609 }
5610 if (_v) {
5611 {
5612 _v = lua_isnumber(L,argv[1]);
5613 }
5614 if (_v) {
5615 {
5616 _v = lua_isstring(L,argv[2]);
5617 }
5618 if (_v) {
5619 {
5620 _v = lua_isnumber(L,argv[3]);
5621 }
5622 if (_v) {
5623 return _wrap_CoreSession_getDigits__SWIG_0(L);
5624 }
5625 }
5626 }
5627 }
5628 }
5629 if (argc == 5) {
5630 int _v;
5631 {
5632 void *ptr;
5633 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[1
],0)
) {
5634 _v = 0;
5635 } else {
5636 _v = 1;
5637 }
5638 }
5639 if (_v) {
5640 {
5641 _v = lua_isnumber(L,argv[1]);
5642 }
5643 if (_v) {
5644 {
5645 _v = lua_isstring(L,argv[2]);
5646 }
5647 if (_v) {
5648 {
5649 _v = lua_isnumber(L,argv[3]);
5650 }
5651 if (_v) {
5652 {
5653 _v = lua_isnumber(L,argv[4]);
5654 }
5655 if (_v) {
5656 return _wrap_CoreSession_getDigits__SWIG_1(L);
5657 }
5658 }
5659 }
5660 }
5661 }
5662 }
5663
5664 lua_pushstring(L,"No matching function for overloaded 'CoreSession_getDigits'");
5665 lua_error(L);return 0;
5666}
5667
5668
5669static int _wrap_CoreSession_transfer(lua_State* L) {
5670 int SWIG_arg = -1;
5671 CoreSession *arg1 = (CoreSession *) 0 ;
5672 char *arg2 = (char *) 0 ;
5673 char *arg3 = (char *) NULL__null ;
5674 char *arg4 = (char *) NULL__null ;
5675 int result;
5676
5677 SWIG_check_num_args("transfer",2,4)if (lua_gettop(L)<2 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","transfer",2,4,
lua_gettop(L)); goto fail;}
5678 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("transfer",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "transfer",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5679 if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "transfer",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
5680 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "transfer",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
5681 if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "transfer",4,"char *",SWIG_Lua_typename(L,4)); goto fail;}
;
5682
5683 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5684 SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_transfer",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5685 }
5686
5687 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5688 if(lua_gettop(L)>=3){
5689 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
5690 }
5691 if(lua_gettop(L)>=4){
5692 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
5693 }
5694 result = (int)(arg1)->transfer(arg2,arg3,arg4);
5695 SWIG_arg=0;
5696 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5697 return SWIG_arg;
5698
5699 if(0) SWIG_fail{goto fail;};
5700
5701fail:
5702 lua_error(L);
5703 return SWIG_arg;
5704}
5705
5706
5707static int _wrap_CoreSession_read(lua_State* L) {
5708 int SWIG_arg = -1;
5709 CoreSession *arg1 = (CoreSession *) 0 ;
5710 int arg2 ;
5711 int arg3 ;
5712 char *arg4 = (char *) 0 ;
5713 int arg5 ;
5714 char *arg6 = (char *) 0 ;
5715 int arg7 = (int) 0 ;
5716 char *result = 0 ;
5717
5718 SWIG_check_num_args("read",6,7)if (lua_gettop(L)<6 || lua_gettop(L)>7) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","read",6,7,lua_gettop
(L)); goto fail;}
5719 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("read",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5720 if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
5721 if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
5722 if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",4,"char const *",SWIG_Lua_typename(L,4)); goto fail;
}
;
5723 if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",5,"int",SWIG_Lua_typename(L,5)); goto fail;}
;
5724 if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",6,"char const *",SWIG_Lua_typename(L,6)); goto fail;
}
;
5725 if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "read",7,"int",SWIG_Lua_typename(L,7)); goto fail;}
;
5726
5727 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5728 SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_read",1,(swig_types[1] && swig_types[1
]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L,
1)); goto fail;}
;
5729 }
5730
5731 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5732 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5733 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
5734 arg5 = (int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
5735 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
5736 if(lua_gettop(L)>=7){
5737 arg7 = (int)lua_tonumber(L, 7)lua_tonumberx(L,7,__null);
5738 }
5739 result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7);
5740 SWIG_arg=0;
5741 lua_pushstring(L,(const char*)result); SWIG_arg++;
5742 return SWIG_arg;
5743
5744 if(0) SWIG_fail{goto fail;};
5745
5746fail:
5747 lua_error(L);
5748 return SWIG_arg;
5749}
5750
5751
5752static int _wrap_CoreSession_playAndGetDigits(lua_State* L) {
5753 int SWIG_arg = -1;
5754 CoreSession *arg1 = (CoreSession *) 0 ;
5755 int arg2 ;
5756 int arg3 ;
5757 int arg4 ;
5758 int arg5 ;
5759 char *arg6 = (char *) 0 ;
5760 char *arg7 = (char *) 0 ;
5761 char *arg8 = (char *) 0 ;
5762 char *arg9 = (char *) 0 ;
5763 char *arg10 = (char *) NULL__null ;
5764 int arg11 = (int) 0 ;
5765 char *arg12 = (char *) NULL__null ;
5766 char *result = 0 ;
5767
5768 SWIG_check_num_args("playAndGetDigits",9,12)if (lua_gettop(L)<9 || lua_gettop(L)>12) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","playAndGetDigits"
,9,12,lua_gettop(L)); goto fail;}
5769 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)
); goto fail;}
;
5770 if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",2,"int",SWIG_Lua_typename(L,2)); goto fail
;}
;
5771 if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",3,"int",SWIG_Lua_typename(L,3)); goto fail
;}
;
5772 if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",4,"int",SWIG_Lua_typename(L,4)); goto fail
;}
;
5773 if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",5,"int",SWIG_Lua_typename(L,5)); goto fail
;}
;
5774 if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",6,"char *",SWIG_Lua_typename(L,6)); goto
fail;}
;
5775 if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",7,"char *",SWIG_Lua_typename(L,7)); goto
fail;}
;
5776 if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",8,"char *",SWIG_Lua_typename(L,8)); goto
fail;}
;
5777 if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",9,"char *",SWIG_Lua_typename(L,9)); goto
fail;}
;
5778 if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",10,"char const *",SWIG_Lua_typename(L,10
)); goto fail;}
;
5779 if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",11,"int",SWIG_Lua_typename(L,11)); goto fail
;}
;
5780 if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "playAndGetDigits",12,"char const *",SWIG_Lua_typename(L,12
)); goto fail;}
;
5781
5782 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5783 SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_playAndGetDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5784 }
5785
5786 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5787 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5788 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
5789 arg5 = (int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
5790 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
5791 arg7 = (char *)lua_tostring(L, 7)lua_tolstring(L, (7), __null);
5792 arg8 = (char *)lua_tostring(L, 8)lua_tolstring(L, (8), __null);
5793 arg9 = (char *)lua_tostring(L, 9)lua_tolstring(L, (9), __null);
5794 if(lua_gettop(L)>=10){
5795 arg10 = (char *)lua_tostring(L, 10)lua_tolstring(L, (10), __null);
5796 }
5797 if(lua_gettop(L)>=11){
5798 arg11 = (int)lua_tonumber(L, 11)lua_tonumberx(L,11,__null);
5799 }
5800 if(lua_gettop(L)>=12){
5801 arg12 = (char *)lua_tostring(L, 12)lua_tolstring(L, (12), __null);
5802 }
5803 result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12);
5804 SWIG_arg=0;
5805 lua_pushstring(L,(const char*)result); SWIG_arg++;
5806 return SWIG_arg;
5807
5808 if(0) SWIG_fail{goto fail;};
5809
5810fail:
5811 lua_error(L);
5812 return SWIG_arg;
5813}
5814
5815
5816static int _wrap_CoreSession_streamFile(lua_State* L) {
5817 int SWIG_arg = -1;
5818 CoreSession *arg1 = (CoreSession *) 0 ;
5819 char *arg2 = (char *) 0 ;
5820 int arg3 = (int) 0 ;
5821 int result;
5822
5823 SWIG_check_num_args("streamFile",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","streamFile",2,
3,lua_gettop(L)); goto fail;}
5824 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("streamFile",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "streamFile",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5825 if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "streamFile",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
5826 if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "streamFile",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
5827
5828 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5829 SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_streamFile",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5830 }
5831
5832 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
5833 if(lua_gettop(L)>=3){
5834 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5835 }
5836 result = (int)(arg1)->streamFile(arg2,arg3);
5837 SWIG_arg=0;
5838 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5839 return SWIG_arg;
5840
5841 if(0) SWIG_fail{goto fail;};
5842
5843fail:
5844 lua_error(L);
5845 return SWIG_arg;
5846}
5847
5848
5849static int _wrap_CoreSession_sleep(lua_State* L) {
5850 int SWIG_arg = -1;
5851 CoreSession *arg1 = (CoreSession *) 0 ;
5852 int arg2 ;
5853 int arg3 = (int) 0 ;
5854 int result;
5855
5856 SWIG_check_num_args("sleep",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","sleep",2,3,lua_gettop
(L)); goto fail;}
5857 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("sleep",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sleep",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5858 if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sleep",2,"int",SWIG_Lua_typename(L,2)); goto fail;}
;
5859 if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sleep",3,"int",SWIG_Lua_typename(L,3)); goto fail;}
;
5860
5861 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5862 SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_sleep",1,(swig_types[1] && swig_types[
1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
5863 }
5864
5865 arg2 = (int)lua_tonumber(L, 2)lua_tonumberx(L,2,__null);
5866 if(lua_gettop(L)>=3){
5867 arg3 = (int)lua_tonumber(L, 3)lua_tonumberx(L,3,__null);
5868 }
5869 result = (int)(arg1)->sleep(arg2,arg3);
5870 SWIG_arg=0;
5871 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5872 return SWIG_arg;
5873
5874 if(0) SWIG_fail{goto fail;};
5875
5876fail:
5877 lua_error(L);
5878 return SWIG_arg;
5879}
5880
5881
5882static int _wrap_CoreSession_flushEvents(lua_State* L) {
5883 int SWIG_arg = -1;
5884 CoreSession *arg1 = (CoreSession *) 0 ;
5885 int result;
5886
5887 SWIG_check_num_args("flushEvents",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","flushEvents",1
,1,lua_gettop(L)); goto fail;}
5888 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("flushEvents",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "flushEvents",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5889
5890 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5891 SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_flushEvents",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5892 }
5893
5894 result = (int)(arg1)->flushEvents();
5895 SWIG_arg=0;
5896 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5897 return SWIG_arg;
5898
5899 if(0) SWIG_fail{goto fail;};
5900
5901fail:
5902 lua_error(L);
5903 return SWIG_arg;
5904}
5905
5906
5907static int _wrap_CoreSession_flushDigits(lua_State* L) {
5908 int SWIG_arg = -1;
5909 CoreSession *arg1 = (CoreSession *) 0 ;
5910 int result;
5911
5912 SWIG_check_num_args("flushDigits",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","flushDigits",1
,1,lua_gettop(L)); goto fail;}
5913 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("flushDigits",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "flushDigits",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5914
5915 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5916 SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_flushDigits",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5917 }
5918
5919 result = (int)(arg1)->flushDigits();
5920 SWIG_arg=0;
5921 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5922 return SWIG_arg;
5923
5924 if(0) SWIG_fail{goto fail;};
5925
5926fail:
5927 lua_error(L);
5928 return SWIG_arg;
5929}
5930
5931
5932static int _wrap_CoreSession_setAutoHangup(lua_State* L) {
5933 int SWIG_arg = -1;
5934 CoreSession *arg1 = (CoreSession *) 0 ;
5935 bool arg2 ;
5936 int result;
5937
5938 SWIG_check_num_args("setAutoHangup",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setAutoHangup"
,2,2,lua_gettop(L)); goto fail;}
5939 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setAutoHangup",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setAutoHangup",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5940 if(!lua_isboolean(L,2)(lua_type(L, (2)) == 1)) SWIG_fail_arg("setAutoHangup",2,"bool"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setAutoHangup",2,"bool",SWIG_Lua_typename(L,2)); goto fail
;}
;
5941
5942 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5943 SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setAutoHangup",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5944 }
5945
5946 arg2 = (lua_toboolean(L, 2)!=0);
5947 result = (int)(arg1)->setAutoHangup(arg2);
5948 SWIG_arg=0;
5949 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
5950 return SWIG_arg;
5951
5952 if(0) SWIG_fail{goto fail;};
5953
5954fail:
5955 lua_error(L);
5956 return SWIG_arg;
5957}
5958
5959
5960static int _wrap_CoreSession_setHangupHook(lua_State* L) {
5961 int SWIG_arg = -1;
5962 CoreSession *arg1 = (CoreSession *) 0 ;
5963 void *arg2 = (void *) 0 ;
5964
5965 SWIG_check_num_args("setHangupHook",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setHangupHook"
,2,2,lua_gettop(L)); goto fail;}
5966 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setHangupHook",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
5967 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("setHangupHook",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",2,"void *",SWIG_Lua_typename(L,2)); goto fail
;}
;
5968
5969 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5970 SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setHangupHook",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
5971 }
5972
5973 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"CoreSession_setHangupHook");
5974 (arg1)->setHangupHook(arg2);
5975 SWIG_arg=0;
5976
5977 return SWIG_arg;
5978
5979 if(0) SWIG_fail{goto fail;};
5980
5981fail:
5982 lua_error(L);
5983 return SWIG_arg;
5984}
5985
5986
5987static int _wrap_CoreSession_ready(lua_State* L) {
5988 int SWIG_arg = -1;
5989 CoreSession *arg1 = (CoreSession *) 0 ;
5990 bool result;
5991
5992 SWIG_check_num_args("ready",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","ready",1,1,lua_gettop
(L)); goto fail;}
5993 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("ready",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "ready",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
5994
5995 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
5996 SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_ready",1,(swig_types[1] && swig_types[
1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
5997 }
5998
5999 result = (bool)(arg1)->ready();
6000 SWIG_arg=0;
6001 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6002 return SWIG_arg;
6003
6004 if(0) SWIG_fail{goto fail;};
6005
6006fail:
6007 lua_error(L);
6008 return SWIG_arg;
6009}
6010
6011
6012static int _wrap_CoreSession_bridged(lua_State* L) {
6013 int SWIG_arg = -1;
6014 CoreSession *arg1 = (CoreSession *) 0 ;
6015 bool result;
6016
6017 SWIG_check_num_args("bridged",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","bridged",1,1,lua_gettop
(L)); goto fail;}
6018 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("bridged",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bridged",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6019
6020 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6021 SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_bridged",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6022 }
6023
6024 result = (bool)(arg1)->bridged();
6025 SWIG_arg=0;
6026 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6027 return SWIG_arg;
6028
6029 if(0) SWIG_fail{goto fail;};
6030
6031fail:
6032 lua_error(L);
6033 return SWIG_arg;
6034}
6035
6036
6037static int _wrap_CoreSession_answered(lua_State* L) {
6038 int SWIG_arg = -1;
6039 CoreSession *arg1 = (CoreSession *) 0 ;
6040 bool result;
6041
6042 SWIG_check_num_args("answered",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","answered",1,1,
lua_gettop(L)); goto fail;}
6043 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("answered",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "answered",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6044
6045 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6046 SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_answered",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6047 }
6048
6049 result = (bool)(arg1)->answered();
6050 SWIG_arg=0;
6051 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6052 return SWIG_arg;
6053
6054 if(0) SWIG_fail{goto fail;};
6055
6056fail:
6057 lua_error(L);
6058 return SWIG_arg;
6059}
6060
6061
6062static int _wrap_CoreSession_mediaReady(lua_State* L) {
6063 int SWIG_arg = -1;
6064 CoreSession *arg1 = (CoreSession *) 0 ;
6065 bool result;
6066
6067 SWIG_check_num_args("mediaReady",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","mediaReady",1,
1,lua_gettop(L)); goto fail;}
6068 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("mediaReady",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "mediaReady",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6069
6070 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6071 SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_mediaReady",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6072 }
6073
6074 result = (bool)(arg1)->mediaReady();
6075 SWIG_arg=0;
6076 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6077 return SWIG_arg;
6078
6079 if(0) SWIG_fail{goto fail;};
6080
6081fail:
6082 lua_error(L);
6083 return SWIG_arg;
6084}
6085
6086
6087static int _wrap_CoreSession_waitForAnswer(lua_State* L) {
6088 int SWIG_arg = -1;
6089 CoreSession *arg1 = (CoreSession *) 0 ;
6090 CoreSession *arg2 = (CoreSession *) 0 ;
6091
6092 SWIG_check_num_args("waitForAnswer",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","waitForAnswer"
,2,2,lua_gettop(L)); goto fail;}
6093 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("waitForAnswer",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "waitForAnswer",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6094 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("waitForAnswer",2,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "waitForAnswer",2,"CoreSession *",SWIG_Lua_typename(L,2)); goto
fail;}
;
6095
6096 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6097 SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_waitForAnswer",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6098 }
6099
6100
6101 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
6102 SWIG_fail_ptr("CoreSession_waitForAnswer",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_waitForAnswer",2,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,2)); goto fail;}
;
6103 }
6104
6105 (arg1)->waitForAnswer(arg2);
6106 SWIG_arg=0;
6107
6108 return SWIG_arg;
6109
6110 if(0) SWIG_fail{goto fail;};
6111
6112fail:
6113 lua_error(L);
6114 return SWIG_arg;
6115}
6116
6117
6118static int _wrap_CoreSession_execute(lua_State* L) {
6119 int SWIG_arg = -1;
6120 CoreSession *arg1 = (CoreSession *) 0 ;
6121 char *arg2 = (char *) 0 ;
6122 char *arg3 = (char *) NULL__null ;
6123
6124 SWIG_check_num_args("execute",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","execute",2,3,lua_gettop
(L)); goto fail;}
6125 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("execute",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6126 if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6127 if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "execute",3,"char const *",SWIG_Lua_typename(L,3)); goto fail
;}
;
6128
6129 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6130 SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_execute",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6131 }
6132
6133 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6134 if(lua_gettop(L)>=3){
6135 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
6136 }
6137 (arg1)->execute((char const *)arg2,(char const *)arg3);
6138 SWIG_arg=0;
6139
6140 return SWIG_arg;
6141
6142 if(0) SWIG_fail{goto fail;};
6143
6144fail:
6145 lua_error(L);
6146 return SWIG_arg;
6147}
6148
6149
6150static int _wrap_CoreSession_sendEvent(lua_State* L) {
6151 int SWIG_arg = -1;
6152 CoreSession *arg1 = (CoreSession *) 0 ;
6153 Event *arg2 = (Event *) 0 ;
6154
6155 SWIG_check_num_args("sendEvent",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","sendEvent",2,2
,lua_gettop(L)); goto fail;}
6156 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("sendEvent",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sendEvent",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6157 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("sendEvent",2,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "sendEvent",2,"Event *",SWIG_Lua_typename(L,2)); goto fail;
}
;
6158
6159 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6160 SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_sendEvent",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6161 }
6162
6163
6164 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[3],0) >=
0)
){
6165 SWIG_fail_ptr("CoreSession_sendEvent",2,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_sendEvent",2,(swig_types[3] && swig_types
[3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(
L,2)); goto fail;}
;
6166 }
6167
6168 (arg1)->sendEvent(arg2);
6169 SWIG_arg=0;
6170
6171 return SWIG_arg;
6172
6173 if(0) SWIG_fail{goto fail;};
6174
6175fail:
6176 lua_error(L);
6177 return SWIG_arg;
6178}
6179
6180
6181static int _wrap_CoreSession_setEventData(lua_State* L) {
6182 int SWIG_arg = -1;
6183 CoreSession *arg1 = (CoreSession *) 0 ;
6184 Event *arg2 = (Event *) 0 ;
6185
6186 SWIG_check_num_args("setEventData",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setEventData",
2,2,lua_gettop(L)); goto fail;}
6187 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setEventData",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setEventData",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6188 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("setEventData",2,"Event *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setEventData",2,"Event *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6189
6190 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6191 SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setEventData",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6192 }
6193
6194
6195 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_Event,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[3],0) >=
0)
){
6196 SWIG_fail_ptr("CoreSession_setEventData",2,SWIGTYPE_p_Event){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_setEventData",2,(swig_types[3] && swig_types
[3]->str)?swig_types[3]->str:"void*",SWIG_Lua_typename(
L,2)); goto fail;}
;
6197 }
6198
6199 (arg1)->setEventData(arg2);
6200 SWIG_arg=0;
6201
6202 return SWIG_arg;
6203
6204 if(0) SWIG_fail{goto fail;};
6205
6206fail:
6207 lua_error(L);
6208 return SWIG_arg;
6209}
6210
6211
6212static int _wrap_CoreSession_getXMLCDR(lua_State* L) {
6213 int SWIG_arg = -1;
6214 CoreSession *arg1 = (CoreSession *) 0 ;
6215 char *result = 0 ;
6216
6217 SWIG_check_num_args("getXMLCDR",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","getXMLCDR",1,1
,lua_gettop(L)); goto fail;}
6218 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("getXMLCDR",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "getXMLCDR",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6219
6220 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6221 SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_getXMLCDR",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6222 }
6223
6224 result = (char *)(arg1)->getXMLCDR();
6225 SWIG_arg=0;
6226 lua_pushstring(L,(const char*)result); SWIG_arg++;
6227 return SWIG_arg;
6228
6229 if(0) SWIG_fail{goto fail;};
6230
6231fail:
6232 lua_error(L);
6233 return SWIG_arg;
6234}
6235
6236
6237static int _wrap_CoreSession_begin_allow_threads(lua_State* L) {
6238 int SWIG_arg = -1;
6239 CoreSession *arg1 = (CoreSession *) 0 ;
6240 bool result;
6241
6242 SWIG_check_num_args("begin_allow_threads",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","begin_allow_threads"
,1,1,lua_gettop(L)); goto fail;}
6243 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "begin_allow_threads",1,"CoreSession *",SWIG_Lua_typename(L
,1)); goto fail;}
;
6244
6245 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6246 SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_begin_allow_threads",1,(swig_types[1] &&
swig_types[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
6247 }
6248
6249 result = (bool)(arg1)->begin_allow_threads();
6250 SWIG_arg=0;
6251 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6252 return SWIG_arg;
6253
6254 if(0) SWIG_fail{goto fail;};
6255
6256fail:
6257 lua_error(L);
6258 return SWIG_arg;
6259}
6260
6261
6262static int _wrap_CoreSession_end_allow_threads(lua_State* L) {
6263 int SWIG_arg = -1;
6264 CoreSession *arg1 = (CoreSession *) 0 ;
6265 bool result;
6266
6267 SWIG_check_num_args("end_allow_threads",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","end_allow_threads"
,1,1,lua_gettop(L)); goto fail;}
6268 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("end_allow_threads",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "end_allow_threads",1,"CoreSession *",SWIG_Lua_typename(L,1
)); goto fail;}
;
6269
6270 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6271 SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_end_allow_threads",1,(swig_types[1] &&
swig_types[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
6272 }
6273
6274 result = (bool)(arg1)->end_allow_threads();
6275 SWIG_arg=0;
6276 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
6277 return SWIG_arg;
6278
6279 if(0) SWIG_fail{goto fail;};
6280
6281fail:
6282 lua_error(L);
6283 return SWIG_arg;
6284}
6285
6286
6287static int _wrap_CoreSession_get_uuid(lua_State* L) {
6288 int SWIG_arg = -1;
6289 CoreSession *arg1 = (CoreSession *) 0 ;
6290 char *result = 0 ;
6291
6292 SWIG_check_num_args("get_uuid",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","get_uuid",1,1,
lua_gettop(L)); goto fail;}
6293 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("get_uuid",1,"CoreSession const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "get_uuid",1,"CoreSession const *",SWIG_Lua_typename(L,1));
goto fail;}
;
6294
6295 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6296 SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_get_uuid",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6297 }
6298
6299 result = (char *)((CoreSession const *)arg1)->get_uuid();
6300 SWIG_arg=0;
6301 lua_pushstring(L,(const char*)result); SWIG_arg++;
6302 return SWIG_arg;
6303
6304 if(0) SWIG_fail{goto fail;};
6305
6306fail:
6307 lua_error(L);
6308 return SWIG_arg;
6309}
6310
6311
6312static int _wrap_CoreSession_get_cb_args(lua_State* L) {
6313 int SWIG_arg = -1;
6314 CoreSession *arg1 = (CoreSession *) 0 ;
6315 switch_input_args_t *result = 0 ;
6316
6317 SWIG_check_num_args("get_cb_args",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","get_cb_args",1
,1,lua_gettop(L)); goto fail;}
6318 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("get_cb_args",1,"CoreSession const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "get_cb_args",1,"CoreSession const *",SWIG_Lua_typename(L,1
)); goto fail;}
;
6319
6320 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6321 SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_get_cb_args",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6322 }
6323
6324 {
6325 switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
6326 result = (switch_input_args_t *) &_result_ref;
6327 }
6328 SWIG_arg=0;
6329 SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[21], 0); SWIG_arg++;
6330 return SWIG_arg;
6331
6332 if(0) SWIG_fail{goto fail;};
6333
6334fail:
6335 lua_error(L);
6336 return SWIG_arg;
6337}
6338
6339
6340static int _wrap_CoreSession_check_hangup_hook(lua_State* L) {
6341 int SWIG_arg = -1;
6342 CoreSession *arg1 = (CoreSession *) 0 ;
6343
6344 SWIG_check_num_args("check_hangup_hook",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","check_hangup_hook"
,1,1,lua_gettop(L)); goto fail;}
6345 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "check_hangup_hook",1,"CoreSession *",SWIG_Lua_typename(L,1
)); goto fail;}
;
6346
6347 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6348 SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_check_hangup_hook",1,(swig_types[1] &&
swig_types[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
6349 }
6350
6351 (arg1)->check_hangup_hook();
6352 SWIG_arg=0;
6353
6354 return SWIG_arg;
6355
6356 if(0) SWIG_fail{goto fail;};
6357
6358fail:
6359 lua_error(L);
6360 return SWIG_arg;
6361}
6362
6363
6364static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) {
6365 int SWIG_arg = -1;
6366 CoreSession *arg1 = (CoreSession *) 0 ;
6367 void *arg2 = (void *) 0 ;
6368 switch_input_type_t arg3 ;
6369 switch_status_t result;
6370 switch_input_type_t *argp3 ;
6371
6372 SWIG_check_num_args("run_dtmf_callback",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","run_dtmf_callback"
,3,3,lua_gettop(L)); goto fail;}
6373 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",1,"CoreSession *",SWIG_Lua_typename(L,1
)); goto fail;}
;
6374 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("run_dtmf_callback",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",2,"void *",SWIG_Lua_typename(L,2)); goto
fail;}
;
6375 if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",3,"switch_input_type_t",SWIG_Lua_typename
(L,3)); goto fail;}
;
6376
6377 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6378 SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_run_dtmf_callback",1,(swig_types[1] &&
swig_types[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename
(L,1)); goto fail;}
;
6379 }
6380
6381 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_run_dtmf_callback")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"CoreSession_run_dtmf_callback"
)
;
6382
6383 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))(SWIG_Lua_ConvertPtr(L,3,(void**)&argp3,swig_types[22],0)
>= 0)
){
6384 SWIG_fail_ptr("CoreSession_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_run_dtmf_callback",3,(swig_types[22] &&
swig_types[22]->str)?swig_types[22]->str:"void*",SWIG_Lua_typename
(L,3)); goto fail;}
;
6385 }
6386 arg3 = *argp3;
6387
6388 result = (arg1)->run_dtmf_callback(arg2,arg3);
6389 SWIG_arg=0;
6390 {
6391 switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
6392 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[26], 1)
; SWIG_arg++;
6393 }
6394 return SWIG_arg;
6395
6396 if(0) SWIG_fail{goto fail;};
6397
6398fail:
6399 lua_error(L);
6400 return SWIG_arg;
6401}
6402
6403
6404static int _wrap_CoreSession_consoleLog(lua_State* L) {
6405 int SWIG_arg = -1;
6406 CoreSession *arg1 = (CoreSession *) 0 ;
6407 char *arg2 = (char *) 0 ;
6408 char *arg3 = (char *) 0 ;
6409
6410 SWIG_check_num_args("consoleLog",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","consoleLog",3,
3,lua_gettop(L)); goto fail;}
6411 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("consoleLog",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6412 if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog",2,"char *",SWIG_Lua_typename(L,2)); goto fail;
}
;
6413 if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog",3,"char *",SWIG_Lua_typename(L,3)); goto fail;
}
;
6414
6415 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6416 SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_consoleLog",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6417 }
6418
6419 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6420 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
6421 (arg1)->consoleLog(arg2,arg3);
6422 SWIG_arg=0;
6423
6424 return SWIG_arg;
6425
6426 if(0) SWIG_fail{goto fail;};
6427
6428fail:
6429 lua_error(L);
6430 return SWIG_arg;
6431}
6432
6433
6434static int _wrap_CoreSession_consoleLog2(lua_State* L) {
6435 int SWIG_arg = -1;
6436 CoreSession *arg1 = (CoreSession *) 0 ;
6437 char *arg2 = (char *) 0 ;
6438 char *arg3 = (char *) 0 ;
6439 char *arg4 = (char *) 0 ;
6440 int arg5 ;
6441 char *arg6 = (char *) 0 ;
6442
6443 SWIG_check_num_args("consoleLog2",6,6)if (lua_gettop(L)<6 || lua_gettop(L)>6) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","consoleLog2",6
,6,lua_gettop(L)); goto fail;}
6444 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("consoleLog2",1,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",1,"CoreSession *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6445 if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6446 if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
6447 if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",4,"char *",SWIG_Lua_typename(L,4)); goto fail
;}
;
6448 if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",5,"int",SWIG_Lua_typename(L,5)); goto fail;}
;
6449 if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "consoleLog2",6,"char *",SWIG_Lua_typename(L,6)); goto fail
;}
;
6450
6451 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6452 SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "CoreSession_consoleLog2",1,(swig_types[1] && swig_types
[1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
6453 }
6454
6455 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6456 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
6457 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
6458 arg5 = (int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
6459 arg6 = (char *)lua_tostring(L, 6)lua_tolstring(L, (6), __null);
6460 (arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6);
6461 SWIG_arg=0;
6462
6463 return SWIG_arg;
6464
6465 if(0) SWIG_fail{goto fail;};
6466
6467fail:
6468 lua_error(L);
6469 return SWIG_arg;
6470}
6471
6472
6473static void swig_delete_CoreSession(void *obj) {
6474CoreSession *arg1 = (CoreSession *) obj;
6475delete arg1;
6476}
6477static swig_lua_method swig_CoreSession_methods[] = {
6478 {"insertFile", _wrap_CoreSession_insertFile},
6479 {"answer", _wrap_CoreSession_answer},
6480 {"preAnswer", _wrap_CoreSession_preAnswer},
6481 {"hangup", _wrap_CoreSession_hangup},
6482 {"hangupState", _wrap_CoreSession_hangupState},
6483 {"setVariable", _wrap_CoreSession_setVariable},
6484 {"setPrivate", _wrap_CoreSession_setPrivate},
6485 {"getPrivate", _wrap_CoreSession_getPrivate},
6486 {"getVariable", _wrap_CoreSession_getVariable},
6487 {"process_callback_result", _wrap_CoreSession_process_callback_result},
6488 {"say", _wrap_CoreSession_say},
6489 {"sayPhrase", _wrap_CoreSession_sayPhrase},
6490 {"hangupCause", _wrap_CoreSession_hangupCause},
6491 {"getState", _wrap_CoreSession_getState},
6492 {"recordFile", _wrap_CoreSession_recordFile},
6493 {"originate", _wrap_CoreSession_originate},
6494 {"destroy", _wrap_CoreSession_destroy},
6495 {"setDTMFCallback", _wrap_CoreSession_setDTMFCallback},
6496 {"speak", _wrap_CoreSession_speak},
6497 {"set_tts_parms", _wrap_CoreSession_set_tts_parms},
6498 {"set_tts_params", _wrap_CoreSession_set_tts_params},
6499 {"collectDigits", _wrap_CoreSession_collectDigits},
6500 {"getDigits", _wrap_CoreSession_getDigits},
6501 {"transfer", _wrap_CoreSession_transfer},
6502 {"read", _wrap_CoreSession_read},
6503 {"playAndGetDigits", _wrap_CoreSession_playAndGetDigits},
6504 {"streamFile", _wrap_CoreSession_streamFile},
6505 {"sleep", _wrap_CoreSession_sleep},
6506 {"flushEvents", _wrap_CoreSession_flushEvents},
6507 {"flushDigits", _wrap_CoreSession_flushDigits},
6508 {"setAutoHangup", _wrap_CoreSession_setAutoHangup},
6509 {"setHangupHook", _wrap_CoreSession_setHangupHook},
6510 {"ready", _wrap_CoreSession_ready},
6511 {"bridged", _wrap_CoreSession_bridged},
6512 {"answered", _wrap_CoreSession_answered},
6513 {"mediaReady", _wrap_CoreSession_mediaReady},
6514 {"waitForAnswer", _wrap_CoreSession_waitForAnswer},
6515 {"execute", _wrap_CoreSession_execute},
6516 {"sendEvent", _wrap_CoreSession_sendEvent},
6517 {"setEventData", _wrap_CoreSession_setEventData},
6518 {"getXMLCDR", _wrap_CoreSession_getXMLCDR},
6519 {"begin_allow_threads", _wrap_CoreSession_begin_allow_threads},
6520 {"end_allow_threads", _wrap_CoreSession_end_allow_threads},
6521 {"get_uuid", _wrap_CoreSession_get_uuid},
6522 {"get_cb_args", _wrap_CoreSession_get_cb_args},
6523 {"check_hangup_hook", _wrap_CoreSession_check_hangup_hook},
6524 {"run_dtmf_callback", _wrap_CoreSession_run_dtmf_callback},
6525 {"consoleLog", _wrap_CoreSession_consoleLog},
6526 {"consoleLog2", _wrap_CoreSession_consoleLog2},
6527 {0,0}
6528};
6529static swig_lua_attribute swig_CoreSession_attributes[] = {
6530 { "session", _wrap_CoreSession_session_get, _wrap_CoreSession_session_set},
6531 { "channel", _wrap_CoreSession_channel_get, _wrap_CoreSession_channel_set},
6532 { "flags", _wrap_CoreSession_flags_get, _wrap_CoreSession_flags_set},
6533 { "allocated", _wrap_CoreSession_allocated_get, _wrap_CoreSession_allocated_set},
6534 { "cb_state", _wrap_CoreSession_cb_state_get, _wrap_CoreSession_cb_state_set},
6535 { "hook_state", _wrap_CoreSession_hook_state_get, _wrap_CoreSession_hook_state_set},
6536 { "cause", _wrap_CoreSession_cause_get, _wrap_CoreSession_cause_set},
6537 { "uuid", _wrap_CoreSession_uuid_get, _wrap_CoreSession_uuid_set},
6538 { "tts_name", _wrap_CoreSession_tts_name_get, _wrap_CoreSession_tts_name_set},
6539 { "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set},
6540 {0,0,0}
6541};
6542static swig_lua_class *swig_CoreSession_bases[] = {0};
6543static const char *swig_CoreSession_base_names[] = {0};
6544static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSessionswig_types[1],0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names };
6545
6546static int _wrap_console_log(lua_State* L) {
6547 int SWIG_arg = -1;
6548 char *arg1 = (char *) 0 ;
6549 char *arg2 = (char *) 0 ;
6550
6551 SWIG_check_num_args("console_log",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","console_log",2
,2,lua_gettop(L)); goto fail;}
6552 if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6553 if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6554 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
6555 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6556 console_log(arg1,arg2);
6557 SWIG_arg=0;
6558
6559 return SWIG_arg;
6560
6561 if(0) SWIG_fail{goto fail;};
6562
6563fail:
6564 lua_error(L);
6565 return SWIG_arg;
6566}
6567
6568
6569static int _wrap_console_log2(lua_State* L) {
6570 int SWIG_arg = -1;
6571 char *arg1 = (char *) 0 ;
6572 char *arg2 = (char *) 0 ;
6573 char *arg3 = (char *) 0 ;
6574 int arg4 ;
6575 char *arg5 = (char *) 0 ;
6576
6577 SWIG_check_num_args("console_log2",5,5)if (lua_gettop(L)<5 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","console_log2",
5,5,lua_gettop(L)); goto fail;}
6578 if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log2",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6579 if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log2",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6580 if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log2",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
6581 if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log2",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
6582 if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_log2",5,"char *",SWIG_Lua_typename(L,5)); goto fail
;}
;
6583 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
6584 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6585 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
6586 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
6587 arg5 = (char *)lua_tostring(L, 5)lua_tolstring(L, (5), __null);
6588 console_log2(arg1,arg2,arg3,arg4,arg5);
6589 SWIG_arg=0;
6590
6591 return SWIG_arg;
6592
6593 if(0) SWIG_fail{goto fail;};
6594
6595fail:
6596 lua_error(L);
6597 return SWIG_arg;
6598}
6599
6600
6601static int _wrap_console_clean_log(lua_State* L) {
6602 int SWIG_arg = -1;
6603 char *arg1 = (char *) 0 ;
6604
6605 SWIG_check_num_args("console_clean_log",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","console_clean_log"
,1,1,lua_gettop(L)); goto fail;}
6606 if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "console_clean_log",1,"char *",SWIG_Lua_typename(L,1)); goto
fail;}
;
6607 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
6608 console_clean_log(arg1);
6609 SWIG_arg=0;
6610
6611 return SWIG_arg;
6612
6613 if(0) SWIG_fail{goto fail;};
6614
6615fail:
6616 lua_error(L);
6617 return SWIG_arg;
6618}
6619
6620
6621static int _wrap_msleep(lua_State* L) {
6622 int SWIG_arg = -1;
6623 unsigned int arg1 ;
6624
6625 SWIG_check_num_args("switch_msleep",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","switch_msleep"
,1,1,lua_gettop(L)); goto fail;}
6626 if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "switch_msleep",1,"unsigned int",SWIG_Lua_typename(L,1)); goto
fail;}
;
6627 arg1 = (unsigned int)lua_tonumber(L, 1)lua_tonumberx(L,1,__null);
6628 switch_msleep(arg1);
6629 SWIG_arg=0;
6630
6631 return SWIG_arg;
6632
6633 if(0) SWIG_fail{goto fail;};
6634
6635fail:
6636 lua_error(L);
6637 return SWIG_arg;
6638}
6639
6640
6641static int _wrap_bridge(lua_State* L) {
6642 int SWIG_arg = -1;
6643 CoreSession *arg1 = 0 ;
6644 CoreSession *arg2 = 0 ;
6645
6646 SWIG_check_num_args("bridge",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","bridge",2,2,lua_gettop
(L)); goto fail;}
6647 if(!lua_isuserdata(L,1)) SWIG_fail_arg("bridge",1,"CoreSession &"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bridge",1,"CoreSession &",SWIG_Lua_typename(L,1)); goto
fail;}
;
6648 if(!lua_isuserdata(L,2)) SWIG_fail_arg("bridge",2,"CoreSession &"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bridge",2,"CoreSession &",SWIG_Lua_typename(L,2)); goto
fail;}
;
6649
6650 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[1],0) >=
0)
){
6651 SWIG_fail_ptr("bridge",1,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bridge",1,(swig_types[1] && swig_types[1]->str)
?swig_types[1]->str:"void*",SWIG_Lua_typename(L,1)); goto fail
;}
;
6652 }
6653
6654
6655 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
6656 SWIG_fail_ptr("bridge",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "bridge",2,(swig_types[1] && swig_types[1]->str)
?swig_types[1]->str:"void*",SWIG_Lua_typename(L,2)); goto fail
;}
;
6657 }
6658
6659 bridge(*arg1,*arg2);
6660 SWIG_arg=0;
6661
6662 return SWIG_arg;
6663
6664 if(0) SWIG_fail{goto fail;};
6665
6666fail:
6667 lua_error(L);
6668 return SWIG_arg;
6669}
6670
6671
6672static int _wrap_hanguphook(lua_State* L) {
6673 int SWIG_arg = -1;
6674 switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
6675 switch_status_t result;
6676
6677 SWIG_check_num_args("hanguphook",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hanguphook",1,
1,lua_gettop(L)); goto fail;}
6678 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hanguphook",1,"switch_core_session_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hanguphook",1,"switch_core_session_t *",SWIG_Lua_typename(
L,1)); goto fail;}
;
6679
6680 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[18],0) >=
0)
){
6681 SWIG_fail_ptr("hanguphook",1,SWIGTYPE_p_switch_core_session_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hanguphook",1,(swig_types[18] && swig_types[18]->
str)?swig_types[18]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
6682 }
6683
6684 result = hanguphook(arg1);
6685 SWIG_arg=0;
6686 {
6687 switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
6688 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[26], 1)
; SWIG_arg++;
6689 }
6690 return SWIG_arg;
6691
6692 if(0) SWIG_fail{goto fail;};
6693
6694fail:
6695 lua_error(L);
6696 return SWIG_arg;
6697}
6698
6699
6700static int _wrap_dtmf_callback(lua_State* L) {
6701 int SWIG_arg = -1;
6702 switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
6703 void *arg2 = (void *) 0 ;
6704 switch_input_type_t arg3 ;
6705 void *arg4 = (void *) 0 ;
6706 unsigned int arg5 ;
6707 switch_status_t result;
6708 switch_input_type_t *argp3 ;
6709
6710 SWIG_check_num_args("dtmf_callback",5,5)if (lua_gettop(L)<5 || lua_gettop(L)>5) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","dtmf_callback"
,5,5,lua_gettop(L)); goto fail;}
6711 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",1,"switch_core_session_t *",SWIG_Lua_typename
(L,1)); goto fail;}
;
6712 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("dtmf_callback",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",2,"void *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6713 if(!lua_isuserdata(L,3)) SWIG_fail_arg("dtmf_callback",3,"switch_input_type_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",3,"switch_input_type_t",SWIG_Lua_typename(L
,3)); goto fail;}
;
6714 if(!SWIG_isptrtype(L,4)(lua_isuserdata(L,4) || (lua_type(L, (4)) == 0))) SWIG_fail_arg("dtmf_callback",4,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",4,"void *",SWIG_Lua_typename(L,4)); goto fail
;}
;
6715 if(!lua_isnumber(L,5)) SWIG_fail_arg("dtmf_callback",5,"unsigned int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",5,"unsigned int",SWIG_Lua_typename(L,5)); goto
fail;}
;
6716
6717 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[18],0) >=
0)
){
6718 SWIG_fail_ptr("dtmf_callback",1,SWIGTYPE_p_switch_core_session_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",1,(swig_types[18] && swig_types[18]
->str)?swig_types[18]->str:"void*",SWIG_Lua_typename(L,
1)); goto fail;}
;
6719 }
6720
6721 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"dtmf_callback")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"dtmf_callback");
6722
6723 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))(SWIG_Lua_ConvertPtr(L,3,(void**)&argp3,swig_types[22],0)
>= 0)
){
6724 SWIG_fail_ptr("dtmf_callback",3,SWIGTYPE_p_switch_input_type_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "dtmf_callback",3,(swig_types[22] && swig_types[22]
->str)?swig_types[22]->str:"void*",SWIG_Lua_typename(L,
3)); goto fail;}
;
6725 }
6726 arg3 = *argp3;
6727
6728 arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback")SWIG_Lua_MustGetPtr(L,4, 0,0, 4,"dtmf_callback");
6729 arg5 = (unsigned int)lua_tonumber(L, 5)lua_tonumberx(L,5,__null);
6730 result = dtmf_callback(arg1,arg2,arg3,arg4,arg5);
6731 SWIG_arg=0;
6732 {
6733 switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
6734 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[26], 1)
; SWIG_arg++;
6735 }
6736 return SWIG_arg;
6737
6738 if(0) SWIG_fail{goto fail;};
6739
6740fail:
6741 lua_error(L);
6742 return SWIG_arg;
6743}
6744
6745
6746static int _wrap_new_Session__SWIG_0(lua_State* L) {
6747 int SWIG_arg = -1;
6748 LUA::Session *result = 0 ;
6749
6750 SWIG_check_num_args("LUA::Session",0,0)if (lua_gettop(L)<0 || lua_gettop(L)>0) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Session",
0,0,lua_gettop(L)); goto fail;}
6751 result = (LUA::Session *)new LUA::Session();
6752 SWIG_arg=0;
6753 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[7], 1); SWIG_arg++; result->setLUA(L);
6754 return SWIG_arg;
6755
6756 if(0) SWIG_fail{goto fail;};
6757
6758fail:
6759 lua_error(L);
6760 return SWIG_arg;
6761}
6762
6763
6764static int _wrap_new_Session__SWIG_1(lua_State* L) {
6765 int SWIG_arg = -1;
6766 char *arg1 = (char *) 0 ;
6767 CoreSession *arg2 = (CoreSession *) 0 ;
6768 LUA::Session *result = 0 ;
6769
6770 SWIG_check_num_args("LUA::Session",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Session",
2,2,lua_gettop(L)); goto fail;}
6771 if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Session",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6772 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("LUA::Session",2,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Session",2,"CoreSession *",SWIG_Lua_typename(L,2)); goto
fail;}
;
6773 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
6774
6775 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
6776 SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_Session",2,(swig_types[1] && swig_types[1]->
str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L,2)); goto
fail;}
;
6777 }
6778
6779 result = (LUA::Session *)new LUA::Session(arg1,arg2);
6780 SWIG_arg=0;
6781 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[7], 1); SWIG_arg++; result->setLUA(L);
6782 return SWIG_arg;
6783
6784 if(0) SWIG_fail{goto fail;};
6785
6786fail:
6787 lua_error(L);
6788 return SWIG_arg;
6789}
6790
6791
6792static int _wrap_new_Session__SWIG_2(lua_State* L) {
6793 int SWIG_arg = -1;
6794 char *arg1 = (char *) 0 ;
6795 LUA::Session *result = 0 ;
6796
6797 SWIG_check_num_args("LUA::Session",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Session",
1,1,lua_gettop(L)); goto fail;}
6798 if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Session",1,"char *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6799 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
6800 result = (LUA::Session *)new LUA::Session(arg1);
6801 SWIG_arg=0;
6802 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[7], 1); SWIG_arg++; result->setLUA(L);
6803 return SWIG_arg;
6804
6805 if(0) SWIG_fail{goto fail;};
6806
6807fail:
6808 lua_error(L);
6809 return SWIG_arg;
6810}
6811
6812
6813static int _wrap_new_Session__SWIG_3(lua_State* L) {
6814 int SWIG_arg = -1;
6815 switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
6816 LUA::Session *result = 0 ;
6817
6818 SWIG_check_num_args("LUA::Session",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Session",
1,1,lua_gettop(L)); goto fail;}
6819 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Session",1,"switch_core_session_t *",SWIG_Lua_typename
(L,1)); goto fail;}
;
6820
6821 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[18],0) >=
0)
){
6822 SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "new_Session",1,(swig_types[18] && swig_types[18]->
str)?swig_types[18]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
6823 }
6824
6825 result = (LUA::Session *)new LUA::Session(arg1);
6826 SWIG_arg=0;
6827 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[7], 1); SWIG_arg++; result->setLUA(L);
6828 return SWIG_arg;
6829
6830 if(0) SWIG_fail{goto fail;};
6831
6832fail:
6833 lua_error(L);
6834 return SWIG_arg;
6835}
6836
6837
6838static int _wrap_new_Session(lua_State* L) {
6839 int argc;
6840 int argv[3]={
6841 1,2,3
6842 };
6843
6844 argc = lua_gettop(L);
6845 if (argc == 0) {
6846 return _wrap_new_Session__SWIG_0(L);
6847 }
6848 if (argc == 1) {
6849 int _v;
6850 {
6851 void *ptr;
6852 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_switch_core_session_t, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[18
],0)
) {
6853 _v = 0;
6854 } else {
6855 _v = 1;
6856 }
6857 }
6858 if (_v) {
6859 return _wrap_new_Session__SWIG_3(L);
6860 }
6861 }
6862 if (argc == 1) {
6863 int _v;
6864 {
6865 _v = lua_isstring(L,argv[0]);
6866 }
6867 if (_v) {
6868 return _wrap_new_Session__SWIG_2(L);
6869 }
6870 }
6871 if (argc == 2) {
6872 int _v;
6873 {
6874 _v = lua_isstring(L,argv[0]);
6875 }
6876 if (_v) {
6877 {
6878 void *ptr;
6879 if (SWIG_isptrtype(L,argv[1])(lua_isuserdata(L,argv[1]) || (lua_type(L, (argv[1])) == 0))==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)SWIG_Lua_ConvertPtr(L,argv[1],(void **) &ptr,swig_types[1
],0)
) {
6880 _v = 0;
6881 } else {
6882 _v = 1;
6883 }
6884 }
6885 if (_v) {
6886 return _wrap_new_Session__SWIG_1(L);
6887 }
6888 }
6889 }
6890
6891 lua_pushstring(L,"No matching function for overloaded 'new_Session'");
6892 lua_error(L);return 0;
6893}
6894
6895
6896static int _wrap_delete_Session(lua_State* L) {
6897 int SWIG_arg = -1;
6898 LUA::Session *arg1 = (LUA::Session *) 0 ;
6899
6900 SWIG_check_num_args("LUA::~Session",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::~Session"
,1,1,lua_gettop(L)); goto fail;}
6901 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::~Session",1,"LUA::Session *",SWIG_Lua_typename(L,1));
goto fail;}
;
6902
6903 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0x1)
>= 0)
){
6904 SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_Session",1,(swig_types[7] && swig_types[7]->
str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
6905 }
6906
6907 delete arg1;
6908
6909 SWIG_arg=0;
6910
6911 return SWIG_arg;
6912
6913 if(0) SWIG_fail{goto fail;};
6914
6915fail:
6916 lua_error(L);
6917 return SWIG_arg;
6918}
6919
6920
6921static int _wrap_Session_destroy__SWIG_0(lua_State* L) {
6922 int SWIG_arg = -1;
6923 LUA::Session *arg1 = (LUA::Session *) 0 ;
6924 char *arg2 = (char *) 0 ;
6925
6926 SWIG_check_num_args("destroy",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","destroy",2,2,lua_gettop
(L)); goto fail;}
6927 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("destroy",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "destroy",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6928 if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "destroy",2,"char const *",SWIG_Lua_typename(L,2)); goto fail
;}
;
6929
6930 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
6931 SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_destroy",1,(swig_types[7] && swig_types[7]
->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
6932 }
6933
6934 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
6935 (arg1)->destroy((char const *)arg2);
6936 SWIG_arg=0;
6937
6938 return SWIG_arg;
6939
6940 if(0) SWIG_fail{goto fail;};
6941
6942fail:
6943 lua_error(L);
6944 return SWIG_arg;
6945}
6946
6947
6948static int _wrap_Session_destroy__SWIG_1(lua_State* L) {
6949 int SWIG_arg = -1;
6950 LUA::Session *arg1 = (LUA::Session *) 0 ;
6951
6952 SWIG_check_num_args("destroy",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","destroy",1,1,lua_gettop
(L)); goto fail;}
6953 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("destroy",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "destroy",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
6954
6955 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
6956 SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_destroy",1,(swig_types[7] && swig_types[7]
->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L,1
)); goto fail;}
;
6957 }
6958
6959 (arg1)->destroy();
6960 SWIG_arg=0;
6961
6962 return SWIG_arg;
6963
6964 if(0) SWIG_fail{goto fail;};
6965
6966fail:
6967 lua_error(L);
6968 return SWIG_arg;
6969}
6970
6971
6972static int _wrap_Session_destroy(lua_State* L) {
6973 int argc;
6974 int argv[3]={
6975 1,2,3
6976 };
6977
6978 argc = lua_gettop(L);
6979 if (argc == 1) {
6980 int _v;
6981 {
6982 void *ptr;
6983 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
6984 _v = 0;
6985 } else {
6986 _v = 1;
6987 }
6988 }
6989 if (_v) {
6990 return _wrap_Session_destroy__SWIG_1(L);
6991 }
6992 }
6993 if (argc == 2) {
6994 int _v;
6995 {
6996 void *ptr;
6997 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
6998 _v = 0;
6999 } else {
7000 _v = 1;
7001 }
7002 }
7003 if (_v) {
7004 {
7005 _v = lua_isstring(L,argv[1]);
7006 }
7007 if (_v) {
7008 return _wrap_Session_destroy__SWIG_0(L);
7009 }
7010 }
7011 }
7012
7013 lua_pushstring(L,"No matching function for overloaded 'Session_destroy'");
7014 lua_error(L);return 0;
7015}
7016
7017
7018static int _wrap_Session_begin_allow_threads(lua_State* L) {
7019 int SWIG_arg = -1;
7020 LUA::Session *arg1 = (LUA::Session *) 0 ;
7021 bool result;
7022
7023 SWIG_check_num_args("begin_allow_threads",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","begin_allow_threads"
,1,1,lua_gettop(L)); goto fail;}
7024 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "begin_allow_threads",1,"LUA::Session *",SWIG_Lua_typename(
L,1)); goto fail;}
;
7025
7026 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7027 SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_begin_allow_threads",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7028 }
7029
7030 result = (bool)(arg1)->begin_allow_threads();
7031 SWIG_arg=0;
7032 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7033 return SWIG_arg;
7034
7035 if(0) SWIG_fail{goto fail;};
7036
7037fail:
7038 lua_error(L);
7039 return SWIG_arg;
7040}
7041
7042
7043static int _wrap_Session_end_allow_threads(lua_State* L) {
7044 int SWIG_arg = -1;
7045 LUA::Session *arg1 = (LUA::Session *) 0 ;
7046 bool result;
7047
7048 SWIG_check_num_args("end_allow_threads",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","end_allow_threads"
,1,1,lua_gettop(L)); goto fail;}
7049 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "end_allow_threads",1,"LUA::Session *",SWIG_Lua_typename(L,
1)); goto fail;}
;
7050
7051 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7052 SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_end_allow_threads",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7053 }
7054
7055 result = (bool)(arg1)->end_allow_threads();
7056 SWIG_arg=0;
7057 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7058 return SWIG_arg;
7059
7060 if(0) SWIG_fail{goto fail;};
7061
7062fail:
7063 lua_error(L);
7064 return SWIG_arg;
7065}
7066
7067
7068static int _wrap_Session_check_hangup_hook(lua_State* L) {
7069 int SWIG_arg = -1;
7070 LUA::Session *arg1 = (LUA::Session *) 0 ;
7071
7072 SWIG_check_num_args("check_hangup_hook",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","check_hangup_hook"
,1,1,lua_gettop(L)); goto fail;}
7073 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "check_hangup_hook",1,"LUA::Session *",SWIG_Lua_typename(L,
1)); goto fail;}
;
7074
7075 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7076 SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_check_hangup_hook",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7077 }
7078
7079 (arg1)->check_hangup_hook();
7080 SWIG_arg=0;
7081
7082 return SWIG_arg;
7083
7084 if(0) SWIG_fail{goto fail;};
7085
7086fail:
7087 lua_error(L);
7088 return SWIG_arg;
7089}
7090
7091
7092static int _wrap_Session_run_dtmf_callback(lua_State* L) {
7093 int SWIG_arg = -1;
7094 LUA::Session *arg1 = (LUA::Session *) 0 ;
7095 void *arg2 = (void *) 0 ;
7096 switch_input_type_t arg3 ;
7097 switch_status_t result;
7098 switch_input_type_t *argp3 ;
7099
7100 SWIG_check_num_args("run_dtmf_callback",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","run_dtmf_callback"
,3,3,lua_gettop(L)); goto fail;}
7101 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",1,"LUA::Session *",SWIG_Lua_typename(L,
1)); goto fail;}
;
7102 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("run_dtmf_callback",2,"void *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",2,"void *",SWIG_Lua_typename(L,2)); goto
fail;}
;
7103 if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "run_dtmf_callback",3,"switch_input_type_t",SWIG_Lua_typename
(L,3)); goto fail;}
;
7104
7105 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7106 SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_run_dtmf_callback",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7107 }
7108
7109 arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"Session_run_dtmf_callback")SWIG_Lua_MustGetPtr(L,2, 0,0, 2,"Session_run_dtmf_callback");
7110
7111 if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_switch_input_type_t,0))(SWIG_Lua_ConvertPtr(L,3,(void**)&argp3,swig_types[22],0)
>= 0)
){
7112 SWIG_fail_ptr("Session_run_dtmf_callback",3,SWIGTYPE_p_switch_input_type_t){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_run_dtmf_callback",3,(swig_types[22] && swig_types
[22]->str)?swig_types[22]->str:"void*",SWIG_Lua_typename
(L,3)); goto fail;}
;
7113 }
7114 arg3 = *argp3;
7115
7116 result = (arg1)->run_dtmf_callback(arg2,arg3);
7117 SWIG_arg=0;
7118 {
7119 switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
7120 SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1)SWIG_Lua_NewPointerObj(L, (void *)(void *) resultptr, swig_types
[26], 1)
; SWIG_arg++;
7121 }
7122 return SWIG_arg;
7123
7124 if(0) SWIG_fail{goto fail;};
7125
7126fail:
7127 lua_error(L);
7128 return SWIG_arg;
7129}
7130
7131
7132static int _wrap_Session_unsetInputCallback(lua_State* L) {
7133 int SWIG_arg = -1;
7134 LUA::Session *arg1 = (LUA::Session *) 0 ;
7135
7136 SWIG_check_num_args("unsetInputCallback",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","unsetInputCallback"
,1,1,lua_gettop(L)); goto fail;}
7137 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "unsetInputCallback",1,"LUA::Session *",SWIG_Lua_typename(L
,1)); goto fail;}
;
7138
7139 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7140 SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_unsetInputCallback",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7141 }
7142
7143 (arg1)->unsetInputCallback();
7144 SWIG_arg=0;
7145
7146 return SWIG_arg;
7147
7148 if(0) SWIG_fail{goto fail;};
7149
7150fail:
7151 lua_error(L);
7152 return SWIG_arg;
7153}
7154
7155
7156static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) {
7157 int SWIG_arg = -1;
7158 LUA::Session *arg1 = (LUA::Session *) 0 ;
7159 char *arg2 = (char *) 0 ;
7160 char *arg3 = (char *) 0 ;
7161
7162 SWIG_check_num_args("setInputCallback",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setInputCallback"
,3,3,lua_gettop(L)); goto fail;}
7163 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setInputCallback",1,"LUA::Session *",SWIG_Lua_typename(L,1
)); goto fail;}
;
7164 if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setInputCallback",2,"char *",SWIG_Lua_typename(L,2)); goto
fail;}
;
7165 if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setInputCallback",3,"char *",SWIG_Lua_typename(L,3)); goto
fail;}
;
7166
7167 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7168 SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_setInputCallback",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7169 }
7170
7171 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7172 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7173 (arg1)->setInputCallback(arg2,arg3);
7174 SWIG_arg=0;
7175
7176 return SWIG_arg;
7177
7178 if(0) SWIG_fail{goto fail;};
7179
7180fail:
7181 lua_error(L);
7182 return SWIG_arg;
7183}
7184
7185
7186static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) {
7187 int SWIG_arg = -1;
7188 LUA::Session *arg1 = (LUA::Session *) 0 ;
7189 char *arg2 = (char *) 0 ;
7190
7191 SWIG_check_num_args("setInputCallback",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setInputCallback"
,2,2,lua_gettop(L)); goto fail;}
7192 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setInputCallback",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setInputCallback",1,"LUA::Session *",SWIG_Lua_typename(L,1
)); goto fail;}
;
7193 if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setInputCallback",2,"char *",SWIG_Lua_typename(L,2)); goto
fail;}
;
7194
7195 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7196 SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_setInputCallback",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7197 }
7198
7199 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7200 (arg1)->setInputCallback(arg2);
7201 SWIG_arg=0;
7202
7203 return SWIG_arg;
7204
7205 if(0) SWIG_fail{goto fail;};
7206
7207fail:
7208 lua_error(L);
7209 return SWIG_arg;
7210}
7211
7212
7213static int _wrap_Session_setInputCallback(lua_State* L) {
7214 int argc;
7215 int argv[4]={
7216 1,2,3,4
7217 };
7218
7219 argc = lua_gettop(L);
7220 if (argc == 2) {
7221 int _v;
7222 {
7223 void *ptr;
7224 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
7225 _v = 0;
7226 } else {
7227 _v = 1;
7228 }
7229 }
7230 if (_v) {
7231 {
7232 _v = lua_isstring(L,argv[1]);
7233 }
7234 if (_v) {
7235 return _wrap_Session_setInputCallback__SWIG_1(L);
7236 }
7237 }
7238 }
7239 if (argc == 3) {
7240 int _v;
7241 {
7242 void *ptr;
7243 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
7244 _v = 0;
7245 } else {
7246 _v = 1;
7247 }
7248 }
7249 if (_v) {
7250 {
7251 _v = lua_isstring(L,argv[1]);
7252 }
7253 if (_v) {
7254 {
7255 _v = lua_isstring(L,argv[2]);
7256 }
7257 if (_v) {
7258 return _wrap_Session_setInputCallback__SWIG_0(L);
7259 }
7260 }
7261 }
7262 }
7263
7264 lua_pushstring(L,"No matching function for overloaded 'Session_setInputCallback'");
7265 lua_error(L);return 0;
7266}
7267
7268
7269static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) {
7270 int SWIG_arg = -1;
7271 LUA::Session *arg1 = (LUA::Session *) 0 ;
7272 char *arg2 = (char *) 0 ;
7273 char *arg3 = (char *) 0 ;
7274
7275 SWIG_check_num_args("setHangupHook",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setHangupHook"
,3,3,lua_gettop(L)); goto fail;}
7276 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",1,"LUA::Session *",SWIG_Lua_typename(L,1));
goto fail;}
;
7277 if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7278 if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
7279
7280 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7281 SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_setHangupHook",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7282 }
7283
7284 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7285 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7286 (arg1)->setHangupHook(arg2,arg3);
7287 SWIG_arg=0;
7288
7289 return SWIG_arg;
7290
7291 if(0) SWIG_fail{goto fail;};
7292
7293fail:
7294 lua_error(L);
7295 return SWIG_arg;
7296}
7297
7298
7299static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) {
7300 int SWIG_arg = -1;
7301 LUA::Session *arg1 = (LUA::Session *) 0 ;
7302 char *arg2 = (char *) 0 ;
7303
7304 SWIG_check_num_args("setHangupHook",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setHangupHook"
,2,2,lua_gettop(L)); goto fail;}
7305 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setHangupHook",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",1,"LUA::Session *",SWIG_Lua_typename(L,1));
goto fail;}
;
7306 if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setHangupHook",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7307
7308 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7309 SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_setHangupHook",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7310 }
7311
7312 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7313 (arg1)->setHangupHook(arg2);
7314 SWIG_arg=0;
7315
7316 return SWIG_arg;
7317
7318 if(0) SWIG_fail{goto fail;};
7319
7320fail:
7321 lua_error(L);
7322 return SWIG_arg;
7323}
7324
7325
7326static int _wrap_Session_setHangupHook(lua_State* L) {
7327 int argc;
7328 int argv[4]={
7329 1,2,3,4
7330 };
7331
7332 argc = lua_gettop(L);
7333 if (argc == 2) {
7334 int _v;
7335 {
7336 void *ptr;
7337 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
7338 _v = 0;
7339 } else {
7340 _v = 1;
7341 }
7342 }
7343 if (_v) {
7344 {
7345 _v = lua_isstring(L,argv[1]);
7346 }
7347 if (_v) {
7348 return _wrap_Session_setHangupHook__SWIG_1(L);
7349 }
7350 }
7351 }
7352 if (argc == 3) {
7353 int _v;
7354 {
7355 void *ptr;
7356 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Session, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[7
],0)
) {
7357 _v = 0;
7358 } else {
7359 _v = 1;
7360 }
7361 }
7362 if (_v) {
7363 {
7364 _v = lua_isstring(L,argv[1]);
7365 }
7366 if (_v) {
7367 {
7368 _v = lua_isstring(L,argv[2]);
7369 }
7370 if (_v) {
7371 return _wrap_Session_setHangupHook__SWIG_0(L);
7372 }
7373 }
7374 }
7375 }
7376
7377 lua_pushstring(L,"No matching function for overloaded 'Session_setHangupHook'");
7378 lua_error(L);return 0;
7379}
7380
7381
7382static int _wrap_Session_ready(lua_State* L) {
7383 int SWIG_arg = -1;
7384 LUA::Session *arg1 = (LUA::Session *) 0 ;
7385 bool result;
7386
7387 SWIG_check_num_args("ready",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","ready",1,1,lua_gettop
(L)); goto fail;}
7388 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("ready",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "ready",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7389
7390 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7391 SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_ready",1,(swig_types[7] && swig_types[7]->
str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
7392 }
7393
7394 result = (bool)(arg1)->ready();
7395 SWIG_arg=0;
7396 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7397 return SWIG_arg;
7398
7399 if(0) SWIG_fail{goto fail;};
7400
7401fail:
7402 lua_error(L);
7403 return SWIG_arg;
7404}
7405
7406
7407static int _wrap_Session_originate(lua_State* L) {
7408 int SWIG_arg = -1;
7409 LUA::Session *arg1 = (LUA::Session *) 0 ;
7410 CoreSession *arg2 = (CoreSession *) 0 ;
7411 char *arg3 = (char *) 0 ;
7412 int arg4 ;
7413 int result;
7414
7415 SWIG_check_num_args("originate",4,4)if (lua_gettop(L)<4 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","originate",4,4
,lua_gettop(L)); goto fail;}
7416 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("originate",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto
fail;}
;
7417 if(!SWIG_isptrtype(L,2)(lua_isuserdata(L,2) || (lua_type(L, (2)) == 0))) SWIG_fail_arg("originate",2,"CoreSession *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",2,"CoreSession *",SWIG_Lua_typename(L,2)); goto
fail;}
;
7418 if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
7419 if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "originate",4,"int",SWIG_Lua_typename(L,4)); goto fail;}
;
7420
7421 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7422 SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_originate",1,(swig_types[7] && swig_types[
7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
7423 }
7424
7425
7426 if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))(SWIG_Lua_ConvertPtr(L,2,(void**)&arg2,swig_types[1],0) >=
0)
){
7427 SWIG_fail_ptr("Session_originate",2,SWIGTYPE_p_CoreSession){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_originate",2,(swig_types[1] && swig_types[
1]->str)?swig_types[1]->str:"void*",SWIG_Lua_typename(L
,2)); goto fail;}
;
7428 }
7429
7430 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7431 arg4 = (int)lua_tonumber(L, 4)lua_tonumberx(L,4,__null);
7432 result = (int)(arg1)->originate(arg2,arg3,arg4);
7433 SWIG_arg=0;
7434 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7435 return SWIG_arg;
7436
7437 if(0) SWIG_fail{goto fail;};
7438
7439fail:
7440 lua_error(L);
7441 return SWIG_arg;
7442}
7443
7444
7445static int _wrap_Session_cb_function_set(lua_State* L) {
7446 int SWIG_arg = -1;
7447 LUA::Session *arg1 = (LUA::Session *) 0 ;
7448 char *arg2 = (char *) 0 ;
7449
7450 SWIG_check_num_args("cb_function",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_function",2
,2,lua_gettop(L)); goto fail;}
7451 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_function",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_function",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto
fail;}
;
7452 if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_function",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7453
7454 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7455 SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_cb_function_set",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7456 }
7457
7458 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7459 {
7460 if (arg1->cb_function) delete [] arg1->cb_function;
7461 if (arg2) {
7462 arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]);
7463 strcpy((char *)arg1->cb_function, (const char *)arg2);
7464 } else {
7465 arg1->cb_function = 0;
7466 }
7467 }
7468 SWIG_arg=0;
7469
7470 return SWIG_arg;
7471
7472 if(0) SWIG_fail{goto fail;};
7473
7474fail:
7475 lua_error(L);
7476 return SWIG_arg;
7477}
7478
7479
7480static int _wrap_Session_cb_function_get(lua_State* L) {
7481 int SWIG_arg = -1;
7482 LUA::Session *arg1 = (LUA::Session *) 0 ;
7483 char *result = 0 ;
7484
7485 SWIG_check_num_args("cb_function",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_function",1
,1,lua_gettop(L)); goto fail;}
7486 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_function",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_function",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto
fail;}
;
7487
7488 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7489 SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_cb_function_get",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7490 }
7491
7492 result = (char *) ((arg1)->cb_function);
7493 SWIG_arg=0;
7494 lua_pushstring(L,(const char*)result); SWIG_arg++;
7495 return SWIG_arg;
7496
7497 if(0) SWIG_fail{goto fail;};
7498
7499fail:
7500 lua_error(L);
7501 return SWIG_arg;
7502}
7503
7504
7505static int _wrap_Session_cb_arg_set(lua_State* L) {
7506 int SWIG_arg = -1;
7507 LUA::Session *arg1 = (LUA::Session *) 0 ;
7508 char *arg2 = (char *) 0 ;
7509
7510 SWIG_check_num_args("cb_arg",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_arg",2,2,lua_gettop
(L)); goto fail;}
7511 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_arg",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_arg",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7512 if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_arg",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
7513
7514 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7515 SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_cb_arg_set",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7516 }
7517
7518 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7519 {
7520 if (arg1->cb_arg) delete [] arg1->cb_arg;
7521 if (arg2) {
7522 arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
7523 strcpy((char *)arg1->cb_arg, (const char *)arg2);
7524 } else {
7525 arg1->cb_arg = 0;
7526 }
7527 }
7528 SWIG_arg=0;
7529
7530 return SWIG_arg;
7531
7532 if(0) SWIG_fail{goto fail;};
7533
7534fail:
7535 lua_error(L);
7536 return SWIG_arg;
7537}
7538
7539
7540static int _wrap_Session_cb_arg_get(lua_State* L) {
7541 int SWIG_arg = -1;
7542 LUA::Session *arg1 = (LUA::Session *) 0 ;
7543 char *result = 0 ;
7544
7545 SWIG_check_num_args("cb_arg",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","cb_arg",1,1,lua_gettop
(L)); goto fail;}
7546 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("cb_arg",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "cb_arg",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7547
7548 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7549 SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_cb_arg_get",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7550 }
7551
7552 result = (char *) ((arg1)->cb_arg);
7553 SWIG_arg=0;
7554 lua_pushstring(L,(const char*)result); SWIG_arg++;
7555 return SWIG_arg;
7556
7557 if(0) SWIG_fail{goto fail;};
7558
7559fail:
7560 lua_error(L);
7561 return SWIG_arg;
7562}
7563
7564
7565static int _wrap_Session_hangup_func_str_set(lua_State* L) {
7566 int SWIG_arg = -1;
7567 LUA::Session *arg1 = (LUA::Session *) 0 ;
7568 char *arg2 = (char *) 0 ;
7569
7570 SWIG_check_num_args("hangup_func_str",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangup_func_str"
,2,2,lua_gettop(L)); goto fail;}
7571 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_str",1,"LUA::Session *",SWIG_Lua_typename(L,1)
); goto fail;}
;
7572 if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_str",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7573
7574 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7575 SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_hangup_func_str_set",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7576 }
7577
7578 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7579 {
7580 if (arg1->hangup_func_str) delete [] arg1->hangup_func_str;
7581 if (arg2) {
7582 arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]);
7583 strcpy((char *)arg1->hangup_func_str, (const char *)arg2);
7584 } else {
7585 arg1->hangup_func_str = 0;
7586 }
7587 }
7588 SWIG_arg=0;
7589
7590 return SWIG_arg;
7591
7592 if(0) SWIG_fail{goto fail;};
7593
7594fail:
7595 lua_error(L);
7596 return SWIG_arg;
7597}
7598
7599
7600static int _wrap_Session_hangup_func_str_get(lua_State* L) {
7601 int SWIG_arg = -1;
7602 LUA::Session *arg1 = (LUA::Session *) 0 ;
7603 char *result = 0 ;
7604
7605 SWIG_check_num_args("hangup_func_str",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangup_func_str"
,1,1,lua_gettop(L)); goto fail;}
7606 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_str",1,"LUA::Session *",SWIG_Lua_typename(L,1)
); goto fail;}
;
7607
7608 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7609 SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_hangup_func_str_get",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7610 }
7611
7612 result = (char *) ((arg1)->hangup_func_str);
7613 SWIG_arg=0;
7614 lua_pushstring(L,(const char*)result); SWIG_arg++;
7615 return SWIG_arg;
7616
7617 if(0) SWIG_fail{goto fail;};
7618
7619fail:
7620 lua_error(L);
7621 return SWIG_arg;
7622}
7623
7624
7625static int _wrap_Session_hangup_func_arg_set(lua_State* L) {
7626 int SWIG_arg = -1;
7627 LUA::Session *arg1 = (LUA::Session *) 0 ;
7628 char *arg2 = (char *) 0 ;
7629
7630 SWIG_check_num_args("hangup_func_arg",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangup_func_arg"
,2,2,lua_gettop(L)); goto fail;}
7631 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_arg",1,"LUA::Session *",SWIG_Lua_typename(L,1)
); goto fail;}
;
7632 if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_arg",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7633
7634 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7635 SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_hangup_func_arg_set",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7636 }
7637
7638 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7639 {
7640 if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg;
7641 if (arg2) {
7642 arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]);
7643 strcpy((char *)arg1->hangup_func_arg, (const char *)arg2);
7644 } else {
7645 arg1->hangup_func_arg = 0;
7646 }
7647 }
7648 SWIG_arg=0;
7649
7650 return SWIG_arg;
7651
7652 if(0) SWIG_fail{goto fail;};
7653
7654fail:
7655 lua_error(L);
7656 return SWIG_arg;
7657}
7658
7659
7660static int _wrap_Session_hangup_func_arg_get(lua_State* L) {
7661 int SWIG_arg = -1;
7662 LUA::Session *arg1 = (LUA::Session *) 0 ;
7663 char *result = 0 ;
7664
7665 SWIG_check_num_args("hangup_func_arg",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","hangup_func_arg"
,1,1,lua_gettop(L)); goto fail;}
7666 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "hangup_func_arg",1,"LUA::Session *",SWIG_Lua_typename(L,1)
); goto fail;}
;
7667
7668 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7669 SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_hangup_func_arg_get",1,(swig_types[7] && swig_types
[7]->str)?swig_types[7]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
7670 }
7671
7672 result = (char *) ((arg1)->hangup_func_arg);
7673 SWIG_arg=0;
7674 lua_pushstring(L,(const char*)result); SWIG_arg++;
7675 return SWIG_arg;
7676
7677 if(0) SWIG_fail{goto fail;};
7678
7679fail:
7680 lua_error(L);
7681 return SWIG_arg;
7682}
7683
7684
7685static int _wrap_Session_setLUA(lua_State* L) {
7686 int SWIG_arg = -1;
7687 LUA::Session *arg1 = (LUA::Session *) 0 ;
7688 lua_State *arg2 = (lua_State *) 0 ;
7689
7690 arg2 = L;
7691 SWIG_check_num_args("setLUA",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","setLUA",1,1,lua_gettop
(L)); goto fail;}
7692 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("setLUA",1,"LUA::Session *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "setLUA",1,"LUA::Session *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7693
7694 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[7],0) >=
0)
){
7695 SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Session_setLUA",1,(swig_types[7] && swig_types[7]->
str)?swig_types[7]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
7696 }
7697
7698 (arg1)->setLUA(arg2);
7699 SWIG_arg=0;
7700
7701 return SWIG_arg;
7702
7703 if(0) SWIG_fail{goto fail;};
7704
7705fail:
7706 lua_error(L);
7707 return SWIG_arg;
7708}
7709
7710
7711static void swig_delete_Session(void *obj) {
7712LUA::Session *arg1 = (LUA::Session *) obj;
7713delete arg1;
7714}
7715static swig_lua_method swig_LUA_Session_methods[] = {
7716 {"destroy", _wrap_Session_destroy},
7717 {"begin_allow_threads", _wrap_Session_begin_allow_threads},
7718 {"end_allow_threads", _wrap_Session_end_allow_threads},
7719 {"check_hangup_hook", _wrap_Session_check_hangup_hook},
7720 {"run_dtmf_callback", _wrap_Session_run_dtmf_callback},
7721 {"unsetInputCallback", _wrap_Session_unsetInputCallback},
7722 {"setInputCallback", _wrap_Session_setInputCallback},
7723 {"setHangupHook", _wrap_Session_setHangupHook},
7724 {"ready", _wrap_Session_ready},
7725 {"originate", _wrap_Session_originate},
7726 {"setLUA", _wrap_Session_setLUA},
7727 {0,0}
7728};
7729static swig_lua_attribute swig_LUA_Session_attributes[] = {
7730 { "cb_function", _wrap_Session_cb_function_get, _wrap_Session_cb_function_set},
7731 { "cb_arg", _wrap_Session_cb_arg_get, _wrap_Session_cb_arg_set},
7732 { "hangup_func_str", _wrap_Session_hangup_func_str_get, _wrap_Session_hangup_func_str_set},
7733 { "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set},
7734 {0,0,0}
7735};
7736static swig_lua_class *swig_LUA_Session_bases[] = {0,0};
7737static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0};
7738static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Sessionswig_types[7],_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names };
7739
7740static int _wrap_new_Dbh__SWIG_0(lua_State* L) {
7741 int SWIG_arg = -1;
7742 char *arg1 = (char *) 0 ;
7743 char *arg2 = (char *) 0 ;
7744 char *arg3 = (char *) 0 ;
7745 LUA::Dbh *result = 0 ;
7746
7747 SWIG_check_num_args("LUA::Dbh",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Dbh",3,3,
lua_gettop(L)); goto fail;}
7748 if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",1,"char *",SWIG_Lua_typename(L,1)); goto fail;}
;
7749 if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
7750 if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",3,"char *",SWIG_Lua_typename(L,3)); goto fail;}
;
7751 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
7752 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7753 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7754 result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3);
7755 SWIG_arg=0;
7756 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[6], 1); SWIG_arg++;
7757 return SWIG_arg;
7758
7759 if(0) SWIG_fail{goto fail;};
7760
7761fail:
7762 lua_error(L);
7763 return SWIG_arg;
7764}
7765
7766
7767static int _wrap_new_Dbh__SWIG_1(lua_State* L) {
7768 int SWIG_arg = -1;
7769 char *arg1 = (char *) 0 ;
7770 char *arg2 = (char *) 0 ;
7771 LUA::Dbh *result = 0 ;
7772
7773 SWIG_check_num_args("LUA::Dbh",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Dbh",2,2,
lua_gettop(L)); goto fail;}
7774 if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",1,"char *",SWIG_Lua_typename(L,1)); goto fail;}
;
7775 if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
7776 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
7777 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7778 result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2);
7779 SWIG_arg=0;
7780 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[6], 1); SWIG_arg++;
7781 return SWIG_arg;
7782
7783 if(0) SWIG_fail{goto fail;};
7784
7785fail:
7786 lua_error(L);
7787 return SWIG_arg;
7788}
7789
7790
7791static int _wrap_new_Dbh__SWIG_2(lua_State* L) {
7792 int SWIG_arg = -1;
7793 char *arg1 = (char *) 0 ;
7794 LUA::Dbh *result = 0 ;
7795
7796 SWIG_check_num_args("LUA::Dbh",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::Dbh",1,1,
lua_gettop(L)); goto fail;}
7797 if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::Dbh",1,"char *",SWIG_Lua_typename(L,1)); goto fail;}
;
7798 arg1 = (char *)lua_tostring(L, 1)lua_tolstring(L, (1), __null);
7799 result = (LUA::Dbh *)new LUA::Dbh(arg1);
7800 SWIG_arg=0;
7801 SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1)SWIG_Lua_NewPointerObj(L, (void *)result, swig_types[6], 1); SWIG_arg++;
7802 return SWIG_arg;
7803
7804 if(0) SWIG_fail{goto fail;};
7805
7806fail:
7807 lua_error(L);
7808 return SWIG_arg;
7809}
7810
7811
7812static int _wrap_new_Dbh(lua_State* L) {
7813 int argc;
7814 int argv[4]={
7815 1,2,3,4
7816 };
7817
7818 argc = lua_gettop(L);
7819 if (argc == 1) {
7820 int _v;
7821 {
7822 _v = lua_isstring(L,argv[0]);
7823 }
7824 if (_v) {
7825 return _wrap_new_Dbh__SWIG_2(L);
7826 }
7827 }
7828 if (argc == 2) {
7829 int _v;
7830 {
7831 _v = lua_isstring(L,argv[0]);
7832 }
7833 if (_v) {
7834 {
7835 _v = lua_isstring(L,argv[1]);
7836 }
7837 if (_v) {
7838 return _wrap_new_Dbh__SWIG_1(L);
7839 }
7840 }
7841 }
7842 if (argc == 3) {
7843 int _v;
7844 {
7845 _v = lua_isstring(L,argv[0]);
7846 }
7847 if (_v) {
7848 {
7849 _v = lua_isstring(L,argv[1]);
7850 }
7851 if (_v) {
7852 {
7853 _v = lua_isstring(L,argv[2]);
7854 }
7855 if (_v) {
7856 return _wrap_new_Dbh__SWIG_0(L);
7857 }
7858 }
7859 }
7860 }
7861
7862 lua_pushstring(L,"No matching function for overloaded 'new_Dbh'");
7863 lua_error(L);return 0;
7864}
7865
7866
7867static int _wrap_delete_Dbh(lua_State* L) {
7868 int SWIG_arg = -1;
7869 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
7870
7871 SWIG_check_num_args("LUA::~Dbh",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","LUA::~Dbh",1,1
,lua_gettop(L)); goto fail;}
7872 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "LUA::~Dbh",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7873
7874 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0x1)
>= 0)
){
7875 SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "delete_Dbh",1,(swig_types[6] && swig_types[6]->
str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
7876 }
7877
7878 delete arg1;
7879
7880 SWIG_arg=0;
7881
7882 return SWIG_arg;
7883
7884 if(0) SWIG_fail{goto fail;};
7885
7886fail:
7887 lua_error(L);
7888 return SWIG_arg;
7889}
7890
7891
7892static int _wrap_Dbh_release(lua_State* L) {
7893 int SWIG_arg = -1;
7894 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
7895 bool result;
7896
7897 SWIG_check_num_args("release",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","release",1,1,lua_gettop
(L)); goto fail;}
7898 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("release",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "release",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7899
7900 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
7901 SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_release",1,(swig_types[6] && swig_types[6]->
str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
7902 }
7903
7904 result = (bool)(arg1)->release();
7905 SWIG_arg=0;
7906 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7907 return SWIG_arg;
7908
7909 if(0) SWIG_fail{goto fail;};
7910
7911fail:
7912 lua_error(L);
7913 return SWIG_arg;
7914}
7915
7916
7917static int _wrap_Dbh_connected(lua_State* L) {
7918 int SWIG_arg = -1;
7919 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
7920 bool result;
7921
7922 SWIG_check_num_args("connected",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","connected",1,1
,lua_gettop(L)); goto fail;}
7923 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("connected",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "connected",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto fail
;}
;
7924
7925 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
7926 SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_connected",1,(swig_types[6] && swig_types[6]->
str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
7927 }
7928
7929 result = (bool)(arg1)->connected();
7930 SWIG_arg=0;
7931 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7932 return SWIG_arg;
7933
7934 if(0) SWIG_fail{goto fail;};
7935
7936fail:
7937 lua_error(L);
7938 return SWIG_arg;
7939}
7940
7941
7942static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) {
7943 int SWIG_arg = -1;
7944 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
7945 char *arg2 = (char *) 0 ;
7946 char *arg3 = (char *) 0 ;
7947 char *arg4 = (char *) 0 ;
7948 bool result;
7949
7950 SWIG_check_num_args("test_reactive",4,4)if (lua_gettop(L)<4 || lua_gettop(L)>4) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","test_reactive"
,4,4,lua_gettop(L)); goto fail;}
7951 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto
fail;}
;
7952 if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7953 if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
7954 if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",4,"char *",SWIG_Lua_typename(L,4)); goto fail
;}
;
7955
7956 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
7957 SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_test_reactive",1,(swig_types[6] && swig_types[
6]->str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
7958 }
7959
7960 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7961 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7962 arg4 = (char *)lua_tostring(L, 4)lua_tolstring(L, (4), __null);
7963 result = (bool)(arg1)->test_reactive(arg2,arg3,arg4);
7964 SWIG_arg=0;
7965 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7966 return SWIG_arg;
7967
7968 if(0) SWIG_fail{goto fail;};
7969
7970fail:
7971 lua_error(L);
7972 return SWIG_arg;
7973}
7974
7975
7976static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) {
7977 int SWIG_arg = -1;
7978 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
7979 char *arg2 = (char *) 0 ;
7980 char *arg3 = (char *) 0 ;
7981 bool result;
7982
7983 SWIG_check_num_args("test_reactive",3,3)if (lua_gettop(L)<3 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","test_reactive"
,3,3,lua_gettop(L)); goto fail;}
7984 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto
fail;}
;
7985 if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
7986 if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",3,"char *",SWIG_Lua_typename(L,3)); goto fail
;}
;
7987
7988 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
7989 SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_test_reactive",1,(swig_types[6] && swig_types[
6]->str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
7990 }
7991
7992 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
7993 arg3 = (char *)lua_tostring(L, 3)lua_tolstring(L, (3), __null);
7994 result = (bool)(arg1)->test_reactive(arg2,arg3);
7995 SWIG_arg=0;
7996 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
7997 return SWIG_arg;
7998
7999 if(0) SWIG_fail{goto fail;};
8000
8001fail:
8002 lua_error(L);
8003 return SWIG_arg;
8004}
8005
8006
8007static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) {
8008 int SWIG_arg = -1;
8009 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
8010 char *arg2 = (char *) 0 ;
8011 bool result;
8012
8013 SWIG_check_num_args("test_reactive",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","test_reactive"
,2,2,lua_gettop(L)); goto fail;}
8014 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto
fail;}
;
8015 if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "test_reactive",2,"char *",SWIG_Lua_typename(L,2)); goto fail
;}
;
8016
8017 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
8018 SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_test_reactive",1,(swig_types[6] && swig_types[
6]->str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
8019 }
8020
8021 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
8022 result = (bool)(arg1)->test_reactive(arg2);
8023 SWIG_arg=0;
8024 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
8025 return SWIG_arg;
8026
8027 if(0) SWIG_fail{goto fail;};
8028
8029fail:
8030 lua_error(L);
8031 return SWIG_arg;
8032}
8033
8034
8035static int _wrap_Dbh_test_reactive(lua_State* L) {
8036 int argc;
8037 int argv[5]={
8038 1,2,3,4,5
8039 };
8040
8041 argc = lua_gettop(L);
8042 if (argc == 2) {
8043 int _v;
8044 {
8045 void *ptr;
8046 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[6
],0)
) {
8047 _v = 0;
8048 } else {
8049 _v = 1;
8050 }
8051 }
8052 if (_v) {
8053 {
8054 _v = lua_isstring(L,argv[1]);
8055 }
8056 if (_v) {
8057 return _wrap_Dbh_test_reactive__SWIG_2(L);
8058 }
8059 }
8060 }
8061 if (argc == 3) {
8062 int _v;
8063 {
8064 void *ptr;
8065 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[6
],0)
) {
8066 _v = 0;
8067 } else {
8068 _v = 1;
8069 }
8070 }
8071 if (_v) {
8072 {
8073 _v = lua_isstring(L,argv[1]);
8074 }
8075 if (_v) {
8076 {
8077 _v = lua_isstring(L,argv[2]);
8078 }
8079 if (_v) {
8080 return _wrap_Dbh_test_reactive__SWIG_1(L);
8081 }
8082 }
8083 }
8084 }
8085 if (argc == 4) {
8086 int _v;
8087 {
8088 void *ptr;
8089 if (SWIG_isptrtype(L,argv[0])(lua_isuserdata(L,argv[0]) || (lua_type(L, (argv[0])) == 0))==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_LUA__Dbh, 0)SWIG_Lua_ConvertPtr(L,argv[0],(void **) &ptr,swig_types[6
],0)
) {
8090 _v = 0;
8091 } else {
8092 _v = 1;
8093 }
8094 }
8095 if (_v) {
8096 {
8097 _v = lua_isstring(L,argv[1]);
8098 }
8099 if (_v) {
8100 {
8101 _v = lua_isstring(L,argv[2]);
8102 }
8103 if (_v) {
8104 {
8105 _v = lua_isstring(L,argv[3]);
8106 }
8107 if (_v) {
8108 return _wrap_Dbh_test_reactive__SWIG_0(L);
8109 }
8110 }
8111 }
8112 }
8113 }
8114
8115 lua_pushstring(L,"No matching function for overloaded 'Dbh_test_reactive'");
8116 lua_error(L);return 0;
8117}
8118
8119
8120static int _wrap_Dbh_query(lua_State* L) {
8121 int SWIG_arg = -1;
8122 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
8123 char *arg2 = (char *) 0 ;
8124 SWIGLUA_FN arg3 ;
8125 bool result;
8126
8127 {
8128 SWIGLUA_FN default_swiglua_fn = {
8129 0
8130 };
8131 arg3 = default_swiglua_fn;
8132 }
8133 SWIG_check_num_args("query",2,3)if (lua_gettop(L)<2 || lua_gettop(L)>3) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","query",2,3,lua_gettop
(L)); goto fail;}
8134 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("query",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "query",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto fail;}
;
8135 if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "query",2,"char *",SWIG_Lua_typename(L,2)); goto fail;}
;
8136 if(lua_gettop(L)>=3 && !lua_isfunction(L,3)(lua_type(L, (3)) == 6)) SWIG_fail_arg("query",3,"SWIGLUA_FN"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "query",3,"SWIGLUA_FN",SWIG_Lua_typename(L,3)); goto fail;}
;
8137
8138 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
8139 SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_query",1,(swig_types[6] && swig_types[6]->str
)?swig_types[6]->str:"void*",SWIG_Lua_typename(L,1)); goto
fail;}
;
8140 }
8141
8142 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
8143 if(lua_gettop(L)>=3){
8144 {
8145 (&arg3)->L = L;
8146 (&arg3)->idx = 3;
8147 }
8148 }
8149 result = (bool)(arg1)->query(arg2,arg3);
8150 SWIG_arg=0;
8151 lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
8152 return SWIG_arg;
8153
8154 if(0) SWIG_fail{goto fail;};
8155
8156fail:
8157 lua_error(L);
8158 return SWIG_arg;
8159}
8160
8161
8162static int _wrap_Dbh_affected_rows(lua_State* L) {
8163 int SWIG_arg = -1;
8164 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
8165 int result;
8166
8167 SWIG_check_num_args("affected_rows",1,1)if (lua_gettop(L)<1 || lua_gettop(L)>1) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","affected_rows"
,1,1,lua_gettop(L)); goto fail;}
8168 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "affected_rows",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto
fail;}
;
8169
8170 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
8171 SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_affected_rows",1,(swig_types[6] && swig_types[
6]->str)?swig_types[6]->str:"void*",SWIG_Lua_typename(L
,1)); goto fail;}
;
8172 }
8173
8174 result = (int)(arg1)->affected_rows();
8175 SWIG_arg=0;
8176 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
8177 return SWIG_arg;
8178
8179 if(0) SWIG_fail{goto fail;};
8180
8181fail:
8182 lua_error(L);
8183 return SWIG_arg;
8184}
8185
8186
8187static int _wrap_Dbh_load_extension(lua_State* L) {
8188 int SWIG_arg = -1;
8189 LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
8190 char *arg2 = (char *) 0 ;
8191 int result;
8192
8193 SWIG_check_num_args("load_extension",2,2)if (lua_gettop(L)<2 || lua_gettop(L)>2) {lua_pushfstring
(L,"Error in %s expected %d..%d args, got %d","load_extension"
,2,2,lua_gettop(L)); goto fail;}
8194 if(!SWIG_isptrtype(L,1)(lua_isuserdata(L,1) || (lua_type(L, (1)) == 0))) SWIG_fail_arg("load_extension",1,"LUA::Dbh *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "load_extension",1,"LUA::Dbh *",SWIG_Lua_typename(L,1)); goto
fail;}
;
1
Taking false branch
8195 if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *"){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "load_extension",2,"char const *",SWIG_Lua_typename(L,2)); goto
fail;}
;
2
Taking false branch
8196
8197 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))(SWIG_Lua_ConvertPtr(L,1,(void**)&arg1,swig_types[6],0) >=
0)
){
3
Within the expansion of the macro 'SWIG_IsOK':
a
Calling 'SWIG_Lua_ConvertPtr'
b
Returning from 'SWIG_Lua_ConvertPtr'
6
Taking false branch
8198 SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh){lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'"
, "Dbh_load_extension",1,(swig_types[6] && swig_types
[6]->str)?swig_types[6]->str:"void*",SWIG_Lua_typename(
L,1)); goto fail;}
;
8199 }
8200
8201 arg2 = (char *)lua_tostring(L, 2)lua_tolstring(L, (2), __null);
8202 result = (int)(arg1)->load_extension((char const *)arg2);
7
Called C++ object pointer is null
8203 SWIG_arg=0;
8204 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
8205 return SWIG_arg;
8206
8207 if(0) SWIG_fail{goto fail;};
8208
8209fail:
8210 lua_error(L);
8211 return SWIG_arg;
8212}
8213
8214
8215static void swig_delete_Dbh(void *obj) {
8216LUA::Dbh *arg1 = (LUA::Dbh *) obj;
8217delete arg1;
8218}
8219static swig_lua_method swig_LUA_Dbh_methods[] = {
8220 {"release", _wrap_Dbh_release},
8221 {"connected", _wrap_Dbh_connected},
8222 {"test_reactive", _wrap_Dbh_test_reactive},
8223 {"query", _wrap_Dbh_query},
8224 {"affected_rows", _wrap_Dbh_affected_rows},
8225 {"load_extension", _wrap_Dbh_load_extension},
8226 {0,0}
8227};
8228static swig_lua_attribute swig_LUA_Dbh_attributes[] = {
8229 {0,0,0}
8230};
8231static swig_lua_class *swig_LUA_Dbh_bases[] = {0};
8232static const char *swig_LUA_Dbh_base_names[] = {0};
8233static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbhswig_types[6],_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names };
8234
8235#ifdef __cplusplus199711L
8236}
8237#endif
8238
8239static const struct luaL_Reg swig_commands[] = {
8240 { "setGlobalVariable", _wrap_setGlobalVariable},
8241 { "getGlobalVariable", _wrap_getGlobalVariable},
8242 { "consoleLog", _wrap_consoleLog},
8243 { "consoleLog2", _wrap_consoleLog2},
8244 { "consoleCleanLog", _wrap_consoleCleanLog},
8245 { "running", _wrap_running},
8246 { "email", _wrap_email},
8247 { "console_log", _wrap_console_log},
8248 { "console_log2", _wrap_console_log2},
8249 { "console_clean_log", _wrap_console_clean_log},
8250 { "msleep", _wrap_msleep},
8251 { "bridge", _wrap_bridge},
8252 { "hanguphook", _wrap_hanguphook},
8253 { "dtmf_callback", _wrap_dtmf_callback},
8254 {0,0}
8255};
8256
8257static swig_lua_var_info swig_variables[] = {
8258 {0,0,0}
8259};
8260
8261static swig_lua_const_info swig_constants[] = {
8262{ SWIG_LUA_INT1, (char *)"S_HUP", (long) S_HUP, 0, 0, 0},
8263{ SWIG_LUA_INT1, (char *)"S_FREE", (long) S_FREE, 0, 0, 0},
8264{ SWIG_LUA_INT1, (char *)"S_RDLOCK", (long) S_RDLOCK, 0, 0, 0},
8265 {0,0,0,0,0,0}
8266};
8267
8268/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8269
8270static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) {
8271 return (void *)((CoreSession *) ((LUA::Session *) x));
8272}
8273static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0};
8274static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0};
8275static swig_type_info _swigt__p_DTMF = {"_p_DTMF", "DTMF *", 0, 0, (void*)&_wrap_class_DTMF, 0};
8276static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)&_wrap_class_Event, 0};
8277static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsumer *", 0, 0, (void*)&_wrap_class_EventConsumer, 0};
8278static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0};
8279static swig_type_info _swigt__p_LUA__Dbh = {"_p_LUA__Dbh", "LUA::Dbh *", 0, 0, (void*)&_wrap_class_LUA_Dbh, 0};
8280static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0};
8281static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0};
8282static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0};
8283static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0};
8284static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
8285static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0};
8286static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0};
8287static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0};
8288static swig_type_info _swigt__p_switch_call_cause_t = {"_p_switch_call_cause_t", "switch_call_cause_t *", 0, 0, (void*)0, 0};
8289static swig_type_info _swigt__p_switch_channel_state_t = {"_p_switch_channel_state_t", "switch_channel_state_t *", 0, 0, (void*)0, 0};
8290static swig_type_info _swigt__p_switch_channel_t = {"_p_switch_channel_t", "switch_channel_t *", 0, 0, (void*)0, 0};
8291static swig_type_info _swigt__p_switch_core_session_t = {"_p_switch_core_session_t", "switch_core_session_t *", 0, 0, (void*)0, 0};
8292static swig_type_info _swigt__p_switch_event_t = {"_p_switch_event_t", "switch_event_t *", 0, 0, (void*)0, 0};
8293static swig_type_info _swigt__p_switch_event_types_t = {"_p_switch_event_types_t", "switch_event_types_t *", 0, 0, (void*)0, 0};
8294static swig_type_info _swigt__p_switch_input_args_t = {"_p_switch_input_args_t", "switch_input_args_t *", 0, 0, (void*)0, 0};
8295static swig_type_info _swigt__p_switch_input_type_t = {"_p_switch_input_type_t", "switch_input_type_t *", 0, 0, (void*)0, 0};
8296static swig_type_info _swigt__p_switch_priority_t = {"_p_switch_priority_t", "switch_priority_t *", 0, 0, (void*)0, 0};
8297static swig_type_info _swigt__p_switch_queue_t = {"_p_switch_queue_t", "switch_queue_t *", 0, 0, (void*)0, 0};
8298static swig_type_info _swigt__p_switch_state_handler_table_t = {"_p_switch_state_handler_table_t", "switch_state_handler_table_t *", 0, 0, (void*)0, 0};
8299static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch_status_t *", 0, 0, (void*)0, 0};
8300static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0};
8301static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0};
8302static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
8303
8304static swig_type_info *swig_type_initial[] = {
8305 &_swigt__p_API,
8306 &_swigt__p_CoreSession,
8307 &_swigt__p_DTMF,
8308 &_swigt__p_Event,
8309 &_swigt__p_EventConsumer,
8310 &_swigt__p_IVRMenu,
8311 &_swigt__p_LUA__Dbh,
8312 &_swigt__p_LUA__Session,
8313 &_swigt__p_SWIGLUA_FN,
8314 &_swigt__p_Stream,
8315 &_swigt__p_input_callback_state,
8316 &_swigt__p_int,
8317 &_swigt__p_lua_State,
8318 &_swigt__p_p_switch_event_node_t,
8319 &_swigt__p_session_flag_t,
8320 &_swigt__p_switch_call_cause_t,
8321 &_swigt__p_switch_channel_state_t,
8322 &_swigt__p_switch_channel_t,
8323 &_swigt__p_switch_core_session_t,
8324 &_swigt__p_switch_event_t,
8325 &_swigt__p_switch_event_types_t,
8326 &_swigt__p_switch_input_args_t,
8327 &_swigt__p_switch_input_type_t,
8328 &_swigt__p_switch_priority_t,
8329 &_swigt__p_switch_queue_t,
8330 &_swigt__p_switch_state_handler_table_t,
8331 &_swigt__p_switch_status_t,
8332 &_swigt__p_switch_stream_handle_t,
8333 &_swigt__p_uint32_t,
8334 &_swigt__p_void,
8335};
8336
8337static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}};
8338static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}};
8339static swig_cast_info _swigc__p_DTMF[] = { {&_swigt__p_DTMF, 0, 0, 0},{0, 0, 0, 0}};
8340static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
8341static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, 0, 0, 0},{0, 0, 0, 0}};
8342static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}};
8343static swig_cast_info _swigc__p_LUA__Dbh[] = { {&_swigt__p_LUA__Dbh, 0, 0, 0},{0, 0, 0, 0}};
8344static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}};
8345static swig_cast_info _swigc__p_SWIGLUA_FN[] = { {&_swigt__p_SWIGLUA_FN, 0, 0, 0},{0, 0, 0, 0}};
8346static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}};
8347static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}};
8348static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
8349static swig_cast_info _swigc__p_lua_State[] = { {&_swigt__p_lua_State, 0, 0, 0},{0, 0, 0, 0}};
8350static swig_cast_info _swigc__p_p_switch_event_node_t[] = { {&_swigt__p_p_switch_event_node_t, 0, 0, 0},{0, 0, 0, 0}};
8351static swig_cast_info _swigc__p_session_flag_t[] = { {&_swigt__p_session_flag_t, 0, 0, 0},{0, 0, 0, 0}};
8352static swig_cast_info _swigc__p_switch_call_cause_t[] = { {&_swigt__p_switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}};
8353static swig_cast_info _swigc__p_switch_channel_state_t[] = { {&_swigt__p_switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}};
8354static swig_cast_info _swigc__p_switch_channel_t[] = { {&_swigt__p_switch_channel_t, 0, 0, 0},{0, 0, 0, 0}};
8355static swig_cast_info _swigc__p_switch_core_session_t[] = { {&_swigt__p_switch_core_session_t, 0, 0, 0},{0, 0, 0, 0}};
8356static swig_cast_info _swigc__p_switch_event_t[] = { {&_swigt__p_switch_event_t, 0, 0, 0},{0, 0, 0, 0}};
8357static swig_cast_info _swigc__p_switch_event_types_t[] = { {&_swigt__p_switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}};
8358static swig_cast_info _swigc__p_switch_input_args_t[] = { {&_swigt__p_switch_input_args_t, 0, 0, 0},{0, 0, 0, 0}};
8359static swig_cast_info _swigc__p_switch_input_type_t[] = { {&_swigt__p_switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}};
8360static swig_cast_info _swigc__p_switch_priority_t[] = { {&_swigt__p_switch_priority_t, 0, 0, 0},{0, 0, 0, 0}};
8361static swig_cast_info _swigc__p_switch_queue_t[] = { {&_swigt__p_switch_queue_t, 0, 0, 0},{0, 0, 0, 0}};
8362static swig_cast_info _swigc__p_switch_state_handler_table_t[] = { {&_swigt__p_switch_state_handler_table_t, 0, 0, 0},{0, 0, 0, 0}};
8363static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status_t, 0, 0, 0},{0, 0, 0, 0}};
8364static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}};
8365static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
8366static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
8367
8368static swig_cast_info *swig_cast_initial[] = {
8369 _swigc__p_API,
8370 _swigc__p_CoreSession,
8371 _swigc__p_DTMF,
8372 _swigc__p_Event,
8373 _swigc__p_EventConsumer,
8374 _swigc__p_IVRMenu,
8375 _swigc__p_LUA__Dbh,
8376 _swigc__p_LUA__Session,
8377 _swigc__p_SWIGLUA_FN,
8378 _swigc__p_Stream,
8379 _swigc__p_input_callback_state,
8380 _swigc__p_int,
8381 _swigc__p_lua_State,
8382 _swigc__p_p_switch_event_node_t,
8383 _swigc__p_session_flag_t,
8384 _swigc__p_switch_call_cause_t,
8385 _swigc__p_switch_channel_state_t,
8386 _swigc__p_switch_channel_t,
8387 _swigc__p_switch_core_session_t,
8388 _swigc__p_switch_event_t,
8389 _swigc__p_switch_event_types_t,
8390 _swigc__p_switch_input_args_t,
8391 _swigc__p_switch_input_type_t,
8392 _swigc__p_switch_priority_t,
8393 _swigc__p_switch_queue_t,
8394 _swigc__p_switch_state_handler_table_t,
8395 _swigc__p_switch_status_t,
8396 _swigc__p_switch_stream_handle_t,
8397 _swigc__p_uint32_t,
8398 _swigc__p_void,
8399};
8400
8401
8402/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8403
8404/* -----------------------------------------------------------------------------
8405 * Type initialization:
8406 * This problem is tough by the requirement that no dynamic
8407 * memory is used. Also, since swig_type_info structures store pointers to
8408 * swig_cast_info structures and swig_cast_info structures store pointers back
8409 * to swig_type_info structures, we need some lookup code at initialization.
8410 * The idea is that swig generates all the structures that are needed.
8411 * The runtime then collects these partially filled structures.
8412 * The SWIG_InitializeModule function takes these initial arrays out of
8413 * swig_module, and does all the lookup, filling in the swig_module.types
8414 * array with the correct data and linking the correct swig_cast_info
8415 * structures together.
8416 *
8417 * The generated swig_type_info structures are assigned staticly to an initial
8418 * array. We just loop through that array, and handle each type individually.
8419 * First we lookup if this type has been already loaded, and if so, use the
8420 * loaded structure instead of the generated one. Then we have to fill in the
8421 * cast linked list. The cast data is initially stored in something like a
8422 * two-dimensional array. Each row corresponds to a type (there are the same
8423 * number of rows as there are in the swig_type_initial array). Each entry in
8424 * a column is one of the swig_cast_info structures for that type.
8425 * The cast_initial array is actually an array of arrays, because each row has
8426 * a variable number of columns. So to actually build the cast linked list,
8427 * we find the array of casts associated with the type, and loop through it
8428 * adding the casts to the list. The one last trick we need to do is making
8429 * sure the type pointer in the swig_cast_info struct is correct.
8430 *
8431 * First off, we lookup the cast->type name to see if it is already loaded.
8432 * There are three cases to handle:
8433 * 1) If the cast->type has already been loaded AND the type we are adding
8434 * casting info to has not been loaded (it is in this module), THEN we
8435 * replace the cast->type pointer with the type pointer that has already
8436 * been loaded.
8437 * 2) If BOTH types (the one we are adding casting info to, and the
8438 * cast->type) are loaded, THEN the cast info has already been loaded by
8439 * the previous module so we just ignore it.
8440 * 3) Finally, if cast->type has not already been loaded, then we add that
8441 * swig_cast_info to the linked list (because the cast->type) pointer will
8442 * be correct.
8443 * ----------------------------------------------------------------------------- */
8444
8445#ifdef __cplusplus199711L
8446extern "C" {
8447#if 0
8448} /* c-mode */
8449#endif
8450#endif
8451
8452#if 0
8453#define SWIGRUNTIME_DEBUG
8454#endif
8455
8456
8457SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8458SWIG_InitializeModule(void *clientdata) {
8459 size_t i;
8460 swig_module_info *module_head, *iter;
8461 int found, init;
8462
8463 clientdata = clientdata;
8464
8465 /* check to see if the circular list has been setup, if not, set it up */
8466 if (swig_module.next==0) {
8467 /* Initialize the swig_module */
8468 swig_module.type_initial = swig_type_initial;
8469 swig_module.cast_initial = swig_cast_initial;
8470 swig_module.next = &swig_module;
8471 init = 1;
8472 } else {
8473 init = 0;
8474 }
8475
8476 /* Try and load any already created modules */
8477 module_head = SWIG_GetModule(clientdata)SWIG_Lua_GetModule((lua_State*)(clientdata));
8478 if (!module_head) {
8479 /* This is the first module loaded for this interpreter */
8480 /* so set the swig module into the interpreter */
8481 SWIG_SetModule(clientdata, &swig_module)SWIG_Lua_SetModule((lua_State*) (clientdata), &swig_module
)
;
8482 module_head = &swig_module;
8483 } else {
8484 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
8485 found=0;
8486 iter=module_head;
8487 do {
8488 if (iter==&swig_module) {
8489 found=1;
8490 break;
8491 }
8492 iter=iter->next;
8493 } while (iter!= module_head);
8494
8495 /* if the is found in the list, then all is done and we may leave */
8496 if (found) return;
8497 /* otherwise we must add out module into the list */
8498 swig_module.next = module_head->next;
8499 module_head->next = &swig_module;
8500 }
8501
8502 /* When multiple interpeters are used, a module could have already been initialized in
8503 a different interpreter, but not yet have a pointer in this interpreter.
8504 In this case, we do not want to continue adding types... everything should be
8505 set up already */
8506 if (init == 0) return;
8507
8508 /* Now work on filling in swig_module.types */
8509#ifdef SWIGRUNTIME_DEBUG
8510 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
8511#endif
8512 for (i = 0; i < swig_module.size; ++i) {
8513 swig_type_info *type = 0;
8514 swig_type_info *ret;
8515 swig_cast_info *cast;
8516
8517#ifdef SWIGRUNTIME_DEBUG
8518 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8519#endif
8520
8521 /* if there is another module already loaded */
8522 if (swig_module.next != &swig_module) {
8523 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8524 }
8525 if (type) {
8526 /* Overwrite clientdata field */
8527#ifdef SWIGRUNTIME_DEBUG
8528 printf("SWIG_InitializeModule: found type %s\n", type->name);
8529#endif
8530 if (swig_module.type_initial[i]->clientdata) {
8531 type->clientdata = swig_module.type_initial[i]->clientdata;
8532#ifdef SWIGRUNTIME_DEBUG
8533 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8534#endif
8535 }
8536 } else {
8537 type = swig_module.type_initial[i];
8538 }
8539
8540 /* Insert casting types */
8541 cast = swig_module.cast_initial[i];
8542 while (cast->type) {
8543
8544 /* Don't need to add information already in the list */
8545 ret = 0;
8546#ifdef SWIGRUNTIME_DEBUG
8547 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8548#endif
8549 if (swig_module.next != &swig_module) {
8550 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
8551#ifdef SWIGRUNTIME_DEBUG
8552 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8553#endif
8554 }
8555 if (ret) {
8556 if (type == swig_module.type_initial[i]) {
8557#ifdef SWIGRUNTIME_DEBUG
8558 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8559#endif
8560 cast->type = ret;
8561 ret = 0;
8562 } else {
8563 /* Check for casting already in the list */
8564 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8565#ifdef SWIGRUNTIME_DEBUG
8566 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8567#endif
8568 if (!ocast) ret = 0;
8569 }
8570 }
8571
8572 if (!ret) {
8573#ifdef SWIGRUNTIME_DEBUG
8574 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8575#endif
8576 if (type->cast) {
8577 type->cast->prev = cast;
8578 cast->next = type->cast;
8579 }
8580 type->cast = cast;
8581 }
8582 cast++;
8583 }
8584 /* Set entry in modules->types array equal to the type */
8585 swig_module.types[i] = type;
8586 }
8587 swig_module.types[i] = 0;
8588
8589#ifdef SWIGRUNTIME_DEBUG
8590 printf("**** SWIG_InitializeModule: Cast List ******\n");
8591 for (i = 0; i < swig_module.size; ++i) {
8592 int j = 0;
8593 swig_cast_info *cast = swig_module.cast_initial[i];
8594 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8595 while (cast->type) {
8596 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8597 cast++;
8598 ++j;
8599 }
8600 printf("---- Total casts: %d\n",j);
8601 }
8602 printf("**** SWIG_InitializeModule: Cast List ******\n");
8603#endif
8604}
8605
8606/* This function will propagate the clientdata field of type to
8607* any new swig_type_info structures that have been added into the list
8608* of equivalent types. It is like calling
8609* SWIG_TypeClientData(type, clientdata) a second time.
8610*/
8611SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8612SWIG_PropagateClientData(void) {
8613 size_t i;
8614 swig_cast_info *equiv;
8615 static int init_run = 0;
8616
8617 if (init_run) return;
8618 init_run = 1;
8619
8620 for (i = 0; i < swig_module.size; i++) {
8621 if (swig_module.types[i]->clientdata) {
8622 equiv = swig_module.types[i]->cast;
8623 while (equiv) {
8624 if (!equiv->converter) {
8625 if (equiv->type && !equiv->type->clientdata)
8626 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
8627 }
8628 equiv = equiv->next;
8629 }
8630 }
8631 }
8632}
8633
8634#ifdef __cplusplus199711L
8635#if 0
8636{ /* c-mode */
8637#endif
8638}
8639#endif
8640
8641
8642
8643/* Forward declaration of where the user's %init{} gets inserted */
8644void SWIG_init_userluaopen_freeswitch_user(lua_State* L );
8645
8646#ifdef __cplusplus199711L
8647extern "C" {
8648#endif
8649/* this is the initialization function
8650 added at the very end of the code
8651 the function is always called SWIG_init, but an eariler #define will rename it
8652*/
8653SWIGEXPORT__attribute__ ((visibility("default"))) int SWIG_initluaopen_freeswitch(lua_State* L)
8654{
8655 int i;
8656 /* start with global table */
8657 lua_pushglobaltable(L)lua_rawgeti(L, (-1000000 - 1000), 2);
8658 /* SWIG's internal initalisation */
8659 SWIG_InitializeModule((void*)L);
8660 SWIG_PropagateClientData();
8661 /* add a global fn */
8662 SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type)(lua_pushstring(L, "swig_type"), lua_pushcclosure(L, (SWIG_Lua_type
), 0), lua_rawset(L,-3))
;
8663 SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal)(lua_pushstring(L, "swig_equals"), lua_pushcclosure(L, (SWIG_Lua_equal
), 0), lua_rawset(L,-3))
;
8664 /* begin the module (its a table with the same name as the module) */
8665 SWIG_Lua_module_begin(L,SWIG_name"freeswitch");
8666 /* add commands/functions */
8667 for (i = 0; swig_commands[i].name; i++){
8668 SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func);
8669 }
8670 /* add variables */
8671 for (i = 0; swig_variables[i].name; i++){
8672 SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set);
8673 }
8674 /* set up base class pointers (the hierachy) */
8675 for (i = 0; swig_types[i]; i++){
8676 if (swig_types[i]->clientdata){
8677 SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
8678 }
8679 }
8680 /* additional registration structs & classes in lua */
8681 for (i = 0; swig_types[i]; i++){
8682 if (swig_types[i]->clientdata){
8683 SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata));
8684 }
8685 }
8686 /* constants */
8687 SWIG_Lua_InstallConstants(L,swig_constants);
8688 /* invoke user-specific initialization */
8689 SWIG_init_userluaopen_freeswitch_user(L);
8690 /* end module */
8691 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove module table)*/
8692 lua_pop(L,1)lua_settop(L, -(1)-1); /* tidy stack (remove global table)*/
8693 return 1;
8694}
8695
8696#ifdef __cplusplus199711L
8697}
8698#endif
8699
8700
8701const char* SWIG_LUACODEluaopen_freeswitch_luacode=
8702 "";
8703
8704void SWIG_init_userluaopen_freeswitch_user(lua_State* L)
8705{
8706 /* exec Lua code if applicable */
8707 SWIG_Lua_dostring(L,SWIG_LUACODEluaopen_freeswitch_luacode);
8708}
8709
8710#include "mod_lua_extra.c"