1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_CASTRANK_MODE
16 /* SwigValueWrapper is described in swig.swg */
17 template<typename T
> class SwigValueWrapper
19 struct SwigMovePointer
22 SwigMovePointer(T
*p
) : ptr(p
) { }
27 SwigMovePointer
& operator=(SwigMovePointer
& rhs
)
37 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
38 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
);
40 SwigValueWrapper() : pointer(0) { }
41 SwigValueWrapper
& operator=(const T
& t
)
43 SwigMovePointer
tmp(new T(t
));
57 template <typename T
> T
SwigValueInit()
63 /* -----------------------------------------------------------------------------
64 * This section contains generic SWIG labels for method/variable
65 * declarations/attributes, and other compiler dependent labels.
66 * ----------------------------------------------------------------------------- */
68 /* template workaround for compilers that cannot correctly implement the C++ standard */
69 #ifndef SWIGTEMPLATEDISAMBIGUATOR
70 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
71 # define SWIGTEMPLATEDISAMBIGUATOR template
72 # elif defined(__HP_aCC)
73 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
74 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
75 # define SWIGTEMPLATEDISAMBIGUATOR template
77 # define SWIGTEMPLATEDISAMBIGUATOR
81 /* inline attribute */
83 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
84 # define SWIGINLINE inline
90 /* attribute recognised by some compilers to avoid 'unused' warnings */
92 # if defined(__GNUC__)
93 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
94 # define SWIGUNUSED __attribute__ ((__unused__))
99 # define SWIGUNUSED __attribute__ ((__unused__))
105 #ifndef SWIG_MSC_UNSUPPRESS_4505
106 # if defined(_MSC_VER)
107 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
111 #ifndef SWIGUNUSEDPARM
113 # define SWIGUNUSEDPARM(p)
115 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
119 /* internal SWIG method */
121 # define SWIGINTERN static SWIGUNUSED
124 /* internal inline SWIG method */
125 #ifndef SWIGINTERNINLINE
126 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
129 /* exporting methods */
130 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
131 # ifndef GCC_HASCLASSVISIBILITY
132 # define GCC_HASCLASSVISIBILITY
137 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
138 # if defined(STATIC_LINKED)
141 # define SWIGEXPORT __declspec(dllexport)
144 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
145 # define SWIGEXPORT __attribute__ ((visibility("default")))
152 /* calling conventions for Windows */
154 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
155 # define SWIGSTDCALL __stdcall
161 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
162 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
163 # define _CRT_SECURE_NO_DEPRECATE
166 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
167 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
168 # define _SCL_SECURE_NO_DEPRECATE
172 /* -----------------------------------------------------------------------------
175 * This file contains generic C API SWIG runtime support for pointer
177 * ----------------------------------------------------------------------------- */
179 /* This should only be incremented when either the layout of swig_type_info changes,
180 or for whatever reason, the runtime changes incompatibly */
181 #define SWIG_RUNTIME_VERSION "4"
183 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
184 #ifdef SWIG_TYPE_TABLE
185 # define SWIG_QUOTE_STRING(x) #x
186 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
187 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
189 # define SWIG_TYPE_TABLE_NAME
193 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
194 creating a static or dynamic library from the SWIG runtime code.
195 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
197 But only do this if strictly necessary, ie, if you have problems
198 with your compiler or suchlike.
202 # define SWIGRUNTIME SWIGINTERN
205 #ifndef SWIGRUNTIMEINLINE
206 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
209 /* Generic buffer size */
210 #ifndef SWIG_BUFFER_SIZE
211 # define SWIG_BUFFER_SIZE 1024
214 /* Flags for pointer conversions */
215 #define SWIG_POINTER_DISOWN 0x1
216 #define SWIG_CAST_NEW_MEMORY 0x2
218 /* Flags for new pointer objects */
219 #define SWIG_POINTER_OWN 0x1
223 Flags/methods for returning states.
225 The SWIG conversion methods, as ConvertPtr, return an integer
226 that tells if the conversion was successful or not. And if not,
227 an error code can be returned (see swigerrors.swg for the codes).
229 Use the following macros/flags to set or process the returning
232 In old versions of SWIG, code such as the following was usually written:
234 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
240 Now you can be more explicit:
242 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
243 if (SWIG_IsOK(res)) {
249 which is the same really, but now you can also do
252 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
253 if (SWIG_IsOK(res)) {
255 if (SWIG_IsNewObj(res) {
265 I.e., now SWIG_ConvertPtr can return new objects and you can
266 identify the case and take care of the deallocation. Of course that
267 also requires SWIG_ConvertPtr to return new result values, such as
269 int SWIG_ConvertPtr(obj, ptr,...) {
271 if (<need new object>) {
272 *ptr = <ptr to new allocated object>;
275 *ptr = <ptr to old object>;
283 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
284 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
287 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
288 allows to return the 'cast rank', for example, if you have this
295 food(1) // cast rank '1' (1 -> 1.0)
296 fooi(1) // cast rank '0'
298 just use the SWIG_AddCast()/SWIG_CheckState()
302 #define SWIG_ERROR (-1)
303 #define SWIG_IsOK(r) (r >= 0)
304 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
306 /* The CastRankLimit says how many bits are used for the cast rank */
307 #define SWIG_CASTRANKLIMIT (1 << 8)
308 /* The NewMask denotes the object was created (using new/malloc) */
309 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
310 /* The TmpMask is for in/out typemaps that use temporal objects */
311 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
312 /* Simple returning values */
313 #define SWIG_BADOBJ (SWIG_ERROR)
314 #define SWIG_OLDOBJ (SWIG_OK)
315 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
316 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
317 /* Check, add and del mask methods */
318 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
319 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
320 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
321 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
322 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
323 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
326 #if defined(SWIG_CASTRANK_MODE)
327 # ifndef SWIG_TypeRank
328 # define SWIG_TypeRank unsigned long
330 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
331 # define SWIG_MAXCASTRANK (2)
333 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
334 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
335 SWIGINTERNINLINE
int SWIG_AddCast(int r
)
337 return SWIG_IsOK(r
) ? ((SWIG_CastRank(r
) < SWIG_MAXCASTRANK
) ? (r
+ 1) : SWIG_ERROR
) : r
;
339 SWIGINTERNINLINE
int SWIG_CheckState(int r
)
341 return SWIG_IsOK(r
) ? SWIG_CastRank(r
) + 1 : 0;
343 #else /* no cast-rank mode */
344 # define SWIG_AddCast
345 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
355 typedef void *(*swig_converter_func
)(void *, int *);
356 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
358 /* Structure to store information on one type */
359 typedef struct swig_type_info
361 const char *name
; /* mangled name of this type */
362 const char *str
; /* human readable name of this type */
363 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
364 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
365 void *clientdata
; /* language specific type data */
366 int owndata
; /* flag if the structure owns the clientdata */
369 /* Structure to store a type and conversion function used for casting */
370 typedef struct swig_cast_info
372 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
373 swig_converter_func converter
; /* function to cast the void pointers */
374 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
375 struct swig_cast_info
*prev
; /* pointer to the previous cast */
378 /* Structure used to store module information
379 * Each module generates one structure like this, and the runtime collects
380 * all of these structures and stores them in a circularly linked list.*/
381 typedef struct swig_module_info
383 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
384 size_t size
; /* Number of types in this module */
385 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
386 swig_type_info
**type_initial
; /* Array of initially generated type structures */
387 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
388 void *clientdata
; /* Language specific module data */
392 Compare two type names skipping the space characters, therefore
393 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
395 Return 0 when the two name types are equivalent, as in
396 strncmp, but skipping ' '.
399 SWIG_TypeNameComp(const char *f1
, const char *l1
,
400 const char *f2
, const char *l2
)
402 for (; (f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
)
404 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
405 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
406 if (*f1
!= *f2
) return (*f1
> *f2
) ? 1 : -1;
408 return (int)((l1
- f1
) - (l2
- f2
));
412 Check type equivalence in a name list like <name1>|<name2>|...
413 Return 0 if not equal, 1 if equal
416 SWIG_TypeEquiv(const char *nb
, const char *tb
)
419 const char* te
= tb
+ strlen(tb
);
421 while (!equiv
&& *ne
)
423 for (nb
= ne
; *ne
; ++ne
)
425 if (*ne
== '|') break;
427 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
434 Check type equivalence in a name list like <name1>|<name2>|...
435 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
438 SWIG_TypeCompare(const char *nb
, const char *tb
)
441 const char* te
= tb
+ strlen(tb
);
443 while (!equiv
&& *ne
)
445 for (nb
= ne
; *ne
; ++ne
)
447 if (*ne
== '|') break;
449 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
459 SWIGRUNTIME swig_cast_info
*
460 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
)
464 swig_cast_info
*iter
= ty
->cast
;
467 if (strcmp(iter
->type
->name
, c
) == 0)
469 if (iter
== ty
->cast
)
471 /* Move iter to the top of the linked list */
472 iter
->prev
->next
= iter
->next
;
474 iter
->next
->prev
= iter
->prev
;
475 iter
->next
= ty
->cast
;
477 if (ty
->cast
) ty
->cast
->prev
= iter
;
488 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
490 SWIGRUNTIME swig_cast_info
*
491 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*ty
)
495 swig_cast_info
*iter
= ty
->cast
;
498 if (iter
->type
== from
)
500 if (iter
== ty
->cast
)
502 /* Move iter to the top of the linked list */
503 iter
->prev
->next
= iter
->next
;
505 iter
->next
->prev
= iter
->prev
;
506 iter
->next
= ty
->cast
;
508 if (ty
->cast
) ty
->cast
->prev
= iter
;
519 Cast a pointer up an inheritance hierarchy
521 SWIGRUNTIMEINLINE
void *
522 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
, int *newmemory
)
524 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
, newmemory
);
528 Dynamic pointer casting. Down an inheritance hierarchy
530 SWIGRUNTIME swig_type_info
*
531 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
)
533 swig_type_info
*lastty
= ty
;
534 if (!ty
|| !ty
->dcast
) return ty
;
535 while (ty
&& (ty
->dcast
))
537 ty
= (*ty
->dcast
)(ptr
);
544 Return the name associated with this type
546 SWIGRUNTIMEINLINE
const char *
547 SWIG_TypeName(const swig_type_info
*ty
)
553 Return the pretty name associated with this type,
554 that is an unmangled type name in a form presentable to the user.
556 SWIGRUNTIME
const char *
557 SWIG_TypePrettyName(const swig_type_info
*type
)
559 /* The "str" field contains the equivalent pretty names of the
560 type, separated by vertical-bar characters. We choose
561 to print the last name, as it is often (?) the most
563 if (!type
) return NULL
;
564 if (type
->str
!= NULL
)
566 const char *last_name
= type
->str
;
568 for (s
= type
->str
; *s
; s
++)
569 if (*s
== '|') last_name
= s
+1;
577 Set the clientdata field for a type
580 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
)
582 swig_cast_info
*cast
= ti
->cast
;
583 /* if (ti->clientdata == clientdata) return; */
584 ti
->clientdata
= clientdata
;
588 if (!cast
->converter
)
590 swig_type_info
*tc
= cast
->type
;
593 SWIG_TypeClientData(tc
, clientdata
);
600 SWIG_TypeNewClientData(swig_type_info
*ti
, void *clientdata
)
602 SWIG_TypeClientData(ti
, clientdata
);
607 Search for a swig_type_info structure only by mangled name
608 Search is a O(log #types)
610 We start searching at module start, and finish searching when start == end.
611 Note: if start == end at the beginning of the function, we go all the way around
614 SWIGRUNTIME swig_type_info
*
615 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
616 swig_module_info
*end
,
619 swig_module_info
*iter
= start
;
624 register size_t l
= 0;
625 register size_t r
= iter
->size
- 1;
628 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
629 register size_t i
= (l
+ r
) >> 1;
630 const char *iname
= iter
->types
[i
]->name
;
633 register int compare
= strcmp(name
, iname
);
636 return iter
->types
[i
];
638 else if (compare
< 0)
649 else if (compare
> 0)
656 break; /* should never happen */
668 Search for a swig_type_info structure for either a mangled name or a human readable name.
669 It first searches the mangled names of the types, which is a O(log #types)
670 If a type is not found it then searches the human readable names, which is O(#types).
672 We start searching at module start, and finish searching when start == end.
673 Note: if start == end at the beginning of the function, we go all the way around
676 SWIGRUNTIME swig_type_info
*
677 SWIG_TypeQueryModule(swig_module_info
*start
,
678 swig_module_info
*end
,
681 /* STEP 1: Search the name field using binary search */
682 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
689 /* STEP 2: If the type hasn't been found, do a complete search
690 of the str field (the human readable name) */
691 swig_module_info
*iter
= start
;
694 register size_t i
= 0;
695 for (; i
< iter
->size
; ++i
)
697 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
698 return iter
->types
[i
];
705 /* neither found a match */
710 Pack binary data into a string
713 SWIG_PackData(char *c
, void *ptr
, size_t sz
)
715 static const char hex
[17] = "0123456789abcdef";
716 register const unsigned char *u
= (unsigned char *) ptr
;
717 register const unsigned char *eu
= u
+ sz
;
720 register unsigned char uu
= *u
;
721 *(c
++) = hex
[(uu
& 0xf0) >> 4];
722 *(c
++) = hex
[uu
& 0xf];
728 Unpack binary data from a string
730 SWIGRUNTIME
const char *
731 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
)
733 register unsigned char *u
= (unsigned char *) ptr
;
734 register const unsigned char *eu
= u
+ sz
;
737 register char d
= *(c
++);
738 register unsigned char uu
;
739 if ((d
>= '0') && (d
<= '9'))
740 uu
= ((d
- '0') << 4);
741 else if ((d
>= 'a') && (d
<= 'f'))
742 uu
= ((d
- ('a'-10)) << 4);
746 if ((d
>= '0') && (d
<= '9'))
748 else if ((d
>= 'a') && (d
<= 'f'))
749 uu
|= (d
- ('a'-10));
758 Pack 'void *' into a string buffer.
761 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
)
764 if ((2*sizeof(void *) + 2) > bsz
) return 0;
766 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
767 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
772 SWIGRUNTIME
const char *
773 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
)
777 if (strcmp(c
,"NULL") == 0)
787 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
791 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
)
794 size_t lname
= (name
? strlen(name
) : 0);
795 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
797 r
= SWIG_PackData(r
,ptr
,sz
);
800 strncpy(r
,name
,lname
+1);
809 SWIGRUNTIME
const char *
810 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
)
814 if (strcmp(c
,"NULL") == 0)
824 return SWIG_UnpackData(++c
,ptr
,sz
);
832 #define SWIG_UnknownError -1
833 #define SWIG_IOError -2
834 #define SWIG_RuntimeError -3
835 #define SWIG_IndexError -4
836 #define SWIG_TypeError -5
837 #define SWIG_DivisionByZero -6
838 #define SWIG_OverflowError -7
839 #define SWIG_SyntaxError -8
840 #define SWIG_ValueError -9
841 #define SWIG_SystemError -10
842 #define SWIG_AttributeError -11
843 #define SWIG_MemoryError -12
844 #define SWIG_NullReferenceError -13
849 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
858 /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
860 /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
861 #ifndef PERL_REVISION
862 # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
863 # define PERL_PATCHLEVEL_H_IMPLICIT
864 # include <patchlevel.h>
866 # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
867 # include <could_not_find_Perl_patchlevel.h>
869 # ifndef PERL_REVISION
870 # define PERL_REVISION (5)
871 # define PERL_VERSION PATCHLEVEL
872 # define PERL_SUBVERSION SUBVERSION
876 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
877 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
881 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
885 # define SvUOK(sv) SvIOK_UV(sv)
888 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
889 # define PL_sv_undef sv_undef
891 # define PL_errgv errgv
892 # define PL_sv_no sv_no
893 # define PL_sv_yes sv_yes
894 # define PL_markstack_ptr markstack_ptr
899 # define IVSIZE LONGSIZE
901 # define IVSIZE 4 /* A bold guess, but the best we can make. */
906 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
908 # define INT2PTR(any,d) (any)(d)
910 # if PTRSIZE == LONGSIZE
911 # define PTRV unsigned long
913 # define PTRV unsigned
915 # define INT2PTR(any,d) (any)(PTRV)(d)
918 # define NUM2PTR(any,d) (any)(PTRV)(d)
919 # define PTR2IV(p) INT2PTR(IV,p)
920 # define PTR2UV(p) INT2PTR(UV,p)
921 # define PTR2NV(p) NUM2PTR(NV,p)
923 # if PTRSIZE == LONGSIZE
924 # define PTR2ul(p) (unsigned long)(p)
926 # define PTR2ul(p) INT2PTR(unsigned long,p)
928 #endif /* !INT2PTR */
931 # define SvPV_nolen(x) SvPV(x,PL_na)
935 # define get_sv perl_get_sv
939 # define ERRSV get_sv("@",FALSE)
951 /* -----------------------------------------------------------------------------
953 * ----------------------------------------------------------------------------- */
955 SWIGINTERN
const char*
956 SWIG_Perl_ErrorType(int code
)
958 const char* type
= 0;
961 case SWIG_MemoryError
:
962 type
= "MemoryError";
967 case SWIG_RuntimeError
:
968 type
= "RuntimeError";
970 case SWIG_IndexError
:
976 case SWIG_DivisionByZero
:
977 type
= "ZeroDivisionError";
979 case SWIG_OverflowError
:
980 type
= "OverflowError";
982 case SWIG_SyntaxError
:
983 type
= "SyntaxError";
985 case SWIG_ValueError
:
988 case SWIG_SystemError
:
989 type
= "SystemError";
991 case SWIG_AttributeError
:
992 type
= "AttributeError";
995 type
= "RuntimeError";
1003 /* -----------------------------------------------------------------------------
1006 * This file contains the runtime support for Perl modules
1007 * and includes code for managing global variables and pointer
1009 * ----------------------------------------------------------------------------- */
1012 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
1013 #define SWIG_PERL_OBJECT_CALL pPerl,
1015 #define SWIG_PERL_OBJECT_DECL
1016 #define SWIG_PERL_OBJECT_CALL
1019 /* Common SWIG API */
1021 /* for raw pointers */
1022 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
1023 #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
1024 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
1026 /* for raw packed data */
1027 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
1028 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
1030 /* for class or struct pointers */
1031 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1032 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1034 /* for C or C++ function pointers */
1035 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
1036 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
1038 /* for C++ member pointers, ie, member methods */
1039 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
1040 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
1045 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule()
1046 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
1049 /* Error manipulation */
1051 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
1052 #define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg)
1053 #define SWIG_fail goto fail
1055 /* Perl-specific SWIG API */
1057 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
1058 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
1059 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
1062 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
1063 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
1064 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
1065 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
1067 /* -----------------------------------------------------------------------------
1068 * pointers/data manipulation
1069 * ----------------------------------------------------------------------------- */
1071 /* For backward compatibility only */
1072 #define SWIG_POINTER_EXCEPTION 0
1078 #define SWIG_OWNER SWIG_POINTER_OWN
1079 #define SWIG_SHADOW SWIG_OWNER << 1
1081 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
1083 /* SWIG Perl macros */
1085 /* Macro to declare an XS function */
1087 # define XSPROTO(name) void name(pTHX_ CV* cv)
1090 /* Macro to call an XS function */
1092 # define SWIG_CALLXS(_name) _name(cv,pPerl)
1094 # ifndef MULTIPLICITY
1095 # define SWIG_CALLXS(_name) _name(cv)
1097 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
1102 #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
1107 typedef int (CPerlObj::*SwigMagicFunc
)(SV
*, MAGIC
*);
1112 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
1113 #define SWIGCLASS_STATIC
1115 #else /* PERL_OBJECT */
1118 #define SWIGCLASS_STATIC static SWIGUNUSED
1120 #ifndef MULTIPLICITY
1121 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
1126 typedef int (*SwigMagicFunc
)(SV
*, MAGIC
*);
1131 #else /* MULTIPLICITY */
1133 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
1138 typedef int (*SwigMagicFunc
)(struct interpreter
*, SV
*, MAGIC
*);
1143 #endif /* MULTIPLICITY */
1144 #endif /* PERL_OBJECT */
1146 /* Workaround for bug in perl 5.6.x croak and earlier */
1147 #if (PERL_VERSION < 8)
1149 # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
1150 static void SWIG_Perl_croak_null(CPerlObj
*pPerl
)
1152 static void SWIG_croak_null()
1156 # if (PERL_VERSION < 6)
1159 if (SvOK(err
) && !SvROK(err
)) croak("%_", err
);
1164 # define SWIG_croak_null() croak(Nullch)
1169 Define how strict is the cast between strings and integers/doubles
1170 when overloading between these types occurs.
1172 The default is making it as strict as possible by using SWIG_AddCast
1175 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1176 disable the SWIG_AddCast, making the casting between string and
1177 numbers less strict.
1179 In the end, we try to solve the overloading between strings and
1180 numerical types in the more natural way, but if you can avoid it,
1181 well, avoid it using %rename, for example.
1183 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1184 # ifndef SWIG_PERL_STRICT_STR2NUM
1185 # define SWIG_PERL_STRICT_STR2NUM
1188 #ifdef SWIG_PERL_STRICT_STR2NUM
1189 /* string takes precedence */
1190 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
1192 /* number takes precedence */
1193 #define SWIG_Str2NumCast(x) x
1200 SWIGRUNTIME
const char *
1201 SWIG_Perl_TypeProxyName(const swig_type_info
*type
)
1203 if (!type
) return NULL
;
1204 if (type
->clientdata
!= NULL
)
1206 return (const char*) type
->clientdata
;
1214 /* Identical to SWIG_TypeCheck, except for strcmp comparison */
1215 SWIGRUNTIME swig_cast_info
*
1216 SWIG_TypeProxyCheck(const char *c
, swig_type_info
*ty
)
1220 swig_cast_info
*iter
= ty
->cast
;
1223 if ( (!iter
->type
->clientdata
&& (strcmp(iter
->type
->name
, c
) == 0)) ||
1224 (iter
->type
->clientdata
&& (strcmp((char*)iter
->type
->clientdata
, c
) == 0)) )
1226 if (iter
== ty
->cast
)
1228 /* Move iter to the top of the linked list */
1229 iter
->prev
->next
= iter
->next
;
1231 iter
->next
->prev
= iter
->prev
;
1232 iter
->next
= ty
->cast
;
1234 if (ty
->cast
) ty
->cast
->prev
= iter
;
1244 /* Function for getting a pointer value */
1247 SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV
*sv
, void **ptr
, swig_type_info
*_t
, int flags
, int *own
)
1250 void *voidptr
= (void *)0;
1256 /* If magical, apply more magic */
1260 /* Check to see if this is an object */
1261 if (sv_isobject(sv
))
1264 tsv
= (SV
*) SvRV(sv
);
1265 if ((SvTYPE(tsv
) == SVt_PVHV
))
1270 mg
= mg_find(tsv
,'P');
1274 if (sv_isobject(sv
))
1276 tsv
= (SV
*)SvRV(sv
);
1290 voidptr
= INT2PTR(void *,tmp
);
1292 else if (! SvOK(sv
)) /* Check for undef */
1294 *(ptr
) = (void *) 0;
1297 else if (SvTYPE(sv
) == SVt_RV
) /* Check for NULL pointer */
1301 *(ptr
) = (void *) 0;
1309 else /* Don't know what it is */
1315 /* Now see if the types match */
1316 char *_c
= HvNAME(SvSTASH(SvRV(sv
)));
1317 tc
= SWIG_TypeProxyCheck(_c
,_t
);
1324 *ptr
= SWIG_TypeCast(tc
,voidptr
,&newmemory
);
1325 if (newmemory
== SWIG_CAST_NEW_MEMORY
)
1327 assert(own
); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
1329 *own
= *own
| SWIG_CAST_NEW_MEMORY
;
1339 * DISOWN implementation: we need a perl guru to check this one.
1341 if (tsv
&& (flags
& SWIG_POINTER_DISOWN
))
1344 * almost copy paste code from below SWIG_POINTER_OWN setting
1347 HV
*stash
= SvSTASH(SvRV(obj
));
1348 GV
*gv
= *(GV
**)hv_fetch(stash
, "OWNER", 5, TRUE
);
1353 * To set ownership (see below), a newSViv(1) entry is added.
1354 * Hence, to remove ownership, we delete the entry.
1356 if (hv_exists_ent(hv
, obj
, 0))
1358 hv_delete_ent(hv
, obj
, 0, 0);
1366 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV
*sv
, void **ptr
, swig_type_info
*_t
, int flags
)
1368 return SWIG_Perl_ConvertPtrAndOwn(sv
, ptr
, _t
, flags
, 0);
1372 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV
*sv
, void *ptr
, swig_type_info
*t
, int flags
)
1374 if (ptr
&& (flags
& (SWIG_SHADOW
| SWIG_POINTER_OWN
)))
1380 sv_setref_pv(obj
, (char *) SWIG_Perl_TypeProxyName(t
), ptr
);
1381 stash
=SvSTASH(SvRV(obj
));
1382 if (flags
& SWIG_POINTER_OWN
)
1385 GV
*gv
= *(GV
**)hv_fetch(stash
, "OWNER", 5, TRUE
);
1387 gv_init(gv
, stash
, "OWNER", 5, FALSE
);
1389 hv_store_ent(hv
, obj
, newSViv(1), 0);
1391 sv_magic((SV
*)hash
, (SV
*)obj
, 'P', Nullch
, 0);
1393 self
=newRV_noinc((SV
*)hash
);
1395 SvREFCNT_dec((SV
*)self
);
1396 sv_bless(sv
, stash
);
1400 sv_setref_pv(sv
, (char *) SWIG_Perl_TypeProxyName(t
), ptr
);
1404 SWIGRUNTIMEINLINE SV
*
1405 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT
void *ptr
, swig_type_info
*t
, int flags
)
1407 SV
*result
= sv_newmortal();
1408 SWIG_MakePtr(result
, ptr
, t
, flags
);
1413 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV
*sv
, void *ptr
, int sz
, swig_type_info
*type
)
1417 if ((2*sz
+ 1 + strlen(SWIG_Perl_TypeProxyName(type
))) > 1000) return;
1419 r
= SWIG_PackData(r
,ptr
,sz
);
1420 strcpy(r
,SWIG_Perl_TypeProxyName(type
));
1421 sv_setpv(sv
, result
);
1425 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT
void *ptr
, int sz
, swig_type_info
*type
)
1427 SV
*result
= sv_newmortal();
1428 SWIG_Perl_MakePackedObj(result
, ptr
, sz
, type
);
1432 /* Convert a packed value value */
1434 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV
*obj
, void *ptr
, int sz
, swig_type_info
*ty
)
1439 if ((!obj
) || (!SvOK(obj
))) return SWIG_ERROR
;
1440 c
= SvPV_nolen(obj
);
1441 /* Pointer values must start with leading underscore */
1442 if (*c
!= '_') return SWIG_ERROR
;
1444 c
= SWIG_UnpackData(c
,ptr
,sz
);
1447 tc
= SWIG_TypeCheck(c
,ty
);
1448 if (!tc
) return SWIG_ERROR
;
1454 /* Macros for low-level exception handling */
1455 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1458 typedef XSPROTO(SwigPerlWrapper
);
1459 typedef SwigPerlWrapper
*SwigPerlWrapperPtr
;
1461 /* Structure for command table */
1465 SwigPerlWrapperPtr wrapper
;
1466 } swig_command_info
;
1468 /* Information for constant table */
1471 #define SWIG_FLOAT 2
1472 #define SWIG_STRING 3
1473 #define SWIG_POINTER 4
1474 #define SWIG_BINARY 5
1476 /* Constant information structure */
1477 typedef struct swig_constant_info
1484 swig_type_info
**ptype
;
1485 } swig_constant_info
;
1488 /* Structure for variable table */
1494 swig_type_info
**type
;
1495 } swig_variable_info
;
1497 /* Magic variable code */
1499 #define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
1500 #ifndef MULTIPLICITY
1501 SWIGRUNTIME
void _swig_create_magic(SV
*sv
, char *name
, int (*set
)(SV
*, MAGIC
*), int (*get
)(SV
*,MAGIC
*))
1503 SWIGRUNTIME
void _swig_create_magic(SV
*sv
, char *name
, int (*set
)(struct interpreter
*, SV
*, MAGIC
*), int (*get
)(struct interpreter
*, SV
*,MAGIC
*))
1506 # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
1507 SWIGRUNTIME
void _swig_create_magic(CPerlObj
*pPerl
, SV
*sv
, const char *name
, int (CPerlObj::*set
)(SV
*, MAGIC
*), int (CPerlObj::*get
)(SV
*, MAGIC
*))
1511 sv_magic(sv
,sv
,'U',(char *) name
,strlen(name
));
1512 mg
= mg_find(sv
,'U');
1513 mg
->mg_virtual
= (MGVTBL
*) malloc(sizeof(MGVTBL
));
1514 mg
->mg_virtual
->svt_get
= (SwigMagicFunc
) get
;
1515 mg
->mg_virtual
->svt_set
= (SwigMagicFunc
) set
;
1516 mg
->mg_virtual
->svt_len
= 0;
1517 mg
->mg_virtual
->svt_clear
= 0;
1518 mg
->mg_virtual
->svt_free
= 0;
1522 SWIGRUNTIME swig_module_info
*
1523 SWIG_Perl_GetModule(void)
1525 static void *type_pointer
= (void *)0;
1528 /* first check if pointer already created */
1531 pointer
= get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME
, FALSE
| GV_ADDMULTI
);
1532 if (pointer
&& SvOK(pointer
))
1534 type_pointer
= INT2PTR(swig_type_info
**, SvIV(pointer
));
1538 return (swig_module_info
*) type_pointer
;
1542 SWIG_Perl_SetModule(swig_module_info
*module
)
1546 /* create a new pointer */
1547 pointer
= get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME
, TRUE
| GV_ADDMULTI
);
1548 sv_setiv(pointer
, PTR2IV(module
));
1555 /* Workaround perl5 global namespace pollution. Note that undefining library
1556 * functions like fopen will not solve the problem on all platforms as fopen
1557 * might be a macro on Windows but not necessarily on other operating systems. */
1666 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1668 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1672 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
1675 /* -------- TYPES TABLE (BEGIN) -------- */
1677 #define SWIGTYPE_p_Link swig_types[0]
1678 #define SWIGTYPE_p_Options swig_types[1]
1679 #define SWIGTYPE_p_Query swig_types[2]
1680 #define SWIGTYPE_p_Video swig_types[3]
1681 #define SWIGTYPE_p_char swig_types[4]
1682 #define SWIGTYPE_p_quviCategory swig_types[5]
1683 #define SWIGTYPE_p_quviCode swig_types[6]
1684 #define SWIGTYPE_p_quviVersion swig_types[7]
1685 #define SWIGTYPE_p_std__string swig_types[8]
1686 static swig_type_info
*swig_types
[10];
1687 static swig_module_info swig_module
= {swig_types
, 9, 0, 0, 0, 0};
1688 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1689 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1691 /* -------- TYPES TABLE (END) -------- */
1693 #define SWIG_init boot_WWW__Quvi
1695 #define SWIG_name "WWW::Quvic::boot_WWW__Quvi"
1696 #define SWIG_prefix "WWW::Quvic::"
1698 #define SWIGVERSION 0x020002
1699 #define SWIG_VERSION SWIGVERSION
1702 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1703 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1706 #include <stdexcept>
1713 #ifndef MULTIPLICITY
1714 SWIGEXPORT
void SWIG_init (CV
* cv
);
1716 SWIGEXPORT
void SWIG_init (pTHXo_ CV
* cv
);
1719 SWIGEXPORT
void SWIG_init (CV
*cv
, CPerlObj
*);
1730 char *_VERSION
= VERSION
;
1734 libquviVersion
= QUVI_VERSION
,
1735 libquviVersionLong
= QUVI_VERSION_LONG
,
1739 static char* version (quviVersion n
=ModuleVersion
)
1741 if (n
== ModuleVersion
) return _VERSION
;
1742 return quvi_version ((QUVIversion
)n
);
1746 * A manual copy of QUVIcode. If there's a better way to do this,
1747 * I'd like to know it too. This will need to be maintained manually
1748 * if there are any changes to the QUVIcode enum list in quvi.h file.
1750 * The reason we don't simply "%include <quvi/quvi.h>" and
1751 * get the constants is because that would clutter the wrapper.
1753 * We have renamed the constants to avoid any conflicts with those
1754 * defined in <quvi/quvi.h> which is included by the wrapper.
1768 PcreError
= 0x40, /* QUVI_PCRE */
1770 CurlError
, /* QUVI_CURL */
1771 IconvError
, /* QUVI_ICONV */
1772 LuaError
, /* QUVI_LUA */
1781 ProtoAll
= (ProtoHttp
|ProtoMms
|ProtoRtsp
|ProtoRtmp
)
1786 SWIGINTERN swig_type_info
*
1787 SWIG_pchar_descriptor(void)
1789 static int init
= 0;
1790 static swig_type_info
* info
= 0;
1793 info
= SWIG_TypeQuery("_p_char");
1801 SWIG_AsCharPtrAndSize(SV
*obj
, char** cptr
, size_t* psize
, int *alloc
)
1805 SV
*tmp
= sv_newmortal();
1812 char *cstr
= SvPV(obj
, len
);
1813 size_t size
= len
+ 1;
1818 if (*alloc
== SWIG_NEWOBJ
)
1820 *cptr
= reinterpret_cast< char* >(memcpy((new char[size
]), cstr
, sizeof(char)*(size
)));
1825 *alloc
= SWIG_OLDOBJ
;
1829 if (psize
) *psize
= size
;
1834 swig_type_info
* pchar_descriptor
= SWIG_pchar_descriptor();
1835 if (pchar_descriptor
)
1838 if (SWIG_ConvertPtr(obj
, (void**)&vptr
, pchar_descriptor
, 0) == SWIG_OK
)
1840 if (cptr
) *cptr
= vptr
;
1841 if (psize
) *psize
= vptr
? (strlen(vptr
) + 1) : 0;
1842 if (alloc
) *alloc
= SWIG_OLDOBJ
;
1847 return SWIG_TypeError
;
1851 SWIGINTERNINLINE SV
*
1852 SWIG_FromCharPtrAndSize(const char* carray
, size_t size
)
1854 SV
*obj
= sv_newmortal();
1857 sv_setpvn(obj
, carray
, size
);
1861 sv_setsv(obj
, &PL_sv_undef
);
1867 SWIGINTERNINLINE SV
*
1868 SWIG_FromCharPtr(const char *cptr
)
1870 return SWIG_FromCharPtrAndSize(cptr
, (cptr
? strlen(cptr
) : 0));
1874 SWIGINTERNINLINE SV
*
1875 SWIG_From_long
SWIG_PERL_DECL_ARGS_1(long value
)
1877 SV
*obj
= sv_newmortal();
1878 sv_setiv(obj
, (IV
) value
);
1883 SWIGINTERNINLINE SV
*
1884 SWIG_From_int
SWIG_PERL_DECL_ARGS_1(int value
)
1886 return SWIG_From_long
SWIG_PERL_CALL_ARGS_1(value
);
1891 #if !defined(SWIG_NO_LLONG_MAX)
1892 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1893 # define LLONG_MAX __LONG_LONG_MAX__
1894 # define LLONG_MIN (-LLONG_MAX - 1LL)
1895 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1901 SWIG_AsVal_double
SWIG_PERL_DECL_ARGS_2(SV
*obj
, double *val
)
1905 if (val
) *val
= SvNV(obj
);
1908 else if (SvIOK(obj
))
1910 if (val
) *val
= (double) SvIV(obj
);
1911 return SWIG_AddCast(SWIG_OK
);
1915 const char *nptr
= SvPV_nolen(obj
);
1921 v
= strtod(nptr
, &endptr
);
1922 if (errno
== ERANGE
)
1925 return SWIG_OverflowError
;
1929 if (*endptr
== '\0')
1932 return SWIG_Str2NumCast(SWIG_OK
);
1937 return SWIG_TypeError
;
1947 SWIGINTERNINLINE
int
1948 SWIG_CanCastAsInteger(double *d
, double min
, double max
)
1951 if ((min
<= x
&& x
<= max
))
1953 double fx
= floor(x
);
1954 double cx
= ceil(x
);
1955 double rd
= ((x
- fx
) < 0.5) ? fx
: cx
; /* simple rint */
1956 if ((errno
== EDOM
) || (errno
== ERANGE
))
1962 double summ
, reps
, diff
;
1977 if (reps
< 8*DBL_EPSILON
)
1989 SWIG_AsVal_long
SWIG_PERL_DECL_ARGS_2(SV
*obj
, long* val
)
1993 if (val
) *val
= SvIV(obj
);
1999 const char *nptr
= SvPV_nolen(obj
);
2005 v
= strtol(nptr
, &endptr
,0);
2006 if (errno
== ERANGE
)
2009 return SWIG_OverflowError
;
2013 if (*endptr
== '\0')
2016 return SWIG_Str2NumCast(SWIG_OK
);
2023 int res
= SWIG_AddCast(SWIG_AsVal_double
SWIG_PERL_CALL_ARGS_2(obj
,&d
));
2024 if (SWIG_IsOK(res
) && SWIG_CanCastAsInteger(&d
, LONG_MIN
, LONG_MAX
))
2026 if (val
) *val
= (long)(d
);
2031 return SWIG_TypeError
;
2036 SWIG_AsVal_int
SWIG_PERL_DECL_ARGS_2(SV
* obj
, int *val
)
2039 int res
= SWIG_AsVal_long
SWIG_PERL_CALL_ARGS_2(obj
, &v
);
2042 if ((v
< INT_MIN
|| v
> INT_MAX
))
2044 return SWIG_OverflowError
;
2048 if (val
) *val
= static_cast< int >(v
);
2056 SWIG_AsPtr_std_string
SWIG_PERL_DECL_ARGS_2(SV
* obj
, std::string
**val
)
2060 int alloc
= SWIG_OLDOBJ
;
2061 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj
, &buf
, &size
, &alloc
))))
2065 if (val
) *val
= new std::string(buf
, size
- 1);
2066 if (alloc
== SWIG_NEWOBJ
) delete[] buf
;
2077 static int init
= 0;
2078 static swig_type_info
* descriptor
= 0;
2081 descriptor
= SWIG_TypeQuery("std::string" " *");
2087 int res
= SWIG_ConvertPtr(obj
, (void**)&vptr
, descriptor
, 0);
2088 if (SWIG_IsOK(res
) && val
) *val
= vptr
;
2096 SWIGINTERNINLINE SV
*
2097 SWIG_From_std_string
SWIG_PERL_DECL_ARGS_1(const std::string
& s
)
2099 return SWIG_FromCharPtrAndSize(s
.data(), s
.size());
2104 SWIG_AsVal_bool
SWIG_PERL_DECL_ARGS_2(SV
*obj
, bool* val
)
2106 if (obj
== &PL_sv_yes
)
2108 if (val
) *val
= true;
2111 else if (obj
== &PL_sv_no
)
2113 if (val
) *val
= false;
2118 if (val
) *val
= SvTRUE(obj
) ? true: false;
2119 return SWIG_AddCast(SWIG_OK
);
2121 return SWIG_TypeError
;
2125 SWIGINTERNINLINE SV
*
2126 SWIG_From_bool
SWIG_PERL_DECL_ARGS_1(bool value
)
2128 SV
*obj
= sv_newmortal();
2131 sv_setsv(obj
, &PL_sv_yes
);
2135 sv_setsv(obj
, &PL_sv_no
);
2141 SWIGINTERNINLINE SV
*
2142 SWIG_From_double
SWIG_PERL_DECL_ARGS_1(double value
)
2144 SV
*obj
= sv_newmortal();
2145 sv_setnv(obj
, value
);
2154 #define MAGIC_CLASS _wrap_WWW__Quvi_var::
2155 class _wrap_WWW__Quvi_var
: public CPerlObj
2161 SWIGCLASS_STATIC
int swig_magic_readonly(pTHX_ SV
*SWIGUNUSEDPARM(sv
), MAGIC
*SWIGUNUSEDPARM(mg
))
2164 croak("Value is read-only.");
2167 SWIGCLASS_STATIC
int _wrap__VERSION_set(pTHX_ SV
* sv
, MAGIC
* SWIGUNUSEDPARM(mg
))
2173 int alloc
= SWIG_NEWOBJ
;
2174 int res
= SWIG_AsCharPtrAndSize(sv
, &cptr
, &csize
, &alloc
);
2175 if (!SWIG_IsOK(res
))
2177 SWIG_exception_fail(SWIG_ArgError(res
), "in variable '""_VERSION""' of type '""char *""'");
2179 if (_VERSION
) delete[] _VERSION
;
2180 if (alloc
== SWIG_NEWOBJ
)
2185 _VERSION
= csize
? (char *)reinterpret_cast< char* >(memcpy((new char[csize
]), cptr
, sizeof(char)*(csize
))) : 0;
2193 SWIGCLASS_STATIC
int _wrap__VERSION_get(pTHX_ SV
*sv
, MAGIC
*SWIGUNUSEDPARM(mg
))
2196 sv_setsv(sv
,SWIG_FromCharPtr(_VERSION
)) ;
2214 XS(_wrap_version__SWIG_0
)
2224 if ((items
< 1) || (items
> 1))
2226 SWIG_croak("Usage: version(n);");
2228 ecode1
= SWIG_AsVal_int
SWIG_PERL_CALL_ARGS_2(ST(0), &val1
);
2229 if (!SWIG_IsOK(ecode1
))
2231 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "version" "', argument " "1"" of type '" "quviVersion""'");
2233 arg1
= static_cast< quviVersion
>(val1
);
2234 result
= (char *)version(arg1
);
2235 ST(argvi
) = SWIG_FromCharPtr((const char *)result
);
2246 XS(_wrap_version__SWIG_1
)
2253 if ((items
< 0) || (items
> 0))
2255 SWIG_croak("Usage: version();");
2257 result
= (char *)version();
2258 ST(argvi
) = SWIG_FromCharPtr((const char *)result
);
2272 unsigned long _index
= 0;
2273 SWIG_TypeRank _rank
= 0;
2276 SWIG_TypeRank _ranki
= 0;
2277 SWIG_TypeRank _rankm
= 0;
2278 if (!_index
|| (_ranki
< _rank
))
2282 if (_rank
== _rankm
) goto dispatch
;
2287 SWIG_TypeRank _ranki
= 0;
2288 SWIG_TypeRank _rankm
= 0;
2289 SWIG_TypeRank _pi
= 1;
2293 int res
= SWIG_AsVal_int
SWIG_PERL_CALL_ARGS_2(ST(0), NULL
);
2294 _v
= SWIG_CheckState(res
);
2297 if (!_v
) goto check_2
;
2300 _pi
*= SWIG_MAXCASTRANK
;
2301 if (!_index
|| (_ranki
< _rank
))
2305 if (_rank
== _rankm
) goto dispatch
;
2315 SWIG_CALLXS(_wrap_version__SWIG_1
);
2319 SWIG_CALLXS(_wrap_version__SWIG_0
);
2324 croak("No matching function for overloaded 'version'");
2329 XS(_wrap_new_Options
)
2333 Options
*result
= 0 ;
2336 if ((items
< 0) || (items
> 0))
2338 SWIG_croak("Usage: new_Options();");
2340 result
= (Options
*)new Options();
2341 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Options
, SWIG_OWNER
| SWIG_SHADOW
);
2350 XS(_wrap_Options_user_agent_set
)
2353 Options
*arg1
= (Options
*) 0 ;
2354 std::string
*arg2
= 0 ;
2357 int res2
= SWIG_OLDOBJ
;
2361 if ((items
< 2) || (items
> 2))
2363 SWIG_croak("Usage: Options_user_agent_set(self,user_agent);");
2365 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2366 if (!SWIG_IsOK(res1
))
2368 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_user_agent_set" "', argument " "1"" of type '" "Options *""'");
2370 arg1
= reinterpret_cast< Options
* >(argp1
);
2372 std::string
*ptr
= (std::string
*)0;
2373 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2374 if (!SWIG_IsOK(res2
))
2376 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_user_agent_set" "', argument " "2"" of type '" "std::string const &""'");
2380 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_user_agent_set" "', argument " "2"" of type '" "std::string const &""'");
2384 if (arg1
) (arg1
)->user_agent
= *arg2
;
2385 ST(argvi
) = sv_newmortal();
2387 if (SWIG_IsNewObj(res2
)) delete arg2
;
2391 if (SWIG_IsNewObj(res2
)) delete arg2
;
2397 XS(_wrap_Options_user_agent_get
)
2400 Options
*arg1
= (Options
*) 0 ;
2404 std::string
*result
= 0 ;
2407 if ((items
< 1) || (items
> 1))
2409 SWIG_croak("Usage: Options_user_agent_get(self);");
2411 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2412 if (!SWIG_IsOK(res1
))
2414 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_user_agent_get" "', argument " "1"" of type '" "Options *""'");
2416 arg1
= reinterpret_cast< Options
* >(argp1
);
2417 result
= (std::string
*) & ((arg1
)->user_agent
);
2418 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2429 XS(_wrap_Options_http_proxy_set
)
2432 Options
*arg1
= (Options
*) 0 ;
2433 std::string
*arg2
= 0 ;
2436 int res2
= SWIG_OLDOBJ
;
2440 if ((items
< 2) || (items
> 2))
2442 SWIG_croak("Usage: Options_http_proxy_set(self,http_proxy);");
2444 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2445 if (!SWIG_IsOK(res1
))
2447 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_http_proxy_set" "', argument " "1"" of type '" "Options *""'");
2449 arg1
= reinterpret_cast< Options
* >(argp1
);
2451 std::string
*ptr
= (std::string
*)0;
2452 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2453 if (!SWIG_IsOK(res2
))
2455 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_http_proxy_set" "', argument " "2"" of type '" "std::string const &""'");
2459 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_http_proxy_set" "', argument " "2"" of type '" "std::string const &""'");
2463 if (arg1
) (arg1
)->http_proxy
= *arg2
;
2464 ST(argvi
) = sv_newmortal();
2466 if (SWIG_IsNewObj(res2
)) delete arg2
;
2470 if (SWIG_IsNewObj(res2
)) delete arg2
;
2476 XS(_wrap_Options_http_proxy_get
)
2479 Options
*arg1
= (Options
*) 0 ;
2483 std::string
*result
= 0 ;
2486 if ((items
< 1) || (items
> 1))
2488 SWIG_croak("Usage: Options_http_proxy_get(self);");
2490 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2491 if (!SWIG_IsOK(res1
))
2493 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_http_proxy_get" "', argument " "1"" of type '" "Options *""'");
2495 arg1
= reinterpret_cast< Options
* >(argp1
);
2496 result
= (std::string
*) & ((arg1
)->http_proxy
);
2497 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2508 XS(_wrap_Options_verbose_libcurl_set
)
2511 Options
*arg1
= (Options
*) 0 ;
2520 if ((items
< 2) || (items
> 2))
2522 SWIG_croak("Usage: Options_verbose_libcurl_set(self,verbose_libcurl);");
2524 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2525 if (!SWIG_IsOK(res1
))
2527 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verbose_libcurl_set" "', argument " "1"" of type '" "Options *""'");
2529 arg1
= reinterpret_cast< Options
* >(argp1
);
2530 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2531 if (!SWIG_IsOK(ecode2
))
2533 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_verbose_libcurl_set" "', argument " "2"" of type '" "bool""'");
2535 arg2
= static_cast< bool >(val2
);
2536 if (arg1
) (arg1
)->verbose_libcurl
= arg2
;
2537 ST(argvi
) = sv_newmortal();
2549 XS(_wrap_Options_verbose_libcurl_get
)
2552 Options
*arg1
= (Options
*) 0 ;
2559 if ((items
< 1) || (items
> 1))
2561 SWIG_croak("Usage: Options_verbose_libcurl_get(self);");
2563 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2564 if (!SWIG_IsOK(res1
))
2566 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verbose_libcurl_get" "', argument " "1"" of type '" "Options *""'");
2568 arg1
= reinterpret_cast< Options
* >(argp1
);
2569 result
= (bool) ((arg1
)->verbose_libcurl
);
2570 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2581 XS(_wrap_Options_format_set
)
2584 Options
*arg1
= (Options
*) 0 ;
2585 std::string
*arg2
= 0 ;
2588 int res2
= SWIG_OLDOBJ
;
2592 if ((items
< 2) || (items
> 2))
2594 SWIG_croak("Usage: Options_format_set(self,format);");
2596 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2597 if (!SWIG_IsOK(res1
))
2599 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_format_set" "', argument " "1"" of type '" "Options *""'");
2601 arg1
= reinterpret_cast< Options
* >(argp1
);
2603 std::string
*ptr
= (std::string
*)0;
2604 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2605 if (!SWIG_IsOK(res2
))
2607 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_format_set" "', argument " "2"" of type '" "std::string const &""'");
2611 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_format_set" "', argument " "2"" of type '" "std::string const &""'");
2615 if (arg1
) (arg1
)->format
= *arg2
;
2616 ST(argvi
) = sv_newmortal();
2618 if (SWIG_IsNewObj(res2
)) delete arg2
;
2622 if (SWIG_IsNewObj(res2
)) delete arg2
;
2628 XS(_wrap_Options_format_get
)
2631 Options
*arg1
= (Options
*) 0 ;
2635 std::string
*result
= 0 ;
2638 if ((items
< 1) || (items
> 1))
2640 SWIG_croak("Usage: Options_format_get(self);");
2642 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2643 if (!SWIG_IsOK(res1
))
2645 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_format_get" "', argument " "1"" of type '" "Options *""'");
2647 arg1
= reinterpret_cast< Options
* >(argp1
);
2648 result
= (std::string
*) & ((arg1
)->format
);
2649 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2660 XS(_wrap_Options_verify_set
)
2663 Options
*arg1
= (Options
*) 0 ;
2672 if ((items
< 2) || (items
> 2))
2674 SWIG_croak("Usage: Options_verify_set(self,verify);");
2676 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2677 if (!SWIG_IsOK(res1
))
2679 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verify_set" "', argument " "1"" of type '" "Options *""'");
2681 arg1
= reinterpret_cast< Options
* >(argp1
);
2682 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2683 if (!SWIG_IsOK(ecode2
))
2685 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_verify_set" "', argument " "2"" of type '" "bool""'");
2687 arg2
= static_cast< bool >(val2
);
2688 if (arg1
) (arg1
)->verify
= arg2
;
2689 ST(argvi
) = sv_newmortal();
2701 XS(_wrap_Options_verify_get
)
2704 Options
*arg1
= (Options
*) 0 ;
2711 if ((items
< 1) || (items
> 1))
2713 SWIG_croak("Usage: Options_verify_get(self);");
2715 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2716 if (!SWIG_IsOK(res1
))
2718 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verify_get" "', argument " "1"" of type '" "Options *""'");
2720 arg1
= reinterpret_cast< Options
* >(argp1
);
2721 result
= (bool) ((arg1
)->verify
);
2722 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2733 XS(_wrap_Options_shortened_set
)
2736 Options
*arg1
= (Options
*) 0 ;
2745 if ((items
< 2) || (items
> 2))
2747 SWIG_croak("Usage: Options_shortened_set(self,shortened);");
2749 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2750 if (!SWIG_IsOK(res1
))
2752 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_shortened_set" "', argument " "1"" of type '" "Options *""'");
2754 arg1
= reinterpret_cast< Options
* >(argp1
);
2755 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2756 if (!SWIG_IsOK(ecode2
))
2758 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_shortened_set" "', argument " "2"" of type '" "bool""'");
2760 arg2
= static_cast< bool >(val2
);
2761 if (arg1
) (arg1
)->shortened
= arg2
;
2762 ST(argvi
) = sv_newmortal();
2774 XS(_wrap_Options_shortened_get
)
2777 Options
*arg1
= (Options
*) 0 ;
2784 if ((items
< 1) || (items
> 1))
2786 SWIG_croak("Usage: Options_shortened_get(self);");
2788 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2789 if (!SWIG_IsOK(res1
))
2791 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_shortened_get" "', argument " "1"" of type '" "Options *""'");
2793 arg1
= reinterpret_cast< Options
* >(argp1
);
2794 result
= (bool) ((arg1
)->shortened
);
2795 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2806 XS(_wrap_Options_category_set
)
2809 Options
*arg1
= (Options
*) 0 ;
2818 if ((items
< 2) || (items
> 2))
2820 SWIG_croak("Usage: Options_category_set(self,category);");
2822 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2823 if (!SWIG_IsOK(res1
))
2825 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_category_set" "', argument " "1"" of type '" "Options *""'");
2827 arg1
= reinterpret_cast< Options
* >(argp1
);
2828 ecode2
= SWIG_AsVal_long
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2829 if (!SWIG_IsOK(ecode2
))
2831 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_category_set" "', argument " "2"" of type '" "long""'");
2833 arg2
= static_cast< long >(val2
);
2834 if (arg1
) (arg1
)->category
= arg2
;
2835 ST(argvi
) = sv_newmortal();
2847 XS(_wrap_Options_category_get
)
2850 Options
*arg1
= (Options
*) 0 ;
2857 if ((items
< 1) || (items
> 1))
2859 SWIG_croak("Usage: Options_category_get(self);");
2861 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2862 if (!SWIG_IsOK(res1
))
2864 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_category_get" "', argument " "1"" of type '" "Options *""'");
2866 arg1
= reinterpret_cast< Options
* >(argp1
);
2867 result
= (long) ((arg1
)->category
);
2868 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
2879 XS(_wrap_delete_Options
)
2882 Options
*arg1
= (Options
*) 0 ;
2888 if ((items
< 1) || (items
> 1))
2890 SWIG_croak("Usage: delete_Options(self);");
2892 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, SWIG_POINTER_DISOWN
| 0 );
2893 if (!SWIG_IsOK(res1
))
2895 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Options" "', argument " "1"" of type '" "Options *""'");
2897 arg1
= reinterpret_cast< Options
* >(argp1
);
2899 ST(argvi
) = sv_newmortal();
2916 if ((items
< 0) || (items
> 0))
2918 SWIG_croak("Usage: new_Link();");
2920 result
= (Link
*)new Link();
2921 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Link
, SWIG_OWNER
| SWIG_SHADOW
);
2930 XS(_wrap_Link_content_type_get
)
2933 Link
*arg1
= (Link
*) 0 ;
2937 std::string
*result
= 0 ;
2940 if ((items
< 1) || (items
> 1))
2942 SWIG_croak("Usage: Link_content_type_get(self);");
2944 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
2945 if (!SWIG_IsOK(res1
))
2947 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_content_type_get" "', argument " "1"" of type '" "Link *""'");
2949 arg1
= reinterpret_cast< Link
* >(argp1
);
2950 result
= (std::string
*) & ((arg1
)->content_type
);
2951 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2962 XS(_wrap_Link_file_suffix_get
)
2965 Link
*arg1
= (Link
*) 0 ;
2969 std::string
*result
= 0 ;
2972 if ((items
< 1) || (items
> 1))
2974 SWIG_croak("Usage: Link_file_suffix_get(self);");
2976 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
2977 if (!SWIG_IsOK(res1
))
2979 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_file_suffix_get" "', argument " "1"" of type '" "Link *""'");
2981 arg1
= reinterpret_cast< Link
* >(argp1
);
2982 result
= (std::string
*) & ((arg1
)->file_suffix
);
2983 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2994 XS(_wrap_Link_length_bytes_get
)
2997 Link
*arg1
= (Link
*) 0 ;
3004 if ((items
< 1) || (items
> 1))
3006 SWIG_croak("Usage: Link_length_bytes_get(self);");
3008 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
3009 if (!SWIG_IsOK(res1
))
3011 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_length_bytes_get" "', argument " "1"" of type '" "Link *""'");
3013 arg1
= reinterpret_cast< Link
* >(argp1
);
3014 result
= (double) ((arg1
)->length_bytes
);
3015 ST(argvi
) = SWIG_From_double
SWIG_PERL_CALL_ARGS_1(static_cast< double >(result
));
3026 XS(_wrap_Link_url_get
)
3029 Link
*arg1
= (Link
*) 0 ;
3033 std::string
*result
= 0 ;
3036 if ((items
< 1) || (items
> 1))
3038 SWIG_croak("Usage: Link_url_get(self);");
3040 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
3041 if (!SWIG_IsOK(res1
))
3043 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_url_get" "', argument " "1"" of type '" "Link *""'");
3045 arg1
= reinterpret_cast< Link
* >(argp1
);
3046 result
= (std::string
*) & ((arg1
)->url
);
3047 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3058 XS(_wrap_delete_Link
)
3061 Link
*arg1
= (Link
*) 0 ;
3067 if ((items
< 1) || (items
> 1))
3069 SWIG_croak("Usage: delete_Link(self);");
3071 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, SWIG_POINTER_DISOWN
| 0 );
3072 if (!SWIG_IsOK(res1
))
3074 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Link" "', argument " "1"" of type '" "Link *""'");
3076 arg1
= reinterpret_cast< Link
* >(argp1
);
3078 ST(argvi
) = sv_newmortal();
3095 if ((items
< 0) || (items
> 0))
3097 SWIG_croak("Usage: new_Video();");
3099 result
= (Video
*)new Video();
3100 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Video
, SWIG_OWNER
| SWIG_SHADOW
);
3109 XS(_wrap_Video_title_get
)
3112 Video
*arg1
= (Video
*) 0 ;
3116 std::string
*result
= 0 ;
3119 if ((items
< 1) || (items
> 1))
3121 SWIG_croak("Usage: Video_title_get(self);");
3123 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3124 if (!SWIG_IsOK(res1
))
3126 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_title_get" "', argument " "1"" of type '" "Video *""'");
3128 arg1
= reinterpret_cast< Video
* >(argp1
);
3129 result
= (std::string
*) & ((arg1
)->title
);
3130 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3141 XS(_wrap_Video_host_get
)
3144 Video
*arg1
= (Video
*) 0 ;
3148 std::string
*result
= 0 ;
3151 if ((items
< 1) || (items
> 1))
3153 SWIG_croak("Usage: Video_host_get(self);");
3155 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3156 if (!SWIG_IsOK(res1
))
3158 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_host_get" "', argument " "1"" of type '" "Video *""'");
3160 arg1
= reinterpret_cast< Video
* >(argp1
);
3161 result
= (std::string
*) & ((arg1
)->host
);
3162 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3173 XS(_wrap_Video_url_get
)
3176 Video
*arg1
= (Video
*) 0 ;
3180 std::string
*result
= 0 ;
3183 if ((items
< 1) || (items
> 1))
3185 SWIG_croak("Usage: Video_url_get(self);");
3187 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3188 if (!SWIG_IsOK(res1
))
3190 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_url_get" "', argument " "1"" of type '" "Video *""'");
3192 arg1
= reinterpret_cast< Video
* >(argp1
);
3193 result
= (std::string
*) & ((arg1
)->url
);
3194 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3205 XS(_wrap_Video_id_get
)
3208 Video
*arg1
= (Video
*) 0 ;
3212 std::string
*result
= 0 ;
3215 if ((items
< 1) || (items
> 1))
3217 SWIG_croak("Usage: Video_id_get(self);");
3219 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3220 if (!SWIG_IsOK(res1
))
3222 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_id_get" "', argument " "1"" of type '" "Video *""'");
3224 arg1
= reinterpret_cast< Video
* >(argp1
);
3225 result
= (std::string
*) & ((arg1
)->id
);
3226 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3237 XS(_wrap_Video_link_get
)
3240 Video
*arg1
= (Video
*) 0 ;
3247 if ((items
< 1) || (items
> 1))
3249 SWIG_croak("Usage: Video_link_get(self);");
3251 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3252 if (!SWIG_IsOK(res1
))
3254 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_link_get" "', argument " "1"" of type '" "Video *""'");
3256 arg1
= reinterpret_cast< Video
* >(argp1
);
3257 result
= (Link
*)& ((arg1
)->link
);
3258 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Link
, 0 | SWIG_SHADOW
);
3269 XS(_wrap_Video_ok_get
)
3272 Video
*arg1
= (Video
*) 0 ;
3279 if ((items
< 1) || (items
> 1))
3281 SWIG_croak("Usage: Video_ok_get(self);");
3283 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3284 if (!SWIG_IsOK(res1
))
3286 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_ok_get" "', argument " "1"" of type '" "Video *""'");
3288 arg1
= reinterpret_cast< Video
* >(argp1
);
3289 result
= (bool) ((arg1
)->ok
);
3290 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
3301 XS(_wrap_Video_start_time_get
)
3304 Video
*arg1
= (Video
*) 0 ;
3308 std::string
*result
= 0 ;
3311 if ((items
< 1) || (items
> 1))
3313 SWIG_croak("Usage: Video_start_time_get(self);");
3315 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3316 if (!SWIG_IsOK(res1
))
3318 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_start_time_get" "', argument " "1"" of type '" "Video *""'");
3320 arg1
= reinterpret_cast< Video
* >(argp1
);
3321 result
= (std::string
*) & ((arg1
)->start_time
);
3322 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3333 XS(_wrap_delete_Video
)
3336 Video
*arg1
= (Video
*) 0 ;
3342 if ((items
< 1) || (items
> 1))
3344 SWIG_croak("Usage: delete_Video(self);");
3346 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, SWIG_POINTER_DISOWN
| 0 );
3347 if (!SWIG_IsOK(res1
))
3349 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Video" "', argument " "1"" of type '" "Video *""'");
3351 arg1
= reinterpret_cast< Video
* >(argp1
);
3353 ST(argvi
) = sv_newmortal();
3370 if ((items
< 0) || (items
> 0))
3372 SWIG_croak("Usage: new_Query();");
3377 result
= (Query
*)new Query();
3379 catch (const std::runtime_error
& e
)
3381 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3384 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Query
, SWIG_OWNER
| SWIG_SHADOW
);
3393 XS(_wrap_delete_Query
)
3396 Query
*arg1
= (Query
*) 0 ;
3402 if ((items
< 1) || (items
> 1))
3404 SWIG_croak("Usage: delete_Query(self);");
3406 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, SWIG_POINTER_DISOWN
| 0 );
3407 if (!SWIG_IsOK(res1
))
3409 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Query" "', argument " "1"" of type '" "Query *""'");
3411 arg1
= reinterpret_cast< Query
* >(argp1
);
3417 catch (const std::runtime_error
& e
)
3419 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3422 ST(argvi
) = sv_newmortal();
3432 XS(_wrap_Query_parse
)
3435 Query
*arg1
= (Query
*) 0 ;
3436 std::string
*arg2
= 0 ;
3440 int res2
= SWIG_OLDOBJ
;
3447 if ((items
< 3) || (items
> 3))
3449 SWIG_croak("Usage: Query_parse(self,std::string const &,Options const &);");
3451 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3452 if (!SWIG_IsOK(res1
))
3454 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_parse" "', argument " "1"" of type '" "Query *""'");
3456 arg1
= reinterpret_cast< Query
* >(argp1
);
3458 std::string
*ptr
= (std::string
*)0;
3459 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
3460 if (!SWIG_IsOK(res2
))
3462 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Query_parse" "', argument " "2"" of type '" "std::string const &""'");
3466 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_parse" "', argument " "2"" of type '" "std::string const &""'");
3470 res3
= SWIG_ConvertPtr(ST(2), &argp3
, SWIGTYPE_p_Options
, 0 );
3471 if (!SWIG_IsOK(res3
))
3473 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "Query_parse" "', argument " "3"" of type '" "Options const &""'");
3477 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_parse" "', argument " "3"" of type '" "Options const &""'");
3479 arg3
= reinterpret_cast< Options
* >(argp3
);
3483 result
= (arg1
)->parse((std::string
const &)*arg2
,(Options
const &)*arg3
);
3485 catch (const std::runtime_error
& e
)
3487 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3490 ST(argvi
) = SWIG_NewPointerObj((new Video(static_cast< const Video
& >(result
))), SWIGTYPE_p_Video
, SWIG_POINTER_OWN
| SWIG_SHADOW
);
3493 if (SWIG_IsNewObj(res2
)) delete arg2
;
3498 if (SWIG_IsNewObj(res2
)) delete arg2
;
3505 XS(_wrap_Query_next_website
)
3508 Query
*arg1
= (Query
*) 0 ;
3509 std::string
*arg2
= 0 ;
3510 std::string
*arg3
= 0 ;
3514 int res2
= SWIG_TMPOBJ
;
3516 int res3
= SWIG_TMPOBJ
;
3523 if ((items
< 1) || (items
> 1))
3525 SWIG_croak("Usage: Query_next_website(self);");
3527 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3528 if (!SWIG_IsOK(res1
))
3530 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_next_website" "', argument " "1"" of type '" "Query *""'");
3532 arg1
= reinterpret_cast< Query
* >(argp1
);
3536 result
= (int)(arg1
)->next_website(*arg2
,*arg3
);
3538 catch (const std::runtime_error
& e
)
3540 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3543 ST(argvi
) = SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(result
));
3545 if (SWIG_IsTmpObj(res2
))
3547 if (argvi
>= items
) EXTEND(sp
,1);
3548 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1((*arg2
));
3553 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0) : 0;
3554 if (argvi
>= items
) EXTEND(sp
,1);
3555 ST(argvi
) = SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_std__string
, new_flags
);
3558 if (SWIG_IsTmpObj(res3
))
3560 if (argvi
>= items
) EXTEND(sp
,1);
3561 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1((*arg3
));
3566 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0) : 0;
3567 if (argvi
>= items
) EXTEND(sp
,1);
3568 ST(argvi
) = SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_std__string
, new_flags
);
3584 XS(_wrap_Query_supported
)
3587 Query
*arg1
= (Query
*) 0 ;
3588 std::string
*arg2
= 0 ;
3591 int res2
= SWIG_OLDOBJ
;
3596 if ((items
< 2) || (items
> 2))
3598 SWIG_croak("Usage: Query_supported(self,std::string const &);");
3600 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3601 if (!SWIG_IsOK(res1
))
3603 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_supported" "', argument " "1"" of type '" "Query *""'");
3605 arg1
= reinterpret_cast< Query
* >(argp1
);
3607 std::string
*ptr
= (std::string
*)0;
3608 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
3609 if (!SWIG_IsOK(res2
))
3611 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Query_supported" "', argument " "2"" of type '" "std::string const &""'");
3615 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_supported" "', argument " "2"" of type '" "std::string const &""'");
3622 result
= (int)(arg1
)->supported((std::string
const &)*arg2
);
3624 catch (const std::runtime_error
& e
)
3626 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3629 ST(argvi
) = SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(result
));
3632 if (SWIG_IsNewObj(res2
)) delete arg2
;
3636 if (SWIG_IsNewObj(res2
)) delete arg2
;
3642 XS(_wrap_Query_last_error_get
)
3645 Query
*arg1
= (Query
*) 0 ;
3649 std::string
*result
= 0 ;
3652 if ((items
< 1) || (items
> 1))
3654 SWIG_croak("Usage: Query_last_error_get(self);");
3656 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3657 if (!SWIG_IsOK(res1
))
3659 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_last_error_get" "', argument " "1"" of type '" "Query *""'");
3661 arg1
= reinterpret_cast< Query
* >(argp1
);
3662 result
= (std::string
*) & ((arg1
)->last_error
);
3663 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3674 XS(_wrap_Query_quvi_code_get
)
3677 Query
*arg1
= (Query
*) 0 ;
3684 if ((items
< 1) || (items
> 1))
3686 SWIG_croak("Usage: Query_quvi_code_get(self);");
3688 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3689 if (!SWIG_IsOK(res1
))
3691 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_quvi_code_get" "', argument " "1"" of type '" "Query *""'");
3693 arg1
= reinterpret_cast< Query
* >(argp1
);
3694 result
= (long) ((arg1
)->quvi_code
);
3695 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
3706 XS(_wrap_Query_resp_code_get
)
3709 Query
*arg1
= (Query
*) 0 ;
3716 if ((items
< 1) || (items
> 1))
3718 SWIG_croak("Usage: Query_resp_code_get(self);");
3720 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3721 if (!SWIG_IsOK(res1
))
3723 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_resp_code_get" "', argument " "1"" of type '" "Query *""'");
3725 arg1
= reinterpret_cast< Query
* >(argp1
);
3726 result
= (long) ((arg1
)->resp_code
);
3727 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
3739 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3741 static swig_type_info _swigt__p_Link
= {"_p_Link", "Link *", 0, 0, (void*)"WWW::Quvi::Link", 0};
3742 static swig_type_info _swigt__p_Options
= {"_p_Options", "Options *", 0, 0, (void*)"WWW::Quvi::Options", 0};
3743 static swig_type_info _swigt__p_Query
= {"_p_Query", "Query *", 0, 0, (void*)"WWW::Quvi::Query", 0};
3744 static swig_type_info _swigt__p_Video
= {"_p_Video", "Video *", 0, 0, (void*)"WWW::Quvi::Video", 0};
3745 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, (void*)0, 0};
3746 static swig_type_info _swigt__p_quviCategory
= {"_p_quviCategory", "enum quviCategory *|quviCategory *", 0, 0, (void*)0, 0};
3747 static swig_type_info _swigt__p_quviCode
= {"_p_quviCode", "enum quviCode *|quviCode *", 0, 0, (void*)0, 0};
3748 static swig_type_info _swigt__p_quviVersion
= {"_p_quviVersion", "enum quviVersion *|quviVersion *", 0, 0, (void*)0, 0};
3749 static swig_type_info _swigt__p_std__string
= {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
3751 static swig_type_info
*swig_type_initial
[] =
3758 &_swigt__p_quviCategory
,
3759 &_swigt__p_quviCode
,
3760 &_swigt__p_quviVersion
,
3761 &_swigt__p_std__string
,
3764 static swig_cast_info _swigc__p_Link
[] = { {&_swigt__p_Link
, 0, 0, 0},{0, 0, 0, 0}};
3765 static swig_cast_info _swigc__p_Options
[] = { {&_swigt__p_Options
, 0, 0, 0},{0, 0, 0, 0}};
3766 static swig_cast_info _swigc__p_Query
[] = { {&_swigt__p_Query
, 0, 0, 0},{0, 0, 0, 0}};
3767 static swig_cast_info _swigc__p_Video
[] = { {&_swigt__p_Video
, 0, 0, 0},{0, 0, 0, 0}};
3768 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
3769 static swig_cast_info _swigc__p_quviCategory
[] = { {&_swigt__p_quviCategory
, 0, 0, 0},{0, 0, 0, 0}};
3770 static swig_cast_info _swigc__p_quviCode
[] = { {&_swigt__p_quviCode
, 0, 0, 0},{0, 0, 0, 0}};
3771 static swig_cast_info _swigc__p_quviVersion
[] = { {&_swigt__p_quviVersion
, 0, 0, 0},{0, 0, 0, 0}};
3772 static swig_cast_info _swigc__p_std__string
[] = { {&_swigt__p_std__string
, 0, 0, 0},{0, 0, 0, 0}};
3774 static swig_cast_info
*swig_cast_initial
[] =
3781 _swigc__p_quviCategory
,
3783 _swigc__p_quviVersion
,
3784 _swigc__p_std__string
,
3788 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3790 static swig_constant_info swig_constants
[] =
3797 static swig_variable_info swig_variables
[] =
3799 { "WWW::Quvic::_VERSION", MAGIC_CLASS _wrap__VERSION_set
, MAGIC_CLASS _wrap__VERSION_get
,0 },
3802 static swig_command_info swig_commands
[] =
3804 {"WWW::Quvic::version", _wrap_version
},
3805 {"WWW::Quvic::new_Options", _wrap_new_Options
},
3806 {"WWW::Quvic::Options_user_agent_set", _wrap_Options_user_agent_set
},
3807 {"WWW::Quvic::Options_user_agent_get", _wrap_Options_user_agent_get
},
3808 {"WWW::Quvic::Options_http_proxy_set", _wrap_Options_http_proxy_set
},
3809 {"WWW::Quvic::Options_http_proxy_get", _wrap_Options_http_proxy_get
},
3810 {"WWW::Quvic::Options_verbose_libcurl_set", _wrap_Options_verbose_libcurl_set
},
3811 {"WWW::Quvic::Options_verbose_libcurl_get", _wrap_Options_verbose_libcurl_get
},
3812 {"WWW::Quvic::Options_format_set", _wrap_Options_format_set
},
3813 {"WWW::Quvic::Options_format_get", _wrap_Options_format_get
},
3814 {"WWW::Quvic::Options_verify_set", _wrap_Options_verify_set
},
3815 {"WWW::Quvic::Options_verify_get", _wrap_Options_verify_get
},
3816 {"WWW::Quvic::Options_shortened_set", _wrap_Options_shortened_set
},
3817 {"WWW::Quvic::Options_shortened_get", _wrap_Options_shortened_get
},
3818 {"WWW::Quvic::Options_category_set", _wrap_Options_category_set
},
3819 {"WWW::Quvic::Options_category_get", _wrap_Options_category_get
},
3820 {"WWW::Quvic::delete_Options", _wrap_delete_Options
},
3821 {"WWW::Quvic::new_Link", _wrap_new_Link
},
3822 {"WWW::Quvic::Link_content_type_get", _wrap_Link_content_type_get
},
3823 {"WWW::Quvic::Link_file_suffix_get", _wrap_Link_file_suffix_get
},
3824 {"WWW::Quvic::Link_length_bytes_get", _wrap_Link_length_bytes_get
},
3825 {"WWW::Quvic::Link_url_get", _wrap_Link_url_get
},
3826 {"WWW::Quvic::delete_Link", _wrap_delete_Link
},
3827 {"WWW::Quvic::new_Video", _wrap_new_Video
},
3828 {"WWW::Quvic::Video_title_get", _wrap_Video_title_get
},
3829 {"WWW::Quvic::Video_host_get", _wrap_Video_host_get
},
3830 {"WWW::Quvic::Video_url_get", _wrap_Video_url_get
},
3831 {"WWW::Quvic::Video_id_get", _wrap_Video_id_get
},
3832 {"WWW::Quvic::Video_link_get", _wrap_Video_link_get
},
3833 {"WWW::Quvic::Video_ok_get", _wrap_Video_ok_get
},
3834 {"WWW::Quvic::Video_start_time_get", _wrap_Video_start_time_get
},
3835 {"WWW::Quvic::delete_Video", _wrap_delete_Video
},
3836 {"WWW::Quvic::new_Query", _wrap_new_Query
},
3837 {"WWW::Quvic::delete_Query", _wrap_delete_Query
},
3838 {"WWW::Quvic::Query_parse", _wrap_Query_parse
},
3839 {"WWW::Quvic::Query_next_website", _wrap_Query_next_website
},
3840 {"WWW::Quvic::Query_supported", _wrap_Query_supported
},
3841 {"WWW::Quvic::Query_last_error_get", _wrap_Query_last_error_get
},
3842 {"WWW::Quvic::Query_quvi_code_get", _wrap_Query_quvi_code_get
},
3843 {"WWW::Quvic::Query_resp_code_get", _wrap_Query_resp_code_get
},
3846 /* -----------------------------------------------------------------------------
3847 * Type initialization:
3848 * This problem is tough by the requirement that no dynamic
3849 * memory is used. Also, since swig_type_info structures store pointers to
3850 * swig_cast_info structures and swig_cast_info structures store pointers back
3851 * to swig_type_info structures, we need some lookup code at initialization.
3852 * The idea is that swig generates all the structures that are needed.
3853 * The runtime then collects these partially filled structures.
3854 * The SWIG_InitializeModule function takes these initial arrays out of
3855 * swig_module, and does all the lookup, filling in the swig_module.types
3856 * array with the correct data and linking the correct swig_cast_info
3857 * structures together.
3859 * The generated swig_type_info structures are assigned staticly to an initial
3860 * array. We just loop through that array, and handle each type individually.
3861 * First we lookup if this type has been already loaded, and if so, use the
3862 * loaded structure instead of the generated one. Then we have to fill in the
3863 * cast linked list. The cast data is initially stored in something like a
3864 * two-dimensional array. Each row corresponds to a type (there are the same
3865 * number of rows as there are in the swig_type_initial array). Each entry in
3866 * a column is one of the swig_cast_info structures for that type.
3867 * The cast_initial array is actually an array of arrays, because each row has
3868 * a variable number of columns. So to actually build the cast linked list,
3869 * we find the array of casts associated with the type, and loop through it
3870 * adding the casts to the list. The one last trick we need to do is making
3871 * sure the type pointer in the swig_cast_info struct is correct.
3873 * First off, we lookup the cast->type name to see if it is already loaded.
3874 * There are three cases to handle:
3875 * 1) If the cast->type has already been loaded AND the type we are adding
3876 * casting info to has not been loaded (it is in this module), THEN we
3877 * replace the cast->type pointer with the type pointer that has already
3879 * 2) If BOTH types (the one we are adding casting info to, and the
3880 * cast->type) are loaded, THEN the cast info has already been loaded by
3881 * the previous module so we just ignore it.
3882 * 3) Finally, if cast->type has not already been loaded, then we add that
3883 * swig_cast_info to the linked list (because the cast->type) pointer will
3885 * ----------------------------------------------------------------------------- */
3895 #define SWIGRUNTIME_DEBUG
3900 SWIG_InitializeModule(void *clientdata
)
3903 swig_module_info
*module_head
, *iter
;
3906 clientdata
= clientdata
;
3908 /* check to see if the circular list has been setup, if not, set it up */
3909 if (swig_module
.next
==0)
3911 /* Initialize the swig_module */
3912 swig_module
.type_initial
= swig_type_initial
;
3913 swig_module
.cast_initial
= swig_cast_initial
;
3914 swig_module
.next
= &swig_module
;
3922 /* Try and load any already created modules */
3923 module_head
= SWIG_GetModule(clientdata
);
3926 /* This is the first module loaded for this interpreter */
3927 /* so set the swig module into the interpreter */
3928 SWIG_SetModule(clientdata
, &swig_module
);
3929 module_head
= &swig_module
;
3933 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
3938 if (iter
==&swig_module
)
3945 while (iter
!= module_head
);
3947 /* if the is found in the list, then all is done and we may leave */
3949 /* otherwise we must add out module into the list */
3950 swig_module
.next
= module_head
->next
;
3951 module_head
->next
= &swig_module
;
3954 /* When multiple interpeters are used, a module could have already been initialized in
3955 a different interpreter, but not yet have a pointer in this interpreter.
3956 In this case, we do not want to continue adding types... everything should be
3958 if (init
== 0) return;
3960 /* Now work on filling in swig_module.types */
3961 #ifdef SWIGRUNTIME_DEBUG
3962 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
3964 for (i
= 0; i
< swig_module
.size
; ++i
)
3966 swig_type_info
*type
= 0;
3967 swig_type_info
*ret
;
3968 swig_cast_info
*cast
;
3970 #ifdef SWIGRUNTIME_DEBUG
3971 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
3974 /* if there is another module already loaded */
3975 if (swig_module
.next
!= &swig_module
)
3977 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
3981 /* Overwrite clientdata field */
3982 #ifdef SWIGRUNTIME_DEBUG
3983 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
3985 if (swig_module
.type_initial
[i
]->clientdata
)
3987 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
3988 #ifdef SWIGRUNTIME_DEBUG
3989 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
3995 type
= swig_module
.type_initial
[i
];
3998 /* Insert casting types */
3999 cast
= swig_module
.cast_initial
[i
];
4002 /* Don't need to add information already in the list */
4004 #ifdef SWIGRUNTIME_DEBUG
4005 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
4007 if (swig_module
.next
!= &swig_module
)
4009 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
4010 #ifdef SWIGRUNTIME_DEBUG
4011 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
4016 if (type
== swig_module
.type_initial
[i
])
4018 #ifdef SWIGRUNTIME_DEBUG
4019 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
4026 /* Check for casting already in the list */
4027 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
4028 #ifdef SWIGRUNTIME_DEBUG
4029 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
4031 if (!ocast
) ret
= 0;
4037 #ifdef SWIGRUNTIME_DEBUG
4038 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
4042 type
->cast
->prev
= cast
;
4043 cast
->next
= type
->cast
;
4049 /* Set entry in modules->types array equal to the type */
4050 swig_module
.types
[i
] = type
;
4052 swig_module
.types
[i
] = 0;
4054 #ifdef SWIGRUNTIME_DEBUG
4055 printf("**** SWIG_InitializeModule: Cast List ******\n");
4056 for (i
= 0; i
< swig_module
.size
; ++i
)
4059 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
4060 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
4063 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
4067 printf("---- Total casts: %d\n",j
);
4069 printf("**** SWIG_InitializeModule: Cast List ******\n");
4073 /* This function will propagate the clientdata field of type to
4074 * any new swig_type_info structures that have been added into the list
4075 * of equivalent types. It is like calling
4076 * SWIG_TypeClientData(type, clientdata) a second time.
4079 SWIG_PropagateClientData(void)
4082 swig_cast_info
*equiv
;
4083 static int init_run
= 0;
4085 if (init_run
) return;
4088 for (i
= 0; i
< swig_module
.size
; i
++)
4090 if (swig_module
.types
[i
]->clientdata
)
4092 equiv
= swig_module
.types
[i
]->cast
;
4095 if (!equiv
->converter
)
4097 if (equiv
->type
&& !equiv
->type
->clientdata
)
4098 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
4100 equiv
= equiv
->next
;
4125 SWIG_InitializeModule(0);
4127 /* Install commands */
4128 for (i
= 0; swig_commands
[i
].name
; i
++)
4130 newXS((char*) swig_commands
[i
].name
,swig_commands
[i
].wrapper
, (char*)__FILE__
);
4133 /* Install variables */
4134 for (i
= 0; swig_variables
[i
].name
; i
++)
4137 sv
= get_sv((char*) swig_variables
[i
].name
, TRUE
| 0x2 | GV_ADDMULTI
);
4138 if (swig_variables
[i
].type
)
4140 SWIG_MakePtr(sv
,(void *)1, *swig_variables
[i
].type
,0);
4144 sv_setiv(sv
,(IV
) 0);
4146 swig_create_magic(sv
, (char *) swig_variables
[i
].name
, swig_variables
[i
].set
, swig_variables
[i
].get
);
4149 /* Install constant */
4150 for (i
= 0; swig_constants
[i
].type
; i
++)
4153 sv
= get_sv((char*)swig_constants
[i
].name
, TRUE
| 0x2 | GV_ADDMULTI
);
4154 switch(swig_constants
[i
].type
)
4157 sv_setiv(sv
, (IV
) swig_constants
[i
].lvalue
);
4160 sv_setnv(sv
, (double) swig_constants
[i
].dvalue
);
4163 sv_setpv(sv
, (char *) swig_constants
[i
].pvalue
);
4166 SWIG_MakePtr(sv
, swig_constants
[i
].pvalue
, *(swig_constants
[i
].ptype
),0);
4169 SWIG_MakePackedObj(sv
, swig_constants
[i
].pvalue
, swig_constants
[i
].lvalue
, *(swig_constants
[i
].ptype
));
4177 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/ do
4179 SV
*sv
= get_sv((char*) SWIG_prefix
"libquviVersion", TRUE
| 0x2 | GV_ADDMULTI
);
4180 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(libquviVersion
)));
4183 while(0) /*@SWIG@*/;
4184 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4187 SV
*sv
= get_sv((char*) SWIG_prefix
"libquviVersionLong", TRUE
| 0x2 | GV_ADDMULTI
);
4188 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(libquviVersionLong
)));
4191 while(0) /*@SWIG@*/;
4192 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4195 SV
*sv
= get_sv((char*) SWIG_prefix
"ModuleVersion", TRUE
| 0x2 | GV_ADDMULTI
);
4196 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ModuleVersion
)));
4199 while(0) /*@SWIG@*/;
4200 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4203 SV
*sv
= get_sv((char*) SWIG_prefix
"OK", TRUE
| 0x2 | GV_ADDMULTI
);
4204 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(OK
)));
4207 while(0) /*@SWIG@*/;
4208 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4211 SV
*sv
= get_sv((char*) SWIG_prefix
"Mem", TRUE
| 0x2 | GV_ADDMULTI
);
4212 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(Mem
)));
4215 while(0) /*@SWIG@*/;
4216 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4219 SV
*sv
= get_sv((char*) SWIG_prefix
"BadHandle", TRUE
| 0x2 | GV_ADDMULTI
);
4220 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(BadHandle
)));
4223 while(0) /*@SWIG@*/;
4224 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4227 SV
*sv
= get_sv((char*) SWIG_prefix
"InvArg", TRUE
| 0x2 | GV_ADDMULTI
);
4228 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(InvArg
)));
4231 while(0) /*@SWIG@*/;
4232 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4235 SV
*sv
= get_sv((char*) SWIG_prefix
"CurlInit", TRUE
| 0x2 | GV_ADDMULTI
);
4236 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(CurlInit
)));
4239 while(0) /*@SWIG@*/;
4240 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4243 SV
*sv
= get_sv((char*) SWIG_prefix
"Last", TRUE
| 0x2 | GV_ADDMULTI
);
4244 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(Last
)));
4247 while(0) /*@SWIG@*/;
4248 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4251 SV
*sv
= get_sv((char*) SWIG_prefix
"AbortedByCallback", TRUE
| 0x2 | GV_ADDMULTI
);
4252 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(AbortedByCallback
)));
4255 while(0) /*@SWIG@*/;
4256 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4259 SV
*sv
= get_sv((char*) SWIG_prefix
"LuaInit", TRUE
| 0x2 | GV_ADDMULTI
);
4260 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(LuaInit
)));
4263 while(0) /*@SWIG@*/;
4264 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4267 SV
*sv
= get_sv((char*) SWIG_prefix
"NoLuaWebsite", TRUE
| 0x2 | GV_ADDMULTI
);
4268 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoLuaWebsite
)));
4271 while(0) /*@SWIG@*/;
4272 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4275 SV
*sv
= get_sv((char*) SWIG_prefix
"NoLuaUtil", TRUE
| 0x2 | GV_ADDMULTI
);
4276 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoLuaUtil
)));
4279 while(0) /*@SWIG@*/;
4280 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4283 SV
*sv
= get_sv((char*) SWIG_prefix
"PcreError", TRUE
| 0x2 | GV_ADDMULTI
);
4284 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(PcreError
)));
4287 while(0) /*@SWIG@*/;
4288 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4291 SV
*sv
= get_sv((char*) SWIG_prefix
"NoSupport", TRUE
| 0x2 | GV_ADDMULTI
);
4292 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoSupport
)));
4295 while(0) /*@SWIG@*/;
4296 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4299 SV
*sv
= get_sv((char*) SWIG_prefix
"CurlError", TRUE
| 0x2 | GV_ADDMULTI
);
4300 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(CurlError
)));
4303 while(0) /*@SWIG@*/;
4304 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4307 SV
*sv
= get_sv((char*) SWIG_prefix
"IconvError", TRUE
| 0x2 | GV_ADDMULTI
);
4308 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(IconvError
)));
4311 while(0) /*@SWIG@*/;
4312 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4315 SV
*sv
= get_sv((char*) SWIG_prefix
"LuaError", TRUE
| 0x2 | GV_ADDMULTI
);
4316 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(LuaError
)));
4319 while(0) /*@SWIG@*/;
4320 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4323 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoHttp", TRUE
| 0x2 | GV_ADDMULTI
);
4324 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoHttp
)));
4327 while(0) /*@SWIG@*/;
4328 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4331 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoMms", TRUE
| 0x2 | GV_ADDMULTI
);
4332 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoMms
)));
4335 while(0) /*@SWIG@*/;
4336 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4339 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoRtsp", TRUE
| 0x2 | GV_ADDMULTI
);
4340 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoRtsp
)));
4343 while(0) /*@SWIG@*/;
4344 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4347 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoRtmp", TRUE
| 0x2 | GV_ADDMULTI
);
4348 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoRtmp
)));
4351 while(0) /*@SWIG@*/;
4352 /*@SWIG:/usr/share/swig/2.0.2/perl5/perltypemaps.swg,65,%set_constant@*/
4355 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoAll", TRUE
| 0x2 | GV_ADDMULTI
);
4356 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoAll
)));
4359 while(0) /*@SWIG@*/;
4360 SWIG_TypeClientData(SWIGTYPE_p_Options
, (void*) "WWW::Quvi::Options");
4361 SWIG_TypeClientData(SWIGTYPE_p_Link
, (void*) "WWW::Quvi::Link");
4362 SWIG_TypeClientData(SWIGTYPE_p_Video
, (void*) "WWW::Quvi::Video");
4363 SWIG_TypeClientData(SWIGTYPE_p_Query
, (void*) "WWW::Quvi::Query");