975e35025e323fa60cabc65720f7c646879b0f88
[debian/amanda] / perl / Amanda / Types.c
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 1.3.33
4  * 
5  * This file is not intended to be easily readable and contains a number of 
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG 
8  * interface file instead. 
9  * ----------------------------------------------------------------------------- */
10
11 #define SWIGPERL
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  * ----------------------------------------------------------------------------- */
17
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
26 # else
27 #  define SWIGTEMPLATEDISAMBIGUATOR
28 # endif
29 #endif
30
31 /* inline attribute */
32 #ifndef SWIGINLINE
33 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34 #   define SWIGINLINE inline
35 # else
36 #   define SWIGINLINE
37 # endif
38 #endif
39
40 /* attribute recognised by some compilers to avoid 'unused' warnings */
41 #ifndef SWIGUNUSED
42 # if defined(__GNUC__)
43 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44 #     define SWIGUNUSED __attribute__ ((__unused__)) 
45 #   else
46 #     define SWIGUNUSED
47 #   endif
48 # elif defined(__ICC)
49 #   define SWIGUNUSED __attribute__ ((__unused__)) 
50 # else
51 #   define SWIGUNUSED 
52 # endif
53 #endif
54
55 #ifndef SWIGUNUSEDPARM
56 # ifdef __cplusplus
57 #   define SWIGUNUSEDPARM(p)
58 # else
59 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
60 # endif
61 #endif
62
63 /* internal SWIG method */
64 #ifndef SWIGINTERN
65 # define SWIGINTERN static SWIGUNUSED
66 #endif
67
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71 #endif
72
73 /* exporting methods */
74 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
75 #  ifndef GCC_HASCLASSVISIBILITY
76 #    define GCC_HASCLASSVISIBILITY
77 #  endif
78 #endif
79
80 #ifndef SWIGEXPORT
81 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
82 #   if defined(STATIC_LINKED)
83 #     define SWIGEXPORT
84 #   else
85 #     define SWIGEXPORT __declspec(dllexport)
86 #   endif
87 # else
88 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
89 #     define SWIGEXPORT __attribute__ ((visibility("default")))
90 #   else
91 #     define SWIGEXPORT
92 #   endif
93 # endif
94 #endif
95
96 /* calling conventions for Windows */
97 #ifndef SWIGSTDCALL
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 #   define SWIGSTDCALL __stdcall
100 # else
101 #   define SWIGSTDCALL
102 # endif 
103 #endif
104
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
108 #endif
109
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
113 #endif
114
115
116 /* -----------------------------------------------------------------------------
117  * swigrun.swg
118  *
119  * This file contains generic CAPI SWIG runtime support for pointer
120  * type checking.
121  * ----------------------------------------------------------------------------- */
122
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 "3"
126
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)
132 #else
133 # define SWIG_TYPE_TABLE_NAME
134 #endif
135
136 /*
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'.
140   
141   But only do this if is strictly necessary, ie, if you have problems
142   with your compiler or so.
143 */
144
145 #ifndef SWIGRUNTIME
146 # define SWIGRUNTIME SWIGINTERN
147 #endif
148
149 #ifndef SWIGRUNTIMEINLINE
150 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
151 #endif
152
153 /*  Generic buffer size */
154 #ifndef SWIG_BUFFER_SIZE
155 # define SWIG_BUFFER_SIZE 1024
156 #endif
157
158 /* Flags for pointer conversions */
159 #define SWIG_POINTER_DISOWN        0x1
160
161 /* Flags for new pointer objects */
162 #define SWIG_POINTER_OWN           0x1
163
164
165 /* 
166    Flags/methods for returning states.
167    
168    The swig conversion methods, as ConvertPtr, return and integer 
169    that tells if the conversion was successful or not. And if not,
170    an error code can be returned (see swigerrors.swg for the codes).
171    
172    Use the following macros/flags to set or process the returning
173    states.
174    
175    In old swig versions, you usually write code as:
176
177      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
178        // success code
179      } else {
180        //fail code
181      }
182
183    Now you can be more explicit as:
184
185     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
186     if (SWIG_IsOK(res)) {
187       // success code
188     } else {
189       // fail code
190     }
191
192    that seems to be the same, but now you can also do
193
194     Type *ptr;
195     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
196     if (SWIG_IsOK(res)) {
197       // success code
198       if (SWIG_IsNewObj(res) {
199         ...
200         delete *ptr;
201       } else {
202         ...
203       }
204     } else {
205       // fail code
206     }
207     
208    I.e., now SWIG_ConvertPtr can return new objects and you can
209    identify the case and take care of the deallocation. Of course that
210    requires also to SWIG_ConvertPtr to return new result values, as
211
212       int SWIG_ConvertPtr(obj, ptr,...) {         
213         if (<obj is ok>) {                             
214           if (<need new object>) {                     
215             *ptr = <ptr to new allocated object>; 
216             return SWIG_NEWOBJ;                
217           } else {                                     
218             *ptr = <ptr to old object>;        
219             return SWIG_OLDOBJ;                
220           }                                    
221         } else {                                       
222           return SWIG_BADOBJ;                  
223         }                                              
224       }
225
226    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
227    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
228    swig errors code.
229
230    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
231    allows to return the 'cast rank', for example, if you have this
232
233        int food(double)
234        int fooi(int);
235
236    and you call
237  
238       food(1)   // cast rank '1'  (1 -> 1.0)
239       fooi(1)   // cast rank '0'
240
241    just use the SWIG_AddCast()/SWIG_CheckState()
242
243
244  */
245 #define SWIG_OK                    (0) 
246 #define SWIG_ERROR                 (-1)
247 #define SWIG_IsOK(r)               (r >= 0)
248 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
249
250 /* The CastRankLimit says how many bits are used for the cast rank */
251 #define SWIG_CASTRANKLIMIT         (1 << 8)
252 /* The NewMask denotes the object was created (using new/malloc) */
253 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
254 /* The TmpMask is for in/out typemaps that use temporal objects */
255 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
256 /* Simple returning values */
257 #define SWIG_BADOBJ                (SWIG_ERROR)
258 #define SWIG_OLDOBJ                (SWIG_OK)
259 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
260 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
261 /* Check, add and del mask methods */
262 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
263 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
264 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
265 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
266 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
267 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
268
269
270 /* Cast-Rank Mode */
271 #if defined(SWIG_CASTRANK_MODE)
272 #  ifndef SWIG_TypeRank
273 #    define SWIG_TypeRank             unsigned long
274 #  endif
275 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
276 #    define SWIG_MAXCASTRANK          (2)
277 #  endif
278 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
279 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
280 SWIGINTERNINLINE int SWIG_AddCast(int r) { 
281   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
282 }
283 SWIGINTERNINLINE int SWIG_CheckState(int r) { 
284   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
285 }
286 #else /* no cast-rank mode */
287 #  define SWIG_AddCast
288 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
289 #endif
290
291
292
293
294 #include <string.h>
295
296 #ifdef __cplusplus
297 extern "C" {
298 #endif
299
300 typedef void *(*swig_converter_func)(void *);
301 typedef struct swig_type_info *(*swig_dycast_func)(void **);
302
303 /* Structure to store inforomation on one type */
304 typedef struct swig_type_info {
305   const char             *name;                 /* mangled name of this type */
306   const char             *str;                  /* human readable name of this type */
307   swig_dycast_func        dcast;                /* dynamic cast function down a hierarchy */
308   struct swig_cast_info  *cast;                 /* linked list of types that can cast into this type */
309   void                   *clientdata;           /* language specific type data */
310   int                    owndata;               /* flag if the structure owns the clientdata */
311 } swig_type_info;
312
313 /* Structure to store a type and conversion function used for casting */
314 typedef struct swig_cast_info {
315   swig_type_info         *type;                 /* pointer to type that is equivalent to this type */
316   swig_converter_func     converter;            /* function to cast the void pointers */
317   struct swig_cast_info  *next;                 /* pointer to next cast in linked list */
318   struct swig_cast_info  *prev;                 /* pointer to the previous cast */
319 } swig_cast_info;
320
321 /* Structure used to store module information
322  * Each module generates one structure like this, and the runtime collects
323  * all of these structures and stores them in a circularly linked list.*/
324 typedef struct swig_module_info {
325   swig_type_info         **types;               /* Array of pointers to swig_type_info structures that are in this module */
326   size_t                 size;                  /* Number of types in this module */
327   struct swig_module_info *next;                /* Pointer to next element in circularly linked list */
328   swig_type_info         **type_initial;        /* Array of initially generated type structures */
329   swig_cast_info         **cast_initial;        /* Array of initially generated casting structures */
330   void                    *clientdata;          /* Language specific module data */
331 } swig_module_info;
332
333 /* 
334   Compare two type names skipping the space characters, therefore
335   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
336
337   Return 0 when the two name types are equivalent, as in
338   strncmp, but skipping ' '.
339 */
340 SWIGRUNTIME int
341 SWIG_TypeNameComp(const char *f1, const char *l1,
342                   const char *f2, const char *l2) {
343   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
344     while ((*f1 == ' ') && (f1 != l1)) ++f1;
345     while ((*f2 == ' ') && (f2 != l2)) ++f2;
346     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
347   }
348   return (int)((l1 - f1) - (l2 - f2));
349 }
350
351 /*
352   Check type equivalence in a name list like <name1>|<name2>|...
353   Return 0 if not equal, 1 if equal
354 */
355 SWIGRUNTIME int
356 SWIG_TypeEquiv(const char *nb, const char *tb) {
357   int equiv = 0;
358   const char* te = tb + strlen(tb);
359   const char* ne = nb;
360   while (!equiv && *ne) {
361     for (nb = ne; *ne; ++ne) {
362       if (*ne == '|') break;
363     }
364     equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
365     if (*ne) ++ne;
366   }
367   return equiv;
368 }
369
370 /*
371   Check type equivalence in a name list like <name1>|<name2>|...
372   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
373 */
374 SWIGRUNTIME int
375 SWIG_TypeCompare(const char *nb, const char *tb) {
376   int equiv = 0;
377   const char* te = tb + strlen(tb);
378   const char* ne = nb;
379   while (!equiv && *ne) {
380     for (nb = ne; *ne; ++ne) {
381       if (*ne == '|') break;
382     }
383     equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
384     if (*ne) ++ne;
385   }
386   return equiv;
387 }
388
389
390 /* think of this as a c++ template<> or a scheme macro */
391 #define SWIG_TypeCheck_Template(comparison, ty)         \
392   if (ty) {                                             \
393     swig_cast_info *iter = ty->cast;                    \
394     while (iter) {                                      \
395       if (comparison) {                                 \
396         if (iter == ty->cast) return iter;              \
397         /* Move iter to the top of the linked list */   \
398         iter->prev->next = iter->next;                  \
399         if (iter->next)                                 \
400           iter->next->prev = iter->prev;                \
401         iter->next = ty->cast;                          \
402         iter->prev = 0;                                 \
403         if (ty->cast) ty->cast->prev = iter;            \
404         ty->cast = iter;                                \
405         return iter;                                    \
406       }                                                 \
407       iter = iter->next;                                \
408     }                                                   \
409   }                                                     \
410   return 0
411
412 /*
413   Check the typename
414 */
415 SWIGRUNTIME swig_cast_info *
416 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
417   SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
418 }
419
420 /* Same as previous function, except strcmp is replaced with a pointer comparison */
421 SWIGRUNTIME swig_cast_info *
422 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
423   SWIG_TypeCheck_Template(iter->type == from, into);
424 }
425
426 /*
427   Cast a pointer up an inheritance hierarchy
428 */
429 SWIGRUNTIMEINLINE void *
430 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
431   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
432 }
433
434 /* 
435    Dynamic pointer casting. Down an inheritance hierarchy
436 */
437 SWIGRUNTIME swig_type_info *
438 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
439   swig_type_info *lastty = ty;
440   if (!ty || !ty->dcast) return ty;
441   while (ty && (ty->dcast)) {
442     ty = (*ty->dcast)(ptr);
443     if (ty) lastty = ty;
444   }
445   return lastty;
446 }
447
448 /*
449   Return the name associated with this type
450 */
451 SWIGRUNTIMEINLINE const char *
452 SWIG_TypeName(const swig_type_info *ty) {
453   return ty->name;
454 }
455
456 /*
457   Return the pretty name associated with this type,
458   that is an unmangled type name in a form presentable to the user.
459 */
460 SWIGRUNTIME const char *
461 SWIG_TypePrettyName(const swig_type_info *type) {
462   /* The "str" field contains the equivalent pretty names of the
463      type, separated by vertical-bar characters.  We choose
464      to print the last name, as it is often (?) the most
465      specific. */
466   if (!type) return NULL;
467   if (type->str != NULL) {
468     const char *last_name = type->str;
469     const char *s;
470     for (s = type->str; *s; s++)
471       if (*s == '|') last_name = s+1;
472     return last_name;
473   }
474   else
475     return type->name;
476 }
477
478 /* 
479    Set the clientdata field for a type
480 */
481 SWIGRUNTIME void
482 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
483   swig_cast_info *cast = ti->cast;
484   /* if (ti->clientdata == clientdata) return; */
485   ti->clientdata = clientdata;
486   
487   while (cast) {
488     if (!cast->converter) {
489       swig_type_info *tc = cast->type;
490       if (!tc->clientdata) {
491         SWIG_TypeClientData(tc, clientdata);
492       }
493     }    
494     cast = cast->next;
495   }
496 }
497 SWIGRUNTIME void
498 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
499   SWIG_TypeClientData(ti, clientdata);
500   ti->owndata = 1;
501 }
502   
503 /*
504   Search for a swig_type_info structure only by mangled name
505   Search is a O(log #types)
506   
507   We start searching at module start, and finish searching when start == end.  
508   Note: if start == end at the beginning of the function, we go all the way around
509   the circular list.
510 */
511 SWIGRUNTIME swig_type_info *
512 SWIG_MangledTypeQueryModule(swig_module_info *start, 
513                             swig_module_info *end, 
514                             const char *name) {
515   swig_module_info *iter = start;
516   do {
517     if (iter->size) {
518       register size_t l = 0;
519       register size_t r = iter->size - 1;
520       do {
521         /* since l+r >= 0, we can (>> 1) instead (/ 2) */
522         register size_t i = (l + r) >> 1; 
523         const char *iname = iter->types[i]->name;
524         if (iname) {
525           register int compare = strcmp(name, iname);
526           if (compare == 0) {       
527             return iter->types[i];
528           } else if (compare < 0) {
529             if (i) {
530               r = i - 1;
531             } else {
532               break;
533             }
534           } else if (compare > 0) {
535             l = i + 1;
536           }
537         } else {
538           break; /* should never happen */
539         }
540       } while (l <= r);
541     }
542     iter = iter->next;
543   } while (iter != end);
544   return 0;
545 }
546
547 /*
548   Search for a swig_type_info structure for either a mangled name or a human readable name.
549   It first searches the mangled names of the types, which is a O(log #types)
550   If a type is not found it then searches the human readable names, which is O(#types).
551   
552   We start searching at module start, and finish searching when start == end.  
553   Note: if start == end at the beginning of the function, we go all the way around
554   the circular list.
555 */
556 SWIGRUNTIME swig_type_info *
557 SWIG_TypeQueryModule(swig_module_info *start, 
558                      swig_module_info *end, 
559                      const char *name) {
560   /* STEP 1: Search the name field using binary search */
561   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
562   if (ret) {
563     return ret;
564   } else {
565     /* STEP 2: If the type hasn't been found, do a complete search
566        of the str field (the human readable name) */
567     swig_module_info *iter = start;
568     do {
569       register size_t i = 0;
570       for (; i < iter->size; ++i) {
571         if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
572           return iter->types[i];
573       }
574       iter = iter->next;
575     } while (iter != end);
576   }
577   
578   /* neither found a match */
579   return 0;
580 }
581
582 /* 
583    Pack binary data into a string
584 */
585 SWIGRUNTIME char *
586 SWIG_PackData(char *c, void *ptr, size_t sz) {
587   static const char hex[17] = "0123456789abcdef";
588   register const unsigned char *u = (unsigned char *) ptr;
589   register const unsigned char *eu =  u + sz;
590   for (; u != eu; ++u) {
591     register unsigned char uu = *u;
592     *(c++) = hex[(uu & 0xf0) >> 4];
593     *(c++) = hex[uu & 0xf];
594   }
595   return c;
596 }
597
598 /* 
599    Unpack binary data from a string
600 */
601 SWIGRUNTIME const char *
602 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
603   register unsigned char *u = (unsigned char *) ptr;
604   register const unsigned char *eu = u + sz;
605   for (; u != eu; ++u) {
606     register char d = *(c++);
607     register unsigned char uu;
608     if ((d >= '0') && (d <= '9'))
609       uu = ((d - '0') << 4);
610     else if ((d >= 'a') && (d <= 'f'))
611       uu = ((d - ('a'-10)) << 4);
612     else 
613       return (char *) 0;
614     d = *(c++);
615     if ((d >= '0') && (d <= '9'))
616       uu |= (d - '0');
617     else if ((d >= 'a') && (d <= 'f'))
618       uu |= (d - ('a'-10));
619     else 
620       return (char *) 0;
621     *u = uu;
622   }
623   return c;
624 }
625
626 /* 
627    Pack 'void *' into a string buffer.
628 */
629 SWIGRUNTIME char *
630 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
631   char *r = buff;
632   if ((2*sizeof(void *) + 2) > bsz) return 0;
633   *(r++) = '_';
634   r = SWIG_PackData(r,&ptr,sizeof(void *));
635   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
636   strcpy(r,name);
637   return buff;
638 }
639
640 SWIGRUNTIME const char *
641 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
642   if (*c != '_') {
643     if (strcmp(c,"NULL") == 0) {
644       *ptr = (void *) 0;
645       return name;
646     } else {
647       return 0;
648     }
649   }
650   return SWIG_UnpackData(++c,ptr,sizeof(void *));
651 }
652
653 SWIGRUNTIME char *
654 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
655   char *r = buff;
656   size_t lname = (name ? strlen(name) : 0);
657   if ((2*sz + 2 + lname) > bsz) return 0;
658   *(r++) = '_';
659   r = SWIG_PackData(r,ptr,sz);
660   if (lname) {
661     strncpy(r,name,lname+1);
662   } else {
663     *r = 0;
664   }
665   return buff;
666 }
667
668 SWIGRUNTIME const char *
669 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
670   if (*c != '_') {
671     if (strcmp(c,"NULL") == 0) {
672       memset(ptr,0,sz);
673       return name;
674     } else {
675       return 0;
676     }
677   }
678   return SWIG_UnpackData(++c,ptr,sz);
679 }
680
681 #ifdef __cplusplus
682 }
683 #endif
684
685 /*  Errors in SWIG */
686 #define  SWIG_UnknownError         -1 
687 #define  SWIG_IOError              -2 
688 #define  SWIG_RuntimeError         -3 
689 #define  SWIG_IndexError           -4 
690 #define  SWIG_TypeError            -5 
691 #define  SWIG_DivisionByZero       -6 
692 #define  SWIG_OverflowError        -7 
693 #define  SWIG_SyntaxError          -8 
694 #define  SWIG_ValueError           -9 
695 #define  SWIG_SystemError          -10
696 #define  SWIG_AttributeError       -11
697 #define  SWIG_MemoryError          -12 
698 #define  SWIG_NullReferenceError   -13
699
700
701
702 #ifdef __cplusplus
703 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
704 #include <math.h>
705 #include <stdlib.h>
706 extern "C" {
707 #endif
708 #include "EXTERN.h"
709 #include "perl.h"
710 #include "XSUB.h"
711
712 /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
713
714 /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
715 #ifndef PERL_REVISION
716 #  if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
717 #    define PERL_PATCHLEVEL_H_IMPLICIT
718 #    include <patchlevel.h>
719 #  endif
720 #  if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
721 #    include <could_not_find_Perl_patchlevel.h>
722 #  endif
723 #  ifndef PERL_REVISION
724 #    define PERL_REVISION       (5)
725 #    define PERL_VERSION        PATCHLEVEL
726 #    define PERL_SUBVERSION     SUBVERSION
727 #  endif
728 #endif
729
730 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
731 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
732 #endif
733
734 #ifndef SvIOK_UV
735 # define SvIOK_UV(sv)       (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
736 #endif
737
738 #ifndef SvUOK
739 # define SvUOK(sv)           SvIOK_UV(sv)
740 #endif
741
742 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
743 #  define PL_sv_undef               sv_undef
744 #  define PL_na                     na
745 #  define PL_errgv                  errgv
746 #  define PL_sv_no                  sv_no
747 #  define PL_sv_yes                 sv_yes
748 #  define PL_markstack_ptr          markstack_ptr
749 #endif
750
751 #ifndef IVSIZE
752 #  ifdef LONGSIZE
753 #    define IVSIZE LONGSIZE
754 #  else
755 #    define IVSIZE 4 /* A bold guess, but the best we can make. */
756 #  endif
757 #endif
758
759 #ifndef INT2PTR
760 #  if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
761 #    define PTRV                  UV
762 #    define INT2PTR(any,d)        (any)(d)
763 #  else
764 #    if PTRSIZE == LONGSIZE
765 #      define PTRV                unsigned long
766 #    else
767 #      define PTRV                unsigned
768 #    endif
769 #    define INT2PTR(any,d)        (any)(PTRV)(d)
770 #  endif
771
772 #  define NUM2PTR(any,d)  (any)(PTRV)(d)
773 #  define PTR2IV(p)       INT2PTR(IV,p)
774 #  define PTR2UV(p)       INT2PTR(UV,p)
775 #  define PTR2NV(p)       NUM2PTR(NV,p)
776
777 #  if PTRSIZE == LONGSIZE
778 #    define PTR2ul(p)     (unsigned long)(p)
779 #  else
780 #    define PTR2ul(p)     INT2PTR(unsigned long,p)
781 #  endif
782 #endif /* !INT2PTR */
783
784 #ifndef SvPV_nolen
785 # define SvPV_nolen(x) SvPV(x,PL_na)
786 #endif
787
788 #ifndef get_sv
789 #  define get_sv perl_get_sv
790 #endif
791
792 #ifndef ERRSV
793 #  define ERRSV get_sv("@",FALSE)
794 #endif
795
796 #ifndef pTHX_
797 #define pTHX_
798 #endif   
799
800 #include <string.h>
801 #ifdef __cplusplus
802 }
803 #endif
804
805 /* -----------------------------------------------------------------------------
806  * error manipulation
807  * ----------------------------------------------------------------------------- */
808
809 SWIGINTERN const char*
810 SWIG_Perl_ErrorType(int code) {
811   const char* type = 0;
812   switch(code) {
813   case SWIG_MemoryError:
814     type = "MemoryError";
815     break;
816   case SWIG_IOError:
817     type = "IOError";
818     break;
819   case SWIG_RuntimeError:
820     type = "RuntimeError";
821     break;
822   case SWIG_IndexError:
823     type = "IndexError";
824     break;
825   case SWIG_TypeError:
826     type = "TypeError";
827     break;
828   case SWIG_DivisionByZero:
829     type = "ZeroDivisionError";
830     break;
831   case SWIG_OverflowError:
832     type = "OverflowError";
833     break;
834   case SWIG_SyntaxError:
835     type = "SyntaxError";
836     break;
837   case SWIG_ValueError:
838     type = "ValueError";
839     break;
840   case SWIG_SystemError:
841     type = "SystemError";
842     break;
843   case SWIG_AttributeError:
844     type = "AttributeError";
845     break;
846   default:
847     type = "RuntimeError";
848   }
849   return type;
850 }
851
852
853
854
855 /* -----------------------------------------------------------------------------
856  * perlrun.swg
857  *
858  * This file contains the runtime support for Perl modules
859  * and includes code for managing global variables and pointer
860  * type checking.
861  * ----------------------------------------------------------------------------- */
862
863 #ifdef PERL_OBJECT
864 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
865 #define SWIG_PERL_OBJECT_CALL pPerl,
866 #else
867 #define SWIG_PERL_OBJECT_DECL
868 #define SWIG_PERL_OBJECT_CALL
869 #endif
870
871 /* Common SWIG API */
872
873 /* for raw pointers */
874 #define SWIG_ConvertPtr(obj, pp, type, flags)           SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
875 #define SWIG_NewPointerObj(p, type, flags)              SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
876
877 /* for raw packed data */
878 #define SWIG_ConvertPacked(obj, p, s, type)             SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
879 #define SWIG_NewPackedObj(p, s, type)                   SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
880
881 /* for class or struct pointers */
882 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
883 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
884
885 /* for C or C++ function pointers */
886 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_ConvertPtr(obj, pptr, type, 0)
887 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_NewPointerObj(ptr, type, 0)
888
889 /* for C++ member pointers, ie, member methods */
890 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_ConvertPacked(obj, ptr, sz, ty)
891 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_NewPackedObj(ptr, sz, type)
892
893
894 /* Runtime API */
895
896 #define SWIG_GetModule(clientdata)                      SWIG_Perl_GetModule()
897 #define SWIG_SetModule(clientdata, pointer)             SWIG_Perl_SetModule(pointer)
898
899
900 /* Error manipulation */
901
902 #define SWIG_ErrorType(code)                            SWIG_Perl_ErrorType(code)               
903 #define SWIG_Error(code, msg)                           sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg)
904 #define SWIG_fail                                       goto fail                                                   
905
906 /* Perl-specific SWIG API */
907
908 #define SWIG_MakePtr(sv, ptr, type, flags)              SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
909 #define SWIG_MakePackedObj(sv, p, s, type)              SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
910 #define SWIG_SetError(str)                              SWIG_Error(SWIG_RuntimeError, str)
911
912
913 #define SWIG_PERL_DECL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_DECL arg1)
914 #define SWIG_PERL_CALL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_CALL arg1)
915 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_DECL arg1, arg2)
916 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_CALL arg1, arg2)
917
918 /* -----------------------------------------------------------------------------
919  * pointers/data manipulation
920  * ----------------------------------------------------------------------------- */
921
922 /* For backward compatibility only */
923 #define SWIG_POINTER_EXCEPTION  0
924
925 #ifdef __cplusplus
926 extern "C" {
927 #endif
928
929 #define SWIG_OWNER   SWIG_POINTER_OWN
930 #define SWIG_SHADOW  SWIG_OWNER << 1
931
932 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
933
934 /* SWIG Perl macros */
935
936 /* Macro to declare an XS function */
937 #ifndef XSPROTO
938 #   define XSPROTO(name) void name(pTHX_ CV* cv)
939 #endif
940
941 /* Macro to call an XS function */
942 #ifdef PERL_OBJECT 
943 #  define SWIG_CALLXS(_name) _name(cv,pPerl) 
944 #else 
945 #  ifndef MULTIPLICITY 
946 #    define SWIG_CALLXS(_name) _name(cv) 
947 #  else 
948 #    define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) 
949 #  endif 
950 #endif 
951
952 #ifdef PERL_OBJECT
953 #define MAGIC_PPERL  CPerlObj *pPerl = (CPerlObj *) this;
954
955 #ifdef __cplusplus
956 extern "C" {
957 #endif
958 typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
959 #ifdef __cplusplus
960 }
961 #endif
962
963 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
964 #define SWIGCLASS_STATIC
965
966 #else /* PERL_OBJECT */
967
968 #define MAGIC_PPERL
969 #define SWIGCLASS_STATIC static SWIGUNUSED
970
971 #ifndef MULTIPLICITY
972 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
973
974 #ifdef __cplusplus
975 extern "C" {
976 #endif
977 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
978 #ifdef __cplusplus
979 }
980 #endif
981
982 #else /* MULTIPLICITY */
983
984 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
985
986 #ifdef __cplusplus
987 extern "C" {
988 #endif
989 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
990 #ifdef __cplusplus
991 }
992 #endif
993
994 #endif /* MULTIPLICITY */
995 #endif /* PERL_OBJECT */
996
997 /* Workaround for bug in perl 5.6.x croak and earlier */
998 #if (PERL_VERSION < 8)
999 #  ifdef PERL_OBJECT
1000 #    define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
1001 static void SWIG_Perl_croak_null(CPerlObj *pPerl)
1002 #  else
1003 static void SWIG_croak_null()
1004 #  endif
1005 {
1006   SV *err=ERRSV;
1007 #  if (PERL_VERSION < 6)
1008   croak("%_", err);
1009 #  else
1010   if (SvOK(err) && !SvROK(err)) croak("%_", err);
1011   croak(Nullch);
1012 #  endif
1013 }
1014 #else
1015 #  define SWIG_croak_null() croak(Nullch)
1016 #endif
1017
1018
1019 /* 
1020    Define how strict is the cast between strings and integers/doubles
1021    when overloading between these types occurs.
1022    
1023    The default is making it as strict as possible by using SWIG_AddCast
1024    when needed.
1025    
1026    You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1027    disable the SWIG_AddCast, making the casting between string and
1028    numbers less strict.
1029
1030    In the end, we try to solve the overloading between strings and
1031    numerical types in the more natural way, but if you can avoid it,
1032    well, avoid it using %rename, for example.
1033 */
1034 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1035 # ifndef SWIG_PERL_STRICT_STR2NUM
1036 #  define SWIG_PERL_STRICT_STR2NUM
1037 # endif
1038 #endif
1039 #ifdef SWIG_PERL_STRICT_STR2NUM
1040 /* string takes precedence */
1041 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)  
1042 #else
1043 /* number takes precedence */
1044 #define SWIG_Str2NumCast(x) x
1045 #endif
1046
1047
1048
1049 #include <stdlib.h>
1050
1051 SWIGRUNTIME const char *
1052 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
1053   if (!type) return NULL;
1054   if (type->clientdata != NULL) {
1055     return (const char*) type->clientdata;
1056   } 
1057   else {
1058     return type->name;
1059   }
1060 }
1061
1062 SWIGRUNTIME swig_cast_info *
1063 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1064   SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp((char*)iter->type->name, c) == 0)) 
1065                             || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty);
1066 }
1067
1068
1069 /* Function for getting a pointer value */
1070
1071 SWIGRUNTIME int
1072 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
1073   swig_cast_info *tc;
1074   void *voidptr = (void *)0;
1075   SV *tsv = 0;
1076   /* If magical, apply more magic */
1077   if (SvGMAGICAL(sv))
1078     mg_get(sv);
1079
1080   /* Check to see if this is an object */
1081   if (sv_isobject(sv)) {
1082     IV tmp = 0;
1083     tsv = (SV*) SvRV(sv);
1084     if ((SvTYPE(tsv) == SVt_PVHV)) {
1085       MAGIC *mg;
1086       if (SvMAGICAL(tsv)) {
1087         mg = mg_find(tsv,'P');
1088         if (mg) {
1089           sv = mg->mg_obj;
1090           if (sv_isobject(sv)) {
1091             tsv = (SV*)SvRV(sv);
1092             tmp = SvIV(tsv);
1093           }
1094         }
1095       } else {
1096         return SWIG_ERROR;
1097       }
1098     } else {
1099       tmp = SvIV(tsv);
1100     }
1101     voidptr = INT2PTR(void *,tmp);
1102   } else if (! SvOK(sv)) {            /* Check for undef */
1103     *(ptr) = (void *) 0;
1104     return SWIG_OK;
1105   } else if (SvTYPE(sv) == SVt_RV) {  /* Check for NULL pointer */
1106     if (!SvROK(sv)) {
1107       *(ptr) = (void *) 0;
1108       return SWIG_OK;
1109     } else {
1110       return SWIG_ERROR;
1111     }
1112   } else {                            /* Don't know what it is */
1113     return SWIG_ERROR;
1114   }
1115   if (_t) {
1116     /* Now see if the types match */
1117     char *_c = HvNAME(SvSTASH(SvRV(sv)));
1118     tc = SWIG_TypeProxyCheck(_c,_t);
1119     if (!tc) {
1120       return SWIG_ERROR;
1121     }
1122     *ptr = SWIG_TypeCast(tc,voidptr);
1123   } else {
1124     *ptr = voidptr;
1125   }
1126
1127   /* 
1128    *  DISOWN implementation: we need a perl guru to check this one.
1129    */
1130   if (tsv && (flags & SWIG_POINTER_DISOWN)) {
1131     /* 
1132      *  almost copy paste code from below SWIG_POINTER_OWN setting
1133      */
1134     SV *obj = sv;
1135     HV *stash = SvSTASH(SvRV(obj));
1136     GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE);
1137     if (isGV(gv)) {
1138       HV *hv = GvHVn(gv);
1139       /*
1140        * To set ownership (see below), a newSViv(1) entry is added. 
1141        * Hence, to remove ownership, we delete the entry.
1142        */
1143       if (hv_exists_ent(hv, obj, 0)) {
1144         hv_delete_ent(hv, obj, 0, 0);
1145       }
1146     }
1147   }
1148   return SWIG_OK;
1149 }
1150
1151 SWIGRUNTIME void
1152 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
1153   if (ptr && (flags & SWIG_SHADOW)) {
1154     SV *self;
1155     SV *obj=newSV(0);
1156     HV *hash=newHV();
1157     HV *stash;
1158     sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr);
1159     stash=SvSTASH(SvRV(obj));
1160     if (flags & SWIG_POINTER_OWN) {
1161       HV *hv;
1162       GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1163       if (!isGV(gv))
1164         gv_init(gv, stash, "OWNER", 5, FALSE);
1165       hv=GvHVn(gv);
1166       hv_store_ent(hv, obj, newSViv(1), 0);
1167     }
1168     sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
1169     SvREFCNT_dec(obj);
1170     self=newRV_noinc((SV *)hash);
1171     sv_setsv(sv, self);
1172     SvREFCNT_dec((SV *)self);
1173     sv_bless(sv, stash);
1174   }
1175   else {
1176     sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr);
1177   }
1178 }
1179
1180 SWIGRUNTIMEINLINE SV *
1181 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
1182   SV *result = sv_newmortal();
1183   SWIG_MakePtr(result, ptr, t, flags);
1184   return result;
1185 }
1186
1187 SWIGRUNTIME void
1188 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
1189   char result[1024];
1190   char *r = result;
1191   if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
1192   *(r++) = '_';
1193   r = SWIG_PackData(r,ptr,sz);
1194   strcpy(r,SWIG_Perl_TypeProxyName(type));
1195   sv_setpv(sv, result);
1196 }
1197
1198 SWIGRUNTIME SV *
1199 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
1200   SV *result = sv_newmortal();
1201   SWIG_Perl_MakePackedObj(result, ptr, sz, type);
1202   return result;
1203 }
1204
1205 /* Convert a packed value value */
1206 SWIGRUNTIME int
1207 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
1208   swig_cast_info *tc;
1209   const char  *c = 0;
1210
1211   if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
1212   c = SvPV_nolen(obj);
1213   /* Pointer values must start with leading underscore */
1214   if (*c != '_') return SWIG_ERROR;
1215   c++;
1216   c = SWIG_UnpackData(c,ptr,sz);
1217   if (ty) {
1218     tc = SWIG_TypeCheck(c,ty);
1219     if (!tc) return SWIG_ERROR;
1220   }
1221   return SWIG_OK;
1222 }
1223
1224
1225 /* Macros for low-level exception handling */
1226 #define SWIG_croak(x)    { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1227
1228
1229 typedef XSPROTO(SwigPerlWrapper);
1230 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
1231
1232 /* Structure for command table */
1233 typedef struct {
1234   const char         *name;
1235   SwigPerlWrapperPtr  wrapper;
1236 } swig_command_info;
1237
1238 /* Information for constant table */
1239
1240 #define SWIG_INT     1
1241 #define SWIG_FLOAT   2
1242 #define SWIG_STRING  3
1243 #define SWIG_POINTER 4
1244 #define SWIG_BINARY  5
1245
1246 /* Constant information structure */
1247 typedef struct swig_constant_info {
1248     int              type;
1249     const char      *name;
1250     long             lvalue;
1251     double           dvalue;
1252     void            *pvalue;
1253     swig_type_info **ptype;
1254 } swig_constant_info;
1255
1256
1257 /* Structure for variable table */
1258 typedef struct {
1259   const char   *name;
1260   SwigMagicFunc   set;
1261   SwigMagicFunc   get;
1262   swig_type_info  **type;
1263 } swig_variable_info;
1264
1265 /* Magic variable code */
1266 #ifndef PERL_OBJECT
1267 #define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
1268   #ifndef MULTIPLICITY
1269      SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) 
1270   #else
1271      SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) 
1272   #endif
1273 #else
1274 #  define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
1275 SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) 
1276 #endif
1277 {
1278   MAGIC *mg;
1279   sv_magic(sv,sv,'U',(char *) name,strlen(name));
1280   mg = mg_find(sv,'U');
1281   mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
1282   mg->mg_virtual->svt_get = (SwigMagicFunc) get;
1283   mg->mg_virtual->svt_set = (SwigMagicFunc) set;
1284   mg->mg_virtual->svt_len = 0;
1285   mg->mg_virtual->svt_clear = 0;
1286   mg->mg_virtual->svt_free = 0;
1287 }
1288
1289
1290 SWIGRUNTIME swig_module_info *
1291 SWIG_Perl_GetModule(void) {
1292   static void *type_pointer = (void *)0;
1293   SV *pointer;
1294
1295   /* first check if pointer already created */
1296   if (!type_pointer) {
1297     pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE);
1298     if (pointer && SvOK(pointer)) {
1299       type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
1300     }
1301   }
1302
1303   return (swig_module_info *) type_pointer;
1304 }
1305
1306 SWIGRUNTIME void
1307 SWIG_Perl_SetModule(swig_module_info *module) {
1308   SV *pointer;
1309
1310   /* create a new pointer */
1311   pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE);
1312   sv_setiv(pointer, PTR2IV(module));
1313 }
1314
1315 #ifdef __cplusplus
1316 }
1317 #endif
1318
1319 /* Workaround perl5 global namespace pollution. Note that undefining library
1320  * functions like fopen will not solve the problem on all platforms as fopen
1321  * might be a macro on Windows but not necessarily on other operating systems. */
1322 #ifdef do_open
1323   #undef do_open
1324 #endif
1325 #ifdef do_close
1326   #undef do_close
1327 #endif
1328 #ifdef scalar
1329   #undef scalar
1330 #endif
1331 #ifdef list
1332   #undef list
1333 #endif
1334 #ifdef apply
1335   #undef apply
1336 #endif
1337 #ifdef convert
1338   #undef convert
1339 #endif
1340 #ifdef Error
1341   #undef Error
1342 #endif
1343 #ifdef form
1344   #undef form
1345 #endif
1346 #ifdef vform
1347   #undef vform
1348 #endif
1349 #ifdef LABEL
1350   #undef LABEL
1351 #endif
1352 #ifdef METHOD
1353   #undef METHOD
1354 #endif
1355 #ifdef Move
1356   #undef Move
1357 #endif
1358 #ifdef yylex
1359   #undef yylex
1360 #endif
1361 #ifdef yyparse
1362   #undef yyparse
1363 #endif
1364 #ifdef yyerror
1365   #undef yyerror
1366 #endif
1367 #ifdef invert
1368   #undef invert
1369 #endif
1370 #ifdef ref
1371   #undef ref
1372 #endif
1373 #ifdef read
1374   #undef read
1375 #endif
1376 #ifdef write
1377   #undef write
1378 #endif
1379 #ifdef eof
1380   #undef eof
1381 #endif
1382 #ifdef bool
1383   #undef bool
1384 #endif
1385 #ifdef close
1386   #undef close
1387 #endif
1388 #ifdef rewind
1389   #undef rewind
1390 #endif
1391 #ifdef free
1392   #undef free
1393 #endif
1394 #ifdef malloc
1395   #undef malloc
1396 #endif
1397 #ifdef calloc
1398   #undef calloc
1399 #endif
1400 #ifdef Stat
1401   #undef Stat
1402 #endif
1403 #ifdef check
1404   #undef check
1405 #endif
1406 #ifdef seekdir
1407   #undef seekdir
1408 #endif
1409 #ifdef open
1410   #undef open
1411 #endif
1412
1413
1414
1415 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 
1416
1417 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 
1418
1419
1420
1421   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) 
1422
1423
1424 /* -------- TYPES TABLE (BEGIN) -------- */
1425
1426 #define SWIGTYPE_p_a_STRMAX__char swig_types[0]
1427 #define SWIGTYPE_p_char swig_types[1]
1428 #define SWIGTYPE_p_double swig_types[2]
1429 #define SWIGTYPE_p_dumpfile_t swig_types[3]
1430 #define SWIGTYPE_p_float swig_types[4]
1431 #define SWIGTYPE_p_int swig_types[5]
1432 #define SWIGTYPE_p_unsigned_char swig_types[6]
1433 static swig_type_info *swig_types[8];
1434 static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
1435 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1436 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1437
1438 /* -------- TYPES TABLE (END) -------- */
1439
1440 #define SWIG_init    boot_Amanda__Types
1441
1442 #define SWIG_name   "Amanda::Typesc::boot_Amanda__Types"
1443 #define SWIG_prefix "Amanda::Typesc::"
1444
1445 #define SWIGVERSION 0x010333 
1446 #define SWIG_VERSION SWIGVERSION
1447
1448
1449 #define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
1450 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
1451
1452
1453 #ifdef __cplusplus
1454 extern "C"
1455 #endif
1456 #ifndef PERL_OBJECT
1457 #ifndef MULTIPLICITY
1458 SWIGEXPORT void SWIG_init (CV* cv);
1459 #else
1460 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1461 #endif
1462 #else
1463 SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
1464 #endif
1465
1466
1467 #include "amglue.h"
1468
1469
1470 #include "amglue.h"
1471
1472
1473 #include "amglue.h"
1474
1475
1476 #include "fileheader.h"
1477
1478
1479 SWIGINTERNINLINE SV *
1480 SWIG_From_long  SWIG_PERL_DECL_ARGS_1(long value)
1481 {    
1482   SV *obj = sv_newmortal();
1483   sv_setiv(obj, (IV) value);
1484   return obj;
1485 }
1486
1487
1488 SWIGINTERNINLINE SV *
1489 SWIG_From_int  SWIG_PERL_DECL_ARGS_1(int value)
1490 {    
1491   return SWIG_From_long  SWIG_PERL_CALL_ARGS_1(value);
1492 }
1493
1494
1495 #include <limits.h>
1496 #if !defined(SWIG_NO_LLONG_MAX)
1497 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1498 #   define LLONG_MAX __LONG_LONG_MAX__
1499 #   define LLONG_MIN (-LLONG_MAX - 1LL)
1500 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1501 # endif
1502 #endif
1503
1504
1505 SWIGINTERN int
1506 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1507 {
1508   if (SvNIOK(obj)) {
1509     if (val) *val = SvNV(obj);
1510     return SWIG_OK;
1511   } else if (SvIOK(obj)) {
1512     if (val) *val = (double) SvIV(obj);
1513     return SWIG_AddCast(SWIG_OK);
1514   } else {
1515     const char *nptr = SvPV_nolen(obj);
1516     if (nptr) {
1517       char *endptr;
1518       double v = strtod(nptr, &endptr);
1519       if (errno == ERANGE) {
1520         errno = 0;
1521         return SWIG_OverflowError;
1522       } else {
1523         if (*endptr == '\0') {
1524           if (val) *val = v;
1525           return SWIG_Str2NumCast(SWIG_OK);
1526         }
1527       }
1528     }
1529   }
1530   return SWIG_TypeError;
1531 }
1532
1533
1534 #include <float.h>
1535
1536
1537 #include <math.h>
1538
1539
1540 SWIGINTERNINLINE int
1541 SWIG_CanCastAsInteger(double *d, double min, double max) {
1542   double x = *d;
1543   if ((min <= x && x <= max)) {
1544    double fx = floor(x);
1545    double cx = ceil(x);
1546    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
1547    if ((errno == EDOM) || (errno == ERANGE)) {
1548      errno = 0;
1549    } else {
1550      double summ, reps, diff;
1551      if (rd < x) {
1552        diff = x - rd;
1553      } else if (rd > x) {
1554        diff = rd - x;
1555      } else {
1556        return 1;
1557      }
1558      summ = rd + x;
1559      reps = diff/summ;
1560      if (reps < 8*DBL_EPSILON) {
1561        *d = rd;
1562        return 1;
1563      }
1564    }
1565   }
1566   return 0;
1567 }
1568
1569
1570 SWIGINTERN int
1571 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1572 {
1573   if (SvIOK(obj)) {
1574     if (val) *val = SvIV(obj);
1575     return SWIG_OK;
1576   } else {
1577     int dispatch = 0;
1578     const char *nptr = SvPV_nolen(obj);
1579     if (nptr) {
1580       char *endptr;
1581       long v;
1582       errno = 0;
1583       v = strtol(nptr, &endptr,0);
1584       if (errno == ERANGE) {
1585         errno = 0;
1586         return SWIG_OverflowError;
1587       } else {
1588         if (*endptr == '\0') {
1589           if (val) *val = v;
1590           return SWIG_Str2NumCast(SWIG_OK);
1591         }
1592       }
1593     }
1594     if (!dispatch) {
1595       double d;
1596       int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1597       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
1598         if (val) *val = (long)(d);
1599         return res;
1600       }
1601     }
1602   }
1603   return SWIG_TypeError;
1604 }
1605
1606
1607 SWIGINTERN int
1608 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1609 {
1610   long v;
1611   int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1612   if (SWIG_IsOK(res)) {
1613     if ((v < INT_MIN || v > INT_MAX)) {
1614       return SWIG_OverflowError;
1615     } else {
1616       if (val) *val = (int)(v);
1617     }
1618   }  
1619   return res;
1620 }
1621
1622
1623 SWIGINTERN swig_type_info*
1624 SWIG_pchar_descriptor(void)
1625 {
1626   static int init = 0;
1627   static swig_type_info* info = 0;
1628   if (!init) {
1629     info = SWIG_TypeQuery("_p_char");
1630     init = 1;
1631   }
1632   return info;
1633 }
1634
1635
1636 SWIGINTERN int
1637 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1638 {
1639   if (SvPOK(obj)) {
1640     STRLEN len = 0;
1641     char *cstr = SvPV(obj, len); 
1642     size_t size = len + 1;
1643     if (cptr)  {
1644       if (alloc) {
1645         if (*alloc == SWIG_NEWOBJ) {
1646           *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1647         } else {
1648           *cptr = cstr;
1649           *alloc = SWIG_OLDOBJ;
1650         }
1651       }
1652     }
1653     if (psize) *psize = size;
1654     return SWIG_OK;
1655   } else {
1656     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1657     if (pchar_descriptor) {
1658       char* vptr = 0; 
1659       if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
1660         if (cptr) *cptr = vptr;
1661         if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1662         if (alloc) *alloc = SWIG_OLDOBJ;
1663         return SWIG_OK;
1664       }
1665     }
1666   }
1667   return SWIG_TypeError;
1668 }
1669
1670
1671 SWIGINTERN int
1672 SWIG_AsCharArray(SV * obj, char *val, size_t size)
1673
1674   char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
1675   int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
1676   if (SWIG_IsOK(res)) {
1677     if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
1678     if (csize <= size) {
1679       if (val) {
1680         if (csize) memcpy(val, cptr, csize*sizeof(char));
1681         if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
1682       }
1683       if (alloc == SWIG_NEWOBJ) {
1684         free((char*)cptr);
1685         res = SWIG_DelNewMask(res);
1686       }      
1687       return res;
1688     }
1689     if (alloc == SWIG_NEWOBJ) free((char*)cptr);
1690   }
1691   return SWIG_TypeError;
1692 }
1693
1694
1695 SWIGINTERNINLINE SV *
1696 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1697 {
1698   SV *obj = sv_newmortal();
1699   if (carray) {
1700     sv_setpvn(obj, carray, size);
1701   } else {
1702     sv_setsv(obj, &PL_sv_undef);
1703   }
1704   return obj;
1705 }
1706
1707
1708 SWIGINTERN int
1709 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) 
1710 {
1711   if (SvUOK(obj)) {
1712     if (val) *val = SvUV(obj);
1713     return SWIG_OK;
1714   } else  if (SvIOK(obj)) {
1715     long v = SvIV(obj);
1716     if (v >= 0) {
1717       if (val) *val = v;
1718       return SWIG_OK;
1719     } else {
1720       return SWIG_OverflowError;
1721     }
1722   } else {
1723     int dispatch = 0;
1724     const char *nptr = SvPV_nolen(obj);
1725     if (nptr) {
1726       char *endptr;
1727       unsigned long v;
1728       errno = 0;
1729       v = strtoul(nptr, &endptr,0);
1730       if (errno == ERANGE) {
1731         errno = 0;
1732         return SWIG_OverflowError;
1733       } else {
1734         if (*endptr == '\0') {
1735           if (val) *val = v;
1736           return SWIG_Str2NumCast(SWIG_OK);
1737         }
1738       }
1739     }
1740     if (!dispatch) {
1741       double d;
1742       int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1743       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
1744         if (val) *val = (unsigned long)(d);
1745         return res;
1746       }
1747     }
1748   }
1749   return SWIG_TypeError;
1750 }
1751
1752
1753 SWIGINTERNINLINE int
1754 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
1755 {
1756   unsigned long v;
1757   int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
1758   if (SWIG_IsOK(res) && val) *val = (size_t)(v);
1759   return res;
1760 }
1761
1762 SWIGINTERN dumpfile_t *new_dumpfile_t(){
1763             dumpfile_t *df = malloc(sizeof(*df));
1764             fh_init(df);
1765             return df;
1766         }
1767 #ifdef __cplusplus
1768 extern "C" {
1769 #endif
1770
1771 #ifdef PERL_OBJECT
1772 #define MAGIC_CLASS _wrap_Amanda::Types_var::
1773 class _wrap_Amanda::Types_var : public CPerlObj {
1774 public:
1775 #else
1776 #define MAGIC_CLASS
1777 #endif
1778 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
1779     MAGIC_PPERL
1780     croak("Value is read-only.");
1781     return 0;
1782 }
1783
1784
1785 #ifdef PERL_OBJECT
1786 };
1787 #endif
1788
1789 #ifdef __cplusplus
1790 }
1791 #endif
1792
1793 #ifdef __cplusplus
1794 extern "C" {
1795 #endif
1796 XS(_wrap_dumpfile_t_type_set) {
1797   {
1798     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1799     filetype_t arg2 ;
1800     void *argp1 = 0 ;
1801     int res1 = 0 ;
1802     int argvi = 0;
1803     dXSARGS;
1804     
1805     if ((items < 2) || (items > 2)) {
1806       SWIG_croak("Usage: dumpfile_t_type_set(self,type);");
1807     }
1808     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
1809     if (!SWIG_IsOK(res1)) {
1810       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_type_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
1811     }
1812     arg1 = (dumpfile_t *)(argp1);
1813     {
1814       if (sizeof(signed int) == 1) {
1815         arg2 = amglue_SvI8(ST(1));
1816       } else if (sizeof(signed int) == 2) {
1817         arg2 = amglue_SvI16(ST(1));
1818       } else if (sizeof(signed int) == 4) {
1819         arg2 = amglue_SvI32(ST(1));
1820       } else if (sizeof(signed int) == 8) {
1821         arg2 = amglue_SvI64(ST(1));
1822       } else {
1823         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
1824       }
1825     }
1826     if (arg1) (arg1)->type = arg2;
1827     
1828     
1829     
1830     
1831     XSRETURN(argvi);
1832   fail:
1833     
1834     
1835     SWIG_croak_null();
1836   }
1837 }
1838
1839
1840 XS(_wrap_dumpfile_t_type_get) {
1841   {
1842     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1843     filetype_t result;
1844     void *argp1 = 0 ;
1845     int res1 = 0 ;
1846     int argvi = 0;
1847     dXSARGS;
1848     
1849     if ((items < 1) || (items > 1)) {
1850       SWIG_croak("Usage: dumpfile_t_type_get(self);");
1851     }
1852     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
1853     if (!SWIG_IsOK(res1)) {
1854       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_type_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
1855     }
1856     arg1 = (dumpfile_t *)(argp1);
1857     result = (filetype_t) ((arg1)->type);
1858     {
1859       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
1860       argvi++;
1861     }
1862     
1863     XSRETURN(argvi);
1864   fail:
1865     
1866     SWIG_croak_null();
1867   }
1868 }
1869
1870
1871 XS(_wrap_dumpfile_t_datestamp_set) {
1872   {
1873     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1874     char *arg2 ;
1875     void *argp1 = 0 ;
1876     int res1 = 0 ;
1877     char temp2[STRMAX] ;
1878     int res2 ;
1879     int argvi = 0;
1880     dXSARGS;
1881     
1882     if ((items < 2) || (items > 2)) {
1883       SWIG_croak("Usage: dumpfile_t_datestamp_set(self,datestamp);");
1884     }
1885     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
1886     if (!SWIG_IsOK(res1)) {
1887       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_datestamp_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
1888     }
1889     arg1 = (dumpfile_t *)(argp1);
1890     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
1891     if (!SWIG_IsOK(res2)) {
1892       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_datestamp_set" "', argument " "2"" of type '" "char [STRMAX]""'");
1893     }
1894     arg2 = (char *)(temp2);
1895     {
1896       strncpy(arg1->datestamp, arg2, STRMAX);
1897       if (arg1->datestamp[STRMAX-1] != '\0')
1898       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
1899     }
1900     
1901     
1902     
1903     XSRETURN(argvi);
1904   fail:
1905     
1906     
1907     SWIG_croak_null();
1908   }
1909 }
1910
1911
1912 XS(_wrap_dumpfile_t_datestamp_get) {
1913   {
1914     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1915     char *result = 0 ;
1916     void *argp1 = 0 ;
1917     int res1 = 0 ;
1918     int argvi = 0;
1919     dXSARGS;
1920     
1921     if ((items < 1) || (items > 1)) {
1922       SWIG_croak("Usage: dumpfile_t_datestamp_get(self);");
1923     }
1924     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
1925     if (!SWIG_IsOK(res1)) {
1926       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_datestamp_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
1927     }
1928     arg1 = (dumpfile_t *)(argp1);
1929     result = (char *) ((arg1)->datestamp);
1930     {
1931       size_t size = STRMAX;
1932       
1933       while (size && (result[size - 1] == '\0')) --size;
1934       
1935       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
1936     }
1937     
1938     XSRETURN(argvi);
1939   fail:
1940     
1941     SWIG_croak_null();
1942   }
1943 }
1944
1945
1946 XS(_wrap_dumpfile_t_dumplevel_set) {
1947   {
1948     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1949     int arg2 ;
1950     void *argp1 = 0 ;
1951     int res1 = 0 ;
1952     int argvi = 0;
1953     dXSARGS;
1954     
1955     if ((items < 2) || (items > 2)) {
1956       SWIG_croak("Usage: dumpfile_t_dumplevel_set(self,dumplevel);");
1957     }
1958     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
1959     if (!SWIG_IsOK(res1)) {
1960       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_dumplevel_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
1961     }
1962     arg1 = (dumpfile_t *)(argp1);
1963     {
1964       if (sizeof(signed int) == 1) {
1965         arg2 = amglue_SvI8(ST(1));
1966       } else if (sizeof(signed int) == 2) {
1967         arg2 = amglue_SvI16(ST(1));
1968       } else if (sizeof(signed int) == 4) {
1969         arg2 = amglue_SvI32(ST(1));
1970       } else if (sizeof(signed int) == 8) {
1971         arg2 = amglue_SvI64(ST(1));
1972       } else {
1973         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
1974       }
1975     }
1976     if (arg1) (arg1)->dumplevel = arg2;
1977     
1978     
1979     
1980     
1981     XSRETURN(argvi);
1982   fail:
1983     
1984     
1985     SWIG_croak_null();
1986   }
1987 }
1988
1989
1990 XS(_wrap_dumpfile_t_dumplevel_get) {
1991   {
1992     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
1993     int result;
1994     void *argp1 = 0 ;
1995     int res1 = 0 ;
1996     int argvi = 0;
1997     dXSARGS;
1998     
1999     if ((items < 1) || (items > 1)) {
2000       SWIG_croak("Usage: dumpfile_t_dumplevel_get(self);");
2001     }
2002     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2003     if (!SWIG_IsOK(res1)) {
2004       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_dumplevel_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2005     }
2006     arg1 = (dumpfile_t *)(argp1);
2007     result = (int) ((arg1)->dumplevel);
2008     {
2009       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2010       argvi++;
2011     }
2012     
2013     XSRETURN(argvi);
2014   fail:
2015     
2016     SWIG_croak_null();
2017   }
2018 }
2019
2020
2021 XS(_wrap_dumpfile_t_compressed_set) {
2022   {
2023     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2024     int arg2 ;
2025     void *argp1 = 0 ;
2026     int res1 = 0 ;
2027     int argvi = 0;
2028     dXSARGS;
2029     
2030     if ((items < 2) || (items > 2)) {
2031       SWIG_croak("Usage: dumpfile_t_compressed_set(self,compressed);");
2032     }
2033     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2034     if (!SWIG_IsOK(res1)) {
2035       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_compressed_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2036     }
2037     arg1 = (dumpfile_t *)(argp1);
2038     {
2039       if (sizeof(signed int) == 1) {
2040         arg2 = amglue_SvI8(ST(1));
2041       } else if (sizeof(signed int) == 2) {
2042         arg2 = amglue_SvI16(ST(1));
2043       } else if (sizeof(signed int) == 4) {
2044         arg2 = amglue_SvI32(ST(1));
2045       } else if (sizeof(signed int) == 8) {
2046         arg2 = amglue_SvI64(ST(1));
2047       } else {
2048         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
2049       }
2050     }
2051     if (arg1) (arg1)->compressed = arg2;
2052     
2053     
2054     
2055     
2056     XSRETURN(argvi);
2057   fail:
2058     
2059     
2060     SWIG_croak_null();
2061   }
2062 }
2063
2064
2065 XS(_wrap_dumpfile_t_compressed_get) {
2066   {
2067     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2068     int result;
2069     void *argp1 = 0 ;
2070     int res1 = 0 ;
2071     int argvi = 0;
2072     dXSARGS;
2073     
2074     if ((items < 1) || (items > 1)) {
2075       SWIG_croak("Usage: dumpfile_t_compressed_get(self);");
2076     }
2077     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2078     if (!SWIG_IsOK(res1)) {
2079       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_compressed_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2080     }
2081     arg1 = (dumpfile_t *)(argp1);
2082     result = (int) ((arg1)->compressed);
2083     {
2084       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2085       argvi++;
2086     }
2087     
2088     XSRETURN(argvi);
2089   fail:
2090     
2091     SWIG_croak_null();
2092   }
2093 }
2094
2095
2096 XS(_wrap_dumpfile_t_encrypted_set) {
2097   {
2098     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2099     int arg2 ;
2100     void *argp1 = 0 ;
2101     int res1 = 0 ;
2102     int argvi = 0;
2103     dXSARGS;
2104     
2105     if ((items < 2) || (items > 2)) {
2106       SWIG_croak("Usage: dumpfile_t_encrypted_set(self,encrypted);");
2107     }
2108     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2109     if (!SWIG_IsOK(res1)) {
2110       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypted_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2111     }
2112     arg1 = (dumpfile_t *)(argp1);
2113     {
2114       if (sizeof(signed int) == 1) {
2115         arg2 = amglue_SvI8(ST(1));
2116       } else if (sizeof(signed int) == 2) {
2117         arg2 = amglue_SvI16(ST(1));
2118       } else if (sizeof(signed int) == 4) {
2119         arg2 = amglue_SvI32(ST(1));
2120       } else if (sizeof(signed int) == 8) {
2121         arg2 = amglue_SvI64(ST(1));
2122       } else {
2123         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
2124       }
2125     }
2126     if (arg1) (arg1)->encrypted = arg2;
2127     
2128     
2129     
2130     
2131     XSRETURN(argvi);
2132   fail:
2133     
2134     
2135     SWIG_croak_null();
2136   }
2137 }
2138
2139
2140 XS(_wrap_dumpfile_t_encrypted_get) {
2141   {
2142     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2143     int result;
2144     void *argp1 = 0 ;
2145     int res1 = 0 ;
2146     int argvi = 0;
2147     dXSARGS;
2148     
2149     if ((items < 1) || (items > 1)) {
2150       SWIG_croak("Usage: dumpfile_t_encrypted_get(self);");
2151     }
2152     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2153     if (!SWIG_IsOK(res1)) {
2154       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypted_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2155     }
2156     arg1 = (dumpfile_t *)(argp1);
2157     result = (int) ((arg1)->encrypted);
2158     {
2159       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
2160       argvi++;
2161     }
2162     
2163     XSRETURN(argvi);
2164   fail:
2165     
2166     SWIG_croak_null();
2167   }
2168 }
2169
2170
2171 XS(_wrap_dumpfile_t_comp_suffix_set) {
2172   {
2173     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2174     char *arg2 ;
2175     void *argp1 = 0 ;
2176     int res1 = 0 ;
2177     char temp2[STRMAX] ;
2178     int res2 ;
2179     int argvi = 0;
2180     dXSARGS;
2181     
2182     if ((items < 2) || (items > 2)) {
2183       SWIG_croak("Usage: dumpfile_t_comp_suffix_set(self,comp_suffix);");
2184     }
2185     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2186     if (!SWIG_IsOK(res1)) {
2187       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_comp_suffix_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2188     }
2189     arg1 = (dumpfile_t *)(argp1);
2190     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2191     if (!SWIG_IsOK(res2)) {
2192       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_comp_suffix_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2193     }
2194     arg2 = (char *)(temp2);
2195     {
2196       strncpy(arg1->comp_suffix, arg2, STRMAX);
2197       if (arg1->comp_suffix[STRMAX-1] != '\0')
2198       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2199     }
2200     
2201     
2202     
2203     XSRETURN(argvi);
2204   fail:
2205     
2206     
2207     SWIG_croak_null();
2208   }
2209 }
2210
2211
2212 XS(_wrap_dumpfile_t_comp_suffix_get) {
2213   {
2214     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2215     char *result = 0 ;
2216     void *argp1 = 0 ;
2217     int res1 = 0 ;
2218     int argvi = 0;
2219     dXSARGS;
2220     
2221     if ((items < 1) || (items > 1)) {
2222       SWIG_croak("Usage: dumpfile_t_comp_suffix_get(self);");
2223     }
2224     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2225     if (!SWIG_IsOK(res1)) {
2226       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_comp_suffix_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2227     }
2228     arg1 = (dumpfile_t *)(argp1);
2229     result = (char *) ((arg1)->comp_suffix);
2230     {
2231       size_t size = STRMAX;
2232       
2233       while (size && (result[size - 1] == '\0')) --size;
2234       
2235       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2236     }
2237     
2238     XSRETURN(argvi);
2239   fail:
2240     
2241     SWIG_croak_null();
2242   }
2243 }
2244
2245
2246 XS(_wrap_dumpfile_t_encrypt_suffix_set) {
2247   {
2248     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2249     char *arg2 ;
2250     void *argp1 = 0 ;
2251     int res1 = 0 ;
2252     char temp2[STRMAX] ;
2253     int res2 ;
2254     int argvi = 0;
2255     dXSARGS;
2256     
2257     if ((items < 2) || (items > 2)) {
2258       SWIG_croak("Usage: dumpfile_t_encrypt_suffix_set(self,encrypt_suffix);");
2259     }
2260     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2261     if (!SWIG_IsOK(res1)) {
2262       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypt_suffix_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2263     }
2264     arg1 = (dumpfile_t *)(argp1);
2265     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2266     if (!SWIG_IsOK(res2)) {
2267       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_encrypt_suffix_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2268     }
2269     arg2 = (char *)(temp2);
2270     {
2271       strncpy(arg1->encrypt_suffix, arg2, STRMAX);
2272       if (arg1->encrypt_suffix[STRMAX-1] != '\0')
2273       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2274     }
2275     
2276     
2277     
2278     XSRETURN(argvi);
2279   fail:
2280     
2281     
2282     SWIG_croak_null();
2283   }
2284 }
2285
2286
2287 XS(_wrap_dumpfile_t_encrypt_suffix_get) {
2288   {
2289     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2290     char *result = 0 ;
2291     void *argp1 = 0 ;
2292     int res1 = 0 ;
2293     int argvi = 0;
2294     dXSARGS;
2295     
2296     if ((items < 1) || (items > 1)) {
2297       SWIG_croak("Usage: dumpfile_t_encrypt_suffix_get(self);");
2298     }
2299     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2300     if (!SWIG_IsOK(res1)) {
2301       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypt_suffix_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2302     }
2303     arg1 = (dumpfile_t *)(argp1);
2304     result = (char *) ((arg1)->encrypt_suffix);
2305     {
2306       size_t size = STRMAX;
2307       
2308       while (size && (result[size - 1] == '\0')) --size;
2309       
2310       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2311     }
2312     
2313     XSRETURN(argvi);
2314   fail:
2315     
2316     SWIG_croak_null();
2317   }
2318 }
2319
2320
2321 XS(_wrap_dumpfile_t_name_set) {
2322   {
2323     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2324     char *arg2 ;
2325     void *argp1 = 0 ;
2326     int res1 = 0 ;
2327     char temp2[STRMAX] ;
2328     int res2 ;
2329     int argvi = 0;
2330     dXSARGS;
2331     
2332     if ((items < 2) || (items > 2)) {
2333       SWIG_croak("Usage: dumpfile_t_name_set(self,name);");
2334     }
2335     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2336     if (!SWIG_IsOK(res1)) {
2337       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_name_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2338     }
2339     arg1 = (dumpfile_t *)(argp1);
2340     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2341     if (!SWIG_IsOK(res2)) {
2342       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_name_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2343     }
2344     arg2 = (char *)(temp2);
2345     {
2346       strncpy(arg1->name, arg2, STRMAX);
2347       if (arg1->name[STRMAX-1] != '\0')
2348       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2349     }
2350     
2351     
2352     
2353     XSRETURN(argvi);
2354   fail:
2355     
2356     
2357     SWIG_croak_null();
2358   }
2359 }
2360
2361
2362 XS(_wrap_dumpfile_t_name_get) {
2363   {
2364     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2365     char *result = 0 ;
2366     void *argp1 = 0 ;
2367     int res1 = 0 ;
2368     int argvi = 0;
2369     dXSARGS;
2370     
2371     if ((items < 1) || (items > 1)) {
2372       SWIG_croak("Usage: dumpfile_t_name_get(self);");
2373     }
2374     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2375     if (!SWIG_IsOK(res1)) {
2376       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_name_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2377     }
2378     arg1 = (dumpfile_t *)(argp1);
2379     result = (char *) ((arg1)->name);
2380     {
2381       size_t size = STRMAX;
2382       
2383       while (size && (result[size - 1] == '\0')) --size;
2384       
2385       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2386     }
2387     
2388     XSRETURN(argvi);
2389   fail:
2390     
2391     SWIG_croak_null();
2392   }
2393 }
2394
2395
2396 XS(_wrap_dumpfile_t_disk_set) {
2397   {
2398     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2399     char *arg2 ;
2400     void *argp1 = 0 ;
2401     int res1 = 0 ;
2402     char temp2[STRMAX] ;
2403     int res2 ;
2404     int argvi = 0;
2405     dXSARGS;
2406     
2407     if ((items < 2) || (items > 2)) {
2408       SWIG_croak("Usage: dumpfile_t_disk_set(self,disk);");
2409     }
2410     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2411     if (!SWIG_IsOK(res1)) {
2412       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_disk_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2413     }
2414     arg1 = (dumpfile_t *)(argp1);
2415     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2416     if (!SWIG_IsOK(res2)) {
2417       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_disk_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2418     }
2419     arg2 = (char *)(temp2);
2420     {
2421       strncpy(arg1->disk, arg2, STRMAX);
2422       if (arg1->disk[STRMAX-1] != '\0')
2423       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2424     }
2425     
2426     
2427     
2428     XSRETURN(argvi);
2429   fail:
2430     
2431     
2432     SWIG_croak_null();
2433   }
2434 }
2435
2436
2437 XS(_wrap_dumpfile_t_disk_get) {
2438   {
2439     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2440     char *result = 0 ;
2441     void *argp1 = 0 ;
2442     int res1 = 0 ;
2443     int argvi = 0;
2444     dXSARGS;
2445     
2446     if ((items < 1) || (items > 1)) {
2447       SWIG_croak("Usage: dumpfile_t_disk_get(self);");
2448     }
2449     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2450     if (!SWIG_IsOK(res1)) {
2451       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_disk_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2452     }
2453     arg1 = (dumpfile_t *)(argp1);
2454     result = (char *) ((arg1)->disk);
2455     {
2456       size_t size = STRMAX;
2457       
2458       while (size && (result[size - 1] == '\0')) --size;
2459       
2460       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2461     }
2462     
2463     XSRETURN(argvi);
2464   fail:
2465     
2466     SWIG_croak_null();
2467   }
2468 }
2469
2470
2471 XS(_wrap_dumpfile_t_program_set) {
2472   {
2473     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2474     char *arg2 ;
2475     void *argp1 = 0 ;
2476     int res1 = 0 ;
2477     char temp2[STRMAX] ;
2478     int res2 ;
2479     int argvi = 0;
2480     dXSARGS;
2481     
2482     if ((items < 2) || (items > 2)) {
2483       SWIG_croak("Usage: dumpfile_t_program_set(self,program);");
2484     }
2485     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2486     if (!SWIG_IsOK(res1)) {
2487       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_program_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2488     }
2489     arg1 = (dumpfile_t *)(argp1);
2490     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2491     if (!SWIG_IsOK(res2)) {
2492       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_program_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2493     }
2494     arg2 = (char *)(temp2);
2495     {
2496       strncpy(arg1->program, arg2, STRMAX);
2497       if (arg1->program[STRMAX-1] != '\0')
2498       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2499     }
2500     
2501     
2502     
2503     XSRETURN(argvi);
2504   fail:
2505     
2506     
2507     SWIG_croak_null();
2508   }
2509 }
2510
2511
2512 XS(_wrap_dumpfile_t_program_get) {
2513   {
2514     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2515     char *result = 0 ;
2516     void *argp1 = 0 ;
2517     int res1 = 0 ;
2518     int argvi = 0;
2519     dXSARGS;
2520     
2521     if ((items < 1) || (items > 1)) {
2522       SWIG_croak("Usage: dumpfile_t_program_get(self);");
2523     }
2524     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2525     if (!SWIG_IsOK(res1)) {
2526       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_program_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2527     }
2528     arg1 = (dumpfile_t *)(argp1);
2529     result = (char *) ((arg1)->program);
2530     {
2531       size_t size = STRMAX;
2532       
2533       while (size && (result[size - 1] == '\0')) --size;
2534       
2535       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2536     }
2537     
2538     XSRETURN(argvi);
2539   fail:
2540     
2541     SWIG_croak_null();
2542   }
2543 }
2544
2545
2546 XS(_wrap_dumpfile_t_dumper_set) {
2547   {
2548     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2549     char *arg2 ;
2550     void *argp1 = 0 ;
2551     int res1 = 0 ;
2552     char temp2[STRMAX] ;
2553     int res2 ;
2554     int argvi = 0;
2555     dXSARGS;
2556     
2557     if ((items < 2) || (items > 2)) {
2558       SWIG_croak("Usage: dumpfile_t_dumper_set(self,dumper);");
2559     }
2560     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2561     if (!SWIG_IsOK(res1)) {
2562       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_dumper_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2563     }
2564     arg1 = (dumpfile_t *)(argp1);
2565     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2566     if (!SWIG_IsOK(res2)) {
2567       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_dumper_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2568     }
2569     arg2 = (char *)(temp2);
2570     {
2571       strncpy(arg1->dumper, arg2, STRMAX);
2572       if (arg1->dumper[STRMAX-1] != '\0')
2573       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2574     }
2575     
2576     
2577     
2578     XSRETURN(argvi);
2579   fail:
2580     
2581     
2582     SWIG_croak_null();
2583   }
2584 }
2585
2586
2587 XS(_wrap_dumpfile_t_dumper_get) {
2588   {
2589     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2590     char *result = 0 ;
2591     void *argp1 = 0 ;
2592     int res1 = 0 ;
2593     int argvi = 0;
2594     dXSARGS;
2595     
2596     if ((items < 1) || (items > 1)) {
2597       SWIG_croak("Usage: dumpfile_t_dumper_get(self);");
2598     }
2599     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2600     if (!SWIG_IsOK(res1)) {
2601       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_dumper_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2602     }
2603     arg1 = (dumpfile_t *)(argp1);
2604     result = (char *) ((arg1)->dumper);
2605     {
2606       size_t size = STRMAX;
2607       
2608       while (size && (result[size - 1] == '\0')) --size;
2609       
2610       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2611     }
2612     
2613     XSRETURN(argvi);
2614   fail:
2615     
2616     SWIG_croak_null();
2617   }
2618 }
2619
2620
2621 XS(_wrap_dumpfile_t_srvcompprog_set) {
2622   {
2623     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2624     char *arg2 ;
2625     void *argp1 = 0 ;
2626     int res1 = 0 ;
2627     char temp2[STRMAX] ;
2628     int res2 ;
2629     int argvi = 0;
2630     dXSARGS;
2631     
2632     if ((items < 2) || (items > 2)) {
2633       SWIG_croak("Usage: dumpfile_t_srvcompprog_set(self,srvcompprog);");
2634     }
2635     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2636     if (!SWIG_IsOK(res1)) {
2637       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srvcompprog_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2638     }
2639     arg1 = (dumpfile_t *)(argp1);
2640     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2641     if (!SWIG_IsOK(res2)) {
2642       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_srvcompprog_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2643     }
2644     arg2 = (char *)(temp2);
2645     {
2646       strncpy(arg1->srvcompprog, arg2, STRMAX);
2647       if (arg1->srvcompprog[STRMAX-1] != '\0')
2648       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2649     }
2650     
2651     
2652     
2653     XSRETURN(argvi);
2654   fail:
2655     
2656     
2657     SWIG_croak_null();
2658   }
2659 }
2660
2661
2662 XS(_wrap_dumpfile_t_srvcompprog_get) {
2663   {
2664     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2665     char *result = 0 ;
2666     void *argp1 = 0 ;
2667     int res1 = 0 ;
2668     int argvi = 0;
2669     dXSARGS;
2670     
2671     if ((items < 1) || (items > 1)) {
2672       SWIG_croak("Usage: dumpfile_t_srvcompprog_get(self);");
2673     }
2674     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2675     if (!SWIG_IsOK(res1)) {
2676       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srvcompprog_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2677     }
2678     arg1 = (dumpfile_t *)(argp1);
2679     result = (char *) ((arg1)->srvcompprog);
2680     {
2681       size_t size = STRMAX;
2682       
2683       while (size && (result[size - 1] == '\0')) --size;
2684       
2685       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2686     }
2687     
2688     XSRETURN(argvi);
2689   fail:
2690     
2691     SWIG_croak_null();
2692   }
2693 }
2694
2695
2696 XS(_wrap_dumpfile_t_clntcompprog_set) {
2697   {
2698     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2699     char *arg2 ;
2700     void *argp1 = 0 ;
2701     int res1 = 0 ;
2702     char temp2[STRMAX] ;
2703     int res2 ;
2704     int argvi = 0;
2705     dXSARGS;
2706     
2707     if ((items < 2) || (items > 2)) {
2708       SWIG_croak("Usage: dumpfile_t_clntcompprog_set(self,clntcompprog);");
2709     }
2710     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2711     if (!SWIG_IsOK(res1)) {
2712       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clntcompprog_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2713     }
2714     arg1 = (dumpfile_t *)(argp1);
2715     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2716     if (!SWIG_IsOK(res2)) {
2717       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_clntcompprog_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2718     }
2719     arg2 = (char *)(temp2);
2720     {
2721       strncpy(arg1->clntcompprog, arg2, STRMAX);
2722       if (arg1->clntcompprog[STRMAX-1] != '\0')
2723       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2724     }
2725     
2726     
2727     
2728     XSRETURN(argvi);
2729   fail:
2730     
2731     
2732     SWIG_croak_null();
2733   }
2734 }
2735
2736
2737 XS(_wrap_dumpfile_t_clntcompprog_get) {
2738   {
2739     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2740     char *result = 0 ;
2741     void *argp1 = 0 ;
2742     int res1 = 0 ;
2743     int argvi = 0;
2744     dXSARGS;
2745     
2746     if ((items < 1) || (items > 1)) {
2747       SWIG_croak("Usage: dumpfile_t_clntcompprog_get(self);");
2748     }
2749     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2750     if (!SWIG_IsOK(res1)) {
2751       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clntcompprog_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2752     }
2753     arg1 = (dumpfile_t *)(argp1);
2754     result = (char *) ((arg1)->clntcompprog);
2755     {
2756       size_t size = STRMAX;
2757       
2758       while (size && (result[size - 1] == '\0')) --size;
2759       
2760       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2761     }
2762     
2763     XSRETURN(argvi);
2764   fail:
2765     
2766     SWIG_croak_null();
2767   }
2768 }
2769
2770
2771 XS(_wrap_dumpfile_t_srv_encrypt_set) {
2772   {
2773     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2774     char *arg2 ;
2775     void *argp1 = 0 ;
2776     int res1 = 0 ;
2777     char temp2[STRMAX] ;
2778     int res2 ;
2779     int argvi = 0;
2780     dXSARGS;
2781     
2782     if ((items < 2) || (items > 2)) {
2783       SWIG_croak("Usage: dumpfile_t_srv_encrypt_set(self,srv_encrypt);");
2784     }
2785     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2786     if (!SWIG_IsOK(res1)) {
2787       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srv_encrypt_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2788     }
2789     arg1 = (dumpfile_t *)(argp1);
2790     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2791     if (!SWIG_IsOK(res2)) {
2792       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_srv_encrypt_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2793     }
2794     arg2 = (char *)(temp2);
2795     {
2796       strncpy(arg1->srv_encrypt, arg2, STRMAX);
2797       if (arg1->srv_encrypt[STRMAX-1] != '\0')
2798       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2799     }
2800     
2801     
2802     
2803     XSRETURN(argvi);
2804   fail:
2805     
2806     
2807     SWIG_croak_null();
2808   }
2809 }
2810
2811
2812 XS(_wrap_dumpfile_t_srv_encrypt_get) {
2813   {
2814     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2815     char *result = 0 ;
2816     void *argp1 = 0 ;
2817     int res1 = 0 ;
2818     int argvi = 0;
2819     dXSARGS;
2820     
2821     if ((items < 1) || (items > 1)) {
2822       SWIG_croak("Usage: dumpfile_t_srv_encrypt_get(self);");
2823     }
2824     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2825     if (!SWIG_IsOK(res1)) {
2826       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srv_encrypt_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2827     }
2828     arg1 = (dumpfile_t *)(argp1);
2829     result = (char *) ((arg1)->srv_encrypt);
2830     {
2831       size_t size = STRMAX;
2832       
2833       while (size && (result[size - 1] == '\0')) --size;
2834       
2835       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2836     }
2837     
2838     XSRETURN(argvi);
2839   fail:
2840     
2841     SWIG_croak_null();
2842   }
2843 }
2844
2845
2846 XS(_wrap_dumpfile_t_clnt_encrypt_set) {
2847   {
2848     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2849     char *arg2 ;
2850     void *argp1 = 0 ;
2851     int res1 = 0 ;
2852     char temp2[STRMAX] ;
2853     int res2 ;
2854     int argvi = 0;
2855     dXSARGS;
2856     
2857     if ((items < 2) || (items > 2)) {
2858       SWIG_croak("Usage: dumpfile_t_clnt_encrypt_set(self,clnt_encrypt);");
2859     }
2860     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2861     if (!SWIG_IsOK(res1)) {
2862       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clnt_encrypt_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2863     }
2864     arg1 = (dumpfile_t *)(argp1);
2865     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2866     if (!SWIG_IsOK(res2)) {
2867       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_clnt_encrypt_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2868     }
2869     arg2 = (char *)(temp2);
2870     {
2871       strncpy(arg1->clnt_encrypt, arg2, STRMAX);
2872       if (arg1->clnt_encrypt[STRMAX-1] != '\0')
2873       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2874     }
2875     
2876     
2877     
2878     XSRETURN(argvi);
2879   fail:
2880     
2881     
2882     SWIG_croak_null();
2883   }
2884 }
2885
2886
2887 XS(_wrap_dumpfile_t_clnt_encrypt_get) {
2888   {
2889     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2890     char *result = 0 ;
2891     void *argp1 = 0 ;
2892     int res1 = 0 ;
2893     int argvi = 0;
2894     dXSARGS;
2895     
2896     if ((items < 1) || (items > 1)) {
2897       SWIG_croak("Usage: dumpfile_t_clnt_encrypt_get(self);");
2898     }
2899     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2900     if (!SWIG_IsOK(res1)) {
2901       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clnt_encrypt_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2902     }
2903     arg1 = (dumpfile_t *)(argp1);
2904     result = (char *) ((arg1)->clnt_encrypt);
2905     {
2906       size_t size = STRMAX;
2907       
2908       while (size && (result[size - 1] == '\0')) --size;
2909       
2910       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2911     }
2912     
2913     XSRETURN(argvi);
2914   fail:
2915     
2916     SWIG_croak_null();
2917   }
2918 }
2919
2920
2921 XS(_wrap_dumpfile_t_recover_cmd_set) {
2922   {
2923     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2924     char *arg2 ;
2925     void *argp1 = 0 ;
2926     int res1 = 0 ;
2927     char temp2[STRMAX] ;
2928     int res2 ;
2929     int argvi = 0;
2930     dXSARGS;
2931     
2932     if ((items < 2) || (items > 2)) {
2933       SWIG_croak("Usage: dumpfile_t_recover_cmd_set(self,recover_cmd);");
2934     }
2935     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2936     if (!SWIG_IsOK(res1)) {
2937       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_recover_cmd_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2938     }
2939     arg1 = (dumpfile_t *)(argp1);
2940     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
2941     if (!SWIG_IsOK(res2)) {
2942       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_recover_cmd_set" "', argument " "2"" of type '" "char [STRMAX]""'");
2943     }
2944     arg2 = (char *)(temp2);
2945     {
2946       strncpy(arg1->recover_cmd, arg2, STRMAX);
2947       if (arg1->recover_cmd[STRMAX-1] != '\0')
2948       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
2949     }
2950     
2951     
2952     
2953     XSRETURN(argvi);
2954   fail:
2955     
2956     
2957     SWIG_croak_null();
2958   }
2959 }
2960
2961
2962 XS(_wrap_dumpfile_t_recover_cmd_get) {
2963   {
2964     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2965     char *result = 0 ;
2966     void *argp1 = 0 ;
2967     int res1 = 0 ;
2968     int argvi = 0;
2969     dXSARGS;
2970     
2971     if ((items < 1) || (items > 1)) {
2972       SWIG_croak("Usage: dumpfile_t_recover_cmd_get(self);");
2973     }
2974     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
2975     if (!SWIG_IsOK(res1)) {
2976       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_recover_cmd_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
2977     }
2978     arg1 = (dumpfile_t *)(argp1);
2979     result = (char *) ((arg1)->recover_cmd);
2980     {
2981       size_t size = STRMAX;
2982       
2983       while (size && (result[size - 1] == '\0')) --size;
2984       
2985       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
2986     }
2987     
2988     XSRETURN(argvi);
2989   fail:
2990     
2991     SWIG_croak_null();
2992   }
2993 }
2994
2995
2996 XS(_wrap_dumpfile_t_uncompress_cmd_set) {
2997   {
2998     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
2999     char *arg2 ;
3000     void *argp1 = 0 ;
3001     int res1 = 0 ;
3002     char temp2[STRMAX] ;
3003     int res2 ;
3004     int argvi = 0;
3005     dXSARGS;
3006     
3007     if ((items < 2) || (items > 2)) {
3008       SWIG_croak("Usage: dumpfile_t_uncompress_cmd_set(self,uncompress_cmd);");
3009     }
3010     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3011     if (!SWIG_IsOK(res1)) {
3012       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_uncompress_cmd_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3013     }
3014     arg1 = (dumpfile_t *)(argp1);
3015     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3016     if (!SWIG_IsOK(res2)) {
3017       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_uncompress_cmd_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3018     }
3019     arg2 = (char *)(temp2);
3020     {
3021       strncpy(arg1->uncompress_cmd, arg2, STRMAX);
3022       if (arg1->uncompress_cmd[STRMAX-1] != '\0')
3023       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3024     }
3025     
3026     
3027     
3028     XSRETURN(argvi);
3029   fail:
3030     
3031     
3032     SWIG_croak_null();
3033   }
3034 }
3035
3036
3037 XS(_wrap_dumpfile_t_uncompress_cmd_get) {
3038   {
3039     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3040     char *result = 0 ;
3041     void *argp1 = 0 ;
3042     int res1 = 0 ;
3043     int argvi = 0;
3044     dXSARGS;
3045     
3046     if ((items < 1) || (items > 1)) {
3047       SWIG_croak("Usage: dumpfile_t_uncompress_cmd_get(self);");
3048     }
3049     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3050     if (!SWIG_IsOK(res1)) {
3051       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_uncompress_cmd_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3052     }
3053     arg1 = (dumpfile_t *)(argp1);
3054     result = (char *) ((arg1)->uncompress_cmd);
3055     {
3056       size_t size = STRMAX;
3057       
3058       while (size && (result[size - 1] == '\0')) --size;
3059       
3060       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3061     }
3062     
3063     XSRETURN(argvi);
3064   fail:
3065     
3066     SWIG_croak_null();
3067   }
3068 }
3069
3070
3071 XS(_wrap_dumpfile_t_encrypt_cmd_set) {
3072   {
3073     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3074     char *arg2 ;
3075     void *argp1 = 0 ;
3076     int res1 = 0 ;
3077     char temp2[STRMAX] ;
3078     int res2 ;
3079     int argvi = 0;
3080     dXSARGS;
3081     
3082     if ((items < 2) || (items > 2)) {
3083       SWIG_croak("Usage: dumpfile_t_encrypt_cmd_set(self,encrypt_cmd);");
3084     }
3085     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3086     if (!SWIG_IsOK(res1)) {
3087       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypt_cmd_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3088     }
3089     arg1 = (dumpfile_t *)(argp1);
3090     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3091     if (!SWIG_IsOK(res2)) {
3092       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_encrypt_cmd_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3093     }
3094     arg2 = (char *)(temp2);
3095     {
3096       strncpy(arg1->encrypt_cmd, arg2, STRMAX);
3097       if (arg1->encrypt_cmd[STRMAX-1] != '\0')
3098       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3099     }
3100     
3101     
3102     
3103     XSRETURN(argvi);
3104   fail:
3105     
3106     
3107     SWIG_croak_null();
3108   }
3109 }
3110
3111
3112 XS(_wrap_dumpfile_t_encrypt_cmd_get) {
3113   {
3114     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3115     char *result = 0 ;
3116     void *argp1 = 0 ;
3117     int res1 = 0 ;
3118     int argvi = 0;
3119     dXSARGS;
3120     
3121     if ((items < 1) || (items > 1)) {
3122       SWIG_croak("Usage: dumpfile_t_encrypt_cmd_get(self);");
3123     }
3124     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3125     if (!SWIG_IsOK(res1)) {
3126       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_encrypt_cmd_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3127     }
3128     arg1 = (dumpfile_t *)(argp1);
3129     result = (char *) ((arg1)->encrypt_cmd);
3130     {
3131       size_t size = STRMAX;
3132       
3133       while (size && (result[size - 1] == '\0')) --size;
3134       
3135       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3136     }
3137     
3138     XSRETURN(argvi);
3139   fail:
3140     
3141     SWIG_croak_null();
3142   }
3143 }
3144
3145
3146 XS(_wrap_dumpfile_t_decrypt_cmd_set) {
3147   {
3148     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3149     char *arg2 ;
3150     void *argp1 = 0 ;
3151     int res1 = 0 ;
3152     char temp2[STRMAX] ;
3153     int res2 ;
3154     int argvi = 0;
3155     dXSARGS;
3156     
3157     if ((items < 2) || (items > 2)) {
3158       SWIG_croak("Usage: dumpfile_t_decrypt_cmd_set(self,decrypt_cmd);");
3159     }
3160     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3161     if (!SWIG_IsOK(res1)) {
3162       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_decrypt_cmd_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3163     }
3164     arg1 = (dumpfile_t *)(argp1);
3165     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3166     if (!SWIG_IsOK(res2)) {
3167       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_decrypt_cmd_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3168     }
3169     arg2 = (char *)(temp2);
3170     {
3171       strncpy(arg1->decrypt_cmd, arg2, STRMAX);
3172       if (arg1->decrypt_cmd[STRMAX-1] != '\0')
3173       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3174     }
3175     
3176     
3177     
3178     XSRETURN(argvi);
3179   fail:
3180     
3181     
3182     SWIG_croak_null();
3183   }
3184 }
3185
3186
3187 XS(_wrap_dumpfile_t_decrypt_cmd_get) {
3188   {
3189     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3190     char *result = 0 ;
3191     void *argp1 = 0 ;
3192     int res1 = 0 ;
3193     int argvi = 0;
3194     dXSARGS;
3195     
3196     if ((items < 1) || (items > 1)) {
3197       SWIG_croak("Usage: dumpfile_t_decrypt_cmd_get(self);");
3198     }
3199     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3200     if (!SWIG_IsOK(res1)) {
3201       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_decrypt_cmd_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3202     }
3203     arg1 = (dumpfile_t *)(argp1);
3204     result = (char *) ((arg1)->decrypt_cmd);
3205     {
3206       size_t size = STRMAX;
3207       
3208       while (size && (result[size - 1] == '\0')) --size;
3209       
3210       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3211     }
3212     
3213     XSRETURN(argvi);
3214   fail:
3215     
3216     SWIG_croak_null();
3217   }
3218 }
3219
3220
3221 XS(_wrap_dumpfile_t_srv_decrypt_opt_set) {
3222   {
3223     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3224     char *arg2 ;
3225     void *argp1 = 0 ;
3226     int res1 = 0 ;
3227     char temp2[STRMAX] ;
3228     int res2 ;
3229     int argvi = 0;
3230     dXSARGS;
3231     
3232     if ((items < 2) || (items > 2)) {
3233       SWIG_croak("Usage: dumpfile_t_srv_decrypt_opt_set(self,srv_decrypt_opt);");
3234     }
3235     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3236     if (!SWIG_IsOK(res1)) {
3237       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srv_decrypt_opt_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3238     }
3239     arg1 = (dumpfile_t *)(argp1);
3240     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3241     if (!SWIG_IsOK(res2)) {
3242       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_srv_decrypt_opt_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3243     }
3244     arg2 = (char *)(temp2);
3245     {
3246       strncpy(arg1->srv_decrypt_opt, arg2, STRMAX);
3247       if (arg1->srv_decrypt_opt[STRMAX-1] != '\0')
3248       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3249     }
3250     
3251     
3252     
3253     XSRETURN(argvi);
3254   fail:
3255     
3256     
3257     SWIG_croak_null();
3258   }
3259 }
3260
3261
3262 XS(_wrap_dumpfile_t_srv_decrypt_opt_get) {
3263   {
3264     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3265     char *result = 0 ;
3266     void *argp1 = 0 ;
3267     int res1 = 0 ;
3268     int argvi = 0;
3269     dXSARGS;
3270     
3271     if ((items < 1) || (items > 1)) {
3272       SWIG_croak("Usage: dumpfile_t_srv_decrypt_opt_get(self);");
3273     }
3274     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3275     if (!SWIG_IsOK(res1)) {
3276       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_srv_decrypt_opt_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3277     }
3278     arg1 = (dumpfile_t *)(argp1);
3279     result = (char *) ((arg1)->srv_decrypt_opt);
3280     {
3281       size_t size = STRMAX;
3282       
3283       while (size && (result[size - 1] == '\0')) --size;
3284       
3285       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3286     }
3287     
3288     XSRETURN(argvi);
3289   fail:
3290     
3291     SWIG_croak_null();
3292   }
3293 }
3294
3295
3296 XS(_wrap_dumpfile_t_clnt_decrypt_opt_set) {
3297   {
3298     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3299     char *arg2 ;
3300     void *argp1 = 0 ;
3301     int res1 = 0 ;
3302     char temp2[STRMAX] ;
3303     int res2 ;
3304     int argvi = 0;
3305     dXSARGS;
3306     
3307     if ((items < 2) || (items > 2)) {
3308       SWIG_croak("Usage: dumpfile_t_clnt_decrypt_opt_set(self,clnt_decrypt_opt);");
3309     }
3310     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3311     if (!SWIG_IsOK(res1)) {
3312       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clnt_decrypt_opt_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3313     }
3314     arg1 = (dumpfile_t *)(argp1);
3315     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3316     if (!SWIG_IsOK(res2)) {
3317       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_clnt_decrypt_opt_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3318     }
3319     arg2 = (char *)(temp2);
3320     {
3321       strncpy(arg1->clnt_decrypt_opt, arg2, STRMAX);
3322       if (arg1->clnt_decrypt_opt[STRMAX-1] != '\0')
3323       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3324     }
3325     
3326     
3327     
3328     XSRETURN(argvi);
3329   fail:
3330     
3331     
3332     SWIG_croak_null();
3333   }
3334 }
3335
3336
3337 XS(_wrap_dumpfile_t_clnt_decrypt_opt_get) {
3338   {
3339     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3340     char *result = 0 ;
3341     void *argp1 = 0 ;
3342     int res1 = 0 ;
3343     int argvi = 0;
3344     dXSARGS;
3345     
3346     if ((items < 1) || (items > 1)) {
3347       SWIG_croak("Usage: dumpfile_t_clnt_decrypt_opt_get(self);");
3348     }
3349     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3350     if (!SWIG_IsOK(res1)) {
3351       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_clnt_decrypt_opt_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3352     }
3353     arg1 = (dumpfile_t *)(argp1);
3354     result = (char *) ((arg1)->clnt_decrypt_opt);
3355     {
3356       size_t size = STRMAX;
3357       
3358       while (size && (result[size - 1] == '\0')) --size;
3359       
3360       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3361     }
3362     
3363     XSRETURN(argvi);
3364   fail:
3365     
3366     SWIG_croak_null();
3367   }
3368 }
3369
3370
3371 XS(_wrap_dumpfile_t_cont_filename_set) {
3372   {
3373     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3374     char *arg2 ;
3375     void *argp1 = 0 ;
3376     int res1 = 0 ;
3377     char temp2[STRMAX] ;
3378     int res2 ;
3379     int argvi = 0;
3380     dXSARGS;
3381     
3382     if ((items < 2) || (items > 2)) {
3383       SWIG_croak("Usage: dumpfile_t_cont_filename_set(self,cont_filename);");
3384     }
3385     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3386     if (!SWIG_IsOK(res1)) {
3387       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_cont_filename_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3388     }
3389     arg1 = (dumpfile_t *)(argp1);
3390     res2 = SWIG_AsCharArray(ST(1), temp2, STRMAX);
3391     if (!SWIG_IsOK(res2)) {
3392       SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumpfile_t_cont_filename_set" "', argument " "2"" of type '" "char [STRMAX]""'");
3393     }
3394     arg2 = (char *)(temp2);
3395     {
3396       strncpy(arg1->cont_filename, arg2, STRMAX);
3397       if (arg1->cont_filename[STRMAX-1] != '\0')
3398       SWIG_exception(SWIG_ValueError, "String too large for dumpfile_t");
3399     }
3400     
3401     
3402     
3403     XSRETURN(argvi);
3404   fail:
3405     
3406     
3407     SWIG_croak_null();
3408   }
3409 }
3410
3411
3412 XS(_wrap_dumpfile_t_cont_filename_get) {
3413   {
3414     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3415     char *result = 0 ;
3416     void *argp1 = 0 ;
3417     int res1 = 0 ;
3418     int argvi = 0;
3419     dXSARGS;
3420     
3421     if ((items < 1) || (items > 1)) {
3422       SWIG_croak("Usage: dumpfile_t_cont_filename_get(self);");
3423     }
3424     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3425     if (!SWIG_IsOK(res1)) {
3426       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_cont_filename_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3427     }
3428     arg1 = (dumpfile_t *)(argp1);
3429     result = (char *) ((arg1)->cont_filename);
3430     {
3431       size_t size = STRMAX;
3432       
3433       while (size && (result[size - 1] == '\0')) --size;
3434       
3435       ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
3436     }
3437     
3438     XSRETURN(argvi);
3439   fail:
3440     
3441     SWIG_croak_null();
3442   }
3443 }
3444
3445
3446 XS(_wrap_dumpfile_t_is_partial_set) {
3447   {
3448     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3449     int arg2 ;
3450     void *argp1 = 0 ;
3451     int res1 = 0 ;
3452     int argvi = 0;
3453     dXSARGS;
3454     
3455     if ((items < 2) || (items > 2)) {
3456       SWIG_croak("Usage: dumpfile_t_is_partial_set(self,is_partial);");
3457     }
3458     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3459     if (!SWIG_IsOK(res1)) {
3460       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_is_partial_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3461     }
3462     arg1 = (dumpfile_t *)(argp1);
3463     {
3464       if (sizeof(signed int) == 1) {
3465         arg2 = amglue_SvI8(ST(1));
3466       } else if (sizeof(signed int) == 2) {
3467         arg2 = amglue_SvI16(ST(1));
3468       } else if (sizeof(signed int) == 4) {
3469         arg2 = amglue_SvI32(ST(1));
3470       } else if (sizeof(signed int) == 8) {
3471         arg2 = amglue_SvI64(ST(1));
3472       } else {
3473         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3474       }
3475     }
3476     if (arg1) (arg1)->is_partial = arg2;
3477     
3478     
3479     
3480     
3481     XSRETURN(argvi);
3482   fail:
3483     
3484     
3485     SWIG_croak_null();
3486   }
3487 }
3488
3489
3490 XS(_wrap_dumpfile_t_is_partial_get) {
3491   {
3492     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3493     int result;
3494     void *argp1 = 0 ;
3495     int res1 = 0 ;
3496     int argvi = 0;
3497     dXSARGS;
3498     
3499     if ((items < 1) || (items > 1)) {
3500       SWIG_croak("Usage: dumpfile_t_is_partial_get(self);");
3501     }
3502     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3503     if (!SWIG_IsOK(res1)) {
3504       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_is_partial_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3505     }
3506     arg1 = (dumpfile_t *)(argp1);
3507     result = (int) ((arg1)->is_partial);
3508     {
3509       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3510       argvi++;
3511     }
3512     
3513     XSRETURN(argvi);
3514   fail:
3515     
3516     SWIG_croak_null();
3517   }
3518 }
3519
3520
3521 XS(_wrap_dumpfile_t_partnum_set) {
3522   {
3523     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3524     int arg2 ;
3525     void *argp1 = 0 ;
3526     int res1 = 0 ;
3527     int argvi = 0;
3528     dXSARGS;
3529     
3530     if ((items < 2) || (items > 2)) {
3531       SWIG_croak("Usage: dumpfile_t_partnum_set(self,partnum);");
3532     }
3533     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3534     if (!SWIG_IsOK(res1)) {
3535       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_partnum_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3536     }
3537     arg1 = (dumpfile_t *)(argp1);
3538     {
3539       if (sizeof(signed int) == 1) {
3540         arg2 = amglue_SvI8(ST(1));
3541       } else if (sizeof(signed int) == 2) {
3542         arg2 = amglue_SvI16(ST(1));
3543       } else if (sizeof(signed int) == 4) {
3544         arg2 = amglue_SvI32(ST(1));
3545       } else if (sizeof(signed int) == 8) {
3546         arg2 = amglue_SvI64(ST(1));
3547       } else {
3548         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3549       }
3550     }
3551     if (arg1) (arg1)->partnum = arg2;
3552     
3553     
3554     
3555     
3556     XSRETURN(argvi);
3557   fail:
3558     
3559     
3560     SWIG_croak_null();
3561   }
3562 }
3563
3564
3565 XS(_wrap_dumpfile_t_partnum_get) {
3566   {
3567     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3568     int result;
3569     void *argp1 = 0 ;
3570     int res1 = 0 ;
3571     int argvi = 0;
3572     dXSARGS;
3573     
3574     if ((items < 1) || (items > 1)) {
3575       SWIG_croak("Usage: dumpfile_t_partnum_get(self);");
3576     }
3577     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3578     if (!SWIG_IsOK(res1)) {
3579       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_partnum_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3580     }
3581     arg1 = (dumpfile_t *)(argp1);
3582     result = (int) ((arg1)->partnum);
3583     {
3584       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3585       argvi++;
3586     }
3587     
3588     XSRETURN(argvi);
3589   fail:
3590     
3591     SWIG_croak_null();
3592   }
3593 }
3594
3595
3596 XS(_wrap_dumpfile_t_totalparts_set) {
3597   {
3598     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3599     int arg2 ;
3600     void *argp1 = 0 ;
3601     int res1 = 0 ;
3602     int argvi = 0;
3603     dXSARGS;
3604     
3605     if ((items < 2) || (items > 2)) {
3606       SWIG_croak("Usage: dumpfile_t_totalparts_set(self,totalparts);");
3607     }
3608     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3609     if (!SWIG_IsOK(res1)) {
3610       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_totalparts_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3611     }
3612     arg1 = (dumpfile_t *)(argp1);
3613     {
3614       if (sizeof(signed int) == 1) {
3615         arg2 = amglue_SvI8(ST(1));
3616       } else if (sizeof(signed int) == 2) {
3617         arg2 = amglue_SvI16(ST(1));
3618       } else if (sizeof(signed int) == 4) {
3619         arg2 = amglue_SvI32(ST(1));
3620       } else if (sizeof(signed int) == 8) {
3621         arg2 = amglue_SvI64(ST(1));
3622       } else {
3623         g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */
3624       }
3625     }
3626     if (arg1) (arg1)->totalparts = arg2;
3627     
3628     
3629     
3630     
3631     XSRETURN(argvi);
3632   fail:
3633     
3634     
3635     SWIG_croak_null();
3636   }
3637 }
3638
3639
3640 XS(_wrap_dumpfile_t_totalparts_get) {
3641   {
3642     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3643     int result;
3644     void *argp1 = 0 ;
3645     int res1 = 0 ;
3646     int argvi = 0;
3647     dXSARGS;
3648     
3649     if ((items < 1) || (items > 1)) {
3650       SWIG_croak("Usage: dumpfile_t_totalparts_get(self);");
3651     }
3652     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3653     if (!SWIG_IsOK(res1)) {
3654       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_totalparts_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3655     }
3656     arg1 = (dumpfile_t *)(argp1);
3657     result = (int) ((arg1)->totalparts);
3658     {
3659       ST(argvi) = sv_2mortal(amglue_newSVi64(result));
3660       argvi++;
3661     }
3662     
3663     XSRETURN(argvi);
3664   fail:
3665     
3666     SWIG_croak_null();
3667   }
3668 }
3669
3670
3671 XS(_wrap_dumpfile_t_blocksize_set) {
3672   {
3673     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3674     size_t arg2 ;
3675     void *argp1 = 0 ;
3676     int res1 = 0 ;
3677     int argvi = 0;
3678     dXSARGS;
3679     
3680     if ((items < 2) || (items > 2)) {
3681       SWIG_croak("Usage: dumpfile_t_blocksize_set(self,blocksize);");
3682     }
3683     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3684     if (!SWIG_IsOK(res1)) {
3685       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_blocksize_set" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3686     }
3687     arg1 = (dumpfile_t *)(argp1);
3688     {
3689       if (sizeof(size_t) == 1) {
3690         arg2 = amglue_SvU8(ST(1));
3691       } else if (sizeof(size_t) == 2) {
3692         arg2 = amglue_SvU16(ST(1));
3693       } else if (sizeof(size_t) == 4) {
3694         arg2 = amglue_SvU32(ST(1));
3695       } else if (sizeof(size_t) == 8) {
3696         arg2 = amglue_SvU64(ST(1));
3697       } else {
3698         croak("Unexpected size_t >64 bits?"); /* should be optimized out unless sizeof(size_t) > 8 */
3699       }
3700     }
3701     if (arg1) (arg1)->blocksize = arg2;
3702     
3703     
3704     
3705     
3706     XSRETURN(argvi);
3707   fail:
3708     
3709     
3710     SWIG_croak_null();
3711   }
3712 }
3713
3714
3715 XS(_wrap_dumpfile_t_blocksize_get) {
3716   {
3717     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3718     size_t result;
3719     void *argp1 = 0 ;
3720     int res1 = 0 ;
3721     int argvi = 0;
3722     dXSARGS;
3723     
3724     if ((items < 1) || (items > 1)) {
3725       SWIG_croak("Usage: dumpfile_t_blocksize_get(self);");
3726     }
3727     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, 0 |  0 );
3728     if (!SWIG_IsOK(res1)) {
3729       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dumpfile_t_blocksize_get" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3730     }
3731     arg1 = (dumpfile_t *)(argp1);
3732     result =  ((arg1)->blocksize);
3733     {
3734       ST(argvi) = sv_2mortal(amglue_newSVu64(result));
3735       argvi++;
3736     }
3737     
3738     XSRETURN(argvi);
3739   fail:
3740     
3741     SWIG_croak_null();
3742   }
3743 }
3744
3745
3746 XS(_wrap_new_dumpfile_t) {
3747   {
3748     dumpfile_t *result = 0 ;
3749     int argvi = 0;
3750     dXSARGS;
3751     
3752     if ((items < 0) || (items > 0)) {
3753       SWIG_croak("Usage: new_dumpfile_t();");
3754     }
3755     result = (dumpfile_t *)new_dumpfile_t();
3756     ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dumpfile_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3757     XSRETURN(argvi);
3758   fail:
3759     SWIG_croak_null();
3760   }
3761 }
3762
3763
3764 XS(_wrap_delete_dumpfile_t__SWIG_1) {
3765   {
3766     dumpfile_t *arg1 = (dumpfile_t *) 0 ;
3767     void *argp1 = 0 ;
3768     int res1 = 0 ;
3769     int argvi = 0;
3770     dXSARGS;
3771     
3772     if ((items < 1) || (items > 1)) {
3773       SWIG_croak("Usage: delete_dumpfile_t(self);");
3774     }
3775     res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dumpfile_t, SWIG_POINTER_DISOWN |  0 );
3776     if (!SWIG_IsOK(res1)) {
3777       SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dumpfile_t" "', argument " "1"" of type '" "dumpfile_t *""'"); 
3778     }
3779     arg1 = (dumpfile_t *)(argp1);
3780     free((char *) arg1);
3781     
3782     
3783     
3784     XSRETURN(argvi);
3785   fail:
3786     
3787     SWIG_croak_null();
3788   }
3789 }
3790
3791
3792 XS(_wrap_delete_dumpfile_t) {
3793   dXSARGS;
3794   
3795   {
3796     unsigned long _index = 0;
3797     SWIG_TypeRank _rank = 0; 
3798     if (items == 1) {
3799       SWIG_TypeRank _ranki = 0;
3800       SWIG_TypeRank _rankm = 0;
3801       SWIG_TypeRank _pi = 1;
3802       int _v = 0;
3803       {
3804         void *vptr = 0;
3805         int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_dumpfile_t, 0);
3806         _v = SWIG_CheckState(res);
3807       }
3808       if (!_v) goto check_1;
3809       _ranki += _v*_pi;
3810       _rankm += _pi;
3811       _pi *= SWIG_MAXCASTRANK;
3812       if (!_index || (_ranki < _rank)) {
3813         _rank = _ranki; _index = 1;
3814         if (_rank == _rankm) goto dispatch;
3815       }
3816     }
3817   check_1:
3818     
3819   dispatch:
3820     switch(_index) {
3821     case 1:
3822       ++PL_markstack_ptr; SWIG_CALLXS(_wrap_delete_dumpfile_t__SWIG_1); return;
3823     }
3824   }
3825   
3826   croak("No matching function for overloaded 'delete_dumpfile_t'");
3827   XSRETURN(0);
3828 }
3829
3830
3831
3832 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3833
3834 static swig_type_info _swigt__p_a_STRMAX__char = {"_p_a_STRMAX__char", "char (*)[STRMAX]|string_t *", 0, 0, (void*)0, 0};
3835 static swig_type_info _swigt__p_char = {"_p_char", "gchar *|char *", 0, 0, (void*)0, 0};
3836 static swig_type_info _swigt__p_double = {"_p_double", "double *|gdouble *", 0, 0, (void*)0, 0};
3837 static swig_type_info _swigt__p_dumpfile_t = {"_p_dumpfile_t", "dumpfile_t *", 0, 0, (void*)"Amanda::Types::dumpfile_t", 0};
3838 static swig_type_info _swigt__p_float = {"_p_float", "float *|gfloat *", 0, 0, (void*)0, 0};
3839 static swig_type_info _swigt__p_int = {"_p_int", "int *|filetype_t *|gboolean *", 0, 0, (void*)0, 0};
3840 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "guchar *|unsigned char *", 0, 0, (void*)0, 0};
3841
3842 static swig_type_info *swig_type_initial[] = {
3843   &_swigt__p_a_STRMAX__char,
3844   &_swigt__p_char,
3845   &_swigt__p_double,
3846   &_swigt__p_dumpfile_t,
3847   &_swigt__p_float,
3848   &_swigt__p_int,
3849   &_swigt__p_unsigned_char,
3850 };
3851
3852 static swig_cast_info _swigc__p_a_STRMAX__char[] = {  {&_swigt__p_a_STRMAX__char, 0, 0, 0},{0, 0, 0, 0}};
3853 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
3854 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
3855 static swig_cast_info _swigc__p_dumpfile_t[] = {  {&_swigt__p_dumpfile_t, 0, 0, 0},{0, 0, 0, 0}};
3856 static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
3857 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
3858 static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
3859
3860 static swig_cast_info *swig_cast_initial[] = {
3861   _swigc__p_a_STRMAX__char,
3862   _swigc__p_char,
3863   _swigc__p_double,
3864   _swigc__p_dumpfile_t,
3865   _swigc__p_float,
3866   _swigc__p_int,
3867   _swigc__p_unsigned_char,
3868 };
3869
3870
3871 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3872
3873 static swig_constant_info swig_constants[] = {
3874 {0,0,0,0,0,0}
3875 };
3876 #ifdef __cplusplus
3877 }
3878 #endif
3879 static swig_variable_info swig_variables[] = {
3880 {0,0,0,0}
3881 };
3882 static swig_command_info swig_commands[] = {
3883 {"Amanda::Typesc::dumpfile_t_type_set", _wrap_dumpfile_t_type_set},
3884 {"Amanda::Typesc::dumpfile_t_type_get", _wrap_dumpfile_t_type_get},
3885 {"Amanda::Typesc::dumpfile_t_datestamp_set", _wrap_dumpfile_t_datestamp_set},
3886 {"Amanda::Typesc::dumpfile_t_datestamp_get", _wrap_dumpfile_t_datestamp_get},
3887 {"Amanda::Typesc::dumpfile_t_dumplevel_set", _wrap_dumpfile_t_dumplevel_set},
3888 {"Amanda::Typesc::dumpfile_t_dumplevel_get", _wrap_dumpfile_t_dumplevel_get},
3889 {"Amanda::Typesc::dumpfile_t_compressed_set", _wrap_dumpfile_t_compressed_set},
3890 {"Amanda::Typesc::dumpfile_t_compressed_get", _wrap_dumpfile_t_compressed_get},
3891 {"Amanda::Typesc::dumpfile_t_encrypted_set", _wrap_dumpfile_t_encrypted_set},
3892 {"Amanda::Typesc::dumpfile_t_encrypted_get", _wrap_dumpfile_t_encrypted_get},
3893 {"Amanda::Typesc::dumpfile_t_comp_suffix_set", _wrap_dumpfile_t_comp_suffix_set},
3894 {"Amanda::Typesc::dumpfile_t_comp_suffix_get", _wrap_dumpfile_t_comp_suffix_get},
3895 {"Amanda::Typesc::dumpfile_t_encrypt_suffix_set", _wrap_dumpfile_t_encrypt_suffix_set},
3896 {"Amanda::Typesc::dumpfile_t_encrypt_suffix_get", _wrap_dumpfile_t_encrypt_suffix_get},
3897 {"Amanda::Typesc::dumpfile_t_name_set", _wrap_dumpfile_t_name_set},
3898 {"Amanda::Typesc::dumpfile_t_name_get", _wrap_dumpfile_t_name_get},
3899 {"Amanda::Typesc::dumpfile_t_disk_set", _wrap_dumpfile_t_disk_set},
3900 {"Amanda::Typesc::dumpfile_t_disk_get", _wrap_dumpfile_t_disk_get},
3901 {"Amanda::Typesc::dumpfile_t_program_set", _wrap_dumpfile_t_program_set},
3902 {"Amanda::Typesc::dumpfile_t_program_get", _wrap_dumpfile_t_program_get},
3903 {"Amanda::Typesc::dumpfile_t_dumper_set", _wrap_dumpfile_t_dumper_set},
3904 {"Amanda::Typesc::dumpfile_t_dumper_get", _wrap_dumpfile_t_dumper_get},
3905 {"Amanda::Typesc::dumpfile_t_srvcompprog_set", _wrap_dumpfile_t_srvcompprog_set},
3906 {"Amanda::Typesc::dumpfile_t_srvcompprog_get", _wrap_dumpfile_t_srvcompprog_get},
3907 {"Amanda::Typesc::dumpfile_t_clntcompprog_set", _wrap_dumpfile_t_clntcompprog_set},
3908 {"Amanda::Typesc::dumpfile_t_clntcompprog_get", _wrap_dumpfile_t_clntcompprog_get},
3909 {"Amanda::Typesc::dumpfile_t_srv_encrypt_set", _wrap_dumpfile_t_srv_encrypt_set},
3910 {"Amanda::Typesc::dumpfile_t_srv_encrypt_get", _wrap_dumpfile_t_srv_encrypt_get},
3911 {"Amanda::Typesc::dumpfile_t_clnt_encrypt_set", _wrap_dumpfile_t_clnt_encrypt_set},
3912 {"Amanda::Typesc::dumpfile_t_clnt_encrypt_get", _wrap_dumpfile_t_clnt_encrypt_get},
3913 {"Amanda::Typesc::dumpfile_t_recover_cmd_set", _wrap_dumpfile_t_recover_cmd_set},
3914 {"Amanda::Typesc::dumpfile_t_recover_cmd_get", _wrap_dumpfile_t_recover_cmd_get},
3915 {"Amanda::Typesc::dumpfile_t_uncompress_cmd_set", _wrap_dumpfile_t_uncompress_cmd_set},
3916 {"Amanda::Typesc::dumpfile_t_uncompress_cmd_get", _wrap_dumpfile_t_uncompress_cmd_get},
3917 {"Amanda::Typesc::dumpfile_t_encrypt_cmd_set", _wrap_dumpfile_t_encrypt_cmd_set},
3918 {"Amanda::Typesc::dumpfile_t_encrypt_cmd_get", _wrap_dumpfile_t_encrypt_cmd_get},
3919 {"Amanda::Typesc::dumpfile_t_decrypt_cmd_set", _wrap_dumpfile_t_decrypt_cmd_set},
3920 {"Amanda::Typesc::dumpfile_t_decrypt_cmd_get", _wrap_dumpfile_t_decrypt_cmd_get},
3921 {"Amanda::Typesc::dumpfile_t_srv_decrypt_opt_set", _wrap_dumpfile_t_srv_decrypt_opt_set},
3922 {"Amanda::Typesc::dumpfile_t_srv_decrypt_opt_get", _wrap_dumpfile_t_srv_decrypt_opt_get},
3923 {"Amanda::Typesc::dumpfile_t_clnt_decrypt_opt_set", _wrap_dumpfile_t_clnt_decrypt_opt_set},
3924 {"Amanda::Typesc::dumpfile_t_clnt_decrypt_opt_get", _wrap_dumpfile_t_clnt_decrypt_opt_get},
3925 {"Amanda::Typesc::dumpfile_t_cont_filename_set", _wrap_dumpfile_t_cont_filename_set},
3926 {"Amanda::Typesc::dumpfile_t_cont_filename_get", _wrap_dumpfile_t_cont_filename_get},
3927 {"Amanda::Typesc::dumpfile_t_is_partial_set", _wrap_dumpfile_t_is_partial_set},
3928 {"Amanda::Typesc::dumpfile_t_is_partial_get", _wrap_dumpfile_t_is_partial_get},
3929 {"Amanda::Typesc::dumpfile_t_partnum_set", _wrap_dumpfile_t_partnum_set},
3930 {"Amanda::Typesc::dumpfile_t_partnum_get", _wrap_dumpfile_t_partnum_get},
3931 {"Amanda::Typesc::dumpfile_t_totalparts_set", _wrap_dumpfile_t_totalparts_set},
3932 {"Amanda::Typesc::dumpfile_t_totalparts_get", _wrap_dumpfile_t_totalparts_get},
3933 {"Amanda::Typesc::dumpfile_t_blocksize_set", _wrap_dumpfile_t_blocksize_set},
3934 {"Amanda::Typesc::dumpfile_t_blocksize_get", _wrap_dumpfile_t_blocksize_get},
3935 {"Amanda::Typesc::new_dumpfile_t", _wrap_new_dumpfile_t},
3936 {"Amanda::Typesc::delete_dumpfile_t", _wrap_delete_dumpfile_t},
3937 {0,0}
3938 };
3939 /* -----------------------------------------------------------------------------
3940  * Type initialization:
3941  * This problem is tough by the requirement that no dynamic 
3942  * memory is used. Also, since swig_type_info structures store pointers to 
3943  * swig_cast_info structures and swig_cast_info structures store pointers back
3944  * to swig_type_info structures, we need some lookup code at initialization. 
3945  * The idea is that swig generates all the structures that are needed. 
3946  * The runtime then collects these partially filled structures. 
3947  * The SWIG_InitializeModule function takes these initial arrays out of 
3948  * swig_module, and does all the lookup, filling in the swig_module.types
3949  * array with the correct data and linking the correct swig_cast_info
3950  * structures together.
3951  *
3952  * The generated swig_type_info structures are assigned staticly to an initial 
3953  * array. We just loop through that array, and handle each type individually.
3954  * First we lookup if this type has been already loaded, and if so, use the
3955  * loaded structure instead of the generated one. Then we have to fill in the
3956  * cast linked list. The cast data is initially stored in something like a
3957  * two-dimensional array. Each row corresponds to a type (there are the same
3958  * number of rows as there are in the swig_type_initial array). Each entry in
3959  * a column is one of the swig_cast_info structures for that type.
3960  * The cast_initial array is actually an array of arrays, because each row has
3961  * a variable number of columns. So to actually build the cast linked list,
3962  * we find the array of casts associated with the type, and loop through it 
3963  * adding the casts to the list. The one last trick we need to do is making
3964  * sure the type pointer in the swig_cast_info struct is correct.
3965  *
3966  * First off, we lookup the cast->type name to see if it is already loaded. 
3967  * There are three cases to handle:
3968  *  1) If the cast->type has already been loaded AND the type we are adding
3969  *     casting info to has not been loaded (it is in this module), THEN we
3970  *     replace the cast->type pointer with the type pointer that has already
3971  *     been loaded.
3972  *  2) If BOTH types (the one we are adding casting info to, and the 
3973  *     cast->type) are loaded, THEN the cast info has already been loaded by
3974  *     the previous module so we just ignore it.
3975  *  3) Finally, if cast->type has not already been loaded, then we add that
3976  *     swig_cast_info to the linked list (because the cast->type) pointer will
3977  *     be correct.
3978  * ----------------------------------------------------------------------------- */
3979
3980 #ifdef __cplusplus
3981 extern "C" {
3982 #if 0
3983 } /* c-mode */
3984 #endif
3985 #endif
3986
3987 #if 0
3988 #define SWIGRUNTIME_DEBUG
3989 #endif
3990
3991
3992 SWIGRUNTIME void
3993 SWIG_InitializeModule(void *clientdata) {
3994   size_t i;
3995   swig_module_info *module_head, *iter;
3996   int found;
3997   
3998   clientdata = clientdata;
3999   
4000   /* check to see if the circular list has been setup, if not, set it up */
4001   if (swig_module.next==0) {
4002     /* Initialize the swig_module */
4003     swig_module.type_initial = swig_type_initial;
4004     swig_module.cast_initial = swig_cast_initial;
4005     swig_module.next = &swig_module;
4006   }
4007   
4008   /* Try and load any already created modules */
4009   module_head = SWIG_GetModule(clientdata);
4010   if (!module_head) {
4011     /* This is the first module loaded for this interpreter */
4012     /* so set the swig module into the interpreter */
4013     SWIG_SetModule(clientdata, &swig_module);
4014     module_head = &swig_module;
4015   } else {
4016     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
4017     found=0;
4018     iter=module_head;
4019     do {
4020       if (iter==&swig_module) {
4021         found=1;
4022         break;
4023       }
4024       iter=iter->next;
4025     } while (iter!= module_head);
4026     
4027     /* if the is found in the list, then all is done and we may leave */
4028     if (found) return;
4029     /* otherwise we must add out module into the list */
4030     swig_module.next = module_head->next;
4031     module_head->next = &swig_module;
4032   }
4033   
4034   /* Now work on filling in swig_module.types */
4035 #ifdef SWIGRUNTIME_DEBUG
4036   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
4037 #endif
4038   for (i = 0; i < swig_module.size; ++i) {
4039     swig_type_info *type = 0;
4040     swig_type_info *ret;
4041     swig_cast_info *cast;
4042     
4043 #ifdef SWIGRUNTIME_DEBUG
4044     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
4045 #endif
4046     
4047     /* if there is another module already loaded */
4048     if (swig_module.next != &swig_module) {
4049       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
4050     }
4051     if (type) {
4052       /* Overwrite clientdata field */
4053 #ifdef SWIGRUNTIME_DEBUG
4054       printf("SWIG_InitializeModule: found type %s\n", type->name);
4055 #endif
4056       if (swig_module.type_initial[i]->clientdata) {
4057         type->clientdata = swig_module.type_initial[i]->clientdata;
4058 #ifdef SWIGRUNTIME_DEBUG
4059         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
4060 #endif
4061       }
4062     } else {
4063       type = swig_module.type_initial[i];
4064     }
4065     
4066     /* Insert casting types */
4067     cast = swig_module.cast_initial[i];
4068     while (cast->type) {
4069       /* Don't need to add information already in the list */
4070       ret = 0;
4071 #ifdef SWIGRUNTIME_DEBUG
4072       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
4073 #endif
4074       if (swig_module.next != &swig_module) {
4075         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
4076 #ifdef SWIGRUNTIME_DEBUG
4077         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
4078 #endif
4079       }
4080       if (ret) {
4081         if (type == swig_module.type_initial[i]) {
4082 #ifdef SWIGRUNTIME_DEBUG
4083           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
4084 #endif
4085           cast->type = ret;
4086           ret = 0;
4087         } else {
4088           /* Check for casting already in the list */
4089           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
4090 #ifdef SWIGRUNTIME_DEBUG
4091           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
4092 #endif
4093           if (!ocast) ret = 0;
4094         }
4095       }
4096       
4097       if (!ret) {
4098 #ifdef SWIGRUNTIME_DEBUG
4099         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
4100 #endif
4101         if (type->cast) {
4102           type->cast->prev = cast;
4103           cast->next = type->cast;
4104         }
4105         type->cast = cast;
4106       }
4107       cast++;
4108     }
4109     /* Set entry in modules->types array equal to the type */
4110     swig_module.types[i] = type;
4111   }
4112   swig_module.types[i] = 0;
4113   
4114 #ifdef SWIGRUNTIME_DEBUG
4115   printf("**** SWIG_InitializeModule: Cast List ******\n");
4116   for (i = 0; i < swig_module.size; ++i) {
4117     int j = 0;
4118     swig_cast_info *cast = swig_module.cast_initial[i];
4119     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
4120     while (cast->type) {
4121       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
4122       cast++;
4123       ++j;
4124     }
4125     printf("---- Total casts: %d\n",j);
4126   }
4127   printf("**** SWIG_InitializeModule: Cast List ******\n");
4128 #endif
4129 }
4130
4131 /* This function will propagate the clientdata field of type to
4132 * any new swig_type_info structures that have been added into the list
4133 * of equivalent types.  It is like calling
4134 * SWIG_TypeClientData(type, clientdata) a second time.
4135 */
4136 SWIGRUNTIME void
4137 SWIG_PropagateClientData(void) {
4138   size_t i;
4139   swig_cast_info *equiv;
4140   static int init_run = 0;
4141   
4142   if (init_run) return;
4143   init_run = 1;
4144   
4145   for (i = 0; i < swig_module.size; i++) {
4146     if (swig_module.types[i]->clientdata) {
4147       equiv = swig_module.types[i]->cast;
4148       while (equiv) {
4149         if (!equiv->converter) {
4150           if (equiv->type && !equiv->type->clientdata)
4151           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
4152         }
4153         equiv = equiv->next;
4154       }
4155     }
4156   }
4157 }
4158
4159 #ifdef __cplusplus
4160 #if 0
4161 {
4162   /* c-mode */
4163 #endif
4164 }
4165 #endif
4166
4167
4168
4169 #ifdef __cplusplus
4170 extern "C"
4171 #endif
4172
4173 XS(SWIG_init) {
4174   dXSARGS;
4175   int i;
4176   
4177   SWIG_InitializeModule(0);
4178   
4179   /* Install commands */
4180   for (i = 0; swig_commands[i].name; i++) {
4181     newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__);
4182   }
4183   
4184   /* Install variables */
4185   for (i = 0; swig_variables[i].name; i++) {
4186     SV *sv;
4187     sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2);
4188     if (swig_variables[i].type) {
4189       SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
4190     } else {
4191       sv_setiv(sv,(IV) 0);
4192     }
4193     swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); 
4194   }
4195   
4196   /* Install constant */
4197   for (i = 0; swig_constants[i].type; i++) {
4198     SV *sv;
4199     sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2);
4200     switch(swig_constants[i].type) {
4201     case SWIG_INT:
4202       sv_setiv(sv, (IV) swig_constants[i].lvalue);
4203       break;
4204     case SWIG_FLOAT:
4205       sv_setnv(sv, (double) swig_constants[i].dvalue);
4206       break;
4207     case SWIG_STRING:
4208       sv_setpv(sv, (char *) swig_constants[i].pvalue);
4209       break;
4210     case SWIG_POINTER:
4211       SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
4212       break;
4213     case SWIG_BINARY:
4214       SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
4215       break;
4216     default:
4217       break;
4218     }
4219     SvREADONLY_on(sv);
4220   }
4221   
4222   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4223     SV *sv = get_sv((char*) SWIG_prefix "F_UNKNOWN", TRUE | 0x2);
4224     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_UNKNOWN)));
4225     SvREADONLY_on(sv);
4226   } while(0) /*@SWIG@*/;
4227   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4228     SV *sv = get_sv((char*) SWIG_prefix "F_WEIRD", TRUE | 0x2);
4229     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_WEIRD)));
4230     SvREADONLY_on(sv);
4231   } while(0) /*@SWIG@*/;
4232   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4233     SV *sv = get_sv((char*) SWIG_prefix "F_TAPESTART", TRUE | 0x2);
4234     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_TAPESTART)));
4235     SvREADONLY_on(sv);
4236   } while(0) /*@SWIG@*/;
4237   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4238     SV *sv = get_sv((char*) SWIG_prefix "F_TAPEEND", TRUE | 0x2);
4239     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_TAPEEND)));
4240     SvREADONLY_on(sv);
4241   } while(0) /*@SWIG@*/;
4242   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4243     SV *sv = get_sv((char*) SWIG_prefix "F_DUMPFILE", TRUE | 0x2);
4244     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_DUMPFILE)));
4245     SvREADONLY_on(sv);
4246   } while(0) /*@SWIG@*/;
4247   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4248     SV *sv = get_sv((char*) SWIG_prefix "F_CONT_DUMPFILE", TRUE | 0x2);
4249     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_CONT_DUMPFILE)));
4250     SvREADONLY_on(sv);
4251   } while(0) /*@SWIG@*/;
4252   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4253     SV *sv = get_sv((char*) SWIG_prefix "F_SPLIT_DUMPFILE", TRUE | 0x2);
4254     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_SPLIT_DUMPFILE)));
4255     SvREADONLY_on(sv);
4256   } while(0) /*@SWIG@*/;
4257   /*@SWIG:/usr/share/swig/1.3.33/perl5/perltypemaps.swg,64,%set_constant@*/ do {
4258     SV *sv = get_sv((char*) SWIG_prefix "F_EMPTY", TRUE | 0x2);
4259     sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(F_EMPTY)));
4260     SvREADONLY_on(sv);
4261   } while(0) /*@SWIG@*/;
4262   SWIG_TypeClientData(SWIGTYPE_p_dumpfile_t, (void*) "Amanda::Types::dumpfile_t");
4263   ST(0) = &PL_sv_yes;
4264   XSRETURN(1);
4265 }
4266