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. */
1660 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1662 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1666 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
1669 /* -------- TYPES TABLE (BEGIN) -------- */
1671 #define SWIGTYPE_p_Link swig_types[0]
1672 #define SWIGTYPE_p_Options swig_types[1]
1673 #define SWIGTYPE_p_Query swig_types[2]
1674 #define SWIGTYPE_p_Video swig_types[3]
1675 #define SWIGTYPE_p_char swig_types[4]
1676 #define SWIGTYPE_p_quviCategory swig_types[5]
1677 #define SWIGTYPE_p_quviCode swig_types[6]
1678 #define SWIGTYPE_p_quviVersion swig_types[7]
1679 #define SWIGTYPE_p_std__string swig_types[8]
1680 static swig_type_info
*swig_types
[10];
1681 static swig_module_info swig_module
= {swig_types
, 9, 0, 0, 0, 0};
1682 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1683 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1685 /* -------- TYPES TABLE (END) -------- */
1687 #define SWIG_init boot_WWW__Quvi
1689 #define SWIG_name "WWW::Quvic::boot_WWW__Quvi"
1690 #define SWIG_prefix "WWW::Quvic::"
1692 #define SWIGVERSION 0x020001
1693 #define SWIG_VERSION SWIGVERSION
1696 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1697 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1700 #include <stdexcept>
1707 #ifndef MULTIPLICITY
1708 SWIGEXPORT
void SWIG_init (CV
* cv
);
1710 SWIGEXPORT
void SWIG_init (pTHXo_ CV
* cv
);
1713 SWIGEXPORT
void SWIG_init (CV
*cv
, CPerlObj
*);
1724 char *_VERSION
= VERSION
;
1728 libquviVersion
= QUVI_VERSION
,
1729 libquviVersionLong
= QUVI_VERSION_LONG
,
1733 static char* version (quviVersion n
=ModuleVersion
)
1735 if (n
== ModuleVersion
) return _VERSION
;
1736 return quvi_version ((QUVIversion
)n
);
1740 * A manual copy of QUVIcode. If there's a better way to do this,
1741 * I'd like to know it too. This will need to be maintained manually
1742 * if there are any changes to the QUVIcode enum list in quvi.h file.
1744 * The reason we don't simply "%include <quvi/quvi.h>" and
1745 * get the constants is because that would clutter the wrapper.
1747 * We have renamed the constants to avoid any conflicts with those
1748 * defined in <quvi/quvi.h> which is included by the wrapper.
1762 PcreError
= 0x40, /* QUVI_PCRE */
1764 CurlError
, /* QUVI_CURL */
1765 IconvError
, /* QUVI_ICONV */
1766 LuaError
, /* QUVI_LUA */
1775 ProtoAll
= (ProtoHttp
|ProtoMms
|ProtoRtsp
|ProtoRtmp
)
1780 SWIGINTERN swig_type_info
*
1781 SWIG_pchar_descriptor(void)
1783 static int init
= 0;
1784 static swig_type_info
* info
= 0;
1787 info
= SWIG_TypeQuery("_p_char");
1795 SWIG_AsCharPtrAndSize(SV
*obj
, char** cptr
, size_t* psize
, int *alloc
)
1799 SV
*tmp
= sv_newmortal();
1806 char *cstr
= SvPV(obj
, len
);
1807 size_t size
= len
+ 1;
1812 if (*alloc
== SWIG_NEWOBJ
)
1814 *cptr
= reinterpret_cast< char* >(memcpy((new char[size
]), cstr
, sizeof(char)*(size
)));
1819 *alloc
= SWIG_OLDOBJ
;
1823 if (psize
) *psize
= size
;
1828 swig_type_info
* pchar_descriptor
= SWIG_pchar_descriptor();
1829 if (pchar_descriptor
)
1832 if (SWIG_ConvertPtr(obj
, (void**)&vptr
, pchar_descriptor
, 0) == SWIG_OK
)
1834 if (cptr
) *cptr
= vptr
;
1835 if (psize
) *psize
= vptr
? (strlen(vptr
) + 1) : 0;
1836 if (alloc
) *alloc
= SWIG_OLDOBJ
;
1841 return SWIG_TypeError
;
1845 SWIGINTERNINLINE SV
*
1846 SWIG_FromCharPtrAndSize(const char* carray
, size_t size
)
1848 SV
*obj
= sv_newmortal();
1851 sv_setpvn(obj
, carray
, size
);
1855 sv_setsv(obj
, &PL_sv_undef
);
1861 SWIGINTERNINLINE SV
*
1862 SWIG_FromCharPtr(const char *cptr
)
1864 return SWIG_FromCharPtrAndSize(cptr
, (cptr
? strlen(cptr
) : 0));
1868 SWIGINTERNINLINE SV
*
1869 SWIG_From_long
SWIG_PERL_DECL_ARGS_1(long value
)
1871 SV
*obj
= sv_newmortal();
1872 sv_setiv(obj
, (IV
) value
);
1877 SWIGINTERNINLINE SV
*
1878 SWIG_From_int
SWIG_PERL_DECL_ARGS_1(int value
)
1880 return SWIG_From_long
SWIG_PERL_CALL_ARGS_1(value
);
1885 #if !defined(SWIG_NO_LLONG_MAX)
1886 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1887 # define LLONG_MAX __LONG_LONG_MAX__
1888 # define LLONG_MIN (-LLONG_MAX - 1LL)
1889 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1895 SWIG_AsVal_double
SWIG_PERL_DECL_ARGS_2(SV
*obj
, double *val
)
1899 if (val
) *val
= SvNV(obj
);
1902 else if (SvIOK(obj
))
1904 if (val
) *val
= (double) SvIV(obj
);
1905 return SWIG_AddCast(SWIG_OK
);
1909 const char *nptr
= SvPV_nolen(obj
);
1915 v
= strtod(nptr
, &endptr
);
1916 if (errno
== ERANGE
)
1919 return SWIG_OverflowError
;
1923 if (*endptr
== '\0')
1926 return SWIG_Str2NumCast(SWIG_OK
);
1931 return SWIG_TypeError
;
1941 SWIGINTERNINLINE
int
1942 SWIG_CanCastAsInteger(double *d
, double min
, double max
)
1945 if ((min
<= x
&& x
<= max
))
1947 double fx
= floor(x
);
1948 double cx
= ceil(x
);
1949 double rd
= ((x
- fx
) < 0.5) ? fx
: cx
; /* simple rint */
1950 if ((errno
== EDOM
) || (errno
== ERANGE
))
1956 double summ
, reps
, diff
;
1971 if (reps
< 8*DBL_EPSILON
)
1983 SWIG_AsVal_long
SWIG_PERL_DECL_ARGS_2(SV
*obj
, long* val
)
1987 if (val
) *val
= SvIV(obj
);
1993 const char *nptr
= SvPV_nolen(obj
);
1999 v
= strtol(nptr
, &endptr
,0);
2000 if (errno
== ERANGE
)
2003 return SWIG_OverflowError
;
2007 if (*endptr
== '\0')
2010 return SWIG_Str2NumCast(SWIG_OK
);
2017 int res
= SWIG_AddCast(SWIG_AsVal_double
SWIG_PERL_CALL_ARGS_2(obj
,&d
));
2018 if (SWIG_IsOK(res
) && SWIG_CanCastAsInteger(&d
, LONG_MIN
, LONG_MAX
))
2020 if (val
) *val
= (long)(d
);
2025 return SWIG_TypeError
;
2030 SWIG_AsVal_int
SWIG_PERL_DECL_ARGS_2(SV
* obj
, int *val
)
2033 int res
= SWIG_AsVal_long
SWIG_PERL_CALL_ARGS_2(obj
, &v
);
2036 if ((v
< INT_MIN
|| v
> INT_MAX
))
2038 return SWIG_OverflowError
;
2042 if (val
) *val
= static_cast< int >(v
);
2050 SWIG_AsPtr_std_string
SWIG_PERL_DECL_ARGS_2(SV
* obj
, std::string
**val
)
2054 int alloc
= SWIG_OLDOBJ
;
2055 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj
, &buf
, &size
, &alloc
))))
2059 if (val
) *val
= new std::string(buf
, size
- 1);
2060 if (alloc
== SWIG_NEWOBJ
) delete[] buf
;
2071 static int init
= 0;
2072 static swig_type_info
* descriptor
= 0;
2075 descriptor
= SWIG_TypeQuery("std::string" " *");
2081 int res
= SWIG_ConvertPtr(obj
, (void**)&vptr
, descriptor
, 0);
2082 if (SWIG_IsOK(res
) && val
) *val
= vptr
;
2090 SWIGINTERNINLINE SV
*
2091 SWIG_From_std_string
SWIG_PERL_DECL_ARGS_1(const std::string
& s
)
2095 return SWIG_FromCharPtrAndSize(s
.data(), s
.size());
2099 return SWIG_FromCharPtrAndSize(s
.c_str(), 0);
2105 SWIG_AsVal_bool
SWIG_PERL_DECL_ARGS_2(SV
*obj
, bool* val
)
2107 if (obj
== &PL_sv_yes
)
2109 if (val
) *val
= true;
2112 else if (obj
== &PL_sv_no
)
2114 if (val
) *val
= false;
2119 if (val
) *val
= SvTRUE(obj
) ? true: false;
2120 return SWIG_AddCast(SWIG_OK
);
2122 return SWIG_TypeError
;
2126 SWIGINTERNINLINE SV
*
2127 SWIG_From_bool
SWIG_PERL_DECL_ARGS_1(bool value
)
2129 SV
*obj
= sv_newmortal();
2132 sv_setsv(obj
, &PL_sv_yes
);
2136 sv_setsv(obj
, &PL_sv_no
);
2142 SWIGINTERNINLINE SV
*
2143 SWIG_From_double
SWIG_PERL_DECL_ARGS_1(double value
)
2145 SV
*obj
= sv_newmortal();
2146 sv_setnv(obj
, value
);
2155 #define MAGIC_CLASS _wrap_WWW__Quvi_var::
2156 class _wrap_WWW__Quvi_var
: public CPerlObj
2162 SWIGCLASS_STATIC
int swig_magic_readonly(pTHX_ SV
*SWIGUNUSEDPARM(sv
), MAGIC
*SWIGUNUSEDPARM(mg
))
2165 croak("Value is read-only.");
2168 SWIGCLASS_STATIC
int _wrap__VERSION_set(pTHX_ SV
* sv
, MAGIC
* SWIGUNUSEDPARM(mg
))
2174 int alloc
= SWIG_NEWOBJ
;
2175 int res
= SWIG_AsCharPtrAndSize(sv
, &cptr
, &csize
, &alloc
);
2176 if (!SWIG_IsOK(res
))
2178 SWIG_exception_fail(SWIG_ArgError(res
), "in variable '""_VERSION""' of type '""char *""'");
2180 if (_VERSION
) delete[] _VERSION
;
2181 if (alloc
== SWIG_NEWOBJ
)
2186 _VERSION
= csize
? (char *)reinterpret_cast< char* >(memcpy((new char[csize
]), cptr
, sizeof(char)*(csize
))) : 0;
2194 SWIGCLASS_STATIC
int _wrap__VERSION_get(pTHX_ SV
*sv
, MAGIC
*SWIGUNUSEDPARM(mg
))
2197 sv_setsv(sv
,SWIG_FromCharPtr(_VERSION
)) ;
2215 XS(_wrap_version__SWIG_0
)
2225 if ((items
< 1) || (items
> 1))
2227 SWIG_croak("Usage: version(n);");
2229 ecode1
= SWIG_AsVal_int
SWIG_PERL_CALL_ARGS_2(ST(0), &val1
);
2230 if (!SWIG_IsOK(ecode1
))
2232 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "version" "', argument " "1"" of type '" "quviVersion""'");
2234 arg1
= static_cast< quviVersion
>(val1
);
2235 result
= (char *)version(arg1
);
2236 ST(argvi
) = SWIG_FromCharPtr((const char *)result
);
2247 XS(_wrap_version__SWIG_1
)
2254 if ((items
< 0) || (items
> 0))
2256 SWIG_croak("Usage: version();");
2258 result
= (char *)version();
2259 ST(argvi
) = SWIG_FromCharPtr((const char *)result
);
2273 unsigned long _index
= 0;
2274 SWIG_TypeRank _rank
= 0;
2277 SWIG_TypeRank _ranki
= 0;
2278 SWIG_TypeRank _rankm
= 0;
2279 if (!_index
|| (_ranki
< _rank
))
2283 if (_rank
== _rankm
) goto dispatch
;
2288 SWIG_TypeRank _ranki
= 0;
2289 SWIG_TypeRank _rankm
= 0;
2290 SWIG_TypeRank _pi
= 1;
2294 int res
= SWIG_AsVal_int
SWIG_PERL_CALL_ARGS_2(ST(0), NULL
);
2295 _v
= SWIG_CheckState(res
);
2298 if (!_v
) goto check_2
;
2301 _pi
*= SWIG_MAXCASTRANK
;
2302 if (!_index
|| (_ranki
< _rank
))
2306 if (_rank
== _rankm
) goto dispatch
;
2316 SWIG_CALLXS(_wrap_version__SWIG_1
);
2320 SWIG_CALLXS(_wrap_version__SWIG_0
);
2325 croak("No matching function for overloaded 'version'");
2330 XS(_wrap_new_Options
)
2334 Options
*result
= 0 ;
2337 if ((items
< 0) || (items
> 0))
2339 SWIG_croak("Usage: new_Options();");
2341 result
= (Options
*)new Options();
2342 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Options
, SWIG_OWNER
| SWIG_SHADOW
);
2351 XS(_wrap_Options_user_agent_set
)
2354 Options
*arg1
= (Options
*) 0 ;
2355 std::string
*arg2
= 0 ;
2358 int res2
= SWIG_OLDOBJ
;
2362 if ((items
< 2) || (items
> 2))
2364 SWIG_croak("Usage: Options_user_agent_set(self,user_agent);");
2366 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2367 if (!SWIG_IsOK(res1
))
2369 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_user_agent_set" "', argument " "1"" of type '" "Options *""'");
2371 arg1
= reinterpret_cast< Options
* >(argp1
);
2373 std::string
*ptr
= (std::string
*)0;
2374 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2375 if (!SWIG_IsOK(res2
))
2377 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_user_agent_set" "', argument " "2"" of type '" "std::string const &""'");
2381 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_user_agent_set" "', argument " "2"" of type '" "std::string const &""'");
2385 if (arg1
) (arg1
)->user_agent
= *arg2
;
2386 ST(argvi
) = sv_newmortal();
2388 if (SWIG_IsNewObj(res2
)) delete arg2
;
2392 if (SWIG_IsNewObj(res2
)) delete arg2
;
2398 XS(_wrap_Options_user_agent_get
)
2401 Options
*arg1
= (Options
*) 0 ;
2405 std::string
*result
= 0 ;
2408 if ((items
< 1) || (items
> 1))
2410 SWIG_croak("Usage: Options_user_agent_get(self);");
2412 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2413 if (!SWIG_IsOK(res1
))
2415 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_user_agent_get" "', argument " "1"" of type '" "Options *""'");
2417 arg1
= reinterpret_cast< Options
* >(argp1
);
2418 result
= (std::string
*) & ((arg1
)->user_agent
);
2419 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2430 XS(_wrap_Options_http_proxy_set
)
2433 Options
*arg1
= (Options
*) 0 ;
2434 std::string
*arg2
= 0 ;
2437 int res2
= SWIG_OLDOBJ
;
2441 if ((items
< 2) || (items
> 2))
2443 SWIG_croak("Usage: Options_http_proxy_set(self,http_proxy);");
2445 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2446 if (!SWIG_IsOK(res1
))
2448 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_http_proxy_set" "', argument " "1"" of type '" "Options *""'");
2450 arg1
= reinterpret_cast< Options
* >(argp1
);
2452 std::string
*ptr
= (std::string
*)0;
2453 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2454 if (!SWIG_IsOK(res2
))
2456 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_http_proxy_set" "', argument " "2"" of type '" "std::string const &""'");
2460 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_http_proxy_set" "', argument " "2"" of type '" "std::string const &""'");
2464 if (arg1
) (arg1
)->http_proxy
= *arg2
;
2465 ST(argvi
) = sv_newmortal();
2467 if (SWIG_IsNewObj(res2
)) delete arg2
;
2471 if (SWIG_IsNewObj(res2
)) delete arg2
;
2477 XS(_wrap_Options_http_proxy_get
)
2480 Options
*arg1
= (Options
*) 0 ;
2484 std::string
*result
= 0 ;
2487 if ((items
< 1) || (items
> 1))
2489 SWIG_croak("Usage: Options_http_proxy_get(self);");
2491 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2492 if (!SWIG_IsOK(res1
))
2494 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_http_proxy_get" "', argument " "1"" of type '" "Options *""'");
2496 arg1
= reinterpret_cast< Options
* >(argp1
);
2497 result
= (std::string
*) & ((arg1
)->http_proxy
);
2498 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2509 XS(_wrap_Options_verbose_libcurl_set
)
2512 Options
*arg1
= (Options
*) 0 ;
2521 if ((items
< 2) || (items
> 2))
2523 SWIG_croak("Usage: Options_verbose_libcurl_set(self,verbose_libcurl);");
2525 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2526 if (!SWIG_IsOK(res1
))
2528 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verbose_libcurl_set" "', argument " "1"" of type '" "Options *""'");
2530 arg1
= reinterpret_cast< Options
* >(argp1
);
2531 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2532 if (!SWIG_IsOK(ecode2
))
2534 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_verbose_libcurl_set" "', argument " "2"" of type '" "bool""'");
2536 arg2
= static_cast< bool >(val2
);
2537 if (arg1
) (arg1
)->verbose_libcurl
= arg2
;
2538 ST(argvi
) = sv_newmortal();
2550 XS(_wrap_Options_verbose_libcurl_get
)
2553 Options
*arg1
= (Options
*) 0 ;
2560 if ((items
< 1) || (items
> 1))
2562 SWIG_croak("Usage: Options_verbose_libcurl_get(self);");
2564 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2565 if (!SWIG_IsOK(res1
))
2567 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verbose_libcurl_get" "', argument " "1"" of type '" "Options *""'");
2569 arg1
= reinterpret_cast< Options
* >(argp1
);
2570 result
= (bool) ((arg1
)->verbose_libcurl
);
2571 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2582 XS(_wrap_Options_format_set
)
2585 Options
*arg1
= (Options
*) 0 ;
2586 std::string
*arg2
= 0 ;
2589 int res2
= SWIG_OLDOBJ
;
2593 if ((items
< 2) || (items
> 2))
2595 SWIG_croak("Usage: Options_format_set(self,format);");
2597 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2598 if (!SWIG_IsOK(res1
))
2600 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_format_set" "', argument " "1"" of type '" "Options *""'");
2602 arg1
= reinterpret_cast< Options
* >(argp1
);
2604 std::string
*ptr
= (std::string
*)0;
2605 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
2606 if (!SWIG_IsOK(res2
))
2608 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Options_format_set" "', argument " "2"" of type '" "std::string const &""'");
2612 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Options_format_set" "', argument " "2"" of type '" "std::string const &""'");
2616 if (arg1
) (arg1
)->format
= *arg2
;
2617 ST(argvi
) = sv_newmortal();
2619 if (SWIG_IsNewObj(res2
)) delete arg2
;
2623 if (SWIG_IsNewObj(res2
)) delete arg2
;
2629 XS(_wrap_Options_format_get
)
2632 Options
*arg1
= (Options
*) 0 ;
2636 std::string
*result
= 0 ;
2639 if ((items
< 1) || (items
> 1))
2641 SWIG_croak("Usage: Options_format_get(self);");
2643 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2644 if (!SWIG_IsOK(res1
))
2646 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_format_get" "', argument " "1"" of type '" "Options *""'");
2648 arg1
= reinterpret_cast< Options
* >(argp1
);
2649 result
= (std::string
*) & ((arg1
)->format
);
2650 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2661 XS(_wrap_Options_verify_set
)
2664 Options
*arg1
= (Options
*) 0 ;
2673 if ((items
< 2) || (items
> 2))
2675 SWIG_croak("Usage: Options_verify_set(self,verify);");
2677 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2678 if (!SWIG_IsOK(res1
))
2680 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verify_set" "', argument " "1"" of type '" "Options *""'");
2682 arg1
= reinterpret_cast< Options
* >(argp1
);
2683 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2684 if (!SWIG_IsOK(ecode2
))
2686 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_verify_set" "', argument " "2"" of type '" "bool""'");
2688 arg2
= static_cast< bool >(val2
);
2689 if (arg1
) (arg1
)->verify
= arg2
;
2690 ST(argvi
) = sv_newmortal();
2702 XS(_wrap_Options_verify_get
)
2705 Options
*arg1
= (Options
*) 0 ;
2712 if ((items
< 1) || (items
> 1))
2714 SWIG_croak("Usage: Options_verify_get(self);");
2716 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2717 if (!SWIG_IsOK(res1
))
2719 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_verify_get" "', argument " "1"" of type '" "Options *""'");
2721 arg1
= reinterpret_cast< Options
* >(argp1
);
2722 result
= (bool) ((arg1
)->verify
);
2723 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2734 XS(_wrap_Options_shortened_set
)
2737 Options
*arg1
= (Options
*) 0 ;
2746 if ((items
< 2) || (items
> 2))
2748 SWIG_croak("Usage: Options_shortened_set(self,shortened);");
2750 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2751 if (!SWIG_IsOK(res1
))
2753 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_shortened_set" "', argument " "1"" of type '" "Options *""'");
2755 arg1
= reinterpret_cast< Options
* >(argp1
);
2756 ecode2
= SWIG_AsVal_bool
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2757 if (!SWIG_IsOK(ecode2
))
2759 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_shortened_set" "', argument " "2"" of type '" "bool""'");
2761 arg2
= static_cast< bool >(val2
);
2762 if (arg1
) (arg1
)->shortened
= arg2
;
2763 ST(argvi
) = sv_newmortal();
2775 XS(_wrap_Options_shortened_get
)
2778 Options
*arg1
= (Options
*) 0 ;
2785 if ((items
< 1) || (items
> 1))
2787 SWIG_croak("Usage: Options_shortened_get(self);");
2789 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2790 if (!SWIG_IsOK(res1
))
2792 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_shortened_get" "', argument " "1"" of type '" "Options *""'");
2794 arg1
= reinterpret_cast< Options
* >(argp1
);
2795 result
= (bool) ((arg1
)->shortened
);
2796 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
2807 XS(_wrap_Options_category_set
)
2810 Options
*arg1
= (Options
*) 0 ;
2819 if ((items
< 2) || (items
> 2))
2821 SWIG_croak("Usage: Options_category_set(self,category);");
2823 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2824 if (!SWIG_IsOK(res1
))
2826 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_category_set" "', argument " "1"" of type '" "Options *""'");
2828 arg1
= reinterpret_cast< Options
* >(argp1
);
2829 ecode2
= SWIG_AsVal_long
SWIG_PERL_CALL_ARGS_2(ST(1), &val2
);
2830 if (!SWIG_IsOK(ecode2
))
2832 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Options_category_set" "', argument " "2"" of type '" "long""'");
2834 arg2
= static_cast< long >(val2
);
2835 if (arg1
) (arg1
)->category
= arg2
;
2836 ST(argvi
) = sv_newmortal();
2848 XS(_wrap_Options_category_get
)
2851 Options
*arg1
= (Options
*) 0 ;
2858 if ((items
< 1) || (items
> 1))
2860 SWIG_croak("Usage: Options_category_get(self);");
2862 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, 0 | 0 );
2863 if (!SWIG_IsOK(res1
))
2865 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Options_category_get" "', argument " "1"" of type '" "Options *""'");
2867 arg1
= reinterpret_cast< Options
* >(argp1
);
2868 result
= (long) ((arg1
)->category
);
2869 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
2880 XS(_wrap_delete_Options
)
2883 Options
*arg1
= (Options
*) 0 ;
2889 if ((items
< 1) || (items
> 1))
2891 SWIG_croak("Usage: delete_Options(self);");
2893 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Options
, SWIG_POINTER_DISOWN
| 0 );
2894 if (!SWIG_IsOK(res1
))
2896 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Options" "', argument " "1"" of type '" "Options *""'");
2898 arg1
= reinterpret_cast< Options
* >(argp1
);
2900 ST(argvi
) = sv_newmortal();
2917 if ((items
< 0) || (items
> 0))
2919 SWIG_croak("Usage: new_Link();");
2921 result
= (Link
*)new Link();
2922 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Link
, SWIG_OWNER
| SWIG_SHADOW
);
2931 XS(_wrap_Link_content_type_get
)
2934 Link
*arg1
= (Link
*) 0 ;
2938 std::string
*result
= 0 ;
2941 if ((items
< 1) || (items
> 1))
2943 SWIG_croak("Usage: Link_content_type_get(self);");
2945 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
2946 if (!SWIG_IsOK(res1
))
2948 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_content_type_get" "', argument " "1"" of type '" "Link *""'");
2950 arg1
= reinterpret_cast< Link
* >(argp1
);
2951 result
= (std::string
*) & ((arg1
)->content_type
);
2952 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2963 XS(_wrap_Link_file_suffix_get
)
2966 Link
*arg1
= (Link
*) 0 ;
2970 std::string
*result
= 0 ;
2973 if ((items
< 1) || (items
> 1))
2975 SWIG_croak("Usage: Link_file_suffix_get(self);");
2977 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
2978 if (!SWIG_IsOK(res1
))
2980 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_file_suffix_get" "', argument " "1"" of type '" "Link *""'");
2982 arg1
= reinterpret_cast< Link
* >(argp1
);
2983 result
= (std::string
*) & ((arg1
)->file_suffix
);
2984 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
2995 XS(_wrap_Link_length_bytes_get
)
2998 Link
*arg1
= (Link
*) 0 ;
3005 if ((items
< 1) || (items
> 1))
3007 SWIG_croak("Usage: Link_length_bytes_get(self);");
3009 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
3010 if (!SWIG_IsOK(res1
))
3012 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_length_bytes_get" "', argument " "1"" of type '" "Link *""'");
3014 arg1
= reinterpret_cast< Link
* >(argp1
);
3015 result
= (double) ((arg1
)->length_bytes
);
3016 ST(argvi
) = SWIG_From_double
SWIG_PERL_CALL_ARGS_1(static_cast< double >(result
));
3027 XS(_wrap_Link_url_get
)
3030 Link
*arg1
= (Link
*) 0 ;
3034 std::string
*result
= 0 ;
3037 if ((items
< 1) || (items
> 1))
3039 SWIG_croak("Usage: Link_url_get(self);");
3041 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, 0 | 0 );
3042 if (!SWIG_IsOK(res1
))
3044 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Link_url_get" "', argument " "1"" of type '" "Link *""'");
3046 arg1
= reinterpret_cast< Link
* >(argp1
);
3047 result
= (std::string
*) & ((arg1
)->url
);
3048 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3059 XS(_wrap_delete_Link
)
3062 Link
*arg1
= (Link
*) 0 ;
3068 if ((items
< 1) || (items
> 1))
3070 SWIG_croak("Usage: delete_Link(self);");
3072 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Link
, SWIG_POINTER_DISOWN
| 0 );
3073 if (!SWIG_IsOK(res1
))
3075 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Link" "', argument " "1"" of type '" "Link *""'");
3077 arg1
= reinterpret_cast< Link
* >(argp1
);
3079 ST(argvi
) = sv_newmortal();
3096 if ((items
< 0) || (items
> 0))
3098 SWIG_croak("Usage: new_Video();");
3100 result
= (Video
*)new Video();
3101 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Video
, SWIG_OWNER
| SWIG_SHADOW
);
3110 XS(_wrap_Video_title_get
)
3113 Video
*arg1
= (Video
*) 0 ;
3117 std::string
*result
= 0 ;
3120 if ((items
< 1) || (items
> 1))
3122 SWIG_croak("Usage: Video_title_get(self);");
3124 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3125 if (!SWIG_IsOK(res1
))
3127 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_title_get" "', argument " "1"" of type '" "Video *""'");
3129 arg1
= reinterpret_cast< Video
* >(argp1
);
3130 result
= (std::string
*) & ((arg1
)->title
);
3131 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3142 XS(_wrap_Video_host_get
)
3145 Video
*arg1
= (Video
*) 0 ;
3149 std::string
*result
= 0 ;
3152 if ((items
< 1) || (items
> 1))
3154 SWIG_croak("Usage: Video_host_get(self);");
3156 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3157 if (!SWIG_IsOK(res1
))
3159 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_host_get" "', argument " "1"" of type '" "Video *""'");
3161 arg1
= reinterpret_cast< Video
* >(argp1
);
3162 result
= (std::string
*) & ((arg1
)->host
);
3163 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3174 XS(_wrap_Video_url_get
)
3177 Video
*arg1
= (Video
*) 0 ;
3181 std::string
*result
= 0 ;
3184 if ((items
< 1) || (items
> 1))
3186 SWIG_croak("Usage: Video_url_get(self);");
3188 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3189 if (!SWIG_IsOK(res1
))
3191 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_url_get" "', argument " "1"" of type '" "Video *""'");
3193 arg1
= reinterpret_cast< Video
* >(argp1
);
3194 result
= (std::string
*) & ((arg1
)->url
);
3195 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3206 XS(_wrap_Video_id_get
)
3209 Video
*arg1
= (Video
*) 0 ;
3213 std::string
*result
= 0 ;
3216 if ((items
< 1) || (items
> 1))
3218 SWIG_croak("Usage: Video_id_get(self);");
3220 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3221 if (!SWIG_IsOK(res1
))
3223 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_id_get" "', argument " "1"" of type '" "Video *""'");
3225 arg1
= reinterpret_cast< Video
* >(argp1
);
3226 result
= (std::string
*) & ((arg1
)->id
);
3227 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3238 XS(_wrap_Video_link_get
)
3241 Video
*arg1
= (Video
*) 0 ;
3248 if ((items
< 1) || (items
> 1))
3250 SWIG_croak("Usage: Video_link_get(self);");
3252 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3253 if (!SWIG_IsOK(res1
))
3255 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_link_get" "', argument " "1"" of type '" "Video *""'");
3257 arg1
= reinterpret_cast< Video
* >(argp1
);
3258 result
= (Link
*)& ((arg1
)->link
);
3259 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Link
, 0 | SWIG_SHADOW
);
3270 XS(_wrap_Video_ok_get
)
3273 Video
*arg1
= (Video
*) 0 ;
3280 if ((items
< 1) || (items
> 1))
3282 SWIG_croak("Usage: Video_ok_get(self);");
3284 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, 0 | 0 );
3285 if (!SWIG_IsOK(res1
))
3287 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Video_ok_get" "', argument " "1"" of type '" "Video *""'");
3289 arg1
= reinterpret_cast< Video
* >(argp1
);
3290 result
= (bool) ((arg1
)->ok
);
3291 ST(argvi
) = SWIG_From_bool
SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result
));
3302 XS(_wrap_delete_Video
)
3305 Video
*arg1
= (Video
*) 0 ;
3311 if ((items
< 1) || (items
> 1))
3313 SWIG_croak("Usage: delete_Video(self);");
3315 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Video
, SWIG_POINTER_DISOWN
| 0 );
3316 if (!SWIG_IsOK(res1
))
3318 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Video" "', argument " "1"" of type '" "Video *""'");
3320 arg1
= reinterpret_cast< Video
* >(argp1
);
3322 ST(argvi
) = sv_newmortal();
3339 if ((items
< 0) || (items
> 0))
3341 SWIG_croak("Usage: new_Query();");
3346 result
= (Query
*)new Query();
3348 catch (const std::runtime_error
& e
)
3350 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3353 ST(argvi
) = SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_Query
, SWIG_OWNER
| SWIG_SHADOW
);
3362 XS(_wrap_delete_Query
)
3365 Query
*arg1
= (Query
*) 0 ;
3371 if ((items
< 1) || (items
> 1))
3373 SWIG_croak("Usage: delete_Query(self);");
3375 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, SWIG_POINTER_DISOWN
| 0 );
3376 if (!SWIG_IsOK(res1
))
3378 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Query" "', argument " "1"" of type '" "Query *""'");
3380 arg1
= reinterpret_cast< Query
* >(argp1
);
3386 catch (const std::runtime_error
& e
)
3388 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3391 ST(argvi
) = sv_newmortal();
3401 XS(_wrap_Query_parse
)
3404 Query
*arg1
= (Query
*) 0 ;
3405 std::string
*arg2
= 0 ;
3409 int res2
= SWIG_OLDOBJ
;
3416 if ((items
< 3) || (items
> 3))
3418 SWIG_croak("Usage: Query_parse(self,std::string const &,Options const &);");
3420 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3421 if (!SWIG_IsOK(res1
))
3423 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_parse" "', argument " "1"" of type '" "Query *""'");
3425 arg1
= reinterpret_cast< Query
* >(argp1
);
3427 std::string
*ptr
= (std::string
*)0;
3428 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
3429 if (!SWIG_IsOK(res2
))
3431 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Query_parse" "', argument " "2"" of type '" "std::string const &""'");
3435 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_parse" "', argument " "2"" of type '" "std::string const &""'");
3439 res3
= SWIG_ConvertPtr(ST(2), &argp3
, SWIGTYPE_p_Options
, 0 );
3440 if (!SWIG_IsOK(res3
))
3442 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "Query_parse" "', argument " "3"" of type '" "Options const &""'");
3446 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_parse" "', argument " "3"" of type '" "Options const &""'");
3448 arg3
= reinterpret_cast< Options
* >(argp3
);
3452 result
= (arg1
)->parse((std::string
const &)*arg2
,(Options
const &)*arg3
);
3454 catch (const std::runtime_error
& e
)
3456 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3459 ST(argvi
) = SWIG_NewPointerObj((new Video(static_cast< const Video
& >(result
))), SWIGTYPE_p_Video
, SWIG_POINTER_OWN
| SWIG_SHADOW
);
3462 if (SWIG_IsNewObj(res2
)) delete arg2
;
3467 if (SWIG_IsNewObj(res2
)) delete arg2
;
3474 XS(_wrap_Query_next_website
)
3477 Query
*arg1
= (Query
*) 0 ;
3478 std::string
*arg2
= 0 ;
3479 std::string
*arg3
= 0 ;
3483 int res2
= SWIG_TMPOBJ
;
3485 int res3
= SWIG_TMPOBJ
;
3492 if ((items
< 1) || (items
> 1))
3494 SWIG_croak("Usage: Query_next_website(self);");
3496 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3497 if (!SWIG_IsOK(res1
))
3499 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_next_website" "', argument " "1"" of type '" "Query *""'");
3501 arg1
= reinterpret_cast< Query
* >(argp1
);
3505 result
= (int)(arg1
)->next_website(*arg2
,*arg3
);
3507 catch (const std::runtime_error
& e
)
3509 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3512 ST(argvi
) = SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(result
));
3514 if (SWIG_IsTmpObj(res2
))
3516 if (argvi
>= items
) EXTEND(sp
,1);
3517 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1((*arg2
));
3522 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0) : 0;
3523 if (argvi
>= items
) EXTEND(sp
,1);
3524 ST(argvi
) = SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_std__string
, new_flags
);
3527 if (SWIG_IsTmpObj(res3
))
3529 if (argvi
>= items
) EXTEND(sp
,1);
3530 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1((*arg3
));
3535 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0) : 0;
3536 if (argvi
>= items
) EXTEND(sp
,1);
3537 ST(argvi
) = SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_std__string
, new_flags
);
3553 XS(_wrap_Query_supported
)
3556 Query
*arg1
= (Query
*) 0 ;
3557 std::string
*arg2
= 0 ;
3560 int res2
= SWIG_OLDOBJ
;
3565 if ((items
< 2) || (items
> 2))
3567 SWIG_croak("Usage: Query_supported(self,std::string const &);");
3569 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3570 if (!SWIG_IsOK(res1
))
3572 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_supported" "', argument " "1"" of type '" "Query *""'");
3574 arg1
= reinterpret_cast< Query
* >(argp1
);
3576 std::string
*ptr
= (std::string
*)0;
3577 res2
= SWIG_AsPtr_std_string
SWIG_PERL_CALL_ARGS_2(ST(1), &ptr
);
3578 if (!SWIG_IsOK(res2
))
3580 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Query_supported" "', argument " "2"" of type '" "std::string const &""'");
3584 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Query_supported" "', argument " "2"" of type '" "std::string const &""'");
3591 result
= (int)(arg1
)->supported((std::string
const &)*arg2
);
3593 catch (const std::runtime_error
& e
)
3595 SWIG_exception (SWIG_RuntimeError
, e
.what ());
3598 ST(argvi
) = SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(result
));
3601 if (SWIG_IsNewObj(res2
)) delete arg2
;
3605 if (SWIG_IsNewObj(res2
)) delete arg2
;
3611 XS(_wrap_Query_last_error_get
)
3614 Query
*arg1
= (Query
*) 0 ;
3618 std::string
*result
= 0 ;
3621 if ((items
< 1) || (items
> 1))
3623 SWIG_croak("Usage: Query_last_error_get(self);");
3625 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3626 if (!SWIG_IsOK(res1
))
3628 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_last_error_get" "', argument " "1"" of type '" "Query *""'");
3630 arg1
= reinterpret_cast< Query
* >(argp1
);
3631 result
= (std::string
*) & ((arg1
)->last_error
);
3632 ST(argvi
) = SWIG_From_std_string
SWIG_PERL_CALL_ARGS_1(static_cast< std::string
>(*result
));
3643 XS(_wrap_Query_quvi_code_get
)
3646 Query
*arg1
= (Query
*) 0 ;
3653 if ((items
< 1) || (items
> 1))
3655 SWIG_croak("Usage: Query_quvi_code_get(self);");
3657 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3658 if (!SWIG_IsOK(res1
))
3660 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_quvi_code_get" "', argument " "1"" of type '" "Query *""'");
3662 arg1
= reinterpret_cast< Query
* >(argp1
);
3663 result
= (long) ((arg1
)->quvi_code
);
3664 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
3675 XS(_wrap_Query_resp_code_get
)
3678 Query
*arg1
= (Query
*) 0 ;
3685 if ((items
< 1) || (items
> 1))
3687 SWIG_croak("Usage: Query_resp_code_get(self);");
3689 res1
= SWIG_ConvertPtr(ST(0), &argp1
,SWIGTYPE_p_Query
, 0 | 0 );
3690 if (!SWIG_IsOK(res1
))
3692 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Query_resp_code_get" "', argument " "1"" of type '" "Query *""'");
3694 arg1
= reinterpret_cast< Query
* >(argp1
);
3695 result
= (long) ((arg1
)->resp_code
);
3696 ST(argvi
) = SWIG_From_long
SWIG_PERL_CALL_ARGS_1(static_cast< long >(result
));
3708 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3710 static swig_type_info _swigt__p_Link
= {"_p_Link", "Link *", 0, 0, (void*)"WWW::Quvi::Link", 0};
3711 static swig_type_info _swigt__p_Options
= {"_p_Options", "Options *", 0, 0, (void*)"WWW::Quvi::Options", 0};
3712 static swig_type_info _swigt__p_Query
= {"_p_Query", "Query *", 0, 0, (void*)"WWW::Quvi::Query", 0};
3713 static swig_type_info _swigt__p_Video
= {"_p_Video", "Video *", 0, 0, (void*)"WWW::Quvi::Video", 0};
3714 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, (void*)0, 0};
3715 static swig_type_info _swigt__p_quviCategory
= {"_p_quviCategory", "enum quviCategory *|quviCategory *", 0, 0, (void*)0, 0};
3716 static swig_type_info _swigt__p_quviCode
= {"_p_quviCode", "enum quviCode *|quviCode *", 0, 0, (void*)0, 0};
3717 static swig_type_info _swigt__p_quviVersion
= {"_p_quviVersion", "enum quviVersion *|quviVersion *", 0, 0, (void*)0, 0};
3718 static swig_type_info _swigt__p_std__string
= {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
3720 static swig_type_info
*swig_type_initial
[] =
3727 &_swigt__p_quviCategory
,
3728 &_swigt__p_quviCode
,
3729 &_swigt__p_quviVersion
,
3730 &_swigt__p_std__string
,
3733 static swig_cast_info _swigc__p_Link
[] = { {&_swigt__p_Link
, 0, 0, 0},{0, 0, 0, 0}};
3734 static swig_cast_info _swigc__p_Options
[] = { {&_swigt__p_Options
, 0, 0, 0},{0, 0, 0, 0}};
3735 static swig_cast_info _swigc__p_Query
[] = { {&_swigt__p_Query
, 0, 0, 0},{0, 0, 0, 0}};
3736 static swig_cast_info _swigc__p_Video
[] = { {&_swigt__p_Video
, 0, 0, 0},{0, 0, 0, 0}};
3737 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
3738 static swig_cast_info _swigc__p_quviCategory
[] = { {&_swigt__p_quviCategory
, 0, 0, 0},{0, 0, 0, 0}};
3739 static swig_cast_info _swigc__p_quviCode
[] = { {&_swigt__p_quviCode
, 0, 0, 0},{0, 0, 0, 0}};
3740 static swig_cast_info _swigc__p_quviVersion
[] = { {&_swigt__p_quviVersion
, 0, 0, 0},{0, 0, 0, 0}};
3741 static swig_cast_info _swigc__p_std__string
[] = { {&_swigt__p_std__string
, 0, 0, 0},{0, 0, 0, 0}};
3743 static swig_cast_info
*swig_cast_initial
[] =
3750 _swigc__p_quviCategory
,
3752 _swigc__p_quviVersion
,
3753 _swigc__p_std__string
,
3757 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3759 static swig_constant_info swig_constants
[] =
3766 static swig_variable_info swig_variables
[] =
3768 { "WWW::Quvic::_VERSION", MAGIC_CLASS _wrap__VERSION_set
, MAGIC_CLASS _wrap__VERSION_get
,0 },
3771 static swig_command_info swig_commands
[] =
3773 {"WWW::Quvic::version", _wrap_version
},
3774 {"WWW::Quvic::new_Options", _wrap_new_Options
},
3775 {"WWW::Quvic::Options_user_agent_set", _wrap_Options_user_agent_set
},
3776 {"WWW::Quvic::Options_user_agent_get", _wrap_Options_user_agent_get
},
3777 {"WWW::Quvic::Options_http_proxy_set", _wrap_Options_http_proxy_set
},
3778 {"WWW::Quvic::Options_http_proxy_get", _wrap_Options_http_proxy_get
},
3779 {"WWW::Quvic::Options_verbose_libcurl_set", _wrap_Options_verbose_libcurl_set
},
3780 {"WWW::Quvic::Options_verbose_libcurl_get", _wrap_Options_verbose_libcurl_get
},
3781 {"WWW::Quvic::Options_format_set", _wrap_Options_format_set
},
3782 {"WWW::Quvic::Options_format_get", _wrap_Options_format_get
},
3783 {"WWW::Quvic::Options_verify_set", _wrap_Options_verify_set
},
3784 {"WWW::Quvic::Options_verify_get", _wrap_Options_verify_get
},
3785 {"WWW::Quvic::Options_shortened_set", _wrap_Options_shortened_set
},
3786 {"WWW::Quvic::Options_shortened_get", _wrap_Options_shortened_get
},
3787 {"WWW::Quvic::Options_category_set", _wrap_Options_category_set
},
3788 {"WWW::Quvic::Options_category_get", _wrap_Options_category_get
},
3789 {"WWW::Quvic::delete_Options", _wrap_delete_Options
},
3790 {"WWW::Quvic::new_Link", _wrap_new_Link
},
3791 {"WWW::Quvic::Link_content_type_get", _wrap_Link_content_type_get
},
3792 {"WWW::Quvic::Link_file_suffix_get", _wrap_Link_file_suffix_get
},
3793 {"WWW::Quvic::Link_length_bytes_get", _wrap_Link_length_bytes_get
},
3794 {"WWW::Quvic::Link_url_get", _wrap_Link_url_get
},
3795 {"WWW::Quvic::delete_Link", _wrap_delete_Link
},
3796 {"WWW::Quvic::new_Video", _wrap_new_Video
},
3797 {"WWW::Quvic::Video_title_get", _wrap_Video_title_get
},
3798 {"WWW::Quvic::Video_host_get", _wrap_Video_host_get
},
3799 {"WWW::Quvic::Video_url_get", _wrap_Video_url_get
},
3800 {"WWW::Quvic::Video_id_get", _wrap_Video_id_get
},
3801 {"WWW::Quvic::Video_link_get", _wrap_Video_link_get
},
3802 {"WWW::Quvic::Video_ok_get", _wrap_Video_ok_get
},
3803 {"WWW::Quvic::delete_Video", _wrap_delete_Video
},
3804 {"WWW::Quvic::new_Query", _wrap_new_Query
},
3805 {"WWW::Quvic::delete_Query", _wrap_delete_Query
},
3806 {"WWW::Quvic::Query_parse", _wrap_Query_parse
},
3807 {"WWW::Quvic::Query_next_website", _wrap_Query_next_website
},
3808 {"WWW::Quvic::Query_supported", _wrap_Query_supported
},
3809 {"WWW::Quvic::Query_last_error_get", _wrap_Query_last_error_get
},
3810 {"WWW::Quvic::Query_quvi_code_get", _wrap_Query_quvi_code_get
},
3811 {"WWW::Quvic::Query_resp_code_get", _wrap_Query_resp_code_get
},
3814 /* -----------------------------------------------------------------------------
3815 * Type initialization:
3816 * This problem is tough by the requirement that no dynamic
3817 * memory is used. Also, since swig_type_info structures store pointers to
3818 * swig_cast_info structures and swig_cast_info structures store pointers back
3819 * to swig_type_info structures, we need some lookup code at initialization.
3820 * The idea is that swig generates all the structures that are needed.
3821 * The runtime then collects these partially filled structures.
3822 * The SWIG_InitializeModule function takes these initial arrays out of
3823 * swig_module, and does all the lookup, filling in the swig_module.types
3824 * array with the correct data and linking the correct swig_cast_info
3825 * structures together.
3827 * The generated swig_type_info structures are assigned staticly to an initial
3828 * array. We just loop through that array, and handle each type individually.
3829 * First we lookup if this type has been already loaded, and if so, use the
3830 * loaded structure instead of the generated one. Then we have to fill in the
3831 * cast linked list. The cast data is initially stored in something like a
3832 * two-dimensional array. Each row corresponds to a type (there are the same
3833 * number of rows as there are in the swig_type_initial array). Each entry in
3834 * a column is one of the swig_cast_info structures for that type.
3835 * The cast_initial array is actually an array of arrays, because each row has
3836 * a variable number of columns. So to actually build the cast linked list,
3837 * we find the array of casts associated with the type, and loop through it
3838 * adding the casts to the list. The one last trick we need to do is making
3839 * sure the type pointer in the swig_cast_info struct is correct.
3841 * First off, we lookup the cast->type name to see if it is already loaded.
3842 * There are three cases to handle:
3843 * 1) If the cast->type has already been loaded AND the type we are adding
3844 * casting info to has not been loaded (it is in this module), THEN we
3845 * replace the cast->type pointer with the type pointer that has already
3847 * 2) If BOTH types (the one we are adding casting info to, and the
3848 * cast->type) are loaded, THEN the cast info has already been loaded by
3849 * the previous module so we just ignore it.
3850 * 3) Finally, if cast->type has not already been loaded, then we add that
3851 * swig_cast_info to the linked list (because the cast->type) pointer will
3853 * ----------------------------------------------------------------------------- */
3863 #define SWIGRUNTIME_DEBUG
3868 SWIG_InitializeModule(void *clientdata
)
3871 swig_module_info
*module_head
, *iter
;
3874 clientdata
= clientdata
;
3876 /* check to see if the circular list has been setup, if not, set it up */
3877 if (swig_module
.next
==0)
3879 /* Initialize the swig_module */
3880 swig_module
.type_initial
= swig_type_initial
;
3881 swig_module
.cast_initial
= swig_cast_initial
;
3882 swig_module
.next
= &swig_module
;
3890 /* Try and load any already created modules */
3891 module_head
= SWIG_GetModule(clientdata
);
3894 /* This is the first module loaded for this interpreter */
3895 /* so set the swig module into the interpreter */
3896 SWIG_SetModule(clientdata
, &swig_module
);
3897 module_head
= &swig_module
;
3901 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
3906 if (iter
==&swig_module
)
3913 while (iter
!= module_head
);
3915 /* if the is found in the list, then all is done and we may leave */
3917 /* otherwise we must add out module into the list */
3918 swig_module
.next
= module_head
->next
;
3919 module_head
->next
= &swig_module
;
3922 /* When multiple interpeters are used, a module could have already been initialized in
3923 a different interpreter, but not yet have a pointer in this interpreter.
3924 In this case, we do not want to continue adding types... everything should be
3926 if (init
== 0) return;
3928 /* Now work on filling in swig_module.types */
3929 #ifdef SWIGRUNTIME_DEBUG
3930 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
3932 for (i
= 0; i
< swig_module
.size
; ++i
)
3934 swig_type_info
*type
= 0;
3935 swig_type_info
*ret
;
3936 swig_cast_info
*cast
;
3938 #ifdef SWIGRUNTIME_DEBUG
3939 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
3942 /* if there is another module already loaded */
3943 if (swig_module
.next
!= &swig_module
)
3945 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
3949 /* Overwrite clientdata field */
3950 #ifdef SWIGRUNTIME_DEBUG
3951 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
3953 if (swig_module
.type_initial
[i
]->clientdata
)
3955 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
3956 #ifdef SWIGRUNTIME_DEBUG
3957 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
3963 type
= swig_module
.type_initial
[i
];
3966 /* Insert casting types */
3967 cast
= swig_module
.cast_initial
[i
];
3970 /* Don't need to add information already in the list */
3972 #ifdef SWIGRUNTIME_DEBUG
3973 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
3975 if (swig_module
.next
!= &swig_module
)
3977 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
3978 #ifdef SWIGRUNTIME_DEBUG
3979 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
3984 if (type
== swig_module
.type_initial
[i
])
3986 #ifdef SWIGRUNTIME_DEBUG
3987 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
3994 /* Check for casting already in the list */
3995 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
3996 #ifdef SWIGRUNTIME_DEBUG
3997 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
3999 if (!ocast
) ret
= 0;
4005 #ifdef SWIGRUNTIME_DEBUG
4006 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
4010 type
->cast
->prev
= cast
;
4011 cast
->next
= type
->cast
;
4017 /* Set entry in modules->types array equal to the type */
4018 swig_module
.types
[i
] = type
;
4020 swig_module
.types
[i
] = 0;
4022 #ifdef SWIGRUNTIME_DEBUG
4023 printf("**** SWIG_InitializeModule: Cast List ******\n");
4024 for (i
= 0; i
< swig_module
.size
; ++i
)
4027 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
4028 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
4031 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
4035 printf("---- Total casts: %d\n",j
);
4037 printf("**** SWIG_InitializeModule: Cast List ******\n");
4041 /* This function will propagate the clientdata field of type to
4042 * any new swig_type_info structures that have been added into the list
4043 * of equivalent types. It is like calling
4044 * SWIG_TypeClientData(type, clientdata) a second time.
4047 SWIG_PropagateClientData(void)
4050 swig_cast_info
*equiv
;
4051 static int init_run
= 0;
4053 if (init_run
) return;
4056 for (i
= 0; i
< swig_module
.size
; i
++)
4058 if (swig_module
.types
[i
]->clientdata
)
4060 equiv
= swig_module
.types
[i
]->cast
;
4063 if (!equiv
->converter
)
4065 if (equiv
->type
&& !equiv
->type
->clientdata
)
4066 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
4068 equiv
= equiv
->next
;
4093 SWIG_InitializeModule(0);
4095 /* Install commands */
4096 for (i
= 0; swig_commands
[i
].name
; i
++)
4098 newXS((char*) swig_commands
[i
].name
,swig_commands
[i
].wrapper
, (char*)__FILE__
);
4101 /* Install variables */
4102 for (i
= 0; swig_variables
[i
].name
; i
++)
4105 sv
= get_sv((char*) swig_variables
[i
].name
, TRUE
| 0x2 | GV_ADDMULTI
);
4106 if (swig_variables
[i
].type
)
4108 SWIG_MakePtr(sv
,(void *)1, *swig_variables
[i
].type
,0);
4112 sv_setiv(sv
,(IV
) 0);
4114 swig_create_magic(sv
, (char *) swig_variables
[i
].name
, swig_variables
[i
].set
, swig_variables
[i
].get
);
4117 /* Install constant */
4118 for (i
= 0; swig_constants
[i
].type
; i
++)
4121 sv
= get_sv((char*)swig_constants
[i
].name
, TRUE
| 0x2 | GV_ADDMULTI
);
4122 switch(swig_constants
[i
].type
)
4125 sv_setiv(sv
, (IV
) swig_constants
[i
].lvalue
);
4128 sv_setnv(sv
, (double) swig_constants
[i
].dvalue
);
4131 sv_setpv(sv
, (char *) swig_constants
[i
].pvalue
);
4134 SWIG_MakePtr(sv
, swig_constants
[i
].pvalue
, *(swig_constants
[i
].ptype
),0);
4137 SWIG_MakePackedObj(sv
, swig_constants
[i
].pvalue
, swig_constants
[i
].lvalue
, *(swig_constants
[i
].ptype
));
4145 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/ do
4147 SV
*sv
= get_sv((char*) SWIG_prefix
"libquviVersion", TRUE
| 0x2 | GV_ADDMULTI
);
4148 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(libquviVersion
)));
4151 while(0) /*@SWIG@*/;
4152 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4155 SV
*sv
= get_sv((char*) SWIG_prefix
"libquviVersionLong", TRUE
| 0x2 | GV_ADDMULTI
);
4156 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(libquviVersionLong
)));
4159 while(0) /*@SWIG@*/;
4160 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4163 SV
*sv
= get_sv((char*) SWIG_prefix
"ModuleVersion", TRUE
| 0x2 | GV_ADDMULTI
);
4164 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ModuleVersion
)));
4167 while(0) /*@SWIG@*/;
4168 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4171 SV
*sv
= get_sv((char*) SWIG_prefix
"OK", TRUE
| 0x2 | GV_ADDMULTI
);
4172 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(OK
)));
4175 while(0) /*@SWIG@*/;
4176 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4179 SV
*sv
= get_sv((char*) SWIG_prefix
"Mem", TRUE
| 0x2 | GV_ADDMULTI
);
4180 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(Mem
)));
4183 while(0) /*@SWIG@*/;
4184 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4187 SV
*sv
= get_sv((char*) SWIG_prefix
"BadHandle", TRUE
| 0x2 | GV_ADDMULTI
);
4188 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(BadHandle
)));
4191 while(0) /*@SWIG@*/;
4192 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4195 SV
*sv
= get_sv((char*) SWIG_prefix
"InvArg", TRUE
| 0x2 | GV_ADDMULTI
);
4196 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(InvArg
)));
4199 while(0) /*@SWIG@*/;
4200 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4203 SV
*sv
= get_sv((char*) SWIG_prefix
"CurlInit", TRUE
| 0x2 | GV_ADDMULTI
);
4204 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(CurlInit
)));
4207 while(0) /*@SWIG@*/;
4208 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4211 SV
*sv
= get_sv((char*) SWIG_prefix
"Last", TRUE
| 0x2 | GV_ADDMULTI
);
4212 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(Last
)));
4215 while(0) /*@SWIG@*/;
4216 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4219 SV
*sv
= get_sv((char*) SWIG_prefix
"AbortedByCallback", TRUE
| 0x2 | GV_ADDMULTI
);
4220 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(AbortedByCallback
)));
4223 while(0) /*@SWIG@*/;
4224 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4227 SV
*sv
= get_sv((char*) SWIG_prefix
"LuaInit", TRUE
| 0x2 | GV_ADDMULTI
);
4228 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(LuaInit
)));
4231 while(0) /*@SWIG@*/;
4232 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4235 SV
*sv
= get_sv((char*) SWIG_prefix
"NoLuaWebsite", TRUE
| 0x2 | GV_ADDMULTI
);
4236 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoLuaWebsite
)));
4239 while(0) /*@SWIG@*/;
4240 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4243 SV
*sv
= get_sv((char*) SWIG_prefix
"NoLuaUtil", TRUE
| 0x2 | GV_ADDMULTI
);
4244 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoLuaUtil
)));
4247 while(0) /*@SWIG@*/;
4248 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4251 SV
*sv
= get_sv((char*) SWIG_prefix
"PcreError", TRUE
| 0x2 | GV_ADDMULTI
);
4252 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(PcreError
)));
4255 while(0) /*@SWIG@*/;
4256 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4259 SV
*sv
= get_sv((char*) SWIG_prefix
"NoSupport", TRUE
| 0x2 | GV_ADDMULTI
);
4260 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(NoSupport
)));
4263 while(0) /*@SWIG@*/;
4264 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4267 SV
*sv
= get_sv((char*) SWIG_prefix
"CurlError", TRUE
| 0x2 | GV_ADDMULTI
);
4268 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(CurlError
)));
4271 while(0) /*@SWIG@*/;
4272 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4275 SV
*sv
= get_sv((char*) SWIG_prefix
"IconvError", TRUE
| 0x2 | GV_ADDMULTI
);
4276 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(IconvError
)));
4279 while(0) /*@SWIG@*/;
4280 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4283 SV
*sv
= get_sv((char*) SWIG_prefix
"LuaError", TRUE
| 0x2 | GV_ADDMULTI
);
4284 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(LuaError
)));
4287 while(0) /*@SWIG@*/;
4288 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4291 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoHttp", TRUE
| 0x2 | GV_ADDMULTI
);
4292 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoHttp
)));
4295 while(0) /*@SWIG@*/;
4296 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4299 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoMms", TRUE
| 0x2 | GV_ADDMULTI
);
4300 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoMms
)));
4303 while(0) /*@SWIG@*/;
4304 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4307 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoRtsp", TRUE
| 0x2 | GV_ADDMULTI
);
4308 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoRtsp
)));
4311 while(0) /*@SWIG@*/;
4312 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4315 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoRtmp", TRUE
| 0x2 | GV_ADDMULTI
);
4316 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoRtmp
)));
4319 while(0) /*@SWIG@*/;
4320 /*@SWIG:/usr/share/swig/2.0.1/perl5/perltypemaps.swg,65,%set_constant@*/
4323 SV
*sv
= get_sv((char*) SWIG_prefix
"ProtoAll", TRUE
| 0x2 | GV_ADDMULTI
);
4324 sv_setsv(sv
, SWIG_From_int
SWIG_PERL_CALL_ARGS_1(static_cast< int >(ProtoAll
)));
4327 while(0) /*@SWIG@*/;
4328 SWIG_TypeClientData(SWIGTYPE_p_Options
, (void*) "WWW::Quvi::Options");
4329 SWIG_TypeClientData(SWIGTYPE_p_Link
, (void*) "WWW::Quvi::Link");
4330 SWIG_TypeClientData(SWIGTYPE_p_Video
, (void*) "WWW::Quvi::Video");
4331 SWIG_TypeClientData(SWIGTYPE_p_Query
, (void*) "WWW::Quvi::Query");