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
13 /* -----------------------------------------------------------------------------
14 * This section contains generic SWIG labels for method/variable
15 * declarations/attributes, and other compiler dependent labels.
16 * ----------------------------------------------------------------------------- */
18 /* template workaround for compilers that cannot correctly implement the C++ standard */
19 #ifndef SWIGTEMPLATEDISAMBIGUATOR
20 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21 # define SWIGTEMPLATEDISAMBIGUATOR template
22 # elif defined(__HP_aCC)
23 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25 # define SWIGTEMPLATEDISAMBIGUATOR template
27 # define SWIGTEMPLATEDISAMBIGUATOR
31 /* inline attribute */
33 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34 # define SWIGINLINE inline
40 /* attribute recognised by some compilers to avoid 'unused' warnings */
42 # if defined(__GNUC__)
43 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44 # define SWIGUNUSED __attribute__ ((__unused__))
49 # define SWIGUNUSED __attribute__ ((__unused__))
55 #ifndef SWIGUNUSEDPARM
57 # define SWIGUNUSEDPARM(p)
59 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
63 /* internal SWIG method */
65 # define SWIGINTERN static SWIGUNUSED
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
73 /* exporting methods */
74 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
75 # ifndef GCC_HASCLASSVISIBILITY
76 # define GCC_HASCLASSVISIBILITY
81 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
82 # if defined(STATIC_LINKED)
85 # define SWIGEXPORT __declspec(dllexport)
88 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
89 # define SWIGEXPORT __attribute__ ((visibility("default")))
96 /* calling conventions for Windows */
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # define SWIGSTDCALL __stdcall
105 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
106 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
107 # define _CRT_SECURE_NO_DEPRECATE
110 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
111 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
112 # define _SCL_SECURE_NO_DEPRECATE
116 /* -----------------------------------------------------------------------------
119 * This file contains generic CAPI SWIG runtime support for pointer
121 * ----------------------------------------------------------------------------- */
123 /* This should only be incremented when either the layout of swig_type_info changes,
124 or for whatever reason, the runtime changes incompatibly */
125 #define SWIG_RUNTIME_VERSION "4"
127 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
128 #ifdef SWIG_TYPE_TABLE
129 # define SWIG_QUOTE_STRING(x) #x
130 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
131 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
133 # define SWIG_TYPE_TABLE_NAME
137 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
138 creating a static or dynamic library from the swig runtime code.
139 In 99.9% of the cases, swig just needs to declare them as 'static'.
141 But only do this if is strictly necessary, ie, if you have problems
142 with your compiler or so.
146 # define SWIGRUNTIME SWIGINTERN
149 #ifndef SWIGRUNTIMEINLINE
150 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
153 /* Generic buffer size */
154 #ifndef SWIG_BUFFER_SIZE
155 # define SWIG_BUFFER_SIZE 1024
158 /* Flags for pointer conversions */
159 #define SWIG_POINTER_DISOWN 0x1
160 #define SWIG_CAST_NEW_MEMORY 0x2
162 /* Flags for new pointer objects */
163 #define SWIG_POINTER_OWN 0x1
167 Flags/methods for returning states.
169 The swig conversion methods, as ConvertPtr, return and integer
170 that tells if the conversion was successful or not. And if not,
171 an error code can be returned (see swigerrors.swg for the codes).
173 Use the following macros/flags to set or process the returning
176 In old swig versions, you usually write code as:
178 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
184 Now you can be more explicit as:
186 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
187 if (SWIG_IsOK(res)) {
193 that seems to be the same, but now you can also do
196 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
197 if (SWIG_IsOK(res)) {
199 if (SWIG_IsNewObj(res) {
209 I.e., now SWIG_ConvertPtr can return new objects and you can
210 identify the case and take care of the deallocation. Of course that
211 requires also to SWIG_ConvertPtr to return new result values, as
213 int SWIG_ConvertPtr(obj, ptr,...) {
215 if (<need new object>) {
216 *ptr = <ptr to new allocated object>;
219 *ptr = <ptr to old object>;
227 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
228 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
231 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
232 allows to return the 'cast rank', for example, if you have this
239 food(1) // cast rank '1' (1 -> 1.0)
240 fooi(1) // cast rank '0'
242 just use the SWIG_AddCast()/SWIG_CheckState()
247 #define SWIG_ERROR (-1)
248 #define SWIG_IsOK(r) (r >= 0)
249 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
251 /* The CastRankLimit says how many bits are used for the cast rank */
252 #define SWIG_CASTRANKLIMIT (1 << 8)
253 /* The NewMask denotes the object was created (using new/malloc) */
254 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
255 /* The TmpMask is for in/out typemaps that use temporal objects */
256 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
257 /* Simple returning values */
258 #define SWIG_BADOBJ (SWIG_ERROR)
259 #define SWIG_OLDOBJ (SWIG_OK)
260 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
261 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
262 /* Check, add and del mask methods */
263 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
264 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
265 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
266 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
267 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
268 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
272 #if defined(SWIG_CASTRANK_MODE)
273 # ifndef SWIG_TypeRank
274 # define SWIG_TypeRank unsigned long
276 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
277 # define SWIG_MAXCASTRANK (2)
279 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
280 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
281 SWIGINTERNINLINE int SWIG_AddCast(int r) {
282 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
284 SWIGINTERNINLINE int SWIG_CheckState(int r) {
285 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
287 #else /* no cast-rank mode */
288 # define SWIG_AddCast
289 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
301 typedef void *(*swig_converter_func)(void *, int *);
302 typedef struct swig_type_info *(*swig_dycast_func)(void **);
304 /* Structure to store information on one type */
305 typedef struct swig_type_info {
306 const char *name; /* mangled name of this type */
307 const char *str; /* human readable name of this type */
308 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
309 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
310 void *clientdata; /* language specific type data */
311 int owndata; /* flag if the structure owns the clientdata */
314 /* Structure to store a type and conversion function used for casting */
315 typedef struct swig_cast_info {
316 swig_type_info *type; /* pointer to type that is equivalent to this type */
317 swig_converter_func converter; /* function to cast the void pointers */
318 struct swig_cast_info *next; /* pointer to next cast in linked list */
319 struct swig_cast_info *prev; /* pointer to the previous cast */
322 /* Structure used to store module information
323 * Each module generates one structure like this, and the runtime collects
324 * all of these structures and stores them in a circularly linked list.*/
325 typedef struct swig_module_info {
326 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
327 size_t size; /* Number of types in this module */
328 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
329 swig_type_info **type_initial; /* Array of initially generated type structures */
330 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
331 void *clientdata; /* Language specific module data */
335 Compare two type names skipping the space characters, therefore
336 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
338 Return 0 when the two name types are equivalent, as in
339 strncmp, but skipping ' '.
342 SWIG_TypeNameComp(const char *f1, const char *l1,
343 const char *f2, const char *l2) {
344 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
345 while ((*f1 == ' ') && (f1 != l1)) ++f1;
346 while ((*f2 == ' ') && (f2 != l2)) ++f2;
347 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
349 return (int)((l1 - f1) - (l2 - f2));
353 Check type equivalence in a name list like <name1>|<name2>|...
354 Return 0 if not equal, 1 if equal
357 SWIG_TypeEquiv(const char *nb, const char *tb) {
359 const char* te = tb + strlen(tb);
361 while (!equiv && *ne) {
362 for (nb = ne; *ne; ++ne) {
363 if (*ne == '|') break;
365 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
372 Check type equivalence in a name list like <name1>|<name2>|...
373 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
376 SWIG_TypeCompare(const char *nb, const char *tb) {
378 const char* te = tb + strlen(tb);
380 while (!equiv && *ne) {
381 for (nb = ne; *ne; ++ne) {
382 if (*ne == '|') break;
384 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
391 /* think of this as a c++ template<> or a scheme macro */
392 #define SWIG_TypeCheck_Template(comparison, ty) \
394 swig_cast_info *iter = ty->cast; \
397 if (iter == ty->cast) return iter; \
398 /* Move iter to the top of the linked list */ \
399 iter->prev->next = iter->next; \
401 iter->next->prev = iter->prev; \
402 iter->next = ty->cast; \
404 if (ty->cast) ty->cast->prev = iter; \
416 SWIGRUNTIME swig_cast_info *
417 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
418 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
421 /* Same as previous function, except strcmp is replaced with a pointer comparison */
422 SWIGRUNTIME swig_cast_info *
423 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
424 SWIG_TypeCheck_Template(iter->type == from, into);
428 Cast a pointer up an inheritance hierarchy
430 SWIGRUNTIMEINLINE void *
431 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
432 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
436 Dynamic pointer casting. Down an inheritance hierarchy
438 SWIGRUNTIME swig_type_info *
439 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
440 swig_type_info *lastty = ty;
441 if (!ty || !ty->dcast) return ty;
442 while (ty && (ty->dcast)) {
443 ty = (*ty->dcast)(ptr);
450 Return the name associated with this type
452 SWIGRUNTIMEINLINE const char *
453 SWIG_TypeName(const swig_type_info *ty) {
458 Return the pretty name associated with this type,
459 that is an unmangled type name in a form presentable to the user.
461 SWIGRUNTIME const char *
462 SWIG_TypePrettyName(const swig_type_info *type) {
463 /* The "str" field contains the equivalent pretty names of the
464 type, separated by vertical-bar characters. We choose
465 to print the last name, as it is often (?) the most
467 if (!type) return NULL;
468 if (type->str != NULL) {
469 const char *last_name = type->str;
471 for (s = type->str; *s; s++)
472 if (*s == '|') last_name = s+1;
480 Set the clientdata field for a type
483 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
484 swig_cast_info *cast = ti->cast;
485 /* if (ti->clientdata == clientdata) return; */
486 ti->clientdata = clientdata;
489 if (!cast->converter) {
490 swig_type_info *tc = cast->type;
491 if (!tc->clientdata) {
492 SWIG_TypeClientData(tc, clientdata);
499 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
500 SWIG_TypeClientData(ti, clientdata);
505 Search for a swig_type_info structure only by mangled name
506 Search is a O(log #types)
508 We start searching at module start, and finish searching when start == end.
509 Note: if start == end at the beginning of the function, we go all the way around
512 SWIGRUNTIME swig_type_info *
513 SWIG_MangledTypeQueryModule(swig_module_info *start,
514 swig_module_info *end,
516 swig_module_info *iter = start;
519 register size_t l = 0;
520 register size_t r = iter->size - 1;
522 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
523 register size_t i = (l + r) >> 1;
524 const char *iname = iter->types[i]->name;
526 register int compare = strcmp(name, iname);
528 return iter->types[i];
529 } else if (compare < 0) {
535 } else if (compare > 0) {
539 break; /* should never happen */
544 } while (iter != end);
549 Search for a swig_type_info structure for either a mangled name or a human readable name.
550 It first searches the mangled names of the types, which is a O(log #types)
551 If a type is not found it then searches the human readable names, which is O(#types).
553 We start searching at module start, and finish searching when start == end.
554 Note: if start == end at the beginning of the function, we go all the way around
557 SWIGRUNTIME swig_type_info *
558 SWIG_TypeQueryModule(swig_module_info *start,
559 swig_module_info *end,
561 /* STEP 1: Search the name field using binary search */
562 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
566 /* STEP 2: If the type hasn't been found, do a complete search
567 of the str field (the human readable name) */
568 swig_module_info *iter = start;
570 register size_t i = 0;
571 for (; i < iter->size; ++i) {
572 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
573 return iter->types[i];
576 } while (iter != end);
579 /* neither found a match */
584 Pack binary data into a string
587 SWIG_PackData(char *c, void *ptr, size_t sz) {
588 static const char hex[17] = "0123456789abcdef";
589 register const unsigned char *u = (unsigned char *) ptr;
590 register const unsigned char *eu = u + sz;
591 for (; u != eu; ++u) {
592 register unsigned char uu = *u;
593 *(c++) = hex[(uu & 0xf0) >> 4];
594 *(c++) = hex[uu & 0xf];
600 Unpack binary data from a string
602 SWIGRUNTIME const char *
603 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
604 register unsigned char *u = (unsigned char *) ptr;
605 register const unsigned char *eu = u + sz;
606 for (; u != eu; ++u) {
607 register char d = *(c++);
608 register unsigned char uu;
609 if ((d >= '0') && (d <= '9'))
610 uu = ((d - '0') << 4);
611 else if ((d >= 'a') && (d <= 'f'))
612 uu = ((d - ('a'-10)) << 4);
616 if ((d >= '0') && (d <= '9'))
618 else if ((d >= 'a') && (d <= 'f'))
619 uu |= (d - ('a'-10));
628 Pack 'void *' into a string buffer.
631 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
633 if ((2*sizeof(void *) + 2) > bsz) return 0;
635 r = SWIG_PackData(r,&ptr,sizeof(void *));
636 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
641 SWIGRUNTIME const char *
642 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
644 if (strcmp(c,"NULL") == 0) {
651 return SWIG_UnpackData(++c,ptr,sizeof(void *));
655 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
657 size_t lname = (name ? strlen(name) : 0);
658 if ((2*sz + 2 + lname) > bsz) return 0;
660 r = SWIG_PackData(r,ptr,sz);
662 strncpy(r,name,lname+1);
669 SWIGRUNTIME const char *
670 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
672 if (strcmp(c,"NULL") == 0) {
679 return SWIG_UnpackData(++c,ptr,sz);
687 #define SWIG_UnknownError -1
688 #define SWIG_IOError -2
689 #define SWIG_RuntimeError -3
690 #define SWIG_IndexError -4
691 #define SWIG_TypeError -5
692 #define SWIG_DivisionByZero -6
693 #define SWIG_OverflowError -7
694 #define SWIG_SyntaxError -8
695 #define SWIG_ValueError -9
696 #define SWIG_SystemError -10
697 #define SWIG_AttributeError -11
698 #define SWIG_MemoryError -12
699 #define SWIG_NullReferenceError -13
704 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
713 /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
715 /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
716 #ifndef PERL_REVISION
717 # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
718 # define PERL_PATCHLEVEL_H_IMPLICIT
719 # include <patchlevel.h>
721 # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
722 # include <could_not_find_Perl_patchlevel.h>
724 # ifndef PERL_REVISION
725 # define PERL_REVISION (5)
726 # define PERL_VERSION PATCHLEVEL
727 # define PERL_SUBVERSION SUBVERSION
731 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
732 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
736 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
740 # define SvUOK(sv) SvIOK_UV(sv)
743 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
744 # define PL_sv_undef sv_undef
746 # define PL_errgv errgv
747 # define PL_sv_no sv_no
748 # define PL_sv_yes sv_yes
749 # define PL_markstack_ptr markstack_ptr
754 # define IVSIZE LONGSIZE
756 # define IVSIZE 4 /* A bold guess, but the best we can make. */
761 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
763 # define INT2PTR(any,d) (any)(d)
765 # if PTRSIZE == LONGSIZE
766 # define PTRV unsigned long
768 # define PTRV unsigned
770 # define INT2PTR(any,d) (any)(PTRV)(d)
773 # define NUM2PTR(any,d) (any)(PTRV)(d)
774 # define PTR2IV(p) INT2PTR(IV,p)
775 # define PTR2UV(p) INT2PTR(UV,p)
776 # define PTR2NV(p) NUM2PTR(NV,p)
778 # if PTRSIZE == LONGSIZE
779 # define PTR2ul(p) (unsigned long)(p)
781 # define PTR2ul(p) INT2PTR(unsigned long,p)
783 #endif /* !INT2PTR */
786 # define SvPV_nolen(x) SvPV(x,PL_na)
790 # define get_sv perl_get_sv
794 # define ERRSV get_sv("@",FALSE)
806 /* -----------------------------------------------------------------------------
808 * ----------------------------------------------------------------------------- */
810 SWIGINTERN const char*
811 SWIG_Perl_ErrorType(int code) {
812 const char* type = 0;
814 case SWIG_MemoryError:
815 type = "MemoryError";
820 case SWIG_RuntimeError:
821 type = "RuntimeError";
823 case SWIG_IndexError:
829 case SWIG_DivisionByZero:
830 type = "ZeroDivisionError";
832 case SWIG_OverflowError:
833 type = "OverflowError";
835 case SWIG_SyntaxError:
836 type = "SyntaxError";
838 case SWIG_ValueError:
841 case SWIG_SystemError:
842 type = "SystemError";
844 case SWIG_AttributeError:
845 type = "AttributeError";
848 type = "RuntimeError";
856 /* -----------------------------------------------------------------------------
859 * This file contains the runtime support for Perl modules
860 * and includes code for managing global variables and pointer
862 * ----------------------------------------------------------------------------- */
865 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
866 #define SWIG_PERL_OBJECT_CALL pPerl,
868 #define SWIG_PERL_OBJECT_DECL
869 #define SWIG_PERL_OBJECT_CALL
872 /* Common SWIG API */
874 /* for raw pointers */
875 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
876 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
878 /* for raw packed data */
879 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
880 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
882 /* for class or struct pointers */
883 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
884 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
886 /* for C or C++ function pointers */
887 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
888 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
890 /* for C++ member pointers, ie, member methods */
891 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
892 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
897 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule()
898 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
901 /* Error manipulation */
903 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
904 #define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg)
905 #define SWIG_fail goto fail
907 /* Perl-specific SWIG API */
909 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
910 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
911 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
914 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
915 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
916 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
917 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
919 /* -----------------------------------------------------------------------------
920 * pointers/data manipulation
921 * ----------------------------------------------------------------------------- */
923 /* For backward compatibility only */
924 #define SWIG_POINTER_EXCEPTION 0
930 #define SWIG_OWNER SWIG_POINTER_OWN
931 #define SWIG_SHADOW SWIG_OWNER << 1
933 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
935 /* SWIG Perl macros */
937 /* Macro to declare an XS function */
939 # define XSPROTO(name) void name(pTHX_ CV* cv)
942 /* Macro to call an XS function */
944 # define SWIG_CALLXS(_name) _name(cv,pPerl)
946 # ifndef MULTIPLICITY
947 # define SWIG_CALLXS(_name) _name(cv)
949 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
954 #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
959 typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
964 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
965 #define SWIGCLASS_STATIC
967 #else /* PERL_OBJECT */
970 #define SWIGCLASS_STATIC static SWIGUNUSED
973 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
978 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
983 #else /* MULTIPLICITY */
985 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
990 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
995 #endif /* MULTIPLICITY */
996 #endif /* PERL_OBJECT */
998 /* Workaround for bug in perl 5.6.x croak and earlier */
999 #if (PERL_VERSION < 8)
1001 # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
1002 static void SWIG_Perl_croak_null(CPerlObj *pPerl)
1004 static void SWIG_croak_null()
1008 # if (PERL_VERSION < 6)
1011 if (SvOK(err) && !SvROK(err)) croak("%_", err);
1016 # define SWIG_croak_null() croak(Nullch)
1021 Define how strict is the cast between strings and integers/doubles
1022 when overloading between these types occurs.
1024 The default is making it as strict as possible by using SWIG_AddCast
1027 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1028 disable the SWIG_AddCast, making the casting between string and
1029 numbers less strict.
1031 In the end, we try to solve the overloading between strings and
1032 numerical types in the more natural way, but if you can avoid it,
1033 well, avoid it using %rename, for example.
1035 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1036 # ifndef SWIG_PERL_STRICT_STR2NUM
1037 # define SWIG_PERL_STRICT_STR2NUM
1040 #ifdef SWIG_PERL_STRICT_STR2NUM
1041 /* string takes precedence */
1042 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
1044 /* number takes precedence */
1045 #define SWIG_Str2NumCast(x) x
1052 SWIGRUNTIME const char *
1053 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
1054 if (!type) return NULL;
1055 if (type->clientdata != NULL) {
1056 return (const char*) type->clientdata;
1063 SWIGRUNTIME swig_cast_info *
1064 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1065 SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0))
1066 || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty);
1070 /* Function for getting a pointer value */
1073 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
1075 void *voidptr = (void *)0;
1077 /* If magical, apply more magic */
1081 /* Check to see if this is an object */
1082 if (sv_isobject(sv)) {
1084 tsv = (SV*) SvRV(sv);
1085 if ((SvTYPE(tsv) == SVt_PVHV)) {
1087 if (SvMAGICAL(tsv)) {
1088 mg = mg_find(tsv,'P');
1091 if (sv_isobject(sv)) {
1092 tsv = (SV*)SvRV(sv);
1102 voidptr = INT2PTR(void *,tmp);
1103 } else if (! SvOK(sv)) { /* Check for undef */
1104 *(ptr) = (void *) 0;
1106 } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
1108 *(ptr) = (void *) 0;
1113 } else { /* Don't know what it is */
1117 /* Now see if the types match */
1118 char *_c = HvNAME(SvSTASH(SvRV(sv)));
1119 tc = SWIG_TypeProxyCheck(_c,_t);
1125 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
1126 assert(!newmemory); /* newmemory handling not yet implemented */
1133 * DISOWN implementation: we need a perl guru to check this one.
1135 if (tsv && (flags & SWIG_POINTER_DISOWN)) {
1137 * almost copy paste code from below SWIG_POINTER_OWN setting
1140 HV *stash = SvSTASH(SvRV(obj));
1141 GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE);
1145 * To set ownership (see below), a newSViv(1) entry is added.
1146 * Hence, to remove ownership, we delete the entry.
1148 if (hv_exists_ent(hv, obj, 0)) {
1149 hv_delete_ent(hv, obj, 0, 0);
1157 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
1158 if (ptr && (flags & SWIG_SHADOW)) {
1163 sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr);
1164 stash=SvSTASH(SvRV(obj));
1165 if (flags & SWIG_POINTER_OWN) {
1167 GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1169 gv_init(gv, stash, "OWNER", 5, FALSE);
1171 hv_store_ent(hv, obj, newSViv(1), 0);
1173 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
1175 self=newRV_noinc((SV *)hash);
1177 SvREFCNT_dec((SV *)self);
1178 sv_bless(sv, stash);
1181 sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr);
1185 SWIGRUNTIMEINLINE SV *
1186 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
1187 SV *result = sv_newmortal();
1188 SWIG_MakePtr(result, ptr, t, flags);
1193 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
1196 if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
1198 r = SWIG_PackData(r,ptr,sz);
1199 strcpy(r,SWIG_Perl_TypeProxyName(type));
1200 sv_setpv(sv, result);
1204 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
1205 SV *result = sv_newmortal();
1206 SWIG_Perl_MakePackedObj(result, ptr, sz, type);
1210 /* Convert a packed value value */
1212 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
1216 if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
1217 c = SvPV_nolen(obj);
1218 /* Pointer values must start with leading underscore */
1219 if (*c != '_') return SWIG_ERROR;
1221 c = SWIG_UnpackData(c,ptr,sz);
1223 tc = SWIG_TypeCheck(c,ty);
1224 if (!tc) return SWIG_ERROR;
1230 /* Macros for low-level exception handling */
1231 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1234 typedef XSPROTO(SwigPerlWrapper);
1235 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
1237 /* Structure for command table */
1240 SwigPerlWrapperPtr wrapper;
1241 } swig_command_info;
1243 /* Information for constant table */
1246 #define SWIG_FLOAT 2
1247 #define SWIG_STRING 3
1248 #define SWIG_POINTER 4
1249 #define SWIG_BINARY 5
1251 /* Constant information structure */
1252 typedef struct swig_constant_info {
1258 swig_type_info **ptype;
1259 } swig_constant_info;
1262 /* Structure for variable table */
1267 swig_type_info **type;
1268 } swig_variable_info;
1270 /* Magic variable code */
1272 #define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
1273 #ifndef MULTIPLICITY
1274 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
1276 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
1279 # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
1280 SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *))
1284 sv_magic(sv,sv,'U',(char *) name,strlen(name));
1285 mg = mg_find(sv,'U');
1286 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
1287 mg->mg_virtual->svt_get = (SwigMagicFunc) get;
1288 mg->mg_virtual->svt_set = (SwigMagicFunc) set;
1289 mg->mg_virtual->svt_len = 0;
1290 mg->mg_virtual->svt_clear = 0;
1291 mg->mg_virtual->svt_free = 0;
1295 SWIGRUNTIME swig_module_info *
1296 SWIG_Perl_GetModule(void) {
1297 static void *type_pointer = (void *)0;
1300 /* first check if pointer already created */
1301 if (!type_pointer) {
1302 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
1303 if (pointer && SvOK(pointer)) {
1304 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
1308 return (swig_module_info *) type_pointer;
1312 SWIG_Perl_SetModule(swig_module_info *module) {
1315 /* create a new pointer */
1316 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
1317 sv_setiv(pointer, PTR2IV(module));
1324 /* Workaround perl5 global namespace pollution. Note that undefining library
1325 * functions like fopen will not solve the problem on all platforms as fopen
1326 * might be a macro on Windows but not necessarily on other operating systems. */
1420 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1422 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1426 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
1429 /* -------- TYPES TABLE (BEGIN) -------- */
1431 #define SWIGTYPE_p_Device swig_types[0]
1432 #define SWIGTYPE_p_DevicePropertyBase swig_types[1]
1433 #define SWIGTYPE_p_GValue swig_types[2]
1434 #define SWIGTYPE_p_a_STRMAX__char swig_types[3]
1435 #define SWIGTYPE_p_char swig_types[4]
1436 #define SWIGTYPE_p_double swig_types[5]
1437 #define SWIGTYPE_p_dumpfile_t swig_types[6]
1438 #define SWIGTYPE_p_float swig_types[7]
1439 #define SWIGTYPE_p_guint swig_types[8]
1440 #define SWIGTYPE_p_guint64 swig_types[9]
1441 #define SWIGTYPE_p_int swig_types[10]
1442 #define SWIGTYPE_p_queue_fd_t swig_types[11]
1443 #define SWIGTYPE_p_unsigned_char swig_types[12]
1444 static swig_type_info *swig_types[14];
1445 static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
1446 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1447 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1449 /* -------- TYPES TABLE (END) -------- */
1451 #define SWIG_init boot_Amanda__Device
1453 #define SWIG_name "Amanda::Devicec::boot_Amanda__Device"
1454 #define SWIG_prefix "Amanda::Devicec::"
1456 #define SWIGVERSION 0x010335
1457 #define SWIG_VERSION SWIGVERSION
1460 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1461 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1468 #ifndef MULTIPLICITY
1469 SWIGEXPORT void SWIG_init (CV* cv);
1471 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1474 SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
1488 #include "property.h"
1489 #include "fileheader.h"
1493 /* Utility functions for typemaps, below */
1496 set_sv_from_gvalue(GValue *value)
1498 GType fundamental = G_TYPE_FUNDAMENTAL(G_VALUE_TYPE(value));
1501 /* complex reference types */
1502 switch (fundamental) {
1504 sv = sv_2mortal(amglue_newSVi64(g_value_get_long(value)));
1508 sv = sv_2mortal(amglue_newSVu64(g_value_get_ulong(value)));
1512 sv = sv_2mortal(amglue_newSVi64(g_value_get_int64(value)));
1516 sv = sv_2mortal(amglue_newSVu64(g_value_get_uint64(value)));
1519 case G_TYPE_BOXED: {
1520 GType boxed_type = G_VALUE_TYPE(value);
1524 if (boxed_type == QUALIFIED_SIZE_TYPE) {
1525 qs = *(QualifiedSize*)(g_value_get_boxed(value));
1528 hv = (HV *)sv_2mortal((SV *)newHV());
1529 hv_store(hv, "accuracy", 8, newSViv(qs.accuracy), 0);
1530 hv_store(hv, "bytes", 5, amglue_newSVi64(qs.bytes), 0);
1532 sv = newRV((SV *)hv);
1533 return newRV((SV *)hv);
1535 warn("Unsupported boxed property type #%d", (int)boxed_type);
1537 sv = sv_newmortal();
1538 sv_setsv(sv, &PL_sv_undef);
1544 /* simple types that can be constructed with sv_set*v */
1545 sv = sv_newmortal();
1546 switch (fundamental) {
1548 sv_setiv(sv, g_value_get_char(value));
1552 sv_setuv(sv, g_value_get_uchar(value));
1555 case G_TYPE_BOOLEAN:
1556 sv_setiv(sv, g_value_get_boolean(value));
1560 sv_setiv(sv, g_value_get_int(value));
1564 sv_setuv(sv, g_value_get_uint(value));
1568 sv_setnv(sv, g_value_get_float(value));
1572 sv_setnv(sv, g_value_get_double(value));
1576 sv_setpv(sv, g_value_get_string(value));
1580 sv_setiv(sv, g_value_get_enum(value));
1584 sv_setiv(sv, g_value_get_flags(value));
1589 case G_TYPE_POINTER:
1590 case G_TYPE_INTERFACE:
1593 warn("Unsupported fundamental property type #%d", (int)fundamental);
1594 sv_setsv(sv, &PL_sv_undef);
1602 set_gvalue_from_sv(SV *sv, GValue *value)
1604 GType fundamental = G_TYPE_FUNDAMENTAL(G_VALUE_TYPE(value));
1605 switch (fundamental) {
1607 if (!SvIOK(sv)) return FALSE;
1608 g_value_set_char(value, SvIV(sv));
1612 if (!SvIOK(sv)) return FALSE;
1613 g_value_set_uchar(value, SvUV(sv));
1616 case G_TYPE_BOOLEAN:
1617 if (!SvIOK(sv)) return FALSE;
1618 g_value_set_boolean(value, SvIV(sv));
1622 g_value_set_int(value, amglue_SvI32(sv));
1626 g_value_set_uint(value, amglue_SvU32(sv));
1630 g_value_set_int64(value, amglue_SvI64(sv));
1634 g_value_set_uint64(value, amglue_SvU64(sv));
1638 g_value_set_int64(value, amglue_SvI64(sv));
1642 g_value_set_uint64(value, amglue_SvU64(sv));
1646 if (!SvNOK(sv)) return FALSE;
1647 g_value_set_float(value, SvNV(sv));
1651 if (!SvNOK(sv)) return FALSE;
1652 g_value_set_double(value, SvNV(sv));
1656 if (!SvPOK(sv)) return FALSE;
1657 g_value_set_string(value, SvPV_nolen(sv));
1661 if (!SvIOK(sv)) return FALSE;
1662 g_value_set_enum(value, SvIV(sv));
1666 if (!SvIOK(sv)) return FALSE;
1667 g_value_set_flags(value, SvIV(sv));
1672 case G_TYPE_POINTER:
1673 case G_TYPE_INTERFACE:
1674 case G_TYPE_BOXED: /* note: *getting* boxed values is supported */
1685 SWIGINTERNINLINE SV *
1686 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1688 SV *obj = sv_newmortal();
1690 sv_setpvn(obj, carray, size);
1692 sv_setsv(obj, &PL_sv_undef);
1698 SWIGINTERNINLINE SV *
1699 SWIG_FromCharPtr(const char *cptr)
1701 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
1706 #if !defined(SWIG_NO_LLONG_MAX)
1707 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1708 # define LLONG_MAX __LONG_LONG_MAX__
1709 # define LLONG_MIN (-LLONG_MAX - 1LL)
1710 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1716 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1719 if (val) *val = SvNV(obj);
1721 } else if (SvIOK(obj)) {
1722 if (val) *val = (double) SvIV(obj);
1723 return SWIG_AddCast(SWIG_OK);
1725 const char *nptr = SvPV_nolen(obj);
1728 double v = strtod(nptr, &endptr);
1729 if (errno == ERANGE) {
1731 return SWIG_OverflowError;
1733 if (*endptr == '\0') {
1735 return SWIG_Str2NumCast(SWIG_OK);
1740 return SWIG_TypeError;
1750 SWIGINTERNINLINE int
1751 SWIG_CanCastAsInteger(double *d, double min, double max) {
1753 if ((min <= x && x <= max)) {
1754 double fx = floor(x);
1755 double cx = ceil(x);
1756 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
1757 if ((errno == EDOM) || (errno == ERANGE)) {
1760 double summ, reps, diff;
1763 } else if (rd > x) {
1770 if (reps < 8*DBL_EPSILON) {
1781 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1784 if (val) *val = SvIV(obj);
1788 const char *nptr = SvPV_nolen(obj);
1793 v = strtol(nptr, &endptr,0);
1794 if (errno == ERANGE) {
1796 return SWIG_OverflowError;
1798 if (*endptr == '\0') {
1800 return SWIG_Str2NumCast(SWIG_OK);
1806 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1807 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
1808 if (val) *val = (long)(d);
1813 return SWIG_TypeError;
1818 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1821 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1822 if (SWIG_IsOK(res)) {
1823 if ((v < INT_MIN || v > INT_MAX)) {
1824 return SWIG_OverflowError;
1826 if (val) *val = (int)(v);
1832 SWIGINTERN queue_fd_t *new_queue_fd_t(int fd){
1833 return queue_fd_new(fd, NULL);
1835 SWIGINTERN void delete_queue_fd_t(queue_fd_t *self){
1836 amfree(self->errmsg);
1840 SWIGINTERN swig_type_info*
1841 SWIG_pchar_descriptor(void)
1843 static int init = 0;
1844 static swig_type_info* info = 0;
1846 info = SWIG_TypeQuery("_p_char");
1854 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1858 char *cstr = SvPV(obj, len);
1859 size_t size = len + 1;
1862 if (*alloc == SWIG_NEWOBJ) {
1863 *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1866 *alloc = SWIG_OLDOBJ;
1870 if (psize) *psize = size;
1873 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1874 if (pchar_descriptor) {
1876 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
1877 if (cptr) *cptr = vptr;
1878 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1879 if (alloc) *alloc = SWIG_OLDOBJ;
1884 return SWIG_TypeError;
1890 SWIGINTERN Device *new_Device(char *device_name){
1891 return device_open(device_name);
1893 SWIGINTERN void delete_Device(Device *self){
1894 g_object_unref(self);
1896 SWIGINTERN gboolean Device_configure(Device *self,gboolean use_global_config){
1897 return device_configure(self, use_global_config);
1899 SWIGINTERN char *Device_error(Device *self){
1900 return device_error(self);
1902 SWIGINTERN char *Device_status_error(Device *self){
1903 return device_status_error(self);
1905 SWIGINTERN char *Device_error_or_status(Device *self){
1906 return device_error_or_status(self);
1908 SWIGINTERN DeviceStatusFlags Device_read_label(Device *self){
1909 return device_read_label(self);
1911 SWIGINTERN gboolean Device_start(Device *self,DeviceAccessMode mode,char *label,char *timestamp){
1912 return device_start(self, mode, label, timestamp);
1914 SWIGINTERN gboolean Device_finish(Device *self){
1915 return device_finish(self);
1917 SWIGINTERN gboolean Device_start_file(Device *self,dumpfile_t *jobInfo){
1918 return device_start_file(self, jobInfo);
1920 SWIGINTERN gboolean Device_write_block(Device *self,guint size,gpointer data){
1921 return device_write_block(self, size, data);
1923 SWIGINTERN gboolean Device_write_from_fd(Device *self,queue_fd_t *queue_fd){
1924 return device_write_from_fd(self, queue_fd);
1926 SWIGINTERN gboolean Device_finish_file(Device *self){
1927 return device_finish_file(self);
1929 SWIGINTERN dumpfile_t *Device_seek_file(Device *self,guint file){
1930 return device_seek_file(self, file);
1932 SWIGINTERN gboolean Device_seek_block(Device *self,guint64 block){
1933 return device_seek_block(self, block);
1935 SWIGINTERN int Device_read_block(Device *self,gpointer buffer,int *size){
1936 return device_read_block(self, buffer, size);
1938 SWIGINTERN gboolean Device_read_to_fd(Device *self,queue_fd_t *queue_fd){
1939 return device_read_to_fd(self, queue_fd);
1941 SWIGINTERN GSList const *Device_property_list(Device *self){
1942 return device_property_get_list(self);
1944 SWIGINTERN void Device_property_get(Device *self,DevicePropertyBase *pbase,GValue *out_val,PropertySurety *surety,PropertySource *source,gboolean *val_found){
1945 *val_found = device_property_get_ex(self, pbase->ID, out_val, surety, source);
1947 SWIGINTERN gboolean Device_property_set(Device *self,DevicePropertyBase *pbase,SV *sv){
1949 memset(&gval, 0, sizeof(gval));
1950 g_value_init(&gval, pbase->type);
1951 if (!set_gvalue_from_sv(sv, &gval))
1954 if (!device_property_set(self, pbase->ID, &gval))
1957 g_value_unset(&gval);
1960 g_value_unset(&gval);
1963 SWIGINTERN gboolean Device_property_set_ex(Device *self,DevicePropertyBase *pbase,SV *sv,PropertySurety surety,PropertySource source){
1965 memset(&gval, 0, sizeof(gval));
1966 g_value_init(&gval, pbase->type);
1967 if (!set_gvalue_from_sv(sv, &gval))
1970 if (!device_property_set_ex(self, pbase->ID, &gval, surety, source))
1973 g_value_unset(&gval);
1976 g_value_unset(&gval);
1979 SWIGINTERN gboolean Device_recycle_file(Device *self,guint filenum){
1980 return device_recycle_file(self, filenum);
1982 SWIGINTERN int Device_file(Device *self){ return self->file; }
1983 SWIGINTERN guint64 Device_block(Device *self){ return self->block; }
1984 SWIGINTERN gboolean Device_in_file(Device *self){ return self->in_file; }
1985 SWIGINTERN char *Device_device_name(Device *self){ return self->device_name; }
1986 SWIGINTERN DeviceAccessMode Device_access_mode(Device *self){ return self->access_mode; }
1987 SWIGINTERN gboolean Device_is_eof(Device *self){ return self->is_eof; }
1988 SWIGINTERN char *Device_volume_label(Device *self){ return self->volume_label; }
1989 SWIGINTERN char *Device_volume_time(Device *self){ return self->volume_time; }
1990 SWIGINTERN DeviceStatusFlags Device_status(Device *self){ return self->status; }
1991 SWIGINTERN gsize Device_min_block_size(Device *self){ return self->min_block_size; }
1992 SWIGINTERN gsize Device_max_block_size(Device *self){ return self->max_block_size; }
1993 SWIGINTERN gsize Device_block_size(Device *self){ return self->block_size; }
1994 SWIGINTERN dumpfile_t *Device_volume_header(Device *self){ return self->volume_header; }
1996 SWIGINTERNINLINE SV *
1997 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1999 SV *obj = sv_newmortal();
2000 sv_setiv(obj, (IV) value);
2005 SWIGINTERNINLINE SV *
2006 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
2008 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
2016 #define MAGIC_CLASS _wrap_Amanda::Device_var::
2017 class _wrap_Amanda::Device_var : public CPerlObj {
2022 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2024 croak("Value is read-only.");
2040 XS(_wrap_queue_fd_t_fd_get) {
2042 queue_fd_t *arg1 = (queue_fd_t *) 0 ;
2049 if ((items < 1) || (items > 1)) {
2050 SWIG_croak("Usage: queue_fd_t_fd_get(self);");
2052 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queue_fd_t, 0 | 0 );
2053 if (!SWIG_IsOK(res1)) {
2054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queue_fd_t_fd_get" "', argument " "1"" of type '" "queue_fd_t *""'");
2056 arg1 = (queue_fd_t *)(argp1);
2057 result = (int) ((arg1)->fd);
2059 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2071 XS(_wrap_queue_fd_t_errmsg_get) {
2073 queue_fd_t *arg1 = (queue_fd_t *) 0 ;
2080 if ((items < 1) || (items > 1)) {
2081 SWIG_croak("Usage: queue_fd_t_errmsg_get(self);");
2083 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queue_fd_t, 0 | 0 );
2084 if (!SWIG_IsOK(res1)) {
2085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queue_fd_t_errmsg_get" "', argument " "1"" of type '" "queue_fd_t *""'");
2087 arg1 = (queue_fd_t *)(argp1);
2088 result = (char *) ((arg1)->errmsg);
2089 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2099 XS(_wrap_new_queue_fd_t) {
2102 queue_fd_t *result = 0 ;
2106 if ((items < 1) || (items > 1)) {
2107 SWIG_croak("Usage: new_queue_fd_t(fd);");
2110 if (sizeof(signed int) == 1) {
2111 arg1 = amglue_SvI8(ST(0));
2112 } else if (sizeof(signed int) == 2) {
2113 arg1 = amglue_SvI16(ST(0));
2114 } else if (sizeof(signed int) == 4) {
2115 arg1 = amglue_SvI32(ST(0));
2116 } else if (sizeof(signed int) == 8) {
2117 arg1 = amglue_SvI64(ST(0));
2119 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
2122 result = (queue_fd_t *)new_queue_fd_t(arg1);
2123 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_queue_fd_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
2133 XS(_wrap_delete_queue_fd_t) {
2135 queue_fd_t *arg1 = (queue_fd_t *) 0 ;
2141 if ((items < 1) || (items > 1)) {
2142 SWIG_croak("Usage: delete_queue_fd_t(self);");
2144 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queue_fd_t, SWIG_POINTER_DISOWN | 0 );
2145 if (!SWIG_IsOK(res1)) {
2146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_queue_fd_t" "', argument " "1"" of type '" "queue_fd_t *""'");
2148 arg1 = (queue_fd_t *)(argp1);
2149 delete_queue_fd_t(arg1);
2161 XS(_wrap_new_Device) {
2163 char *arg1 = (char *) 0 ;
2164 Device *result = 0 ;
2171 if ((items < 1) || (items > 1)) {
2172 SWIG_croak("Usage: new_Device(device_name);");
2174 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2175 if (!SWIG_IsOK(res1)) {
2176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Device" "', argument " "1"" of type '" "char *""'");
2178 arg1 = (char *)(buf1);
2179 result = (Device *)new_Device(arg1);
2180 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Device, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
2181 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
2184 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
2190 XS(_wrap_delete_Device) {
2192 Device *arg1 = (Device *) 0 ;
2198 if ((items < 1) || (items > 1)) {
2199 SWIG_croak("Usage: delete_Device(self);");
2201 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, SWIG_POINTER_DISOWN | 0 );
2202 if (!SWIG_IsOK(res1)) {
2203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Device" "', argument " "1"" of type '" "Device *""'");
2205 arg1 = (Device *)(argp1);
2206 delete_Device(arg1);
2218 XS(_wrap_Device_configure) {
2220 Device *arg1 = (Device *) 0 ;
2228 if ((items < 2) || (items > 2)) {
2229 SWIG_croak("Usage: Device_configure(self,use_global_config);");
2231 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2232 if (!SWIG_IsOK(res1)) {
2233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_configure" "', argument " "1"" of type '" "Device *""'");
2235 arg1 = (Device *)(argp1);
2237 if (sizeof(signed int) == 1) {
2238 arg2 = amglue_SvI8(ST(1));
2239 } else if (sizeof(signed int) == 2) {
2240 arg2 = amglue_SvI16(ST(1));
2241 } else if (sizeof(signed int) == 4) {
2242 arg2 = amglue_SvI32(ST(1));
2243 } else if (sizeof(signed int) == 8) {
2244 arg2 = amglue_SvI64(ST(1));
2246 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
2249 result = (gboolean)Device_configure(arg1,arg2);
2251 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2265 XS(_wrap_Device_error) {
2267 Device *arg1 = (Device *) 0 ;
2274 if ((items < 1) || (items > 1)) {
2275 SWIG_croak("Usage: Device_error(self);");
2277 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2278 if (!SWIG_IsOK(res1)) {
2279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_error" "', argument " "1"" of type '" "Device *""'");
2281 arg1 = (Device *)(argp1);
2282 result = (char *)Device_error(arg1);
2283 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2293 XS(_wrap_Device_status_error) {
2295 Device *arg1 = (Device *) 0 ;
2302 if ((items < 1) || (items > 1)) {
2303 SWIG_croak("Usage: Device_status_error(self);");
2305 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2306 if (!SWIG_IsOK(res1)) {
2307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_status_error" "', argument " "1"" of type '" "Device *""'");
2309 arg1 = (Device *)(argp1);
2310 result = (char *)Device_status_error(arg1);
2311 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2321 XS(_wrap_Device_error_or_status) {
2323 Device *arg1 = (Device *) 0 ;
2330 if ((items < 1) || (items > 1)) {
2331 SWIG_croak("Usage: Device_error_or_status(self);");
2333 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2334 if (!SWIG_IsOK(res1)) {
2335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_error_or_status" "', argument " "1"" of type '" "Device *""'");
2337 arg1 = (Device *)(argp1);
2338 result = (char *)Device_error_or_status(arg1);
2339 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2349 XS(_wrap_Device_read_label) {
2351 Device *arg1 = (Device *) 0 ;
2352 DeviceStatusFlags result;
2358 if ((items < 1) || (items > 1)) {
2359 SWIG_croak("Usage: Device_read_label(self);");
2361 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2362 if (!SWIG_IsOK(res1)) {
2363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_read_label" "', argument " "1"" of type '" "Device *""'");
2365 arg1 = (Device *)(argp1);
2366 result = (DeviceStatusFlags)Device_read_label(arg1);
2368 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2380 XS(_wrap_Device_start) {
2382 Device *arg1 = (Device *) 0 ;
2383 DeviceAccessMode arg2 ;
2384 char *arg3 = (char *) 0 ;
2385 char *arg4 = (char *) 0 ;
2398 if ((items < 4) || (items > 4)) {
2399 SWIG_croak("Usage: Device_start(self,mode,label,timestamp);");
2401 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2402 if (!SWIG_IsOK(res1)) {
2403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_start" "', argument " "1"" of type '" "Device *""'");
2405 arg1 = (Device *)(argp1);
2407 if (sizeof(signed int) == 1) {
2408 arg2 = amglue_SvI8(ST(1));
2409 } else if (sizeof(signed int) == 2) {
2410 arg2 = amglue_SvI16(ST(1));
2411 } else if (sizeof(signed int) == 4) {
2412 arg2 = amglue_SvI32(ST(1));
2413 } else if (sizeof(signed int) == 8) {
2414 arg2 = amglue_SvI64(ST(1));
2416 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
2419 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
2420 if (!SWIG_IsOK(res3)) {
2421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Device_start" "', argument " "3"" of type '" "char *""'");
2423 arg3 = (char *)(buf3);
2424 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2425 if (!SWIG_IsOK(res4)) {
2426 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Device_start" "', argument " "4"" of type '" "char *""'");
2428 arg4 = (char *)(buf4);
2429 result = (gboolean)Device_start(arg1,arg2,arg3,arg4);
2431 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2436 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
2437 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
2442 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
2443 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
2449 XS(_wrap_Device_finish) {
2451 Device *arg1 = (Device *) 0 ;
2458 if ((items < 1) || (items > 1)) {
2459 SWIG_croak("Usage: Device_finish(self);");
2461 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2462 if (!SWIG_IsOK(res1)) {
2463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_finish" "', argument " "1"" of type '" "Device *""'");
2465 arg1 = (Device *)(argp1);
2466 result = (gboolean)Device_finish(arg1);
2468 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2480 XS(_wrap_Device_start_file) {
2482 Device *arg1 = (Device *) 0 ;
2483 dumpfile_t *arg2 = (dumpfile_t *) 0 ;
2492 if ((items < 2) || (items > 2)) {
2493 SWIG_croak("Usage: Device_start_file(self,jobInfo);");
2495 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2496 if (!SWIG_IsOK(res1)) {
2497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_start_file" "', argument " "1"" of type '" "Device *""'");
2499 arg1 = (Device *)(argp1);
2500 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dumpfile_t, 0 | 0 );
2501 if (!SWIG_IsOK(res2)) {
2502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Device_start_file" "', argument " "2"" of type '" "dumpfile_t *""'");
2504 arg2 = (dumpfile_t *)(argp2);
2505 result = (gboolean)Device_start_file(arg1,arg2);
2507 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2521 XS(_wrap_Device_write_block) {
2523 Device *arg1 = (Device *) 0 ;
2525 gpointer arg3 = (gpointer) 0 ;
2533 if ((items < 3) || (items > 3)) {
2534 SWIG_croak("Usage: Device_write_block(self,size,data);");
2536 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2537 if (!SWIG_IsOK(res1)) {
2538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_write_block" "', argument " "1"" of type '" "Device *""'");
2540 arg1 = (Device *)(argp1);
2542 if (sizeof(guint) == 1) {
2543 arg2 = amglue_SvU8(ST(1));
2544 } else if (sizeof(guint) == 2) {
2545 arg2 = amglue_SvU16(ST(1));
2546 } else if (sizeof(guint) == 4) {
2547 arg2 = amglue_SvU32(ST(1));
2548 } else if (sizeof(guint) == 8) {
2549 arg2 = amglue_SvU64(ST(1));
2551 croak("Unexpected guint >64 bits?"); /* should be optimized out unless sizeof(guint) > 8 */
2554 res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0);
2555 if (!SWIG_IsOK(res3)) {
2556 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Device_write_block" "', argument " "3"" of type '" "gpointer""'");
2558 result = (gboolean)Device_write_block(arg1,arg2,arg3);
2560 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2574 XS(_wrap_Device_write_from_fd) {
2576 Device *arg1 = (Device *) 0 ;
2577 queue_fd_t *arg2 = (queue_fd_t *) 0 ;
2586 if ((items < 2) || (items > 2)) {
2587 SWIG_croak("Usage: Device_write_from_fd(self,queue_fd);");
2589 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2590 if (!SWIG_IsOK(res1)) {
2591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_write_from_fd" "', argument " "1"" of type '" "Device *""'");
2593 arg1 = (Device *)(argp1);
2594 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_queue_fd_t, 0 | 0 );
2595 if (!SWIG_IsOK(res2)) {
2596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Device_write_from_fd" "', argument " "2"" of type '" "queue_fd_t *""'");
2598 arg2 = (queue_fd_t *)(argp2);
2599 result = (gboolean)Device_write_from_fd(arg1,arg2);
2601 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2615 XS(_wrap_Device_finish_file) {
2617 Device *arg1 = (Device *) 0 ;
2624 if ((items < 1) || (items > 1)) {
2625 SWIG_croak("Usage: Device_finish_file(self);");
2627 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2628 if (!SWIG_IsOK(res1)) {
2629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_finish_file" "', argument " "1"" of type '" "Device *""'");
2631 arg1 = (Device *)(argp1);
2632 result = (gboolean)Device_finish_file(arg1);
2634 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2646 XS(_wrap_Device_seek_file) {
2648 Device *arg1 = (Device *) 0 ;
2650 dumpfile_t *result = 0 ;
2656 if ((items < 2) || (items > 2)) {
2657 SWIG_croak("Usage: Device_seek_file(self,file);");
2659 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2660 if (!SWIG_IsOK(res1)) {
2661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_seek_file" "', argument " "1"" of type '" "Device *""'");
2663 arg1 = (Device *)(argp1);
2665 if (sizeof(guint) == 1) {
2666 arg2 = amglue_SvU8(ST(1));
2667 } else if (sizeof(guint) == 2) {
2668 arg2 = amglue_SvU16(ST(1));
2669 } else if (sizeof(guint) == 4) {
2670 arg2 = amglue_SvU32(ST(1));
2671 } else if (sizeof(guint) == 8) {
2672 arg2 = amglue_SvU64(ST(1));
2674 croak("Unexpected guint >64 bits?"); /* should be optimized out unless sizeof(guint) > 8 */
2677 result = (dumpfile_t *)Device_seek_file(arg1,arg2);
2678 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dumpfile_t, 0 | SWIG_SHADOW); argvi++ ;
2688 XS(_wrap_Device_seek_block) {
2690 Device *arg1 = (Device *) 0 ;
2698 if ((items < 2) || (items > 2)) {
2699 SWIG_croak("Usage: Device_seek_block(self,block);");
2701 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2702 if (!SWIG_IsOK(res1)) {
2703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_seek_block" "', argument " "1"" of type '" "Device *""'");
2705 arg1 = (Device *)(argp1);
2707 arg2 = amglue_SvU64(ST(1));
2709 result = (gboolean)Device_seek_block(arg1,arg2);
2711 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2723 XS(_wrap_Device_read_block) {
2725 Device *arg1 = (Device *) 0 ;
2726 gpointer arg2 = (gpointer) 0 ;
2727 int *arg3 = (int *) 0 ;
2737 if ((items < 3) || (items > 3)) {
2738 SWIG_croak("Usage: Device_read_block(self,buffer,size);");
2740 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2741 if (!SWIG_IsOK(res1)) {
2742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_read_block" "', argument " "1"" of type '" "Device *""'");
2744 arg1 = (Device *)(argp1);
2745 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0);
2746 if (!SWIG_IsOK(res2)) {
2747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Device_read_block" "', argument " "2"" of type '" "gpointer""'");
2749 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
2750 if (!SWIG_IsOK(res3)) {
2751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Device_read_block" "', argument " "3"" of type '" "int *""'");
2753 arg3 = (int *)(argp3);
2754 result = (int)Device_read_block(arg1,arg2,arg3);
2756 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2772 XS(_wrap_Device_read_to_fd) {
2774 Device *arg1 = (Device *) 0 ;
2775 queue_fd_t *arg2 = (queue_fd_t *) 0 ;
2784 if ((items < 2) || (items > 2)) {
2785 SWIG_croak("Usage: Device_read_to_fd(self,queue_fd);");
2787 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2788 if (!SWIG_IsOK(res1)) {
2789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_read_to_fd" "', argument " "1"" of type '" "Device *""'");
2791 arg1 = (Device *)(argp1);
2792 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_queue_fd_t, 0 | 0 );
2793 if (!SWIG_IsOK(res2)) {
2794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Device_read_to_fd" "', argument " "2"" of type '" "queue_fd_t *""'");
2796 arg2 = (queue_fd_t *)(argp2);
2797 result = (gboolean)Device_read_to_fd(arg1,arg2);
2799 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2813 XS(_wrap_Device_property_list) {
2815 Device *arg1 = (Device *) 0 ;
2816 GSList *result = 0 ;
2822 if ((items < 1) || (items > 1)) {
2823 SWIG_croak("Usage: Device_property_list(self);");
2825 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2826 if (!SWIG_IsOK(res1)) {
2827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_property_list" "', argument " "1"" of type '" "Device *""'");
2829 arg1 = (Device *)(argp1);
2830 result = (GSList *)Device_property_list(arg1);
2834 /* Count the DeviceProperties */
2835 EXTEND(SP, g_slist_length(result)); /* make room for return values */
2837 /* Note that we set ST(argvi) several times. the nature of
2838 * SWIG's wrapping is such that incrementing argvi points
2839 * ST(argvi) to the next location in perl's argument stack.
2842 for (iter = result; iter; iter = g_slist_next(iter)) {
2843 DeviceProperty *prop = iter->data;
2845 SV *rv = newRV_noinc((SV *)hash);
2847 hv_store(hash, "name", 4,
2848 newSVpv(prop->base->name, 0), 0);
2849 hv_store(hash, "description", 11,
2850 newSVpv(prop->base->description, 0), 0);
2851 hv_store(hash, "access", 6,
2852 newSViv(prop->access), 0);
2853 ST(argvi) = sv_2mortal(rv);
2866 XS(_wrap_Device_property_get) {
2868 Device *arg1 = (Device *) 0 ;
2869 DevicePropertyBase *arg2 = (DevicePropertyBase *) 0 ;
2870 GValue *arg3 = (GValue *) 0 ;
2871 PropertySurety *arg4 = (PropertySurety *) 0 ;
2872 PropertySource *arg5 = (PropertySource *) 0 ;
2873 gboolean *arg6 = (gboolean *) 0 ;
2877 PropertySurety surety3 ;
2878 PropertySource source3 ;
2884 memset(&val3, 0, sizeof(val3));
2886 if (GIMME_V == G_ARRAY) {
2892 if ((items < 2) || (items > 2)) {
2893 SWIG_croak("Usage: Device_property_get(self,pbase,surety,source,val_found);");
2895 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2896 if (!SWIG_IsOK(res1)) {
2897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_property_get" "', argument " "1"" of type '" "Device *""'");
2899 arg1 = (Device *)(argp1);
2904 pname = SvPV_nolen(ST(1));
2906 if (pname) arg2 = (DevicePropertyBase *)device_property_get_by_name(pname);
2907 if (!pname || !arg2) {
2908 SWIG_exception_fail(SWIG_ValueError, "Invalid property name");
2911 Device_property_get(arg1,arg2,arg3,arg4,arg5,arg6);
2914 /* if the result is valid */
2916 /* move data from arg3 to ST(argvi), somehow */
2917 ST(argvi) = set_sv_from_gvalue(arg3);
2920 /* free any memory for the GValue */
2921 g_value_unset(arg3);
2923 if (GIMME_V == G_ARRAY) {
2924 ST(argvi) = newSViv(*arg4);
2926 ST(argvi) = newSViv(*arg5);
2930 /* otherwise, return nothing */
2943 XS(_wrap_Device_property_set) {
2945 Device *arg1 = (Device *) 0 ;
2946 DevicePropertyBase *arg2 = (DevicePropertyBase *) 0 ;
2947 SV *arg3 = (SV *) 0 ;
2954 if ((items < 3) || (items > 3)) {
2955 SWIG_croak("Usage: Device_property_set(self,pbase,sv);");
2957 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
2958 if (!SWIG_IsOK(res1)) {
2959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_property_set" "', argument " "1"" of type '" "Device *""'");
2961 arg1 = (Device *)(argp1);
2966 pname = SvPV_nolen(ST(1));
2968 if (pname) arg2 = (DevicePropertyBase *)device_property_get_by_name(pname);
2969 if (!pname || !arg2) {
2970 SWIG_exception_fail(SWIG_ValueError, "Invalid property name");
2974 result = (gboolean)Device_property_set(arg1,arg2,arg3);
2976 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2992 XS(_wrap_Device_property_set_ex) {
2994 Device *arg1 = (Device *) 0 ;
2995 DevicePropertyBase *arg2 = (DevicePropertyBase *) 0 ;
2996 SV *arg3 = (SV *) 0 ;
2997 PropertySurety arg4 ;
2998 PropertySource arg5 ;
3005 if ((items < 5) || (items > 5)) {
3006 SWIG_croak("Usage: Device_property_set_ex(self,pbase,sv,surety,source);");
3008 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3009 if (!SWIG_IsOK(res1)) {
3010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_property_set_ex" "', argument " "1"" of type '" "Device *""'");
3012 arg1 = (Device *)(argp1);
3017 pname = SvPV_nolen(ST(1));
3019 if (pname) arg2 = (DevicePropertyBase *)device_property_get_by_name(pname);
3020 if (!pname || !arg2) {
3021 SWIG_exception_fail(SWIG_ValueError, "Invalid property name");
3026 if (sizeof(signed int) == 1) {
3027 arg4 = amglue_SvI8(ST(3));
3028 } else if (sizeof(signed int) == 2) {
3029 arg4 = amglue_SvI16(ST(3));
3030 } else if (sizeof(signed int) == 4) {
3031 arg4 = amglue_SvI32(ST(3));
3032 } else if (sizeof(signed int) == 8) {
3033 arg4 = amglue_SvI64(ST(3));
3035 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3039 if (sizeof(signed int) == 1) {
3040 arg5 = amglue_SvI8(ST(4));
3041 } else if (sizeof(signed int) == 2) {
3042 arg5 = amglue_SvI16(ST(4));
3043 } else if (sizeof(signed int) == 4) {
3044 arg5 = amglue_SvI32(ST(4));
3045 } else if (sizeof(signed int) == 8) {
3046 arg5 = amglue_SvI64(ST(4));
3048 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3051 result = (gboolean)Device_property_set_ex(arg1,arg2,arg3,arg4,arg5);
3053 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3073 XS(_wrap_Device_recycle_file) {
3075 Device *arg1 = (Device *) 0 ;
3083 if ((items < 2) || (items > 2)) {
3084 SWIG_croak("Usage: Device_recycle_file(self,filenum);");
3086 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3087 if (!SWIG_IsOK(res1)) {
3088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_recycle_file" "', argument " "1"" of type '" "Device *""'");
3090 arg1 = (Device *)(argp1);
3092 if (sizeof(guint) == 1) {
3093 arg2 = amglue_SvU8(ST(1));
3094 } else if (sizeof(guint) == 2) {
3095 arg2 = amglue_SvU16(ST(1));
3096 } else if (sizeof(guint) == 4) {
3097 arg2 = amglue_SvU32(ST(1));
3098 } else if (sizeof(guint) == 8) {
3099 arg2 = amglue_SvU64(ST(1));
3101 croak("Unexpected guint >64 bits?"); /* should be optimized out unless sizeof(guint) > 8 */
3104 result = (gboolean)Device_recycle_file(arg1,arg2);
3106 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3118 XS(_wrap_Device_file) {
3120 Device *arg1 = (Device *) 0 ;
3127 if ((items < 1) || (items > 1)) {
3128 SWIG_croak("Usage: Device_file(self);");
3130 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3131 if (!SWIG_IsOK(res1)) {
3132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_file" "', argument " "1"" of type '" "Device *""'");
3134 arg1 = (Device *)(argp1);
3135 result = (int)Device_file(arg1);
3137 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3149 XS(_wrap_Device_block) {
3151 Device *arg1 = (Device *) 0 ;
3158 if ((items < 1) || (items > 1)) {
3159 SWIG_croak("Usage: Device_block(self);");
3161 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3162 if (!SWIG_IsOK(res1)) {
3163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_block" "', argument " "1"" of type '" "Device *""'");
3165 arg1 = (Device *)(argp1);
3166 result = Device_block(arg1);
3168 ST(argvi) = sv_2mortal(amglue_newSVu64(result));
3180 XS(_wrap_Device_in_file) {
3182 Device *arg1 = (Device *) 0 ;
3189 if ((items < 1) || (items > 1)) {
3190 SWIG_croak("Usage: Device_in_file(self);");
3192 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3193 if (!SWIG_IsOK(res1)) {
3194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_in_file" "', argument " "1"" of type '" "Device *""'");
3196 arg1 = (Device *)(argp1);
3197 result = (gboolean)Device_in_file(arg1);
3199 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3211 XS(_wrap_Device_device_name) {
3213 Device *arg1 = (Device *) 0 ;
3220 if ((items < 1) || (items > 1)) {
3221 SWIG_croak("Usage: Device_device_name(self);");
3223 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3224 if (!SWIG_IsOK(res1)) {
3225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_device_name" "', argument " "1"" of type '" "Device *""'");
3227 arg1 = (Device *)(argp1);
3228 result = (char *)Device_device_name(arg1);
3229 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3239 XS(_wrap_Device_access_mode) {
3241 Device *arg1 = (Device *) 0 ;
3242 DeviceAccessMode result;
3248 if ((items < 1) || (items > 1)) {
3249 SWIG_croak("Usage: Device_access_mode(self);");
3251 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3252 if (!SWIG_IsOK(res1)) {
3253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_access_mode" "', argument " "1"" of type '" "Device *""'");
3255 arg1 = (Device *)(argp1);
3256 result = (DeviceAccessMode)Device_access_mode(arg1);
3258 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3270 XS(_wrap_Device_is_eof) {
3272 Device *arg1 = (Device *) 0 ;
3279 if ((items < 1) || (items > 1)) {
3280 SWIG_croak("Usage: Device_is_eof(self);");
3282 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3283 if (!SWIG_IsOK(res1)) {
3284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_is_eof" "', argument " "1"" of type '" "Device *""'");
3286 arg1 = (Device *)(argp1);
3287 result = (gboolean)Device_is_eof(arg1);
3289 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3301 XS(_wrap_Device_volume_label) {
3303 Device *arg1 = (Device *) 0 ;
3310 if ((items < 1) || (items > 1)) {
3311 SWIG_croak("Usage: Device_volume_label(self);");
3313 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3314 if (!SWIG_IsOK(res1)) {
3315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_volume_label" "', argument " "1"" of type '" "Device *""'");
3317 arg1 = (Device *)(argp1);
3318 result = (char *)Device_volume_label(arg1);
3319 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3329 XS(_wrap_Device_volume_time) {
3331 Device *arg1 = (Device *) 0 ;
3338 if ((items < 1) || (items > 1)) {
3339 SWIG_croak("Usage: Device_volume_time(self);");
3341 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3342 if (!SWIG_IsOK(res1)) {
3343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_volume_time" "', argument " "1"" of type '" "Device *""'");
3345 arg1 = (Device *)(argp1);
3346 result = (char *)Device_volume_time(arg1);
3347 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3357 XS(_wrap_Device_status) {
3359 Device *arg1 = (Device *) 0 ;
3360 DeviceStatusFlags result;
3366 if ((items < 1) || (items > 1)) {
3367 SWIG_croak("Usage: Device_status(self);");
3369 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3370 if (!SWIG_IsOK(res1)) {
3371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_status" "', argument " "1"" of type '" "Device *""'");
3373 arg1 = (Device *)(argp1);
3374 result = (DeviceStatusFlags)Device_status(arg1);
3376 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3388 XS(_wrap_Device_min_block_size) {
3390 Device *arg1 = (Device *) 0 ;
3397 if ((items < 1) || (items > 1)) {
3398 SWIG_croak("Usage: Device_min_block_size(self);");
3400 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3401 if (!SWIG_IsOK(res1)) {
3402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_min_block_size" "', argument " "1"" of type '" "Device *""'");
3404 arg1 = (Device *)(argp1);
3405 result = Device_min_block_size(arg1);
3407 ST(argvi) = sv_2mortal(amglue_newSVu64(result));
3419 XS(_wrap_Device_max_block_size) {
3421 Device *arg1 = (Device *) 0 ;
3428 if ((items < 1) || (items > 1)) {
3429 SWIG_croak("Usage: Device_max_block_size(self);");
3431 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3432 if (!SWIG_IsOK(res1)) {
3433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_max_block_size" "', argument " "1"" of type '" "Device *""'");
3435 arg1 = (Device *)(argp1);
3436 result = Device_max_block_size(arg1);
3438 ST(argvi) = sv_2mortal(amglue_newSVu64(result));
3450 XS(_wrap_Device_block_size) {
3452 Device *arg1 = (Device *) 0 ;
3459 if ((items < 1) || (items > 1)) {
3460 SWIG_croak("Usage: Device_block_size(self);");
3462 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3463 if (!SWIG_IsOK(res1)) {
3464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_block_size" "', argument " "1"" of type '" "Device *""'");
3466 arg1 = (Device *)(argp1);
3467 result = Device_block_size(arg1);
3469 ST(argvi) = sv_2mortal(amglue_newSVu64(result));
3481 XS(_wrap_Device_volume_header) {
3483 Device *arg1 = (Device *) 0 ;
3484 dumpfile_t *result = 0 ;
3490 if ((items < 1) || (items > 1)) {
3491 SWIG_croak("Usage: Device_volume_header(self);");
3493 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_volume_header" "', argument " "1"" of type '" "Device *""'");
3497 arg1 = (Device *)(argp1);
3498 result = (dumpfile_t *)Device_volume_header(arg1);
3499 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dumpfile_t, 0 | SWIG_SHADOW); argvi++ ;
3509 XS(_wrap_IS_WRITABLE_ACCESS_MODE) {
3511 DeviceAccessMode arg1 ;
3516 if ((items < 1) || (items > 1)) {
3517 SWIG_croak("Usage: IS_WRITABLE_ACCESS_MODE(mode);");
3520 if (sizeof(signed int) == 1) {
3521 arg1 = amglue_SvI8(ST(0));
3522 } else if (sizeof(signed int) == 2) {
3523 arg1 = amglue_SvI16(ST(0));
3524 } else if (sizeof(signed int) == 4) {
3525 arg1 = amglue_SvI32(ST(0));
3526 } else if (sizeof(signed int) == 8) {
3527 arg1 = amglue_SvI64(ST(0));
3529 g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3532 result = (gboolean)IS_WRITABLE_ACCESS_MODE(arg1);
3534 ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3547 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3549 static swig_type_info _swigt__p_Device = {"_p_Device", "struct Device *|Device *", 0, 0, (void*)"Amanda::Device::Device", 0};
3550 static swig_type_info _swigt__p_DevicePropertyBase = {"_p_DevicePropertyBase", "DevicePropertyBase *", 0, 0, (void*)0, 0};
3551 static swig_type_info _swigt__p_GValue = {"_p_GValue", "GValue *", 0, 0, (void*)0, 0};
3552 static swig_type_info _swigt__p_a_STRMAX__char = {"_p_a_STRMAX__char", "char (*)[STRMAX]|string_t *", 0, 0, (void*)0, 0};
3553 static swig_type_info _swigt__p_char = {"_p_char", "gchar *|char *", 0, 0, (void*)0, 0};
3554 static swig_type_info _swigt__p_double = {"_p_double", "double *|gdouble *", 0, 0, (void*)0, 0};
3555 static swig_type_info _swigt__p_dumpfile_t = {"_p_dumpfile_t", "dumpfile_t *", 0, 0, (void*)"Amanda::Types::dumpfile_t", 0};
3556 static swig_type_info _swigt__p_float = {"_p_float", "float *|gfloat *", 0, 0, (void*)0, 0};
3557 static swig_type_info _swigt__p_guint = {"_p_guint", "guint *", 0, 0, (void*)0, 0};
3558 static swig_type_info _swigt__p_guint64 = {"_p_guint64", "guint64 *", 0, 0, (void*)0, 0};
3559 static swig_type_info _swigt__p_int = {"_p_int", "int *|PropertySurety *|ConcurrencyParadigm *|filetype_t *|PropertySource *|SizeAccuracy *|StreamingRequirement *|gboolean *|DeviceAccessMode *|MediaAccessMode *|DeviceStatusFlags *|PropertyPhaseFlags *|PropertyAccessFlags *", 0, 0, (void*)0, 0};
3560 static swig_type_info _swigt__p_queue_fd_t = {"_p_queue_fd_t", "struct queue_fd_t *|queue_fd_t *", 0, 0, (void*)"Amanda::Device::queue_fd_t", 0};
3561 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "guchar *|unsigned char *", 0, 0, (void*)0, 0};
3563 static swig_type_info *swig_type_initial[] = {
3565 &_swigt__p_DevicePropertyBase,
3567 &_swigt__p_a_STRMAX__char,
3570 &_swigt__p_dumpfile_t,
3575 &_swigt__p_queue_fd_t,
3576 &_swigt__p_unsigned_char,
3579 static swig_cast_info _swigc__p_Device[] = { {&_swigt__p_Device, 0, 0, 0},{0, 0, 0, 0}};
3580 static swig_cast_info _swigc__p_DevicePropertyBase[] = { {&_swigt__p_DevicePropertyBase, 0, 0, 0},{0, 0, 0, 0}};
3581 static swig_cast_info _swigc__p_GValue[] = { {&_swigt__p_GValue, 0, 0, 0},{0, 0, 0, 0}};
3582 static swig_cast_info _swigc__p_a_STRMAX__char[] = { {&_swigt__p_a_STRMAX__char, 0, 0, 0},{0, 0, 0, 0}};
3583 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
3584 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
3585 static swig_cast_info _swigc__p_dumpfile_t[] = { {&_swigt__p_dumpfile_t, 0, 0, 0},{0, 0, 0, 0}};
3586 static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
3587 static swig_cast_info _swigc__p_guint[] = { {&_swigt__p_guint, 0, 0, 0},{0, 0, 0, 0}};
3588 static swig_cast_info _swigc__p_guint64[] = { {&_swigt__p_guint64, 0, 0, 0},{0, 0, 0, 0}};
3589 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
3590 static swig_cast_info _swigc__p_queue_fd_t[] = { {&_swigt__p_queue_fd_t, 0, 0, 0},{0, 0, 0, 0}};
3591 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
3593 static swig_cast_info *swig_cast_initial[] = {
3595 _swigc__p_DevicePropertyBase,
3597 _swigc__p_a_STRMAX__char,
3600 _swigc__p_dumpfile_t,
3605 _swigc__p_queue_fd_t,
3606 _swigc__p_unsigned_char,
3610 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3612 static swig_constant_info swig_constants[] = {
3618 static swig_variable_info swig_variables[] = {
3621 static swig_command_info swig_commands[] = {
3622 {"Amanda::Devicec::queue_fd_t_fd_get", _wrap_queue_fd_t_fd_get},
3623 {"Amanda::Devicec::queue_fd_t_errmsg_get", _wrap_queue_fd_t_errmsg_get},
3624 {"Amanda::Devicec::new_queue_fd_t", _wrap_new_queue_fd_t},
3625 {"Amanda::Devicec::delete_queue_fd_t", _wrap_delete_queue_fd_t},
3626 {"Amanda::Devicec::new_Device", _wrap_new_Device},
3627 {"Amanda::Devicec::delete_Device", _wrap_delete_Device},
3628 {"Amanda::Devicec::Device_configure", _wrap_Device_configure},
3629 {"Amanda::Devicec::Device_error", _wrap_Device_error},
3630 {"Amanda::Devicec::Device_status_error", _wrap_Device_status_error},
3631 {"Amanda::Devicec::Device_error_or_status", _wrap_Device_error_or_status},
3632 {"Amanda::Devicec::Device_read_label", _wrap_Device_read_label},
3633 {"Amanda::Devicec::Device_start", _wrap_Device_start},
3634 {"Amanda::Devicec::Device_finish", _wrap_Device_finish},
3635 {"Amanda::Devicec::Device_start_file", _wrap_Device_start_file},
3636 {"Amanda::Devicec::Device_write_block", _wrap_Device_write_block},
3637 {"Amanda::Devicec::Device_write_from_fd", _wrap_Device_write_from_fd},
3638 {"Amanda::Devicec::Device_finish_file", _wrap_Device_finish_file},
3639 {"Amanda::Devicec::Device_seek_file", _wrap_Device_seek_file},
3640 {"Amanda::Devicec::Device_seek_block", _wrap_Device_seek_block},
3641 {"Amanda::Devicec::Device_read_block", _wrap_Device_read_block},
3642 {"Amanda::Devicec::Device_read_to_fd", _wrap_Device_read_to_fd},
3643 {"Amanda::Devicec::Device_property_list", _wrap_Device_property_list},
3644 {"Amanda::Devicec::Device_property_get", _wrap_Device_property_get},
3645 {"Amanda::Devicec::Device_property_set", _wrap_Device_property_set},
3646 {"Amanda::Devicec::Device_property_set_ex", _wrap_Device_property_set_ex},
3647 {"Amanda::Devicec::Device_recycle_file", _wrap_Device_recycle_file},
3648 {"Amanda::Devicec::Device_file", _wrap_Device_file},
3649 {"Amanda::Devicec::Device_block", _wrap_Device_block},
3650 {"Amanda::Devicec::Device_in_file", _wrap_Device_in_file},
3651 {"Amanda::Devicec::Device_device_name", _wrap_Device_device_name},
3652 {"Amanda::Devicec::Device_access_mode", _wrap_Device_access_mode},
3653 {"Amanda::Devicec::Device_is_eof", _wrap_Device_is_eof},
3654 {"Amanda::Devicec::Device_volume_label", _wrap_Device_volume_label},
3655 {"Amanda::Devicec::Device_volume_time", _wrap_Device_volume_time},
3656 {"Amanda::Devicec::Device_status", _wrap_Device_status},
3657 {"Amanda::Devicec::Device_min_block_size", _wrap_Device_min_block_size},
3658 {"Amanda::Devicec::Device_max_block_size", _wrap_Device_max_block_size},
3659 {"Amanda::Devicec::Device_block_size", _wrap_Device_block_size},
3660 {"Amanda::Devicec::Device_volume_header", _wrap_Device_volume_header},
3661 {"Amanda::Devicec::IS_WRITABLE_ACCESS_MODE", _wrap_IS_WRITABLE_ACCESS_MODE},
3664 /* -----------------------------------------------------------------------------
3665 * Type initialization:
3666 * This problem is tough by the requirement that no dynamic
3667 * memory is used. Also, since swig_type_info structures store pointers to
3668 * swig_cast_info structures and swig_cast_info structures store pointers back
3669 * to swig_type_info structures, we need some lookup code at initialization.
3670 * The idea is that swig generates all the structures that are needed.
3671 * The runtime then collects these partially filled structures.
3672 * The SWIG_InitializeModule function takes these initial arrays out of
3673 * swig_module, and does all the lookup, filling in the swig_module.types
3674 * array with the correct data and linking the correct swig_cast_info
3675 * structures together.
3677 * The generated swig_type_info structures are assigned staticly to an initial
3678 * array. We just loop through that array, and handle each type individually.
3679 * First we lookup if this type has been already loaded, and if so, use the
3680 * loaded structure instead of the generated one. Then we have to fill in the
3681 * cast linked list. The cast data is initially stored in something like a
3682 * two-dimensional array. Each row corresponds to a type (there are the same
3683 * number of rows as there are in the swig_type_initial array). Each entry in
3684 * a column is one of the swig_cast_info structures for that type.
3685 * The cast_initial array is actually an array of arrays, because each row has
3686 * a variable number of columns. So to actually build the cast linked list,
3687 * we find the array of casts associated with the type, and loop through it
3688 * adding the casts to the list. The one last trick we need to do is making
3689 * sure the type pointer in the swig_cast_info struct is correct.
3691 * First off, we lookup the cast->type name to see if it is already loaded.
3692 * There are three cases to handle:
3693 * 1) If the cast->type has already been loaded AND the type we are adding
3694 * casting info to has not been loaded (it is in this module), THEN we
3695 * replace the cast->type pointer with the type pointer that has already
3697 * 2) If BOTH types (the one we are adding casting info to, and the
3698 * cast->type) are loaded, THEN the cast info has already been loaded by
3699 * the previous module so we just ignore it.
3700 * 3) Finally, if cast->type has not already been loaded, then we add that
3701 * swig_cast_info to the linked list (because the cast->type) pointer will
3703 * ----------------------------------------------------------------------------- */
3713 #define SWIGRUNTIME_DEBUG
3718 SWIG_InitializeModule(void *clientdata) {
3720 swig_module_info *module_head, *iter;
3723 clientdata = clientdata;
3725 /* check to see if the circular list has been setup, if not, set it up */
3726 if (swig_module.next==0) {
3727 /* Initialize the swig_module */
3728 swig_module.type_initial = swig_type_initial;
3729 swig_module.cast_initial = swig_cast_initial;
3730 swig_module.next = &swig_module;
3736 /* Try and load any already created modules */
3737 module_head = SWIG_GetModule(clientdata);
3739 /* This is the first module loaded for this interpreter */
3740 /* so set the swig module into the interpreter */
3741 SWIG_SetModule(clientdata, &swig_module);
3742 module_head = &swig_module;
3744 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
3748 if (iter==&swig_module) {
3753 } while (iter!= module_head);
3755 /* if the is found in the list, then all is done and we may leave */
3757 /* otherwise we must add out module into the list */
3758 swig_module.next = module_head->next;
3759 module_head->next = &swig_module;
3762 /* When multiple interpeters are used, a module could have already been initialized in
3763 a different interpreter, but not yet have a pointer in this interpreter.
3764 In this case, we do not want to continue adding types... everything should be
3766 if (init == 0) return;
3768 /* Now work on filling in swig_module.types */
3769 #ifdef SWIGRUNTIME_DEBUG
3770 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
3772 for (i = 0; i < swig_module.size; ++i) {
3773 swig_type_info *type = 0;
3774 swig_type_info *ret;
3775 swig_cast_info *cast;
3777 #ifdef SWIGRUNTIME_DEBUG
3778 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3781 /* if there is another module already loaded */
3782 if (swig_module.next != &swig_module) {
3783 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
3786 /* Overwrite clientdata field */
3787 #ifdef SWIGRUNTIME_DEBUG
3788 printf("SWIG_InitializeModule: found type %s\n", type->name);
3790 if (swig_module.type_initial[i]->clientdata) {
3791 type->clientdata = swig_module.type_initial[i]->clientdata;
3792 #ifdef SWIGRUNTIME_DEBUG
3793 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
3797 type = swig_module.type_initial[i];
3800 /* Insert casting types */
3801 cast = swig_module.cast_initial[i];
3802 while (cast->type) {
3803 /* Don't need to add information already in the list */
3805 #ifdef SWIGRUNTIME_DEBUG
3806 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
3808 if (swig_module.next != &swig_module) {
3809 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
3810 #ifdef SWIGRUNTIME_DEBUG
3811 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
3815 if (type == swig_module.type_initial[i]) {
3816 #ifdef SWIGRUNTIME_DEBUG
3817 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
3822 /* Check for casting already in the list */
3823 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
3824 #ifdef SWIGRUNTIME_DEBUG
3825 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
3827 if (!ocast) ret = 0;
3832 #ifdef SWIGRUNTIME_DEBUG
3833 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
3836 type->cast->prev = cast;
3837 cast->next = type->cast;
3843 /* Set entry in modules->types array equal to the type */
3844 swig_module.types[i] = type;
3846 swig_module.types[i] = 0;
3848 #ifdef SWIGRUNTIME_DEBUG
3849 printf("**** SWIG_InitializeModule: Cast List ******\n");
3850 for (i = 0; i < swig_module.size; ++i) {
3852 swig_cast_info *cast = swig_module.cast_initial[i];
3853 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3854 while (cast->type) {
3855 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
3859 printf("---- Total casts: %d\n",j);
3861 printf("**** SWIG_InitializeModule: Cast List ******\n");
3865 /* This function will propagate the clientdata field of type to
3866 * any new swig_type_info structures that have been added into the list
3867 * of equivalent types. It is like calling
3868 * SWIG_TypeClientData(type, clientdata) a second time.
3871 SWIG_PropagateClientData(void) {
3873 swig_cast_info *equiv;
3874 static int init_run = 0;
3876 if (init_run) return;
3879 for (i = 0; i < swig_module.size; i++) {
3880 if (swig_module.types[i]->clientdata) {
3881 equiv = swig_module.types[i]->cast;
3883 if (!equiv->converter) {
3884 if (equiv->type && !equiv->type->clientdata)
3885 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
3887 equiv = equiv->next;
3911 SWIG_InitializeModule(0);
3913 /* Install commands */
3914 for (i = 0; swig_commands[i].name; i++) {
3915 newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__);
3918 /* Install variables */
3919 for (i = 0; swig_variables[i].name; i++) {
3921 sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
3922 if (swig_variables[i].type) {
3923 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
3925 sv_setiv(sv,(IV) 0);
3927 swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
3930 /* Install constant */
3931 for (i = 0; swig_constants[i].type; i++) {
3933 sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
3934 switch(swig_constants[i].type) {
3936 sv_setiv(sv, (IV) swig_constants[i].lvalue);
3939 sv_setnv(sv, (double) swig_constants[i].dvalue);
3942 sv_setpv(sv, (char *) swig_constants[i].pvalue);
3945 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
3948 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
3957 /* Initialize the Device API on load */
3960 SWIG_TypeClientData(SWIGTYPE_p_queue_fd_t, (void*) "Amanda::Device::queue_fd_t");
3961 SWIG_TypeClientData(SWIGTYPE_p_Device, (void*) "Amanda::Device::Device");
3962 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3963 SV *sv = get_sv((char*) SWIG_prefix "ACCESS_NULL", TRUE | 0x2 | GV_ADDMULTI);
3964 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(ACCESS_NULL)));
3966 } while(0) /*@SWIG@*/;
3967 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3968 SV *sv = get_sv((char*) SWIG_prefix "ACCESS_READ", TRUE | 0x2 | GV_ADDMULTI);
3969 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(ACCESS_READ)));
3971 } while(0) /*@SWIG@*/;
3972 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3973 SV *sv = get_sv((char*) SWIG_prefix "ACCESS_WRITE", TRUE | 0x2 | GV_ADDMULTI);
3974 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(ACCESS_WRITE)));
3976 } while(0) /*@SWIG@*/;
3977 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3978 SV *sv = get_sv((char*) SWIG_prefix "ACCESS_APPEND", TRUE | 0x2 | GV_ADDMULTI);
3979 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(ACCESS_APPEND)));
3981 } while(0) /*@SWIG@*/;
3982 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3983 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
3984 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_SUCCESS)));
3986 } while(0) /*@SWIG@*/;
3987 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3988 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_DEVICE_ERROR", TRUE | 0x2 | GV_ADDMULTI);
3989 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_DEVICE_ERROR)));
3991 } while(0) /*@SWIG@*/;
3992 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3993 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_DEVICE_BUSY", TRUE | 0x2 | GV_ADDMULTI);
3994 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_DEVICE_BUSY)));
3996 } while(0) /*@SWIG@*/;
3997 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
3998 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_VOLUME_MISSING", TRUE | 0x2 | GV_ADDMULTI);
3999 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_VOLUME_MISSING)));
4001 } while(0) /*@SWIG@*/;
4002 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4003 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_VOLUME_UNLABELED", TRUE | 0x2 | GV_ADDMULTI);
4004 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_VOLUME_UNLABELED)));
4006 } while(0) /*@SWIG@*/;
4007 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4008 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_VOLUME_ERROR", TRUE | 0x2 | GV_ADDMULTI);
4009 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_VOLUME_ERROR)));
4011 } while(0) /*@SWIG@*/;
4012 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4013 SV *sv = get_sv((char*) SWIG_prefix "DEVICE_STATUS_FLAGS_MAX", TRUE | 0x2 | GV_ADDMULTI);
4014 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(DEVICE_STATUS_FLAGS_MAX)));
4016 } while(0) /*@SWIG@*/;
4017 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4018 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_BEFORE_START", TRUE | 0x2 | GV_ADDMULTI);
4019 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_BEFORE_START)));
4021 } while(0) /*@SWIG@*/;
4022 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4023 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_BETWEEN_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4024 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_BETWEEN_FILE_WRITE)));
4026 } while(0) /*@SWIG@*/;
4027 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4028 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_INSIDE_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4029 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_INSIDE_FILE_WRITE)));
4031 } while(0) /*@SWIG@*/;
4032 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4033 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_BETWEEN_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4034 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_BETWEEN_FILE_READ)));
4036 } while(0) /*@SWIG@*/;
4037 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4038 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_INSIDE_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4039 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_INSIDE_FILE_READ)));
4041 } while(0) /*@SWIG@*/;
4042 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4043 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_MAX", TRUE | 0x2 | GV_ADDMULTI);
4044 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_MAX)));
4046 } while(0) /*@SWIG@*/;
4047 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4048 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_MASK", TRUE | 0x2 | GV_ADDMULTI);
4049 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_MASK)));
4051 } while(0) /*@SWIG@*/;
4052 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4053 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_PHASE_SHIFT", TRUE | 0x2 | GV_ADDMULTI);
4054 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_PHASE_SHIFT)));
4056 } while(0) /*@SWIG@*/;
4057 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4058 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_BEFORE_START", TRUE | 0x2 | GV_ADDMULTI);
4059 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_BEFORE_START)));
4061 } while(0) /*@SWIG@*/;
4062 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4063 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_BETWEEN_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4064 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_BETWEEN_FILE_WRITE)));
4066 } while(0) /*@SWIG@*/;
4067 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4068 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_INSIDE_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4069 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_INSIDE_FILE_WRITE)));
4071 } while(0) /*@SWIG@*/;
4072 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4073 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_BETWEEN_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4074 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_BETWEEN_FILE_READ)));
4076 } while(0) /*@SWIG@*/;
4077 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4078 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_INSIDE_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4079 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_INSIDE_FILE_READ)));
4081 } while(0) /*@SWIG@*/;
4082 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4083 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_BEFORE_START", TRUE | 0x2 | GV_ADDMULTI);
4084 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_BEFORE_START)));
4086 } while(0) /*@SWIG@*/;
4087 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4088 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_BETWEEN_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4089 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_BETWEEN_FILE_WRITE)));
4091 } while(0) /*@SWIG@*/;
4092 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4093 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_INSIDE_FILE_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4094 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_INSIDE_FILE_WRITE)));
4096 } while(0) /*@SWIG@*/;
4097 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4098 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_BETWEEN_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4099 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_BETWEEN_FILE_READ)));
4101 } while(0) /*@SWIG@*/;
4102 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4103 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_INSIDE_FILE_READ", TRUE | 0x2 | GV_ADDMULTI);
4104 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_INSIDE_FILE_READ)));
4106 } while(0) /*@SWIG@*/;
4107 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4108 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_GET_MASK", TRUE | 0x2 | GV_ADDMULTI);
4109 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_GET_MASK)));
4111 } while(0) /*@SWIG@*/;
4112 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4113 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_ACCESS_SET_MASK", TRUE | 0x2 | GV_ADDMULTI);
4114 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_ACCESS_SET_MASK)));
4116 } while(0) /*@SWIG@*/;
4117 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4118 SV *sv = get_sv((char*) SWIG_prefix "CONCURRENCY_PARADIGM_EXCLUSIVE", TRUE | 0x2 | GV_ADDMULTI);
4119 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CONCURRENCY_PARADIGM_EXCLUSIVE)));
4121 } while(0) /*@SWIG@*/;
4122 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4123 SV *sv = get_sv((char*) SWIG_prefix "CONCURRENCY_PARADIGM_SHARED_READ", TRUE | 0x2 | GV_ADDMULTI);
4124 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CONCURRENCY_PARADIGM_SHARED_READ)));
4126 } while(0) /*@SWIG@*/;
4127 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4128 SV *sv = get_sv((char*) SWIG_prefix "CONCURRENCY_PARADIGM_RANDOM_ACCESS", TRUE | 0x2 | GV_ADDMULTI);
4129 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CONCURRENCY_PARADIGM_RANDOM_ACCESS)));
4131 } while(0) /*@SWIG@*/;
4132 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4133 SV *sv = get_sv((char*) SWIG_prefix "STREAMING_REQUIREMENT_NONE", TRUE | 0x2 | GV_ADDMULTI);
4134 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(STREAMING_REQUIREMENT_NONE)));
4136 } while(0) /*@SWIG@*/;
4137 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4138 SV *sv = get_sv((char*) SWIG_prefix "STREAMING_REQUIREMENT_DESIRED", TRUE | 0x2 | GV_ADDMULTI);
4139 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(STREAMING_REQUIREMENT_DESIRED)));
4141 } while(0) /*@SWIG@*/;
4142 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4143 SV *sv = get_sv((char*) SWIG_prefix "STREAMING_REQUIREMENT_REQUIRED", TRUE | 0x2 | GV_ADDMULTI);
4144 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(STREAMING_REQUIREMENT_REQUIRED)));
4146 } while(0) /*@SWIG@*/;
4147 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4148 SV *sv = get_sv((char*) SWIG_prefix "MEDIA_ACCESS_MODE_READ_ONLY", TRUE | 0x2 | GV_ADDMULTI);
4149 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(MEDIA_ACCESS_MODE_READ_ONLY)));
4151 } while(0) /*@SWIG@*/;
4152 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4153 SV *sv = get_sv((char*) SWIG_prefix "MEDIA_ACCESS_MODE_WORM", TRUE | 0x2 | GV_ADDMULTI);
4154 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(MEDIA_ACCESS_MODE_WORM)));
4156 } while(0) /*@SWIG@*/;
4157 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4158 SV *sv = get_sv((char*) SWIG_prefix "MEDIA_ACCESS_MODE_READ_WRITE", TRUE | 0x2 | GV_ADDMULTI);
4159 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(MEDIA_ACCESS_MODE_READ_WRITE)));
4161 } while(0) /*@SWIG@*/;
4162 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4163 SV *sv = get_sv((char*) SWIG_prefix "MEDIA_ACCESS_MODE_WRITE_ONLY", TRUE | 0x2 | GV_ADDMULTI);
4164 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(MEDIA_ACCESS_MODE_WRITE_ONLY)));
4166 } while(0) /*@SWIG@*/;
4167 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4168 SV *sv = get_sv((char*) SWIG_prefix "SIZE_ACCURACY_UNKNOWN", TRUE | 0x2 | GV_ADDMULTI);
4169 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(SIZE_ACCURACY_UNKNOWN)));
4171 } while(0) /*@SWIG@*/;
4172 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4173 SV *sv = get_sv((char*) SWIG_prefix "SIZE_ACCURACY_ESTIMATE", TRUE | 0x2 | GV_ADDMULTI);
4174 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(SIZE_ACCURACY_ESTIMATE)));
4176 } while(0) /*@SWIG@*/;
4177 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4178 SV *sv = get_sv((char*) SWIG_prefix "SIZE_ACCURACY_REAL", TRUE | 0x2 | GV_ADDMULTI);
4179 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(SIZE_ACCURACY_REAL)));
4181 } while(0) /*@SWIG@*/;
4182 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4183 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_SURETY_BAD", TRUE | 0x2 | GV_ADDMULTI);
4184 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_SURETY_BAD)));
4186 } while(0) /*@SWIG@*/;
4187 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4188 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_SURETY_GOOD", TRUE | 0x2 | GV_ADDMULTI);
4189 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_SURETY_GOOD)));
4191 } while(0) /*@SWIG@*/;
4192 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4193 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_SOURCE_DEFAULT", TRUE | 0x2 | GV_ADDMULTI);
4194 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_SOURCE_DEFAULT)));
4196 } while(0) /*@SWIG@*/;
4197 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4198 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_SOURCE_DETECTED", TRUE | 0x2 | GV_ADDMULTI);
4199 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_SOURCE_DETECTED)));
4201 } while(0) /*@SWIG@*/;
4202 /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4203 SV *sv = get_sv((char*) SWIG_prefix "PROPERTY_SOURCE_USER", TRUE | 0x2 | GV_ADDMULTI);
4204 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(PROPERTY_SOURCE_USER)));
4206 } while(0) /*@SWIG@*/;