1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.2
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 
12 #ifndef SWIGPYTHON
13 #define SWIGPYTHON
14 #endif
15 
16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
17 #define SWIGPYTHON_BUILTIN
18 
19 /* -----------------------------------------------------------------------------
20  *  This section contains generic SWIG labels for method/variable
21  *  declarations/attributes, and other compiler dependent labels.
22  * ----------------------------------------------------------------------------- */
23 
24 /* template workaround for compilers that cannot correctly implement the C++ standard */
25 #ifndef SWIGTEMPLATEDISAMBIGUATOR
26 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
27 #  define SWIGTEMPLATEDISAMBIGUATOR template
28 # elif defined(__HP_aCC)
29 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
30 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
31 #  define SWIGTEMPLATEDISAMBIGUATOR template
32 # else
33 #  define SWIGTEMPLATEDISAMBIGUATOR
34 # endif
35 #endif
36 
37 /* inline attribute */
38 #ifndef SWIGINLINE
39 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
40 #   define SWIGINLINE inline
41 # else
42 #   define SWIGINLINE
43 # endif
44 #endif
45 
46 /* attribute recognised by some compilers to avoid 'unused' warnings */
47 #ifndef SWIGUNUSED
48 # if defined(__GNUC__)
49 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
50 #     define SWIGUNUSED __attribute__ ((__unused__))
51 #   else
52 #     define SWIGUNUSED
53 #   endif
54 # elif defined(__ICC)
55 #   define SWIGUNUSED __attribute__ ((__unused__))
56 # else
57 #   define SWIGUNUSED
58 # endif
59 #endif
60 
61 #ifndef SWIG_MSC_UNSUPPRESS_4505
62 # if defined(_MSC_VER)
63 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
64 # endif
65 #endif
66 
67 #ifndef SWIGUNUSEDPARM
68 # ifdef __cplusplus
69 #   define SWIGUNUSEDPARM(p)
70 # else
71 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
72 # endif
73 #endif
74 
75 /* internal SWIG method */
76 #ifndef SWIGINTERN
77 # define SWIGINTERN static SWIGUNUSED
78 #endif
79 
80 /* internal inline SWIG method */
81 #ifndef SWIGINTERNINLINE
82 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
83 #endif
84 
85 /* exporting methods */
86 #if defined(__GNUC__)
87 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
88 #    ifndef GCC_HASCLASSVISIBILITY
89 #      define GCC_HASCLASSVISIBILITY
90 #    endif
91 #  endif
92 #endif
93 
94 #ifndef SWIGEXPORT
95 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
96 #   if defined(STATIC_LINKED)
97 #     define SWIGEXPORT
98 #   else
99 #     define SWIGEXPORT __declspec(dllexport)
100 #   endif
101 # else
102 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
103 #     define SWIGEXPORT __attribute__ ((visibility("default")))
104 #   else
105 #     define SWIGEXPORT
106 #   endif
107 # endif
108 #endif
109 
110 /* calling conventions for Windows */
111 #ifndef SWIGSTDCALL
112 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113 #   define SWIGSTDCALL __stdcall
114 # else
115 #   define SWIGSTDCALL
116 # endif
117 #endif
118 
119 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
120 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
121 # define _CRT_SECURE_NO_DEPRECATE
122 #endif
123 
124 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
125 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
126 # define _SCL_SECURE_NO_DEPRECATE
127 #endif
128 
129 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
130 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
131 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
132 #endif
133 
134 /* Intel's compiler complains if a variable which was never initialised is
135  * cast to void, which is a common idiom which we use to indicate that we
136  * are aware a variable isn't used.  So we just silence that warning.
137  * See: https://github.com/swig/swig/issues/192 for more discussion.
138  */
139 #ifdef __INTEL_COMPILER
140 # pragma warning disable 592
141 #endif
142 
143 
144 #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
145 /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
146 # include <math.h>
147 #endif
148 
149 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
150 /* Use debug wrappers with the Python release dll */
151 # undef _DEBUG
152 # include <Python.h>
153 # define _DEBUG 1
154 #else
155 # include <Python.h>
156 #endif
157 
158 /* -----------------------------------------------------------------------------
159  * swigrun.swg
160  *
161  * This file contains generic C API SWIG runtime support for pointer
162  * type checking.
163  * ----------------------------------------------------------------------------- */
164 
165 /* This should only be incremented when either the layout of swig_type_info changes,
166    or for whatever reason, the runtime changes incompatibly */
167 #define SWIG_RUNTIME_VERSION "4"
168 
169 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
170 #ifdef SWIG_TYPE_TABLE
171 # define SWIG_QUOTE_STRING(x) #x
172 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
173 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
174 #else
175 # define SWIG_TYPE_TABLE_NAME
176 #endif
177 
178 /*
179   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
180   creating a static or dynamic library from the SWIG runtime code.
181   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
182 
183   But only do this if strictly necessary, ie, if you have problems
184   with your compiler or suchlike.
185 */
186 
187 #ifndef SWIGRUNTIME
188 # define SWIGRUNTIME SWIGINTERN
189 #endif
190 
191 #ifndef SWIGRUNTIMEINLINE
192 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
193 #endif
194 
195 /*  Generic buffer size */
196 #ifndef SWIG_BUFFER_SIZE
197 # define SWIG_BUFFER_SIZE 1024
198 #endif
199 
200 /* Flags for pointer conversions */
201 #define SWIG_POINTER_DISOWN        0x1
202 #define SWIG_CAST_NEW_MEMORY       0x2
203 #define SWIG_POINTER_NO_NULL       0x4
204 
205 /* Flags for new pointer objects */
206 #define SWIG_POINTER_OWN           0x1
207 
208 
209 /*
210    Flags/methods for returning states.
211 
212    The SWIG conversion methods, as ConvertPtr, return an integer
213    that tells if the conversion was successful or not. And if not,
214    an error code can be returned (see swigerrors.swg for the codes).
215 
216    Use the following macros/flags to set or process the returning
217    states.
218 
219    In old versions of SWIG, code such as the following was usually written:
220 
221      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
222        // success code
223      } else {
224        //fail code
225      }
226 
227    Now you can be more explicit:
228 
229     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
230     if (SWIG_IsOK(res)) {
231       // success code
232     } else {
233       // fail code
234     }
235 
236    which is the same really, but now you can also do
237 
238     Type *ptr;
239     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
240     if (SWIG_IsOK(res)) {
241       // success code
242       if (SWIG_IsNewObj(res) {
243         ...
244 	delete *ptr;
245       } else {
246         ...
247       }
248     } else {
249       // fail code
250     }
251 
252    I.e., now SWIG_ConvertPtr can return new objects and you can
253    identify the case and take care of the deallocation. Of course that
254    also requires SWIG_ConvertPtr to return new result values, such as
255 
256       int SWIG_ConvertPtr(obj, ptr,...) {
257         if (<obj is ok>) {
258           if (<need new object>) {
259             *ptr = <ptr to new allocated object>;
260             return SWIG_NEWOBJ;
261           } else {
262             *ptr = <ptr to old object>;
263             return SWIG_OLDOBJ;
264           }
265         } else {
266           return SWIG_BADOBJ;
267         }
268       }
269 
270    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
271    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
272    SWIG errors code.
273 
274    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
275    allows to return the 'cast rank', for example, if you have this
276 
277        int food(double)
278        int fooi(int);
279 
280    and you call
281 
282       food(1)   // cast rank '1'  (1 -> 1.0)
283       fooi(1)   // cast rank '0'
284 
285    just use the SWIG_AddCast()/SWIG_CheckState()
286 */
287 
288 #define SWIG_OK                    (0)
289 #define SWIG_ERROR                 (-1)
290 #define SWIG_IsOK(r)               (r >= 0)
291 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
292 
293 /* The CastRankLimit says how many bits are used for the cast rank */
294 #define SWIG_CASTRANKLIMIT         (1 << 8)
295 /* The NewMask denotes the object was created (using new/malloc) */
296 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
297 /* The TmpMask is for in/out typemaps that use temporal objects */
298 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
299 /* Simple returning values */
300 #define SWIG_BADOBJ                (SWIG_ERROR)
301 #define SWIG_OLDOBJ                (SWIG_OK)
302 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
303 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
304 /* Check, add and del mask methods */
305 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
306 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
307 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
308 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
309 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
310 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
311 
312 /* Cast-Rank Mode */
313 #if defined(SWIG_CASTRANK_MODE)
314 #  ifndef SWIG_TypeRank
315 #    define SWIG_TypeRank             unsigned long
316 #  endif
317 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
318 #    define SWIG_MAXCASTRANK          (2)
319 #  endif
320 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
321 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)322 SWIGINTERNINLINE int SWIG_AddCast(int r) {
323   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
324 }
SWIG_CheckState(int r)325 SWIGINTERNINLINE int SWIG_CheckState(int r) {
326   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
327 }
328 #else /* no cast-rank mode */
329 #  define SWIG_AddCast(r) (r)
330 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
331 #endif
332 
333 
334 #include <string.h>
335 
336 #ifdef __cplusplus
337 extern "C" {
338 #endif
339 
340 typedef void *(*swig_converter_func)(void *, int *);
341 typedef struct swig_type_info *(*swig_dycast_func)(void **);
342 
343 /* Structure to store information on one type */
344 typedef struct swig_type_info {
345   const char             *name;			/* mangled name of this type */
346   const char             *str;			/* human readable name of this type */
347   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
348   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
349   void                   *clientdata;		/* language specific type data */
350   int                    owndata;		/* flag if the structure owns the clientdata */
351 } swig_type_info;
352 
353 /* Structure to store a type and conversion function used for casting */
354 typedef struct swig_cast_info {
355   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
356   swig_converter_func     converter;		/* function to cast the void pointers */
357   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
358   struct swig_cast_info  *prev;			/* pointer to the previous cast */
359 } swig_cast_info;
360 
361 /* Structure used to store module information
362  * Each module generates one structure like this, and the runtime collects
363  * all of these structures and stores them in a circularly linked list.*/
364 typedef struct swig_module_info {
365   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
366   size_t                 size;		        /* Number of types in this module */
367   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
368   swig_type_info         **type_initial;	/* Array of initially generated type structures */
369   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
370   void                    *clientdata;		/* Language specific module data */
371 } swig_module_info;
372 
373 /*
374   Compare two type names skipping the space characters, therefore
375   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
376 
377   Return 0 when the two name types are equivalent, as in
378   strncmp, but skipping ' '.
379 */
380 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)381 SWIG_TypeNameComp(const char *f1, const char *l1,
382 		  const char *f2, const char *l2) {
383   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
384     while ((*f1 == ' ') && (f1 != l1)) ++f1;
385     while ((*f2 == ' ') && (f2 != l2)) ++f2;
386     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
387   }
388   return (int)((l1 - f1) - (l2 - f2));
389 }
390 
391 /*
392   Check type equivalence in a name list like <name1>|<name2>|...
393   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
394 */
395 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)396 SWIG_TypeCmp(const char *nb, const char *tb) {
397   int equiv = 1;
398   const char* te = tb + strlen(tb);
399   const char* ne = nb;
400   while (equiv != 0 && *ne) {
401     for (nb = ne; *ne; ++ne) {
402       if (*ne == '|') break;
403     }
404     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
405     if (*ne) ++ne;
406   }
407   return equiv;
408 }
409 
410 /*
411   Check type equivalence in a name list like <name1>|<name2>|...
412   Return 0 if not equal, 1 if equal
413 */
414 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)415 SWIG_TypeEquiv(const char *nb, const char *tb) {
416   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
417 }
418 
419 /*
420   Check the typename
421 */
422 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)423 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
424   if (ty) {
425     swig_cast_info *iter = ty->cast;
426     while (iter) {
427       if (strcmp(iter->type->name, c) == 0) {
428         if (iter == ty->cast)
429           return iter;
430         /* Move iter to the top of the linked list */
431         iter->prev->next = iter->next;
432         if (iter->next)
433           iter->next->prev = iter->prev;
434         iter->next = ty->cast;
435         iter->prev = 0;
436         if (ty->cast) ty->cast->prev = iter;
437         ty->cast = iter;
438         return iter;
439       }
440       iter = iter->next;
441     }
442   }
443   return 0;
444 }
445 
446 /*
447   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
448 */
449 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)450 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
451   if (ty) {
452     swig_cast_info *iter = ty->cast;
453     while (iter) {
454       if (iter->type == from) {
455         if (iter == ty->cast)
456           return iter;
457         /* Move iter to the top of the linked list */
458         iter->prev->next = iter->next;
459         if (iter->next)
460           iter->next->prev = iter->prev;
461         iter->next = ty->cast;
462         iter->prev = 0;
463         if (ty->cast) ty->cast->prev = iter;
464         ty->cast = iter;
465         return iter;
466       }
467       iter = iter->next;
468     }
469   }
470   return 0;
471 }
472 
473 /*
474   Cast a pointer up an inheritance hierarchy
475 */
476 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)477 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
478   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
479 }
480 
481 /*
482    Dynamic pointer casting. Down an inheritance hierarchy
483 */
484 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)485 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
486   swig_type_info *lastty = ty;
487   if (!ty || !ty->dcast) return ty;
488   while (ty && (ty->dcast)) {
489     ty = (*ty->dcast)(ptr);
490     if (ty) lastty = ty;
491   }
492   return lastty;
493 }
494 
495 /*
496   Return the name associated with this type
497 */
498 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)499 SWIG_TypeName(const swig_type_info *ty) {
500   return ty->name;
501 }
502 
503 /*
504   Return the pretty name associated with this type,
505   that is an unmangled type name in a form presentable to the user.
506 */
507 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)508 SWIG_TypePrettyName(const swig_type_info *type) {
509   /* The "str" field contains the equivalent pretty names of the
510      type, separated by vertical-bar characters.  We choose
511      to print the last name, as it is often (?) the most
512      specific. */
513   if (!type) return NULL;
514   if (type->str != NULL) {
515     const char *last_name = type->str;
516     const char *s;
517     for (s = type->str; *s; s++)
518       if (*s == '|') last_name = s+1;
519     return last_name;
520   }
521   else
522     return type->name;
523 }
524 
525 /*
526    Set the clientdata field for a type
527 */
528 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)529 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
530   swig_cast_info *cast = ti->cast;
531   /* if (ti->clientdata == clientdata) return; */
532   ti->clientdata = clientdata;
533 
534   while (cast) {
535     if (!cast->converter) {
536       swig_type_info *tc = cast->type;
537       if (!tc->clientdata) {
538 	SWIG_TypeClientData(tc, clientdata);
539       }
540     }
541     cast = cast->next;
542   }
543 }
544 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)545 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
546   SWIG_TypeClientData(ti, clientdata);
547   ti->owndata = 1;
548 }
549 
550 /*
551   Search for a swig_type_info structure only by mangled name
552   Search is a O(log #types)
553 
554   We start searching at module start, and finish searching when start == end.
555   Note: if start == end at the beginning of the function, we go all the way around
556   the circular list.
557 */
558 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)559 SWIG_MangledTypeQueryModule(swig_module_info *start,
560                             swig_module_info *end,
561 		            const char *name) {
562   swig_module_info *iter = start;
563   do {
564     if (iter->size) {
565       size_t l = 0;
566       size_t r = iter->size - 1;
567       do {
568 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
569 	size_t i = (l + r) >> 1;
570 	const char *iname = iter->types[i]->name;
571 	if (iname) {
572 	  int compare = strcmp(name, iname);
573 	  if (compare == 0) {
574 	    return iter->types[i];
575 	  } else if (compare < 0) {
576 	    if (i) {
577 	      r = i - 1;
578 	    } else {
579 	      break;
580 	    }
581 	  } else if (compare > 0) {
582 	    l = i + 1;
583 	  }
584 	} else {
585 	  break; /* should never happen */
586 	}
587       } while (l <= r);
588     }
589     iter = iter->next;
590   } while (iter != end);
591   return 0;
592 }
593 
594 /*
595   Search for a swig_type_info structure for either a mangled name or a human readable name.
596   It first searches the mangled names of the types, which is a O(log #types)
597   If a type is not found it then searches the human readable names, which is O(#types).
598 
599   We start searching at module start, and finish searching when start == end.
600   Note: if start == end at the beginning of the function, we go all the way around
601   the circular list.
602 */
603 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)604 SWIG_TypeQueryModule(swig_module_info *start,
605                      swig_module_info *end,
606 		     const char *name) {
607   /* STEP 1: Search the name field using binary search */
608   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
609   if (ret) {
610     return ret;
611   } else {
612     /* STEP 2: If the type hasn't been found, do a complete search
613        of the str field (the human readable name) */
614     swig_module_info *iter = start;
615     do {
616       size_t i = 0;
617       for (; i < iter->size; ++i) {
618 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
619 	  return iter->types[i];
620       }
621       iter = iter->next;
622     } while (iter != end);
623   }
624 
625   /* neither found a match */
626   return 0;
627 }
628 
629 /*
630    Pack binary data into a string
631 */
632 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)633 SWIG_PackData(char *c, void *ptr, size_t sz) {
634   static const char hex[17] = "0123456789abcdef";
635   const unsigned char *u = (unsigned char *) ptr;
636   const unsigned char *eu =  u + sz;
637   for (; u != eu; ++u) {
638     unsigned char uu = *u;
639     *(c++) = hex[(uu & 0xf0) >> 4];
640     *(c++) = hex[uu & 0xf];
641   }
642   return c;
643 }
644 
645 /*
646    Unpack binary data from a string
647 */
648 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)649 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
650   unsigned char *u = (unsigned char *) ptr;
651   const unsigned char *eu = u + sz;
652   for (; u != eu; ++u) {
653     char d = *(c++);
654     unsigned char uu;
655     if ((d >= '0') && (d <= '9'))
656       uu = (unsigned char)((d - '0') << 4);
657     else if ((d >= 'a') && (d <= 'f'))
658       uu = (unsigned char)((d - ('a'-10)) << 4);
659     else
660       return (char *) 0;
661     d = *(c++);
662     if ((d >= '0') && (d <= '9'))
663       uu |= (unsigned char)(d - '0');
664     else if ((d >= 'a') && (d <= 'f'))
665       uu |= (unsigned char)(d - ('a'-10));
666     else
667       return (char *) 0;
668     *u = uu;
669   }
670   return c;
671 }
672 
673 /*
674    Pack 'void *' into a string buffer.
675 */
676 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)677 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
678   char *r = buff;
679   if ((2*sizeof(void *) + 2) > bsz) return 0;
680   *(r++) = '_';
681   r = SWIG_PackData(r,&ptr,sizeof(void *));
682   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
683   strcpy(r,name);
684   return buff;
685 }
686 
687 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)688 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
689   if (*c != '_') {
690     if (strcmp(c,"NULL") == 0) {
691       *ptr = (void *) 0;
692       return name;
693     } else {
694       return 0;
695     }
696   }
697   return SWIG_UnpackData(++c,ptr,sizeof(void *));
698 }
699 
700 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)701 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
702   char *r = buff;
703   size_t lname = (name ? strlen(name) : 0);
704   if ((2*sz + 2 + lname) > bsz) return 0;
705   *(r++) = '_';
706   r = SWIG_PackData(r,ptr,sz);
707   if (lname) {
708     strncpy(r,name,lname+1);
709   } else {
710     *r = 0;
711   }
712   return buff;
713 }
714 
715 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)716 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
717   if (*c != '_') {
718     if (strcmp(c,"NULL") == 0) {
719       memset(ptr,0,sz);
720       return name;
721     } else {
722       return 0;
723     }
724   }
725   return SWIG_UnpackData(++c,ptr,sz);
726 }
727 
728 #ifdef __cplusplus
729 }
730 #endif
731 
732 /*  Errors in SWIG */
733 #define  SWIG_UnknownError    	   -1
734 #define  SWIG_IOError        	   -2
735 #define  SWIG_RuntimeError   	   -3
736 #define  SWIG_IndexError     	   -4
737 #define  SWIG_TypeError      	   -5
738 #define  SWIG_DivisionByZero 	   -6
739 #define  SWIG_OverflowError  	   -7
740 #define  SWIG_SyntaxError    	   -8
741 #define  SWIG_ValueError     	   -9
742 #define  SWIG_SystemError    	   -10
743 #define  SWIG_AttributeError 	   -11
744 #define  SWIG_MemoryError    	   -12
745 #define  SWIG_NullReferenceError   -13
746 
747 
748 
749 /* Compatibility macros for Python 3 */
750 #if PY_VERSION_HEX >= 0x03000000
751 
752 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
753 #define PyInt_Check(x) PyLong_Check(x)
754 #define PyInt_AsLong(x) PyLong_AsLong(x)
755 #define PyInt_FromLong(x) PyLong_FromLong(x)
756 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
757 #define PyString_Check(name) PyBytes_Check(name)
758 #define PyString_FromString(x) PyUnicode_FromString(x)
759 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
760 #define PyString_AsString(str) PyBytes_AsString(str)
761 #define PyString_Size(str) PyBytes_Size(str)
762 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
763 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
764 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
765 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
766 
767 #endif
768 
769 #ifndef Py_TYPE
770 #  define Py_TYPE(op) ((op)->ob_type)
771 #endif
772 
773 /* SWIG APIs for compatibility of both Python 2 & 3 */
774 
775 #if PY_VERSION_HEX >= 0x03000000
776 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
777 #else
778 #  define SWIG_Python_str_FromFormat PyString_FromFormat
779 #endif
780 
781 
782 /* Warning: This function will allocate a new string in Python 3,
783  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
784  */
785 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)786 SWIG_Python_str_AsChar(PyObject *str)
787 {
788 #if PY_VERSION_HEX >= 0x03030000
789   return (char *)PyUnicode_AsUTF8(str);
790 #elif PY_VERSION_HEX >= 0x03000000
791   char *newstr = 0;
792   str = PyUnicode_AsUTF8String(str);
793   if (str) {
794     char *cstr;
795     Py_ssize_t len;
796     if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
797       newstr = (char *) malloc(len+1);
798       if (newstr)
799         memcpy(newstr, cstr, len+1);
800     }
801     Py_XDECREF(str);
802   }
803   return newstr;
804 #else
805   return PyString_AsString(str);
806 #endif
807 }
808 
809 #if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
810 #  define SWIG_Python_str_DelForPy3(x)
811 #else
812 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
813 #endif
814 
815 
816 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)817 SWIG_Python_str_FromChar(const char *c)
818 {
819 #if PY_VERSION_HEX >= 0x03000000
820   return PyUnicode_FromString(c);
821 #else
822   return PyString_FromString(c);
823 #endif
824 }
825 
826 #ifndef PyObject_DEL
827 # define PyObject_DEL PyObject_Del
828 #endif
829 
830 // SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
831 // interface files check for it.
832 # define SWIGPY_USE_CAPSULE
833 # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
834 
835 #if PY_VERSION_HEX < 0x03020000
836 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
837 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
838 #define Py_hash_t long
839 #endif
840 
841 /* -----------------------------------------------------------------------------
842  * error manipulation
843  * ----------------------------------------------------------------------------- */
844 
845 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)846 SWIG_Python_ErrorType(int code) {
847   PyObject* type = 0;
848   switch(code) {
849   case SWIG_MemoryError:
850     type = PyExc_MemoryError;
851     break;
852   case SWIG_IOError:
853     type = PyExc_IOError;
854     break;
855   case SWIG_RuntimeError:
856     type = PyExc_RuntimeError;
857     break;
858   case SWIG_IndexError:
859     type = PyExc_IndexError;
860     break;
861   case SWIG_TypeError:
862     type = PyExc_TypeError;
863     break;
864   case SWIG_DivisionByZero:
865     type = PyExc_ZeroDivisionError;
866     break;
867   case SWIG_OverflowError:
868     type = PyExc_OverflowError;
869     break;
870   case SWIG_SyntaxError:
871     type = PyExc_SyntaxError;
872     break;
873   case SWIG_ValueError:
874     type = PyExc_ValueError;
875     break;
876   case SWIG_SystemError:
877     type = PyExc_SystemError;
878     break;
879   case SWIG_AttributeError:
880     type = PyExc_AttributeError;
881     break;
882   default:
883     type = PyExc_RuntimeError;
884   }
885   return type;
886 }
887 
888 
889 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)890 SWIG_Python_AddErrorMsg(const char* mesg)
891 {
892   PyObject *type = 0;
893   PyObject *value = 0;
894   PyObject *traceback = 0;
895 
896   if (PyErr_Occurred())
897     PyErr_Fetch(&type, &value, &traceback);
898   if (value) {
899     PyObject *old_str = PyObject_Str(value);
900     const char *tmp = SWIG_Python_str_AsChar(old_str);
901     PyErr_Clear();
902     Py_XINCREF(type);
903     if (tmp)
904       PyErr_Format(type, "%s %s", tmp, mesg);
905     else
906       PyErr_Format(type, "%s", mesg);
907     SWIG_Python_str_DelForPy3(tmp);
908     Py_DECREF(old_str);
909     Py_DECREF(value);
910   } else {
911     PyErr_SetString(PyExc_RuntimeError, mesg);
912   }
913 }
914 
915 SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject * obj)916 SWIG_Python_TypeErrorOccurred(PyObject *obj)
917 {
918   PyObject *error;
919   if (obj)
920     return 0;
921   error = PyErr_Occurred();
922   return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
923 }
924 
925 SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char * message)926 SWIG_Python_RaiseOrModifyTypeError(const char *message)
927 {
928   if (SWIG_Python_TypeErrorOccurred(NULL)) {
929     /* Use existing TypeError to preserve stacktrace and enhance with given message */
930     PyObject *newvalue;
931     PyObject *type = NULL, *value = NULL, *traceback = NULL;
932     PyErr_Fetch(&type, &value, &traceback);
933 #if PY_VERSION_HEX >= 0x03000000
934     newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
935 #else
936     newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
937 #endif
938     Py_XDECREF(value);
939     PyErr_Restore(type, newvalue, traceback);
940   } else {
941     /* Raise TypeError using given message */
942     PyErr_SetString(PyExc_TypeError, message);
943   }
944 }
945 
946 #if defined(SWIG_PYTHON_NO_THREADS)
947 #  if defined(SWIG_PYTHON_THREADS)
948 #    undef SWIG_PYTHON_THREADS
949 #  endif
950 #endif
951 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
952 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
953 #    define SWIG_PYTHON_USE_GIL
954 #  endif
955 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
956 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
957 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
958 #    endif
959 #    ifdef __cplusplus /* C++ code */
960        class SWIG_Python_Thread_Block {
961          bool status;
962          PyGILState_STATE state;
963        public:
end()964          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()965          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()966          ~SWIG_Python_Thread_Block() { end(); }
967        };
968        class SWIG_Python_Thread_Allow {
969          bool status;
970          PyThreadState *save;
971        public:
end()972          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()973          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()974          ~SWIG_Python_Thread_Allow() { end(); }
975        };
976 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
977 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
978 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
979 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
980 #    else /* C code */
981 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
982 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
983 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
984 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
985 #    endif
986 #  else /* Old thread way, not implemented, user must provide it */
987 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
988 #      define SWIG_PYTHON_INITIALIZE_THREADS
989 #    endif
990 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
991 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
992 #    endif
993 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
994 #      define SWIG_PYTHON_THREAD_END_BLOCK
995 #    endif
996 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
997 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
998 #    endif
999 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1000 #      define SWIG_PYTHON_THREAD_END_ALLOW
1001 #    endif
1002 #  endif
1003 #else /* No thread support */
1004 #  define SWIG_PYTHON_INITIALIZE_THREADS
1005 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1006 #  define SWIG_PYTHON_THREAD_END_BLOCK
1007 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1008 #  define SWIG_PYTHON_THREAD_END_ALLOW
1009 #endif
1010 
1011 /* -----------------------------------------------------------------------------
1012  * Python API portion that goes into the runtime
1013  * ----------------------------------------------------------------------------- */
1014 
1015 #ifdef __cplusplus
1016 extern "C" {
1017 #endif
1018 
1019 /* -----------------------------------------------------------------------------
1020  * Constant declarations
1021  * ----------------------------------------------------------------------------- */
1022 
1023 /* Constant Types */
1024 #define SWIG_PY_POINTER 4
1025 #define SWIG_PY_BINARY  5
1026 
1027 /* Constant information structure */
1028 typedef struct swig_const_info {
1029   int type;
1030   const char *name;
1031   long lvalue;
1032   double dvalue;
1033   void   *pvalue;
1034   swig_type_info **ptype;
1035 } swig_const_info;
1036 
1037 #ifdef __cplusplus
1038 }
1039 #endif
1040 
1041 
1042 /* -----------------------------------------------------------------------------
1043  * pyrun.swg
1044  *
1045  * This file contains the runtime support for Python modules
1046  * and includes code for managing global variables and pointer
1047  * type checking.
1048  *
1049  * ----------------------------------------------------------------------------- */
1050 
1051 #if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1052 # error "This version of SWIG only supports Python >= 2.7"
1053 #endif
1054 
1055 #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1056 # error "This version of SWIG only supports Python 3 >= 3.2"
1057 #endif
1058 
1059 /* Common SWIG API */
1060 
1061 /* for raw pointers */
1062 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1063 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1064 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1065 
1066 #ifdef SWIGPYTHON_BUILTIN
1067 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1068 #else
1069 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1070 #endif
1071 
1072 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1073 
1074 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1075 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1076 #define swig_owntype                                    int
1077 
1078 /* for raw packed data */
1079 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1080 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1081 
1082 /* for class or struct pointers */
1083 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1084 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1085 
1086 /* for C or C++ function pointers */
1087 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1088 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1089 
1090 /* for C++ member pointers, ie, member methods */
1091 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1092 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1093 
1094 
1095 /* Runtime API */
1096 
1097 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1098 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1099 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1100 
1101 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1102 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1103 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1104 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1105 #define SWIG_fail                        		goto fail
1106 
1107 
1108 /* Runtime API implementation */
1109 
1110 /* Error manipulation */
1111 
1112 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1113 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1114   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1115   PyErr_SetObject(errtype, obj);
1116   Py_DECREF(obj);
1117   SWIG_PYTHON_THREAD_END_BLOCK;
1118 }
1119 
1120 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1121 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1122   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1123   PyErr_SetString(errtype, msg);
1124   SWIG_PYTHON_THREAD_END_BLOCK;
1125 }
1126 
1127 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1128 
1129 /* Set a constant value */
1130 
1131 #if defined(SWIGPYTHON_BUILTIN)
1132 
1133 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1134 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1135   PyObject *s = PyString_InternFromString(key);
1136   PyList_Append(seq, s);
1137   Py_DECREF(s);
1138 }
1139 
1140 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1141 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1142   PyDict_SetItemString(d, name, obj);
1143   Py_DECREF(obj);
1144   if (public_interface)
1145     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1146 }
1147 
1148 #else
1149 
1150 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1151 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1152   PyDict_SetItemString(d, name, obj);
1153   Py_DECREF(obj);
1154 }
1155 
1156 #endif
1157 
1158 /* Append a value to the result obj */
1159 
1160 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1161 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1162   if (!result) {
1163     result = obj;
1164   } else if (result == Py_None) {
1165     Py_DECREF(result);
1166     result = obj;
1167   } else {
1168     if (!PyList_Check(result)) {
1169       PyObject *o2 = result;
1170       result = PyList_New(1);
1171       PyList_SetItem(result, 0, o2);
1172     }
1173     PyList_Append(result,obj);
1174     Py_DECREF(obj);
1175   }
1176   return result;
1177 }
1178 
1179 /* Unpack the argument tuple */
1180 
1181 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1182 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1183 {
1184   if (!args) {
1185     if (!min && !max) {
1186       return 1;
1187     } else {
1188       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1189 		   name, (min == max ? "" : "at least "), (int)min);
1190       return 0;
1191     }
1192   }
1193   if (!PyTuple_Check(args)) {
1194     if (min <= 1 && max >= 1) {
1195       Py_ssize_t i;
1196       objs[0] = args;
1197       for (i = 1; i < max; ++i) {
1198 	objs[i] = 0;
1199       }
1200       return 2;
1201     }
1202     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1203     return 0;
1204   } else {
1205     Py_ssize_t l = PyTuple_GET_SIZE(args);
1206     if (l < min) {
1207       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1208 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1209       return 0;
1210     } else if (l > max) {
1211       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1212 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1213       return 0;
1214     } else {
1215       Py_ssize_t i;
1216       for (i = 0; i < l; ++i) {
1217 	objs[i] = PyTuple_GET_ITEM(args, i);
1218       }
1219       for (; l < max; ++l) {
1220 	objs[l] = 0;
1221       }
1222       return i + 1;
1223     }
1224   }
1225 }
1226 
1227 SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject * kwargs,const char * name)1228 SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1229   int no_kwargs = 1;
1230   if (kwargs) {
1231     assert(PyDict_Check(kwargs));
1232     if (PyDict_Size(kwargs) > 0) {
1233       PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1234       no_kwargs = 0;
1235     }
1236   }
1237   return no_kwargs;
1238 }
1239 
1240 /* A functor is a function object with one single object argument */
1241 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1242 
1243 /*
1244   Helper for static pointer initialization for both C and C++ code, for example
1245   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1246 */
1247 #ifdef __cplusplus
1248 #define SWIG_STATIC_POINTER(var)  var
1249 #else
1250 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1251 #endif
1252 
1253 /* -----------------------------------------------------------------------------
1254  * Pointer declarations
1255  * ----------------------------------------------------------------------------- */
1256 
1257 /* Flags for new pointer objects */
1258 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1259 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1260 
1261 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1262 
1263 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1264 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1265 
1266 #ifdef __cplusplus
1267 extern "C" {
1268 #endif
1269 
1270 /* The python void return value */
1271 
1272 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1273 SWIG_Py_Void(void)
1274 {
1275   PyObject *none = Py_None;
1276   Py_INCREF(none);
1277   return none;
1278 }
1279 
1280 /* SwigPyClientData */
1281 
1282 typedef struct {
1283   PyObject *klass;
1284   PyObject *newraw;
1285   PyObject *newargs;
1286   PyObject *destroy;
1287   int delargs;
1288   int implicitconv;
1289   PyTypeObject *pytype;
1290 } SwigPyClientData;
1291 
1292 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1293 SWIG_Python_CheckImplicit(swig_type_info *ty)
1294 {
1295   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1296   int fail = data ? data->implicitconv : 0;
1297   if (fail)
1298     PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1299   return fail;
1300 }
1301 
1302 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1303 SWIG_Python_ExceptionType(swig_type_info *desc) {
1304   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1305   PyObject *klass = data ? data->klass : 0;
1306   return (klass ? klass : PyExc_RuntimeError);
1307 }
1308 
1309 
1310 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1311 SwigPyClientData_New(PyObject* obj)
1312 {
1313   if (!obj) {
1314     return 0;
1315   } else {
1316     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1317     /* the klass element */
1318     data->klass = obj;
1319     Py_INCREF(data->klass);
1320     /* the newraw method and newargs arguments used to create a new raw instance */
1321     if (PyClass_Check(obj)) {
1322       data->newraw = 0;
1323       data->newargs = obj;
1324       Py_INCREF(obj);
1325     } else {
1326       data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1327       if (data->newraw) {
1328 	Py_INCREF(data->newraw);
1329 	data->newargs = PyTuple_New(1);
1330 	PyTuple_SetItem(data->newargs, 0, obj);
1331       } else {
1332 	data->newargs = obj;
1333       }
1334       Py_INCREF(data->newargs);
1335     }
1336     /* the destroy method, aka as the C++ delete method */
1337     data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1338     if (PyErr_Occurred()) {
1339       PyErr_Clear();
1340       data->destroy = 0;
1341     }
1342     if (data->destroy) {
1343       int flags;
1344       Py_INCREF(data->destroy);
1345       flags = PyCFunction_GET_FLAGS(data->destroy);
1346       data->delargs = !(flags & (METH_O));
1347     } else {
1348       data->delargs = 0;
1349     }
1350     data->implicitconv = 0;
1351     data->pytype = 0;
1352     return data;
1353   }
1354 }
1355 
1356 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1357 SwigPyClientData_Del(SwigPyClientData *data) {
1358   Py_XDECREF(data->newraw);
1359   Py_XDECREF(data->newargs);
1360   Py_XDECREF(data->destroy);
1361 }
1362 
1363 /* =============== SwigPyObject =====================*/
1364 
1365 typedef struct {
1366   PyObject_HEAD
1367   void *ptr;
1368   swig_type_info *ty;
1369   int own;
1370   PyObject *next;
1371 #ifdef SWIGPYTHON_BUILTIN
1372   PyObject *dict;
1373 #endif
1374 } SwigPyObject;
1375 
1376 
1377 #ifdef SWIGPYTHON_BUILTIN
1378 
1379 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1380 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1381 {
1382   SwigPyObject *sobj = (SwigPyObject *)v;
1383 
1384   if (!sobj->dict)
1385     sobj->dict = PyDict_New();
1386 
1387   Py_INCREF(sobj->dict);
1388   return sobj->dict;
1389 }
1390 
1391 #endif
1392 
1393 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1394 SwigPyObject_long(SwigPyObject *v)
1395 {
1396   return PyLong_FromVoidPtr(v->ptr);
1397 }
1398 
1399 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1400 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1401 {
1402   PyObject *res = NULL;
1403   PyObject *args = PyTuple_New(1);
1404   if (args) {
1405     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1406       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1407       if (ofmt) {
1408 #if PY_VERSION_HEX >= 0x03000000
1409 	res = PyUnicode_Format(ofmt,args);
1410 #else
1411 	res = PyString_Format(ofmt,args);
1412 #endif
1413 	Py_DECREF(ofmt);
1414       }
1415       Py_DECREF(args);
1416     }
1417   }
1418   return res;
1419 }
1420 
1421 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1422 SwigPyObject_oct(SwigPyObject *v)
1423 {
1424   return SwigPyObject_format("%o",v);
1425 }
1426 
1427 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1428 SwigPyObject_hex(SwigPyObject *v)
1429 {
1430   return SwigPyObject_format("%x",v);
1431 }
1432 
1433 SWIGRUNTIME PyObject *
SwigPyObject_repr(SwigPyObject * v)1434 SwigPyObject_repr(SwigPyObject *v)
1435 {
1436   const char *name = SWIG_TypePrettyName(v->ty);
1437   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1438   if (v->next) {
1439     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1440 # if PY_VERSION_HEX >= 0x03000000
1441     PyObject *joined = PyUnicode_Concat(repr, nrep);
1442     Py_DecRef(repr);
1443     Py_DecRef(nrep);
1444     repr = joined;
1445 # else
1446     PyString_ConcatAndDel(&repr,nrep);
1447 # endif
1448   }
1449   return repr;
1450 }
1451 
1452 /* We need a version taking two PyObject* parameters so it's a valid
1453  * PyCFunction to use in swigobject_methods[]. */
1454 SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1455 SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1456 {
1457   return SwigPyObject_repr((SwigPyObject*)v);
1458 }
1459 
1460 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1461 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1462 {
1463   void *i = v->ptr;
1464   void *j = w->ptr;
1465   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1466 }
1467 
1468 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1469 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1470 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1471 {
1472   PyObject* res;
1473   if( op != Py_EQ && op != Py_NE ) {
1474     Py_INCREF(Py_NotImplemented);
1475     return Py_NotImplemented;
1476   }
1477   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1478   return res;
1479 }
1480 
1481 
1482 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1483 
1484 #ifdef SWIGPYTHON_BUILTIN
1485 static swig_type_info *SwigPyObject_stype = 0;
1486 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1487 SwigPyObject_type(void) {
1488     SwigPyClientData *cd;
1489     assert(SwigPyObject_stype);
1490     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1491     assert(cd);
1492     assert(cd->pytype);
1493     return cd->pytype;
1494 }
1495 #else
1496 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1497 SwigPyObject_type(void) {
1498   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1499   return type;
1500 }
1501 #endif
1502 
1503 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1504 SwigPyObject_Check(PyObject *op) {
1505 #ifdef SWIGPYTHON_BUILTIN
1506   PyTypeObject *target_tp = SwigPyObject_type();
1507   if (PyType_IsSubtype(op->ob_type, target_tp))
1508     return 1;
1509   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1510 #else
1511   return (Py_TYPE(op) == SwigPyObject_type())
1512     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1513 #endif
1514 }
1515 
1516 SWIGRUNTIME PyObject *
1517 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1518 
1519 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1520 SwigPyObject_dealloc(PyObject *v)
1521 {
1522   SwigPyObject *sobj = (SwigPyObject *) v;
1523   PyObject *next = sobj->next;
1524   if (sobj->own == SWIG_POINTER_OWN) {
1525     swig_type_info *ty = sobj->ty;
1526     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1527     PyObject *destroy = data ? data->destroy : 0;
1528     if (destroy) {
1529       /* destroy is always a VARARGS method */
1530       PyObject *res;
1531 
1532       /* PyObject_CallFunction() has the potential to silently drop
1533          the active exception.  In cases of unnamed temporary
1534          variable or where we just finished iterating over a generator
1535          StopIteration will be active right now, and this needs to
1536          remain true upon return from SwigPyObject_dealloc.  So save
1537          and restore. */
1538 
1539       PyObject *type = NULL, *value = NULL, *traceback = NULL;
1540       PyErr_Fetch(&type, &value, &traceback);
1541 
1542       if (data->delargs) {
1543         /* we need to create a temporary object to carry the destroy operation */
1544         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1545         res = SWIG_Python_CallFunctor(destroy, tmp);
1546         Py_DECREF(tmp);
1547       } else {
1548         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1549         PyObject *mself = PyCFunction_GET_SELF(destroy);
1550         res = ((*meth)(mself, v));
1551       }
1552       if (!res)
1553         PyErr_WriteUnraisable(destroy);
1554 
1555       PyErr_Restore(type, value, traceback);
1556 
1557       Py_XDECREF(res);
1558     }
1559 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1560     else {
1561       const char *name = SWIG_TypePrettyName(ty);
1562       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1563     }
1564 #endif
1565   }
1566   Py_XDECREF(next);
1567   PyObject_DEL(v);
1568 }
1569 
1570 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1571 SwigPyObject_append(PyObject* v, PyObject* next)
1572 {
1573   SwigPyObject *sobj = (SwigPyObject *) v;
1574   if (!SwigPyObject_Check(next)) {
1575     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1576     return NULL;
1577   }
1578   sobj->next = next;
1579   Py_INCREF(next);
1580   return SWIG_Py_Void();
1581 }
1582 
1583 SWIGRUNTIME PyObject*
SwigPyObject_next(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1584 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1585 {
1586   SwigPyObject *sobj = (SwigPyObject *) v;
1587   if (sobj->next) {
1588     Py_INCREF(sobj->next);
1589     return sobj->next;
1590   } else {
1591     return SWIG_Py_Void();
1592   }
1593 }
1594 
1595 SWIGINTERN PyObject*
SwigPyObject_disown(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1596 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1597 {
1598   SwigPyObject *sobj = (SwigPyObject *)v;
1599   sobj->own = 0;
1600   return SWIG_Py_Void();
1601 }
1602 
1603 SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1604 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1605 {
1606   SwigPyObject *sobj = (SwigPyObject *)v;
1607   sobj->own = SWIG_POINTER_OWN;
1608   return SWIG_Py_Void();
1609 }
1610 
1611 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1612 SwigPyObject_own(PyObject *v, PyObject *args)
1613 {
1614   PyObject *val = 0;
1615   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1616     return NULL;
1617   } else {
1618     SwigPyObject *sobj = (SwigPyObject *)v;
1619     PyObject *obj = PyBool_FromLong(sobj->own);
1620     if (val) {
1621       if (PyObject_IsTrue(val)) {
1622         SwigPyObject_acquire(v,args);
1623       } else {
1624         SwigPyObject_disown(v,args);
1625       }
1626     }
1627     return obj;
1628   }
1629 }
1630 
1631 static PyMethodDef
1632 swigobject_methods[] = {
1633   {"disown",  SwigPyObject_disown,  METH_NOARGS,  "releases ownership of the pointer"},
1634   {"acquire", SwigPyObject_acquire, METH_NOARGS,  "acquires ownership of the pointer"},
1635   {"own",     SwigPyObject_own,     METH_VARARGS, "returns/sets ownership of the pointer"},
1636   {"append",  SwigPyObject_append,  METH_O,       "appends another 'this' object"},
1637   {"next",    SwigPyObject_next,    METH_NOARGS,  "returns the next 'this' object"},
1638   {"__repr__",SwigPyObject_repr2,   METH_NOARGS,  "returns object representation"},
1639   {0, 0, 0, 0}
1640 };
1641 
1642 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1643 SwigPyObject_TypeOnce(void) {
1644   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1645 
1646   static PyNumberMethods SwigPyObject_as_number = {
1647     (binaryfunc)0, /*nb_add*/
1648     (binaryfunc)0, /*nb_subtract*/
1649     (binaryfunc)0, /*nb_multiply*/
1650     /* nb_divide removed in Python 3 */
1651 #if PY_VERSION_HEX < 0x03000000
1652     (binaryfunc)0, /*nb_divide*/
1653 #endif
1654     (binaryfunc)0, /*nb_remainder*/
1655     (binaryfunc)0, /*nb_divmod*/
1656     (ternaryfunc)0,/*nb_power*/
1657     (unaryfunc)0,  /*nb_negative*/
1658     (unaryfunc)0,  /*nb_positive*/
1659     (unaryfunc)0,  /*nb_absolute*/
1660     (inquiry)0,    /*nb_nonzero*/
1661     0,		   /*nb_invert*/
1662     0,		   /*nb_lshift*/
1663     0,		   /*nb_rshift*/
1664     0,		   /*nb_and*/
1665     0,		   /*nb_xor*/
1666     0,		   /*nb_or*/
1667 #if PY_VERSION_HEX < 0x03000000
1668     0,   /*nb_coerce*/
1669 #endif
1670     (unaryfunc)SwigPyObject_long, /*nb_int*/
1671 #if PY_VERSION_HEX < 0x03000000
1672     (unaryfunc)SwigPyObject_long, /*nb_long*/
1673 #else
1674     0, /*nb_reserved*/
1675 #endif
1676     (unaryfunc)0,                 /*nb_float*/
1677 #if PY_VERSION_HEX < 0x03000000
1678     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
1679     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
1680 #endif
1681 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1682     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1683 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1684     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1685 #else
1686     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1687 #endif
1688   };
1689 
1690   static PyTypeObject swigpyobject_type;
1691   static int type_init = 0;
1692   if (!type_init) {
1693     const PyTypeObject tmp = {
1694 #if PY_VERSION_HEX >= 0x03000000
1695       PyVarObject_HEAD_INIT(NULL, 0)
1696 #else
1697       PyObject_HEAD_INIT(NULL)
1698       0,                                    /* ob_size */
1699 #endif
1700       "SwigPyObject",                       /* tp_name */
1701       sizeof(SwigPyObject),                 /* tp_basicsize */
1702       0,                                    /* tp_itemsize */
1703       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
1704       0,                                    /* tp_print */
1705       (getattrfunc)0,                       /* tp_getattr */
1706       (setattrfunc)0,                       /* tp_setattr */
1707 #if PY_VERSION_HEX >= 0x03000000
1708       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1709 #else
1710       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
1711 #endif
1712       (reprfunc)SwigPyObject_repr,          /* tp_repr */
1713       &SwigPyObject_as_number,              /* tp_as_number */
1714       0,                                    /* tp_as_sequence */
1715       0,                                    /* tp_as_mapping */
1716       (hashfunc)0,                          /* tp_hash */
1717       (ternaryfunc)0,                       /* tp_call */
1718       0,                                    /* tp_str */
1719       PyObject_GenericGetAttr,              /* tp_getattro */
1720       0,                                    /* tp_setattro */
1721       0,                                    /* tp_as_buffer */
1722       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1723       swigobject_doc,                       /* tp_doc */
1724       0,                                    /* tp_traverse */
1725       0,                                    /* tp_clear */
1726       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1727       0,                                    /* tp_weaklistoffset */
1728       0,                                    /* tp_iter */
1729       0,                                    /* tp_iternext */
1730       swigobject_methods,                   /* tp_methods */
1731       0,                                    /* tp_members */
1732       0,                                    /* tp_getset */
1733       0,                                    /* tp_base */
1734       0,                                    /* tp_dict */
1735       0,                                    /* tp_descr_get */
1736       0,                                    /* tp_descr_set */
1737       0,                                    /* tp_dictoffset */
1738       0,                                    /* tp_init */
1739       0,                                    /* tp_alloc */
1740       0,                                    /* tp_new */
1741       0,                                    /* tp_free */
1742       0,                                    /* tp_is_gc */
1743       0,                                    /* tp_bases */
1744       0,                                    /* tp_mro */
1745       0,                                    /* tp_cache */
1746       0,                                    /* tp_subclasses */
1747       0,                                    /* tp_weaklist */
1748       0,                                    /* tp_del */
1749       0,                                    /* tp_version_tag */
1750 #if PY_VERSION_HEX >= 0x03040000
1751       0,                                    /* tp_finalize */
1752 #endif
1753 #if PY_VERSION_HEX >= 0x03080000
1754       0,                                    /* tp_vectorcall */
1755 #endif
1756 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1757       0,                                    /* tp_print */
1758 #endif
1759 #ifdef COUNT_ALLOCS
1760       0,                                    /* tp_allocs */
1761       0,                                    /* tp_frees */
1762       0,                                    /* tp_maxalloc */
1763       0,                                    /* tp_prev */
1764       0                                     /* tp_next */
1765 #endif
1766     };
1767     swigpyobject_type = tmp;
1768     type_init = 1;
1769     if (PyType_Ready(&swigpyobject_type) < 0)
1770       return NULL;
1771   }
1772   return &swigpyobject_type;
1773 }
1774 
1775 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)1776 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1777 {
1778   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1779   if (sobj) {
1780     sobj->ptr  = ptr;
1781     sobj->ty   = ty;
1782     sobj->own  = own;
1783     sobj->next = 0;
1784   }
1785   return (PyObject *)sobj;
1786 }
1787 
1788 /* -----------------------------------------------------------------------------
1789  * Implements a simple Swig Packed type, and use it instead of string
1790  * ----------------------------------------------------------------------------- */
1791 
1792 typedef struct {
1793   PyObject_HEAD
1794   void *pack;
1795   swig_type_info *ty;
1796   size_t size;
1797 } SwigPyPacked;
1798 
1799 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)1800 SwigPyPacked_repr(SwigPyPacked *v)
1801 {
1802   char result[SWIG_BUFFER_SIZE];
1803   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1804     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1805   } else {
1806     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
1807   }
1808 }
1809 
1810 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)1811 SwigPyPacked_str(SwigPyPacked *v)
1812 {
1813   char result[SWIG_BUFFER_SIZE];
1814   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1815     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1816   } else {
1817     return SWIG_Python_str_FromChar(v->ty->name);
1818   }
1819 }
1820 
1821 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)1822 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
1823 {
1824   size_t i = v->size;
1825   size_t j = w->size;
1826   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1827   return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1828 }
1829 
1830 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1831 
1832 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)1833 SwigPyPacked_type(void) {
1834   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1835   return type;
1836 }
1837 
1838 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)1839 SwigPyPacked_Check(PyObject *op) {
1840   return ((op)->ob_type == SwigPyPacked_TypeOnce())
1841     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1842 }
1843 
1844 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)1845 SwigPyPacked_dealloc(PyObject *v)
1846 {
1847   if (SwigPyPacked_Check(v)) {
1848     SwigPyPacked *sobj = (SwigPyPacked *) v;
1849     free(sobj->pack);
1850   }
1851   PyObject_DEL(v);
1852 }
1853 
1854 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)1855 SwigPyPacked_TypeOnce(void) {
1856   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1857   static PyTypeObject swigpypacked_type;
1858   static int type_init = 0;
1859   if (!type_init) {
1860     const PyTypeObject tmp = {
1861 #if PY_VERSION_HEX>=0x03000000
1862       PyVarObject_HEAD_INIT(NULL, 0)
1863 #else
1864       PyObject_HEAD_INIT(NULL)
1865       0,                                    /* ob_size */
1866 #endif
1867       "SwigPyPacked",                       /* tp_name */
1868       sizeof(SwigPyPacked),                 /* tp_basicsize */
1869       0,                                    /* tp_itemsize */
1870       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
1871       0,                                    /* tp_print */
1872       (getattrfunc)0,                       /* tp_getattr */
1873       (setattrfunc)0,                       /* tp_setattr */
1874 #if PY_VERSION_HEX>=0x03000000
1875       0, /* tp_reserved in 3.0.1 */
1876 #else
1877       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
1878 #endif
1879       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
1880       0,                                    /* tp_as_number */
1881       0,                                    /* tp_as_sequence */
1882       0,                                    /* tp_as_mapping */
1883       (hashfunc)0,                          /* tp_hash */
1884       (ternaryfunc)0,                       /* tp_call */
1885       (reprfunc)SwigPyPacked_str,           /* tp_str */
1886       PyObject_GenericGetAttr,              /* tp_getattro */
1887       0,                                    /* tp_setattro */
1888       0,                                    /* tp_as_buffer */
1889       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1890       swigpacked_doc,                       /* tp_doc */
1891       0,                                    /* tp_traverse */
1892       0,                                    /* tp_clear */
1893       0,                                    /* tp_richcompare */
1894       0,                                    /* tp_weaklistoffset */
1895       0,                                    /* tp_iter */
1896       0,                                    /* tp_iternext */
1897       0,                                    /* tp_methods */
1898       0,                                    /* tp_members */
1899       0,                                    /* tp_getset */
1900       0,                                    /* tp_base */
1901       0,                                    /* tp_dict */
1902       0,                                    /* tp_descr_get */
1903       0,                                    /* tp_descr_set */
1904       0,                                    /* tp_dictoffset */
1905       0,                                    /* tp_init */
1906       0,                                    /* tp_alloc */
1907       0,                                    /* tp_new */
1908       0,                                    /* tp_free */
1909       0,                                    /* tp_is_gc */
1910       0,                                    /* tp_bases */
1911       0,                                    /* tp_mro */
1912       0,                                    /* tp_cache */
1913       0,                                    /* tp_subclasses */
1914       0,                                    /* tp_weaklist */
1915       0,                                    /* tp_del */
1916       0,                                    /* tp_version_tag */
1917 #if PY_VERSION_HEX >= 0x03040000
1918       0,                                    /* tp_finalize */
1919 #endif
1920 #if PY_VERSION_HEX >= 0x03080000
1921       0,                                    /* tp_vectorcall */
1922 #endif
1923 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1924       0,                                    /* tp_print */
1925 #endif
1926 #ifdef COUNT_ALLOCS
1927       0,                                    /* tp_allocs */
1928       0,                                    /* tp_frees */
1929       0,                                    /* tp_maxalloc */
1930       0,                                    /* tp_prev */
1931       0                                     /* tp_next */
1932 #endif
1933     };
1934     swigpypacked_type = tmp;
1935     type_init = 1;
1936     if (PyType_Ready(&swigpypacked_type) < 0)
1937       return NULL;
1938   }
1939   return &swigpypacked_type;
1940 }
1941 
1942 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)1943 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1944 {
1945   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1946   if (sobj) {
1947     void *pack = malloc(size);
1948     if (pack) {
1949       memcpy(pack, ptr, size);
1950       sobj->pack = pack;
1951       sobj->ty   = ty;
1952       sobj->size = size;
1953     } else {
1954       PyObject_DEL((PyObject *) sobj);
1955       sobj = 0;
1956     }
1957   }
1958   return (PyObject *) sobj;
1959 }
1960 
1961 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)1962 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1963 {
1964   if (SwigPyPacked_Check(obj)) {
1965     SwigPyPacked *sobj = (SwigPyPacked *)obj;
1966     if (sobj->size != size) return 0;
1967     memcpy(ptr, sobj->pack, size);
1968     return sobj->ty;
1969   } else {
1970     return 0;
1971   }
1972 }
1973 
1974 /* -----------------------------------------------------------------------------
1975  * pointers/data manipulation
1976  * ----------------------------------------------------------------------------- */
1977 
1978 static PyObject *Swig_This_global = NULL;
1979 
1980 SWIGRUNTIME PyObject *
SWIG_This(void)1981 SWIG_This(void)
1982 {
1983   if (Swig_This_global == NULL)
1984     Swig_This_global = SWIG_Python_str_FromChar("this");
1985   return Swig_This_global;
1986 }
1987 
1988 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1989 
1990 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
1991 #if PY_VERSION_HEX>=0x03000000
1992 #define SWIG_PYTHON_SLOW_GETSET_THIS
1993 #endif
1994 
1995 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)1996 SWIG_Python_GetSwigThis(PyObject *pyobj)
1997 {
1998   PyObject *obj;
1999 
2000   if (SwigPyObject_Check(pyobj))
2001     return (SwigPyObject *) pyobj;
2002 
2003 #ifdef SWIGPYTHON_BUILTIN
2004   (void)obj;
2005 # ifdef PyWeakref_CheckProxy
2006   if (PyWeakref_CheckProxy(pyobj)) {
2007     pyobj = PyWeakref_GET_OBJECT(pyobj);
2008     if (pyobj && SwigPyObject_Check(pyobj))
2009       return (SwigPyObject*) pyobj;
2010   }
2011 # endif
2012   return NULL;
2013 #else
2014 
2015   obj = 0;
2016 
2017 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2018   if (PyInstance_Check(pyobj)) {
2019     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2020   } else {
2021     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2022     if (dictptr != NULL) {
2023       PyObject *dict = *dictptr;
2024       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2025     } else {
2026 #ifdef PyWeakref_CheckProxy
2027       if (PyWeakref_CheckProxy(pyobj)) {
2028 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2029 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2030       }
2031 #endif
2032       obj = PyObject_GetAttr(pyobj,SWIG_This());
2033       if (obj) {
2034 	Py_DECREF(obj);
2035       } else {
2036 	if (PyErr_Occurred()) PyErr_Clear();
2037 	return 0;
2038       }
2039     }
2040   }
2041 #else
2042   obj = PyObject_GetAttr(pyobj,SWIG_This());
2043   if (obj) {
2044     Py_DECREF(obj);
2045   } else {
2046     if (PyErr_Occurred()) PyErr_Clear();
2047     return 0;
2048   }
2049 #endif
2050   if (obj && !SwigPyObject_Check(obj)) {
2051     /* a PyObject is called 'this', try to get the 'real this'
2052        SwigPyObject from it */
2053     return SWIG_Python_GetSwigThis(obj);
2054   }
2055   return (SwigPyObject *)obj;
2056 #endif
2057 }
2058 
2059 /* Acquire a pointer value */
2060 
2061 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2062 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2063   if (own == SWIG_POINTER_OWN) {
2064     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2065     if (sobj) {
2066       int oldown = sobj->own;
2067       sobj->own = own;
2068       return oldown;
2069     }
2070   }
2071   return 0;
2072 }
2073 
2074 /* Convert a pointer value */
2075 
2076 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2077 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2078   int res;
2079   SwigPyObject *sobj;
2080   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2081 
2082   if (!obj)
2083     return SWIG_ERROR;
2084   if (obj == Py_None && !implicit_conv) {
2085     if (ptr)
2086       *ptr = 0;
2087     return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
2088   }
2089 
2090   res = SWIG_ERROR;
2091 
2092   sobj = SWIG_Python_GetSwigThis(obj);
2093   if (own)
2094     *own = 0;
2095   while (sobj) {
2096     void *vptr = sobj->ptr;
2097     if (ty) {
2098       swig_type_info *to = sobj->ty;
2099       if (to == ty) {
2100         /* no type cast needed */
2101         if (ptr) *ptr = vptr;
2102         break;
2103       } else {
2104         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2105         if (!tc) {
2106           sobj = (SwigPyObject *)sobj->next;
2107         } else {
2108           if (ptr) {
2109             int newmemory = 0;
2110             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2111             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2112               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2113               if (own)
2114                 *own = *own | SWIG_CAST_NEW_MEMORY;
2115             }
2116           }
2117           break;
2118         }
2119       }
2120     } else {
2121       if (ptr) *ptr = vptr;
2122       break;
2123     }
2124   }
2125   if (sobj) {
2126     if (own)
2127       *own = *own | sobj->own;
2128     if (flags & SWIG_POINTER_DISOWN) {
2129       sobj->own = 0;
2130     }
2131     res = SWIG_OK;
2132   } else {
2133     if (implicit_conv) {
2134       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2135       if (data && !data->implicitconv) {
2136         PyObject *klass = data->klass;
2137         if (klass) {
2138           PyObject *impconv;
2139           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2140           impconv = SWIG_Python_CallFunctor(klass, obj);
2141           data->implicitconv = 0;
2142           if (PyErr_Occurred()) {
2143             PyErr_Clear();
2144             impconv = 0;
2145           }
2146           if (impconv) {
2147             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2148             if (iobj) {
2149               void *vptr;
2150               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2151               if (SWIG_IsOK(res)) {
2152                 if (ptr) {
2153                   *ptr = vptr;
2154                   /* transfer the ownership to 'ptr' */
2155                   iobj->own = 0;
2156                   res = SWIG_AddCast(res);
2157                   res = SWIG_AddNewMask(res);
2158                 } else {
2159                   res = SWIG_AddCast(res);
2160                 }
2161               }
2162             }
2163             Py_DECREF(impconv);
2164           }
2165         }
2166       }
2167       if (!SWIG_IsOK(res) && obj == Py_None) {
2168         if (ptr)
2169           *ptr = 0;
2170         if (PyErr_Occurred())
2171           PyErr_Clear();
2172         res = SWIG_OK;
2173       }
2174     }
2175   }
2176   return res;
2177 }
2178 
2179 /* Convert a function ptr value */
2180 
2181 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2182 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2183   if (!PyCFunction_Check(obj)) {
2184     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2185   } else {
2186     void *vptr = 0;
2187     swig_cast_info *tc;
2188 
2189     /* here we get the method pointer for callbacks */
2190     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2191     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2192     if (desc)
2193       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2194     if (!desc)
2195       return SWIG_ERROR;
2196     tc = SWIG_TypeCheck(desc,ty);
2197     if (tc) {
2198       int newmemory = 0;
2199       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2200       assert(!newmemory); /* newmemory handling not yet implemented */
2201     } else {
2202       return SWIG_ERROR;
2203     }
2204     return SWIG_OK;
2205   }
2206 }
2207 
2208 /* Convert a packed pointer value */
2209 
2210 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2211 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2212   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2213   if (!to) return SWIG_ERROR;
2214   if (ty) {
2215     if (to != ty) {
2216       /* check type cast? */
2217       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2218       if (!tc) return SWIG_ERROR;
2219     }
2220   }
2221   return SWIG_OK;
2222 }
2223 
2224 /* -----------------------------------------------------------------------------
2225  * Create a new pointer object
2226  * ----------------------------------------------------------------------------- */
2227 
2228 /*
2229   Create a new instance object, without calling __init__, and set the
2230   'this' attribute.
2231 */
2232 
2233 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2234 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2235 {
2236   PyObject *inst = 0;
2237   PyObject *newraw = data->newraw;
2238   if (newraw) {
2239     inst = PyObject_Call(newraw, data->newargs, NULL);
2240     if (inst) {
2241 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2242       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2243       if (dictptr != NULL) {
2244 	PyObject *dict = *dictptr;
2245 	if (dict == NULL) {
2246 	  dict = PyDict_New();
2247 	  *dictptr = dict;
2248 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2249 	}
2250       }
2251 #else
2252       if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2253         Py_DECREF(inst);
2254         inst = 0;
2255       }
2256 #endif
2257     }
2258   } else {
2259 #if PY_VERSION_HEX >= 0x03000000
2260     PyObject *empty_args = PyTuple_New(0);
2261     if (empty_args) {
2262       PyObject *empty_kwargs = PyDict_New();
2263       if (empty_kwargs) {
2264         inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2265         Py_DECREF(empty_kwargs);
2266         if (inst) {
2267           if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2268             Py_DECREF(inst);
2269             inst = 0;
2270           } else {
2271             Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2272           }
2273         }
2274       }
2275       Py_DECREF(empty_args);
2276     }
2277 #else
2278     PyObject *dict = PyDict_New();
2279     if (dict) {
2280       PyDict_SetItem(dict, SWIG_This(), swig_this);
2281       inst = PyInstance_NewRaw(data->newargs, dict);
2282       Py_DECREF(dict);
2283     }
2284 #endif
2285   }
2286   return inst;
2287 }
2288 
2289 SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2290 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2291 {
2292 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2293   PyObject **dictptr = _PyObject_GetDictPtr(inst);
2294   if (dictptr != NULL) {
2295     PyObject *dict = *dictptr;
2296     if (dict == NULL) {
2297       dict = PyDict_New();
2298       *dictptr = dict;
2299     }
2300     return PyDict_SetItem(dict, SWIG_This(), swig_this);
2301   }
2302 #endif
2303   return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2304 }
2305 
2306 
2307 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2308 SWIG_Python_InitShadowInstance(PyObject *args) {
2309   PyObject *obj[2];
2310   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2311     return NULL;
2312   } else {
2313     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2314     if (sthis) {
2315       SwigPyObject_append((PyObject*) sthis, obj[1]);
2316     } else {
2317       if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2318         return NULL;
2319     }
2320     return SWIG_Py_Void();
2321   }
2322 }
2323 
2324 /* Create a new pointer object */
2325 
2326 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2327 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2328   SwigPyClientData *clientdata;
2329   PyObject * robj;
2330   int own;
2331 
2332   if (!ptr)
2333     return SWIG_Py_Void();
2334 
2335   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2336   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2337   if (clientdata && clientdata->pytype) {
2338     SwigPyObject *newobj;
2339     if (flags & SWIG_BUILTIN_TP_INIT) {
2340       newobj = (SwigPyObject*) self;
2341       if (newobj->ptr) {
2342         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2343         while (newobj->next)
2344 	  newobj = (SwigPyObject *) newobj->next;
2345         newobj->next = next_self;
2346         newobj = (SwigPyObject *)next_self;
2347 #ifdef SWIGPYTHON_BUILTIN
2348         newobj->dict = 0;
2349 #endif
2350       }
2351     } else {
2352       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2353 #ifdef SWIGPYTHON_BUILTIN
2354       newobj->dict = 0;
2355 #endif
2356     }
2357     if (newobj) {
2358       newobj->ptr = ptr;
2359       newobj->ty = type;
2360       newobj->own = own;
2361       newobj->next = 0;
2362       return (PyObject*) newobj;
2363     }
2364     return SWIG_Py_Void();
2365   }
2366 
2367   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2368 
2369   robj = SwigPyObject_New(ptr, type, own);
2370   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2371     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2372     Py_DECREF(robj);
2373     robj = inst;
2374   }
2375   return robj;
2376 }
2377 
2378 /* Create a new packed object */
2379 
2380 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2381 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2382   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2383 }
2384 
2385 /* -----------------------------------------------------------------------------*
2386  *  Get type list
2387  * -----------------------------------------------------------------------------*/
2388 
2389 #ifdef SWIG_LINK_RUNTIME
2390 void *SWIG_ReturnGlobalTypeList(void *);
2391 #endif
2392 
2393 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2394 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2395   static void *type_pointer = (void *)0;
2396   /* first check if module already created */
2397   if (!type_pointer) {
2398 #ifdef SWIG_LINK_RUNTIME
2399     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2400 #else
2401     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2402     if (PyErr_Occurred()) {
2403       PyErr_Clear();
2404       type_pointer = (void *)0;
2405     }
2406 #endif
2407   }
2408   return (swig_module_info *) type_pointer;
2409 }
2410 
2411 SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject * obj)2412 SWIG_Python_DestroyModule(PyObject *obj)
2413 {
2414   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2415   swig_type_info **types = swig_module->types;
2416   size_t i;
2417   for (i =0; i < swig_module->size; ++i) {
2418     swig_type_info *ty = types[i];
2419     if (ty->owndata) {
2420       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2421       if (data) SwigPyClientData_Del(data);
2422     }
2423   }
2424   Py_DECREF(SWIG_This());
2425   Swig_This_global = NULL;
2426 }
2427 
2428 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2429 SWIG_Python_SetModule(swig_module_info *swig_module) {
2430 #if PY_VERSION_HEX >= 0x03000000
2431  /* Add a dummy module object into sys.modules */
2432   PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2433 #else
2434   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2435   PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2436 #endif
2437   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2438   if (pointer && module) {
2439     PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2440   } else {
2441     Py_XDECREF(pointer);
2442   }
2443 }
2444 
2445 /* The python cached type query */
2446 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2447 SWIG_Python_TypeCache(void) {
2448   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2449   return cache;
2450 }
2451 
2452 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2453 SWIG_Python_TypeQuery(const char *type)
2454 {
2455   PyObject *cache = SWIG_Python_TypeCache();
2456   PyObject *key = SWIG_Python_str_FromChar(type);
2457   PyObject *obj = PyDict_GetItem(cache, key);
2458   swig_type_info *descriptor;
2459   if (obj) {
2460     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2461   } else {
2462     swig_module_info *swig_module = SWIG_GetModule(0);
2463     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2464     if (descriptor) {
2465       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2466       PyDict_SetItem(cache, key, obj);
2467       Py_DECREF(obj);
2468     }
2469   }
2470   Py_DECREF(key);
2471   return descriptor;
2472 }
2473 
2474 /*
2475    For backward compatibility only
2476 */
2477 #define SWIG_POINTER_EXCEPTION  0
2478 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2479 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2480 
2481 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2482 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2483 {
2484   if (PyErr_Occurred()) {
2485     PyObject *type = 0;
2486     PyObject *value = 0;
2487     PyObject *traceback = 0;
2488     PyErr_Fetch(&type, &value, &traceback);
2489     if (value) {
2490       PyObject *old_str = PyObject_Str(value);
2491       const char *tmp = SWIG_Python_str_AsChar(old_str);
2492       const char *errmesg = tmp ? tmp : "Invalid error message";
2493       Py_XINCREF(type);
2494       PyErr_Clear();
2495       if (infront) {
2496 	PyErr_Format(type, "%s %s", mesg, errmesg);
2497       } else {
2498 	PyErr_Format(type, "%s %s", errmesg, mesg);
2499       }
2500       SWIG_Python_str_DelForPy3(tmp);
2501       Py_DECREF(old_str);
2502     }
2503     return 1;
2504   } else {
2505     return 0;
2506   }
2507 }
2508 
2509 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2510 SWIG_Python_ArgFail(int argnum)
2511 {
2512   if (PyErr_Occurred()) {
2513     /* add information about failing argument */
2514     char mesg[256];
2515     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2516     return SWIG_Python_AddErrMesg(mesg, 1);
2517   } else {
2518     return 0;
2519   }
2520 }
2521 
2522 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)2523 SwigPyObject_GetDesc(PyObject *self)
2524 {
2525   SwigPyObject *v = (SwigPyObject *)self;
2526   swig_type_info *ty = v ? v->ty : 0;
2527   return ty ? ty->str : "";
2528 }
2529 
2530 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)2531 SWIG_Python_TypeError(const char *type, PyObject *obj)
2532 {
2533   if (type) {
2534 #if defined(SWIG_COBJECT_TYPES)
2535     if (obj && SwigPyObject_Check(obj)) {
2536       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2537       if (otype) {
2538 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2539 		     type, otype);
2540 	return;
2541       }
2542     } else
2543 #endif
2544     {
2545       const char *otype = (obj ? obj->ob_type->tp_name : 0);
2546       if (otype) {
2547 	PyObject *str = PyObject_Str(obj);
2548 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2549 	if (cstr) {
2550 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2551 		       type, otype, cstr);
2552           SWIG_Python_str_DelForPy3(cstr);
2553 	} else {
2554 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2555 		       type, otype);
2556 	}
2557 	Py_XDECREF(str);
2558 	return;
2559       }
2560     }
2561     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2562   } else {
2563     PyErr_Format(PyExc_TypeError, "unexpected type is received");
2564   }
2565 }
2566 
2567 
2568 /* Convert a pointer value, signal an exception on a type mismatch */
2569 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)2570 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2571   void *result;
2572   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2573     PyErr_Clear();
2574 #if SWIG_POINTER_EXCEPTION
2575     if (flags) {
2576       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2577       SWIG_Python_ArgFail(argnum);
2578     }
2579 #endif
2580   }
2581   return result;
2582 }
2583 
2584 #ifdef SWIGPYTHON_BUILTIN
2585 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)2586 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2587   PyTypeObject *tp = obj->ob_type;
2588   PyObject *descr;
2589   PyObject *encoded_name;
2590   descrsetfunc f;
2591   int res = -1;
2592 
2593 # ifdef Py_USING_UNICODE
2594   if (PyString_Check(name)) {
2595     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2596     if (!name)
2597       return -1;
2598   } else if (!PyUnicode_Check(name))
2599 # else
2600   if (!PyString_Check(name))
2601 # endif
2602   {
2603     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2604     return -1;
2605   } else {
2606     Py_INCREF(name);
2607   }
2608 
2609   if (!tp->tp_dict) {
2610     if (PyType_Ready(tp) < 0)
2611       goto done;
2612   }
2613 
2614   descr = _PyType_Lookup(tp, name);
2615   f = NULL;
2616   if (descr != NULL)
2617     f = descr->ob_type->tp_descr_set;
2618   if (!f) {
2619     if (PyString_Check(name)) {
2620       encoded_name = name;
2621       Py_INCREF(name);
2622     } else {
2623       encoded_name = PyUnicode_AsUTF8String(name);
2624       if (!encoded_name)
2625         return -1;
2626     }
2627     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2628     Py_DECREF(encoded_name);
2629   } else {
2630     res = f(descr, obj, value);
2631   }
2632 
2633   done:
2634   Py_DECREF(name);
2635   return res;
2636 }
2637 #endif
2638 
2639 
2640 #ifdef __cplusplus
2641 }
2642 #endif
2643 
2644 #ifdef __cplusplus
2645 extern "C" {
2646 #endif
2647 
2648 SWIGINTERN Py_hash_t
SwigPyObject_hash(PyObject * obj)2649 SwigPyObject_hash(PyObject *obj) {
2650   SwigPyObject *sobj = (SwigPyObject *)obj;
2651   void *ptr = sobj->ptr;
2652   return (Py_hash_t)ptr;
2653 }
2654 
2655 SWIGINTERN Py_hash_t
SWIG_PyNumber_AsPyHash(PyObject * obj)2656 SWIG_PyNumber_AsPyHash(PyObject *obj) {
2657   Py_hash_t result = -1;
2658 #if PY_VERSION_HEX < 0x03020000
2659   if (PyInt_Check(obj))
2660     result = PyInt_AsLong(obj);
2661   else if (PyLong_Check(obj))
2662     result = PyLong_AsLong(obj);
2663 #else
2664   if (PyNumber_Check(obj))
2665     result = PyNumber_AsSsize_t(obj, NULL);
2666 #endif
2667   else
2668     PyErr_Format(PyExc_TypeError, "Wrong type for hash function");
2669   return PyErr_Occurred() ? -1 : result;
2670 }
2671 
2672 SWIGINTERN int
SwigPyBuiltin_BadInit(PyObject * self,PyObject * SWIGUNUSEDPARM (args),PyObject * SWIGUNUSEDPARM (kwds))2673 SwigPyBuiltin_BadInit(PyObject *self, PyObject *SWIGUNUSEDPARM(args), PyObject *SWIGUNUSEDPARM(kwds)) {
2674   PyErr_Format(PyExc_TypeError, "Cannot create new instances of type '%.300s'", self->ob_type->tp_name);
2675   return -1;
2676 }
2677 
2678 SWIGINTERN void
SwigPyBuiltin_BadDealloc(PyObject * obj)2679 SwigPyBuiltin_BadDealloc(PyObject *obj) {
2680   SwigPyObject *sobj = (SwigPyObject *)obj;
2681   if (sobj->own) {
2682     PyErr_Format(PyExc_TypeError, "Swig detected a memory leak in type '%.300s': no callable destructor found.", obj->ob_type->tp_name);
2683   }
2684 }
2685 
2686 typedef struct {
2687   PyCFunction get;
2688   PyCFunction set;
2689 } SwigPyGetSet;
2690 
2691 SWIGINTERN PyObject *
SwigPyBuiltin_GetterClosure(PyObject * obj,void * closure)2692 SwigPyBuiltin_GetterClosure (PyObject *obj, void *closure) {
2693   SwigPyGetSet *getset;
2694   PyObject *tuple, *result;
2695   if (!closure)
2696     return SWIG_Py_Void();
2697   getset = (SwigPyGetSet *)closure;
2698   if (!getset->get)
2699     return SWIG_Py_Void();
2700   tuple = PyTuple_New(0);
2701   assert(tuple);
2702   result = (*getset->get)(obj, tuple);
2703   Py_DECREF(tuple);
2704   return result;
2705 }
2706 
2707 SWIGINTERN PyObject *
SwigPyBuiltin_FunpackGetterClosure(PyObject * obj,void * closure)2708 SwigPyBuiltin_FunpackGetterClosure (PyObject *obj, void *closure) {
2709   SwigPyGetSet *getset;
2710   PyObject *result;
2711   if (!closure)
2712     return SWIG_Py_Void();
2713   getset = (SwigPyGetSet *)closure;
2714   if (!getset->get)
2715     return SWIG_Py_Void();
2716   result = (*getset->get)(obj, NULL);
2717   return result;
2718 }
2719 
2720 SWIGINTERN int
SwigPyBuiltin_SetterClosure(PyObject * obj,PyObject * val,void * closure)2721 SwigPyBuiltin_SetterClosure (PyObject *obj, PyObject *val, void *closure) {
2722   SwigPyGetSet *getset;
2723   PyObject *tuple, *result;
2724   if (!closure) {
2725     PyErr_Format(PyExc_TypeError, "Missing getset closure");
2726     return -1;
2727   }
2728   getset = (SwigPyGetSet *)closure;
2729   if (!getset->set) {
2730     PyErr_Format(PyExc_TypeError, "Illegal member variable assignment in type '%.300s'", obj->ob_type->tp_name);
2731     return -1;
2732   }
2733   tuple = PyTuple_New(1);
2734   assert(tuple);
2735   Py_INCREF(val);
2736   PyTuple_SET_ITEM(tuple, 0, val);
2737   result = (*getset->set)(obj, tuple);
2738   Py_DECREF(tuple);
2739   Py_XDECREF(result);
2740   return result ? 0 : -1;
2741 }
2742 
2743 SWIGINTERN int
SwigPyBuiltin_FunpackSetterClosure(PyObject * obj,PyObject * val,void * closure)2744 SwigPyBuiltin_FunpackSetterClosure (PyObject *obj, PyObject *val, void *closure) {
2745   SwigPyGetSet *getset;
2746   PyObject *result;
2747   if (!closure) {
2748     PyErr_Format(PyExc_TypeError, "Missing getset closure");
2749     return -1;
2750   }
2751   getset = (SwigPyGetSet *)closure;
2752   if (!getset->set) {
2753     PyErr_Format(PyExc_TypeError, "Illegal member variable assignment in type '%.300s'", obj->ob_type->tp_name);
2754     return -1;
2755   }
2756   result = (*getset->set)(obj, val);
2757   Py_XDECREF(result);
2758   return result ? 0 : -1;
2759 }
2760 
2761 SWIGINTERN void
SwigPyStaticVar_dealloc(PyDescrObject * descr)2762 SwigPyStaticVar_dealloc(PyDescrObject *descr) {
2763   PyObject_GC_UnTrack(descr);
2764   Py_XDECREF(PyDescr_TYPE(descr));
2765   Py_XDECREF(PyDescr_NAME(descr));
2766   PyObject_GC_Del(descr);
2767 }
2768 
2769 SWIGINTERN PyObject *
SwigPyStaticVar_repr(PyGetSetDescrObject * descr)2770 SwigPyStaticVar_repr(PyGetSetDescrObject *descr) {
2771 #if PY_VERSION_HEX >= 0x03000000
2772 
2773   return PyUnicode_FromFormat("<class attribute '%S' of type '%s'>", PyDescr_NAME(descr), PyDescr_TYPE(descr)->tp_name);
2774 #else
2775   return PyString_FromFormat("<class attribute '%s' of type '%s'>", PyString_AsString(PyDescr_NAME(descr)), PyDescr_TYPE(descr)->tp_name);
2776 #endif
2777 }
2778 
2779 SWIGINTERN int
SwigPyStaticVar_traverse(PyObject * self,visitproc visit,void * arg)2780 SwigPyStaticVar_traverse(PyObject *self, visitproc visit, void *arg) {
2781   PyDescrObject *descr;
2782   descr = (PyDescrObject *)self;
2783   Py_VISIT((PyObject*) PyDescr_TYPE(descr));
2784   return 0;
2785 }
2786 
2787 SWIGINTERN PyObject *
SwigPyStaticVar_get(PyGetSetDescrObject * descr,PyObject * obj,PyObject * SWIGUNUSEDPARM (type))2788 SwigPyStaticVar_get(PyGetSetDescrObject *descr, PyObject *obj, PyObject *SWIGUNUSEDPARM(type)) {
2789   if (descr->d_getset->get != NULL)
2790     return descr->d_getset->get(obj, descr->d_getset->closure);
2791 #if PY_VERSION_HEX >= 0x03000000
2792   PyErr_Format(PyExc_AttributeError, "attribute '%.300S' of '%.100s' objects is not readable", PyDescr_NAME(descr), PyDescr_TYPE(descr)->tp_name);
2793 #else
2794   PyErr_Format(PyExc_AttributeError, "attribute '%.300s' of '%.100s' objects is not readable", PyString_AsString(PyDescr_NAME(descr)), PyDescr_TYPE(descr)->tp_name);
2795 #endif
2796   return NULL;
2797 }
2798 
2799 SWIGINTERN int
SwigPyStaticVar_set(PyGetSetDescrObject * descr,PyObject * obj,PyObject * value)2800 SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) {
2801   if (descr->d_getset->set != NULL)
2802     return descr->d_getset->set(obj, value, descr->d_getset->closure);
2803 #if PY_VERSION_HEX >= 0x03000000
2804   PyErr_Format(PyExc_AttributeError, "attribute '%.300S' of '%.100s' objects is not writable", PyDescr_NAME(descr), PyDescr_TYPE(descr)->tp_name);
2805 #else
2806   PyErr_Format(PyExc_AttributeError, "attribute '%.300s' of '%.100s' objects is not writable", PyString_AsString(PyDescr_NAME(descr)), PyDescr_TYPE(descr)->tp_name);
2807 #endif
2808   return -1;
2809 }
2810 
2811 SWIGINTERN int
SwigPyObjectType_setattro(PyObject * typeobject,PyObject * name,PyObject * value)2812 SwigPyObjectType_setattro(PyObject *typeobject, PyObject *name, PyObject *value) {
2813   PyObject *attribute;
2814   PyTypeObject *type;
2815   descrsetfunc local_set;
2816 
2817   assert(PyType_Check(typeobject));
2818   type = (PyTypeObject *)typeobject;
2819   attribute = _PyType_Lookup(type, name);
2820   if (attribute != NULL) {
2821     /* Implement descriptor functionality, if any */
2822     local_set = attribute->ob_type->tp_descr_set;
2823     if (local_set != NULL)
2824       return local_set(attribute, (PyObject *)type, value);
2825 #if PY_VERSION_HEX >= 0x03000000
2826     PyErr_Format(PyExc_AttributeError, "cannot modify read-only attribute '%.50s.%.400S'", type->tp_name, name);
2827 #else
2828     PyErr_Format(PyExc_AttributeError, "cannot modify read-only attribute '%.50s.%.400s'", type->tp_name, PyString_AS_STRING(name));
2829 #endif
2830   } else {
2831 #if PY_VERSION_HEX >= 0x03000000
2832     PyErr_Format(PyExc_AttributeError, "type '%.50s' has no attribute '%.400S'", type->tp_name, name);
2833 #else
2834     PyErr_Format(PyExc_AttributeError, "type '%.50s' has no attribute '%.400s'", type->tp_name, PyString_AS_STRING(name));
2835 #endif
2836   }
2837 
2838   return -1;
2839 }
2840 
2841 SWIGINTERN PyTypeObject*
SwigPyStaticVar_Type(void)2842 SwigPyStaticVar_Type(void) {
2843   static PyTypeObject staticvar_type;
2844   static int type_init = 0;
2845   if (!type_init) {
2846     const PyTypeObject tmp = {
2847 #if PY_VERSION_HEX >= 0x03000000
2848       PyVarObject_HEAD_INIT(&PyType_Type, 0)
2849 #else
2850       PyObject_HEAD_INIT(&PyType_Type)
2851       0,                                        /* ob_size */
2852 #endif
2853       "swig_static_var_getset_descriptor",      /* tp_name */
2854       sizeof(PyGetSetDescrObject),              /* tp_basicsize */
2855       0,                                        /* tp_itemsize */
2856       (destructor)SwigPyStaticVar_dealloc,      /* tp_dealloc */
2857       0,                                        /* tp_print */
2858       0,                                        /* tp_getattr */
2859       0,                                        /* tp_setattr */
2860       0,                                        /* tp_compare */
2861       (reprfunc)SwigPyStaticVar_repr,           /* tp_repr */
2862       0,                                        /* tp_as_number */
2863       0,                                        /* tp_as_sequence */
2864       0,                                        /* tp_as_mapping */
2865       0,                                        /* tp_hash */
2866       0,                                        /* tp_call */
2867       0,                                        /* tp_str */
2868       PyObject_GenericGetAttr,                  /* tp_getattro */
2869       0,                                        /* tp_setattro */
2870       0,                                        /* tp_as_buffer */
2871       Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_CLASS, /* tp_flags */
2872       0,                                        /* tp_doc */
2873       SwigPyStaticVar_traverse,                 /* tp_traverse */
2874       0,                                        /* tp_clear */
2875       0,                                        /* tp_richcompare */
2876       0,                                        /* tp_weaklistoffset */
2877       0,                                        /* tp_iter */
2878       0,                                        /* tp_iternext */
2879       0,                                        /* tp_methods */
2880       0,                                        /* tp_members */
2881       0,                                        /* tp_getset */
2882       0,                                        /* tp_base */
2883       0,                                        /* tp_dict */
2884       (descrgetfunc)SwigPyStaticVar_get,        /* tp_descr_get */
2885       (descrsetfunc)SwigPyStaticVar_set,        /* tp_descr_set */
2886       0,                                        /* tp_dictoffset */
2887       0,                                        /* tp_init */
2888       0,                                        /* tp_alloc */
2889       0,                                        /* tp_new */
2890       0,                                        /* tp_free */
2891       0,                                        /* tp_is_gc */
2892       0,                                        /* tp_bases */
2893       0,                                        /* tp_mro */
2894       0,                                        /* tp_cache */
2895       0,                                        /* tp_subclasses */
2896       0,                                        /* tp_weaklist */
2897       0,                                        /* tp_del */
2898       0,                                        /* tp_version_tag */
2899 #if PY_VERSION_HEX >= 0x03040000
2900       0,                                        /* tp_finalize */
2901 #endif
2902 #if PY_VERSION_HEX >= 0x03080000
2903       0,                                        /* tp_vectorcall */
2904 #endif
2905 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2906       0,                                        /* tp_print */
2907 #endif
2908 #ifdef COUNT_ALLOCS
2909       0,                                        /* tp_allocs */
2910       0,                                        /* tp_frees */
2911       0,                                        /* tp_maxalloc */
2912       0,                                        /* tp_prev */
2913       0                                         /* tp_next */
2914 #endif
2915     };
2916     staticvar_type = tmp;
2917     type_init = 1;
2918     if (PyType_Ready(&staticvar_type) < 0)
2919       return NULL;
2920   }
2921   return &staticvar_type;
2922 }
2923 
2924 SWIGINTERN PyTypeObject*
SwigPyObjectType(void)2925 SwigPyObjectType(void) {
2926   static char swigpyobjecttype_doc[] = "Metaclass for SWIG wrapped types";
2927   static PyTypeObject swigpyobjecttype_type;
2928   static int type_init = 0;
2929   if (!type_init) {
2930     const PyTypeObject tmp = {
2931 #if PY_VERSION_HEX >= 0x03000000
2932       PyVarObject_HEAD_INIT(&PyType_Type, 0)
2933 #else
2934       PyObject_HEAD_INIT(&PyType_Type)
2935       0,                                        /* ob_size */
2936 #endif
2937       "SwigPyObjectType",                       /* tp_name */
2938       PyType_Type.tp_basicsize,                 /* tp_basicsize */
2939       0,                                        /* tp_itemsize */
2940       0,                                        /* tp_dealloc */
2941       0,                                        /* tp_print */
2942       0,                                        /* tp_getattr */
2943       0,                                        /* tp_setattr */
2944       0,                                        /* tp_compare */
2945       0,                                        /* tp_repr */
2946       0,                                        /* tp_as_number */
2947       0,                                        /* tp_as_sequence */
2948       0,                                        /* tp_as_mapping */
2949       0,                                        /* tp_hash */
2950       0,                                        /* tp_call */
2951       0,                                        /* tp_str */
2952       0,                                        /* tp_getattro */
2953       SwigPyObjectType_setattro,                /* tp_setattro */
2954       0,                                        /* tp_as_buffer */
2955       Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_CLASS, /* tp_flags */
2956       swigpyobjecttype_doc,                     /* tp_doc */
2957       0,                                        /* tp_traverse */
2958       0,                                        /* tp_clear */
2959       0,                                        /* tp_richcompare */
2960       0,                                        /* tp_weaklistoffset */
2961       0,                                        /* tp_iter */
2962       0,                                        /* tp_iternext */
2963       0,                                        /* tp_methods */
2964       0,                                        /* tp_members */
2965       0,                                        /* tp_getset */
2966       0,                                        /* tp_base */
2967       0,                                        /* tp_dict */
2968       0,                                        /* tp_descr_get */
2969       0,                                        /* tp_descr_set */
2970       0,                                        /* tp_dictoffset */
2971       0,                                        /* tp_init */
2972       0,                                        /* tp_alloc */
2973       0,                                        /* tp_new */
2974       0,                                        /* tp_free */
2975       0,                                        /* tp_is_gc */
2976       0,                                        /* tp_bases */
2977       0,                                        /* tp_mro */
2978       0,                                        /* tp_cache */
2979       0,                                        /* tp_subclasses */
2980       0,                                        /* tp_weaklist */
2981       0,                                        /* tp_del */
2982       0,                                        /* tp_version_tag */
2983 #if PY_VERSION_HEX >= 0x03040000
2984       0,                                        /* tp_finalize */
2985 #endif
2986 #if PY_VERSION_HEX >= 0x03080000
2987       0,                                        /* tp_vectorcall */
2988 #endif
2989 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2990       0,                                        /* tp_print */
2991 #endif
2992 #ifdef COUNT_ALLOCS
2993       0,                                        /* tp_allocs */
2994       0,                                        /* tp_frees */
2995       0,                                        /* tp_maxalloc */
2996       0,                                        /* tp_prev */
2997       0                                         /* tp_next */
2998 #endif
2999     };
3000     swigpyobjecttype_type = tmp;
3001     type_init = 1;
3002     swigpyobjecttype_type.tp_base = &PyType_Type;
3003     if (PyType_Ready(&swigpyobjecttype_type) < 0)
3004       return NULL;
3005   }
3006   return &swigpyobjecttype_type;
3007 }
3008 
3009 SWIGINTERN PyGetSetDescrObject *
SwigPyStaticVar_new_getset(PyTypeObject * type,PyGetSetDef * getset)3010 SwigPyStaticVar_new_getset(PyTypeObject *type, PyGetSetDef *getset) {
3011 
3012   PyGetSetDescrObject *descr;
3013   descr = (PyGetSetDescrObject *)PyType_GenericAlloc(SwigPyStaticVar_Type(), 0);
3014   assert(descr);
3015   Py_XINCREF(type);
3016   PyDescr_TYPE(descr) = type;
3017   PyDescr_NAME(descr) = PyString_InternFromString(getset->name);
3018   descr->d_getset = getset;
3019   if (PyDescr_NAME(descr) == NULL) {
3020     Py_DECREF(descr);
3021     descr = NULL;
3022   }
3023   return descr;
3024 }
3025 
3026 SWIGINTERN void
SwigPyBuiltin_InitBases(PyTypeObject * type,PyTypeObject ** bases)3027 SwigPyBuiltin_InitBases (PyTypeObject *type, PyTypeObject **bases) {
3028   Py_ssize_t base_count = 0;
3029   PyTypeObject **b;
3030   PyObject *tuple;
3031   Py_ssize_t i;
3032 
3033   if (!bases[0]) {
3034     bases[0] = SwigPyObject_type();
3035     bases[1] = NULL;
3036   }
3037   type->tp_base = bases[0];
3038   Py_INCREF((PyObject *)bases[0]);
3039   for (b = bases; *b != NULL; ++b)
3040     ++base_count;
3041   tuple = PyTuple_New(base_count);
3042   for (i = 0; i < base_count; ++i) {
3043     Py_INCREF((PyObject *)bases[i]);
3044     PyTuple_SET_ITEM(tuple, i, (PyObject *)bases[i]);
3045   }
3046   type->tp_bases = tuple;
3047 }
3048 
3049 SWIGINTERN PyObject *
SwigPyBuiltin_ThisClosure(PyObject * self,void * SWIGUNUSEDPARM (closure))3050 SwigPyBuiltin_ThisClosure (PyObject *self, void *SWIGUNUSEDPARM(closure)) {
3051   PyObject *result;
3052   result = (PyObject *)SWIG_Python_GetSwigThis(self);
3053   Py_XINCREF(result);
3054   return result;
3055 }
3056 
3057 SWIGINTERN void
SwigPyBuiltin_SetMetaType(PyTypeObject * type,PyTypeObject * metatype)3058 SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
3059 {
3060 #if PY_VERSION_HEX >= 0x03000000
3061     type->ob_base.ob_base.ob_type = metatype;
3062 #else
3063     type->ob_type = metatype;
3064 #endif
3065 }
3066 
3067 
3068 /* Start of callback function macros for use in PyTypeObject */
3069 
3070 typedef PyObject *(*SwigPyWrapperFunction)(PyObject *, PyObject *);
3071 
3072 #define SWIGPY_UNARYFUNC_CLOSURE(wrapper)		\
3073 SWIGINTERN PyObject *					\
3074 wrapper##_unaryfunc_closure(PyObject *a) {		\
3075   return SwigPyBuiltin_unaryfunc_closure(wrapper, a);	\
3076 }
3077 SWIGINTERN PyObject *
SwigPyBuiltin_unaryfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3078 SwigPyBuiltin_unaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3079   return wrapper(a, NULL);
3080 }
3081 
3082 #define SWIGPY_DESTRUCTOR_CLOSURE(wrapper)			\
3083 SWIGINTERN void							\
3084 wrapper##_destructor_closure(PyObject *a) {			\
3085     SwigPyBuiltin_destructor_closure(wrapper, #wrapper, a);	\
3086 }
3087 SWIGINTERN void
SwigPyBuiltin_destructor_closure(SwigPyWrapperFunction wrapper,const char * wrappername,PyObject * a)3088 SwigPyBuiltin_destructor_closure(SwigPyWrapperFunction wrapper, const char *wrappername, PyObject *a) {
3089   SwigPyObject *sobj;
3090   sobj = (SwigPyObject *)a;
3091   Py_XDECREF(sobj->dict);
3092   if (sobj->own) {
3093     PyObject *o;
3094     PyObject *type = 0, *value = 0, *traceback = 0;
3095     PyErr_Fetch(&type, &value, &traceback);
3096     o = wrapper(a, NULL);
3097     if (!o) {
3098       PyObject *deallocname = PyString_FromString(wrappername);
3099       PyErr_WriteUnraisable(deallocname);
3100       Py_DECREF(deallocname);
3101     }
3102     PyErr_Restore(type, value, traceback);
3103     Py_XDECREF(o);
3104   }
3105   if (PyType_IS_GC(a->ob_type)) {
3106     PyObject_GC_Del(a);
3107   } else {
3108     PyObject_Del(a);
3109   }
3110 }
3111 
3112 #define SWIGPY_INQUIRY_CLOSURE(wrapper)			\
3113 SWIGINTERN int						\
3114 wrapper##_inquiry_closure(PyObject *a) {		\
3115   return SwigPyBuiltin_inquiry_closure(wrapper, a);	\
3116 }
3117 SWIGINTERN int
SwigPyBuiltin_inquiry_closure(SwigPyWrapperFunction wrapper,PyObject * a)3118 SwigPyBuiltin_inquiry_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3119   PyObject *pyresult;
3120   int result;
3121   pyresult = wrapper(a, NULL);
3122   result = pyresult && PyObject_IsTrue(pyresult) ? 1 : 0;
3123   Py_XDECREF(pyresult);
3124   return result;
3125 }
3126 
3127 #define SWIGPY_GETITERFUNC_CLOSURE(wrapper)		\
3128 SWIGINTERN PyObject *					\
3129 wrapper##_getiterfunc_closure(PyObject *a) {		\
3130   return SwigPyBuiltin_getiterfunc_closure(wrapper, a);	\
3131 }
3132 SWIGINTERN PyObject *
SwigPyBuiltin_getiterfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3133 SwigPyBuiltin_getiterfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3134   return wrapper(a, NULL);
3135 }
3136 
3137 #define SWIGPY_BINARYFUNC_CLOSURE(wrapper)			\
3138 SWIGINTERN PyObject *						\
3139 wrapper##_binaryfunc_closure(PyObject *a, PyObject *b) {	\
3140   return SwigPyBuiltin_binaryfunc_closure(wrapper, a, b);	\
3141 }
3142 SWIGINTERN PyObject *
SwigPyBuiltin_binaryfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b)3143 SwigPyBuiltin_binaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b) {
3144   PyObject *tuple, *result;
3145   tuple = PyTuple_New(1);
3146   assert(tuple);
3147   Py_INCREF(b);
3148   PyTuple_SET_ITEM(tuple, 0, b);
3149   result = wrapper(a, tuple);
3150   Py_DECREF(tuple);
3151   return result;
3152 }
3153 
3154 typedef ternaryfunc ternarycallfunc;
3155 
3156 #define SWIGPY_TERNARYFUNC_CLOSURE(wrapper)				\
3157 SWIGINTERN PyObject *							\
3158 wrapper##_ternaryfunc_closure(PyObject *a, PyObject *b, PyObject *c) {	\
3159   return SwigPyBuiltin_ternaryfunc_closure(wrapper, a, b, c);		\
3160 }
3161 SWIGINTERN PyObject *
SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b,PyObject * c)3162 SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
3163   PyObject *tuple, *result;
3164   tuple = PyTuple_New(2);
3165   assert(tuple);
3166   Py_INCREF(b);
3167   PyTuple_SET_ITEM(tuple, 0, b);
3168   Py_INCREF(c);
3169   PyTuple_SET_ITEM(tuple, 1, c);
3170   result = wrapper(a, tuple);
3171   Py_DECREF(tuple);
3172   return result;
3173 }
3174 
3175 #define SWIGPY_TERNARYCALLFUNC_CLOSURE(wrapper)					\
3176 SWIGINTERN PyObject *								\
3177 wrapper##_ternarycallfunc_closure(PyObject *a, PyObject *b, PyObject *c) {	\
3178   return SwigPyBuiltin_ternarycallfunc_closure(wrapper, a, b, c);		\
3179 }
3180 SWIGINTERN PyObject *
SwigPyBuiltin_ternarycallfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b,PyObject * c)3181 SwigPyBuiltin_ternarycallfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
3182   (void) c;
3183   return wrapper(a, b);
3184 }
3185 
3186 #define SWIGPY_LENFUNC_CLOSURE(wrapper)			\
3187 SWIGINTERN Py_ssize_t					\
3188 wrapper##_lenfunc_closure(PyObject *a) {		\
3189   return SwigPyBuiltin_lenfunc_closure(wrapper, a);	\
3190 }
3191 SWIGINTERN Py_ssize_t
SwigPyBuiltin_lenfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3192 SwigPyBuiltin_lenfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3193   PyObject *resultobj;
3194   Py_ssize_t result;
3195   resultobj = wrapper(a, NULL);
3196   result = PyNumber_AsSsize_t(resultobj, NULL);
3197   Py_DECREF(resultobj);
3198   return result;
3199 }
3200 
3201 #define SWIGPY_SSIZESSIZEARGFUNC_CLOSURE(wrapper)				\
3202 SWIGINTERN PyObject *								\
3203 wrapper##_ssizessizeargfunc_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c) {	\
3204   return SwigPyBuiltin_ssizessizeargfunc_closure(wrapper, a, b, c);		\
3205 }
3206 SWIGINTERN PyObject *
SwigPyBuiltin_ssizessizeargfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,Py_ssize_t b,Py_ssize_t c)3207 SwigPyBuiltin_ssizessizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, Py_ssize_t c) {
3208   PyObject *tuple, *result;
3209   tuple = PyTuple_New(2);
3210   assert(tuple);
3211   PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3212   PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c));
3213   result = wrapper(a, tuple);
3214   Py_DECREF(tuple);
3215   return result;
3216 }
3217 
3218 #define SWIGPY_SSIZESSIZEOBJARGPROC_CLOSURE(wrapper)						\
3219 SWIGINTERN int											\
3220 wrapper##_ssizessizeobjargproc_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c, PyObject *d) {	\
3221   return SwigPyBuiltin_ssizessizeobjargproc_closure(wrapper, a, b, c, d);			\
3222 }
3223 SWIGINTERN int
SwigPyBuiltin_ssizessizeobjargproc_closure(SwigPyWrapperFunction wrapper,PyObject * a,Py_ssize_t b,Py_ssize_t c,PyObject * d)3224 SwigPyBuiltin_ssizessizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, Py_ssize_t c, PyObject *d) {
3225   PyObject *tuple, *resultobj;
3226   int result;
3227   tuple = PyTuple_New(d ? 3 : 2);
3228   assert(tuple);
3229   PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3230   PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c));
3231   if (d) {
3232     Py_INCREF(d);
3233     PyTuple_SET_ITEM(tuple, 2, d);
3234   }
3235   resultobj = wrapper(a, tuple);
3236   result = resultobj ? 0 : -1;
3237   Py_DECREF(tuple);
3238   Py_XDECREF(resultobj);
3239   return result;
3240 }
3241 
3242 #define SWIGPY_SSIZEARGFUNC_CLOSURE(wrapper)				\
3243 SWIGINTERN PyObject *							\
3244 wrapper##_ssizeargfunc_closure(PyObject *a, Py_ssize_t b) {		\
3245   return SwigPyBuiltin_funpack_ssizeargfunc_closure(wrapper, a, b);	\
3246 }
3247 SWIGINTERN PyObject *
SwigPyBuiltin_funpack_ssizeargfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,Py_ssize_t b)3248 SwigPyBuiltin_funpack_ssizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b) {
3249   PyObject *tuple, *result;
3250   tuple = PyTuple_New(1);
3251   assert(tuple);
3252   PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3253   result = wrapper(a, tuple);
3254   Py_DECREF(tuple);
3255   return result;
3256 }
3257 
3258 #define SWIGPY_FUNPACK_SSIZEARGFUNC_CLOSURE(wrapper)			\
3259 SWIGINTERN PyObject *							\
3260 wrapper##_ssizeargfunc_closure(PyObject *a, Py_ssize_t b) {		\
3261   return SwigPyBuiltin_ssizeargfunc_closure(wrapper, a, b);		\
3262 }
3263 SWIGINTERN PyObject *
SwigPyBuiltin_ssizeargfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a,Py_ssize_t b)3264 SwigPyBuiltin_ssizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b) {
3265   PyObject *arg, *result;
3266   arg = _PyLong_FromSsize_t(b);
3267   result = wrapper(a, arg);
3268   Py_DECREF(arg);
3269   return result;
3270 }
3271 
3272 #define SWIGPY_SSIZEOBJARGPROC_CLOSURE(wrapper)					\
3273 SWIGINTERN int									\
3274 wrapper##_ssizeobjargproc_closure(PyObject *a, Py_ssize_t b, PyObject *c) {	\
3275   return SwigPyBuiltin_ssizeobjargproc_closure(wrapper, a, b, c);		\
3276 }
3277 SWIGINTERN int
SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper,PyObject * a,Py_ssize_t b,PyObject * c)3278 SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, PyObject *c) {
3279   PyObject *tuple, *resultobj;
3280   int result;
3281   tuple = PyTuple_New(2);
3282   assert(tuple);
3283   PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3284   Py_INCREF(c);
3285   PyTuple_SET_ITEM(tuple, 1, c);
3286   resultobj = wrapper(a, tuple);
3287   result = resultobj ? 0 : -1;
3288   Py_XDECREF(resultobj);
3289   Py_DECREF(tuple);
3290   return result;
3291 }
3292 
3293 #define SWIGPY_OBJOBJPROC_CLOSURE(wrapper)			\
3294 SWIGINTERN int							\
3295 wrapper##_objobjproc_closure(PyObject *a, PyObject *b) {	\
3296   return SwigPyBuiltin_objobjproc_closure(wrapper, a, b);	\
3297 }
3298 SWIGINTERN int
SwigPyBuiltin_objobjproc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b)3299 SwigPyBuiltin_objobjproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b) {
3300   int result;
3301   PyObject *pyresult;
3302   PyObject *tuple;
3303   tuple = PyTuple_New(1);
3304   assert(tuple);
3305   Py_INCREF(b);
3306   PyTuple_SET_ITEM(tuple, 0, b);
3307   pyresult = wrapper(a, tuple);
3308   result = pyresult ? (PyObject_IsTrue(pyresult) ? 1 : 0) : -1;
3309   Py_XDECREF(pyresult);
3310   Py_DECREF(tuple);
3311   return result;
3312 }
3313 
3314 #define SWIGPY_FUNPACK_OBJOBJPROC_CLOSURE(wrapper)			\
3315 SWIGINTERN int								\
3316 wrapper##_objobjproc_closure(PyObject *a, PyObject *b) {		\
3317   return SwigPyBuiltin_funpack_objobjproc_closure(wrapper, a, b);	\
3318 }
3319 SWIGINTERN int
SwigPyBuiltin_funpack_objobjproc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b)3320 SwigPyBuiltin_funpack_objobjproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b) {
3321   int result;
3322   PyObject *pyresult;
3323   pyresult = wrapper(a, b);
3324   result = pyresult ? (PyObject_IsTrue(pyresult) ? 1 : 0) : -1;
3325   Py_XDECREF(pyresult);
3326   return result;
3327 }
3328 
3329 #define SWIGPY_OBJOBJARGPROC_CLOSURE(wrapper)					\
3330 SWIGINTERN int									\
3331 wrapper##_objobjargproc_closure(PyObject *a, PyObject *b, PyObject *c) {	\
3332   return SwigPyBuiltin_objobjargproc_closure(wrapper, a, b, c);			\
3333 }
3334 SWIGINTERN int
SwigPyBuiltin_objobjargproc_closure(SwigPyWrapperFunction wrapper,PyObject * a,PyObject * b,PyObject * c)3335 SwigPyBuiltin_objobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
3336   PyObject *tuple, *resultobj;
3337   int result;
3338   tuple = PyTuple_New(c ? 2 : 1);
3339   assert(tuple);
3340   Py_INCREF(b);
3341   PyTuple_SET_ITEM(tuple, 0, b);
3342   if (c) {
3343     Py_INCREF(c);
3344     PyTuple_SET_ITEM(tuple, 1, c);
3345   }
3346   resultobj = wrapper(a, tuple);
3347   result = resultobj ? 0 : -1;
3348   Py_XDECREF(resultobj);
3349   Py_DECREF(tuple);
3350   return result;
3351 }
3352 
3353 #define SWIGPY_REPRFUNC_CLOSURE(wrapper)		\
3354 SWIGINTERN PyObject *					\
3355 wrapper##_reprfunc_closure(PyObject *a) {		\
3356   return SwigPyBuiltin_reprfunc_closure(wrapper, a);	\
3357 }
3358 SWIGINTERN PyObject *
SwigPyBuiltin_reprfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3359 SwigPyBuiltin_reprfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3360   return wrapper(a, NULL);
3361 }
3362 
3363 #define SWIGPY_HASHFUNC_CLOSURE(wrapper)		\
3364 SWIGINTERN Py_hash_t					\
3365 wrapper##_hashfunc_closure(PyObject *a) {		\
3366   return SwigPyBuiltin_hashfunc_closure(wrapper, a);	\
3367 }
3368 SWIGINTERN Py_hash_t
SwigPyBuiltin_hashfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3369 SwigPyBuiltin_hashfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3370   PyObject *pyresult;
3371   Py_hash_t result;
3372   pyresult = wrapper(a, NULL);
3373   if (!pyresult)
3374     return -1;
3375   result = SWIG_PyNumber_AsPyHash(pyresult);
3376   Py_DECREF(pyresult);
3377   return result;
3378 }
3379 
3380 #define SWIGPY_ITERNEXTFUNC_CLOSURE(wrapper)		\
3381 SWIGINTERN PyObject *					\
3382 wrapper##_iternextfunc_closure(PyObject *a) {		\
3383   return SwigPyBuiltin_iternextfunc_closure(wrapper, a);\
3384 }
3385 SWIGINTERN PyObject *
SwigPyBuiltin_iternextfunc_closure(SwigPyWrapperFunction wrapper,PyObject * a)3386 SwigPyBuiltin_iternextfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3387   return wrapper(a, NULL);
3388 }
3389 
3390 /* End of callback function macros for use in PyTypeObject */
3391 
3392 #ifdef __cplusplus
3393 }
3394 #endif
3395 
3396 
3397 
3398 
3399 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3400 
3401 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
3402 
3403 
3404 
3405 #ifdef __cplusplus
3406 extern "C" {
3407 #endif
3408 
3409 /* Method creation and docstring support functions */
3410 
3411 SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
3412 SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
3413 SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
3414 
3415 #ifdef __cplusplus
3416 }
3417 #endif
3418 
3419 
3420 /* -------- TYPES TABLE (BEGIN) -------- */
3421 
3422 #define SWIGTYPE_p_CameraAbilities swig_types[0]
3423 #define SWIGTYPE_p_CameraCaptureType swig_types[1]
3424 #define SWIGTYPE_p_CameraDriverStatus swig_types[2]
3425 #define SWIGTYPE_p_CameraEventType swig_types[3]
3426 #define SWIGTYPE_p_CameraFileAccessType swig_types[4]
3427 #define SWIGTYPE_p_CameraFileInfoFields swig_types[5]
3428 #define SWIGTYPE_p_CameraFileOperation swig_types[6]
3429 #define SWIGTYPE_p_CameraFilePath swig_types[7]
3430 #define SWIGTYPE_p_CameraFilePermissions swig_types[8]
3431 #define SWIGTYPE_p_CameraFileStatus swig_types[9]
3432 #define SWIGTYPE_p_CameraFileType swig_types[10]
3433 #define SWIGTYPE_p_CameraFolderOperation swig_types[11]
3434 #define SWIGTYPE_p_CameraOperation swig_types[12]
3435 #define SWIGTYPE_p_CameraStorageAccessType swig_types[13]
3436 #define SWIGTYPE_p_CameraStorageFilesystemType swig_types[14]
3437 #define SWIGTYPE_p_CameraStorageInfoFields swig_types[15]
3438 #define SWIGTYPE_p_CameraStorageType swig_types[16]
3439 #define SWIGTYPE_p_CameraText swig_types[17]
3440 #define SWIGTYPE_p_CameraWidgetType swig_types[18]
3441 #define SWIGTYPE_p_GPLogLevel swig_types[19]
3442 #define SWIGTYPE_p_GPPortType swig_types[20]
3443 #define SWIGTYPE_p_GPVersionVerbosity swig_types[21]
3444 #define SWIGTYPE_p_GphotoDeviceType swig_types[22]
3445 #define SWIGTYPE_p_SwigPyObject swig_types[23]
3446 #define SWIGTYPE_p__Camera swig_types[24]
3447 #define SWIGTYPE_p__CameraAbilitiesList swig_types[25]
3448 #define SWIGTYPE_p__CameraFile swig_types[26]
3449 #define SWIGTYPE_p__CameraFileHandler swig_types[27]
3450 #define SWIGTYPE_p__CameraFileInfo swig_types[28]
3451 #define SWIGTYPE_p__CameraFileInfoAudio swig_types[29]
3452 #define SWIGTYPE_p__CameraFileInfoFile swig_types[30]
3453 #define SWIGTYPE_p__CameraFileInfoPreview swig_types[31]
3454 #define SWIGTYPE_p__CameraFilesystem swig_types[32]
3455 #define SWIGTYPE_p__CameraFilesystemFuncs swig_types[33]
3456 #define SWIGTYPE_p__CameraFunctions swig_types[34]
3457 #define SWIGTYPE_p__CameraList swig_types[35]
3458 #define SWIGTYPE_p__CameraPrivateCore swig_types[36]
3459 #define SWIGTYPE_p__CameraPrivateLibrary swig_types[37]
3460 #define SWIGTYPE_p__CameraStorageInformation swig_types[38]
3461 #define SWIGTYPE_p__CameraWidget swig_types[39]
3462 #define SWIGTYPE_p__GPContext swig_types[40]
3463 #define SWIGTYPE_p__GPContextFeedback swig_types[41]
3464 #define SWIGTYPE_p__GPPortInfoList swig_types[42]
3465 #define SWIGTYPE_p_char swig_types[43]
3466 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int swig_types[44]
3467 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int swig_types[45]
3468 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int swig_types[46]
3469 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int swig_types[47]
3470 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int swig_types[48]
3471 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int swig_types[49]
3472 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int swig_types[50]
3473 #define SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int swig_types[51]
3474 #define SWIGTYPE_p_int swig_types[52]
3475 #define SWIGTYPE_p_long swig_types[53]
3476 #define SWIGTYPE_p_long_long swig_types[54]
3477 #define SWIGTYPE_p_p__CameraFilesystem swig_types[55]
3478 #define SWIGTYPE_p_p_char swig_types[56]
3479 #define SWIGTYPE_p_p_void swig_types[57]
3480 #define SWIGTYPE_p_short swig_types[58]
3481 #define SWIGTYPE_p_signed_char swig_types[59]
3482 #define SWIGTYPE_p_unsigned_char swig_types[60]
3483 #define SWIGTYPE_p_unsigned_int swig_types[61]
3484 #define SWIGTYPE_p_unsigned_long_long swig_types[62]
3485 #define SWIGTYPE_p_unsigned_short swig_types[63]
3486 static swig_type_info *swig_types[65];
3487 static swig_module_info swig_module = {swig_types, 64, 0, 0, 0, 0};
3488 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3489 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3490 
3491 /* -------- TYPES TABLE (END) -------- */
3492 
3493 #ifdef SWIG_TypeQuery
3494 # undef SWIG_TypeQuery
3495 #endif
3496 #define SWIG_TypeQuery SWIG_Python_TypeQuery
3497 
3498 /*-----------------------------------------------
3499               @(target):= _filesys.so
3500   ------------------------------------------------*/
3501 #if PY_VERSION_HEX >= 0x03000000
3502 #  define SWIG_init    PyInit__filesys
3503 
3504 #else
3505 #  define SWIG_init    init_filesys
3506 
3507 #endif
3508 #define SWIG_name    "_filesys"
3509 
3510 #define SWIGVERSION 0x040002
3511 #define SWIG_VERSION SWIGVERSION
3512 
3513 
3514 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
3515 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
3516 
3517 
3518 #include <stddef.h>
3519 
3520 
3521 #include "gphoto2/gphoto2.h"
3522 
3523 
3524 PyObject *PyExc_GPhoto2Error = NULL;
3525 
new__CameraFilesystem(void)3526 SWIGINTERN struct _CameraFilesystem *new__CameraFilesystem(void){
3527     struct _CameraFilesystem *result;
3528     int error = gp_filesystem_new(&result);
3529     if (error < 0)
3530       /*@SWIG:src/gphoto2/common/macros.i,18,GPHOTO2_ERROR@*/
3531 PyErr_SetObject(PyExc_GPhoto2Error, PyInt_FromLong(error));
3532 /*@SWIG@*/
3533     return result;
3534   }
delete__CameraFilesystem(struct _CameraFilesystem * self)3535 SWIGINTERN void delete__CameraFilesystem(struct _CameraFilesystem *self){
3536     int error = gp_filesystem_free(self);
3537     if (error < 0) /*@SWIG:src/gphoto2/common/macros.i,18,GPHOTO2_ERROR@*/
3538 PyErr_SetObject(PyExc_GPhoto2Error, PyInt_FromLong(error));
3539 /*@SWIG@*/
3540   }
3541 
3542 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)3543   SWIG_From_int  (int value)
3544 {
3545   return PyInt_FromLong((long) value);
3546 }
3547 
3548 
3549 #include <limits.h>
3550 #if !defined(SWIG_NO_LLONG_MAX)
3551 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3552 #   define LLONG_MAX __LONG_LONG_MAX__
3553 #   define LLONG_MIN (-LLONG_MAX - 1LL)
3554 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3555 # endif
3556 #endif
3557 
3558 
3559 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
3560 #  define SWIG_LONG_LONG_AVAILABLE
3561 #endif
3562 
3563 
3564 #ifdef SWIG_LONG_LONG_AVAILABLE
3565 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)3566 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
3567 {
3568   return (value > LONG_MAX) ?
3569     PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)(value));
3570 }
3571 #endif
3572 
3573 
3574 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)3575 SWIG_pchar_descriptor(void)
3576 {
3577   static int init = 0;
3578   static swig_type_info* info = 0;
3579   if (!init) {
3580     info = SWIG_TypeQuery("_p_char");
3581     init = 1;
3582   }
3583   return info;
3584 }
3585 
3586 
3587 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)3588 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3589 {
3590   if (carray) {
3591     if (size > INT_MAX) {
3592       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3593       return pchar_descriptor ?
3594 	SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3595     } else {
3596 #if PY_VERSION_HEX >= 0x03000000
3597 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3598       return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size));
3599 #else
3600       return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
3601 #endif
3602 #else
3603       return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3604 #endif
3605     }
3606   } else {
3607     return SWIG_Py_Void();
3608   }
3609 }
3610 
3611 
3612 SWIGINTERN size_t
SWIG_strnlen(const char * s,size_t maxlen)3613 SWIG_strnlen(const char* s, size_t maxlen)
3614 {
3615   const char *p;
3616   for (p = s; maxlen-- && *p; p++)
3617     ;
3618   return p - s;
3619 }
3620 
3621 
3622 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int(unsigned int value)3623   SWIG_From_unsigned_SS_int  (unsigned int value)
3624 {
3625   return PyInt_FromSize_t((size_t) value);
3626 }
3627 
3628 
3629   #define SWIG_From_long   PyInt_FromLong
3630 
3631 
3632 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)3633 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3634 {
3635 #if PY_VERSION_HEX>=0x03000000
3636 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3637   if (PyBytes_Check(obj))
3638 #else
3639   if (PyUnicode_Check(obj))
3640 #endif
3641 #else
3642   if (PyString_Check(obj))
3643 #endif
3644   {
3645     char *cstr; Py_ssize_t len;
3646     int ret = SWIG_OK;
3647 #if PY_VERSION_HEX>=0x03000000
3648 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3649     if (!alloc && cptr) {
3650         /* We can't allow converting without allocation, since the internal
3651            representation of string in Python 3 is UCS-2/UCS-4 but we require
3652            a UTF-8 representation.
3653            TODO(bhy) More detailed explanation */
3654         return SWIG_RuntimeError;
3655     }
3656     obj = PyUnicode_AsUTF8String(obj);
3657     if (!obj)
3658       return SWIG_TypeError;
3659     if (alloc)
3660       *alloc = SWIG_NEWOBJ;
3661 #endif
3662     if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
3663       return SWIG_TypeError;
3664 #else
3665     if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
3666       return SWIG_TypeError;
3667 #endif
3668     if (cptr) {
3669       if (alloc) {
3670 	if (*alloc == SWIG_NEWOBJ) {
3671 	  *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3672 	  *alloc = SWIG_NEWOBJ;
3673 	} else {
3674 	  *cptr = cstr;
3675 	  *alloc = SWIG_OLDOBJ;
3676 	}
3677       } else {
3678 #if PY_VERSION_HEX>=0x03000000
3679 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3680 	*cptr = PyBytes_AsString(obj);
3681 #else
3682 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
3683 #endif
3684 #else
3685 	*cptr = SWIG_Python_str_AsChar(obj);
3686         if (!*cptr)
3687           ret = SWIG_TypeError;
3688 #endif
3689       }
3690     }
3691     if (psize) *psize = len + 1;
3692 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3693     Py_XDECREF(obj);
3694 #endif
3695     return ret;
3696   } else {
3697 #if defined(SWIG_PYTHON_2_UNICODE)
3698 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3699 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3700 #endif
3701 #if PY_VERSION_HEX<0x03000000
3702     if (PyUnicode_Check(obj)) {
3703       char *cstr; Py_ssize_t len;
3704       if (!alloc && cptr) {
3705         return SWIG_RuntimeError;
3706       }
3707       obj = PyUnicode_AsUTF8String(obj);
3708       if (!obj)
3709         return SWIG_TypeError;
3710       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3711         if (cptr) {
3712           if (alloc) *alloc = SWIG_NEWOBJ;
3713           *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3714         }
3715         if (psize) *psize = len + 1;
3716 
3717         Py_XDECREF(obj);
3718         return SWIG_OK;
3719       } else {
3720         Py_XDECREF(obj);
3721       }
3722     }
3723 #endif
3724 #endif
3725 
3726     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3727     if (pchar_descriptor) {
3728       void* vptr = 0;
3729       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3730 	if (cptr) *cptr = (char *) vptr;
3731 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3732 	if (alloc) *alloc = SWIG_OLDOBJ;
3733 	return SWIG_OK;
3734       }
3735     }
3736   }
3737   return SWIG_TypeError;
3738 }
3739 
3740 
3741 
3742 
3743 
3744 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)3745 SWIG_AsVal_double (PyObject *obj, double *val)
3746 {
3747   int res = SWIG_TypeError;
3748   if (PyFloat_Check(obj)) {
3749     if (val) *val = PyFloat_AsDouble(obj);
3750     return SWIG_OK;
3751 #if PY_VERSION_HEX < 0x03000000
3752   } else if (PyInt_Check(obj)) {
3753     if (val) *val = (double) PyInt_AsLong(obj);
3754     return SWIG_OK;
3755 #endif
3756   } else if (PyLong_Check(obj)) {
3757     double v = PyLong_AsDouble(obj);
3758     if (!PyErr_Occurred()) {
3759       if (val) *val = v;
3760       return SWIG_OK;
3761     } else {
3762       PyErr_Clear();
3763     }
3764   }
3765 #ifdef SWIG_PYTHON_CAST_MODE
3766   {
3767     int dispatch = 0;
3768     double d = PyFloat_AsDouble(obj);
3769     if (!PyErr_Occurred()) {
3770       if (val) *val = d;
3771       return SWIG_AddCast(SWIG_OK);
3772     } else {
3773       PyErr_Clear();
3774     }
3775     if (!dispatch) {
3776       long v = PyLong_AsLong(obj);
3777       if (!PyErr_Occurred()) {
3778 	if (val) *val = v;
3779 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3780       } else {
3781 	PyErr_Clear();
3782       }
3783     }
3784   }
3785 #endif
3786   return res;
3787 }
3788 
3789 
3790 #include <float.h>
3791 
3792 
3793 #include <math.h>
3794 
3795 
3796 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)3797 SWIG_CanCastAsInteger(double *d, double min, double max) {
3798   double x = *d;
3799   if ((min <= x && x <= max)) {
3800    double fx = floor(x);
3801    double cx = ceil(x);
3802    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3803    if ((errno == EDOM) || (errno == ERANGE)) {
3804      errno = 0;
3805    } else {
3806      double summ, reps, diff;
3807      if (rd < x) {
3808        diff = x - rd;
3809      } else if (rd > x) {
3810        diff = rd - x;
3811      } else {
3812        return 1;
3813      }
3814      summ = rd + x;
3815      reps = diff/summ;
3816      if (reps < 8*DBL_EPSILON) {
3817        *d = rd;
3818        return 1;
3819      }
3820    }
3821   }
3822   return 0;
3823 }
3824 
3825 
3826 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)3827 SWIG_AsVal_long (PyObject *obj, long* val)
3828 {
3829 #if PY_VERSION_HEX < 0x03000000
3830   if (PyInt_Check(obj)) {
3831     if (val) *val = PyInt_AsLong(obj);
3832     return SWIG_OK;
3833   } else
3834 #endif
3835   if (PyLong_Check(obj)) {
3836     long v = PyLong_AsLong(obj);
3837     if (!PyErr_Occurred()) {
3838       if (val) *val = v;
3839       return SWIG_OK;
3840     } else {
3841       PyErr_Clear();
3842       return SWIG_OverflowError;
3843     }
3844   }
3845 #ifdef SWIG_PYTHON_CAST_MODE
3846   {
3847     int dispatch = 0;
3848     long v = PyInt_AsLong(obj);
3849     if (!PyErr_Occurred()) {
3850       if (val) *val = v;
3851       return SWIG_AddCast(SWIG_OK);
3852     } else {
3853       PyErr_Clear();
3854     }
3855     if (!dispatch) {
3856       double d;
3857       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3858       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3859 	if (val) *val = (long)(d);
3860 	return res;
3861       }
3862     }
3863   }
3864 #endif
3865   return SWIG_TypeError;
3866 }
3867 
3868 
3869 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)3870 SWIG_AsVal_int (PyObject * obj, int *val)
3871 {
3872   long v;
3873   int res = SWIG_AsVal_long (obj, &v);
3874   if (SWIG_IsOK(res)) {
3875     if ((v < INT_MIN || v > INT_MAX)) {
3876       return SWIG_OverflowError;
3877     } else {
3878       if (val) *val = (int)(v);
3879     }
3880   }
3881   return res;
3882 }
3883 
3884 
3885 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)3886 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3887 {
3888 #if PY_VERSION_HEX < 0x03000000
3889   if (PyInt_Check(obj)) {
3890     long v = PyInt_AsLong(obj);
3891     if (v >= 0) {
3892       if (val) *val = v;
3893       return SWIG_OK;
3894     } else {
3895       return SWIG_OverflowError;
3896     }
3897   } else
3898 #endif
3899   if (PyLong_Check(obj)) {
3900     unsigned long v = PyLong_AsUnsignedLong(obj);
3901     if (!PyErr_Occurred()) {
3902       if (val) *val = v;
3903       return SWIG_OK;
3904     } else {
3905       PyErr_Clear();
3906       return SWIG_OverflowError;
3907     }
3908   }
3909 #ifdef SWIG_PYTHON_CAST_MODE
3910   {
3911     int dispatch = 0;
3912     unsigned long v = PyLong_AsUnsignedLong(obj);
3913     if (!PyErr_Occurred()) {
3914       if (val) *val = v;
3915       return SWIG_AddCast(SWIG_OK);
3916     } else {
3917       PyErr_Clear();
3918     }
3919     if (!dispatch) {
3920       double d;
3921       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3922       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3923 	if (val) *val = (unsigned long)(d);
3924 	return res;
3925       }
3926     }
3927   }
3928 #endif
3929   return SWIG_TypeError;
3930 }
3931 
3932 
3933 #ifdef SWIG_LONG_LONG_AVAILABLE
3934 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(PyObject * obj,unsigned long long * val)3935 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
3936 {
3937   int res = SWIG_TypeError;
3938   if (PyLong_Check(obj)) {
3939     unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3940     if (!PyErr_Occurred()) {
3941       if (val) *val = v;
3942       return SWIG_OK;
3943     } else {
3944       PyErr_Clear();
3945       res = SWIG_OverflowError;
3946     }
3947   } else {
3948     unsigned long v;
3949     res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3950     if (SWIG_IsOK(res)) {
3951       if (val) *val = v;
3952       return res;
3953     }
3954   }
3955 #ifdef SWIG_PYTHON_CAST_MODE
3956   {
3957     const double mant_max = 1LL << DBL_MANT_DIG;
3958     double d;
3959     res = SWIG_AsVal_double (obj,&d);
3960     if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
3961       return SWIG_OverflowError;
3962     if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3963       if (val) *val = (unsigned long long)(d);
3964       return SWIG_AddCast(res);
3965     }
3966     res = SWIG_TypeError;
3967   }
3968 #endif
3969   return res;
3970 }
3971 #endif
3972 
3973 #ifdef __cplusplus
3974 extern "C" {
3975 #endif
_wrap_new__CameraFilesystem(PyObject * self,PyObject * args,PyObject * kwargs)3976 SWIGINTERN int _wrap_new__CameraFilesystem(PyObject *self, PyObject *args, PyObject *kwargs) {
3977   PyObject *resultobj = 0;
3978   struct _CameraFilesystem *result = 0 ;
3979 
3980   if (!SWIG_Python_CheckNoKeywords(kwargs, "new__CameraFilesystem")) SWIG_fail;
3981   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "new__CameraFilesystem takes no arguments");
3982   {
3983     result = (struct _CameraFilesystem *)new__CameraFilesystem();
3984     if (PyErr_Occurred() != NULL) SWIG_fail;
3985   }
3986   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__CameraFilesystem, SWIG_BUILTIN_INIT |  0 );
3987   return resultobj == Py_None ? -1 : 0;
3988 fail:
3989   return -1;
3990 }
3991 
3992 
_wrap_delete__CameraFilesystem(PyObject * self,PyObject * args)3993 SWIGINTERN PyObject *_wrap_delete__CameraFilesystem(PyObject *self, PyObject *args) {
3994   PyObject *resultobj = 0;
3995   struct _CameraFilesystem *arg1 = (struct _CameraFilesystem *) 0 ;
3996   void *argp1 = 0 ;
3997   int res1 = 0 ;
3998 
3999   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete__CameraFilesystem takes no arguments");
4000   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystem, SWIG_POINTER_DISOWN |  0 );
4001   if (!SWIG_IsOK(res1)) {
4002     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__CameraFilesystem" "', argument " "1"" of type '" "struct _CameraFilesystem *""'");
4003   }
4004   arg1 = (struct _CameraFilesystem *)(argp1);
4005   {
4006     delete__CameraFilesystem(arg1);
4007     if (PyErr_Occurred() != NULL) SWIG_fail;
4008   }
4009   resultobj = SWIG_Py_Void();
4010   return resultobj;
4011 fail:
4012   return NULL;
4013 }
4014 
4015 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__CameraFilesystem)4016 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__CameraFilesystem) /* defines _wrap_delete__CameraFilesystem_destructor_closure */
4017 
4018 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_fields_get(PyObject *self, PyObject *args) {
4019   PyObject *resultobj = 0;
4020   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4021   void *argp1 = 0 ;
4022   int res1 = 0 ;
4023   CameraFileInfoFields result;
4024 
4025   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_fields_get takes no arguments");
4026   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4027   if (!SWIG_IsOK(res1)) {
4028     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_fields_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4029   }
4030   arg1 = (struct _CameraFileInfoFile *)(argp1);
4031   result = (CameraFileInfoFields) ((arg1)->fields);
4032   resultobj = SWIG_From_int((int)(result));
4033   return resultobj;
4034 fail:
4035   return NULL;
4036 }
4037 
4038 
_wrap_CameraFileInfoFile_status_get(PyObject * self,PyObject * args)4039 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_status_get(PyObject *self, PyObject *args) {
4040   PyObject *resultobj = 0;
4041   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4042   void *argp1 = 0 ;
4043   int res1 = 0 ;
4044   CameraFileStatus result;
4045 
4046   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_status_get takes no arguments");
4047   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4048   if (!SWIG_IsOK(res1)) {
4049     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_status_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4050   }
4051   arg1 = (struct _CameraFileInfoFile *)(argp1);
4052   result = (CameraFileStatus) ((arg1)->status);
4053   resultobj = SWIG_From_int((int)(result));
4054   return resultobj;
4055 fail:
4056   return NULL;
4057 }
4058 
4059 
_wrap_CameraFileInfoFile_size_get(PyObject * self,PyObject * args)4060 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_size_get(PyObject *self, PyObject *args) {
4061   PyObject *resultobj = 0;
4062   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4063   void *argp1 = 0 ;
4064   int res1 = 0 ;
4065   uint64_t result;
4066 
4067   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_size_get takes no arguments");
4068   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4069   if (!SWIG_IsOK(res1)) {
4070     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_size_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4071   }
4072   arg1 = (struct _CameraFileInfoFile *)(argp1);
4073   result = (uint64_t) ((arg1)->size);
4074   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4075   return resultobj;
4076 fail:
4077   return NULL;
4078 }
4079 
4080 
_wrap_CameraFileInfoFile_type_get(PyObject * self,PyObject * args)4081 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_type_get(PyObject *self, PyObject *args) {
4082   PyObject *resultobj = 0;
4083   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4084   void *argp1 = 0 ;
4085   int res1 = 0 ;
4086   char *result = 0 ;
4087 
4088   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_type_get takes no arguments");
4089   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4090   if (!SWIG_IsOK(res1)) {
4091     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_type_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4092   }
4093   arg1 = (struct _CameraFileInfoFile *)(argp1);
4094   result = (char *)(char *) ((arg1)->type);
4095   {
4096     size_t size = SWIG_strnlen(result, 64);
4097 
4098 
4099 
4100     resultobj = SWIG_FromCharPtrAndSize(result, size);
4101   }
4102   return resultobj;
4103 fail:
4104   return NULL;
4105 }
4106 
4107 
_wrap_CameraFileInfoFile_width_get(PyObject * self,PyObject * args)4108 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_width_get(PyObject *self, PyObject *args) {
4109   PyObject *resultobj = 0;
4110   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4111   void *argp1 = 0 ;
4112   int res1 = 0 ;
4113   uint32_t result;
4114 
4115   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_width_get takes no arguments");
4116   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4117   if (!SWIG_IsOK(res1)) {
4118     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_width_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4119   }
4120   arg1 = (struct _CameraFileInfoFile *)(argp1);
4121   result = (uint32_t) ((arg1)->width);
4122   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
4123   return resultobj;
4124 fail:
4125   return NULL;
4126 }
4127 
4128 
_wrap_CameraFileInfoFile_height_get(PyObject * self,PyObject * args)4129 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_height_get(PyObject *self, PyObject *args) {
4130   PyObject *resultobj = 0;
4131   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4132   void *argp1 = 0 ;
4133   int res1 = 0 ;
4134   uint32_t result;
4135 
4136   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_height_get takes no arguments");
4137   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4138   if (!SWIG_IsOK(res1)) {
4139     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_height_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4140   }
4141   arg1 = (struct _CameraFileInfoFile *)(argp1);
4142   result = (uint32_t) ((arg1)->height);
4143   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
4144   return resultobj;
4145 fail:
4146   return NULL;
4147 }
4148 
4149 
_wrap_CameraFileInfoFile_permissions_get(PyObject * self,PyObject * args)4150 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_permissions_get(PyObject *self, PyObject *args) {
4151   PyObject *resultobj = 0;
4152   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4153   void *argp1 = 0 ;
4154   int res1 = 0 ;
4155   CameraFilePermissions result;
4156 
4157   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_permissions_get takes no arguments");
4158   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4159   if (!SWIG_IsOK(res1)) {
4160     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_permissions_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4161   }
4162   arg1 = (struct _CameraFileInfoFile *)(argp1);
4163   result = (CameraFilePermissions) ((arg1)->permissions);
4164   resultobj = SWIG_From_int((int)(result));
4165   return resultobj;
4166 fail:
4167   return NULL;
4168 }
4169 
4170 
_wrap_CameraFileInfoFile_mtime_get(PyObject * self,PyObject * args)4171 SWIGINTERN PyObject *_wrap_CameraFileInfoFile_mtime_get(PyObject *self, PyObject *args) {
4172   PyObject *resultobj = 0;
4173   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4174   void *argp1 = 0 ;
4175   int res1 = 0 ;
4176   time_t result;
4177 
4178   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoFile_mtime_get takes no arguments");
4179   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4180   if (!SWIG_IsOK(res1)) {
4181     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoFile_mtime_get" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4182   }
4183   arg1 = (struct _CameraFileInfoFile *)(argp1);
4184   result = (time_t) ((arg1)->mtime);
4185   resultobj = SWIG_From_long((long)(result));
4186   return resultobj;
4187 fail:
4188   return NULL;
4189 }
4190 
4191 
_wrap_delete_CameraFileInfoFile(PyObject * self,PyObject * args)4192 SWIGINTERN PyObject *_wrap_delete_CameraFileInfoFile(PyObject *self, PyObject *args) {
4193   PyObject *resultobj = 0;
4194   struct _CameraFileInfoFile *arg1 = (struct _CameraFileInfoFile *) 0 ;
4195   void *argp1 = 0 ;
4196   int res1 = 0 ;
4197 
4198   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_CameraFileInfoFile takes no arguments");
4199   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoFile, SWIG_POINTER_DISOWN |  0 );
4200   if (!SWIG_IsOK(res1)) {
4201     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CameraFileInfoFile" "', argument " "1"" of type '" "struct _CameraFileInfoFile *""'");
4202   }
4203   arg1 = (struct _CameraFileInfoFile *)(argp1);
4204   free((char *) arg1);
4205   resultobj = SWIG_Py_Void();
4206   return resultobj;
4207 fail:
4208   return NULL;
4209 }
4210 
4211 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoFile)4212 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoFile) /* defines _wrap_delete_CameraFileInfoFile_destructor_closure */
4213 
4214 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_fields_get(PyObject *self, PyObject *args) {
4215   PyObject *resultobj = 0;
4216   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4217   void *argp1 = 0 ;
4218   int res1 = 0 ;
4219   CameraFileInfoFields result;
4220 
4221   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_fields_get takes no arguments");
4222   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4223   if (!SWIG_IsOK(res1)) {
4224     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_fields_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4225   }
4226   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4227   result = (CameraFileInfoFields) ((arg1)->fields);
4228   resultobj = SWIG_From_int((int)(result));
4229   return resultobj;
4230 fail:
4231   return NULL;
4232 }
4233 
4234 
_wrap_CameraFileInfoPreview_status_get(PyObject * self,PyObject * args)4235 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_status_get(PyObject *self, PyObject *args) {
4236   PyObject *resultobj = 0;
4237   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4238   void *argp1 = 0 ;
4239   int res1 = 0 ;
4240   CameraFileStatus result;
4241 
4242   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_status_get takes no arguments");
4243   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4244   if (!SWIG_IsOK(res1)) {
4245     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_status_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4246   }
4247   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4248   result = (CameraFileStatus) ((arg1)->status);
4249   resultobj = SWIG_From_int((int)(result));
4250   return resultobj;
4251 fail:
4252   return NULL;
4253 }
4254 
4255 
_wrap_CameraFileInfoPreview_size_get(PyObject * self,PyObject * args)4256 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_size_get(PyObject *self, PyObject *args) {
4257   PyObject *resultobj = 0;
4258   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4259   void *argp1 = 0 ;
4260   int res1 = 0 ;
4261   uint64_t result;
4262 
4263   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_size_get takes no arguments");
4264   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4265   if (!SWIG_IsOK(res1)) {
4266     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_size_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4267   }
4268   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4269   result = (uint64_t) ((arg1)->size);
4270   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4271   return resultobj;
4272 fail:
4273   return NULL;
4274 }
4275 
4276 
_wrap_CameraFileInfoPreview_type_get(PyObject * self,PyObject * args)4277 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_type_get(PyObject *self, PyObject *args) {
4278   PyObject *resultobj = 0;
4279   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4280   void *argp1 = 0 ;
4281   int res1 = 0 ;
4282   char *result = 0 ;
4283 
4284   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_type_get takes no arguments");
4285   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4286   if (!SWIG_IsOK(res1)) {
4287     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_type_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4288   }
4289   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4290   result = (char *)(char *) ((arg1)->type);
4291   {
4292     size_t size = SWIG_strnlen(result, 64);
4293 
4294 
4295 
4296     resultobj = SWIG_FromCharPtrAndSize(result, size);
4297   }
4298   return resultobj;
4299 fail:
4300   return NULL;
4301 }
4302 
4303 
_wrap_CameraFileInfoPreview_width_get(PyObject * self,PyObject * args)4304 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_width_get(PyObject *self, PyObject *args) {
4305   PyObject *resultobj = 0;
4306   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4307   void *argp1 = 0 ;
4308   int res1 = 0 ;
4309   uint32_t result;
4310 
4311   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_width_get takes no arguments");
4312   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4313   if (!SWIG_IsOK(res1)) {
4314     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_width_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4315   }
4316   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4317   result = (uint32_t) ((arg1)->width);
4318   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
4319   return resultobj;
4320 fail:
4321   return NULL;
4322 }
4323 
4324 
_wrap_CameraFileInfoPreview_height_get(PyObject * self,PyObject * args)4325 SWIGINTERN PyObject *_wrap_CameraFileInfoPreview_height_get(PyObject *self, PyObject *args) {
4326   PyObject *resultobj = 0;
4327   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4328   void *argp1 = 0 ;
4329   int res1 = 0 ;
4330   uint32_t result;
4331 
4332   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoPreview_height_get takes no arguments");
4333   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4334   if (!SWIG_IsOK(res1)) {
4335     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoPreview_height_get" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4336   }
4337   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4338   result = (uint32_t) ((arg1)->height);
4339   resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
4340   return resultobj;
4341 fail:
4342   return NULL;
4343 }
4344 
4345 
_wrap_delete_CameraFileInfoPreview(PyObject * self,PyObject * args)4346 SWIGINTERN PyObject *_wrap_delete_CameraFileInfoPreview(PyObject *self, PyObject *args) {
4347   PyObject *resultobj = 0;
4348   struct _CameraFileInfoPreview *arg1 = (struct _CameraFileInfoPreview *) 0 ;
4349   void *argp1 = 0 ;
4350   int res1 = 0 ;
4351 
4352   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_CameraFileInfoPreview takes no arguments");
4353   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoPreview, SWIG_POINTER_DISOWN |  0 );
4354   if (!SWIG_IsOK(res1)) {
4355     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CameraFileInfoPreview" "', argument " "1"" of type '" "struct _CameraFileInfoPreview *""'");
4356   }
4357   arg1 = (struct _CameraFileInfoPreview *)(argp1);
4358   free((char *) arg1);
4359   resultobj = SWIG_Py_Void();
4360   return resultobj;
4361 fail:
4362   return NULL;
4363 }
4364 
4365 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoPreview)4366 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoPreview) /* defines _wrap_delete_CameraFileInfoPreview_destructor_closure */
4367 
4368 SWIGINTERN PyObject *_wrap_CameraFileInfoAudio_fields_get(PyObject *self, PyObject *args) {
4369   PyObject *resultobj = 0;
4370   struct _CameraFileInfoAudio *arg1 = (struct _CameraFileInfoAudio *) 0 ;
4371   void *argp1 = 0 ;
4372   int res1 = 0 ;
4373   CameraFileInfoFields result;
4374 
4375   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoAudio_fields_get takes no arguments");
4376   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoAudio, 0 |  0 );
4377   if (!SWIG_IsOK(res1)) {
4378     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoAudio_fields_get" "', argument " "1"" of type '" "struct _CameraFileInfoAudio *""'");
4379   }
4380   arg1 = (struct _CameraFileInfoAudio *)(argp1);
4381   result = (CameraFileInfoFields) ((arg1)->fields);
4382   resultobj = SWIG_From_int((int)(result));
4383   return resultobj;
4384 fail:
4385   return NULL;
4386 }
4387 
4388 
_wrap_CameraFileInfoAudio_status_get(PyObject * self,PyObject * args)4389 SWIGINTERN PyObject *_wrap_CameraFileInfoAudio_status_get(PyObject *self, PyObject *args) {
4390   PyObject *resultobj = 0;
4391   struct _CameraFileInfoAudio *arg1 = (struct _CameraFileInfoAudio *) 0 ;
4392   void *argp1 = 0 ;
4393   int res1 = 0 ;
4394   CameraFileStatus result;
4395 
4396   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoAudio_status_get takes no arguments");
4397   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoAudio, 0 |  0 );
4398   if (!SWIG_IsOK(res1)) {
4399     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoAudio_status_get" "', argument " "1"" of type '" "struct _CameraFileInfoAudio *""'");
4400   }
4401   arg1 = (struct _CameraFileInfoAudio *)(argp1);
4402   result = (CameraFileStatus) ((arg1)->status);
4403   resultobj = SWIG_From_int((int)(result));
4404   return resultobj;
4405 fail:
4406   return NULL;
4407 }
4408 
4409 
_wrap_CameraFileInfoAudio_size_get(PyObject * self,PyObject * args)4410 SWIGINTERN PyObject *_wrap_CameraFileInfoAudio_size_get(PyObject *self, PyObject *args) {
4411   PyObject *resultobj = 0;
4412   struct _CameraFileInfoAudio *arg1 = (struct _CameraFileInfoAudio *) 0 ;
4413   void *argp1 = 0 ;
4414   int res1 = 0 ;
4415   uint64_t result;
4416 
4417   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoAudio_size_get takes no arguments");
4418   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoAudio, 0 |  0 );
4419   if (!SWIG_IsOK(res1)) {
4420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoAudio_size_get" "', argument " "1"" of type '" "struct _CameraFileInfoAudio *""'");
4421   }
4422   arg1 = (struct _CameraFileInfoAudio *)(argp1);
4423   result = (uint64_t) ((arg1)->size);
4424   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4425   return resultobj;
4426 fail:
4427   return NULL;
4428 }
4429 
4430 
_wrap_CameraFileInfoAudio_type_get(PyObject * self,PyObject * args)4431 SWIGINTERN PyObject *_wrap_CameraFileInfoAudio_type_get(PyObject *self, PyObject *args) {
4432   PyObject *resultobj = 0;
4433   struct _CameraFileInfoAudio *arg1 = (struct _CameraFileInfoAudio *) 0 ;
4434   void *argp1 = 0 ;
4435   int res1 = 0 ;
4436   char *result = 0 ;
4437 
4438   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfoAudio_type_get takes no arguments");
4439   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoAudio, 0 |  0 );
4440   if (!SWIG_IsOK(res1)) {
4441     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfoAudio_type_get" "', argument " "1"" of type '" "struct _CameraFileInfoAudio *""'");
4442   }
4443   arg1 = (struct _CameraFileInfoAudio *)(argp1);
4444   result = (char *)(char *) ((arg1)->type);
4445   {
4446     size_t size = SWIG_strnlen(result, 64);
4447 
4448 
4449 
4450     resultobj = SWIG_FromCharPtrAndSize(result, size);
4451   }
4452   return resultobj;
4453 fail:
4454   return NULL;
4455 }
4456 
4457 
_wrap_delete_CameraFileInfoAudio(PyObject * self,PyObject * args)4458 SWIGINTERN PyObject *_wrap_delete_CameraFileInfoAudio(PyObject *self, PyObject *args) {
4459   PyObject *resultobj = 0;
4460   struct _CameraFileInfoAudio *arg1 = (struct _CameraFileInfoAudio *) 0 ;
4461   void *argp1 = 0 ;
4462   int res1 = 0 ;
4463 
4464   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_CameraFileInfoAudio takes no arguments");
4465   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfoAudio, SWIG_POINTER_DISOWN |  0 );
4466   if (!SWIG_IsOK(res1)) {
4467     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CameraFileInfoAudio" "', argument " "1"" of type '" "struct _CameraFileInfoAudio *""'");
4468   }
4469   arg1 = (struct _CameraFileInfoAudio *)(argp1);
4470   free((char *) arg1);
4471   resultobj = SWIG_Py_Void();
4472   return resultobj;
4473 fail:
4474   return NULL;
4475 }
4476 
4477 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoAudio)4478 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfoAudio) /* defines _wrap_delete_CameraFileInfoAudio_destructor_closure */
4479 
4480 SWIGINTERN PyObject *_wrap_CameraFileInfo_preview_get(PyObject *self, PyObject *args) {
4481   PyObject *resultobj = 0;
4482   struct _CameraFileInfo *arg1 = (struct _CameraFileInfo *) 0 ;
4483   void *argp1 = 0 ;
4484   int res1 = 0 ;
4485   CameraFileInfoPreview *result = 0 ;
4486 
4487   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfo_preview_get takes no arguments");
4488   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfo, 0 |  0 );
4489   if (!SWIG_IsOK(res1)) {
4490     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfo_preview_get" "', argument " "1"" of type '" "struct _CameraFileInfo *""'");
4491   }
4492   arg1 = (struct _CameraFileInfo *)(argp1);
4493   result = (CameraFileInfoPreview *)& ((arg1)->preview);
4494   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__CameraFileInfoPreview, 0 |  0 );
4495   return resultobj;
4496 fail:
4497   return NULL;
4498 }
4499 
4500 
_wrap_CameraFileInfo_file_get(PyObject * self,PyObject * args)4501 SWIGINTERN PyObject *_wrap_CameraFileInfo_file_get(PyObject *self, PyObject *args) {
4502   PyObject *resultobj = 0;
4503   struct _CameraFileInfo *arg1 = (struct _CameraFileInfo *) 0 ;
4504   void *argp1 = 0 ;
4505   int res1 = 0 ;
4506   CameraFileInfoFile *result = 0 ;
4507 
4508   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfo_file_get takes no arguments");
4509   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfo, 0 |  0 );
4510   if (!SWIG_IsOK(res1)) {
4511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfo_file_get" "', argument " "1"" of type '" "struct _CameraFileInfo *""'");
4512   }
4513   arg1 = (struct _CameraFileInfo *)(argp1);
4514   result = (CameraFileInfoFile *)& ((arg1)->file);
4515   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__CameraFileInfoFile, 0 |  0 );
4516   return resultobj;
4517 fail:
4518   return NULL;
4519 }
4520 
4521 
_wrap_CameraFileInfo_audio_get(PyObject * self,PyObject * args)4522 SWIGINTERN PyObject *_wrap_CameraFileInfo_audio_get(PyObject *self, PyObject *args) {
4523   PyObject *resultobj = 0;
4524   struct _CameraFileInfo *arg1 = (struct _CameraFileInfo *) 0 ;
4525   void *argp1 = 0 ;
4526   int res1 = 0 ;
4527   CameraFileInfoAudio *result = 0 ;
4528 
4529   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraFileInfo_audio_get takes no arguments");
4530   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfo, 0 |  0 );
4531   if (!SWIG_IsOK(res1)) {
4532     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraFileInfo_audio_get" "', argument " "1"" of type '" "struct _CameraFileInfo *""'");
4533   }
4534   arg1 = (struct _CameraFileInfo *)(argp1);
4535   result = (CameraFileInfoAudio *)& ((arg1)->audio);
4536   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__CameraFileInfoAudio, 0 |  0 );
4537   return resultobj;
4538 fail:
4539   return NULL;
4540 }
4541 
4542 
_wrap_delete_CameraFileInfo(PyObject * self,PyObject * args)4543 SWIGINTERN PyObject *_wrap_delete_CameraFileInfo(PyObject *self, PyObject *args) {
4544   PyObject *resultobj = 0;
4545   struct _CameraFileInfo *arg1 = (struct _CameraFileInfo *) 0 ;
4546   void *argp1 = 0 ;
4547   int res1 = 0 ;
4548 
4549   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_CameraFileInfo takes no arguments");
4550   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFileInfo, SWIG_POINTER_DISOWN |  0 );
4551   if (!SWIG_IsOK(res1)) {
4552     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CameraFileInfo" "', argument " "1"" of type '" "struct _CameraFileInfo *""'");
4553   }
4554   arg1 = (struct _CameraFileInfo *)(argp1);
4555   free((char *) arg1);
4556   resultobj = SWIG_Py_Void();
4557   return resultobj;
4558 fail:
4559   return NULL;
4560 }
4561 
4562 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfo)4563 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraFileInfo) /* defines _wrap_delete_CameraFileInfo_destructor_closure */
4564 
4565 SWIGINTERN PyObject *_wrap_CameraStorageInformation_fields_get(PyObject *self, PyObject *args) {
4566   PyObject *resultobj = 0;
4567   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4568   void *argp1 = 0 ;
4569   int res1 = 0 ;
4570   CameraStorageInfoFields result;
4571 
4572   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_fields_get takes no arguments");
4573   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4574   if (!SWIG_IsOK(res1)) {
4575     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_fields_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4576   }
4577   arg1 = (struct _CameraStorageInformation *)(argp1);
4578   result = (CameraStorageInfoFields) ((arg1)->fields);
4579   resultobj = SWIG_From_int((int)(result));
4580   return resultobj;
4581 fail:
4582   return NULL;
4583 }
4584 
4585 
_wrap_CameraStorageInformation_basedir_get(PyObject * self,PyObject * args)4586 SWIGINTERN PyObject *_wrap_CameraStorageInformation_basedir_get(PyObject *self, PyObject *args) {
4587   PyObject *resultobj = 0;
4588   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4589   void *argp1 = 0 ;
4590   int res1 = 0 ;
4591   char *result = 0 ;
4592 
4593   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_basedir_get takes no arguments");
4594   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4595   if (!SWIG_IsOK(res1)) {
4596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_basedir_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4597   }
4598   arg1 = (struct _CameraStorageInformation *)(argp1);
4599   result = (char *)(char *) ((arg1)->basedir);
4600   {
4601     size_t size = SWIG_strnlen(result, 256);
4602 
4603 
4604 
4605     resultobj = SWIG_FromCharPtrAndSize(result, size);
4606   }
4607   return resultobj;
4608 fail:
4609   return NULL;
4610 }
4611 
4612 
_wrap_CameraStorageInformation_label_get(PyObject * self,PyObject * args)4613 SWIGINTERN PyObject *_wrap_CameraStorageInformation_label_get(PyObject *self, PyObject *args) {
4614   PyObject *resultobj = 0;
4615   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4616   void *argp1 = 0 ;
4617   int res1 = 0 ;
4618   char *result = 0 ;
4619 
4620   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_label_get takes no arguments");
4621   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4622   if (!SWIG_IsOK(res1)) {
4623     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_label_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4624   }
4625   arg1 = (struct _CameraStorageInformation *)(argp1);
4626   result = (char *)(char *) ((arg1)->label);
4627   {
4628     size_t size = SWIG_strnlen(result, 256);
4629 
4630 
4631 
4632     resultobj = SWIG_FromCharPtrAndSize(result, size);
4633   }
4634   return resultobj;
4635 fail:
4636   return NULL;
4637 }
4638 
4639 
_wrap_CameraStorageInformation_description_get(PyObject * self,PyObject * args)4640 SWIGINTERN PyObject *_wrap_CameraStorageInformation_description_get(PyObject *self, PyObject *args) {
4641   PyObject *resultobj = 0;
4642   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4643   void *argp1 = 0 ;
4644   int res1 = 0 ;
4645   char *result = 0 ;
4646 
4647   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_description_get takes no arguments");
4648   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4649   if (!SWIG_IsOK(res1)) {
4650     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_description_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4651   }
4652   arg1 = (struct _CameraStorageInformation *)(argp1);
4653   result = (char *)(char *) ((arg1)->description);
4654   {
4655     size_t size = SWIG_strnlen(result, 256);
4656 
4657 
4658 
4659     resultobj = SWIG_FromCharPtrAndSize(result, size);
4660   }
4661   return resultobj;
4662 fail:
4663   return NULL;
4664 }
4665 
4666 
_wrap_CameraStorageInformation_type_get(PyObject * self,PyObject * args)4667 SWIGINTERN PyObject *_wrap_CameraStorageInformation_type_get(PyObject *self, PyObject *args) {
4668   PyObject *resultobj = 0;
4669   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4670   void *argp1 = 0 ;
4671   int res1 = 0 ;
4672   CameraStorageType result;
4673 
4674   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_type_get takes no arguments");
4675   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4676   if (!SWIG_IsOK(res1)) {
4677     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_type_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4678   }
4679   arg1 = (struct _CameraStorageInformation *)(argp1);
4680   result = (CameraStorageType) ((arg1)->type);
4681   resultobj = SWIG_From_int((int)(result));
4682   return resultobj;
4683 fail:
4684   return NULL;
4685 }
4686 
4687 
_wrap_CameraStorageInformation_fstype_get(PyObject * self,PyObject * args)4688 SWIGINTERN PyObject *_wrap_CameraStorageInformation_fstype_get(PyObject *self, PyObject *args) {
4689   PyObject *resultobj = 0;
4690   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4691   void *argp1 = 0 ;
4692   int res1 = 0 ;
4693   CameraStorageFilesystemType result;
4694 
4695   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_fstype_get takes no arguments");
4696   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4697   if (!SWIG_IsOK(res1)) {
4698     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_fstype_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4699   }
4700   arg1 = (struct _CameraStorageInformation *)(argp1);
4701   result = (CameraStorageFilesystemType) ((arg1)->fstype);
4702   resultobj = SWIG_From_int((int)(result));
4703   return resultobj;
4704 fail:
4705   return NULL;
4706 }
4707 
4708 
_wrap_CameraStorageInformation_access_get(PyObject * self,PyObject * args)4709 SWIGINTERN PyObject *_wrap_CameraStorageInformation_access_get(PyObject *self, PyObject *args) {
4710   PyObject *resultobj = 0;
4711   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4712   void *argp1 = 0 ;
4713   int res1 = 0 ;
4714   CameraStorageAccessType result;
4715 
4716   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_access_get takes no arguments");
4717   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4718   if (!SWIG_IsOK(res1)) {
4719     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_access_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4720   }
4721   arg1 = (struct _CameraStorageInformation *)(argp1);
4722   result = (CameraStorageAccessType) ((arg1)->access);
4723   resultobj = SWIG_From_int((int)(result));
4724   return resultobj;
4725 fail:
4726   return NULL;
4727 }
4728 
4729 
_wrap_CameraStorageInformation_capacitykbytes_get(PyObject * self,PyObject * args)4730 SWIGINTERN PyObject *_wrap_CameraStorageInformation_capacitykbytes_get(PyObject *self, PyObject *args) {
4731   PyObject *resultobj = 0;
4732   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4733   void *argp1 = 0 ;
4734   int res1 = 0 ;
4735   uint64_t result;
4736 
4737   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_capacitykbytes_get takes no arguments");
4738   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4739   if (!SWIG_IsOK(res1)) {
4740     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_capacitykbytes_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4741   }
4742   arg1 = (struct _CameraStorageInformation *)(argp1);
4743   result = (uint64_t) ((arg1)->capacitykbytes);
4744   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4745   return resultobj;
4746 fail:
4747   return NULL;
4748 }
4749 
4750 
_wrap_CameraStorageInformation_freekbytes_get(PyObject * self,PyObject * args)4751 SWIGINTERN PyObject *_wrap_CameraStorageInformation_freekbytes_get(PyObject *self, PyObject *args) {
4752   PyObject *resultobj = 0;
4753   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4754   void *argp1 = 0 ;
4755   int res1 = 0 ;
4756   uint64_t result;
4757 
4758   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_freekbytes_get takes no arguments");
4759   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4760   if (!SWIG_IsOK(res1)) {
4761     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_freekbytes_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4762   }
4763   arg1 = (struct _CameraStorageInformation *)(argp1);
4764   result = (uint64_t) ((arg1)->freekbytes);
4765   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4766   return resultobj;
4767 fail:
4768   return NULL;
4769 }
4770 
4771 
_wrap_CameraStorageInformation_freeimages_get(PyObject * self,PyObject * args)4772 SWIGINTERN PyObject *_wrap_CameraStorageInformation_freeimages_get(PyObject *self, PyObject *args) {
4773   PyObject *resultobj = 0;
4774   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4775   void *argp1 = 0 ;
4776   int res1 = 0 ;
4777   uint64_t result;
4778 
4779   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "CameraStorageInformation_freeimages_get takes no arguments");
4780   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, 0 |  0 );
4781   if (!SWIG_IsOK(res1)) {
4782     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CameraStorageInformation_freeimages_get" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4783   }
4784   arg1 = (struct _CameraStorageInformation *)(argp1);
4785   result = (uint64_t) ((arg1)->freeimages);
4786   resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
4787   return resultobj;
4788 fail:
4789   return NULL;
4790 }
4791 
4792 
_wrap_delete_CameraStorageInformation(PyObject * self,PyObject * args)4793 SWIGINTERN PyObject *_wrap_delete_CameraStorageInformation(PyObject *self, PyObject *args) {
4794   PyObject *resultobj = 0;
4795   struct _CameraStorageInformation *arg1 = (struct _CameraStorageInformation *) 0 ;
4796   void *argp1 = 0 ;
4797   int res1 = 0 ;
4798 
4799   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_CameraStorageInformation takes no arguments");
4800   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraStorageInformation, SWIG_POINTER_DISOWN |  0 );
4801   if (!SWIG_IsOK(res1)) {
4802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CameraStorageInformation" "', argument " "1"" of type '" "struct _CameraStorageInformation *""'");
4803   }
4804   arg1 = (struct _CameraStorageInformation *)(argp1);
4805   free((char *) arg1);
4806   resultobj = SWIG_Py_Void();
4807   return resultobj;
4808 fail:
4809   return NULL;
4810 }
4811 
4812 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraStorageInformation)4813 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraStorageInformation) /* defines _wrap_delete_CameraStorageInformation_destructor_closure */
4814 
4815 SWIGINTERN PyObject *_wrap_gp_filesystem_new(PyObject *self, PyObject *args) {
4816   PyObject *resultobj = 0;
4817   CameraFilesystem **arg1 = (CameraFilesystem **) 0 ;
4818   CameraFilesystem *temp1 ;
4819   int result;
4820 
4821   {
4822     temp1 = NULL;
4823     arg1 = &temp1;
4824   }
4825   if (!PyArg_UnpackTuple(args, "gp_filesystem_new", 0, 0)) SWIG_fail;
4826   result = (int)gp_filesystem_new(arg1);
4827   resultobj = SWIG_From_int((int)(result));
4828   {
4829     resultobj = SWIG_Python_AppendOutput(
4830       resultobj, SWIG_NewPointerObj(*arg1, SWIGTYPE_p__CameraFilesystem, SWIG_POINTER_OWN));
4831   }
4832   return resultobj;
4833 fail:
4834   return NULL;
4835 }
4836 
4837 
_wrap_gp_filesystem_append(PyObject * self,PyObject * args)4838 SWIGINTERN PyObject *_wrap_gp_filesystem_append(PyObject *self, PyObject *args) {
4839   PyObject *resultobj = 0;
4840   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
4841   char *arg2 = (char *) 0 ;
4842   char *arg3 = (char *) 0 ;
4843   GPContext *arg4 = (GPContext *) 0 ;
4844   void *argp1 = 0 ;
4845   int res1 = 0 ;
4846   int res2 ;
4847   char *buf2 = 0 ;
4848   int alloc2 = 0 ;
4849   int res3 ;
4850   char *buf3 = 0 ;
4851   int alloc3 = 0 ;
4852   void *argp4 = 0 ;
4853   int res4 = 0 ;
4854   PyObject * obj0 = 0 ;
4855   PyObject * obj1 = 0 ;
4856   PyObject * obj2 = 0 ;
4857   PyObject * obj3 = 0 ;
4858   int result;
4859 
4860   {
4861     arg4 = NULL;
4862   }
4863   if (!PyArg_UnpackTuple(args, "gp_filesystem_append", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
4864   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
4865   if (!SWIG_IsOK(res1)) {
4866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_append" "', argument " "1"" of type '" "CameraFilesystem *""'");
4867   }
4868   arg1 = (CameraFilesystem *)(argp1);
4869   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4870   if (!SWIG_IsOK(res2)) {
4871     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_append" "', argument " "2"" of type '" "char const *""'");
4872   }
4873   arg2 = (char *)(buf2);
4874   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4875   if (!SWIG_IsOK(res3)) {
4876     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_append" "', argument " "3"" of type '" "char const *""'");
4877   }
4878   arg3 = (char *)(buf3);
4879   if (obj3) {
4880     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
4881     if (!SWIG_IsOK(res4)) {
4882       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_append" "', argument " "4"" of type '" "GPContext *""'");
4883     }
4884     arg4 = (GPContext *)(argp4);
4885   }
4886   result = (int)gp_filesystem_append(arg1,(char const *)arg2,(char const *)arg3,arg4);
4887   resultobj = SWIG_From_int((int)(result));
4888   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4889   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4890   return resultobj;
4891 fail:
4892   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4893   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4894   return NULL;
4895 }
4896 
4897 
_wrap_gp_filesystem_set_info_noop(PyObject * self,PyObject * args)4898 SWIGINTERN PyObject *_wrap_gp_filesystem_set_info_noop(PyObject *self, PyObject *args) {
4899   PyObject *resultobj = 0;
4900   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
4901   char *arg2 = (char *) 0 ;
4902   char *arg3 = (char *) 0 ;
4903   CameraFileInfo arg4 ;
4904   GPContext *arg5 = (GPContext *) 0 ;
4905   void *argp1 = 0 ;
4906   int res1 = 0 ;
4907   int res2 ;
4908   char *buf2 = 0 ;
4909   int alloc2 = 0 ;
4910   int res3 ;
4911   char *buf3 = 0 ;
4912   int alloc3 = 0 ;
4913   void *argp4 ;
4914   int res4 = 0 ;
4915   void *argp5 = 0 ;
4916   int res5 = 0 ;
4917   PyObject * obj0 = 0 ;
4918   PyObject * obj1 = 0 ;
4919   PyObject * obj2 = 0 ;
4920   PyObject * obj3 = 0 ;
4921   PyObject * obj4 = 0 ;
4922   int result;
4923 
4924   {
4925     arg5 = NULL;
4926   }
4927   if (!PyArg_UnpackTuple(args, "gp_filesystem_set_info_noop", 4, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
4928   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
4929   if (!SWIG_IsOK(res1)) {
4930     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_set_info_noop" "', argument " "1"" of type '" "CameraFilesystem *""'");
4931   }
4932   arg1 = (CameraFilesystem *)(argp1);
4933   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4934   if (!SWIG_IsOK(res2)) {
4935     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_set_info_noop" "', argument " "2"" of type '" "char const *""'");
4936   }
4937   arg2 = (char *)(buf2);
4938   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4939   if (!SWIG_IsOK(res3)) {
4940     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_set_info_noop" "', argument " "3"" of type '" "char const *""'");
4941   }
4942   arg3 = (char *)(buf3);
4943   {
4944     res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p__CameraFileInfo,  0 );
4945     if (!SWIG_IsOK(res4)) {
4946       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_set_info_noop" "', argument " "4"" of type '" "CameraFileInfo""'");
4947     }
4948     if (!argp4) {
4949       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gp_filesystem_set_info_noop" "', argument " "4"" of type '" "CameraFileInfo""'");
4950     } else {
4951       arg4 = *((CameraFileInfo *)(argp4));
4952     }
4953   }
4954   if (obj4) {
4955     res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__GPContext, 0 |  0 );
4956     if (!SWIG_IsOK(res5)) {
4957       SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_set_info_noop" "', argument " "5"" of type '" "GPContext *""'");
4958     }
4959     arg5 = (GPContext *)(argp5);
4960   }
4961   result = (int)gp_filesystem_set_info_noop(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
4962   resultobj = SWIG_From_int((int)(result));
4963   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4964   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4965   return resultobj;
4966 fail:
4967   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4968   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4969   return NULL;
4970 }
4971 
4972 
_wrap_gp_filesystem_set_file_noop(PyObject * self,PyObject * args)4973 SWIGINTERN PyObject *_wrap_gp_filesystem_set_file_noop(PyObject *self, PyObject *args) {
4974   PyObject *resultobj = 0;
4975   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
4976   char *arg2 = (char *) 0 ;
4977   char *arg3 = (char *) 0 ;
4978   CameraFileType arg4 ;
4979   CameraFile *arg5 = (CameraFile *) 0 ;
4980   GPContext *arg6 = (GPContext *) 0 ;
4981   void *argp1 = 0 ;
4982   int res1 = 0 ;
4983   int res2 ;
4984   char *buf2 = 0 ;
4985   int alloc2 = 0 ;
4986   int res3 ;
4987   char *buf3 = 0 ;
4988   int alloc3 = 0 ;
4989   int val4 ;
4990   int ecode4 = 0 ;
4991   void *argp5 = 0 ;
4992   int res5 = 0 ;
4993   void *argp6 = 0 ;
4994   int res6 = 0 ;
4995   PyObject * obj0 = 0 ;
4996   PyObject * obj1 = 0 ;
4997   PyObject * obj2 = 0 ;
4998   PyObject * obj3 = 0 ;
4999   PyObject * obj4 = 0 ;
5000   PyObject * obj5 = 0 ;
5001   int result;
5002 
5003   {
5004     arg6 = NULL;
5005   }
5006   if (!PyArg_UnpackTuple(args, "gp_filesystem_set_file_noop", 5, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
5007   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5008   if (!SWIG_IsOK(res1)) {
5009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_set_file_noop" "', argument " "1"" of type '" "CameraFilesystem *""'");
5010   }
5011   arg1 = (CameraFilesystem *)(argp1);
5012   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5013   if (!SWIG_IsOK(res2)) {
5014     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_set_file_noop" "', argument " "2"" of type '" "char const *""'");
5015   }
5016   arg2 = (char *)(buf2);
5017   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5018   if (!SWIG_IsOK(res3)) {
5019     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_set_file_noop" "', argument " "3"" of type '" "char const *""'");
5020   }
5021   arg3 = (char *)(buf3);
5022   ecode4 = SWIG_AsVal_int(obj3, &val4);
5023   if (!SWIG_IsOK(ecode4)) {
5024     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gp_filesystem_set_file_noop" "', argument " "4"" of type '" "CameraFileType""'");
5025   }
5026   arg4 = (CameraFileType)(val4);
5027   res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__CameraFile, 0 |  0 );
5028   if (!SWIG_IsOK(res5)) {
5029     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_set_file_noop" "', argument " "5"" of type '" "CameraFile *""'");
5030   }
5031   arg5 = (CameraFile *)(argp5);
5032   if (obj5) {
5033     res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p__GPContext, 0 |  0 );
5034     if (!SWIG_IsOK(res6)) {
5035       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gp_filesystem_set_file_noop" "', argument " "6"" of type '" "GPContext *""'");
5036     }
5037     arg6 = (GPContext *)(argp6);
5038   }
5039   result = (int)gp_filesystem_set_file_noop(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6);
5040   resultobj = SWIG_From_int((int)(result));
5041   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5042   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5043   return resultobj;
5044 fail:
5045   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5046   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5047   return NULL;
5048 }
5049 
5050 
_wrap_gp_filesystem_delete_file_noop(PyObject * self,PyObject * args)5051 SWIGINTERN PyObject *_wrap_gp_filesystem_delete_file_noop(PyObject *self, PyObject *args) {
5052   PyObject *resultobj = 0;
5053   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5054   char *arg2 = (char *) 0 ;
5055   char *arg3 = (char *) 0 ;
5056   GPContext *arg4 = (GPContext *) 0 ;
5057   void *argp1 = 0 ;
5058   int res1 = 0 ;
5059   int res2 ;
5060   char *buf2 = 0 ;
5061   int alloc2 = 0 ;
5062   int res3 ;
5063   char *buf3 = 0 ;
5064   int alloc3 = 0 ;
5065   void *argp4 = 0 ;
5066   int res4 = 0 ;
5067   PyObject * obj0 = 0 ;
5068   PyObject * obj1 = 0 ;
5069   PyObject * obj2 = 0 ;
5070   PyObject * obj3 = 0 ;
5071   int result;
5072 
5073   {
5074     arg4 = NULL;
5075   }
5076   if (!PyArg_UnpackTuple(args, "gp_filesystem_delete_file_noop", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
5077   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5078   if (!SWIG_IsOK(res1)) {
5079     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_delete_file_noop" "', argument " "1"" of type '" "CameraFilesystem *""'");
5080   }
5081   arg1 = (CameraFilesystem *)(argp1);
5082   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5083   if (!SWIG_IsOK(res2)) {
5084     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_delete_file_noop" "', argument " "2"" of type '" "char const *""'");
5085   }
5086   arg2 = (char *)(buf2);
5087   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5088   if (!SWIG_IsOK(res3)) {
5089     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_delete_file_noop" "', argument " "3"" of type '" "char const *""'");
5090   }
5091   arg3 = (char *)(buf3);
5092   if (obj3) {
5093     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5094     if (!SWIG_IsOK(res4)) {
5095       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_delete_file_noop" "', argument " "4"" of type '" "GPContext *""'");
5096     }
5097     arg4 = (GPContext *)(argp4);
5098   }
5099   result = (int)gp_filesystem_delete_file_noop(arg1,(char const *)arg2,(char const *)arg3,arg4);
5100   resultobj = SWIG_From_int((int)(result));
5101   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5102   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5103   return resultobj;
5104 fail:
5105   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5106   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5107   return NULL;
5108 }
5109 
5110 
_wrap_gp_filesystem_reset(PyObject * self,PyObject * args)5111 SWIGINTERN PyObject *_wrap_gp_filesystem_reset(PyObject *self, PyObject *args) {
5112   PyObject *resultobj = 0;
5113   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5114   void *argp1 = 0 ;
5115   int res1 = 0 ;
5116   PyObject * obj0 = 0 ;
5117   int result;
5118 
5119   if (!PyArg_UnpackTuple(args, "gp_filesystem_reset", 1, 1, &obj0)) SWIG_fail;
5120   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5121   if (!SWIG_IsOK(res1)) {
5122     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_reset" "', argument " "1"" of type '" "CameraFilesystem *""'");
5123   }
5124   arg1 = (CameraFilesystem *)(argp1);
5125   result = (int)gp_filesystem_reset(arg1);
5126   resultobj = SWIG_From_int((int)(result));
5127   return resultobj;
5128 fail:
5129   return NULL;
5130 }
5131 
5132 
_wrap_gp_filesystem_count(PyObject * self,PyObject * args)5133 SWIGINTERN PyObject *_wrap_gp_filesystem_count(PyObject *self, PyObject *args) {
5134   PyObject *resultobj = 0;
5135   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5136   char *arg2 = (char *) 0 ;
5137   GPContext *arg3 = (GPContext *) 0 ;
5138   void *argp1 = 0 ;
5139   int res1 = 0 ;
5140   int res2 ;
5141   char *buf2 = 0 ;
5142   int alloc2 = 0 ;
5143   void *argp3 = 0 ;
5144   int res3 = 0 ;
5145   PyObject * obj0 = 0 ;
5146   PyObject * obj1 = 0 ;
5147   PyObject * obj2 = 0 ;
5148   int result;
5149 
5150   {
5151     arg3 = NULL;
5152   }
5153   if (!PyArg_UnpackTuple(args, "gp_filesystem_count", 2, 3, &obj0, &obj1, &obj2)) SWIG_fail;
5154   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5155   if (!SWIG_IsOK(res1)) {
5156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_count" "', argument " "1"" of type '" "CameraFilesystem *""'");
5157   }
5158   arg1 = (CameraFilesystem *)(argp1);
5159   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5160   if (!SWIG_IsOK(res2)) {
5161     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_count" "', argument " "2"" of type '" "char const *""'");
5162   }
5163   arg2 = (char *)(buf2);
5164   if (obj2) {
5165     res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__GPContext, 0 |  0 );
5166     if (!SWIG_IsOK(res3)) {
5167       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_count" "', argument " "3"" of type '" "GPContext *""'");
5168     }
5169     arg3 = (GPContext *)(argp3);
5170   }
5171   result = (int)gp_filesystem_count(arg1,(char const *)arg2,arg3);
5172   resultobj = SWIG_From_int((int)(result));
5173   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5174   return resultobj;
5175 fail:
5176   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5177   return NULL;
5178 }
5179 
5180 
_wrap_gp_filesystem_name(PyObject * self,PyObject * args)5181 SWIGINTERN PyObject *_wrap_gp_filesystem_name(PyObject *self, PyObject *args) {
5182   PyObject *resultobj = 0;
5183   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5184   char *arg2 = (char *) 0 ;
5185   int arg3 ;
5186   char **arg4 = (char **) 0 ;
5187   GPContext *arg5 = (GPContext *) 0 ;
5188   void *argp1 = 0 ;
5189   int res1 = 0 ;
5190   int res2 ;
5191   char *buf2 = 0 ;
5192   int alloc2 = 0 ;
5193   int val3 ;
5194   int ecode3 = 0 ;
5195   char *temp4 ;
5196   void *argp5 = 0 ;
5197   int res5 = 0 ;
5198   PyObject * obj0 = 0 ;
5199   PyObject * obj1 = 0 ;
5200   PyObject * obj2 = 0 ;
5201   PyObject * obj3 = 0 ;
5202   int result;
5203 
5204   {
5205     arg5 = NULL;
5206   }
5207   {
5208     temp4 = NULL;
5209     arg4 = &temp4;
5210   }
5211   if (!PyArg_UnpackTuple(args, "gp_filesystem_name", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
5212   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5213   if (!SWIG_IsOK(res1)) {
5214     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_name" "', argument " "1"" of type '" "CameraFilesystem *""'");
5215   }
5216   arg1 = (CameraFilesystem *)(argp1);
5217   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5218   if (!SWIG_IsOK(res2)) {
5219     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_name" "', argument " "2"" of type '" "char const *""'");
5220   }
5221   arg2 = (char *)(buf2);
5222   ecode3 = SWIG_AsVal_int(obj2, &val3);
5223   if (!SWIG_IsOK(ecode3)) {
5224     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gp_filesystem_name" "', argument " "3"" of type '" "int""'");
5225   }
5226   arg3 = (int)(val3);
5227   if (obj3) {
5228     res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p__GPContext, 0 |  0 );
5229     if (!SWIG_IsOK(res5)) {
5230       SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_name" "', argument " "5"" of type '" "GPContext *""'");
5231     }
5232     arg5 = (GPContext *)(argp5);
5233   }
5234   result = (int)gp_filesystem_name(arg1,(char const *)arg2,arg3,(char const **)arg4,arg5);
5235   resultobj = SWIG_From_int((int)(result));
5236   {
5237     if (*arg4) {
5238       resultobj = SWIG_Python_AppendOutput(resultobj, PyString_FromString(*arg4));
5239     }
5240     else {
5241       Py_INCREF(Py_None);
5242       resultobj = SWIG_Python_AppendOutput(resultobj, Py_None);
5243     }
5244   }
5245   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5246   return resultobj;
5247 fail:
5248   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5249   return NULL;
5250 }
5251 
5252 
_wrap_gp_filesystem_get_folder(PyObject * self,PyObject * args)5253 SWIGINTERN PyObject *_wrap_gp_filesystem_get_folder(PyObject *self, PyObject *args) {
5254   PyObject *resultobj = 0;
5255   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5256   char *arg2 = (char *) 0 ;
5257   char **arg3 = (char **) 0 ;
5258   GPContext *arg4 = (GPContext *) 0 ;
5259   void *argp1 = 0 ;
5260   int res1 = 0 ;
5261   int res2 ;
5262   char *buf2 = 0 ;
5263   int alloc2 = 0 ;
5264   char *temp3 ;
5265   void *argp4 = 0 ;
5266   int res4 = 0 ;
5267   PyObject * obj0 = 0 ;
5268   PyObject * obj1 = 0 ;
5269   PyObject * obj2 = 0 ;
5270   int result;
5271 
5272   {
5273     arg4 = NULL;
5274   }
5275   {
5276     temp3 = NULL;
5277     arg3 = &temp3;
5278   }
5279   if (!PyArg_UnpackTuple(args, "gp_filesystem_get_folder", 2, 3, &obj0, &obj1, &obj2)) SWIG_fail;
5280   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5281   if (!SWIG_IsOK(res1)) {
5282     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_get_folder" "', argument " "1"" of type '" "CameraFilesystem *""'");
5283   }
5284   arg1 = (CameraFilesystem *)(argp1);
5285   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5286   if (!SWIG_IsOK(res2)) {
5287     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_get_folder" "', argument " "2"" of type '" "char const *""'");
5288   }
5289   arg2 = (char *)(buf2);
5290   if (obj2) {
5291     res4 = SWIG_ConvertPtr(obj2, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5292     if (!SWIG_IsOK(res4)) {
5293       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_get_folder" "', argument " "4"" of type '" "GPContext *""'");
5294     }
5295     arg4 = (GPContext *)(argp4);
5296   }
5297   result = (int)gp_filesystem_get_folder(arg1,(char const *)arg2,arg3,arg4);
5298   resultobj = SWIG_From_int((int)(result));
5299   {
5300     if (*arg3) {
5301       resultobj = SWIG_Python_AppendOutput(resultobj, PyString_FromString(*arg3));
5302     }
5303     else {
5304       Py_INCREF(Py_None);
5305       resultobj = SWIG_Python_AppendOutput(resultobj, Py_None);
5306     }
5307   }
5308   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5309   return resultobj;
5310 fail:
5311   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5312   return NULL;
5313 }
5314 
5315 
_wrap_gp_filesystem_number(PyObject * self,PyObject * args)5316 SWIGINTERN PyObject *_wrap_gp_filesystem_number(PyObject *self, PyObject *args) {
5317   PyObject *resultobj = 0;
5318   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5319   char *arg2 = (char *) 0 ;
5320   char *arg3 = (char *) 0 ;
5321   GPContext *arg4 = (GPContext *) 0 ;
5322   void *argp1 = 0 ;
5323   int res1 = 0 ;
5324   int res2 ;
5325   char *buf2 = 0 ;
5326   int alloc2 = 0 ;
5327   int res3 ;
5328   char *buf3 = 0 ;
5329   int alloc3 = 0 ;
5330   void *argp4 = 0 ;
5331   int res4 = 0 ;
5332   PyObject * obj0 = 0 ;
5333   PyObject * obj1 = 0 ;
5334   PyObject * obj2 = 0 ;
5335   PyObject * obj3 = 0 ;
5336   int result;
5337 
5338   {
5339     arg4 = NULL;
5340   }
5341   if (!PyArg_UnpackTuple(args, "gp_filesystem_number", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
5342   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5343   if (!SWIG_IsOK(res1)) {
5344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_number" "', argument " "1"" of type '" "CameraFilesystem *""'");
5345   }
5346   arg1 = (CameraFilesystem *)(argp1);
5347   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5348   if (!SWIG_IsOK(res2)) {
5349     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_number" "', argument " "2"" of type '" "char const *""'");
5350   }
5351   arg2 = (char *)(buf2);
5352   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5353   if (!SWIG_IsOK(res3)) {
5354     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_number" "', argument " "3"" of type '" "char const *""'");
5355   }
5356   arg3 = (char *)(buf3);
5357   if (obj3) {
5358     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5359     if (!SWIG_IsOK(res4)) {
5360       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_number" "', argument " "4"" of type '" "GPContext *""'");
5361     }
5362     arg4 = (GPContext *)(argp4);
5363   }
5364   result = (int)gp_filesystem_number(arg1,(char const *)arg2,(char const *)arg3,arg4);
5365   resultobj = SWIG_From_int((int)(result));
5366   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5367   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5368   return resultobj;
5369 fail:
5370   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5371   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5372   return NULL;
5373 }
5374 
5375 
_wrap_gp_filesystem_list_files(PyObject * self,PyObject * args)5376 SWIGINTERN PyObject *_wrap_gp_filesystem_list_files(PyObject *self, PyObject *args) {
5377   PyObject *resultobj = 0;
5378   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5379   char *arg2 = (char *) 0 ;
5380   CameraList *arg3 = (CameraList *) 0 ;
5381   GPContext *arg4 = (GPContext *) 0 ;
5382   void *argp1 = 0 ;
5383   int res1 = 0 ;
5384   int res2 ;
5385   char *buf2 = 0 ;
5386   int alloc2 = 0 ;
5387   void *argp4 = 0 ;
5388   int res4 = 0 ;
5389   PyObject * obj0 = 0 ;
5390   PyObject * obj1 = 0 ;
5391   PyObject * obj2 = 0 ;
5392   int result;
5393 
5394   {
5395     arg4 = NULL;
5396   }
5397   {
5398     int error = gp_list_new(&arg3);
5399     if (error < 0) {
5400       arg3 = NULL;
5401       /*@SWIG:src/gphoto2/common/macros.i,18,GPHOTO2_ERROR@*/
5402       PyErr_SetObject(PyExc_GPhoto2Error, PyInt_FromLong(error));
5403       /*@SWIG@*/
5404       SWIG_fail;
5405     }
5406   }
5407   if (!PyArg_UnpackTuple(args, "gp_filesystem_list_files", 2, 3, &obj0, &obj1, &obj2)) SWIG_fail;
5408   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5409   if (!SWIG_IsOK(res1)) {
5410     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_list_files" "', argument " "1"" of type '" "CameraFilesystem *""'");
5411   }
5412   arg1 = (CameraFilesystem *)(argp1);
5413   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5414   if (!SWIG_IsOK(res2)) {
5415     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_list_files" "', argument " "2"" of type '" "char const *""'");
5416   }
5417   arg2 = (char *)(buf2);
5418   if (obj2) {
5419     res4 = SWIG_ConvertPtr(obj2, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5420     if (!SWIG_IsOK(res4)) {
5421       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_list_files" "', argument " "4"" of type '" "GPContext *""'");
5422     }
5423     arg4 = (GPContext *)(argp4);
5424   }
5425   result = (int)gp_filesystem_list_files(arg1,(char const *)arg2,arg3,arg4);
5426   resultobj = SWIG_From_int((int)(result));
5427   {
5428     resultobj = SWIG_Python_AppendOutput(
5429       resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p__CameraList, SWIG_POINTER_OWN));
5430     arg3 = NULL;
5431   }
5432   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5433   {
5434     if (arg3 != NULL) {
5435       gp_list_unref(arg3);
5436     }
5437   }
5438   return resultobj;
5439 fail:
5440   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5441   {
5442     if (arg3 != NULL) {
5443       gp_list_unref(arg3);
5444     }
5445   }
5446   return NULL;
5447 }
5448 
5449 
_wrap_gp_filesystem_list_folders(PyObject * self,PyObject * args)5450 SWIGINTERN PyObject *_wrap_gp_filesystem_list_folders(PyObject *self, PyObject *args) {
5451   PyObject *resultobj = 0;
5452   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5453   char *arg2 = (char *) 0 ;
5454   CameraList *arg3 = (CameraList *) 0 ;
5455   GPContext *arg4 = (GPContext *) 0 ;
5456   void *argp1 = 0 ;
5457   int res1 = 0 ;
5458   int res2 ;
5459   char *buf2 = 0 ;
5460   int alloc2 = 0 ;
5461   void *argp4 = 0 ;
5462   int res4 = 0 ;
5463   PyObject * obj0 = 0 ;
5464   PyObject * obj1 = 0 ;
5465   PyObject * obj2 = 0 ;
5466   int result;
5467 
5468   {
5469     arg4 = NULL;
5470   }
5471   {
5472     int error = gp_list_new(&arg3);
5473     if (error < 0) {
5474       arg3 = NULL;
5475       /*@SWIG:src/gphoto2/common/macros.i,18,GPHOTO2_ERROR@*/
5476       PyErr_SetObject(PyExc_GPhoto2Error, PyInt_FromLong(error));
5477       /*@SWIG@*/
5478       SWIG_fail;
5479     }
5480   }
5481   if (!PyArg_UnpackTuple(args, "gp_filesystem_list_folders", 2, 3, &obj0, &obj1, &obj2)) SWIG_fail;
5482   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5483   if (!SWIG_IsOK(res1)) {
5484     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_list_folders" "', argument " "1"" of type '" "CameraFilesystem *""'");
5485   }
5486   arg1 = (CameraFilesystem *)(argp1);
5487   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5488   if (!SWIG_IsOK(res2)) {
5489     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_list_folders" "', argument " "2"" of type '" "char const *""'");
5490   }
5491   arg2 = (char *)(buf2);
5492   if (obj2) {
5493     res4 = SWIG_ConvertPtr(obj2, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5494     if (!SWIG_IsOK(res4)) {
5495       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_list_folders" "', argument " "4"" of type '" "GPContext *""'");
5496     }
5497     arg4 = (GPContext *)(argp4);
5498   }
5499   result = (int)gp_filesystem_list_folders(arg1,(char const *)arg2,arg3,arg4);
5500   resultobj = SWIG_From_int((int)(result));
5501   {
5502     resultobj = SWIG_Python_AppendOutput(
5503       resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p__CameraList, SWIG_POINTER_OWN));
5504     arg3 = NULL;
5505   }
5506   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5507   {
5508     if (arg3 != NULL) {
5509       gp_list_unref(arg3);
5510     }
5511   }
5512   return resultobj;
5513 fail:
5514   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5515   {
5516     if (arg3 != NULL) {
5517       gp_list_unref(arg3);
5518     }
5519   }
5520   return NULL;
5521 }
5522 
5523 
_wrap_gp_filesystem_get_info(PyObject * self,PyObject * args)5524 SWIGINTERN PyObject *_wrap_gp_filesystem_get_info(PyObject *self, PyObject *args) {
5525   PyObject *resultobj = 0;
5526   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5527   char *arg2 = (char *) 0 ;
5528   char *arg3 = (char *) 0 ;
5529   CameraFileInfo *arg4 = (CameraFileInfo *) 0 ;
5530   GPContext *arg5 = (GPContext *) 0 ;
5531   void *argp1 = 0 ;
5532   int res1 = 0 ;
5533   int res2 ;
5534   char *buf2 = 0 ;
5535   int alloc2 = 0 ;
5536   int res3 ;
5537   char *buf3 = 0 ;
5538   int alloc3 = 0 ;
5539   void *argp5 = 0 ;
5540   int res5 = 0 ;
5541   PyObject * obj0 = 0 ;
5542   PyObject * obj1 = 0 ;
5543   PyObject * obj2 = 0 ;
5544   PyObject * obj3 = 0 ;
5545   int result;
5546 
5547   {
5548     arg5 = NULL;
5549   }
5550   {
5551     arg4 = (CameraFileInfo *)calloc(1, sizeof(CameraFileInfo));
5552     if (arg4 == NULL) {
5553       PyErr_SetString(PyExc_MemoryError, "Cannot allocate " "CameraFileInfo");
5554       SWIG_fail;
5555     }
5556   }
5557   if (!PyArg_UnpackTuple(args, "gp_filesystem_get_info", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
5558   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5559   if (!SWIG_IsOK(res1)) {
5560     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_get_info" "', argument " "1"" of type '" "CameraFilesystem *""'");
5561   }
5562   arg1 = (CameraFilesystem *)(argp1);
5563   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5564   if (!SWIG_IsOK(res2)) {
5565     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_get_info" "', argument " "2"" of type '" "char const *""'");
5566   }
5567   arg2 = (char *)(buf2);
5568   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5569   if (!SWIG_IsOK(res3)) {
5570     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_get_info" "', argument " "3"" of type '" "char const *""'");
5571   }
5572   arg3 = (char *)(buf3);
5573   if (obj3) {
5574     res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p__GPContext, 0 |  0 );
5575     if (!SWIG_IsOK(res5)) {
5576       SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_get_info" "', argument " "5"" of type '" "GPContext *""'");
5577     }
5578     arg5 = (GPContext *)(argp5);
5579   }
5580   result = (int)gp_filesystem_get_info(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
5581   resultobj = SWIG_From_int((int)(result));
5582   {
5583     resultobj = SWIG_Python_AppendOutput(
5584       resultobj, SWIG_NewPointerObj(arg4, SWIGTYPE_p__CameraFileInfo, SWIG_POINTER_OWN));
5585     arg4 = NULL;
5586   }
5587   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5588   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5589   {
5590     free(arg4);
5591   }
5592   return resultobj;
5593 fail:
5594   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5595   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5596   {
5597     free(arg4);
5598   }
5599   return NULL;
5600 }
5601 
5602 
_wrap_gp_filesystem_set_info(PyObject * self,PyObject * args)5603 SWIGINTERN PyObject *_wrap_gp_filesystem_set_info(PyObject *self, PyObject *args) {
5604   PyObject *resultobj = 0;
5605   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5606   char *arg2 = (char *) 0 ;
5607   char *arg3 = (char *) 0 ;
5608   CameraFileInfo arg4 ;
5609   GPContext *arg5 = (GPContext *) 0 ;
5610   void *argp1 = 0 ;
5611   int res1 = 0 ;
5612   int res2 ;
5613   char *buf2 = 0 ;
5614   int alloc2 = 0 ;
5615   int res3 ;
5616   char *buf3 = 0 ;
5617   int alloc3 = 0 ;
5618   void *argp4 ;
5619   int res4 = 0 ;
5620   void *argp5 = 0 ;
5621   int res5 = 0 ;
5622   PyObject * obj0 = 0 ;
5623   PyObject * obj1 = 0 ;
5624   PyObject * obj2 = 0 ;
5625   PyObject * obj3 = 0 ;
5626   PyObject * obj4 = 0 ;
5627   int result;
5628 
5629   {
5630     arg5 = NULL;
5631   }
5632   if (!PyArg_UnpackTuple(args, "gp_filesystem_set_info", 4, 5, &obj0, &obj1, &obj2, &obj3, &obj4)) SWIG_fail;
5633   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5634   if (!SWIG_IsOK(res1)) {
5635     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_set_info" "', argument " "1"" of type '" "CameraFilesystem *""'");
5636   }
5637   arg1 = (CameraFilesystem *)(argp1);
5638   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5639   if (!SWIG_IsOK(res2)) {
5640     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_set_info" "', argument " "2"" of type '" "char const *""'");
5641   }
5642   arg2 = (char *)(buf2);
5643   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5644   if (!SWIG_IsOK(res3)) {
5645     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_set_info" "', argument " "3"" of type '" "char const *""'");
5646   }
5647   arg3 = (char *)(buf3);
5648   {
5649     res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p__CameraFileInfo,  0 );
5650     if (!SWIG_IsOK(res4)) {
5651       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_set_info" "', argument " "4"" of type '" "CameraFileInfo""'");
5652     }
5653     if (!argp4) {
5654       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gp_filesystem_set_info" "', argument " "4"" of type '" "CameraFileInfo""'");
5655     } else {
5656       arg4 = *((CameraFileInfo *)(argp4));
5657     }
5658   }
5659   if (obj4) {
5660     res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__GPContext, 0 |  0 );
5661     if (!SWIG_IsOK(res5)) {
5662       SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_set_info" "', argument " "5"" of type '" "GPContext *""'");
5663     }
5664     arg5 = (GPContext *)(argp5);
5665   }
5666   result = (int)gp_filesystem_set_info(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
5667   resultobj = SWIG_From_int((int)(result));
5668   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5669   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5670   return resultobj;
5671 fail:
5672   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5673   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5674   return NULL;
5675 }
5676 
5677 
_wrap_gp_filesystem_get_file(PyObject * self,PyObject * args)5678 SWIGINTERN PyObject *_wrap_gp_filesystem_get_file(PyObject *self, PyObject *args) {
5679   PyObject *resultobj = 0;
5680   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5681   char *arg2 = (char *) 0 ;
5682   char *arg3 = (char *) 0 ;
5683   CameraFileType arg4 ;
5684   CameraFile *arg5 = (CameraFile *) 0 ;
5685   GPContext *arg6 = (GPContext *) 0 ;
5686   void *argp1 = 0 ;
5687   int res1 = 0 ;
5688   int res2 ;
5689   char *buf2 = 0 ;
5690   int alloc2 = 0 ;
5691   int res3 ;
5692   char *buf3 = 0 ;
5693   int alloc3 = 0 ;
5694   int val4 ;
5695   int ecode4 = 0 ;
5696   void *argp5 = 0 ;
5697   int res5 = 0 ;
5698   void *argp6 = 0 ;
5699   int res6 = 0 ;
5700   PyObject * obj0 = 0 ;
5701   PyObject * obj1 = 0 ;
5702   PyObject * obj2 = 0 ;
5703   PyObject * obj3 = 0 ;
5704   PyObject * obj4 = 0 ;
5705   PyObject * obj5 = 0 ;
5706   int result;
5707 
5708   {
5709     arg6 = NULL;
5710   }
5711   if (!PyArg_UnpackTuple(args, "gp_filesystem_get_file", 5, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
5712   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5713   if (!SWIG_IsOK(res1)) {
5714     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_get_file" "', argument " "1"" of type '" "CameraFilesystem *""'");
5715   }
5716   arg1 = (CameraFilesystem *)(argp1);
5717   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5718   if (!SWIG_IsOK(res2)) {
5719     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_get_file" "', argument " "2"" of type '" "char const *""'");
5720   }
5721   arg2 = (char *)(buf2);
5722   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5723   if (!SWIG_IsOK(res3)) {
5724     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_get_file" "', argument " "3"" of type '" "char const *""'");
5725   }
5726   arg3 = (char *)(buf3);
5727   ecode4 = SWIG_AsVal_int(obj3, &val4);
5728   if (!SWIG_IsOK(ecode4)) {
5729     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gp_filesystem_get_file" "', argument " "4"" of type '" "CameraFileType""'");
5730   }
5731   arg4 = (CameraFileType)(val4);
5732   res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__CameraFile, 0 |  0 );
5733   if (!SWIG_IsOK(res5)) {
5734     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_get_file" "', argument " "5"" of type '" "CameraFile *""'");
5735   }
5736   arg5 = (CameraFile *)(argp5);
5737   if (obj5) {
5738     res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p__GPContext, 0 |  0 );
5739     if (!SWIG_IsOK(res6)) {
5740       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gp_filesystem_get_file" "', argument " "6"" of type '" "GPContext *""'");
5741     }
5742     arg6 = (GPContext *)(argp6);
5743   }
5744   result = (int)gp_filesystem_get_file(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6);
5745   resultobj = SWIG_From_int((int)(result));
5746   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5747   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5748   return resultobj;
5749 fail:
5750   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5751   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5752   return NULL;
5753 }
5754 
5755 
_wrap_gp_filesystem_read_file(PyObject * self,PyObject * args)5756 SWIGINTERN PyObject *_wrap_gp_filesystem_read_file(PyObject *self, PyObject *args) {
5757   PyObject *resultobj = 0;
5758   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5759   char *arg2 = (char *) 0 ;
5760   char *arg3 = (char *) 0 ;
5761   CameraFileType arg4 ;
5762   uint64_t arg5 ;
5763   char *arg6 = (char *) 0 ;
5764   uint64_t *arg7 = (uint64_t *) 0 ;
5765   GPContext *arg8 = (GPContext *) 0 ;
5766   void *argp1 = 0 ;
5767   int res1 = 0 ;
5768   int res2 ;
5769   char *buf2 = 0 ;
5770   int alloc2 = 0 ;
5771   int res3 ;
5772   char *buf3 = 0 ;
5773   int alloc3 = 0 ;
5774   int val4 ;
5775   int ecode4 = 0 ;
5776   unsigned long long val5 ;
5777   int ecode5 = 0 ;
5778   int res6 ;
5779   char *buf6 = 0 ;
5780   int alloc6 = 0 ;
5781   void *argp7 = 0 ;
5782   int res7 = 0 ;
5783   void *argp8 = 0 ;
5784   int res8 = 0 ;
5785   PyObject * obj0 = 0 ;
5786   PyObject * obj1 = 0 ;
5787   PyObject * obj2 = 0 ;
5788   PyObject * obj3 = 0 ;
5789   PyObject * obj4 = 0 ;
5790   PyObject * obj5 = 0 ;
5791   PyObject * obj6 = 0 ;
5792   PyObject * obj7 = 0 ;
5793   int result;
5794 
5795   {
5796     arg8 = NULL;
5797   }
5798   if (!PyArg_UnpackTuple(args, "gp_filesystem_read_file", 7, 8, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7)) SWIG_fail;
5799   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5800   if (!SWIG_IsOK(res1)) {
5801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_read_file" "', argument " "1"" of type '" "CameraFilesystem *""'");
5802   }
5803   arg1 = (CameraFilesystem *)(argp1);
5804   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5805   if (!SWIG_IsOK(res2)) {
5806     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_read_file" "', argument " "2"" of type '" "char const *""'");
5807   }
5808   arg2 = (char *)(buf2);
5809   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5810   if (!SWIG_IsOK(res3)) {
5811     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_read_file" "', argument " "3"" of type '" "char const *""'");
5812   }
5813   arg3 = (char *)(buf3);
5814   ecode4 = SWIG_AsVal_int(obj3, &val4);
5815   if (!SWIG_IsOK(ecode4)) {
5816     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gp_filesystem_read_file" "', argument " "4"" of type '" "CameraFileType""'");
5817   }
5818   arg4 = (CameraFileType)(val4);
5819   ecode5 = SWIG_AsVal_unsigned_SS_long_SS_long(obj4, &val5);
5820   if (!SWIG_IsOK(ecode5)) {
5821     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gp_filesystem_read_file" "', argument " "5"" of type '" "uint64_t""'");
5822   }
5823   arg5 = (uint64_t)(val5);
5824   res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
5825   if (!SWIG_IsOK(res6)) {
5826     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gp_filesystem_read_file" "', argument " "6"" of type '" "char *""'");
5827   }
5828   arg6 = (char *)(buf6);
5829   res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_long_long, 0 |  0 );
5830   if (!SWIG_IsOK(res7)) {
5831     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gp_filesystem_read_file" "', argument " "7"" of type '" "uint64_t *""'");
5832   }
5833   arg7 = (uint64_t *)(argp7);
5834   if (obj7) {
5835     res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p__GPContext, 0 |  0 );
5836     if (!SWIG_IsOK(res8)) {
5837       SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "gp_filesystem_read_file" "', argument " "8"" of type '" "GPContext *""'");
5838     }
5839     arg8 = (GPContext *)(argp8);
5840   }
5841   result = (int)gp_filesystem_read_file(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8);
5842   resultobj = SWIG_From_int((int)(result));
5843   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5844   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5845   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
5846   return resultobj;
5847 fail:
5848   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5849   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5850   if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
5851   return NULL;
5852 }
5853 
5854 
_wrap_gp_filesystem_delete_file(PyObject * self,PyObject * args)5855 SWIGINTERN PyObject *_wrap_gp_filesystem_delete_file(PyObject *self, PyObject *args) {
5856   PyObject *resultobj = 0;
5857   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
5858   char *arg2 = (char *) 0 ;
5859   char *arg3 = (char *) 0 ;
5860   GPContext *arg4 = (GPContext *) 0 ;
5861   void *argp1 = 0 ;
5862   int res1 = 0 ;
5863   int res2 ;
5864   char *buf2 = 0 ;
5865   int alloc2 = 0 ;
5866   int res3 ;
5867   char *buf3 = 0 ;
5868   int alloc3 = 0 ;
5869   void *argp4 = 0 ;
5870   int res4 = 0 ;
5871   PyObject * obj0 = 0 ;
5872   PyObject * obj1 = 0 ;
5873   PyObject * obj2 = 0 ;
5874   PyObject * obj3 = 0 ;
5875   int result;
5876 
5877   {
5878     arg4 = NULL;
5879   }
5880   if (!PyArg_UnpackTuple(args, "gp_filesystem_delete_file", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
5881   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
5882   if (!SWIG_IsOK(res1)) {
5883     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_delete_file" "', argument " "1"" of type '" "CameraFilesystem *""'");
5884   }
5885   arg1 = (CameraFilesystem *)(argp1);
5886   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5887   if (!SWIG_IsOK(res2)) {
5888     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_delete_file" "', argument " "2"" of type '" "char const *""'");
5889   }
5890   arg2 = (char *)(buf2);
5891   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
5892   if (!SWIG_IsOK(res3)) {
5893     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_delete_file" "', argument " "3"" of type '" "char const *""'");
5894   }
5895   arg3 = (char *)(buf3);
5896   if (obj3) {
5897     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
5898     if (!SWIG_IsOK(res4)) {
5899       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_delete_file" "', argument " "4"" of type '" "GPContext *""'");
5900     }
5901     arg4 = (GPContext *)(argp4);
5902   }
5903   result = (int)gp_filesystem_delete_file(arg1,(char const *)arg2,(char const *)arg3,arg4);
5904   resultobj = SWIG_From_int((int)(result));
5905   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5906   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5907   return resultobj;
5908 fail:
5909   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5910   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5911   return NULL;
5912 }
5913 
5914 
_wrap__CameraFilesystemFuncs_file_list_func_get(PyObject * self,PyObject * args)5915 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_file_list_func_get(PyObject *self, PyObject *args) {
5916   PyObject *resultobj = 0;
5917   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
5918   void *argp1 = 0 ;
5919   int res1 = 0 ;
5920   CameraFilesystemListFunc result;
5921 
5922   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_file_list_func_get takes no arguments");
5923   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
5924   if (!SWIG_IsOK(res1)) {
5925     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_file_list_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
5926   }
5927   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
5928   result = (CameraFilesystemListFunc) ((arg1)->file_list_func);
5929   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int);
5930   return resultobj;
5931 fail:
5932   return NULL;
5933 }
5934 
5935 
_wrap__CameraFilesystemFuncs_folder_list_func_get(PyObject * self,PyObject * args)5936 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_folder_list_func_get(PyObject *self, PyObject *args) {
5937   PyObject *resultobj = 0;
5938   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
5939   void *argp1 = 0 ;
5940   int res1 = 0 ;
5941   CameraFilesystemListFunc result;
5942 
5943   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_folder_list_func_get takes no arguments");
5944   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
5945   if (!SWIG_IsOK(res1)) {
5946     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_folder_list_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
5947   }
5948   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
5949   result = (CameraFilesystemListFunc) ((arg1)->folder_list_func);
5950   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int);
5951   return resultobj;
5952 fail:
5953   return NULL;
5954 }
5955 
5956 
_wrap__CameraFilesystemFuncs_put_file_func_get(PyObject * self,PyObject * args)5957 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_put_file_func_get(PyObject *self, PyObject *args) {
5958   PyObject *resultobj = 0;
5959   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
5960   void *argp1 = 0 ;
5961   int res1 = 0 ;
5962   CameraFilesystemPutFileFunc result;
5963 
5964   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_put_file_func_get takes no arguments");
5965   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
5966   if (!SWIG_IsOK(res1)) {
5967     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_put_file_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
5968   }
5969   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
5970   result = (CameraFilesystemPutFileFunc) ((arg1)->put_file_func);
5971   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int);
5972   return resultobj;
5973 fail:
5974   return NULL;
5975 }
5976 
5977 
_wrap__CameraFilesystemFuncs_delete_all_func_get(PyObject * self,PyObject * args)5978 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_delete_all_func_get(PyObject *self, PyObject *args) {
5979   PyObject *resultobj = 0;
5980   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
5981   void *argp1 = 0 ;
5982   int res1 = 0 ;
5983   CameraFilesystemDeleteAllFunc result;
5984 
5985   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_delete_all_func_get takes no arguments");
5986   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
5987   if (!SWIG_IsOK(res1)) {
5988     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_delete_all_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
5989   }
5990   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
5991   result = (CameraFilesystemDeleteAllFunc) ((arg1)->delete_all_func);
5992   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int);
5993   return resultobj;
5994 fail:
5995   return NULL;
5996 }
5997 
5998 
_wrap__CameraFilesystemFuncs_get_info_func_get(PyObject * self,PyObject * args)5999 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_get_info_func_get(PyObject *self, PyObject *args) {
6000   PyObject *resultobj = 0;
6001   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6002   void *argp1 = 0 ;
6003   int res1 = 0 ;
6004   CameraFilesystemGetInfoFunc result;
6005 
6006   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_get_info_func_get takes no arguments");
6007   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6008   if (!SWIG_IsOK(res1)) {
6009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_get_info_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6010   }
6011   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6012   result = (CameraFilesystemGetInfoFunc) ((arg1)->get_info_func);
6013   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int);
6014   return resultobj;
6015 fail:
6016   return NULL;
6017 }
6018 
6019 
_wrap__CameraFilesystemFuncs_set_info_func_get(PyObject * self,PyObject * args)6020 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_set_info_func_get(PyObject *self, PyObject *args) {
6021   PyObject *resultobj = 0;
6022   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6023   void *argp1 = 0 ;
6024   int res1 = 0 ;
6025   CameraFilesystemSetInfoFunc result;
6026 
6027   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_set_info_func_get takes no arguments");
6028   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6029   if (!SWIG_IsOK(res1)) {
6030     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_set_info_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6031   }
6032   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6033   result = (CameraFilesystemSetInfoFunc) ((arg1)->set_info_func);
6034   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int);
6035   return resultobj;
6036 fail:
6037   return NULL;
6038 }
6039 
6040 
_wrap__CameraFilesystemFuncs_make_dir_func_get(PyObject * self,PyObject * args)6041 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_make_dir_func_get(PyObject *self, PyObject *args) {
6042   PyObject *resultobj = 0;
6043   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6044   void *argp1 = 0 ;
6045   int res1 = 0 ;
6046   CameraFilesystemDirFunc result;
6047 
6048   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_make_dir_func_get takes no arguments");
6049   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6050   if (!SWIG_IsOK(res1)) {
6051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_make_dir_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6052   }
6053   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6054   result = (CameraFilesystemDirFunc) ((arg1)->make_dir_func);
6055   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int);
6056   return resultobj;
6057 fail:
6058   return NULL;
6059 }
6060 
6061 
_wrap__CameraFilesystemFuncs_remove_dir_func_get(PyObject * self,PyObject * args)6062 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_remove_dir_func_get(PyObject *self, PyObject *args) {
6063   PyObject *resultobj = 0;
6064   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6065   void *argp1 = 0 ;
6066   int res1 = 0 ;
6067   CameraFilesystemDirFunc result;
6068 
6069   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_remove_dir_func_get takes no arguments");
6070   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6071   if (!SWIG_IsOK(res1)) {
6072     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_remove_dir_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6073   }
6074   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6075   result = (CameraFilesystemDirFunc) ((arg1)->remove_dir_func);
6076   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int);
6077   return resultobj;
6078 fail:
6079   return NULL;
6080 }
6081 
6082 
_wrap__CameraFilesystemFuncs_get_file_func_get(PyObject * self,PyObject * args)6083 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_get_file_func_get(PyObject *self, PyObject *args) {
6084   PyObject *resultobj = 0;
6085   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6086   void *argp1 = 0 ;
6087   int res1 = 0 ;
6088   CameraFilesystemGetFileFunc result;
6089 
6090   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_get_file_func_get takes no arguments");
6091   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6092   if (!SWIG_IsOK(res1)) {
6093     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_get_file_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6094   }
6095   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6096   result = (CameraFilesystemGetFileFunc) ((arg1)->get_file_func);
6097   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int);
6098   return resultobj;
6099 fail:
6100   return NULL;
6101 }
6102 
6103 
_wrap__CameraFilesystemFuncs_read_file_func_get(PyObject * self,PyObject * args)6104 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_read_file_func_get(PyObject *self, PyObject *args) {
6105   PyObject *resultobj = 0;
6106   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6107   void *argp1 = 0 ;
6108   int res1 = 0 ;
6109   CameraFilesystemReadFileFunc result;
6110 
6111   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_read_file_func_get takes no arguments");
6112   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6113   if (!SWIG_IsOK(res1)) {
6114     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_read_file_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6115   }
6116   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6117   result = (CameraFilesystemReadFileFunc) ((arg1)->read_file_func);
6118   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int);
6119   return resultobj;
6120 fail:
6121   return NULL;
6122 }
6123 
6124 
_wrap__CameraFilesystemFuncs_del_file_func_get(PyObject * self,PyObject * args)6125 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_del_file_func_get(PyObject *self, PyObject *args) {
6126   PyObject *resultobj = 0;
6127   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6128   void *argp1 = 0 ;
6129   int res1 = 0 ;
6130   CameraFilesystemDeleteFileFunc result;
6131 
6132   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_del_file_func_get takes no arguments");
6133   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6134   if (!SWIG_IsOK(res1)) {
6135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_del_file_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6136   }
6137   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6138   result = (CameraFilesystemDeleteFileFunc) ((arg1)->del_file_func);
6139   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int);
6140   return resultobj;
6141 fail:
6142   return NULL;
6143 }
6144 
6145 
_wrap__CameraFilesystemFuncs_storage_info_func_get(PyObject * self,PyObject * args)6146 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_storage_info_func_get(PyObject *self, PyObject *args) {
6147   PyObject *resultobj = 0;
6148   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6149   void *argp1 = 0 ;
6150   int res1 = 0 ;
6151   CameraFilesystemStorageInfoFunc result;
6152 
6153   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_storage_info_func_get takes no arguments");
6154   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6155   if (!SWIG_IsOK(res1)) {
6156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_storage_info_func_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6157   }
6158   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6159   result = (CameraFilesystemStorageInfoFunc) ((arg1)->storage_info_func);
6160   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int);
6161   return resultobj;
6162 fail:
6163   return NULL;
6164 }
6165 
6166 
_wrap__CameraFilesystemFuncs_unused_get(PyObject * self,PyObject * args)6167 SWIGINTERN PyObject *_wrap__CameraFilesystemFuncs_unused_get(PyObject *self, PyObject *args) {
6168   PyObject *resultobj = 0;
6169   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6170   void *argp1 = 0 ;
6171   int res1 = 0 ;
6172   void **result = 0 ;
6173 
6174   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_CameraFilesystemFuncs_unused_get takes no arguments");
6175   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6176   if (!SWIG_IsOK(res1)) {
6177     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CameraFilesystemFuncs_unused_get" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6178   }
6179   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6180   result = (void **)(void **) ((arg1)->unused);
6181   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_void, 0 |  0 );
6182   return resultobj;
6183 fail:
6184   return NULL;
6185 }
6186 
6187 
_wrap_delete__CameraFilesystemFuncs(PyObject * self,PyObject * args)6188 SWIGINTERN PyObject *_wrap_delete__CameraFilesystemFuncs(PyObject *self, PyObject *args) {
6189   PyObject *resultobj = 0;
6190   struct _CameraFilesystemFuncs *arg1 = (struct _CameraFilesystemFuncs *) 0 ;
6191   void *argp1 = 0 ;
6192   int res1 = 0 ;
6193 
6194   if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete__CameraFilesystemFuncs takes no arguments");
6195   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__CameraFilesystemFuncs, SWIG_POINTER_DISOWN |  0 );
6196   if (!SWIG_IsOK(res1)) {
6197     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__CameraFilesystemFuncs" "', argument " "1"" of type '" "struct _CameraFilesystemFuncs *""'");
6198   }
6199   arg1 = (struct _CameraFilesystemFuncs *)(argp1);
6200   free((char *) arg1);
6201   resultobj = SWIG_Py_Void();
6202   return resultobj;
6203 fail:
6204   return NULL;
6205 }
6206 
6207 
SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__CameraFilesystemFuncs)6208 SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__CameraFilesystemFuncs) /* defines _wrap_delete__CameraFilesystemFuncs_destructor_closure */
6209 
6210 SWIGINTERN PyObject *_wrap_gp_filesystem_set_funcs(PyObject *self, PyObject *args) {
6211   PyObject *resultobj = 0;
6212   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6213   CameraFilesystemFuncs *arg2 = (CameraFilesystemFuncs *) 0 ;
6214   void *arg3 = (void *) 0 ;
6215   void *argp1 = 0 ;
6216   int res1 = 0 ;
6217   void *argp2 = 0 ;
6218   int res2 = 0 ;
6219   int res3 ;
6220   PyObject * obj0 = 0 ;
6221   PyObject * obj1 = 0 ;
6222   PyObject * obj2 = 0 ;
6223   int result;
6224 
6225   if (!PyArg_UnpackTuple(args, "gp_filesystem_set_funcs", 3, 3, &obj0, &obj1, &obj2)) SWIG_fail;
6226   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6227   if (!SWIG_IsOK(res1)) {
6228     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_set_funcs" "', argument " "1"" of type '" "CameraFilesystem *""'");
6229   }
6230   arg1 = (CameraFilesystem *)(argp1);
6231   res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__CameraFilesystemFuncs, 0 |  0 );
6232   if (!SWIG_IsOK(res2)) {
6233     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_set_funcs" "', argument " "2"" of type '" "CameraFilesystemFuncs *""'");
6234   }
6235   arg2 = (CameraFilesystemFuncs *)(argp2);
6236   res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
6237   if (!SWIG_IsOK(res3)) {
6238     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_set_funcs" "', argument " "3"" of type '" "void *""'");
6239   }
6240   result = (int)gp_filesystem_set_funcs(arg1,arg2,arg3);
6241   resultobj = SWIG_From_int((int)(result));
6242   return resultobj;
6243 fail:
6244   return NULL;
6245 }
6246 
6247 
_wrap_gp_filesystem_put_file(PyObject * self,PyObject * args)6248 SWIGINTERN PyObject *_wrap_gp_filesystem_put_file(PyObject *self, PyObject *args) {
6249   PyObject *resultobj = 0;
6250   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6251   char *arg2 = (char *) 0 ;
6252   char *arg3 = (char *) 0 ;
6253   CameraFileType arg4 ;
6254   CameraFile *arg5 = (CameraFile *) 0 ;
6255   GPContext *arg6 = (GPContext *) 0 ;
6256   void *argp1 = 0 ;
6257   int res1 = 0 ;
6258   int res2 ;
6259   char *buf2 = 0 ;
6260   int alloc2 = 0 ;
6261   int res3 ;
6262   char *buf3 = 0 ;
6263   int alloc3 = 0 ;
6264   int val4 ;
6265   int ecode4 = 0 ;
6266   void *argp5 = 0 ;
6267   int res5 = 0 ;
6268   void *argp6 = 0 ;
6269   int res6 = 0 ;
6270   PyObject * obj0 = 0 ;
6271   PyObject * obj1 = 0 ;
6272   PyObject * obj2 = 0 ;
6273   PyObject * obj3 = 0 ;
6274   PyObject * obj4 = 0 ;
6275   PyObject * obj5 = 0 ;
6276   int result;
6277 
6278   {
6279     arg6 = NULL;
6280   }
6281   if (!PyArg_UnpackTuple(args, "gp_filesystem_put_file", 5, 6, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5)) SWIG_fail;
6282   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6283   if (!SWIG_IsOK(res1)) {
6284     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_put_file" "', argument " "1"" of type '" "CameraFilesystem *""'");
6285   }
6286   arg1 = (CameraFilesystem *)(argp1);
6287   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6288   if (!SWIG_IsOK(res2)) {
6289     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_put_file" "', argument " "2"" of type '" "char const *""'");
6290   }
6291   arg2 = (char *)(buf2);
6292   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
6293   if (!SWIG_IsOK(res3)) {
6294     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_put_file" "', argument " "3"" of type '" "char const *""'");
6295   }
6296   arg3 = (char *)(buf3);
6297   ecode4 = SWIG_AsVal_int(obj3, &val4);
6298   if (!SWIG_IsOK(ecode4)) {
6299     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gp_filesystem_put_file" "', argument " "4"" of type '" "CameraFileType""'");
6300   }
6301   arg4 = (CameraFileType)(val4);
6302   res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__CameraFile, 0 |  0 );
6303   if (!SWIG_IsOK(res5)) {
6304     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gp_filesystem_put_file" "', argument " "5"" of type '" "CameraFile *""'");
6305   }
6306   arg5 = (CameraFile *)(argp5);
6307   if (obj5) {
6308     res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p__GPContext, 0 |  0 );
6309     if (!SWIG_IsOK(res6)) {
6310       SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gp_filesystem_put_file" "', argument " "6"" of type '" "GPContext *""'");
6311     }
6312     arg6 = (GPContext *)(argp6);
6313   }
6314   result = (int)gp_filesystem_put_file(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6);
6315   resultobj = SWIG_From_int((int)(result));
6316   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6317   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6318   return resultobj;
6319 fail:
6320   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6321   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6322   return NULL;
6323 }
6324 
6325 
_wrap_gp_filesystem_delete_all(PyObject * self,PyObject * args)6326 SWIGINTERN PyObject *_wrap_gp_filesystem_delete_all(PyObject *self, PyObject *args) {
6327   PyObject *resultobj = 0;
6328   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6329   char *arg2 = (char *) 0 ;
6330   GPContext *arg3 = (GPContext *) 0 ;
6331   void *argp1 = 0 ;
6332   int res1 = 0 ;
6333   int res2 ;
6334   char *buf2 = 0 ;
6335   int alloc2 = 0 ;
6336   void *argp3 = 0 ;
6337   int res3 = 0 ;
6338   PyObject * obj0 = 0 ;
6339   PyObject * obj1 = 0 ;
6340   PyObject * obj2 = 0 ;
6341   int result;
6342 
6343   {
6344     arg3 = NULL;
6345   }
6346   if (!PyArg_UnpackTuple(args, "gp_filesystem_delete_all", 2, 3, &obj0, &obj1, &obj2)) SWIG_fail;
6347   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6348   if (!SWIG_IsOK(res1)) {
6349     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_delete_all" "', argument " "1"" of type '" "CameraFilesystem *""'");
6350   }
6351   arg1 = (CameraFilesystem *)(argp1);
6352   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6353   if (!SWIG_IsOK(res2)) {
6354     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_delete_all" "', argument " "2"" of type '" "char const *""'");
6355   }
6356   arg2 = (char *)(buf2);
6357   if (obj2) {
6358     res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__GPContext, 0 |  0 );
6359     if (!SWIG_IsOK(res3)) {
6360       SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_delete_all" "', argument " "3"" of type '" "GPContext *""'");
6361     }
6362     arg3 = (GPContext *)(argp3);
6363   }
6364   result = (int)gp_filesystem_delete_all(arg1,(char const *)arg2,arg3);
6365   resultobj = SWIG_From_int((int)(result));
6366   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6367   return resultobj;
6368 fail:
6369   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6370   return NULL;
6371 }
6372 
6373 
_wrap_gp_filesystem_make_dir(PyObject * self,PyObject * args)6374 SWIGINTERN PyObject *_wrap_gp_filesystem_make_dir(PyObject *self, PyObject *args) {
6375   PyObject *resultobj = 0;
6376   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6377   char *arg2 = (char *) 0 ;
6378   char *arg3 = (char *) 0 ;
6379   GPContext *arg4 = (GPContext *) 0 ;
6380   void *argp1 = 0 ;
6381   int res1 = 0 ;
6382   int res2 ;
6383   char *buf2 = 0 ;
6384   int alloc2 = 0 ;
6385   int res3 ;
6386   char *buf3 = 0 ;
6387   int alloc3 = 0 ;
6388   void *argp4 = 0 ;
6389   int res4 = 0 ;
6390   PyObject * obj0 = 0 ;
6391   PyObject * obj1 = 0 ;
6392   PyObject * obj2 = 0 ;
6393   PyObject * obj3 = 0 ;
6394   int result;
6395 
6396   {
6397     arg4 = NULL;
6398   }
6399   if (!PyArg_UnpackTuple(args, "gp_filesystem_make_dir", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
6400   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6401   if (!SWIG_IsOK(res1)) {
6402     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_make_dir" "', argument " "1"" of type '" "CameraFilesystem *""'");
6403   }
6404   arg1 = (CameraFilesystem *)(argp1);
6405   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6406   if (!SWIG_IsOK(res2)) {
6407     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_make_dir" "', argument " "2"" of type '" "char const *""'");
6408   }
6409   arg2 = (char *)(buf2);
6410   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
6411   if (!SWIG_IsOK(res3)) {
6412     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_make_dir" "', argument " "3"" of type '" "char const *""'");
6413   }
6414   arg3 = (char *)(buf3);
6415   if (obj3) {
6416     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
6417     if (!SWIG_IsOK(res4)) {
6418       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_make_dir" "', argument " "4"" of type '" "GPContext *""'");
6419     }
6420     arg4 = (GPContext *)(argp4);
6421   }
6422   result = (int)gp_filesystem_make_dir(arg1,(char const *)arg2,(char const *)arg3,arg4);
6423   resultobj = SWIG_From_int((int)(result));
6424   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6425   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6426   return resultobj;
6427 fail:
6428   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6429   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6430   return NULL;
6431 }
6432 
6433 
_wrap_gp_filesystem_remove_dir(PyObject * self,PyObject * args)6434 SWIGINTERN PyObject *_wrap_gp_filesystem_remove_dir(PyObject *self, PyObject *args) {
6435   PyObject *resultobj = 0;
6436   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6437   char *arg2 = (char *) 0 ;
6438   char *arg3 = (char *) 0 ;
6439   GPContext *arg4 = (GPContext *) 0 ;
6440   void *argp1 = 0 ;
6441   int res1 = 0 ;
6442   int res2 ;
6443   char *buf2 = 0 ;
6444   int alloc2 = 0 ;
6445   int res3 ;
6446   char *buf3 = 0 ;
6447   int alloc3 = 0 ;
6448   void *argp4 = 0 ;
6449   int res4 = 0 ;
6450   PyObject * obj0 = 0 ;
6451   PyObject * obj1 = 0 ;
6452   PyObject * obj2 = 0 ;
6453   PyObject * obj3 = 0 ;
6454   int result;
6455 
6456   {
6457     arg4 = NULL;
6458   }
6459   if (!PyArg_UnpackTuple(args, "gp_filesystem_remove_dir", 3, 4, &obj0, &obj1, &obj2, &obj3)) SWIG_fail;
6460   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6461   if (!SWIG_IsOK(res1)) {
6462     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_remove_dir" "', argument " "1"" of type '" "CameraFilesystem *""'");
6463   }
6464   arg1 = (CameraFilesystem *)(argp1);
6465   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6466   if (!SWIG_IsOK(res2)) {
6467     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gp_filesystem_remove_dir" "', argument " "2"" of type '" "char const *""'");
6468   }
6469   arg2 = (char *)(buf2);
6470   res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
6471   if (!SWIG_IsOK(res3)) {
6472     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gp_filesystem_remove_dir" "', argument " "3"" of type '" "char const *""'");
6473   }
6474   arg3 = (char *)(buf3);
6475   if (obj3) {
6476     res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__GPContext, 0 |  0 );
6477     if (!SWIG_IsOK(res4)) {
6478       SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gp_filesystem_remove_dir" "', argument " "4"" of type '" "GPContext *""'");
6479     }
6480     arg4 = (GPContext *)(argp4);
6481   }
6482   result = (int)gp_filesystem_remove_dir(arg1,(char const *)arg2,(char const *)arg3,arg4);
6483   resultobj = SWIG_From_int((int)(result));
6484   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6485   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6486   return resultobj;
6487 fail:
6488   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6489   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6490   return NULL;
6491 }
6492 
6493 
_wrap_gp_filesystem_dump(PyObject * self,PyObject * args)6494 SWIGINTERN PyObject *_wrap_gp_filesystem_dump(PyObject *self, PyObject *args) {
6495   PyObject *resultobj = 0;
6496   CameraFilesystem *arg1 = (CameraFilesystem *) 0 ;
6497   void *argp1 = 0 ;
6498   int res1 = 0 ;
6499   PyObject * obj0 = 0 ;
6500   int result;
6501 
6502   if (!PyArg_UnpackTuple(args, "gp_filesystem_dump", 1, 1, &obj0)) SWIG_fail;
6503   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CameraFilesystem, 0 |  0 );
6504   if (!SWIG_IsOK(res1)) {
6505     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gp_filesystem_dump" "', argument " "1"" of type '" "CameraFilesystem *""'");
6506   }
6507   arg1 = (CameraFilesystem *)(argp1);
6508   result = (int)gp_filesystem_dump(arg1);
6509   resultobj = SWIG_From_int((int)(result));
6510   return resultobj;
6511 fail:
6512   return NULL;
6513 }
6514 
6515 
6516 static PyMethodDef SwigMethods[] = {
6517 	 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
6518 	 { "SWIG_PyStaticMethod_New", SWIG_PyStaticMethod_New, METH_O, NULL},
6519 	 { "gp_filesystem_new", _wrap_gp_filesystem_new, METH_VARARGS, "\n"
6520 		"gp_filesystem_new() -> int\n"
6521 		"Create a new filesystem struct.  \n"
6522 		"\n"
6523 		"Parameters\n"
6524 		"----------\n"
6525 		"* `fs` :  \n"
6526 		"    a pointer to a CameraFilesystem  \n"
6527 		"\n"
6528 		"Creates a new empty CameraFilesystem  \n"
6529 		"\n"
6530 		"Returns\n"
6531 		"-------\n"
6532 		"a gphoto2 error code.\n"
6533 		""},
6534 	 { "gp_filesystem_append", _wrap_gp_filesystem_append, METH_VARARGS, "\n"
6535 		"gp_filesystem_append(fs, folder, filename, context) -> int\n"
6536 		"\n"
6537 		"Parameters\n"
6538 		"----------\n"
6539 		"fs: gphoto2.CameraFilesystem\n"
6540 		"folder: str\n"
6541 		"filename: str\n"
6542 		"context: gphoto2.Context (default=None)\n"
6543 		"\n"
6544 		""},
6545 	 { "gp_filesystem_set_info_noop", _wrap_gp_filesystem_set_info_noop, METH_VARARGS, "\n"
6546 		"gp_filesystem_set_info_noop(fs, folder, filename, info, context) -> int\n"
6547 		"\n"
6548 		"Parameters\n"
6549 		"----------\n"
6550 		"fs: gphoto2.CameraFilesystem\n"
6551 		"folder: str\n"
6552 		"filename: str\n"
6553 		"info: gphoto2.CameraFileInfo\n"
6554 		"context: gphoto2.Context (default=None)\n"
6555 		"\n"
6556 		"Store the file information in the virtual fs.  \n"
6557 		"\n"
6558 		"Parameters\n"
6559 		"----------\n"
6560 		"* `fs` :  \n"
6561 		"    a CameraFilesystem  \n"
6562 		"* `folder` :  \n"
6563 		"    the foldername  \n"
6564 		"* `info` :  \n"
6565 		"    the CameraFileInfo to store  \n"
6566 		"* `context` :  \n"
6567 		"    a GPContext  \n"
6568 		"\n"
6569 		"In contrast to gp_filesystem_set_info, gp_filesystem_set_info_noop will\n"
6570 		"only change the file information in the fs. Typically, camera drivers\n"
6571 		"will use this function in case they get file information \"for free\" on\n"
6572 		"gp_camera_capture or gp_camera_folder_list_files.  \n"
6573 		"\n"
6574 		"Returns\n"
6575 		"-------\n"
6576 		"a gphoto2 error code\n"
6577 		""},
6578 	 { "gp_filesystem_set_file_noop", _wrap_gp_filesystem_set_file_noop, METH_VARARGS, "\n"
6579 		"gp_filesystem_set_file_noop(fs, folder, filename, type, file, context) -> int\n"
6580 		"\n"
6581 		"Parameters\n"
6582 		"----------\n"
6583 		"fs: gphoto2.CameraFilesystem\n"
6584 		"folder: str\n"
6585 		"filename: str\n"
6586 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
6587 		"file: gphoto2.CameraFile\n"
6588 		"context: gphoto2.Context (default=None)\n"
6589 		"\n"
6590 		"Attach file content to a specified file.  \n"
6591 		"\n"
6592 		"Parameters\n"
6593 		"----------\n"
6594 		"* `fs` :  \n"
6595 		"    a CameraFilesystem  \n"
6596 		"* `folder` :  \n"
6597 		"    a folder in the filesystem  \n"
6598 		"* `file` :  \n"
6599 		"    a CameraFile  \n"
6600 		"* `context` :  \n"
6601 		"    a GPContext  \n"
6602 		"\n"
6603 		"Tells the fs about a file. Typically, camera drivers will call this\n"
6604 		"function in case they get information about a file (i.e. preview) \"for\n"
6605 		"free\" on gp_camera_capture() or gp_camera_folder_list_files().  \n"
6606 		"\n"
6607 		"Returns\n"
6608 		"-------\n"
6609 		"a gphoto2 error code.\n"
6610 		""},
6611 	 { "gp_filesystem_delete_file_noop", _wrap_gp_filesystem_delete_file_noop, METH_VARARGS, "\n"
6612 		"gp_filesystem_delete_file_noop(fs, folder, filename, context) -> int\n"
6613 		"\n"
6614 		"Parameters\n"
6615 		"----------\n"
6616 		"fs: gphoto2.CameraFilesystem\n"
6617 		"folder: str\n"
6618 		"filename: str\n"
6619 		"context: gphoto2.Context (default=None)\n"
6620 		"\n"
6621 		"Delete a virtal file from a folder in the filesystem.  \n"
6622 		"\n"
6623 		"Parameters\n"
6624 		"----------\n"
6625 		"* `fs` :  \n"
6626 		"    a CameraFilesystem  \n"
6627 		"* `folder` :  \n"
6628 		"    a folder in which to delete the file  \n"
6629 		"* `filename` :  \n"
6630 		"    the name of the file to delete  \n"
6631 		"* `context` :  \n"
6632 		"    a GPContext  \n"
6633 		"\n"
6634 		"Remove a file from the filesystem. Compared to\n"
6635 		"gp_filesystem_delete_file() this just removes the file from the\n"
6636 		"libgphoto2 view of the filesystem, but does not call the camera driver\n"
6637 		"to delete it from the physical device.  \n"
6638 		"\n"
6639 		"Returns\n"
6640 		"-------\n"
6641 		"a gphoto2 error code.\n"
6642 		""},
6643 	 { "gp_filesystem_reset", _wrap_gp_filesystem_reset, METH_VARARGS, "\n"
6644 		"gp_filesystem_reset(fs) -> int\n"
6645 		"\n"
6646 		"Parameters\n"
6647 		"----------\n"
6648 		"fs: gphoto2.CameraFilesystem\n"
6649 		"\n"
6650 		"Clear the filesystem.  \n"
6651 		"\n"
6652 		"Parameters\n"
6653 		"----------\n"
6654 		"* `fs` :  \n"
6655 		"    the filesystem to be cleared  \n"
6656 		"\n"
6657 		"Resets the filesystem. All cached information including the folder tree\n"
6658 		"will get lost and will be queried again on demand.  \n"
6659 		"\n"
6660 		"Returns\n"
6661 		"-------\n"
6662 		"a gphoto2 error code.\n"
6663 		""},
6664 	 { "gp_filesystem_count", _wrap_gp_filesystem_count, METH_VARARGS, "\n"
6665 		"gp_filesystem_count(fs, folder, context) -> int\n"
6666 		"\n"
6667 		"Parameters\n"
6668 		"----------\n"
6669 		"fs: gphoto2.CameraFilesystem\n"
6670 		"folder: str\n"
6671 		"context: gphoto2.Context (default=None)\n"
6672 		"\n"
6673 		"Count files a folder of a filesystem.  \n"
6674 		"\n"
6675 		"Parameters\n"
6676 		"----------\n"
6677 		"* `fs` :  \n"
6678 		"    a CameraFilesystem  \n"
6679 		"* `folder` :  \n"
6680 		"    a folder in which to count the files  \n"
6681 		"* `context` :  \n"
6682 		"    a GPContext  \n"
6683 		"\n"
6684 		"Counts the files in the folder.  \n"
6685 		"\n"
6686 		"Returns\n"
6687 		"-------\n"
6688 		"The number of files in the folder or a gphoto2 error code.\n"
6689 		""},
6690 	 { "gp_filesystem_name", _wrap_gp_filesystem_name, METH_VARARGS, "\n"
6691 		"gp_filesystem_name(fs, folder, filenumber, context) -> int\n"
6692 		"\n"
6693 		"Parameters\n"
6694 		"----------\n"
6695 		"fs: gphoto2.CameraFilesystem\n"
6696 		"folder: str\n"
6697 		"filenumber: int\n"
6698 		"context: gphoto2.Context (default=None)\n"
6699 		"\n"
6700 		"Lookup the filename of an indexed file within a folder.  \n"
6701 		"\n"
6702 		"Parameters\n"
6703 		"----------\n"
6704 		"* `fs` :  \n"
6705 		"    a CameraFilesystem  \n"
6706 		"* `folder` :  \n"
6707 		"    the folder where to look up the file with the filenumber  \n"
6708 		"* `filenumber` :  \n"
6709 		"    the number of the file  \n"
6710 		"* `filename` :  \n"
6711 		"    pointer to a filename where the result is stored  \n"
6712 		"* `context` :  \n"
6713 		"    a GPContext  \n"
6714 		"\n"
6715 		"Looks up the filename of file with given filenumber in given folder. See\n"
6716 		"gp_filesystem_number for exactly the opposite functionality.  \n"
6717 		"\n"
6718 		"Returns\n"
6719 		"-------\n"
6720 		"a gphoto2 error code.\n"
6721 		""},
6722 	 { "gp_filesystem_get_folder", _wrap_gp_filesystem_get_folder, METH_VARARGS, "\n"
6723 		"gp_filesystem_get_folder(fs, filename, context) -> int\n"
6724 		"\n"
6725 		"Parameters\n"
6726 		"----------\n"
6727 		"fs: gphoto2.CameraFilesystem\n"
6728 		"filename: str\n"
6729 		"context: gphoto2.Context (default=None)\n"
6730 		"\n"
6731 		"Search a folder that contains a given filename.  \n"
6732 		"\n"
6733 		"Parameters\n"
6734 		"----------\n"
6735 		"* `fs` :  \n"
6736 		"    a CameraFilesystem  \n"
6737 		"* `filename` :  \n"
6738 		"    the name of the file to search in the fs  \n"
6739 		"* `folder` :  \n"
6740 		"    pointer to value where the string is stored in  \n"
6741 		"* `context` :  \n"
6742 		"    a GPContext  \n"
6743 		"\n"
6744 		"Searches a file called filename in the fs and returns the first\n"
6745 		"occurrency. This functionality is needed for camera drivers that cannot\n"
6746 		"figure out where a file gets created after capturing an image although\n"
6747 		"the name of the image is known. Usually, those drivers will call\n"
6748 		"gp_filesystem_reset in order to tell the fs that something has changed\n"
6749 		"and then gp_filesystem_get_folder in order to find the file.  \n"
6750 		"\n"
6751 		"Note that you get a reference to the string stored in the filesystem\n"
6752 		"structure, so do not free it yourself.  \n"
6753 		"\n"
6754 		"Returns\n"
6755 		"-------\n"
6756 		"a gphoto2 error code.\n"
6757 		""},
6758 	 { "gp_filesystem_number", _wrap_gp_filesystem_number, METH_VARARGS, "\n"
6759 		"gp_filesystem_number(fs, folder, filename, context) -> int\n"
6760 		"\n"
6761 		"Parameters\n"
6762 		"----------\n"
6763 		"fs: gphoto2.CameraFilesystem\n"
6764 		"folder: str\n"
6765 		"filename: str\n"
6766 		"context: gphoto2.Context (default=None)\n"
6767 		"\n"
6768 		"Get the index of a file in specified folder.  \n"
6769 		"\n"
6770 		"Parameters\n"
6771 		"----------\n"
6772 		"* `fs` :  \n"
6773 		"    a CameraFilesystem  \n"
6774 		"* `folder` :  \n"
6775 		"    the folder where to look for file called filename  \n"
6776 		"* `filename` :  \n"
6777 		"    the file to look for  \n"
6778 		"* `context` :  \n"
6779 		"    a GPContext  \n"
6780 		"\n"
6781 		"Looks for a file called filename in the given folder. See\n"
6782 		"gp_filesystem_name for exactly the opposite functionality.  \n"
6783 		"\n"
6784 		"Returns\n"
6785 		"-------\n"
6786 		"a gphoto2 error code.\n"
6787 		""},
6788 	 { "gp_filesystem_list_files", _wrap_gp_filesystem_list_files, METH_VARARGS, "\n"
6789 		"gp_filesystem_list_files(fs, folder, context) -> int\n"
6790 		"\n"
6791 		"Parameters\n"
6792 		"----------\n"
6793 		"fs: gphoto2.CameraFilesystem\n"
6794 		"folder: str\n"
6795 		"context: gphoto2.Context (default=None)\n"
6796 		"\n"
6797 		"Get the list of files in a folder.  \n"
6798 		"\n"
6799 		"Parameters\n"
6800 		"----------\n"
6801 		"* `fs` :  \n"
6802 		"    a CameraFilesystem  \n"
6803 		"* `folder` :  \n"
6804 		"    a folder of which a file list should be generated  \n"
6805 		"* `list` :  \n"
6806 		"    a CameraList where to put the list of files into  \n"
6807 		"* `context` :  \n"
6808 		"    a GPContext  \n"
6809 		"\n"
6810 		"Lists the files in folder using either cached values or (if there aren't\n"
6811 		"any) the file_list_func which (hopefully) has been previously supplied.  \n"
6812 		"\n"
6813 		"Returns\n"
6814 		"-------\n"
6815 		"a gphoto2 error code.\n"
6816 		""},
6817 	 { "gp_filesystem_list_folders", _wrap_gp_filesystem_list_folders, METH_VARARGS, "\n"
6818 		"gp_filesystem_list_folders(fs, folder, context) -> int\n"
6819 		"\n"
6820 		"Parameters\n"
6821 		"----------\n"
6822 		"fs: gphoto2.CameraFilesystem\n"
6823 		"folder: str\n"
6824 		"context: gphoto2.Context (default=None)\n"
6825 		"\n"
6826 		"List all subfolders within a filesystem folder.  \n"
6827 		"\n"
6828 		"Parameters\n"
6829 		"----------\n"
6830 		"* `fs` :  \n"
6831 		"    a CameraFilesystem  \n"
6832 		"* `folder` :  \n"
6833 		"    a folder  \n"
6834 		"* `list` :  \n"
6835 		"    a CameraList where subfolders should be listed  \n"
6836 		"* `context` :  \n"
6837 		"    a GPContext  \n"
6838 		"\n"
6839 		"Generates a list of subfolders of the supplied folder either using\n"
6840 		"cached values (if there are any) or the folder_list_func if it has been\n"
6841 		"supplied previously. If not, it is assumed that only a root folder\n"
6842 		"exists (which is the case for many cameras).  \n"
6843 		"\n"
6844 		"Returns\n"
6845 		"-------\n"
6846 		"a gphoto2 error code.\n"
6847 		""},
6848 	 { "gp_filesystem_get_info", _wrap_gp_filesystem_get_info, METH_VARARGS, "\n"
6849 		"gp_filesystem_get_info(fs, folder, filename, context) -> int\n"
6850 		"\n"
6851 		"Parameters\n"
6852 		"----------\n"
6853 		"fs: gphoto2.CameraFilesystem\n"
6854 		"folder: str\n"
6855 		"filename: str\n"
6856 		"context: gphoto2.Context (default=None)\n"
6857 		"\n"
6858 		"Get information about the specified file.  \n"
6859 		"\n"
6860 		"Parameters\n"
6861 		"----------\n"
6862 		"* `fs` :  \n"
6863 		"    a CameraFilesystem  \n"
6864 		"* `folder` :  \n"
6865 		"    the folder that contains the file  \n"
6866 		"* `filename` :  \n"
6867 		"    the filename  \n"
6868 		"* `info` :  \n"
6869 		"    pointer to CameraFileInfo that receives the information  \n"
6870 		"* `context` :  \n"
6871 		"    a GPContext  \n"
6872 		"\n"
6873 		"Returns\n"
6874 		"-------\n"
6875 		"a gphoto2 error code.\n"
6876 		""},
6877 	 { "gp_filesystem_set_info", _wrap_gp_filesystem_set_info, METH_VARARGS, "\n"
6878 		"gp_filesystem_set_info(fs, folder, filename, info, context) -> int\n"
6879 		"\n"
6880 		"Parameters\n"
6881 		"----------\n"
6882 		"fs: gphoto2.CameraFilesystem\n"
6883 		"folder: str\n"
6884 		"filename: str\n"
6885 		"info: gphoto2.CameraFileInfo\n"
6886 		"context: gphoto2.Context (default=None)\n"
6887 		"\n"
6888 		"Set information about a file.  \n"
6889 		"\n"
6890 		"Parameters\n"
6891 		"----------\n"
6892 		"* `fs` :  \n"
6893 		"    a CameraFilesystem  \n"
6894 		"* `folder` :  \n"
6895 		"    foldername where the file resides  \n"
6896 		"* `filename` :  \n"
6897 		"    the files name  \n"
6898 		"* `info` :  \n"
6899 		"    the CameraFileInfo to set  \n"
6900 		"* `context` :  \n"
6901 		"    a GPContext  \n"
6902 		"\n"
6903 		"Sets information about a file in the camera.  \n"
6904 		"\n"
6905 		"Returns\n"
6906 		"-------\n"
6907 		"a gphoto2 error code.\n"
6908 		""},
6909 	 { "gp_filesystem_get_file", _wrap_gp_filesystem_get_file, METH_VARARGS, "\n"
6910 		"gp_filesystem_get_file(fs, folder, filename, type, file, context) -> int\n"
6911 		"\n"
6912 		"Parameters\n"
6913 		"----------\n"
6914 		"fs: gphoto2.CameraFilesystem\n"
6915 		"folder: str\n"
6916 		"filename: str\n"
6917 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
6918 		"file: gphoto2.CameraFile\n"
6919 		"context: gphoto2.Context (default=None)\n"
6920 		"\n"
6921 		"Get file data from the filesystem.  \n"
6922 		"\n"
6923 		"Parameters\n"
6924 		"----------\n"
6925 		"* `fs` :  \n"
6926 		"    a CameraFilesystem  \n"
6927 		"* `folder` :  \n"
6928 		"    the folder in which the file can be found  \n"
6929 		"* `filename` :  \n"
6930 		"    the name of the file to download  \n"
6931 		"* `type` :  \n"
6932 		"    the type of the file  \n"
6933 		"* `file` :  \n"
6934 		"    the file that receives the data  \n"
6935 		"* `context` :  \n"
6936 		"    a GPContext  \n"
6937 		"\n"
6938 		"Downloads the file called filename from the folder using the\n"
6939 		"get_file_func if such a function has been previously supplied. If the\n"
6940 		"file has been previously downloaded, the file is retrieved from cache.\n"
6941 		"The result is stored in the passed file structure.  \n"
6942 		"\n"
6943 		"Returns\n"
6944 		"-------\n"
6945 		"a gphoto2 error code.\n"
6946 		""},
6947 	 { "gp_filesystem_read_file", _wrap_gp_filesystem_read_file, METH_VARARGS, "\n"
6948 		"gp_filesystem_read_file(fs, folder, filename, type, offset, buf, size, context) -> int\n"
6949 		"\n"
6950 		"Parameters\n"
6951 		"----------\n"
6952 		"fs: gphoto2.CameraFilesystem\n"
6953 		"folder: str\n"
6954 		"filename: str\n"
6955 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
6956 		"offset: int\n"
6957 		"buf: char *\n"
6958 		"size: uint64_t *\n"
6959 		"context: gphoto2.Context (default=None)\n"
6960 		"\n"
6961 		"Get partial file data from the filesystem.  \n"
6962 		"\n"
6963 		"Parameters\n"
6964 		"----------\n"
6965 		"* `fs` :  \n"
6966 		"    a CameraFilesystem  \n"
6967 		"* `folder` :  \n"
6968 		"    the folder in which the file can be found  \n"
6969 		"* `filename` :  \n"
6970 		"    the name of the file to download  \n"
6971 		"* `type` :  \n"
6972 		"    the type of the file  \n"
6973 		"* `offset` :  \n"
6974 		"    the offset where the data starts  \n"
6975 		"* `buf` :  \n"
6976 		"    the targetbuffer where the data will be put  \n"
6977 		"* `size` :  \n"
6978 		"    the size to read and that was read into the buffer  \n"
6979 		"* `context` :  \n"
6980 		"    a GPContext  \n"
6981 		"\n"
6982 		"Downloads the file called filename from the folder using the\n"
6983 		"read_file_func if such a function has been previously supplied. If the\n"
6984 		"file has been previously downloaded, the file is retrieved from cache.  \n"
6985 		"\n"
6986 		"The file is read partially into the passed buffer. The read starts at\n"
6987 		"offset on the device and goes for at most size bytes. Reading over the\n"
6988 		"end of the file might give errors, so get the maximum file size via an\n"
6989 		"info function before.  \n"
6990 		"\n"
6991 		"Returns\n"
6992 		"-------\n"
6993 		"a gphoto2 error code.\n"
6994 		""},
6995 	 { "gp_filesystem_delete_file", _wrap_gp_filesystem_delete_file, METH_VARARGS, "\n"
6996 		"gp_filesystem_delete_file(fs, folder, filename, context) -> int\n"
6997 		"\n"
6998 		"Parameters\n"
6999 		"----------\n"
7000 		"fs: gphoto2.CameraFilesystem\n"
7001 		"folder: str\n"
7002 		"filename: str\n"
7003 		"context: gphoto2.Context (default=None)\n"
7004 		"\n"
7005 		"Delete a file from a folder.  \n"
7006 		"\n"
7007 		"Parameters\n"
7008 		"----------\n"
7009 		"* `fs` :  \n"
7010 		"    a CameraFilesystem  \n"
7011 		"* `folder` :  \n"
7012 		"    a folder in which to delete the file  \n"
7013 		"* `filename` :  \n"
7014 		"    the name of the file to delete  \n"
7015 		"* `context` :  \n"
7016 		"    a GPContext  \n"
7017 		"\n"
7018 		"If a delete_file_func has been supplied to the fs, this function will be\n"
7019 		"called and, if this function returns without error, the file will be\n"
7020 		"removed from the fs.  \n"
7021 		"\n"
7022 		"Returns\n"
7023 		"-------\n"
7024 		"a gphoto2 error code.\n"
7025 		""},
7026 	 { "gp_filesystem_set_funcs", _wrap_gp_filesystem_set_funcs, METH_VARARGS, "\n"
7027 		"gp_filesystem_set_funcs(fs, funcs, data) -> int\n"
7028 		"\n"
7029 		"Parameters\n"
7030 		"----------\n"
7031 		"fs: gphoto2.CameraFilesystem\n"
7032 		"funcs: CameraFilesystemFuncs *\n"
7033 		"data: void *\n"
7034 		"\n"
7035 		"Set all filesystem related function pointers.  \n"
7036 		"\n"
7037 		"Parameters\n"
7038 		"----------\n"
7039 		"* `fs` :  \n"
7040 		"    a CameraFilesystem  \n"
7041 		"* `funcs` :  \n"
7042 		"    pointer to a struct of filesystem functions  \n"
7043 		"* `data` :  \n"
7044 		"    private data  \n"
7045 		"\n"
7046 		"Tells the filesystem which functions to call for camera/filesystem\n"
7047 		"specific functions, like listing, retrieving, uploading files and so on.  \n"
7048 		"\n"
7049 		"Returns\n"
7050 		"-------\n"
7051 		"a gphoto2 error code.\n"
7052 		""},
7053 	 { "gp_filesystem_put_file", _wrap_gp_filesystem_put_file, METH_VARARGS, "\n"
7054 		"gp_filesystem_put_file(fs, folder, filename, type, file, context) -> int\n"
7055 		"\n"
7056 		"Parameters\n"
7057 		"----------\n"
7058 		"fs: gphoto2.CameraFilesystem\n"
7059 		"folder: str\n"
7060 		"filename: str\n"
7061 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
7062 		"file: gphoto2.CameraFile\n"
7063 		"context: gphoto2.Context (default=None)\n"
7064 		"\n"
7065 		"Upload a file to a folder on the device filesystem.  \n"
7066 		"\n"
7067 		"Parameters\n"
7068 		"----------\n"
7069 		"* `fs` :  \n"
7070 		"    a CameraFilesystem  \n"
7071 		"* `folder` :  \n"
7072 		"    the folder where to put the file into  \n"
7073 		"* `file` :  \n"
7074 		"    the file  \n"
7075 		"* `context` :  \n"
7076 		"    a GPContext  \n"
7077 		"\n"
7078 		"Uploads a file to the camera if a put_file_func has been previously\n"
7079 		"supplied to the fs. If the upload is successful, the file will get\n"
7080 		"cached in the fs.  \n"
7081 		"\n"
7082 		"Returns\n"
7083 		"-------\n"
7084 		"a gphoto2 error code.\n"
7085 		""},
7086 	 { "gp_filesystem_delete_all", _wrap_gp_filesystem_delete_all, METH_VARARGS, "\n"
7087 		"gp_filesystem_delete_all(fs, folder, context) -> int\n"
7088 		"\n"
7089 		"Parameters\n"
7090 		"----------\n"
7091 		"fs: gphoto2.CameraFilesystem\n"
7092 		"folder: str\n"
7093 		"context: gphoto2.Context (default=None)\n"
7094 		"\n"
7095 		"Delete all files in specified folder.  \n"
7096 		"\n"
7097 		"Parameters\n"
7098 		"----------\n"
7099 		"* `fs` :  \n"
7100 		"    a CameraFilesystem  \n"
7101 		"* `folder` :  \n"
7102 		"    the folder in which to delete all files  \n"
7103 		"* `context` :  \n"
7104 		"    a GPContext  \n"
7105 		"\n"
7106 		"Deletes all files in the given folder from the fs. If the fs has not\n"
7107 		"been supplied with a delete_all_func, it tries to delete the files one\n"
7108 		"by one using the delete_file_func. If that function has not been\n"
7109 		"supplied neither, an error is returned.  \n"
7110 		"\n"
7111 		"Returns\n"
7112 		"-------\n"
7113 		"a gphoto2 error code.\n"
7114 		""},
7115 	 { "gp_filesystem_make_dir", _wrap_gp_filesystem_make_dir, METH_VARARGS, "\n"
7116 		"gp_filesystem_make_dir(fs, folder, name, context) -> int\n"
7117 		"\n"
7118 		"Parameters\n"
7119 		"----------\n"
7120 		"fs: gphoto2.CameraFilesystem\n"
7121 		"folder: str\n"
7122 		"name: str\n"
7123 		"context: gphoto2.Context (default=None)\n"
7124 		"\n"
7125 		"Create a subfolder within a folder.  \n"
7126 		"\n"
7127 		"Parameters\n"
7128 		"----------\n"
7129 		"* `fs` :  \n"
7130 		"    a CameraFilesystem  \n"
7131 		"* `folder` :  \n"
7132 		"    the folder in which the directory should be created  \n"
7133 		"* `name` :  \n"
7134 		"    the name of the directory to be created  \n"
7135 		"* `context` :  \n"
7136 		"    a GPContext  \n"
7137 		"\n"
7138 		"Creates a new directory called name in given folder.  \n"
7139 		"\n"
7140 		"Returns\n"
7141 		"-------\n"
7142 		"a gphoto2 error code\n"
7143 		""},
7144 	 { "gp_filesystem_remove_dir", _wrap_gp_filesystem_remove_dir, METH_VARARGS, "\n"
7145 		"gp_filesystem_remove_dir(fs, folder, name, context) -> int\n"
7146 		"\n"
7147 		"Parameters\n"
7148 		"----------\n"
7149 		"fs: gphoto2.CameraFilesystem\n"
7150 		"folder: str\n"
7151 		"name: str\n"
7152 		"context: gphoto2.Context (default=None)\n"
7153 		"\n"
7154 		"Remove a subfolder from within a folder.  \n"
7155 		"\n"
7156 		"Parameters\n"
7157 		"----------\n"
7158 		"* `fs` :  \n"
7159 		"    a CameraFilesystem  \n"
7160 		"* `folder` :  \n"
7161 		"    the folder in which the directory should be created  \n"
7162 		"* `name` :  \n"
7163 		"    the name of the directory to be created  \n"
7164 		"* `context` :  \n"
7165 		"    a GPContext  \n"
7166 		"\n"
7167 		"Removes a directory called name from the given folder.  \n"
7168 		"\n"
7169 		"Returns\n"
7170 		"-------\n"
7171 		"a gphoto2 error code\n"
7172 		""},
7173 	 { "gp_filesystem_dump", _wrap_gp_filesystem_dump, METH_VARARGS, "\n"
7174 		"gp_filesystem_dump(fs) -> int\n"
7175 		"\n"
7176 		"Parameters\n"
7177 		"----------\n"
7178 		"fs: gphoto2.CameraFilesystem\n"
7179 		"\n"
7180 		"Dump the current filesystem.  \n"
7181 		"\n"
7182 		"Parameters\n"
7183 		"----------\n"
7184 		"* `fs` :  \n"
7185 		"    the CameraFilesystem  \n"
7186 		"\n"
7187 		"Returns\n"
7188 		"-------\n"
7189 		"a gphoto error code  \n"
7190 		"\n"
7191 		"Internal function to dump the current filesystem.\n"
7192 		""},
7193 	 { NULL, NULL, 0, NULL }
7194 };
7195 
7196 static PyMethodDef SwigMethods_proxydocs[] = {
7197 	 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
7198 	 { "SWIG_PyStaticMethod_New", SWIG_PyStaticMethod_New, METH_O, NULL},
7199 	 { "gp_filesystem_new", _wrap_gp_filesystem_new, METH_VARARGS, "\n"
7200 		"gp_filesystem_new() -> int\n"
7201 		"Create a new filesystem struct.  \n"
7202 		"\n"
7203 		"Parameters\n"
7204 		"----------\n"
7205 		"* `fs` :  \n"
7206 		"    a pointer to a CameraFilesystem  \n"
7207 		"\n"
7208 		"Creates a new empty CameraFilesystem  \n"
7209 		"\n"
7210 		"Returns\n"
7211 		"-------\n"
7212 		"a gphoto2 error code.\n"
7213 		""},
7214 	 { "gp_filesystem_append", _wrap_gp_filesystem_append, METH_VARARGS, "\n"
7215 		"gp_filesystem_append(fs, folder, filename, context) -> int\n"
7216 		"\n"
7217 		"Parameters\n"
7218 		"----------\n"
7219 		"fs: gphoto2.CameraFilesystem\n"
7220 		"folder: str\n"
7221 		"filename: str\n"
7222 		"context: gphoto2.Context (default=None)\n"
7223 		"\n"
7224 		""},
7225 	 { "gp_filesystem_set_info_noop", _wrap_gp_filesystem_set_info_noop, METH_VARARGS, "\n"
7226 		"gp_filesystem_set_info_noop(fs, folder, filename, info, context) -> int\n"
7227 		"\n"
7228 		"Parameters\n"
7229 		"----------\n"
7230 		"fs: gphoto2.CameraFilesystem\n"
7231 		"folder: str\n"
7232 		"filename: str\n"
7233 		"info: gphoto2.CameraFileInfo\n"
7234 		"context: gphoto2.Context (default=None)\n"
7235 		"\n"
7236 		"Store the file information in the virtual fs.  \n"
7237 		"\n"
7238 		"Parameters\n"
7239 		"----------\n"
7240 		"* `fs` :  \n"
7241 		"    a CameraFilesystem  \n"
7242 		"* `folder` :  \n"
7243 		"    the foldername  \n"
7244 		"* `info` :  \n"
7245 		"    the CameraFileInfo to store  \n"
7246 		"* `context` :  \n"
7247 		"    a GPContext  \n"
7248 		"\n"
7249 		"In contrast to gp_filesystem_set_info, gp_filesystem_set_info_noop will\n"
7250 		"only change the file information in the fs. Typically, camera drivers\n"
7251 		"will use this function in case they get file information \"for free\" on\n"
7252 		"gp_camera_capture or gp_camera_folder_list_files.  \n"
7253 		"\n"
7254 		"Returns\n"
7255 		"-------\n"
7256 		"a gphoto2 error code\n"
7257 		""},
7258 	 { "gp_filesystem_set_file_noop", _wrap_gp_filesystem_set_file_noop, METH_VARARGS, "\n"
7259 		"gp_filesystem_set_file_noop(fs, folder, filename, type, file, context) -> int\n"
7260 		"\n"
7261 		"Parameters\n"
7262 		"----------\n"
7263 		"fs: gphoto2.CameraFilesystem\n"
7264 		"folder: str\n"
7265 		"filename: str\n"
7266 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
7267 		"file: gphoto2.CameraFile\n"
7268 		"context: gphoto2.Context (default=None)\n"
7269 		"\n"
7270 		"Attach file content to a specified file.  \n"
7271 		"\n"
7272 		"Parameters\n"
7273 		"----------\n"
7274 		"* `fs` :  \n"
7275 		"    a CameraFilesystem  \n"
7276 		"* `folder` :  \n"
7277 		"    a folder in the filesystem  \n"
7278 		"* `file` :  \n"
7279 		"    a CameraFile  \n"
7280 		"* `context` :  \n"
7281 		"    a GPContext  \n"
7282 		"\n"
7283 		"Tells the fs about a file. Typically, camera drivers will call this\n"
7284 		"function in case they get information about a file (i.e. preview) \"for\n"
7285 		"free\" on gp_camera_capture() or gp_camera_folder_list_files().  \n"
7286 		"\n"
7287 		"Returns\n"
7288 		"-------\n"
7289 		"a gphoto2 error code.\n"
7290 		""},
7291 	 { "gp_filesystem_delete_file_noop", _wrap_gp_filesystem_delete_file_noop, METH_VARARGS, "\n"
7292 		"gp_filesystem_delete_file_noop(fs, folder, filename, context) -> int\n"
7293 		"\n"
7294 		"Parameters\n"
7295 		"----------\n"
7296 		"fs: gphoto2.CameraFilesystem\n"
7297 		"folder: str\n"
7298 		"filename: str\n"
7299 		"context: gphoto2.Context (default=None)\n"
7300 		"\n"
7301 		"Delete a virtal file from a folder in the filesystem.  \n"
7302 		"\n"
7303 		"Parameters\n"
7304 		"----------\n"
7305 		"* `fs` :  \n"
7306 		"    a CameraFilesystem  \n"
7307 		"* `folder` :  \n"
7308 		"    a folder in which to delete the file  \n"
7309 		"* `filename` :  \n"
7310 		"    the name of the file to delete  \n"
7311 		"* `context` :  \n"
7312 		"    a GPContext  \n"
7313 		"\n"
7314 		"Remove a file from the filesystem. Compared to\n"
7315 		"gp_filesystem_delete_file() this just removes the file from the\n"
7316 		"libgphoto2 view of the filesystem, but does not call the camera driver\n"
7317 		"to delete it from the physical device.  \n"
7318 		"\n"
7319 		"Returns\n"
7320 		"-------\n"
7321 		"a gphoto2 error code.\n"
7322 		""},
7323 	 { "gp_filesystem_reset", _wrap_gp_filesystem_reset, METH_VARARGS, "\n"
7324 		"gp_filesystem_reset(fs) -> int\n"
7325 		"\n"
7326 		"Parameters\n"
7327 		"----------\n"
7328 		"fs: gphoto2.CameraFilesystem\n"
7329 		"\n"
7330 		"Clear the filesystem.  \n"
7331 		"\n"
7332 		"Parameters\n"
7333 		"----------\n"
7334 		"* `fs` :  \n"
7335 		"    the filesystem to be cleared  \n"
7336 		"\n"
7337 		"Resets the filesystem. All cached information including the folder tree\n"
7338 		"will get lost and will be queried again on demand.  \n"
7339 		"\n"
7340 		"Returns\n"
7341 		"-------\n"
7342 		"a gphoto2 error code.\n"
7343 		""},
7344 	 { "gp_filesystem_count", _wrap_gp_filesystem_count, METH_VARARGS, "\n"
7345 		"gp_filesystem_count(fs, folder, context) -> int\n"
7346 		"\n"
7347 		"Parameters\n"
7348 		"----------\n"
7349 		"fs: gphoto2.CameraFilesystem\n"
7350 		"folder: str\n"
7351 		"context: gphoto2.Context (default=None)\n"
7352 		"\n"
7353 		"Count files a folder of a filesystem.  \n"
7354 		"\n"
7355 		"Parameters\n"
7356 		"----------\n"
7357 		"* `fs` :  \n"
7358 		"    a CameraFilesystem  \n"
7359 		"* `folder` :  \n"
7360 		"    a folder in which to count the files  \n"
7361 		"* `context` :  \n"
7362 		"    a GPContext  \n"
7363 		"\n"
7364 		"Counts the files in the folder.  \n"
7365 		"\n"
7366 		"Returns\n"
7367 		"-------\n"
7368 		"The number of files in the folder or a gphoto2 error code.\n"
7369 		""},
7370 	 { "gp_filesystem_name", _wrap_gp_filesystem_name, METH_VARARGS, "\n"
7371 		"gp_filesystem_name(fs, folder, filenumber, context) -> int\n"
7372 		"\n"
7373 		"Parameters\n"
7374 		"----------\n"
7375 		"fs: gphoto2.CameraFilesystem\n"
7376 		"folder: str\n"
7377 		"filenumber: int\n"
7378 		"context: gphoto2.Context (default=None)\n"
7379 		"\n"
7380 		"Lookup the filename of an indexed file within a folder.  \n"
7381 		"\n"
7382 		"Parameters\n"
7383 		"----------\n"
7384 		"* `fs` :  \n"
7385 		"    a CameraFilesystem  \n"
7386 		"* `folder` :  \n"
7387 		"    the folder where to look up the file with the filenumber  \n"
7388 		"* `filenumber` :  \n"
7389 		"    the number of the file  \n"
7390 		"* `filename` :  \n"
7391 		"    pointer to a filename where the result is stored  \n"
7392 		"* `context` :  \n"
7393 		"    a GPContext  \n"
7394 		"\n"
7395 		"Looks up the filename of file with given filenumber in given folder. See\n"
7396 		"gp_filesystem_number for exactly the opposite functionality.  \n"
7397 		"\n"
7398 		"Returns\n"
7399 		"-------\n"
7400 		"a gphoto2 error code.\n"
7401 		""},
7402 	 { "gp_filesystem_get_folder", _wrap_gp_filesystem_get_folder, METH_VARARGS, "\n"
7403 		"gp_filesystem_get_folder(fs, filename, context) -> int\n"
7404 		"\n"
7405 		"Parameters\n"
7406 		"----------\n"
7407 		"fs: gphoto2.CameraFilesystem\n"
7408 		"filename: str\n"
7409 		"context: gphoto2.Context (default=None)\n"
7410 		"\n"
7411 		"Search a folder that contains a given filename.  \n"
7412 		"\n"
7413 		"Parameters\n"
7414 		"----------\n"
7415 		"* `fs` :  \n"
7416 		"    a CameraFilesystem  \n"
7417 		"* `filename` :  \n"
7418 		"    the name of the file to search in the fs  \n"
7419 		"* `folder` :  \n"
7420 		"    pointer to value where the string is stored in  \n"
7421 		"* `context` :  \n"
7422 		"    a GPContext  \n"
7423 		"\n"
7424 		"Searches a file called filename in the fs and returns the first\n"
7425 		"occurrency. This functionality is needed for camera drivers that cannot\n"
7426 		"figure out where a file gets created after capturing an image although\n"
7427 		"the name of the image is known. Usually, those drivers will call\n"
7428 		"gp_filesystem_reset in order to tell the fs that something has changed\n"
7429 		"and then gp_filesystem_get_folder in order to find the file.  \n"
7430 		"\n"
7431 		"Note that you get a reference to the string stored in the filesystem\n"
7432 		"structure, so do not free it yourself.  \n"
7433 		"\n"
7434 		"Returns\n"
7435 		"-------\n"
7436 		"a gphoto2 error code.\n"
7437 		""},
7438 	 { "gp_filesystem_number", _wrap_gp_filesystem_number, METH_VARARGS, "\n"
7439 		"gp_filesystem_number(fs, folder, filename, context) -> int\n"
7440 		"\n"
7441 		"Parameters\n"
7442 		"----------\n"
7443 		"fs: gphoto2.CameraFilesystem\n"
7444 		"folder: str\n"
7445 		"filename: str\n"
7446 		"context: gphoto2.Context (default=None)\n"
7447 		"\n"
7448 		"Get the index of a file in specified folder.  \n"
7449 		"\n"
7450 		"Parameters\n"
7451 		"----------\n"
7452 		"* `fs` :  \n"
7453 		"    a CameraFilesystem  \n"
7454 		"* `folder` :  \n"
7455 		"    the folder where to look for file called filename  \n"
7456 		"* `filename` :  \n"
7457 		"    the file to look for  \n"
7458 		"* `context` :  \n"
7459 		"    a GPContext  \n"
7460 		"\n"
7461 		"Looks for a file called filename in the given folder. See\n"
7462 		"gp_filesystem_name for exactly the opposite functionality.  \n"
7463 		"\n"
7464 		"Returns\n"
7465 		"-------\n"
7466 		"a gphoto2 error code.\n"
7467 		""},
7468 	 { "gp_filesystem_list_files", _wrap_gp_filesystem_list_files, METH_VARARGS, "\n"
7469 		"gp_filesystem_list_files(fs, folder, context) -> int\n"
7470 		"\n"
7471 		"Parameters\n"
7472 		"----------\n"
7473 		"fs: gphoto2.CameraFilesystem\n"
7474 		"folder: str\n"
7475 		"context: gphoto2.Context (default=None)\n"
7476 		"\n"
7477 		"Get the list of files in a folder.  \n"
7478 		"\n"
7479 		"Parameters\n"
7480 		"----------\n"
7481 		"* `fs` :  \n"
7482 		"    a CameraFilesystem  \n"
7483 		"* `folder` :  \n"
7484 		"    a folder of which a file list should be generated  \n"
7485 		"* `list` :  \n"
7486 		"    a CameraList where to put the list of files into  \n"
7487 		"* `context` :  \n"
7488 		"    a GPContext  \n"
7489 		"\n"
7490 		"Lists the files in folder using either cached values or (if there aren't\n"
7491 		"any) the file_list_func which (hopefully) has been previously supplied.  \n"
7492 		"\n"
7493 		"Returns\n"
7494 		"-------\n"
7495 		"a gphoto2 error code.\n"
7496 		""},
7497 	 { "gp_filesystem_list_folders", _wrap_gp_filesystem_list_folders, METH_VARARGS, "\n"
7498 		"gp_filesystem_list_folders(fs, folder, context) -> int\n"
7499 		"\n"
7500 		"Parameters\n"
7501 		"----------\n"
7502 		"fs: gphoto2.CameraFilesystem\n"
7503 		"folder: str\n"
7504 		"context: gphoto2.Context (default=None)\n"
7505 		"\n"
7506 		"List all subfolders within a filesystem folder.  \n"
7507 		"\n"
7508 		"Parameters\n"
7509 		"----------\n"
7510 		"* `fs` :  \n"
7511 		"    a CameraFilesystem  \n"
7512 		"* `folder` :  \n"
7513 		"    a folder  \n"
7514 		"* `list` :  \n"
7515 		"    a CameraList where subfolders should be listed  \n"
7516 		"* `context` :  \n"
7517 		"    a GPContext  \n"
7518 		"\n"
7519 		"Generates a list of subfolders of the supplied folder either using\n"
7520 		"cached values (if there are any) or the folder_list_func if it has been\n"
7521 		"supplied previously. If not, it is assumed that only a root folder\n"
7522 		"exists (which is the case for many cameras).  \n"
7523 		"\n"
7524 		"Returns\n"
7525 		"-------\n"
7526 		"a gphoto2 error code.\n"
7527 		""},
7528 	 { "gp_filesystem_get_info", _wrap_gp_filesystem_get_info, METH_VARARGS, "\n"
7529 		"gp_filesystem_get_info(fs, folder, filename, context) -> int\n"
7530 		"\n"
7531 		"Parameters\n"
7532 		"----------\n"
7533 		"fs: gphoto2.CameraFilesystem\n"
7534 		"folder: str\n"
7535 		"filename: str\n"
7536 		"context: gphoto2.Context (default=None)\n"
7537 		"\n"
7538 		"Get information about the specified file.  \n"
7539 		"\n"
7540 		"Parameters\n"
7541 		"----------\n"
7542 		"* `fs` :  \n"
7543 		"    a CameraFilesystem  \n"
7544 		"* `folder` :  \n"
7545 		"    the folder that contains the file  \n"
7546 		"* `filename` :  \n"
7547 		"    the filename  \n"
7548 		"* `info` :  \n"
7549 		"    pointer to CameraFileInfo that receives the information  \n"
7550 		"* `context` :  \n"
7551 		"    a GPContext  \n"
7552 		"\n"
7553 		"Returns\n"
7554 		"-------\n"
7555 		"a gphoto2 error code.\n"
7556 		""},
7557 	 { "gp_filesystem_set_info", _wrap_gp_filesystem_set_info, METH_VARARGS, "\n"
7558 		"gp_filesystem_set_info(fs, folder, filename, info, context) -> int\n"
7559 		"\n"
7560 		"Parameters\n"
7561 		"----------\n"
7562 		"fs: gphoto2.CameraFilesystem\n"
7563 		"folder: str\n"
7564 		"filename: str\n"
7565 		"info: gphoto2.CameraFileInfo\n"
7566 		"context: gphoto2.Context (default=None)\n"
7567 		"\n"
7568 		"Set information about a file.  \n"
7569 		"\n"
7570 		"Parameters\n"
7571 		"----------\n"
7572 		"* `fs` :  \n"
7573 		"    a CameraFilesystem  \n"
7574 		"* `folder` :  \n"
7575 		"    foldername where the file resides  \n"
7576 		"* `filename` :  \n"
7577 		"    the files name  \n"
7578 		"* `info` :  \n"
7579 		"    the CameraFileInfo to set  \n"
7580 		"* `context` :  \n"
7581 		"    a GPContext  \n"
7582 		"\n"
7583 		"Sets information about a file in the camera.  \n"
7584 		"\n"
7585 		"Returns\n"
7586 		"-------\n"
7587 		"a gphoto2 error code.\n"
7588 		""},
7589 	 { "gp_filesystem_get_file", _wrap_gp_filesystem_get_file, METH_VARARGS, "\n"
7590 		"gp_filesystem_get_file(fs, folder, filename, type, file, context) -> int\n"
7591 		"\n"
7592 		"Parameters\n"
7593 		"----------\n"
7594 		"fs: gphoto2.CameraFilesystem\n"
7595 		"folder: str\n"
7596 		"filename: str\n"
7597 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
7598 		"file: gphoto2.CameraFile\n"
7599 		"context: gphoto2.Context (default=None)\n"
7600 		"\n"
7601 		"Get file data from the filesystem.  \n"
7602 		"\n"
7603 		"Parameters\n"
7604 		"----------\n"
7605 		"* `fs` :  \n"
7606 		"    a CameraFilesystem  \n"
7607 		"* `folder` :  \n"
7608 		"    the folder in which the file can be found  \n"
7609 		"* `filename` :  \n"
7610 		"    the name of the file to download  \n"
7611 		"* `type` :  \n"
7612 		"    the type of the file  \n"
7613 		"* `file` :  \n"
7614 		"    the file that receives the data  \n"
7615 		"* `context` :  \n"
7616 		"    a GPContext  \n"
7617 		"\n"
7618 		"Downloads the file called filename from the folder using the\n"
7619 		"get_file_func if such a function has been previously supplied. If the\n"
7620 		"file has been previously downloaded, the file is retrieved from cache.\n"
7621 		"The result is stored in the passed file structure.  \n"
7622 		"\n"
7623 		"Returns\n"
7624 		"-------\n"
7625 		"a gphoto2 error code.\n"
7626 		""},
7627 	 { "gp_filesystem_read_file", _wrap_gp_filesystem_read_file, METH_VARARGS, "\n"
7628 		"gp_filesystem_read_file(fs, folder, filename, type, offset, buf, size, context) -> int\n"
7629 		"\n"
7630 		"Parameters\n"
7631 		"----------\n"
7632 		"fs: gphoto2.CameraFilesystem\n"
7633 		"folder: str\n"
7634 		"filename: str\n"
7635 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
7636 		"offset: int\n"
7637 		"buf: char *\n"
7638 		"size: uint64_t *\n"
7639 		"context: gphoto2.Context (default=None)\n"
7640 		"\n"
7641 		"Get partial file data from the filesystem.  \n"
7642 		"\n"
7643 		"Parameters\n"
7644 		"----------\n"
7645 		"* `fs` :  \n"
7646 		"    a CameraFilesystem  \n"
7647 		"* `folder` :  \n"
7648 		"    the folder in which the file can be found  \n"
7649 		"* `filename` :  \n"
7650 		"    the name of the file to download  \n"
7651 		"* `type` :  \n"
7652 		"    the type of the file  \n"
7653 		"* `offset` :  \n"
7654 		"    the offset where the data starts  \n"
7655 		"* `buf` :  \n"
7656 		"    the targetbuffer where the data will be put  \n"
7657 		"* `size` :  \n"
7658 		"    the size to read and that was read into the buffer  \n"
7659 		"* `context` :  \n"
7660 		"    a GPContext  \n"
7661 		"\n"
7662 		"Downloads the file called filename from the folder using the\n"
7663 		"read_file_func if such a function has been previously supplied. If the\n"
7664 		"file has been previously downloaded, the file is retrieved from cache.  \n"
7665 		"\n"
7666 		"The file is read partially into the passed buffer. The read starts at\n"
7667 		"offset on the device and goes for at most size bytes. Reading over the\n"
7668 		"end of the file might give errors, so get the maximum file size via an\n"
7669 		"info function before.  \n"
7670 		"\n"
7671 		"Returns\n"
7672 		"-------\n"
7673 		"a gphoto2 error code.\n"
7674 		""},
7675 	 { "gp_filesystem_delete_file", _wrap_gp_filesystem_delete_file, METH_VARARGS, "\n"
7676 		"gp_filesystem_delete_file(fs, folder, filename, context) -> int\n"
7677 		"\n"
7678 		"Parameters\n"
7679 		"----------\n"
7680 		"fs: gphoto2.CameraFilesystem\n"
7681 		"folder: str\n"
7682 		"filename: str\n"
7683 		"context: gphoto2.Context (default=None)\n"
7684 		"\n"
7685 		"Delete a file from a folder.  \n"
7686 		"\n"
7687 		"Parameters\n"
7688 		"----------\n"
7689 		"* `fs` :  \n"
7690 		"    a CameraFilesystem  \n"
7691 		"* `folder` :  \n"
7692 		"    a folder in which to delete the file  \n"
7693 		"* `filename` :  \n"
7694 		"    the name of the file to delete  \n"
7695 		"* `context` :  \n"
7696 		"    a GPContext  \n"
7697 		"\n"
7698 		"If a delete_file_func has been supplied to the fs, this function will be\n"
7699 		"called and, if this function returns without error, the file will be\n"
7700 		"removed from the fs.  \n"
7701 		"\n"
7702 		"Returns\n"
7703 		"-------\n"
7704 		"a gphoto2 error code.\n"
7705 		""},
7706 	 { "gp_filesystem_set_funcs", _wrap_gp_filesystem_set_funcs, METH_VARARGS, "\n"
7707 		"gp_filesystem_set_funcs(fs, funcs, data) -> int\n"
7708 		"\n"
7709 		"Parameters\n"
7710 		"----------\n"
7711 		"fs: gphoto2.CameraFilesystem\n"
7712 		"funcs: CameraFilesystemFuncs *\n"
7713 		"data: void *\n"
7714 		"\n"
7715 		"Set all filesystem related function pointers.  \n"
7716 		"\n"
7717 		"Parameters\n"
7718 		"----------\n"
7719 		"* `fs` :  \n"
7720 		"    a CameraFilesystem  \n"
7721 		"* `funcs` :  \n"
7722 		"    pointer to a struct of filesystem functions  \n"
7723 		"* `data` :  \n"
7724 		"    private data  \n"
7725 		"\n"
7726 		"Tells the filesystem which functions to call for camera/filesystem\n"
7727 		"specific functions, like listing, retrieving, uploading files and so on.  \n"
7728 		"\n"
7729 		"Returns\n"
7730 		"-------\n"
7731 		"a gphoto2 error code.\n"
7732 		""},
7733 	 { "gp_filesystem_put_file", _wrap_gp_filesystem_put_file, METH_VARARGS, "\n"
7734 		"gp_filesystem_put_file(fs, folder, filename, type, file, context) -> int\n"
7735 		"\n"
7736 		"Parameters\n"
7737 		"----------\n"
7738 		"fs: gphoto2.CameraFilesystem\n"
7739 		"folder: str\n"
7740 		"filename: str\n"
7741 		"type: CameraFileType (gphoto2.GP_FILE_TYPE_PREVIEW etc.)\n"
7742 		"file: gphoto2.CameraFile\n"
7743 		"context: gphoto2.Context (default=None)\n"
7744 		"\n"
7745 		"Upload a file to a folder on the device filesystem.  \n"
7746 		"\n"
7747 		"Parameters\n"
7748 		"----------\n"
7749 		"* `fs` :  \n"
7750 		"    a CameraFilesystem  \n"
7751 		"* `folder` :  \n"
7752 		"    the folder where to put the file into  \n"
7753 		"* `file` :  \n"
7754 		"    the file  \n"
7755 		"* `context` :  \n"
7756 		"    a GPContext  \n"
7757 		"\n"
7758 		"Uploads a file to the camera if a put_file_func has been previously\n"
7759 		"supplied to the fs. If the upload is successful, the file will get\n"
7760 		"cached in the fs.  \n"
7761 		"\n"
7762 		"Returns\n"
7763 		"-------\n"
7764 		"a gphoto2 error code.\n"
7765 		""},
7766 	 { "gp_filesystem_delete_all", _wrap_gp_filesystem_delete_all, METH_VARARGS, "\n"
7767 		"gp_filesystem_delete_all(fs, folder, context) -> int\n"
7768 		"\n"
7769 		"Parameters\n"
7770 		"----------\n"
7771 		"fs: gphoto2.CameraFilesystem\n"
7772 		"folder: str\n"
7773 		"context: gphoto2.Context (default=None)\n"
7774 		"\n"
7775 		"Delete all files in specified folder.  \n"
7776 		"\n"
7777 		"Parameters\n"
7778 		"----------\n"
7779 		"* `fs` :  \n"
7780 		"    a CameraFilesystem  \n"
7781 		"* `folder` :  \n"
7782 		"    the folder in which to delete all files  \n"
7783 		"* `context` :  \n"
7784 		"    a GPContext  \n"
7785 		"\n"
7786 		"Deletes all files in the given folder from the fs. If the fs has not\n"
7787 		"been supplied with a delete_all_func, it tries to delete the files one\n"
7788 		"by one using the delete_file_func. If that function has not been\n"
7789 		"supplied neither, an error is returned.  \n"
7790 		"\n"
7791 		"Returns\n"
7792 		"-------\n"
7793 		"a gphoto2 error code.\n"
7794 		""},
7795 	 { "gp_filesystem_make_dir", _wrap_gp_filesystem_make_dir, METH_VARARGS, "\n"
7796 		"gp_filesystem_make_dir(fs, folder, name, context) -> int\n"
7797 		"\n"
7798 		"Parameters\n"
7799 		"----------\n"
7800 		"fs: gphoto2.CameraFilesystem\n"
7801 		"folder: str\n"
7802 		"name: str\n"
7803 		"context: gphoto2.Context (default=None)\n"
7804 		"\n"
7805 		"Create a subfolder within a folder.  \n"
7806 		"\n"
7807 		"Parameters\n"
7808 		"----------\n"
7809 		"* `fs` :  \n"
7810 		"    a CameraFilesystem  \n"
7811 		"* `folder` :  \n"
7812 		"    the folder in which the directory should be created  \n"
7813 		"* `name` :  \n"
7814 		"    the name of the directory to be created  \n"
7815 		"* `context` :  \n"
7816 		"    a GPContext  \n"
7817 		"\n"
7818 		"Creates a new directory called name in given folder.  \n"
7819 		"\n"
7820 		"Returns\n"
7821 		"-------\n"
7822 		"a gphoto2 error code\n"
7823 		""},
7824 	 { "gp_filesystem_remove_dir", _wrap_gp_filesystem_remove_dir, METH_VARARGS, "\n"
7825 		"gp_filesystem_remove_dir(fs, folder, name, context) -> int\n"
7826 		"\n"
7827 		"Parameters\n"
7828 		"----------\n"
7829 		"fs: gphoto2.CameraFilesystem\n"
7830 		"folder: str\n"
7831 		"name: str\n"
7832 		"context: gphoto2.Context (default=None)\n"
7833 		"\n"
7834 		"Remove a subfolder from within a folder.  \n"
7835 		"\n"
7836 		"Parameters\n"
7837 		"----------\n"
7838 		"* `fs` :  \n"
7839 		"    a CameraFilesystem  \n"
7840 		"* `folder` :  \n"
7841 		"    the folder in which the directory should be created  \n"
7842 		"* `name` :  \n"
7843 		"    the name of the directory to be created  \n"
7844 		"* `context` :  \n"
7845 		"    a GPContext  \n"
7846 		"\n"
7847 		"Removes a directory called name from the given folder.  \n"
7848 		"\n"
7849 		"Returns\n"
7850 		"-------\n"
7851 		"a gphoto2 error code\n"
7852 		""},
7853 	 { "gp_filesystem_dump", _wrap_gp_filesystem_dump, METH_VARARGS, "\n"
7854 		"gp_filesystem_dump(fs) -> int\n"
7855 		"\n"
7856 		"Parameters\n"
7857 		"----------\n"
7858 		"fs: gphoto2.CameraFilesystem\n"
7859 		"\n"
7860 		"Dump the current filesystem.  \n"
7861 		"\n"
7862 		"Parameters\n"
7863 		"----------\n"
7864 		"* `fs` :  \n"
7865 		"    the CameraFilesystem  \n"
7866 		"\n"
7867 		"Returns\n"
7868 		"-------\n"
7869 		"a gphoto error code  \n"
7870 		"\n"
7871 		"Internal function to dump the current filesystem.\n"
7872 		""},
7873 	 { NULL, NULL, 0, NULL }
7874 };
7875 
7876 static SwigPyGetSet _CameraFilesystem___dict___getset = { SwigPyObject_get___dict__, 0 };
7877 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFilesystem_getset[] = {
7878     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
7879 		"_CameraFilesystem\n"
7880 		"The internal camera filesystem structure.  \n"
7881 		"\n"
7882 		"The internals of the CameraFilesystem are only visible to gphoto2. You\n"
7883 		"can only access them using the functions provided by gphoto2.\n"
7884 		"", &_CameraFilesystem___dict___getset },
7885     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
7886 };
7887 
7888 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFilesystem_richcompare(PyObject * self,PyObject * other,int op)7889 SwigPyBuiltin___CameraFilesystem_richcompare(PyObject *self, PyObject *other, int op) {
7890   PyObject *result = NULL;
7891   PyObject *tuple = PyTuple_New(1);
7892   assert(tuple);
7893   PyTuple_SET_ITEM(tuple, 0, other);
7894   Py_XINCREF(other);
7895   if (!result) {
7896     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
7897       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
7898     } else {
7899       result = Py_NotImplemented;
7900       Py_INCREF(result);
7901     }
7902   }
7903   Py_DECREF(tuple);
7904   return result;
7905 }
7906 
7907 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFilesystem_methods[] = {
7908   { NULL, NULL, 0, NULL } /* Sentinel */
7909 };
7910 
7911 static PyHeapTypeObject SwigPyBuiltin___CameraFilesystem_type = {
7912   {
7913 #if PY_VERSION_HEX >= 0x03000000
7914     PyVarObject_HEAD_INIT(NULL, 0)
7915 #else
7916     PyObject_HEAD_INIT(NULL)
7917     0,                                        /* ob_size */
7918 #endif
7919     "gphoto2.filesys._CameraFilesystem",      /* tp_name */
7920     sizeof(SwigPyObject),                     /* tp_basicsize */
7921     0,                                        /* tp_itemsize */
7922     _wrap_delete__CameraFilesystem_destructor_closure,            /* tp_dealloc */
7923     (printfunc) 0,                            /* tp_print */
7924     (getattrfunc) 0,                          /* tp_getattr */
7925     (setattrfunc) 0,                          /* tp_setattr */
7926 #if PY_VERSION_HEX >= 0x03000000
7927     0,                                        /* tp_compare */
7928 #else
7929     (cmpfunc) 0,                              /* tp_compare */
7930 #endif
7931     (reprfunc) 0,                             /* tp_repr */
7932     &SwigPyBuiltin___CameraFilesystem_type.as_number,             /* tp_as_number */
7933     &SwigPyBuiltin___CameraFilesystem_type.as_sequence,           /* tp_as_sequence */
7934     &SwigPyBuiltin___CameraFilesystem_type.as_mapping,            /* tp_as_mapping */
7935     SwigPyObject_hash,                        /* tp_hash */
7936     (ternaryfunc) 0,                          /* tp_call */
7937     (reprfunc) 0,                             /* tp_str */
7938     (getattrofunc) 0,                         /* tp_getattro */
7939     (setattrofunc) 0,                         /* tp_setattro */
7940     &SwigPyBuiltin___CameraFilesystem_type.as_buffer,             /* tp_as_buffer */
7941 #if PY_VERSION_HEX >= 0x03000000
7942     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
7943 #else
7944     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
7945 #endif
7946     "\n"
7947 		"The internal camera filesystem structure.  \n"
7948 		"\n"
7949 		"The internals of the CameraFilesystem are only visible to gphoto2. You\n"
7950 		"can only access them using the functions provided by gphoto2.\n"
7951 		"",/* tp_doc */
7952     (traverseproc) 0,                         /* tp_traverse */
7953     (inquiry) 0,                              /* tp_clear */
7954     SwigPyBuiltin___CameraFilesystem_richcompare,                 /* tp_richcompare */
7955     0,                                        /* tp_weaklistoffset */
7956     (getiterfunc) 0,                          /* tp_iter */
7957     (iternextfunc) 0,                         /* tp_iternext */
7958     SwigPyBuiltin___CameraFilesystem_methods, /* tp_methods */
7959     0,                                        /* tp_members */
7960     SwigPyBuiltin___CameraFilesystem_getset,  /* tp_getset */
7961     0,                                        /* tp_base */
7962     0,                                        /* tp_dict */
7963     (descrgetfunc) 0,                         /* tp_descr_get */
7964     (descrsetfunc) 0,                         /* tp_descr_set */
7965     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
7966     _wrap_new__CameraFilesystem,              /* tp_init */
7967     (allocfunc) 0,                            /* tp_alloc */
7968     (newfunc) 0,                              /* tp_new */
7969     (freefunc) 0,                             /* tp_free */
7970     (inquiry) 0,                              /* tp_is_gc */
7971     (PyObject *) 0,                           /* tp_bases */
7972     (PyObject *) 0,                           /* tp_mro */
7973     (PyObject *) 0,                           /* tp_cache */
7974     (PyObject *) 0,                           /* tp_subclasses */
7975     (PyObject *) 0,                           /* tp_weaklist */
7976     (destructor) 0,                           /* tp_del */
7977     (int) 0,                                  /* tp_version_tag */
7978 #if PY_VERSION_HEX >= 0x03040000
7979     (destructor) 0,                           /* tp_finalize */
7980 #endif
7981 #if PY_VERSION_HEX >= 0x03080000
7982     (vectorcallfunc) 0,                       /* tp_vectorcall */
7983 #endif
7984 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
7985     0,                                        /* tp_print */
7986 #endif
7987 #ifdef COUNT_ALLOCS
7988     (Py_ssize_t) 0,                           /* tp_allocs */
7989     (Py_ssize_t) 0,                           /* tp_frees */
7990     (Py_ssize_t) 0,                           /* tp_maxalloc */
7991     0,                                        /* tp_prev */
7992     0,                                        /* tp_next */
7993 #endif
7994   },
7995 #if PY_VERSION_HEX >= 0x03050000
7996   {
7997     (unaryfunc) 0,                            /* am_await */
7998     (unaryfunc) 0,                            /* am_aiter */
7999     (unaryfunc) 0,                            /* am_anext */
8000   },
8001 #endif
8002   {
8003     (binaryfunc) 0,                           /* nb_add */
8004     (binaryfunc) 0,                           /* nb_subtract */
8005     (binaryfunc) 0,                           /* nb_multiply */
8006 #if PY_VERSION_HEX < 0x03000000
8007     (binaryfunc) 0,                           /* nb_divide */
8008 #endif
8009     (binaryfunc) 0,                           /* nb_remainder */
8010     (binaryfunc) 0,                           /* nb_divmod */
8011     (ternaryfunc) 0,                          /* nb_power */
8012     (unaryfunc) 0,                            /* nb_negative */
8013     (unaryfunc) 0,                            /* nb_positive */
8014     (unaryfunc) 0,                            /* nb_absolute */
8015     (inquiry) 0,                              /* nb_nonzero */
8016     (unaryfunc) 0,                            /* nb_invert */
8017     (binaryfunc) 0,                           /* nb_lshift */
8018     (binaryfunc) 0,                           /* nb_rshift */
8019     (binaryfunc) 0,                           /* nb_and */
8020     (binaryfunc) 0,                           /* nb_xor */
8021     (binaryfunc) 0,                           /* nb_or */
8022 #if PY_VERSION_HEX < 0x03000000
8023     (coercion) 0,                             /* nb_coerce */
8024 #endif
8025     (unaryfunc) 0,                            /* nb_int */
8026 #if PY_VERSION_HEX >= 0x03000000
8027     (void *) 0,                               /* nb_reserved */
8028 #else
8029     (unaryfunc) 0,                            /* nb_long */
8030 #endif
8031     (unaryfunc) 0,                            /* nb_float */
8032 #if PY_VERSION_HEX < 0x03000000
8033     (unaryfunc) 0,                            /* nb_oct */
8034     (unaryfunc) 0,                            /* nb_hex */
8035 #endif
8036     (binaryfunc) 0,                           /* nb_inplace_add */
8037     (binaryfunc) 0,                           /* nb_inplace_subtract */
8038     (binaryfunc) 0,                           /* nb_inplace_multiply */
8039 #if PY_VERSION_HEX < 0x03000000
8040     (binaryfunc) 0,                           /* nb_inplace_divide */
8041 #endif
8042     (binaryfunc) 0,                           /* nb_inplace_remainder */
8043     (ternaryfunc) 0,                          /* nb_inplace_power */
8044     (binaryfunc) 0,                           /* nb_inplace_lshift */
8045     (binaryfunc) 0,                           /* nb_inplace_rshift */
8046     (binaryfunc) 0,                           /* nb_inplace_and */
8047     (binaryfunc) 0,                           /* nb_inplace_xor */
8048     (binaryfunc) 0,                           /* nb_inplace_or */
8049     (binaryfunc) 0,                           /* nb_floor_divide */
8050     (binaryfunc) 0,                           /* nb_true_divide */
8051     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
8052     (binaryfunc) 0,                           /* nb_inplace_true_divide */
8053     (unaryfunc) 0,                            /* nb_index */
8054 #if PY_VERSION_HEX >= 0x03050000
8055     (binaryfunc) 0,                           /* nb_matrix_multiply */
8056     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
8057 #endif
8058   },
8059   {
8060     (lenfunc) 0,                              /* mp_length */
8061     (binaryfunc) 0,                           /* mp_subscript */
8062     (objobjargproc) 0,                        /* mp_ass_subscript */
8063   },
8064   {
8065     (lenfunc) 0,                              /* sq_length */
8066     (binaryfunc) 0,                           /* sq_concat */
8067     (ssizeargfunc) 0,                         /* sq_repeat */
8068     (ssizeargfunc) 0,                         /* sq_item */
8069 #if PY_VERSION_HEX >= 0x03000000
8070     (void *) 0,                               /* was_sq_slice */
8071 #else
8072     (ssizessizeargfunc) 0,                    /* sq_slice */
8073 #endif
8074     (ssizeobjargproc) 0,                      /* sq_ass_item */
8075 #if PY_VERSION_HEX >= 0x03000000
8076     (void *) 0,                               /* was_sq_ass_slice */
8077 #else
8078     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
8079 #endif
8080     (objobjproc) 0,                           /* sq_contains */
8081     (binaryfunc) 0,                           /* sq_inplace_concat */
8082     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
8083   },
8084   {
8085 #if PY_VERSION_HEX < 0x03000000
8086     (readbufferproc) 0,                       /* bf_getreadbuffer */
8087     (writebufferproc) 0,                      /* bf_getwritebuffer */
8088     (segcountproc) 0,                         /* bf_getsegcount */
8089     (charbufferproc) 0,                       /* bf_getcharbuffer */
8090 #endif
8091     (getbufferproc) 0,                        /* bf_getbuffer */
8092     (releasebufferproc) 0,                    /* bf_releasebuffer */
8093   },
8094     (PyObject *) 0,                           /* ht_name */
8095     (PyObject *) 0,                           /* ht_slots */
8096 #if PY_VERSION_HEX >= 0x03030000
8097     (PyObject *) 0,                           /* ht_qualname */
8098     0,                                        /* ht_cached_keys */
8099 #endif
8100 };
8101 
8102 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFilesystem_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFilesystem_type};
8103 
8104 static SwigPyGetSet CameraFileInfoFile_status_getset = { _wrap_CameraFileInfoFile_status_get, 0 };
8105 static SwigPyGetSet CameraFileInfoFile_permissions_getset = { _wrap_CameraFileInfoFile_permissions_get, 0 };
8106 static SwigPyGetSet CameraFileInfoFile___dict___getset = { SwigPyObject_get___dict__, 0 };
8107 static SwigPyGetSet CameraFileInfoFile_size_getset = { _wrap_CameraFileInfoFile_size_get, 0 };
8108 static SwigPyGetSet CameraFileInfoFile_type_getset = { _wrap_CameraFileInfoFile_type_get, 0 };
8109 static SwigPyGetSet CameraFileInfoFile_height_getset = { _wrap_CameraFileInfoFile_height_get, 0 };
8110 static SwigPyGetSet CameraFileInfoFile_mtime_getset = { _wrap_CameraFileInfoFile_mtime_get, 0 };
8111 static SwigPyGetSet CameraFileInfoFile_fields_getset = { _wrap_CameraFileInfoFile_fields_get, 0 };
8112 static SwigPyGetSet CameraFileInfoFile_width_getset = { _wrap_CameraFileInfoFile_width_get, 0 };
8113 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFileInfoFile_getset[] = {
8114     { (char *)"status", SwigPyBuiltin_GetterClosure, 0, (char *)"status", &CameraFileInfoFile_status_getset },
8115     { (char *)"permissions", SwigPyBuiltin_GetterClosure, 0, (char *)"permissions", &CameraFileInfoFile_permissions_getset },
8116     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoFile___dict___getset },
8117     { (char *)"size", SwigPyBuiltin_GetterClosure, 0, (char *)"size", &CameraFileInfoFile_size_getset },
8118     { (char *)"type", SwigPyBuiltin_GetterClosure, 0, (char *)"type", &CameraFileInfoFile_type_getset },
8119     { (char *)"height", SwigPyBuiltin_GetterClosure, 0, (char *)"height", &CameraFileInfoFile_height_getset },
8120     { (char *)"mtime", SwigPyBuiltin_GetterClosure, 0, (char *)"mtime", &CameraFileInfoFile_mtime_getset },
8121     { (char *)"fields", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoFile_fields_getset },
8122     { (char *)"width", SwigPyBuiltin_GetterClosure, 0, (char *)"width", &CameraFileInfoFile_width_getset },
8123     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
8124 };
8125 
8126 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFileInfoFile_richcompare(PyObject * self,PyObject * other,int op)8127 SwigPyBuiltin___CameraFileInfoFile_richcompare(PyObject *self, PyObject *other, int op) {
8128   PyObject *result = NULL;
8129   PyObject *tuple = PyTuple_New(1);
8130   assert(tuple);
8131   PyTuple_SET_ITEM(tuple, 0, other);
8132   Py_XINCREF(other);
8133   if (!result) {
8134     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
8135       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
8136     } else {
8137       result = Py_NotImplemented;
8138       Py_INCREF(result);
8139     }
8140   }
8141   Py_DECREF(tuple);
8142   return result;
8143 }
8144 
8145 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFileInfoFile_methods[] = {
8146   { NULL, NULL, 0, NULL } /* Sentinel */
8147 };
8148 
8149 static PyHeapTypeObject SwigPyBuiltin___CameraFileInfoFile_type = {
8150   {
8151 #if PY_VERSION_HEX >= 0x03000000
8152     PyVarObject_HEAD_INIT(NULL, 0)
8153 #else
8154     PyObject_HEAD_INIT(NULL)
8155     0,                                        /* ob_size */
8156 #endif
8157     "gphoto2.filesys.CameraFileInfoFile",     /* tp_name */
8158     sizeof(SwigPyObject),                     /* tp_basicsize */
8159     0,                                        /* tp_itemsize */
8160     _wrap_delete_CameraFileInfoFile_destructor_closure,           /* tp_dealloc */
8161     (printfunc) 0,                            /* tp_print */
8162     (getattrfunc) 0,                          /* tp_getattr */
8163     (setattrfunc) 0,                          /* tp_setattr */
8164 #if PY_VERSION_HEX >= 0x03000000
8165     0,                                        /* tp_compare */
8166 #else
8167     (cmpfunc) 0,                              /* tp_compare */
8168 #endif
8169     (reprfunc) 0,                             /* tp_repr */
8170     &SwigPyBuiltin___CameraFileInfoFile_type.as_number,           /* tp_as_number */
8171     &SwigPyBuiltin___CameraFileInfoFile_type.as_sequence,         /* tp_as_sequence */
8172     &SwigPyBuiltin___CameraFileInfoFile_type.as_mapping,          /* tp_as_mapping */
8173     SwigPyObject_hash,                        /* tp_hash */
8174     (ternaryfunc) 0,                          /* tp_call */
8175     (reprfunc) 0,                             /* tp_str */
8176     (getattrofunc) 0,                         /* tp_getattro */
8177     (setattrofunc) 0,                         /* tp_setattro */
8178     &SwigPyBuiltin___CameraFileInfoFile_type.as_buffer,           /* tp_as_buffer */
8179 #if PY_VERSION_HEX >= 0x03000000
8180     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
8181 #else
8182     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
8183 #endif
8184     "\n"
8185 		"File information of a regular file.  \n"
8186 		"\n"
8187 		"Contains information a regular file with fields being set depending on\n"
8188 		"the bitmask in the fields member.  \n"
8189 		"\n"
8190 		"C++ includes: gphoto2-filesys.h\n"
8191 		"",/* tp_doc */
8192     (traverseproc) 0,                         /* tp_traverse */
8193     (inquiry) 0,                              /* tp_clear */
8194     SwigPyBuiltin___CameraFileInfoFile_richcompare,               /* tp_richcompare */
8195     0,                                        /* tp_weaklistoffset */
8196     (getiterfunc) 0,                          /* tp_iter */
8197     (iternextfunc) 0,                         /* tp_iternext */
8198     SwigPyBuiltin___CameraFileInfoFile_methods,                   /* tp_methods */
8199     0,                                        /* tp_members */
8200     SwigPyBuiltin___CameraFileInfoFile_getset,/* tp_getset */
8201     0,                                        /* tp_base */
8202     0,                                        /* tp_dict */
8203     (descrgetfunc) 0,                         /* tp_descr_get */
8204     (descrsetfunc) 0,                         /* tp_descr_set */
8205     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
8206     SwigPyBuiltin_BadInit,                    /* tp_init */
8207     (allocfunc) 0,                            /* tp_alloc */
8208     (newfunc) 0,                              /* tp_new */
8209     (freefunc) 0,                             /* tp_free */
8210     (inquiry) 0,                              /* tp_is_gc */
8211     (PyObject *) 0,                           /* tp_bases */
8212     (PyObject *) 0,                           /* tp_mro */
8213     (PyObject *) 0,                           /* tp_cache */
8214     (PyObject *) 0,                           /* tp_subclasses */
8215     (PyObject *) 0,                           /* tp_weaklist */
8216     (destructor) 0,                           /* tp_del */
8217     (int) 0,                                  /* tp_version_tag */
8218 #if PY_VERSION_HEX >= 0x03040000
8219     (destructor) 0,                           /* tp_finalize */
8220 #endif
8221 #if PY_VERSION_HEX >= 0x03080000
8222     (vectorcallfunc) 0,                       /* tp_vectorcall */
8223 #endif
8224 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
8225     0,                                        /* tp_print */
8226 #endif
8227 #ifdef COUNT_ALLOCS
8228     (Py_ssize_t) 0,                           /* tp_allocs */
8229     (Py_ssize_t) 0,                           /* tp_frees */
8230     (Py_ssize_t) 0,                           /* tp_maxalloc */
8231     0,                                        /* tp_prev */
8232     0,                                        /* tp_next */
8233 #endif
8234   },
8235 #if PY_VERSION_HEX >= 0x03050000
8236   {
8237     (unaryfunc) 0,                            /* am_await */
8238     (unaryfunc) 0,                            /* am_aiter */
8239     (unaryfunc) 0,                            /* am_anext */
8240   },
8241 #endif
8242   {
8243     (binaryfunc) 0,                           /* nb_add */
8244     (binaryfunc) 0,                           /* nb_subtract */
8245     (binaryfunc) 0,                           /* nb_multiply */
8246 #if PY_VERSION_HEX < 0x03000000
8247     (binaryfunc) 0,                           /* nb_divide */
8248 #endif
8249     (binaryfunc) 0,                           /* nb_remainder */
8250     (binaryfunc) 0,                           /* nb_divmod */
8251     (ternaryfunc) 0,                          /* nb_power */
8252     (unaryfunc) 0,                            /* nb_negative */
8253     (unaryfunc) 0,                            /* nb_positive */
8254     (unaryfunc) 0,                            /* nb_absolute */
8255     (inquiry) 0,                              /* nb_nonzero */
8256     (unaryfunc) 0,                            /* nb_invert */
8257     (binaryfunc) 0,                           /* nb_lshift */
8258     (binaryfunc) 0,                           /* nb_rshift */
8259     (binaryfunc) 0,                           /* nb_and */
8260     (binaryfunc) 0,                           /* nb_xor */
8261     (binaryfunc) 0,                           /* nb_or */
8262 #if PY_VERSION_HEX < 0x03000000
8263     (coercion) 0,                             /* nb_coerce */
8264 #endif
8265     (unaryfunc) 0,                            /* nb_int */
8266 #if PY_VERSION_HEX >= 0x03000000
8267     (void *) 0,                               /* nb_reserved */
8268 #else
8269     (unaryfunc) 0,                            /* nb_long */
8270 #endif
8271     (unaryfunc) 0,                            /* nb_float */
8272 #if PY_VERSION_HEX < 0x03000000
8273     (unaryfunc) 0,                            /* nb_oct */
8274     (unaryfunc) 0,                            /* nb_hex */
8275 #endif
8276     (binaryfunc) 0,                           /* nb_inplace_add */
8277     (binaryfunc) 0,                           /* nb_inplace_subtract */
8278     (binaryfunc) 0,                           /* nb_inplace_multiply */
8279 #if PY_VERSION_HEX < 0x03000000
8280     (binaryfunc) 0,                           /* nb_inplace_divide */
8281 #endif
8282     (binaryfunc) 0,                           /* nb_inplace_remainder */
8283     (ternaryfunc) 0,                          /* nb_inplace_power */
8284     (binaryfunc) 0,                           /* nb_inplace_lshift */
8285     (binaryfunc) 0,                           /* nb_inplace_rshift */
8286     (binaryfunc) 0,                           /* nb_inplace_and */
8287     (binaryfunc) 0,                           /* nb_inplace_xor */
8288     (binaryfunc) 0,                           /* nb_inplace_or */
8289     (binaryfunc) 0,                           /* nb_floor_divide */
8290     (binaryfunc) 0,                           /* nb_true_divide */
8291     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
8292     (binaryfunc) 0,                           /* nb_inplace_true_divide */
8293     (unaryfunc) 0,                            /* nb_index */
8294 #if PY_VERSION_HEX >= 0x03050000
8295     (binaryfunc) 0,                           /* nb_matrix_multiply */
8296     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
8297 #endif
8298   },
8299   {
8300     (lenfunc) 0,                              /* mp_length */
8301     (binaryfunc) 0,                           /* mp_subscript */
8302     (objobjargproc) 0,                        /* mp_ass_subscript */
8303   },
8304   {
8305     (lenfunc) 0,                              /* sq_length */
8306     (binaryfunc) 0,                           /* sq_concat */
8307     (ssizeargfunc) 0,                         /* sq_repeat */
8308     (ssizeargfunc) 0,                         /* sq_item */
8309 #if PY_VERSION_HEX >= 0x03000000
8310     (void *) 0,                               /* was_sq_slice */
8311 #else
8312     (ssizessizeargfunc) 0,                    /* sq_slice */
8313 #endif
8314     (ssizeobjargproc) 0,                      /* sq_ass_item */
8315 #if PY_VERSION_HEX >= 0x03000000
8316     (void *) 0,                               /* was_sq_ass_slice */
8317 #else
8318     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
8319 #endif
8320     (objobjproc) 0,                           /* sq_contains */
8321     (binaryfunc) 0,                           /* sq_inplace_concat */
8322     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
8323   },
8324   {
8325 #if PY_VERSION_HEX < 0x03000000
8326     (readbufferproc) 0,                       /* bf_getreadbuffer */
8327     (writebufferproc) 0,                      /* bf_getwritebuffer */
8328     (segcountproc) 0,                         /* bf_getsegcount */
8329     (charbufferproc) 0,                       /* bf_getcharbuffer */
8330 #endif
8331     (getbufferproc) 0,                        /* bf_getbuffer */
8332     (releasebufferproc) 0,                    /* bf_releasebuffer */
8333   },
8334     (PyObject *) 0,                           /* ht_name */
8335     (PyObject *) 0,                           /* ht_slots */
8336 #if PY_VERSION_HEX >= 0x03030000
8337     (PyObject *) 0,                           /* ht_qualname */
8338     0,                                        /* ht_cached_keys */
8339 #endif
8340 };
8341 
8342 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFileInfoFile_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoFile_type};
8343 
8344 static SwigPyGetSet CameraFileInfoPreview_status_getset = { _wrap_CameraFileInfoPreview_status_get, 0 };
8345 static SwigPyGetSet CameraFileInfoPreview___dict___getset = { SwigPyObject_get___dict__, 0 };
8346 static SwigPyGetSet CameraFileInfoPreview_size_getset = { _wrap_CameraFileInfoPreview_size_get, 0 };
8347 static SwigPyGetSet CameraFileInfoPreview_type_getset = { _wrap_CameraFileInfoPreview_type_get, 0 };
8348 static SwigPyGetSet CameraFileInfoPreview_height_getset = { _wrap_CameraFileInfoPreview_height_get, 0 };
8349 static SwigPyGetSet CameraFileInfoPreview_fields_getset = { _wrap_CameraFileInfoPreview_fields_get, 0 };
8350 static SwigPyGetSet CameraFileInfoPreview_width_getset = { _wrap_CameraFileInfoPreview_width_get, 0 };
8351 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFileInfoPreview_getset[] = {
8352     { (char *)"status", SwigPyBuiltin_GetterClosure, 0, (char *)"status", &CameraFileInfoPreview_status_getset },
8353     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoPreview___dict___getset },
8354     { (char *)"size", SwigPyBuiltin_GetterClosure, 0, (char *)"size", &CameraFileInfoPreview_size_getset },
8355     { (char *)"type", SwigPyBuiltin_GetterClosure, 0, (char *)"type", &CameraFileInfoPreview_type_getset },
8356     { (char *)"height", SwigPyBuiltin_GetterClosure, 0, (char *)"height", &CameraFileInfoPreview_height_getset },
8357     { (char *)"fields", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoPreview_fields_getset },
8358     { (char *)"width", SwigPyBuiltin_GetterClosure, 0, (char *)"width", &CameraFileInfoPreview_width_getset },
8359     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
8360 };
8361 
8362 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFileInfoPreview_richcompare(PyObject * self,PyObject * other,int op)8363 SwigPyBuiltin___CameraFileInfoPreview_richcompare(PyObject *self, PyObject *other, int op) {
8364   PyObject *result = NULL;
8365   PyObject *tuple = PyTuple_New(1);
8366   assert(tuple);
8367   PyTuple_SET_ITEM(tuple, 0, other);
8368   Py_XINCREF(other);
8369   if (!result) {
8370     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
8371       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
8372     } else {
8373       result = Py_NotImplemented;
8374       Py_INCREF(result);
8375     }
8376   }
8377   Py_DECREF(tuple);
8378   return result;
8379 }
8380 
8381 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFileInfoPreview_methods[] = {
8382   { NULL, NULL, 0, NULL } /* Sentinel */
8383 };
8384 
8385 static PyHeapTypeObject SwigPyBuiltin___CameraFileInfoPreview_type = {
8386   {
8387 #if PY_VERSION_HEX >= 0x03000000
8388     PyVarObject_HEAD_INIT(NULL, 0)
8389 #else
8390     PyObject_HEAD_INIT(NULL)
8391     0,                                        /* ob_size */
8392 #endif
8393     "gphoto2.filesys.CameraFileInfoPreview",  /* tp_name */
8394     sizeof(SwigPyObject),                     /* tp_basicsize */
8395     0,                                        /* tp_itemsize */
8396     _wrap_delete_CameraFileInfoPreview_destructor_closure,        /* tp_dealloc */
8397     (printfunc) 0,                            /* tp_print */
8398     (getattrfunc) 0,                          /* tp_getattr */
8399     (setattrfunc) 0,                          /* tp_setattr */
8400 #if PY_VERSION_HEX >= 0x03000000
8401     0,                                        /* tp_compare */
8402 #else
8403     (cmpfunc) 0,                              /* tp_compare */
8404 #endif
8405     (reprfunc) 0,                             /* tp_repr */
8406     &SwigPyBuiltin___CameraFileInfoPreview_type.as_number,        /* tp_as_number */
8407     &SwigPyBuiltin___CameraFileInfoPreview_type.as_sequence,      /* tp_as_sequence */
8408     &SwigPyBuiltin___CameraFileInfoPreview_type.as_mapping,       /* tp_as_mapping */
8409     SwigPyObject_hash,                        /* tp_hash */
8410     (ternaryfunc) 0,                          /* tp_call */
8411     (reprfunc) 0,                             /* tp_str */
8412     (getattrofunc) 0,                         /* tp_getattro */
8413     (setattrofunc) 0,                         /* tp_setattro */
8414     &SwigPyBuiltin___CameraFileInfoPreview_type.as_buffer,        /* tp_as_buffer */
8415 #if PY_VERSION_HEX >= 0x03000000
8416     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
8417 #else
8418     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
8419 #endif
8420     "\n"
8421 		"File information of a preview file.  \n"
8422 		"\n"
8423 		"Contains information of a preview file with fields being set depending\n"
8424 		"on the bitmask in the fields member.  \n"
8425 		"\n"
8426 		"C++ includes: gphoto2-filesys.h\n"
8427 		"",/* tp_doc */
8428     (traverseproc) 0,                         /* tp_traverse */
8429     (inquiry) 0,                              /* tp_clear */
8430     SwigPyBuiltin___CameraFileInfoPreview_richcompare,            /* tp_richcompare */
8431     0,                                        /* tp_weaklistoffset */
8432     (getiterfunc) 0,                          /* tp_iter */
8433     (iternextfunc) 0,                         /* tp_iternext */
8434     SwigPyBuiltin___CameraFileInfoPreview_methods,                /* tp_methods */
8435     0,                                        /* tp_members */
8436     SwigPyBuiltin___CameraFileInfoPreview_getset,                 /* tp_getset */
8437     0,                                        /* tp_base */
8438     0,                                        /* tp_dict */
8439     (descrgetfunc) 0,                         /* tp_descr_get */
8440     (descrsetfunc) 0,                         /* tp_descr_set */
8441     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
8442     SwigPyBuiltin_BadInit,                    /* tp_init */
8443     (allocfunc) 0,                            /* tp_alloc */
8444     (newfunc) 0,                              /* tp_new */
8445     (freefunc) 0,                             /* tp_free */
8446     (inquiry) 0,                              /* tp_is_gc */
8447     (PyObject *) 0,                           /* tp_bases */
8448     (PyObject *) 0,                           /* tp_mro */
8449     (PyObject *) 0,                           /* tp_cache */
8450     (PyObject *) 0,                           /* tp_subclasses */
8451     (PyObject *) 0,                           /* tp_weaklist */
8452     (destructor) 0,                           /* tp_del */
8453     (int) 0,                                  /* tp_version_tag */
8454 #if PY_VERSION_HEX >= 0x03040000
8455     (destructor) 0,                           /* tp_finalize */
8456 #endif
8457 #if PY_VERSION_HEX >= 0x03080000
8458     (vectorcallfunc) 0,                       /* tp_vectorcall */
8459 #endif
8460 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
8461     0,                                        /* tp_print */
8462 #endif
8463 #ifdef COUNT_ALLOCS
8464     (Py_ssize_t) 0,                           /* tp_allocs */
8465     (Py_ssize_t) 0,                           /* tp_frees */
8466     (Py_ssize_t) 0,                           /* tp_maxalloc */
8467     0,                                        /* tp_prev */
8468     0,                                        /* tp_next */
8469 #endif
8470   },
8471 #if PY_VERSION_HEX >= 0x03050000
8472   {
8473     (unaryfunc) 0,                            /* am_await */
8474     (unaryfunc) 0,                            /* am_aiter */
8475     (unaryfunc) 0,                            /* am_anext */
8476   },
8477 #endif
8478   {
8479     (binaryfunc) 0,                           /* nb_add */
8480     (binaryfunc) 0,                           /* nb_subtract */
8481     (binaryfunc) 0,                           /* nb_multiply */
8482 #if PY_VERSION_HEX < 0x03000000
8483     (binaryfunc) 0,                           /* nb_divide */
8484 #endif
8485     (binaryfunc) 0,                           /* nb_remainder */
8486     (binaryfunc) 0,                           /* nb_divmod */
8487     (ternaryfunc) 0,                          /* nb_power */
8488     (unaryfunc) 0,                            /* nb_negative */
8489     (unaryfunc) 0,                            /* nb_positive */
8490     (unaryfunc) 0,                            /* nb_absolute */
8491     (inquiry) 0,                              /* nb_nonzero */
8492     (unaryfunc) 0,                            /* nb_invert */
8493     (binaryfunc) 0,                           /* nb_lshift */
8494     (binaryfunc) 0,                           /* nb_rshift */
8495     (binaryfunc) 0,                           /* nb_and */
8496     (binaryfunc) 0,                           /* nb_xor */
8497     (binaryfunc) 0,                           /* nb_or */
8498 #if PY_VERSION_HEX < 0x03000000
8499     (coercion) 0,                             /* nb_coerce */
8500 #endif
8501     (unaryfunc) 0,                            /* nb_int */
8502 #if PY_VERSION_HEX >= 0x03000000
8503     (void *) 0,                               /* nb_reserved */
8504 #else
8505     (unaryfunc) 0,                            /* nb_long */
8506 #endif
8507     (unaryfunc) 0,                            /* nb_float */
8508 #if PY_VERSION_HEX < 0x03000000
8509     (unaryfunc) 0,                            /* nb_oct */
8510     (unaryfunc) 0,                            /* nb_hex */
8511 #endif
8512     (binaryfunc) 0,                           /* nb_inplace_add */
8513     (binaryfunc) 0,                           /* nb_inplace_subtract */
8514     (binaryfunc) 0,                           /* nb_inplace_multiply */
8515 #if PY_VERSION_HEX < 0x03000000
8516     (binaryfunc) 0,                           /* nb_inplace_divide */
8517 #endif
8518     (binaryfunc) 0,                           /* nb_inplace_remainder */
8519     (ternaryfunc) 0,                          /* nb_inplace_power */
8520     (binaryfunc) 0,                           /* nb_inplace_lshift */
8521     (binaryfunc) 0,                           /* nb_inplace_rshift */
8522     (binaryfunc) 0,                           /* nb_inplace_and */
8523     (binaryfunc) 0,                           /* nb_inplace_xor */
8524     (binaryfunc) 0,                           /* nb_inplace_or */
8525     (binaryfunc) 0,                           /* nb_floor_divide */
8526     (binaryfunc) 0,                           /* nb_true_divide */
8527     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
8528     (binaryfunc) 0,                           /* nb_inplace_true_divide */
8529     (unaryfunc) 0,                            /* nb_index */
8530 #if PY_VERSION_HEX >= 0x03050000
8531     (binaryfunc) 0,                           /* nb_matrix_multiply */
8532     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
8533 #endif
8534   },
8535   {
8536     (lenfunc) 0,                              /* mp_length */
8537     (binaryfunc) 0,                           /* mp_subscript */
8538     (objobjargproc) 0,                        /* mp_ass_subscript */
8539   },
8540   {
8541     (lenfunc) 0,                              /* sq_length */
8542     (binaryfunc) 0,                           /* sq_concat */
8543     (ssizeargfunc) 0,                         /* sq_repeat */
8544     (ssizeargfunc) 0,                         /* sq_item */
8545 #if PY_VERSION_HEX >= 0x03000000
8546     (void *) 0,                               /* was_sq_slice */
8547 #else
8548     (ssizessizeargfunc) 0,                    /* sq_slice */
8549 #endif
8550     (ssizeobjargproc) 0,                      /* sq_ass_item */
8551 #if PY_VERSION_HEX >= 0x03000000
8552     (void *) 0,                               /* was_sq_ass_slice */
8553 #else
8554     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
8555 #endif
8556     (objobjproc) 0,                           /* sq_contains */
8557     (binaryfunc) 0,                           /* sq_inplace_concat */
8558     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
8559   },
8560   {
8561 #if PY_VERSION_HEX < 0x03000000
8562     (readbufferproc) 0,                       /* bf_getreadbuffer */
8563     (writebufferproc) 0,                      /* bf_getwritebuffer */
8564     (segcountproc) 0,                         /* bf_getsegcount */
8565     (charbufferproc) 0,                       /* bf_getcharbuffer */
8566 #endif
8567     (getbufferproc) 0,                        /* bf_getbuffer */
8568     (releasebufferproc) 0,                    /* bf_releasebuffer */
8569   },
8570     (PyObject *) 0,                           /* ht_name */
8571     (PyObject *) 0,                           /* ht_slots */
8572 #if PY_VERSION_HEX >= 0x03030000
8573     (PyObject *) 0,                           /* ht_qualname */
8574     0,                                        /* ht_cached_keys */
8575 #endif
8576 };
8577 
8578 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFileInfoPreview_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoPreview_type};
8579 
8580 static SwigPyGetSet CameraFileInfoAudio_status_getset = { _wrap_CameraFileInfoAudio_status_get, 0 };
8581 static SwigPyGetSet CameraFileInfoAudio___dict___getset = { SwigPyObject_get___dict__, 0 };
8582 static SwigPyGetSet CameraFileInfoAudio_size_getset = { _wrap_CameraFileInfoAudio_size_get, 0 };
8583 static SwigPyGetSet CameraFileInfoAudio_type_getset = { _wrap_CameraFileInfoAudio_type_get, 0 };
8584 static SwigPyGetSet CameraFileInfoAudio_fields_getset = { _wrap_CameraFileInfoAudio_fields_get, 0 };
8585 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFileInfoAudio_getset[] = {
8586     { (char *)"status", SwigPyBuiltin_GetterClosure, 0, (char *)"status", &CameraFileInfoAudio_status_getset },
8587     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoAudio___dict___getset },
8588     { (char *)"size", SwigPyBuiltin_GetterClosure, 0, (char *)"size", &CameraFileInfoAudio_size_getset },
8589     { (char *)"type", SwigPyBuiltin_GetterClosure, 0, (char *)"type", &CameraFileInfoAudio_type_getset },
8590     { (char *)"fields", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraFileInfoAudio_fields_getset },
8591     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
8592 };
8593 
8594 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFileInfoAudio_richcompare(PyObject * self,PyObject * other,int op)8595 SwigPyBuiltin___CameraFileInfoAudio_richcompare(PyObject *self, PyObject *other, int op) {
8596   PyObject *result = NULL;
8597   PyObject *tuple = PyTuple_New(1);
8598   assert(tuple);
8599   PyTuple_SET_ITEM(tuple, 0, other);
8600   Py_XINCREF(other);
8601   if (!result) {
8602     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
8603       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
8604     } else {
8605       result = Py_NotImplemented;
8606       Py_INCREF(result);
8607     }
8608   }
8609   Py_DECREF(tuple);
8610   return result;
8611 }
8612 
8613 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFileInfoAudio_methods[] = {
8614   { NULL, NULL, 0, NULL } /* Sentinel */
8615 };
8616 
8617 static PyHeapTypeObject SwigPyBuiltin___CameraFileInfoAudio_type = {
8618   {
8619 #if PY_VERSION_HEX >= 0x03000000
8620     PyVarObject_HEAD_INIT(NULL, 0)
8621 #else
8622     PyObject_HEAD_INIT(NULL)
8623     0,                                        /* ob_size */
8624 #endif
8625     "gphoto2.filesys.CameraFileInfoAudio",    /* tp_name */
8626     sizeof(SwigPyObject),                     /* tp_basicsize */
8627     0,                                        /* tp_itemsize */
8628     _wrap_delete_CameraFileInfoAudio_destructor_closure,          /* tp_dealloc */
8629     (printfunc) 0,                            /* tp_print */
8630     (getattrfunc) 0,                          /* tp_getattr */
8631     (setattrfunc) 0,                          /* tp_setattr */
8632 #if PY_VERSION_HEX >= 0x03000000
8633     0,                                        /* tp_compare */
8634 #else
8635     (cmpfunc) 0,                              /* tp_compare */
8636 #endif
8637     (reprfunc) 0,                             /* tp_repr */
8638     &SwigPyBuiltin___CameraFileInfoAudio_type.as_number,          /* tp_as_number */
8639     &SwigPyBuiltin___CameraFileInfoAudio_type.as_sequence,        /* tp_as_sequence */
8640     &SwigPyBuiltin___CameraFileInfoAudio_type.as_mapping,         /* tp_as_mapping */
8641     SwigPyObject_hash,                        /* tp_hash */
8642     (ternaryfunc) 0,                          /* tp_call */
8643     (reprfunc) 0,                             /* tp_str */
8644     (getattrofunc) 0,                         /* tp_getattro */
8645     (setattrofunc) 0,                         /* tp_setattro */
8646     &SwigPyBuiltin___CameraFileInfoAudio_type.as_buffer,          /* tp_as_buffer */
8647 #if PY_VERSION_HEX >= 0x03000000
8648     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
8649 #else
8650     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
8651 #endif
8652     "\n"
8653 		"File information of an audio file.  \n"
8654 		"\n"
8655 		"Contains information of an audio file with fields being set depending on\n"
8656 		"the bitmask in the fields member.  \n"
8657 		"\n"
8658 		"C++ includes: gphoto2-filesys.h\n"
8659 		"",/* tp_doc */
8660     (traverseproc) 0,                         /* tp_traverse */
8661     (inquiry) 0,                              /* tp_clear */
8662     SwigPyBuiltin___CameraFileInfoAudio_richcompare,              /* tp_richcompare */
8663     0,                                        /* tp_weaklistoffset */
8664     (getiterfunc) 0,                          /* tp_iter */
8665     (iternextfunc) 0,                         /* tp_iternext */
8666     SwigPyBuiltin___CameraFileInfoAudio_methods,                  /* tp_methods */
8667     0,                                        /* tp_members */
8668     SwigPyBuiltin___CameraFileInfoAudio_getset,                   /* tp_getset */
8669     0,                                        /* tp_base */
8670     0,                                        /* tp_dict */
8671     (descrgetfunc) 0,                         /* tp_descr_get */
8672     (descrsetfunc) 0,                         /* tp_descr_set */
8673     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
8674     SwigPyBuiltin_BadInit,                    /* tp_init */
8675     (allocfunc) 0,                            /* tp_alloc */
8676     (newfunc) 0,                              /* tp_new */
8677     (freefunc) 0,                             /* tp_free */
8678     (inquiry) 0,                              /* tp_is_gc */
8679     (PyObject *) 0,                           /* tp_bases */
8680     (PyObject *) 0,                           /* tp_mro */
8681     (PyObject *) 0,                           /* tp_cache */
8682     (PyObject *) 0,                           /* tp_subclasses */
8683     (PyObject *) 0,                           /* tp_weaklist */
8684     (destructor) 0,                           /* tp_del */
8685     (int) 0,                                  /* tp_version_tag */
8686 #if PY_VERSION_HEX >= 0x03040000
8687     (destructor) 0,                           /* tp_finalize */
8688 #endif
8689 #if PY_VERSION_HEX >= 0x03080000
8690     (vectorcallfunc) 0,                       /* tp_vectorcall */
8691 #endif
8692 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
8693     0,                                        /* tp_print */
8694 #endif
8695 #ifdef COUNT_ALLOCS
8696     (Py_ssize_t) 0,                           /* tp_allocs */
8697     (Py_ssize_t) 0,                           /* tp_frees */
8698     (Py_ssize_t) 0,                           /* tp_maxalloc */
8699     0,                                        /* tp_prev */
8700     0,                                        /* tp_next */
8701 #endif
8702   },
8703 #if PY_VERSION_HEX >= 0x03050000
8704   {
8705     (unaryfunc) 0,                            /* am_await */
8706     (unaryfunc) 0,                            /* am_aiter */
8707     (unaryfunc) 0,                            /* am_anext */
8708   },
8709 #endif
8710   {
8711     (binaryfunc) 0,                           /* nb_add */
8712     (binaryfunc) 0,                           /* nb_subtract */
8713     (binaryfunc) 0,                           /* nb_multiply */
8714 #if PY_VERSION_HEX < 0x03000000
8715     (binaryfunc) 0,                           /* nb_divide */
8716 #endif
8717     (binaryfunc) 0,                           /* nb_remainder */
8718     (binaryfunc) 0,                           /* nb_divmod */
8719     (ternaryfunc) 0,                          /* nb_power */
8720     (unaryfunc) 0,                            /* nb_negative */
8721     (unaryfunc) 0,                            /* nb_positive */
8722     (unaryfunc) 0,                            /* nb_absolute */
8723     (inquiry) 0,                              /* nb_nonzero */
8724     (unaryfunc) 0,                            /* nb_invert */
8725     (binaryfunc) 0,                           /* nb_lshift */
8726     (binaryfunc) 0,                           /* nb_rshift */
8727     (binaryfunc) 0,                           /* nb_and */
8728     (binaryfunc) 0,                           /* nb_xor */
8729     (binaryfunc) 0,                           /* nb_or */
8730 #if PY_VERSION_HEX < 0x03000000
8731     (coercion) 0,                             /* nb_coerce */
8732 #endif
8733     (unaryfunc) 0,                            /* nb_int */
8734 #if PY_VERSION_HEX >= 0x03000000
8735     (void *) 0,                               /* nb_reserved */
8736 #else
8737     (unaryfunc) 0,                            /* nb_long */
8738 #endif
8739     (unaryfunc) 0,                            /* nb_float */
8740 #if PY_VERSION_HEX < 0x03000000
8741     (unaryfunc) 0,                            /* nb_oct */
8742     (unaryfunc) 0,                            /* nb_hex */
8743 #endif
8744     (binaryfunc) 0,                           /* nb_inplace_add */
8745     (binaryfunc) 0,                           /* nb_inplace_subtract */
8746     (binaryfunc) 0,                           /* nb_inplace_multiply */
8747 #if PY_VERSION_HEX < 0x03000000
8748     (binaryfunc) 0,                           /* nb_inplace_divide */
8749 #endif
8750     (binaryfunc) 0,                           /* nb_inplace_remainder */
8751     (ternaryfunc) 0,                          /* nb_inplace_power */
8752     (binaryfunc) 0,                           /* nb_inplace_lshift */
8753     (binaryfunc) 0,                           /* nb_inplace_rshift */
8754     (binaryfunc) 0,                           /* nb_inplace_and */
8755     (binaryfunc) 0,                           /* nb_inplace_xor */
8756     (binaryfunc) 0,                           /* nb_inplace_or */
8757     (binaryfunc) 0,                           /* nb_floor_divide */
8758     (binaryfunc) 0,                           /* nb_true_divide */
8759     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
8760     (binaryfunc) 0,                           /* nb_inplace_true_divide */
8761     (unaryfunc) 0,                            /* nb_index */
8762 #if PY_VERSION_HEX >= 0x03050000
8763     (binaryfunc) 0,                           /* nb_matrix_multiply */
8764     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
8765 #endif
8766   },
8767   {
8768     (lenfunc) 0,                              /* mp_length */
8769     (binaryfunc) 0,                           /* mp_subscript */
8770     (objobjargproc) 0,                        /* mp_ass_subscript */
8771   },
8772   {
8773     (lenfunc) 0,                              /* sq_length */
8774     (binaryfunc) 0,                           /* sq_concat */
8775     (ssizeargfunc) 0,                         /* sq_repeat */
8776     (ssizeargfunc) 0,                         /* sq_item */
8777 #if PY_VERSION_HEX >= 0x03000000
8778     (void *) 0,                               /* was_sq_slice */
8779 #else
8780     (ssizessizeargfunc) 0,                    /* sq_slice */
8781 #endif
8782     (ssizeobjargproc) 0,                      /* sq_ass_item */
8783 #if PY_VERSION_HEX >= 0x03000000
8784     (void *) 0,                               /* was_sq_ass_slice */
8785 #else
8786     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
8787 #endif
8788     (objobjproc) 0,                           /* sq_contains */
8789     (binaryfunc) 0,                           /* sq_inplace_concat */
8790     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
8791   },
8792   {
8793 #if PY_VERSION_HEX < 0x03000000
8794     (readbufferproc) 0,                       /* bf_getreadbuffer */
8795     (writebufferproc) 0,                      /* bf_getwritebuffer */
8796     (segcountproc) 0,                         /* bf_getsegcount */
8797     (charbufferproc) 0,                       /* bf_getcharbuffer */
8798 #endif
8799     (getbufferproc) 0,                        /* bf_getbuffer */
8800     (releasebufferproc) 0,                    /* bf_releasebuffer */
8801   },
8802     (PyObject *) 0,                           /* ht_name */
8803     (PyObject *) 0,                           /* ht_slots */
8804 #if PY_VERSION_HEX >= 0x03030000
8805     (PyObject *) 0,                           /* ht_qualname */
8806     0,                                        /* ht_cached_keys */
8807 #endif
8808 };
8809 
8810 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFileInfoAudio_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoAudio_type};
8811 
8812 static SwigPyGetSet CameraFileInfo___dict___getset = { SwigPyObject_get___dict__, 0 };
8813 static SwigPyGetSet CameraFileInfo_preview_getset = { _wrap_CameraFileInfo_preview_get, 0 };
8814 static SwigPyGetSet CameraFileInfo_audio_getset = { _wrap_CameraFileInfo_audio_get, 0 };
8815 static SwigPyGetSet CameraFileInfo_file_getset = { _wrap_CameraFileInfo_file_get, 0 };
8816 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFileInfo_getset[] = {
8817     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"preview", &CameraFileInfo___dict___getset },
8818     { (char *)"preview", SwigPyBuiltin_GetterClosure, 0, (char *)"preview", &CameraFileInfo_preview_getset },
8819     { (char *)"audio", SwigPyBuiltin_GetterClosure, 0, (char *)"audio", &CameraFileInfo_audio_getset },
8820     { (char *)"file", SwigPyBuiltin_GetterClosure, 0, (char *)"file", &CameraFileInfo_file_getset },
8821     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
8822 };
8823 
8824 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFileInfo_richcompare(PyObject * self,PyObject * other,int op)8825 SwigPyBuiltin___CameraFileInfo_richcompare(PyObject *self, PyObject *other, int op) {
8826   PyObject *result = NULL;
8827   PyObject *tuple = PyTuple_New(1);
8828   assert(tuple);
8829   PyTuple_SET_ITEM(tuple, 0, other);
8830   Py_XINCREF(other);
8831   if (!result) {
8832     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
8833       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
8834     } else {
8835       result = Py_NotImplemented;
8836       Py_INCREF(result);
8837     }
8838   }
8839   Py_DECREF(tuple);
8840   return result;
8841 }
8842 
8843 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFileInfo_methods[] = {
8844   { NULL, NULL, 0, NULL } /* Sentinel */
8845 };
8846 
8847 static PyHeapTypeObject SwigPyBuiltin___CameraFileInfo_type = {
8848   {
8849 #if PY_VERSION_HEX >= 0x03000000
8850     PyVarObject_HEAD_INIT(NULL, 0)
8851 #else
8852     PyObject_HEAD_INIT(NULL)
8853     0,                                        /* ob_size */
8854 #endif
8855     "gphoto2.filesys.CameraFileInfo",         /* tp_name */
8856     sizeof(SwigPyObject),                     /* tp_basicsize */
8857     0,                                        /* tp_itemsize */
8858     _wrap_delete_CameraFileInfo_destructor_closure,               /* tp_dealloc */
8859     (printfunc) 0,                            /* tp_print */
8860     (getattrfunc) 0,                          /* tp_getattr */
8861     (setattrfunc) 0,                          /* tp_setattr */
8862 #if PY_VERSION_HEX >= 0x03000000
8863     0,                                        /* tp_compare */
8864 #else
8865     (cmpfunc) 0,                              /* tp_compare */
8866 #endif
8867     (reprfunc) 0,                             /* tp_repr */
8868     &SwigPyBuiltin___CameraFileInfo_type.as_number,               /* tp_as_number */
8869     &SwigPyBuiltin___CameraFileInfo_type.as_sequence,             /* tp_as_sequence */
8870     &SwigPyBuiltin___CameraFileInfo_type.as_mapping,              /* tp_as_mapping */
8871     SwigPyObject_hash,                        /* tp_hash */
8872     (ternaryfunc) 0,                          /* tp_call */
8873     (reprfunc) 0,                             /* tp_str */
8874     (getattrofunc) 0,                         /* tp_getattro */
8875     (setattrofunc) 0,                         /* tp_setattro */
8876     &SwigPyBuiltin___CameraFileInfo_type.as_buffer,               /* tp_as_buffer */
8877 #if PY_VERSION_HEX >= 0x03000000
8878     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
8879 #else
8880     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
8881 #endif
8882     "\n"
8883 		"File information structure.  \n"
8884 		"\n"
8885 		"Contains the normal, preview and audio file information structures for a\n"
8886 		"specific file.  \n"
8887 		"\n"
8888 		"C++ includes: gphoto2-filesys.h\n"
8889 		"",/* tp_doc */
8890     (traverseproc) 0,                         /* tp_traverse */
8891     (inquiry) 0,                              /* tp_clear */
8892     SwigPyBuiltin___CameraFileInfo_richcompare,                   /* tp_richcompare */
8893     0,                                        /* tp_weaklistoffset */
8894     (getiterfunc) 0,                          /* tp_iter */
8895     (iternextfunc) 0,                         /* tp_iternext */
8896     SwigPyBuiltin___CameraFileInfo_methods,   /* tp_methods */
8897     0,                                        /* tp_members */
8898     SwigPyBuiltin___CameraFileInfo_getset,    /* tp_getset */
8899     0,                                        /* tp_base */
8900     0,                                        /* tp_dict */
8901     (descrgetfunc) 0,                         /* tp_descr_get */
8902     (descrsetfunc) 0,                         /* tp_descr_set */
8903     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
8904     SwigPyBuiltin_BadInit,                    /* tp_init */
8905     (allocfunc) 0,                            /* tp_alloc */
8906     (newfunc) 0,                              /* tp_new */
8907     (freefunc) 0,                             /* tp_free */
8908     (inquiry) 0,                              /* tp_is_gc */
8909     (PyObject *) 0,                           /* tp_bases */
8910     (PyObject *) 0,                           /* tp_mro */
8911     (PyObject *) 0,                           /* tp_cache */
8912     (PyObject *) 0,                           /* tp_subclasses */
8913     (PyObject *) 0,                           /* tp_weaklist */
8914     (destructor) 0,                           /* tp_del */
8915     (int) 0,                                  /* tp_version_tag */
8916 #if PY_VERSION_HEX >= 0x03040000
8917     (destructor) 0,                           /* tp_finalize */
8918 #endif
8919 #if PY_VERSION_HEX >= 0x03080000
8920     (vectorcallfunc) 0,                       /* tp_vectorcall */
8921 #endif
8922 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
8923     0,                                        /* tp_print */
8924 #endif
8925 #ifdef COUNT_ALLOCS
8926     (Py_ssize_t) 0,                           /* tp_allocs */
8927     (Py_ssize_t) 0,                           /* tp_frees */
8928     (Py_ssize_t) 0,                           /* tp_maxalloc */
8929     0,                                        /* tp_prev */
8930     0,                                        /* tp_next */
8931 #endif
8932   },
8933 #if PY_VERSION_HEX >= 0x03050000
8934   {
8935     (unaryfunc) 0,                            /* am_await */
8936     (unaryfunc) 0,                            /* am_aiter */
8937     (unaryfunc) 0,                            /* am_anext */
8938   },
8939 #endif
8940   {
8941     (binaryfunc) 0,                           /* nb_add */
8942     (binaryfunc) 0,                           /* nb_subtract */
8943     (binaryfunc) 0,                           /* nb_multiply */
8944 #if PY_VERSION_HEX < 0x03000000
8945     (binaryfunc) 0,                           /* nb_divide */
8946 #endif
8947     (binaryfunc) 0,                           /* nb_remainder */
8948     (binaryfunc) 0,                           /* nb_divmod */
8949     (ternaryfunc) 0,                          /* nb_power */
8950     (unaryfunc) 0,                            /* nb_negative */
8951     (unaryfunc) 0,                            /* nb_positive */
8952     (unaryfunc) 0,                            /* nb_absolute */
8953     (inquiry) 0,                              /* nb_nonzero */
8954     (unaryfunc) 0,                            /* nb_invert */
8955     (binaryfunc) 0,                           /* nb_lshift */
8956     (binaryfunc) 0,                           /* nb_rshift */
8957     (binaryfunc) 0,                           /* nb_and */
8958     (binaryfunc) 0,                           /* nb_xor */
8959     (binaryfunc) 0,                           /* nb_or */
8960 #if PY_VERSION_HEX < 0x03000000
8961     (coercion) 0,                             /* nb_coerce */
8962 #endif
8963     (unaryfunc) 0,                            /* nb_int */
8964 #if PY_VERSION_HEX >= 0x03000000
8965     (void *) 0,                               /* nb_reserved */
8966 #else
8967     (unaryfunc) 0,                            /* nb_long */
8968 #endif
8969     (unaryfunc) 0,                            /* nb_float */
8970 #if PY_VERSION_HEX < 0x03000000
8971     (unaryfunc) 0,                            /* nb_oct */
8972     (unaryfunc) 0,                            /* nb_hex */
8973 #endif
8974     (binaryfunc) 0,                           /* nb_inplace_add */
8975     (binaryfunc) 0,                           /* nb_inplace_subtract */
8976     (binaryfunc) 0,                           /* nb_inplace_multiply */
8977 #if PY_VERSION_HEX < 0x03000000
8978     (binaryfunc) 0,                           /* nb_inplace_divide */
8979 #endif
8980     (binaryfunc) 0,                           /* nb_inplace_remainder */
8981     (ternaryfunc) 0,                          /* nb_inplace_power */
8982     (binaryfunc) 0,                           /* nb_inplace_lshift */
8983     (binaryfunc) 0,                           /* nb_inplace_rshift */
8984     (binaryfunc) 0,                           /* nb_inplace_and */
8985     (binaryfunc) 0,                           /* nb_inplace_xor */
8986     (binaryfunc) 0,                           /* nb_inplace_or */
8987     (binaryfunc) 0,                           /* nb_floor_divide */
8988     (binaryfunc) 0,                           /* nb_true_divide */
8989     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
8990     (binaryfunc) 0,                           /* nb_inplace_true_divide */
8991     (unaryfunc) 0,                            /* nb_index */
8992 #if PY_VERSION_HEX >= 0x03050000
8993     (binaryfunc) 0,                           /* nb_matrix_multiply */
8994     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
8995 #endif
8996   },
8997   {
8998     (lenfunc) 0,                              /* mp_length */
8999     (binaryfunc) 0,                           /* mp_subscript */
9000     (objobjargproc) 0,                        /* mp_ass_subscript */
9001   },
9002   {
9003     (lenfunc) 0,                              /* sq_length */
9004     (binaryfunc) 0,                           /* sq_concat */
9005     (ssizeargfunc) 0,                         /* sq_repeat */
9006     (ssizeargfunc) 0,                         /* sq_item */
9007 #if PY_VERSION_HEX >= 0x03000000
9008     (void *) 0,                               /* was_sq_slice */
9009 #else
9010     (ssizessizeargfunc) 0,                    /* sq_slice */
9011 #endif
9012     (ssizeobjargproc) 0,                      /* sq_ass_item */
9013 #if PY_VERSION_HEX >= 0x03000000
9014     (void *) 0,                               /* was_sq_ass_slice */
9015 #else
9016     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
9017 #endif
9018     (objobjproc) 0,                           /* sq_contains */
9019     (binaryfunc) 0,                           /* sq_inplace_concat */
9020     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
9021   },
9022   {
9023 #if PY_VERSION_HEX < 0x03000000
9024     (readbufferproc) 0,                       /* bf_getreadbuffer */
9025     (writebufferproc) 0,                      /* bf_getwritebuffer */
9026     (segcountproc) 0,                         /* bf_getsegcount */
9027     (charbufferproc) 0,                       /* bf_getcharbuffer */
9028 #endif
9029     (getbufferproc) 0,                        /* bf_getbuffer */
9030     (releasebufferproc) 0,                    /* bf_releasebuffer */
9031   },
9032     (PyObject *) 0,                           /* ht_name */
9033     (PyObject *) 0,                           /* ht_slots */
9034 #if PY_VERSION_HEX >= 0x03030000
9035     (PyObject *) 0,                           /* ht_qualname */
9036     0,                                        /* ht_cached_keys */
9037 #endif
9038 };
9039 
9040 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFileInfo_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFileInfo_type};
9041 
9042 static SwigPyGetSet CameraStorageInformation_fstype_getset = { _wrap_CameraStorageInformation_fstype_get, 0 };
9043 static SwigPyGetSet CameraStorageInformation_access_getset = { _wrap_CameraStorageInformation_access_get, 0 };
9044 static SwigPyGetSet CameraStorageInformation___dict___getset = { SwigPyObject_get___dict__, 0 };
9045 static SwigPyGetSet CameraStorageInformation_freeimages_getset = { _wrap_CameraStorageInformation_freeimages_get, 0 };
9046 static SwigPyGetSet CameraStorageInformation_basedir_getset = { _wrap_CameraStorageInformation_basedir_get, 0 };
9047 static SwigPyGetSet CameraStorageInformation_description_getset = { _wrap_CameraStorageInformation_description_get, 0 };
9048 static SwigPyGetSet CameraStorageInformation_type_getset = { _wrap_CameraStorageInformation_type_get, 0 };
9049 static SwigPyGetSet CameraStorageInformation_fields_getset = { _wrap_CameraStorageInformation_fields_get, 0 };
9050 static SwigPyGetSet CameraStorageInformation_label_getset = { _wrap_CameraStorageInformation_label_get, 0 };
9051 static SwigPyGetSet CameraStorageInformation_capacitykbytes_getset = { _wrap_CameraStorageInformation_capacitykbytes_get, 0 };
9052 static SwigPyGetSet CameraStorageInformation_freekbytes_getset = { _wrap_CameraStorageInformation_freekbytes_get, 0 };
9053 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraStorageInformation_getset[] = {
9054     { (char *)"fstype", SwigPyBuiltin_GetterClosure, 0, (char *)"fstype", &CameraStorageInformation_fstype_getset },
9055     { (char *)"access", SwigPyBuiltin_GetterClosure, 0, (char *)"access", &CameraStorageInformation_access_getset },
9056     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraStorageInformation___dict___getset },
9057     { (char *)"freeimages", SwigPyBuiltin_GetterClosure, 0, (char *)"freeimages", &CameraStorageInformation_freeimages_getset },
9058     { (char *)"basedir", SwigPyBuiltin_GetterClosure, 0, (char *)"basedir", &CameraStorageInformation_basedir_getset },
9059     { (char *)"description", SwigPyBuiltin_GetterClosure, 0, (char *)"description", &CameraStorageInformation_description_getset },
9060     { (char *)"type", SwigPyBuiltin_GetterClosure, 0, (char *)"type", &CameraStorageInformation_type_getset },
9061     { (char *)"fields", SwigPyBuiltin_GetterClosure, 0, (char *)"fields", &CameraStorageInformation_fields_getset },
9062     { (char *)"label", SwigPyBuiltin_GetterClosure, 0, (char *)"label", &CameraStorageInformation_label_getset },
9063     { (char *)"capacitykbytes", SwigPyBuiltin_GetterClosure, 0, (char *)"capacitykbytes", &CameraStorageInformation_capacitykbytes_getset },
9064     { (char *)"freekbytes", SwigPyBuiltin_GetterClosure, 0, (char *)"freekbytes", &CameraStorageInformation_freekbytes_getset },
9065     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
9066 };
9067 
9068 SWIGINTERN PyObject *
SwigPyBuiltin___CameraStorageInformation_richcompare(PyObject * self,PyObject * other,int op)9069 SwigPyBuiltin___CameraStorageInformation_richcompare(PyObject *self, PyObject *other, int op) {
9070   PyObject *result = NULL;
9071   PyObject *tuple = PyTuple_New(1);
9072   assert(tuple);
9073   PyTuple_SET_ITEM(tuple, 0, other);
9074   Py_XINCREF(other);
9075   if (!result) {
9076     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
9077       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
9078     } else {
9079       result = Py_NotImplemented;
9080       Py_INCREF(result);
9081     }
9082   }
9083   Py_DECREF(tuple);
9084   return result;
9085 }
9086 
9087 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraStorageInformation_methods[] = {
9088   { NULL, NULL, 0, NULL } /* Sentinel */
9089 };
9090 
9091 static PyHeapTypeObject SwigPyBuiltin___CameraStorageInformation_type = {
9092   {
9093 #if PY_VERSION_HEX >= 0x03000000
9094     PyVarObject_HEAD_INIT(NULL, 0)
9095 #else
9096     PyObject_HEAD_INIT(NULL)
9097     0,                                        /* ob_size */
9098 #endif
9099     "gphoto2.filesys.CameraStorageInformation",                   /* tp_name */
9100     sizeof(SwigPyObject),                     /* tp_basicsize */
9101     0,                                        /* tp_itemsize */
9102     _wrap_delete_CameraStorageInformation_destructor_closure,     /* tp_dealloc */
9103     (printfunc) 0,                            /* tp_print */
9104     (getattrfunc) 0,                          /* tp_getattr */
9105     (setattrfunc) 0,                          /* tp_setattr */
9106 #if PY_VERSION_HEX >= 0x03000000
9107     0,                                        /* tp_compare */
9108 #else
9109     (cmpfunc) 0,                              /* tp_compare */
9110 #endif
9111     (reprfunc) 0,                             /* tp_repr */
9112     &SwigPyBuiltin___CameraStorageInformation_type.as_number,     /* tp_as_number */
9113     &SwigPyBuiltin___CameraStorageInformation_type.as_sequence,   /* tp_as_sequence */
9114     &SwigPyBuiltin___CameraStorageInformation_type.as_mapping,    /* tp_as_mapping */
9115     SwigPyObject_hash,                        /* tp_hash */
9116     (ternaryfunc) 0,                          /* tp_call */
9117     (reprfunc) 0,                             /* tp_str */
9118     (getattrofunc) 0,                         /* tp_getattro */
9119     (setattrofunc) 0,                         /* tp_setattro */
9120     &SwigPyBuiltin___CameraStorageInformation_type.as_buffer,     /* tp_as_buffer */
9121 #if PY_VERSION_HEX >= 0x03000000
9122     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
9123 #else
9124     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
9125 #endif
9126     "\n"
9127 		"Storage information structue.  \n"
9128 		"\n"
9129 		"This structure contains the information of a specific camera storage.\n"
9130 		"Only the members as specified by the *fields* member are valid.  \n"
9131 		"\n"
9132 		"C++ includes: gphoto2-filesys.h\n"
9133 		"",/* tp_doc */
9134     (traverseproc) 0,                         /* tp_traverse */
9135     (inquiry) 0,                              /* tp_clear */
9136     SwigPyBuiltin___CameraStorageInformation_richcompare,         /* tp_richcompare */
9137     0,                                        /* tp_weaklistoffset */
9138     (getiterfunc) 0,                          /* tp_iter */
9139     (iternextfunc) 0,                         /* tp_iternext */
9140     SwigPyBuiltin___CameraStorageInformation_methods,             /* tp_methods */
9141     0,                                        /* tp_members */
9142     SwigPyBuiltin___CameraStorageInformation_getset,              /* tp_getset */
9143     0,                                        /* tp_base */
9144     0,                                        /* tp_dict */
9145     (descrgetfunc) 0,                         /* tp_descr_get */
9146     (descrsetfunc) 0,                         /* tp_descr_set */
9147     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
9148     SwigPyBuiltin_BadInit,                    /* tp_init */
9149     (allocfunc) 0,                            /* tp_alloc */
9150     (newfunc) 0,                              /* tp_new */
9151     (freefunc) 0,                             /* tp_free */
9152     (inquiry) 0,                              /* tp_is_gc */
9153     (PyObject *) 0,                           /* tp_bases */
9154     (PyObject *) 0,                           /* tp_mro */
9155     (PyObject *) 0,                           /* tp_cache */
9156     (PyObject *) 0,                           /* tp_subclasses */
9157     (PyObject *) 0,                           /* tp_weaklist */
9158     (destructor) 0,                           /* tp_del */
9159     (int) 0,                                  /* tp_version_tag */
9160 #if PY_VERSION_HEX >= 0x03040000
9161     (destructor) 0,                           /* tp_finalize */
9162 #endif
9163 #if PY_VERSION_HEX >= 0x03080000
9164     (vectorcallfunc) 0,                       /* tp_vectorcall */
9165 #endif
9166 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
9167     0,                                        /* tp_print */
9168 #endif
9169 #ifdef COUNT_ALLOCS
9170     (Py_ssize_t) 0,                           /* tp_allocs */
9171     (Py_ssize_t) 0,                           /* tp_frees */
9172     (Py_ssize_t) 0,                           /* tp_maxalloc */
9173     0,                                        /* tp_prev */
9174     0,                                        /* tp_next */
9175 #endif
9176   },
9177 #if PY_VERSION_HEX >= 0x03050000
9178   {
9179     (unaryfunc) 0,                            /* am_await */
9180     (unaryfunc) 0,                            /* am_aiter */
9181     (unaryfunc) 0,                            /* am_anext */
9182   },
9183 #endif
9184   {
9185     (binaryfunc) 0,                           /* nb_add */
9186     (binaryfunc) 0,                           /* nb_subtract */
9187     (binaryfunc) 0,                           /* nb_multiply */
9188 #if PY_VERSION_HEX < 0x03000000
9189     (binaryfunc) 0,                           /* nb_divide */
9190 #endif
9191     (binaryfunc) 0,                           /* nb_remainder */
9192     (binaryfunc) 0,                           /* nb_divmod */
9193     (ternaryfunc) 0,                          /* nb_power */
9194     (unaryfunc) 0,                            /* nb_negative */
9195     (unaryfunc) 0,                            /* nb_positive */
9196     (unaryfunc) 0,                            /* nb_absolute */
9197     (inquiry) 0,                              /* nb_nonzero */
9198     (unaryfunc) 0,                            /* nb_invert */
9199     (binaryfunc) 0,                           /* nb_lshift */
9200     (binaryfunc) 0,                           /* nb_rshift */
9201     (binaryfunc) 0,                           /* nb_and */
9202     (binaryfunc) 0,                           /* nb_xor */
9203     (binaryfunc) 0,                           /* nb_or */
9204 #if PY_VERSION_HEX < 0x03000000
9205     (coercion) 0,                             /* nb_coerce */
9206 #endif
9207     (unaryfunc) 0,                            /* nb_int */
9208 #if PY_VERSION_HEX >= 0x03000000
9209     (void *) 0,                               /* nb_reserved */
9210 #else
9211     (unaryfunc) 0,                            /* nb_long */
9212 #endif
9213     (unaryfunc) 0,                            /* nb_float */
9214 #if PY_VERSION_HEX < 0x03000000
9215     (unaryfunc) 0,                            /* nb_oct */
9216     (unaryfunc) 0,                            /* nb_hex */
9217 #endif
9218     (binaryfunc) 0,                           /* nb_inplace_add */
9219     (binaryfunc) 0,                           /* nb_inplace_subtract */
9220     (binaryfunc) 0,                           /* nb_inplace_multiply */
9221 #if PY_VERSION_HEX < 0x03000000
9222     (binaryfunc) 0,                           /* nb_inplace_divide */
9223 #endif
9224     (binaryfunc) 0,                           /* nb_inplace_remainder */
9225     (ternaryfunc) 0,                          /* nb_inplace_power */
9226     (binaryfunc) 0,                           /* nb_inplace_lshift */
9227     (binaryfunc) 0,                           /* nb_inplace_rshift */
9228     (binaryfunc) 0,                           /* nb_inplace_and */
9229     (binaryfunc) 0,                           /* nb_inplace_xor */
9230     (binaryfunc) 0,                           /* nb_inplace_or */
9231     (binaryfunc) 0,                           /* nb_floor_divide */
9232     (binaryfunc) 0,                           /* nb_true_divide */
9233     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
9234     (binaryfunc) 0,                           /* nb_inplace_true_divide */
9235     (unaryfunc) 0,                            /* nb_index */
9236 #if PY_VERSION_HEX >= 0x03050000
9237     (binaryfunc) 0,                           /* nb_matrix_multiply */
9238     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
9239 #endif
9240   },
9241   {
9242     (lenfunc) 0,                              /* mp_length */
9243     (binaryfunc) 0,                           /* mp_subscript */
9244     (objobjargproc) 0,                        /* mp_ass_subscript */
9245   },
9246   {
9247     (lenfunc) 0,                              /* sq_length */
9248     (binaryfunc) 0,                           /* sq_concat */
9249     (ssizeargfunc) 0,                         /* sq_repeat */
9250     (ssizeargfunc) 0,                         /* sq_item */
9251 #if PY_VERSION_HEX >= 0x03000000
9252     (void *) 0,                               /* was_sq_slice */
9253 #else
9254     (ssizessizeargfunc) 0,                    /* sq_slice */
9255 #endif
9256     (ssizeobjargproc) 0,                      /* sq_ass_item */
9257 #if PY_VERSION_HEX >= 0x03000000
9258     (void *) 0,                               /* was_sq_ass_slice */
9259 #else
9260     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
9261 #endif
9262     (objobjproc) 0,                           /* sq_contains */
9263     (binaryfunc) 0,                           /* sq_inplace_concat */
9264     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
9265   },
9266   {
9267 #if PY_VERSION_HEX < 0x03000000
9268     (readbufferproc) 0,                       /* bf_getreadbuffer */
9269     (writebufferproc) 0,                      /* bf_getwritebuffer */
9270     (segcountproc) 0,                         /* bf_getsegcount */
9271     (charbufferproc) 0,                       /* bf_getcharbuffer */
9272 #endif
9273     (getbufferproc) 0,                        /* bf_getbuffer */
9274     (releasebufferproc) 0,                    /* bf_releasebuffer */
9275   },
9276     (PyObject *) 0,                           /* ht_name */
9277     (PyObject *) 0,                           /* ht_slots */
9278 #if PY_VERSION_HEX >= 0x03030000
9279     (PyObject *) 0,                           /* ht_qualname */
9280     0,                                        /* ht_cached_keys */
9281 #endif
9282 };
9283 
9284 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraStorageInformation_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraStorageInformation_type};
9285 
9286 static SwigPyGetSet _CameraFilesystemFuncs_delete_all_func_getset = { _wrap__CameraFilesystemFuncs_delete_all_func_get, 0 };
9287 static SwigPyGetSet _CameraFilesystemFuncs_del_file_func_getset = { _wrap__CameraFilesystemFuncs_del_file_func_get, 0 };
9288 static SwigPyGetSet _CameraFilesystemFuncs_read_file_func_getset = { _wrap__CameraFilesystemFuncs_read_file_func_get, 0 };
9289 static SwigPyGetSet _CameraFilesystemFuncs_get_file_func_getset = { _wrap__CameraFilesystemFuncs_get_file_func_get, 0 };
9290 static SwigPyGetSet _CameraFilesystemFuncs_put_file_func_getset = { _wrap__CameraFilesystemFuncs_put_file_func_get, 0 };
9291 static SwigPyGetSet _CameraFilesystemFuncs_folder_list_func_getset = { _wrap__CameraFilesystemFuncs_folder_list_func_get, 0 };
9292 static SwigPyGetSet _CameraFilesystemFuncs_file_list_func_getset = { _wrap__CameraFilesystemFuncs_file_list_func_get, 0 };
9293 static SwigPyGetSet _CameraFilesystemFuncs_storage_info_func_getset = { _wrap__CameraFilesystemFuncs_storage_info_func_get, 0 };
9294 static SwigPyGetSet _CameraFilesystemFuncs_set_info_func_getset = { _wrap__CameraFilesystemFuncs_set_info_func_get, 0 };
9295 static SwigPyGetSet _CameraFilesystemFuncs_get_info_func_getset = { _wrap__CameraFilesystemFuncs_get_info_func_get, 0 };
9296 static SwigPyGetSet _CameraFilesystemFuncs___dict___getset = { SwigPyObject_get___dict__, 0 };
9297 static SwigPyGetSet _CameraFilesystemFuncs_unused_getset = { _wrap__CameraFilesystemFuncs_unused_get, 0 };
9298 static SwigPyGetSet _CameraFilesystemFuncs_remove_dir_func_getset = { _wrap__CameraFilesystemFuncs_remove_dir_func_get, 0 };
9299 static SwigPyGetSet _CameraFilesystemFuncs_make_dir_func_getset = { _wrap__CameraFilesystemFuncs_make_dir_func_get, 0 };
9300 SWIGINTERN PyGetSetDef SwigPyBuiltin___CameraFilesystemFuncs_getset[] = {
9301     { (char *)"delete_all_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9302 		"delete_all_func\n"
9303 		"Delete all files from the camera.  \n"
9304 		"\n"
9305 		"This function is a CameraFilesystem method.\n"
9306 		"", &_CameraFilesystemFuncs_delete_all_func_getset },
9307     { (char *)"del_file_func", SwigPyBuiltin_GetterClosure, 0, (char *)"del_file_func", &_CameraFilesystemFuncs_del_file_func_getset },
9308     { (char *)"read_file_func", SwigPyBuiltin_GetterClosure, 0, (char *)"read_file_func", &_CameraFilesystemFuncs_read_file_func_getset },
9309     { (char *)"get_file_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9310 		"get_file_func\n"
9311 		"Get the file from the camera.  \n"
9312 		"\n"
9313 		"This function is a CameraFilesystem method.\n"
9314 		"", &_CameraFilesystemFuncs_get_file_func_getset },
9315     { (char *)"put_file_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9316 		"put_file_func\n"
9317 		"Put a file onto the camera.  \n"
9318 		"\n"
9319 		"This function is a CameraFilesystem method.\n"
9320 		"", &_CameraFilesystemFuncs_put_file_func_getset },
9321     { (char *)"folder_list_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9322 		"folder_list_func\n"
9323 		"List available folders in the specified folder.  \n"
9324 		"\n"
9325 		"This function is a CameraFilesystem method.\n"
9326 		"", &_CameraFilesystemFuncs_folder_list_func_getset },
9327     { (char *)"file_list_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9328 		"file_list_func\n"
9329 		"List available files in the specified folder.  \n"
9330 		"\n"
9331 		"This function is a CameraFilesystem method.\n"
9332 		"", &_CameraFilesystemFuncs_file_list_func_getset },
9333     { (char *)"storage_info_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9334 		"storage_info_func\n"
9335 		"Get information on all available storages in the camera.  \n"
9336 		"\n"
9337 		"This function is a CameraFilesystem method.\n"
9338 		"", &_CameraFilesystemFuncs_storage_info_func_getset },
9339     { (char *)"set_info_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9340 		"set_info_func\n"
9341 		"FIXME.  \n"
9342 		"\n"
9343 		"This function is a CameraFilesystem method.\n"
9344 		"", &_CameraFilesystemFuncs_set_info_func_getset },
9345     { (char *)"get_info_func", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9346 		"get_info_func\n"
9347 		"Get the file info here and write it to space provided by caller.  \n"
9348 		"\n"
9349 		"Parameters\n"
9350 		"----------\n"
9351 		"* `info` :  \n"
9352 		"    Space provided by caller in which file info is written.  \n"
9353 		"\n"
9354 		"This function is a CameraFilesystem method.\n"
9355 		"", &_CameraFilesystemFuncs_get_info_func_getset },
9356     { (char *)"__dict__", SwigPyBuiltin_GetterClosure, 0, (char *)"\n"
9357 		"gp_filesystem_new\n"
9358 		"Create a new filesystem struct.  \n"
9359 		"\n"
9360 		"Parameters\n"
9361 		"----------\n"
9362 		"* `fs` :  \n"
9363 		"    a pointer to a CameraFilesystem  \n"
9364 		"\n"
9365 		"Creates a new empty CameraFilesystem  \n"
9366 		"\n"
9367 		"Returns\n"
9368 		"-------\n"
9369 		"a gphoto2 error code.\n"
9370 		"", &_CameraFilesystemFuncs___dict___getset },
9371     { (char *)"unused", SwigPyBuiltin_GetterClosure, 0, (char *)"unused", &_CameraFilesystemFuncs_unused_getset },
9372     { (char *)"remove_dir_func", SwigPyBuiltin_GetterClosure, 0, (char *)"remove_dir_func", &_CameraFilesystemFuncs_remove_dir_func_getset },
9373     { (char *)"make_dir_func", SwigPyBuiltin_GetterClosure, 0, (char *)"make_dir_func", &_CameraFilesystemFuncs_make_dir_func_getset },
9374     { NULL, NULL, NULL, NULL, NULL } /* Sentinel */
9375 };
9376 
9377 SWIGINTERN PyObject *
SwigPyBuiltin___CameraFilesystemFuncs_richcompare(PyObject * self,PyObject * other,int op)9378 SwigPyBuiltin___CameraFilesystemFuncs_richcompare(PyObject *self, PyObject *other, int op) {
9379   PyObject *result = NULL;
9380   PyObject *tuple = PyTuple_New(1);
9381   assert(tuple);
9382   PyTuple_SET_ITEM(tuple, 0, other);
9383   Py_XINCREF(other);
9384   if (!result) {
9385     if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
9386       result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
9387     } else {
9388       result = Py_NotImplemented;
9389       Py_INCREF(result);
9390     }
9391   }
9392   Py_DECREF(tuple);
9393   return result;
9394 }
9395 
9396 SWIGINTERN PyMethodDef SwigPyBuiltin___CameraFilesystemFuncs_methods[] = {
9397   { NULL, NULL, 0, NULL } /* Sentinel */
9398 };
9399 
9400 static PyHeapTypeObject SwigPyBuiltin___CameraFilesystemFuncs_type = {
9401   {
9402 #if PY_VERSION_HEX >= 0x03000000
9403     PyVarObject_HEAD_INIT(NULL, 0)
9404 #else
9405     PyObject_HEAD_INIT(NULL)
9406     0,                                        /* ob_size */
9407 #endif
9408     "gphoto2.filesys._CameraFilesystemFuncs", /* tp_name */
9409     sizeof(SwigPyObject),                     /* tp_basicsize */
9410     0,                                        /* tp_itemsize */
9411     _wrap_delete__CameraFilesystemFuncs_destructor_closure,       /* tp_dealloc */
9412     (printfunc) 0,                            /* tp_print */
9413     (getattrfunc) 0,                          /* tp_getattr */
9414     (setattrfunc) 0,                          /* tp_setattr */
9415 #if PY_VERSION_HEX >= 0x03000000
9416     0,                                        /* tp_compare */
9417 #else
9418     (cmpfunc) 0,                              /* tp_compare */
9419 #endif
9420     (reprfunc) 0,                             /* tp_repr */
9421     &SwigPyBuiltin___CameraFilesystemFuncs_type.as_number,        /* tp_as_number */
9422     &SwigPyBuiltin___CameraFilesystemFuncs_type.as_sequence,      /* tp_as_sequence */
9423     &SwigPyBuiltin___CameraFilesystemFuncs_type.as_mapping,       /* tp_as_mapping */
9424     SwigPyObject_hash,                        /* tp_hash */
9425     (ternaryfunc) 0,                          /* tp_call */
9426     (reprfunc) 0,                             /* tp_str */
9427     (getattrofunc) 0,                         /* tp_getattro */
9428     (setattrofunc) 0,                         /* tp_setattro */
9429     &SwigPyBuiltin___CameraFilesystemFuncs_type.as_buffer,        /* tp_as_buffer */
9430 #if PY_VERSION_HEX >= 0x03000000
9431     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,   /* tp_flags */
9432 #else
9433     Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
9434 #endif
9435     "::_CameraFilesystemFuncs",               /* tp_doc */
9436     (traverseproc) 0,                         /* tp_traverse */
9437     (inquiry) 0,                              /* tp_clear */
9438     SwigPyBuiltin___CameraFilesystemFuncs_richcompare,            /* tp_richcompare */
9439     0,                                        /* tp_weaklistoffset */
9440     (getiterfunc) 0,                          /* tp_iter */
9441     (iternextfunc) 0,                         /* tp_iternext */
9442     SwigPyBuiltin___CameraFilesystemFuncs_methods,                /* tp_methods */
9443     0,                                        /* tp_members */
9444     SwigPyBuiltin___CameraFilesystemFuncs_getset,                 /* tp_getset */
9445     0,                                        /* tp_base */
9446     0,                                        /* tp_dict */
9447     (descrgetfunc) 0,                         /* tp_descr_get */
9448     (descrsetfunc) 0,                         /* tp_descr_set */
9449     offsetof(SwigPyObject, dict),             /* tp_dictoffset */
9450     SwigPyBuiltin_BadInit,                    /* tp_init */
9451     (allocfunc) 0,                            /* tp_alloc */
9452     (newfunc) 0,                              /* tp_new */
9453     (freefunc) 0,                             /* tp_free */
9454     (inquiry) 0,                              /* tp_is_gc */
9455     (PyObject *) 0,                           /* tp_bases */
9456     (PyObject *) 0,                           /* tp_mro */
9457     (PyObject *) 0,                           /* tp_cache */
9458     (PyObject *) 0,                           /* tp_subclasses */
9459     (PyObject *) 0,                           /* tp_weaklist */
9460     (destructor) 0,                           /* tp_del */
9461     (int) 0,                                  /* tp_version_tag */
9462 #if PY_VERSION_HEX >= 0x03040000
9463     (destructor) 0,                           /* tp_finalize */
9464 #endif
9465 #if PY_VERSION_HEX >= 0x03080000
9466     (vectorcallfunc) 0,                       /* tp_vectorcall */
9467 #endif
9468 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
9469     0,                                        /* tp_print */
9470 #endif
9471 #ifdef COUNT_ALLOCS
9472     (Py_ssize_t) 0,                           /* tp_allocs */
9473     (Py_ssize_t) 0,                           /* tp_frees */
9474     (Py_ssize_t) 0,                           /* tp_maxalloc */
9475     0,                                        /* tp_prev */
9476     0,                                        /* tp_next */
9477 #endif
9478   },
9479 #if PY_VERSION_HEX >= 0x03050000
9480   {
9481     (unaryfunc) 0,                            /* am_await */
9482     (unaryfunc) 0,                            /* am_aiter */
9483     (unaryfunc) 0,                            /* am_anext */
9484   },
9485 #endif
9486   {
9487     (binaryfunc) 0,                           /* nb_add */
9488     (binaryfunc) 0,                           /* nb_subtract */
9489     (binaryfunc) 0,                           /* nb_multiply */
9490 #if PY_VERSION_HEX < 0x03000000
9491     (binaryfunc) 0,                           /* nb_divide */
9492 #endif
9493     (binaryfunc) 0,                           /* nb_remainder */
9494     (binaryfunc) 0,                           /* nb_divmod */
9495     (ternaryfunc) 0,                          /* nb_power */
9496     (unaryfunc) 0,                            /* nb_negative */
9497     (unaryfunc) 0,                            /* nb_positive */
9498     (unaryfunc) 0,                            /* nb_absolute */
9499     (inquiry) 0,                              /* nb_nonzero */
9500     (unaryfunc) 0,                            /* nb_invert */
9501     (binaryfunc) 0,                           /* nb_lshift */
9502     (binaryfunc) 0,                           /* nb_rshift */
9503     (binaryfunc) 0,                           /* nb_and */
9504     (binaryfunc) 0,                           /* nb_xor */
9505     (binaryfunc) 0,                           /* nb_or */
9506 #if PY_VERSION_HEX < 0x03000000
9507     (coercion) 0,                             /* nb_coerce */
9508 #endif
9509     (unaryfunc) 0,                            /* nb_int */
9510 #if PY_VERSION_HEX >= 0x03000000
9511     (void *) 0,                               /* nb_reserved */
9512 #else
9513     (unaryfunc) 0,                            /* nb_long */
9514 #endif
9515     (unaryfunc) 0,                            /* nb_float */
9516 #if PY_VERSION_HEX < 0x03000000
9517     (unaryfunc) 0,                            /* nb_oct */
9518     (unaryfunc) 0,                            /* nb_hex */
9519 #endif
9520     (binaryfunc) 0,                           /* nb_inplace_add */
9521     (binaryfunc) 0,                           /* nb_inplace_subtract */
9522     (binaryfunc) 0,                           /* nb_inplace_multiply */
9523 #if PY_VERSION_HEX < 0x03000000
9524     (binaryfunc) 0,                           /* nb_inplace_divide */
9525 #endif
9526     (binaryfunc) 0,                           /* nb_inplace_remainder */
9527     (ternaryfunc) 0,                          /* nb_inplace_power */
9528     (binaryfunc) 0,                           /* nb_inplace_lshift */
9529     (binaryfunc) 0,                           /* nb_inplace_rshift */
9530     (binaryfunc) 0,                           /* nb_inplace_and */
9531     (binaryfunc) 0,                           /* nb_inplace_xor */
9532     (binaryfunc) 0,                           /* nb_inplace_or */
9533     (binaryfunc) 0,                           /* nb_floor_divide */
9534     (binaryfunc) 0,                           /* nb_true_divide */
9535     (binaryfunc) 0,                           /* nb_inplace_floor_divide */
9536     (binaryfunc) 0,                           /* nb_inplace_true_divide */
9537     (unaryfunc) 0,                            /* nb_index */
9538 #if PY_VERSION_HEX >= 0x03050000
9539     (binaryfunc) 0,                           /* nb_matrix_multiply */
9540     (binaryfunc) 0,                           /* nb_inplace_matrix_multiply */
9541 #endif
9542   },
9543   {
9544     (lenfunc) 0,                              /* mp_length */
9545     (binaryfunc) 0,                           /* mp_subscript */
9546     (objobjargproc) 0,                        /* mp_ass_subscript */
9547   },
9548   {
9549     (lenfunc) 0,                              /* sq_length */
9550     (binaryfunc) 0,                           /* sq_concat */
9551     (ssizeargfunc) 0,                         /* sq_repeat */
9552     (ssizeargfunc) 0,                         /* sq_item */
9553 #if PY_VERSION_HEX >= 0x03000000
9554     (void *) 0,                               /* was_sq_slice */
9555 #else
9556     (ssizessizeargfunc) 0,                    /* sq_slice */
9557 #endif
9558     (ssizeobjargproc) 0,                      /* sq_ass_item */
9559 #if PY_VERSION_HEX >= 0x03000000
9560     (void *) 0,                               /* was_sq_ass_slice */
9561 #else
9562     (ssizessizeobjargproc) 0,                 /* sq_ass_slice */
9563 #endif
9564     (objobjproc) 0,                           /* sq_contains */
9565     (binaryfunc) 0,                           /* sq_inplace_concat */
9566     (ssizeargfunc) 0,                         /* sq_inplace_repeat */
9567   },
9568   {
9569 #if PY_VERSION_HEX < 0x03000000
9570     (readbufferproc) 0,                       /* bf_getreadbuffer */
9571     (writebufferproc) 0,                      /* bf_getwritebuffer */
9572     (segcountproc) 0,                         /* bf_getsegcount */
9573     (charbufferproc) 0,                       /* bf_getcharbuffer */
9574 #endif
9575     (getbufferproc) 0,                        /* bf_getbuffer */
9576     (releasebufferproc) 0,                    /* bf_releasebuffer */
9577   },
9578     (PyObject *) 0,                           /* ht_name */
9579     (PyObject *) 0,                           /* ht_slots */
9580 #if PY_VERSION_HEX >= 0x03030000
9581     (PyObject *) 0,                           /* ht_qualname */
9582     0,                                        /* ht_cached_keys */
9583 #endif
9584 };
9585 
9586 SWIGINTERN SwigPyClientData SwigPyBuiltin___CameraFilesystemFuncs_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___CameraFilesystemFuncs_type};
9587 
9588 
9589 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
9590 
9591 static swig_type_info _swigt__p_CameraAbilities = {"_p_CameraAbilities", "CameraAbilities *", 0, 0, (void*)0, 0};
9592 static swig_type_info _swigt__p_CameraCaptureType = {"_p_CameraCaptureType", "enum CameraCaptureType *|CameraCaptureType *", 0, 0, (void*)0, 0};
9593 static swig_type_info _swigt__p_CameraDriverStatus = {"_p_CameraDriverStatus", "enum CameraDriverStatus *|CameraDriverStatus *", 0, 0, (void*)0, 0};
9594 static swig_type_info _swigt__p_CameraEventType = {"_p_CameraEventType", "enum CameraEventType *|CameraEventType *", 0, 0, (void*)0, 0};
9595 static swig_type_info _swigt__p_CameraFileAccessType = {"_p_CameraFileAccessType", "enum CameraFileAccessType *|CameraFileAccessType *", 0, 0, (void*)0, 0};
9596 static swig_type_info _swigt__p_CameraFileInfoFields = {"_p_CameraFileInfoFields", "enum CameraFileInfoFields *|CameraFileInfoFields *", 0, 0, (void*)0, 0};
9597 static swig_type_info _swigt__p_CameraFileOperation = {"_p_CameraFileOperation", "enum CameraFileOperation *|CameraFileOperation *", 0, 0, (void*)0, 0};
9598 static swig_type_info _swigt__p_CameraFilePath = {"_p_CameraFilePath", "CameraFilePath *", 0, 0, (void*)0, 0};
9599 static swig_type_info _swigt__p_CameraFilePermissions = {"_p_CameraFilePermissions", "enum CameraFilePermissions *|CameraFilePermissions *", 0, 0, (void*)0, 0};
9600 static swig_type_info _swigt__p_CameraFileStatus = {"_p_CameraFileStatus", "enum CameraFileStatus *|CameraFileStatus *", 0, 0, (void*)0, 0};
9601 static swig_type_info _swigt__p_CameraFileType = {"_p_CameraFileType", "enum CameraFileType *|CameraFileType *", 0, 0, (void*)0, 0};
9602 static swig_type_info _swigt__p_CameraFolderOperation = {"_p_CameraFolderOperation", "enum CameraFolderOperation *|CameraFolderOperation *", 0, 0, (void*)0, 0};
9603 static swig_type_info _swigt__p_CameraOperation = {"_p_CameraOperation", "enum CameraOperation *|CameraOperation *", 0, 0, (void*)0, 0};
9604 static swig_type_info _swigt__p_CameraStorageAccessType = {"_p_CameraStorageAccessType", "enum CameraStorageAccessType *|CameraStorageAccessType *", 0, 0, (void*)0, 0};
9605 static swig_type_info _swigt__p_CameraStorageFilesystemType = {"_p_CameraStorageFilesystemType", "enum CameraStorageFilesystemType *|CameraStorageFilesystemType *", 0, 0, (void*)0, 0};
9606 static swig_type_info _swigt__p_CameraStorageInfoFields = {"_p_CameraStorageInfoFields", "enum CameraStorageInfoFields *|CameraStorageInfoFields *", 0, 0, (void*)0, 0};
9607 static swig_type_info _swigt__p_CameraStorageType = {"_p_CameraStorageType", "enum CameraStorageType *|CameraStorageType *", 0, 0, (void*)0, 0};
9608 static swig_type_info _swigt__p_CameraText = {"_p_CameraText", "CameraText *", 0, 0, (void*)0, 0};
9609 static swig_type_info _swigt__p_CameraWidgetType = {"_p_CameraWidgetType", "enum CameraWidgetType *|CameraWidgetType *", 0, 0, (void*)0, 0};
9610 static swig_type_info _swigt__p_GPLogLevel = {"_p_GPLogLevel", "enum GPLogLevel *|GPLogLevel *", 0, 0, (void*)0, 0};
9611 static swig_type_info _swigt__p_GPPortType = {"_p_GPPortType", "enum GPPortType *|GPPortType *", 0, 0, (void*)0, 0};
9612 static swig_type_info _swigt__p_GPVersionVerbosity = {"_p_GPVersionVerbosity", "enum GPVersionVerbosity *|GPVersionVerbosity *", 0, 0, (void*)0, 0};
9613 static swig_type_info _swigt__p_GphotoDeviceType = {"_p_GphotoDeviceType", "enum GphotoDeviceType *|GphotoDeviceType *", 0, 0, (void*)0, 0};
9614 static swig_type_info _swigt__p_SwigPyObject = {"_p_SwigPyObject", "SwigPyObject *", 0, 0, (void*)0, 0};
9615 static swig_type_info _swigt__p__Camera = {"_p__Camera", "struct _Camera *|Camera *", 0, 0, (void*)0, 0};
9616 static swig_type_info _swigt__p__CameraAbilitiesList = {"_p__CameraAbilitiesList", "struct _CameraAbilitiesList *|CameraAbilitiesList *", 0, 0, (void*)0, 0};
9617 static swig_type_info _swigt__p__CameraFile = {"_p__CameraFile", "struct _CameraFile *|CameraFile *", 0, 0, (void*)0, 0};
9618 static swig_type_info _swigt__p__CameraFileHandler = {"_p__CameraFileHandler", "struct _CameraFileHandler *|CameraFileHandler *", 0, 0, (void*)0, 0};
9619 static swig_type_info _swigt__p__CameraFileInfo = {"_p__CameraFileInfo", "struct _CameraFileInfo *|_CameraFileInfo *|CameraFileInfo *", 0, 0, (void*)&SwigPyBuiltin___CameraFileInfo_clientdata, 0};
9620 static swig_type_info _swigt__p__CameraFileInfoAudio = {"_p__CameraFileInfoAudio", "struct _CameraFileInfoAudio *|_CameraFileInfoAudio *|CameraFileInfoAudio *", 0, 0, (void*)&SwigPyBuiltin___CameraFileInfoAudio_clientdata, 0};
9621 static swig_type_info _swigt__p__CameraFileInfoFile = {"_p__CameraFileInfoFile", "struct _CameraFileInfoFile *|_CameraFileInfoFile *|CameraFileInfoFile *", 0, 0, (void*)&SwigPyBuiltin___CameraFileInfoFile_clientdata, 0};
9622 static swig_type_info _swigt__p__CameraFileInfoPreview = {"_p__CameraFileInfoPreview", "struct _CameraFileInfoPreview *|_CameraFileInfoPreview *|CameraFileInfoPreview *", 0, 0, (void*)&SwigPyBuiltin___CameraFileInfoPreview_clientdata, 0};
9623 static swig_type_info _swigt__p__CameraFilesystem = {"_p__CameraFilesystem", "struct _CameraFilesystem *|_CameraFilesystem *|CameraFilesystem *", 0, 0, (void*)&SwigPyBuiltin___CameraFilesystem_clientdata, 0};
9624 static swig_type_info _swigt__p__CameraFilesystemFuncs = {"_p__CameraFilesystemFuncs", "struct _CameraFilesystemFuncs *|CameraFilesystemFuncs *|_CameraFilesystemFuncs *", 0, 0, (void*)&SwigPyBuiltin___CameraFilesystemFuncs_clientdata, 0};
9625 static swig_type_info _swigt__p__CameraFunctions = {"_p__CameraFunctions", "struct _CameraFunctions *|CameraFunctions *", 0, 0, (void*)0, 0};
9626 static swig_type_info _swigt__p__CameraList = {"_p__CameraList", "struct _CameraList *|CameraList *", 0, 0, (void*)0, 0};
9627 static swig_type_info _swigt__p__CameraPrivateCore = {"_p__CameraPrivateCore", "struct _CameraPrivateCore *|CameraPrivateCore *", 0, 0, (void*)0, 0};
9628 static swig_type_info _swigt__p__CameraPrivateLibrary = {"_p__CameraPrivateLibrary", "struct _CameraPrivateLibrary *|CameraPrivateLibrary *", 0, 0, (void*)0, 0};
9629 static swig_type_info _swigt__p__CameraStorageInformation = {"_p__CameraStorageInformation", "struct _CameraStorageInformation *|_CameraStorageInformation *|CameraStorageInformation *", 0, 0, (void*)&SwigPyBuiltin___CameraStorageInformation_clientdata, 0};
9630 static swig_type_info _swigt__p__CameraWidget = {"_p__CameraWidget", "struct _CameraWidget *|CameraWidget *", 0, 0, (void*)0, 0};
9631 static swig_type_info _swigt__p__GPContext = {"_p__GPContext", "struct _GPContext *|GPContext *", 0, 0, (void*)0, 0};
9632 static swig_type_info _swigt__p__GPContextFeedback = {"_p__GPContextFeedback", "enum _GPContextFeedback *|GPContextFeedback *", 0, 0, (void*)0, 0};
9633 static swig_type_info _swigt__p__GPPortInfoList = {"_p__GPPortInfoList", "struct _GPPortInfoList *|GPPortInfoList *", 0, 0, (void*)0, 0};
9634 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
9635 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int", "CameraFilesystemStorageInfoFunc|int (*)(struct _CameraFilesystem *,struct _CameraStorageInformation **,int *,void *,struct _GPContext *)", 0, 0, (void*)0, 0};
9636 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int", "int (*)(struct _CameraFilesystem *,char const *,char const *,enum CameraFileType,struct _CameraFile *,void *,struct _GPContext *)|CameraFilesystemPutFileFunc|CameraFilesystemGetFileFunc", 0, 0, (void*)0, 0};
9637 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int", "int (*)(struct _CameraFilesystem *,char const *,char const *,enum CameraFileType,unsigned long long,char *,unsigned long long *,void *,struct _GPContext *)|CameraFilesystemReadFileFunc", 0, 0, (void*)0, 0};
9638 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int", "int (*)(struct _CameraFilesystem *,char const *,char const *,struct _CameraFileInfo *,void *,struct _GPContext *)|CameraFilesystemGetInfoFunc", 0, 0, (void*)0, 0};
9639 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int", "int (*)(struct _CameraFilesystem *,char const *,char const *,void *,struct _GPContext *)|CameraFilesystemDirFunc|CameraFilesystemDeleteFileFunc", 0, 0, (void*)0, 0};
9640 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int", "int (*)(struct _CameraFilesystem *,char const *,char const *,struct _CameraFileInfo,void *,struct _GPContext *)|CameraFilesystemSetInfoFunc", 0, 0, (void*)0, 0};
9641 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int", "CameraFilesystemListFunc|int (*)(struct _CameraFilesystem *,char const *,struct _CameraList *,void *,struct _GPContext *)", 0, 0, (void*)0, 0};
9642 static swig_type_info _swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int = {"_p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int", "CameraFilesystemDeleteAllFunc|int (*)(struct _CameraFilesystem *,char const *,void *,struct _GPContext *)", 0, 0, (void*)0, 0};
9643 static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
9644 static swig_type_info _swigt__p_long = {"_p_long", "long *|time_t *", 0, 0, (void*)0, 0};
9645 static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
9646 static swig_type_info _swigt__p_p__CameraFilesystem = {"_p_p__CameraFilesystem", "struct _CameraFilesystem **|CameraFilesystem **", 0, 0, (void*)0, 0};
9647 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
9648 static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0};
9649 static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
9650 static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
9651 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
9652 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0};
9653 static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
9654 static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
9655 
9656 static swig_type_info *swig_type_initial[] = {
9657   &_swigt__p_CameraAbilities,
9658   &_swigt__p_CameraCaptureType,
9659   &_swigt__p_CameraDriverStatus,
9660   &_swigt__p_CameraEventType,
9661   &_swigt__p_CameraFileAccessType,
9662   &_swigt__p_CameraFileInfoFields,
9663   &_swigt__p_CameraFileOperation,
9664   &_swigt__p_CameraFilePath,
9665   &_swigt__p_CameraFilePermissions,
9666   &_swigt__p_CameraFileStatus,
9667   &_swigt__p_CameraFileType,
9668   &_swigt__p_CameraFolderOperation,
9669   &_swigt__p_CameraOperation,
9670   &_swigt__p_CameraStorageAccessType,
9671   &_swigt__p_CameraStorageFilesystemType,
9672   &_swigt__p_CameraStorageInfoFields,
9673   &_swigt__p_CameraStorageType,
9674   &_swigt__p_CameraText,
9675   &_swigt__p_CameraWidgetType,
9676   &_swigt__p_GPLogLevel,
9677   &_swigt__p_GPPortType,
9678   &_swigt__p_GPVersionVerbosity,
9679   &_swigt__p_GphotoDeviceType,
9680   &_swigt__p_SwigPyObject,
9681   &_swigt__p__Camera,
9682   &_swigt__p__CameraAbilitiesList,
9683   &_swigt__p__CameraFile,
9684   &_swigt__p__CameraFileHandler,
9685   &_swigt__p__CameraFileInfo,
9686   &_swigt__p__CameraFileInfoAudio,
9687   &_swigt__p__CameraFileInfoFile,
9688   &_swigt__p__CameraFileInfoPreview,
9689   &_swigt__p__CameraFilesystem,
9690   &_swigt__p__CameraFilesystemFuncs,
9691   &_swigt__p__CameraFunctions,
9692   &_swigt__p__CameraList,
9693   &_swigt__p__CameraPrivateCore,
9694   &_swigt__p__CameraPrivateLibrary,
9695   &_swigt__p__CameraStorageInformation,
9696   &_swigt__p__CameraWidget,
9697   &_swigt__p__GPContext,
9698   &_swigt__p__GPContextFeedback,
9699   &_swigt__p__GPPortInfoList,
9700   &_swigt__p_char,
9701   &_swigt__p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int,
9702   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int,
9703   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int,
9704   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int,
9705   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int,
9706   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int,
9707   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int,
9708   &_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int,
9709   &_swigt__p_int,
9710   &_swigt__p_long,
9711   &_swigt__p_long_long,
9712   &_swigt__p_p__CameraFilesystem,
9713   &_swigt__p_p_char,
9714   &_swigt__p_p_void,
9715   &_swigt__p_short,
9716   &_swigt__p_signed_char,
9717   &_swigt__p_unsigned_char,
9718   &_swigt__p_unsigned_int,
9719   &_swigt__p_unsigned_long_long,
9720   &_swigt__p_unsigned_short,
9721 };
9722 
9723 static swig_cast_info _swigc__p_CameraAbilities[] = {  {&_swigt__p_CameraAbilities, 0, 0, 0},{0, 0, 0, 0}};
9724 static swig_cast_info _swigc__p_CameraCaptureType[] = {  {&_swigt__p_CameraCaptureType, 0, 0, 0},{0, 0, 0, 0}};
9725 static swig_cast_info _swigc__p_CameraDriverStatus[] = {  {&_swigt__p_CameraDriverStatus, 0, 0, 0},{0, 0, 0, 0}};
9726 static swig_cast_info _swigc__p_CameraEventType[] = {  {&_swigt__p_CameraEventType, 0, 0, 0},{0, 0, 0, 0}};
9727 static swig_cast_info _swigc__p_CameraFileAccessType[] = {  {&_swigt__p_CameraFileAccessType, 0, 0, 0},{0, 0, 0, 0}};
9728 static swig_cast_info _swigc__p_CameraFileInfoFields[] = {  {&_swigt__p_CameraFileInfoFields, 0, 0, 0},{0, 0, 0, 0}};
9729 static swig_cast_info _swigc__p_CameraFileOperation[] = {  {&_swigt__p_CameraFileOperation, 0, 0, 0},{0, 0, 0, 0}};
9730 static swig_cast_info _swigc__p_CameraFilePath[] = {  {&_swigt__p_CameraFilePath, 0, 0, 0},{0, 0, 0, 0}};
9731 static swig_cast_info _swigc__p_CameraFilePermissions[] = {  {&_swigt__p_CameraFilePermissions, 0, 0, 0},{0, 0, 0, 0}};
9732 static swig_cast_info _swigc__p_CameraFileStatus[] = {  {&_swigt__p_CameraFileStatus, 0, 0, 0},{0, 0, 0, 0}};
9733 static swig_cast_info _swigc__p_CameraFileType[] = {  {&_swigt__p_CameraFileType, 0, 0, 0},{0, 0, 0, 0}};
9734 static swig_cast_info _swigc__p_CameraFolderOperation[] = {  {&_swigt__p_CameraFolderOperation, 0, 0, 0},{0, 0, 0, 0}};
9735 static swig_cast_info _swigc__p_CameraOperation[] = {  {&_swigt__p_CameraOperation, 0, 0, 0},{0, 0, 0, 0}};
9736 static swig_cast_info _swigc__p_CameraStorageAccessType[] = {  {&_swigt__p_CameraStorageAccessType, 0, 0, 0},{0, 0, 0, 0}};
9737 static swig_cast_info _swigc__p_CameraStorageFilesystemType[] = {  {&_swigt__p_CameraStorageFilesystemType, 0, 0, 0},{0, 0, 0, 0}};
9738 static swig_cast_info _swigc__p_CameraStorageInfoFields[] = {  {&_swigt__p_CameraStorageInfoFields, 0, 0, 0},{0, 0, 0, 0}};
9739 static swig_cast_info _swigc__p_CameraStorageType[] = {  {&_swigt__p_CameraStorageType, 0, 0, 0},{0, 0, 0, 0}};
9740 static swig_cast_info _swigc__p_CameraText[] = {  {&_swigt__p_CameraText, 0, 0, 0},{0, 0, 0, 0}};
9741 static swig_cast_info _swigc__p_CameraWidgetType[] = {  {&_swigt__p_CameraWidgetType, 0, 0, 0},{0, 0, 0, 0}};
9742 static swig_cast_info _swigc__p_GPLogLevel[] = {  {&_swigt__p_GPLogLevel, 0, 0, 0},{0, 0, 0, 0}};
9743 static swig_cast_info _swigc__p_GPPortType[] = {  {&_swigt__p_GPPortType, 0, 0, 0},{0, 0, 0, 0}};
9744 static swig_cast_info _swigc__p_GPVersionVerbosity[] = {  {&_swigt__p_GPVersionVerbosity, 0, 0, 0},{0, 0, 0, 0}};
9745 static swig_cast_info _swigc__p_GphotoDeviceType[] = {  {&_swigt__p_GphotoDeviceType, 0, 0, 0},{0, 0, 0, 0}};
9746 static swig_cast_info _swigc__p_SwigPyObject[] = {  {&_swigt__p_SwigPyObject, 0, 0, 0},{0, 0, 0, 0}};
9747 static swig_cast_info _swigc__p__Camera[] = {  {&_swigt__p__Camera, 0, 0, 0},{0, 0, 0, 0}};
9748 static swig_cast_info _swigc__p__CameraAbilitiesList[] = {  {&_swigt__p__CameraAbilitiesList, 0, 0, 0},{0, 0, 0, 0}};
9749 static swig_cast_info _swigc__p__CameraFile[] = {  {&_swigt__p__CameraFile, 0, 0, 0},{0, 0, 0, 0}};
9750 static swig_cast_info _swigc__p__CameraFileHandler[] = {  {&_swigt__p__CameraFileHandler, 0, 0, 0},{0, 0, 0, 0}};
9751 static swig_cast_info _swigc__p__CameraFileInfo[] = {  {&_swigt__p__CameraFileInfo, 0, 0, 0},{0, 0, 0, 0}};
9752 static swig_cast_info _swigc__p__CameraFileInfoAudio[] = {  {&_swigt__p__CameraFileInfoAudio, 0, 0, 0},{0, 0, 0, 0}};
9753 static swig_cast_info _swigc__p__CameraFileInfoFile[] = {  {&_swigt__p__CameraFileInfoFile, 0, 0, 0},{0, 0, 0, 0}};
9754 static swig_cast_info _swigc__p__CameraFileInfoPreview[] = {  {&_swigt__p__CameraFileInfoPreview, 0, 0, 0},{0, 0, 0, 0}};
9755 static swig_cast_info _swigc__p__CameraFilesystem[] = {  {&_swigt__p__CameraFilesystem, 0, 0, 0},{0, 0, 0, 0}};
9756 static swig_cast_info _swigc__p__CameraFilesystemFuncs[] = {  {&_swigt__p__CameraFilesystemFuncs, 0, 0, 0},{0, 0, 0, 0}};
9757 static swig_cast_info _swigc__p__CameraFunctions[] = {  {&_swigt__p__CameraFunctions, 0, 0, 0},{0, 0, 0, 0}};
9758 static swig_cast_info _swigc__p__CameraList[] = {  {&_swigt__p__CameraList, 0, 0, 0},{0, 0, 0, 0}};
9759 static swig_cast_info _swigc__p__CameraPrivateCore[] = {  {&_swigt__p__CameraPrivateCore, 0, 0, 0},{0, 0, 0, 0}};
9760 static swig_cast_info _swigc__p__CameraPrivateLibrary[] = {  {&_swigt__p__CameraPrivateLibrary, 0, 0, 0},{0, 0, 0, 0}};
9761 static swig_cast_info _swigc__p__CameraStorageInformation[] = {  {&_swigt__p__CameraStorageInformation, 0, 0, 0},{0, 0, 0, 0}};
9762 static swig_cast_info _swigc__p__CameraWidget[] = {  {&_swigt__p__CameraWidget, 0, 0, 0},{0, 0, 0, 0}};
9763 static swig_cast_info _swigc__p__GPContext[] = {  {&_swigt__p__GPContext, 0, 0, 0},{0, 0, 0, 0}};
9764 static swig_cast_info _swigc__p__GPContextFeedback[] = {  {&_swigt__p__GPContextFeedback, 0, 0, 0},{0, 0, 0, 0}};
9765 static swig_cast_info _swigc__p__GPPortInfoList[] = {  {&_swigt__p__GPPortInfoList, 0, 0, 0},{0, 0, 0, 0}};
9766 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
9767 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9768 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9769 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9770 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9771 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9772 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9773 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9774 static swig_cast_info _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int[] = {  {&_swigt__p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int, 0, 0, 0},{0, 0, 0, 0}};
9775 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
9776 static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
9777 static swig_cast_info _swigc__p_long_long[] = {  {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
9778 static swig_cast_info _swigc__p_p__CameraFilesystem[] = {  {&_swigt__p_p__CameraFilesystem, 0, 0, 0},{0, 0, 0, 0}};
9779 static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
9780 static swig_cast_info _swigc__p_p_void[] = {  {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
9781 static swig_cast_info _swigc__p_short[] = {  {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
9782 static swig_cast_info _swigc__p_signed_char[] = {  {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
9783 static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
9784 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
9785 static swig_cast_info _swigc__p_unsigned_long_long[] = {  {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
9786 static swig_cast_info _swigc__p_unsigned_short[] = {  {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
9787 
9788 static swig_cast_info *swig_cast_initial[] = {
9789   _swigc__p_CameraAbilities,
9790   _swigc__p_CameraCaptureType,
9791   _swigc__p_CameraDriverStatus,
9792   _swigc__p_CameraEventType,
9793   _swigc__p_CameraFileAccessType,
9794   _swigc__p_CameraFileInfoFields,
9795   _swigc__p_CameraFileOperation,
9796   _swigc__p_CameraFilePath,
9797   _swigc__p_CameraFilePermissions,
9798   _swigc__p_CameraFileStatus,
9799   _swigc__p_CameraFileType,
9800   _swigc__p_CameraFolderOperation,
9801   _swigc__p_CameraOperation,
9802   _swigc__p_CameraStorageAccessType,
9803   _swigc__p_CameraStorageFilesystemType,
9804   _swigc__p_CameraStorageInfoFields,
9805   _swigc__p_CameraStorageType,
9806   _swigc__p_CameraText,
9807   _swigc__p_CameraWidgetType,
9808   _swigc__p_GPLogLevel,
9809   _swigc__p_GPPortType,
9810   _swigc__p_GPVersionVerbosity,
9811   _swigc__p_GphotoDeviceType,
9812   _swigc__p_SwigPyObject,
9813   _swigc__p__Camera,
9814   _swigc__p__CameraAbilitiesList,
9815   _swigc__p__CameraFile,
9816   _swigc__p__CameraFileHandler,
9817   _swigc__p__CameraFileInfo,
9818   _swigc__p__CameraFileInfoAudio,
9819   _swigc__p__CameraFileInfoFile,
9820   _swigc__p__CameraFileInfoPreview,
9821   _swigc__p__CameraFilesystem,
9822   _swigc__p__CameraFilesystemFuncs,
9823   _swigc__p__CameraFunctions,
9824   _swigc__p__CameraList,
9825   _swigc__p__CameraPrivateCore,
9826   _swigc__p__CameraPrivateLibrary,
9827   _swigc__p__CameraStorageInformation,
9828   _swigc__p__CameraWidget,
9829   _swigc__p__GPContext,
9830   _swigc__p__GPContextFeedback,
9831   _swigc__p__GPPortInfoList,
9832   _swigc__p_char,
9833   _swigc__p_f_p_struct__CameraFilesystem_p_p_struct__CameraStorageInformation_p_int_p_void_p_struct__GPContext__int,
9834   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_p_struct__CameraFile_p_void_p_struct__GPContext__int,
9835   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum_CameraFileType_unsigned_long_long_p_char_p_unsigned_long_long_p_void_p_struct__GPContext__int,
9836   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int,
9837   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int,
9838   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int,
9839   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int,
9840   _swigc__p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int,
9841   _swigc__p_int,
9842   _swigc__p_long,
9843   _swigc__p_long_long,
9844   _swigc__p_p__CameraFilesystem,
9845   _swigc__p_p_char,
9846   _swigc__p_p_void,
9847   _swigc__p_short,
9848   _swigc__p_signed_char,
9849   _swigc__p_unsigned_char,
9850   _swigc__p_unsigned_int,
9851   _swigc__p_unsigned_long_long,
9852   _swigc__p_unsigned_short,
9853 };
9854 
9855 
9856 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9857 
9858 static swig_const_info swig_const_table[] = {
9859 {0, 0, 0, 0.0, 0, 0}};
9860 
9861 #ifdef __cplusplus
9862 }
9863 #endif
9864 static PyTypeObject *builtin_bases[2];
9865 
9866 /* -----------------------------------------------------------------------------
9867  * Type initialization:
9868  * This problem is tough by the requirement that no dynamic
9869  * memory is used. Also, since swig_type_info structures store pointers to
9870  * swig_cast_info structures and swig_cast_info structures store pointers back
9871  * to swig_type_info structures, we need some lookup code at initialization.
9872  * The idea is that swig generates all the structures that are needed.
9873  * The runtime then collects these partially filled structures.
9874  * The SWIG_InitializeModule function takes these initial arrays out of
9875  * swig_module, and does all the lookup, filling in the swig_module.types
9876  * array with the correct data and linking the correct swig_cast_info
9877  * structures together.
9878  *
9879  * The generated swig_type_info structures are assigned statically to an initial
9880  * array. We just loop through that array, and handle each type individually.
9881  * First we lookup if this type has been already loaded, and if so, use the
9882  * loaded structure instead of the generated one. Then we have to fill in the
9883  * cast linked list. The cast data is initially stored in something like a
9884  * two-dimensional array. Each row corresponds to a type (there are the same
9885  * number of rows as there are in the swig_type_initial array). Each entry in
9886  * a column is one of the swig_cast_info structures for that type.
9887  * The cast_initial array is actually an array of arrays, because each row has
9888  * a variable number of columns. So to actually build the cast linked list,
9889  * we find the array of casts associated with the type, and loop through it
9890  * adding the casts to the list. The one last trick we need to do is making
9891  * sure the type pointer in the swig_cast_info struct is correct.
9892  *
9893  * First off, we lookup the cast->type name to see if it is already loaded.
9894  * There are three cases to handle:
9895  *  1) If the cast->type has already been loaded AND the type we are adding
9896  *     casting info to has not been loaded (it is in this module), THEN we
9897  *     replace the cast->type pointer with the type pointer that has already
9898  *     been loaded.
9899  *  2) If BOTH types (the one we are adding casting info to, and the
9900  *     cast->type) are loaded, THEN the cast info has already been loaded by
9901  *     the previous module so we just ignore it.
9902  *  3) Finally, if cast->type has not already been loaded, then we add that
9903  *     swig_cast_info to the linked list (because the cast->type) pointer will
9904  *     be correct.
9905  * ----------------------------------------------------------------------------- */
9906 
9907 #ifdef __cplusplus
9908 extern "C" {
9909 #if 0
9910 } /* c-mode */
9911 #endif
9912 #endif
9913 
9914 #if 0
9915 #define SWIGRUNTIME_DEBUG
9916 #endif
9917 
9918 
9919 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)9920 SWIG_InitializeModule(void *clientdata) {
9921   size_t i;
9922   swig_module_info *module_head, *iter;
9923   int init;
9924 
9925   /* check to see if the circular list has been setup, if not, set it up */
9926   if (swig_module.next==0) {
9927     /* Initialize the swig_module */
9928     swig_module.type_initial = swig_type_initial;
9929     swig_module.cast_initial = swig_cast_initial;
9930     swig_module.next = &swig_module;
9931     init = 1;
9932   } else {
9933     init = 0;
9934   }
9935 
9936   /* Try and load any already created modules */
9937   module_head = SWIG_GetModule(clientdata);
9938   if (!module_head) {
9939     /* This is the first module loaded for this interpreter */
9940     /* so set the swig module into the interpreter */
9941     SWIG_SetModule(clientdata, &swig_module);
9942   } else {
9943     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
9944     iter=module_head;
9945     do {
9946       if (iter==&swig_module) {
9947         /* Our module is already in the list, so there's nothing more to do. */
9948         return;
9949       }
9950       iter=iter->next;
9951     } while (iter!= module_head);
9952 
9953     /* otherwise we must add our module into the list */
9954     swig_module.next = module_head->next;
9955     module_head->next = &swig_module;
9956   }
9957 
9958   /* When multiple interpreters are used, a module could have already been initialized in
9959        a different interpreter, but not yet have a pointer in this interpreter.
9960        In this case, we do not want to continue adding types... everything should be
9961        set up already */
9962   if (init == 0) return;
9963 
9964   /* Now work on filling in swig_module.types */
9965 #ifdef SWIGRUNTIME_DEBUG
9966   printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
9967 #endif
9968   for (i = 0; i < swig_module.size; ++i) {
9969     swig_type_info *type = 0;
9970     swig_type_info *ret;
9971     swig_cast_info *cast;
9972 
9973 #ifdef SWIGRUNTIME_DEBUG
9974     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
9975 #endif
9976 
9977     /* if there is another module already loaded */
9978     if (swig_module.next != &swig_module) {
9979       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
9980     }
9981     if (type) {
9982       /* Overwrite clientdata field */
9983 #ifdef SWIGRUNTIME_DEBUG
9984       printf("SWIG_InitializeModule: found type %s\n", type->name);
9985 #endif
9986       if (swig_module.type_initial[i]->clientdata) {
9987         type->clientdata = swig_module.type_initial[i]->clientdata;
9988 #ifdef SWIGRUNTIME_DEBUG
9989         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
9990 #endif
9991       }
9992     } else {
9993       type = swig_module.type_initial[i];
9994     }
9995 
9996     /* Insert casting types */
9997     cast = swig_module.cast_initial[i];
9998     while (cast->type) {
9999       /* Don't need to add information already in the list */
10000       ret = 0;
10001 #ifdef SWIGRUNTIME_DEBUG
10002       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
10003 #endif
10004       if (swig_module.next != &swig_module) {
10005         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
10006 #ifdef SWIGRUNTIME_DEBUG
10007         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
10008 #endif
10009       }
10010       if (ret) {
10011         if (type == swig_module.type_initial[i]) {
10012 #ifdef SWIGRUNTIME_DEBUG
10013           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
10014 #endif
10015           cast->type = ret;
10016           ret = 0;
10017         } else {
10018           /* Check for casting already in the list */
10019           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
10020 #ifdef SWIGRUNTIME_DEBUG
10021           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
10022 #endif
10023           if (!ocast) ret = 0;
10024         }
10025       }
10026 
10027       if (!ret) {
10028 #ifdef SWIGRUNTIME_DEBUG
10029         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
10030 #endif
10031         if (type->cast) {
10032           type->cast->prev = cast;
10033           cast->next = type->cast;
10034         }
10035         type->cast = cast;
10036       }
10037       cast++;
10038     }
10039     /* Set entry in modules->types array equal to the type */
10040     swig_module.types[i] = type;
10041   }
10042   swig_module.types[i] = 0;
10043 
10044 #ifdef SWIGRUNTIME_DEBUG
10045   printf("**** SWIG_InitializeModule: Cast List ******\n");
10046   for (i = 0; i < swig_module.size; ++i) {
10047     int j = 0;
10048     swig_cast_info *cast = swig_module.cast_initial[i];
10049     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
10050     while (cast->type) {
10051       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
10052       cast++;
10053       ++j;
10054     }
10055     printf("---- Total casts: %d\n",j);
10056   }
10057   printf("**** SWIG_InitializeModule: Cast List ******\n");
10058 #endif
10059 }
10060 
10061 /* This function will propagate the clientdata field of type to
10062 * any new swig_type_info structures that have been added into the list
10063 * of equivalent types.  It is like calling
10064 * SWIG_TypeClientData(type, clientdata) a second time.
10065 */
10066 SWIGRUNTIME void
SWIG_PropagateClientData(void)10067 SWIG_PropagateClientData(void) {
10068   size_t i;
10069   swig_cast_info *equiv;
10070   static int init_run = 0;
10071 
10072   if (init_run) return;
10073   init_run = 1;
10074 
10075   for (i = 0; i < swig_module.size; i++) {
10076     if (swig_module.types[i]->clientdata) {
10077       equiv = swig_module.types[i]->cast;
10078       while (equiv) {
10079         if (!equiv->converter) {
10080           if (equiv->type && !equiv->type->clientdata)
10081           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
10082         }
10083         equiv = equiv->next;
10084       }
10085     }
10086   }
10087 }
10088 
10089 #ifdef __cplusplus
10090 #if 0
10091 {
10092   /* c-mode */
10093 #endif
10094 }
10095 #endif
10096 
10097 
10098 
10099 #ifdef __cplusplus
10100 extern "C" {
10101 #endif
10102 
10103   /* Python-specific SWIG API */
10104 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
10105 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
10106 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
10107 
10108   /* -----------------------------------------------------------------------------
10109    * global variable support code.
10110    * ----------------------------------------------------------------------------- */
10111 
10112   typedef struct swig_globalvar {
10113     char       *name;                  /* Name of global variable */
10114     PyObject *(*get_attr)(void);       /* Return the current value */
10115     int       (*set_attr)(PyObject *); /* Set the value */
10116     struct swig_globalvar *next;
10117   } swig_globalvar;
10118 
10119   typedef struct swig_varlinkobject {
10120     PyObject_HEAD
10121     swig_globalvar *vars;
10122   } swig_varlinkobject;
10123 
10124   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))10125   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
10126 #if PY_VERSION_HEX >= 0x03000000
10127     return PyUnicode_InternFromString("<Swig global variables>");
10128 #else
10129     return PyString_FromString("<Swig global variables>");
10130 #endif
10131   }
10132 
10133   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)10134   swig_varlink_str(swig_varlinkobject *v) {
10135 #if PY_VERSION_HEX >= 0x03000000
10136     PyObject *str = PyUnicode_InternFromString("(");
10137     PyObject *tail;
10138     PyObject *joined;
10139     swig_globalvar *var;
10140     for (var = v->vars; var; var=var->next) {
10141       tail = PyUnicode_FromString(var->name);
10142       joined = PyUnicode_Concat(str, tail);
10143       Py_DecRef(str);
10144       Py_DecRef(tail);
10145       str = joined;
10146       if (var->next) {
10147         tail = PyUnicode_InternFromString(", ");
10148         joined = PyUnicode_Concat(str, tail);
10149         Py_DecRef(str);
10150         Py_DecRef(tail);
10151         str = joined;
10152       }
10153     }
10154     tail = PyUnicode_InternFromString(")");
10155     joined = PyUnicode_Concat(str, tail);
10156     Py_DecRef(str);
10157     Py_DecRef(tail);
10158     str = joined;
10159 #else
10160     PyObject *str = PyString_FromString("(");
10161     swig_globalvar *var;
10162     for (var = v->vars; var; var=var->next) {
10163       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
10164       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
10165     }
10166     PyString_ConcatAndDel(&str,PyString_FromString(")"));
10167 #endif
10168     return str;
10169   }
10170 
10171   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)10172   swig_varlink_dealloc(swig_varlinkobject *v) {
10173     swig_globalvar *var = v->vars;
10174     while (var) {
10175       swig_globalvar *n = var->next;
10176       free(var->name);
10177       free(var);
10178       var = n;
10179     }
10180   }
10181 
10182   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)10183   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
10184     PyObject *res = NULL;
10185     swig_globalvar *var = v->vars;
10186     while (var) {
10187       if (strcmp(var->name,n) == 0) {
10188         res = (*var->get_attr)();
10189         break;
10190       }
10191       var = var->next;
10192     }
10193     if (res == NULL && !PyErr_Occurred()) {
10194       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
10195     }
10196     return res;
10197   }
10198 
10199   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)10200   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
10201     int res = 1;
10202     swig_globalvar *var = v->vars;
10203     while (var) {
10204       if (strcmp(var->name,n) == 0) {
10205         res = (*var->set_attr)(p);
10206         break;
10207       }
10208       var = var->next;
10209     }
10210     if (res == 1 && !PyErr_Occurred()) {
10211       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
10212     }
10213     return res;
10214   }
10215 
10216   SWIGINTERN PyTypeObject*
swig_varlink_type(void)10217   swig_varlink_type(void) {
10218     static char varlink__doc__[] = "Swig var link object";
10219     static PyTypeObject varlink_type;
10220     static int type_init = 0;
10221     if (!type_init) {
10222       const PyTypeObject tmp = {
10223 #if PY_VERSION_HEX >= 0x03000000
10224         PyVarObject_HEAD_INIT(NULL, 0)
10225 #else
10226         PyObject_HEAD_INIT(NULL)
10227         0,                                  /* ob_size */
10228 #endif
10229         "swigvarlink",                      /* tp_name */
10230         sizeof(swig_varlinkobject),         /* tp_basicsize */
10231         0,                                  /* tp_itemsize */
10232         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
10233         0,                                  /* tp_print */
10234         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
10235         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
10236         0,                                  /* tp_compare */
10237         (reprfunc) swig_varlink_repr,       /* tp_repr */
10238         0,                                  /* tp_as_number */
10239         0,                                  /* tp_as_sequence */
10240         0,                                  /* tp_as_mapping */
10241         0,                                  /* tp_hash */
10242         0,                                  /* tp_call */
10243         (reprfunc) swig_varlink_str,        /* tp_str */
10244         0,                                  /* tp_getattro */
10245         0,                                  /* tp_setattro */
10246         0,                                  /* tp_as_buffer */
10247         0,                                  /* tp_flags */
10248         varlink__doc__,                     /* tp_doc */
10249         0,                                  /* tp_traverse */
10250         0,                                  /* tp_clear */
10251         0,                                  /* tp_richcompare */
10252         0,                                  /* tp_weaklistoffset */
10253         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
10254         0,                                  /* tp_del */
10255         0,                                  /* tp_version_tag */
10256 #if PY_VERSION_HEX >= 0x03040000
10257         0,                                  /* tp_finalize */
10258 #endif
10259 #if PY_VERSION_HEX >= 0x03080000
10260         0,                                  /* tp_vectorcall */
10261 #endif
10262 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
10263         0,                                  /* tp_print */
10264 #endif
10265 #ifdef COUNT_ALLOCS
10266         0,                                  /* tp_allocs */
10267         0,                                  /* tp_frees */
10268         0,                                  /* tp_maxalloc */
10269         0,                                  /* tp_prev */
10270         0                                   /* tp_next */
10271 #endif
10272       };
10273       varlink_type = tmp;
10274       type_init = 1;
10275       if (PyType_Ready(&varlink_type) < 0)
10276       return NULL;
10277     }
10278     return &varlink_type;
10279   }
10280 
10281   /* Create a variable linking object for use later */
10282   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)10283   SWIG_Python_newvarlink(void) {
10284     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
10285     if (result) {
10286       result->vars = 0;
10287     }
10288     return ((PyObject*) result);
10289   }
10290 
10291   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,const char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))10292   SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
10293     swig_varlinkobject *v = (swig_varlinkobject *) p;
10294     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
10295     if (gv) {
10296       size_t size = strlen(name)+1;
10297       gv->name = (char *)malloc(size);
10298       if (gv->name) {
10299         memcpy(gv->name, name, size);
10300         gv->get_attr = get_attr;
10301         gv->set_attr = set_attr;
10302         gv->next = v->vars;
10303       }
10304     }
10305     v->vars = gv;
10306   }
10307 
10308   SWIGINTERN PyObject *
SWIG_globals(void)10309   SWIG_globals(void) {
10310     static PyObject *globals = 0;
10311     if (!globals) {
10312       globals = SWIG_newvarlink();
10313     }
10314     return globals;
10315   }
10316 
10317   /* -----------------------------------------------------------------------------
10318    * constants/methods manipulation
10319    * ----------------------------------------------------------------------------- */
10320 
10321   /* Install Constants */
10322   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])10323   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
10324     PyObject *obj = 0;
10325     size_t i;
10326     for (i = 0; constants[i].type; ++i) {
10327       switch(constants[i].type) {
10328       case SWIG_PY_POINTER:
10329         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
10330         break;
10331       case SWIG_PY_BINARY:
10332         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
10333         break;
10334       default:
10335         obj = 0;
10336         break;
10337       }
10338       if (obj) {
10339         PyDict_SetItemString(d, constants[i].name, obj);
10340         Py_DECREF(obj);
10341       }
10342     }
10343   }
10344 
10345   /* -----------------------------------------------------------------------------*/
10346   /* Fix SwigMethods to carry the callback ptrs when needed */
10347   /* -----------------------------------------------------------------------------*/
10348 
10349   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)10350   SWIG_Python_FixMethods(PyMethodDef *methods,
10351     swig_const_info *const_table,
10352     swig_type_info **types,
10353     swig_type_info **types_initial) {
10354     size_t i;
10355     for (i = 0; methods[i].ml_name; ++i) {
10356       const char *c = methods[i].ml_doc;
10357       if (!c) continue;
10358       c = strstr(c, "swig_ptr: ");
10359       if (c) {
10360         int j;
10361         swig_const_info *ci = 0;
10362         const char *name = c + 10;
10363         for (j = 0; const_table[j].type; ++j) {
10364           if (strncmp(const_table[j].name, name,
10365               strlen(const_table[j].name)) == 0) {
10366             ci = &(const_table[j]);
10367             break;
10368           }
10369         }
10370         if (ci) {
10371           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
10372           if (ptr) {
10373             size_t shift = (ci->ptype) - types;
10374             swig_type_info *ty = types_initial[shift];
10375             size_t ldoc = (c - methods[i].ml_doc);
10376             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
10377             char *ndoc = (char*)malloc(ldoc + lptr + 10);
10378             if (ndoc) {
10379               char *buff = ndoc;
10380               memcpy(buff, methods[i].ml_doc, ldoc);
10381               buff += ldoc;
10382               memcpy(buff, "swig_ptr: ", 10);
10383               buff += 10;
10384               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
10385               methods[i].ml_doc = ndoc;
10386             }
10387           }
10388         }
10389       }
10390     }
10391   }
10392 
10393   /* -----------------------------------------------------------------------------
10394    * Method creation and docstring support functions
10395    * ----------------------------------------------------------------------------- */
10396 
10397   /* -----------------------------------------------------------------------------
10398    * Function to find the method definition with the correct docstring for the
10399    * proxy module as opposed to the low-level API
10400    * ----------------------------------------------------------------------------- */
10401 
SWIG_PythonGetProxyDoc(const char * name)10402   SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
10403     /* Find the function in the modified method table */
10404     size_t offset = 0;
10405     int found = 0;
10406     while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
10407       if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
10408         found = 1;
10409         break;
10410       }
10411       offset++;
10412     }
10413     /* Use the copy with the modified docstring if available */
10414     return found ? &SwigMethods_proxydocs[offset] : NULL;
10415   }
10416 
10417   /* -----------------------------------------------------------------------------
10418    * Wrapper of PyInstanceMethod_New() used in Python 3
10419    * It is exported to the generated module, used for -fastproxy
10420    * ----------------------------------------------------------------------------- */
10421 
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)10422   SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
10423     if (PyCFunction_Check(func)) {
10424       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
10425       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
10426       if (ml)
10427       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
10428     }
10429 #if PY_VERSION_HEX >= 0x03000000
10430     return PyInstanceMethod_New(func);
10431 #else
10432     return PyMethod_New(func, NULL, NULL);
10433 #endif
10434   }
10435 
10436   /* -----------------------------------------------------------------------------
10437    * Wrapper of PyStaticMethod_New()
10438    * It is exported to the generated module, used for -fastproxy
10439    * ----------------------------------------------------------------------------- */
10440 
SWIG_PyStaticMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)10441   SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
10442     if (PyCFunction_Check(func)) {
10443       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
10444       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
10445       if (ml)
10446       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
10447     }
10448     return PyStaticMethod_New(func);
10449   }
10450 
10451 #ifdef __cplusplus
10452 }
10453 #endif
10454 
10455 /* -----------------------------------------------------------------------------*
10456  *  Partial Init method
10457  * -----------------------------------------------------------------------------*/
10458 
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 
10463 SWIGEXPORT
10464 #if PY_VERSION_HEX >= 0x03000000
10465 PyObject*
10466 #else
10467 void
10468 #endif
SWIG_init(void)10469 SWIG_init(void) {
10470   PyObject *m, *d, *md, *globals;
10471 
10472 #if PY_VERSION_HEX >= 0x03000000
10473   static struct PyModuleDef SWIG_module = {
10474     PyModuleDef_HEAD_INIT,
10475     SWIG_name,
10476     NULL,
10477     -1,
10478     SwigMethods,
10479     NULL,
10480     NULL,
10481     NULL,
10482     NULL
10483   };
10484 #endif
10485 
10486 #if defined(SWIGPYTHON_BUILTIN)
10487   static SwigPyClientData SwigPyObject_clientdata = {
10488     0, 0, 0, 0, 0, 0, 0
10489   };
10490   static PyGetSetDef this_getset_def = {
10491     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
10492   };
10493   static SwigPyGetSet thisown_getset_closure = {
10494     SwigPyObject_own,
10495     SwigPyObject_own
10496   };
10497   static PyGetSetDef thisown_getset_def = {
10498     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
10499   };
10500   PyTypeObject *builtin_pytype;
10501   int builtin_base_count;
10502   swig_type_info *builtin_basetype;
10503   PyObject *tuple;
10504   PyGetSetDescrObject *static_getset;
10505   PyTypeObject *metatype;
10506   PyTypeObject *swigpyobject;
10507   SwigPyClientData *cd;
10508   PyObject *public_interface, *public_symbol;
10509   PyObject *this_descr;
10510   PyObject *thisown_descr;
10511   PyObject *self = 0;
10512   int i;
10513 
10514   (void)builtin_pytype;
10515   (void)builtin_base_count;
10516   (void)builtin_basetype;
10517   (void)tuple;
10518   (void)static_getset;
10519   (void)self;
10520 
10521   /* Metaclass is used to implement static member variables */
10522   metatype = SwigPyObjectType();
10523   assert(metatype);
10524 #endif
10525 
10526   (void)globals;
10527 
10528   /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
10529   SWIG_This();
10530   SWIG_Python_TypeCache();
10531   SwigPyPacked_type();
10532 #ifndef SWIGPYTHON_BUILTIN
10533   SwigPyObject_type();
10534 #endif
10535 
10536   /* Fix SwigMethods to carry the callback ptrs when needed */
10537   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
10538 
10539 #if PY_VERSION_HEX >= 0x03000000
10540   m = PyModule_Create(&SWIG_module);
10541 #else
10542   m = Py_InitModule(SWIG_name, SwigMethods);
10543 #endif
10544 
10545   md = d = PyModule_GetDict(m);
10546   (void)md;
10547 
10548   SWIG_InitializeModule(0);
10549 
10550 #ifdef SWIGPYTHON_BUILTIN
10551   swigpyobject = SwigPyObject_TypeOnce();
10552 
10553   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
10554   assert(SwigPyObject_stype);
10555   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
10556   if (!cd) {
10557     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
10558     SwigPyObject_clientdata.pytype = swigpyobject;
10559   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
10560     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
10561 # if PY_VERSION_HEX >= 0x03000000
10562     return NULL;
10563 # else
10564     return;
10565 # endif
10566   }
10567 
10568   /* All objects have a 'this' attribute */
10569   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
10570   (void)this_descr;
10571 
10572   /* All objects have a 'thisown' attribute */
10573   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
10574   (void)thisown_descr;
10575 
10576   public_interface = PyList_New(0);
10577   public_symbol = 0;
10578   (void)public_symbol;
10579 
10580   PyDict_SetItemString(md, "__all__", public_interface);
10581   Py_DECREF(public_interface);
10582   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
10583   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
10584   for (i = 0; swig_const_table[i].name != 0; ++i)
10585   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
10586 #endif
10587 
10588   SWIG_InstallConstants(d,swig_const_table);
10589 
10590 
10591   {
10592     PyObject *module = PyImport_ImportModule("gphoto2");
10593     if (module != NULL) {
10594       PyExc_GPhoto2Error = PyObject_GetAttrString(module, "GPhoto2Error");
10595       Py_DECREF(module);
10596     }
10597     if (PyExc_GPhoto2Error == NULL)
10598 #if PY_VERSION_HEX >= 0x03000000
10599     return NULL;
10600 #else
10601     return;
10602 #endif
10603   }
10604 
10605 
10606   /* type '::_CameraFilesystem' */
10607   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFilesystem_type;
10608   builtin_pytype->tp_dict = d = PyDict_New();
10609   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10610   builtin_pytype->tp_new = PyType_GenericNew;
10611   builtin_base_count = 0;
10612   builtin_bases[builtin_base_count] = NULL;
10613   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10614   PyDict_SetItemString(d, "this", this_descr);
10615   PyDict_SetItemString(d, "thisown", thisown_descr);
10616   if (PyType_Ready(builtin_pytype) < 0) {
10617     PyErr_SetString(PyExc_TypeError, "Could not create type '_CameraFilesystem'.");
10618 #if PY_VERSION_HEX >= 0x03000000
10619     return NULL;
10620 #else
10621     return;
10622 #endif
10623   }
10624   Py_INCREF(builtin_pytype);
10625   PyModule_AddObject(m, "_CameraFilesystem", (PyObject *)builtin_pytype);
10626   SwigPyBuiltin_AddPublicSymbol(public_interface, "_CameraFilesystem");
10627   d = md;
10628   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_NONE",SWIG_From_int((int)(GP_FILE_INFO_NONE)));
10629   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_TYPE",SWIG_From_int((int)(GP_FILE_INFO_TYPE)));
10630   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_SIZE",SWIG_From_int((int)(GP_FILE_INFO_SIZE)));
10631   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_WIDTH",SWIG_From_int((int)(GP_FILE_INFO_WIDTH)));
10632   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_HEIGHT",SWIG_From_int((int)(GP_FILE_INFO_HEIGHT)));
10633   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_PERMISSIONS",SWIG_From_int((int)(GP_FILE_INFO_PERMISSIONS)));
10634   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_STATUS",SWIG_From_int((int)(GP_FILE_INFO_STATUS)));
10635   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_MTIME",SWIG_From_int((int)(GP_FILE_INFO_MTIME)));
10636   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_INFO_ALL",SWIG_From_int((int)(GP_FILE_INFO_ALL)));
10637   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_PERM_NONE",SWIG_From_int((int)(GP_FILE_PERM_NONE)));
10638   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_PERM_READ",SWIG_From_int((int)(GP_FILE_PERM_READ)));
10639   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_PERM_DELETE",SWIG_From_int((int)(GP_FILE_PERM_DELETE)));
10640   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_PERM_ALL",SWIG_From_int((int)(GP_FILE_PERM_ALL)));
10641   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_STATUS_NOT_DOWNLOADED",SWIG_From_int((int)(GP_FILE_STATUS_NOT_DOWNLOADED)));
10642   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_FILE_STATUS_DOWNLOADED",SWIG_From_int((int)(GP_FILE_STATUS_DOWNLOADED)));
10643 
10644   /* type '::_CameraFileInfoFile' */
10645   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoFile_type;
10646   builtin_pytype->tp_dict = d = PyDict_New();
10647   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10648   builtin_pytype->tp_new = PyType_GenericNew;
10649   builtin_base_count = 0;
10650   builtin_bases[builtin_base_count] = NULL;
10651   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10652   PyDict_SetItemString(d, "this", this_descr);
10653   PyDict_SetItemString(d, "thisown", thisown_descr);
10654   if (PyType_Ready(builtin_pytype) < 0) {
10655     PyErr_SetString(PyExc_TypeError, "Could not create type 'CameraFileInfoFile'.");
10656 #if PY_VERSION_HEX >= 0x03000000
10657     return NULL;
10658 #else
10659     return;
10660 #endif
10661   }
10662   Py_INCREF(builtin_pytype);
10663   PyModule_AddObject(m, "CameraFileInfoFile", (PyObject *)builtin_pytype);
10664   SwigPyBuiltin_AddPublicSymbol(public_interface, "CameraFileInfoFile");
10665   d = md;
10666 
10667   /* type '::_CameraFileInfoPreview' */
10668   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoPreview_type;
10669   builtin_pytype->tp_dict = d = PyDict_New();
10670   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10671   builtin_pytype->tp_new = PyType_GenericNew;
10672   builtin_base_count = 0;
10673   builtin_bases[builtin_base_count] = NULL;
10674   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10675   PyDict_SetItemString(d, "this", this_descr);
10676   PyDict_SetItemString(d, "thisown", thisown_descr);
10677   if (PyType_Ready(builtin_pytype) < 0) {
10678     PyErr_SetString(PyExc_TypeError, "Could not create type 'CameraFileInfoPreview'.");
10679 #if PY_VERSION_HEX >= 0x03000000
10680     return NULL;
10681 #else
10682     return;
10683 #endif
10684   }
10685   Py_INCREF(builtin_pytype);
10686   PyModule_AddObject(m, "CameraFileInfoPreview", (PyObject *)builtin_pytype);
10687   SwigPyBuiltin_AddPublicSymbol(public_interface, "CameraFileInfoPreview");
10688   d = md;
10689 
10690   /* type '::_CameraFileInfoAudio' */
10691   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFileInfoAudio_type;
10692   builtin_pytype->tp_dict = d = PyDict_New();
10693   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10694   builtin_pytype->tp_new = PyType_GenericNew;
10695   builtin_base_count = 0;
10696   builtin_bases[builtin_base_count] = NULL;
10697   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10698   PyDict_SetItemString(d, "this", this_descr);
10699   PyDict_SetItemString(d, "thisown", thisown_descr);
10700   if (PyType_Ready(builtin_pytype) < 0) {
10701     PyErr_SetString(PyExc_TypeError, "Could not create type 'CameraFileInfoAudio'.");
10702 #if PY_VERSION_HEX >= 0x03000000
10703     return NULL;
10704 #else
10705     return;
10706 #endif
10707   }
10708   Py_INCREF(builtin_pytype);
10709   PyModule_AddObject(m, "CameraFileInfoAudio", (PyObject *)builtin_pytype);
10710   SwigPyBuiltin_AddPublicSymbol(public_interface, "CameraFileInfoAudio");
10711   d = md;
10712 
10713   /* type '::_CameraFileInfo' */
10714   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFileInfo_type;
10715   builtin_pytype->tp_dict = d = PyDict_New();
10716   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10717   builtin_pytype->tp_new = PyType_GenericNew;
10718   builtin_base_count = 0;
10719   builtin_bases[builtin_base_count] = NULL;
10720   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10721   PyDict_SetItemString(d, "this", this_descr);
10722   PyDict_SetItemString(d, "thisown", thisown_descr);
10723   if (PyType_Ready(builtin_pytype) < 0) {
10724     PyErr_SetString(PyExc_TypeError, "Could not create type 'CameraFileInfo'.");
10725 #if PY_VERSION_HEX >= 0x03000000
10726     return NULL;
10727 #else
10728     return;
10729 #endif
10730   }
10731   Py_INCREF(builtin_pytype);
10732   PyModule_AddObject(m, "CameraFileInfo", (PyObject *)builtin_pytype);
10733   SwigPyBuiltin_AddPublicSymbol(public_interface, "CameraFileInfo");
10734   d = md;
10735   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_BASE",SWIG_From_int((int)(GP_STORAGEINFO_BASE)));
10736   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_LABEL",SWIG_From_int((int)(GP_STORAGEINFO_LABEL)));
10737   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_DESCRIPTION",SWIG_From_int((int)(GP_STORAGEINFO_DESCRIPTION)));
10738   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ACCESS",SWIG_From_int((int)(GP_STORAGEINFO_ACCESS)));
10739   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_STORAGETYPE",SWIG_From_int((int)(GP_STORAGEINFO_STORAGETYPE)));
10740   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FILESYSTEMTYPE",SWIG_From_int((int)(GP_STORAGEINFO_FILESYSTEMTYPE)));
10741   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_MAXCAPACITY",SWIG_From_int((int)(GP_STORAGEINFO_MAXCAPACITY)));
10742   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FREESPACEKBYTES",SWIG_From_int((int)(GP_STORAGEINFO_FREESPACEKBYTES)));
10743   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FREESPACEIMAGES",SWIG_From_int((int)(GP_STORAGEINFO_FREESPACEIMAGES)));
10744   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ST_UNKNOWN",SWIG_From_int((int)(GP_STORAGEINFO_ST_UNKNOWN)));
10745   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ST_FIXED_ROM",SWIG_From_int((int)(GP_STORAGEINFO_ST_FIXED_ROM)));
10746   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ST_REMOVABLE_ROM",SWIG_From_int((int)(GP_STORAGEINFO_ST_REMOVABLE_ROM)));
10747   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ST_FIXED_RAM",SWIG_From_int((int)(GP_STORAGEINFO_ST_FIXED_RAM)));
10748   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_ST_REMOVABLE_RAM",SWIG_From_int((int)(GP_STORAGEINFO_ST_REMOVABLE_RAM)));
10749   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_AC_READWRITE",SWIG_From_int((int)(GP_STORAGEINFO_AC_READWRITE)));
10750   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_AC_READONLY",SWIG_From_int((int)(GP_STORAGEINFO_AC_READONLY)));
10751   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_AC_READONLY_WITH_DELETE",SWIG_From_int((int)(GP_STORAGEINFO_AC_READONLY_WITH_DELETE)));
10752   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FST_UNDEFINED",SWIG_From_int((int)(GP_STORAGEINFO_FST_UNDEFINED)));
10753   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FST_GENERICFLAT",SWIG_From_int((int)(GP_STORAGEINFO_FST_GENERICFLAT)));
10754   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FST_GENERICHIERARCHICAL",SWIG_From_int((int)(GP_STORAGEINFO_FST_GENERICHIERARCHICAL)));
10755   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "GP_STORAGEINFO_FST_DCF",SWIG_From_int((int)(GP_STORAGEINFO_FST_DCF)));
10756 
10757   /* type '::_CameraStorageInformation' */
10758   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraStorageInformation_type;
10759   builtin_pytype->tp_dict = d = PyDict_New();
10760   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10761   builtin_pytype->tp_new = PyType_GenericNew;
10762   builtin_base_count = 0;
10763   builtin_bases[builtin_base_count] = NULL;
10764   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10765   PyDict_SetItemString(d, "this", this_descr);
10766   PyDict_SetItemString(d, "thisown", thisown_descr);
10767   if (PyType_Ready(builtin_pytype) < 0) {
10768     PyErr_SetString(PyExc_TypeError, "Could not create type 'CameraStorageInformation'.");
10769 #if PY_VERSION_HEX >= 0x03000000
10770     return NULL;
10771 #else
10772     return;
10773 #endif
10774   }
10775   Py_INCREF(builtin_pytype);
10776   PyModule_AddObject(m, "CameraStorageInformation", (PyObject *)builtin_pytype);
10777   SwigPyBuiltin_AddPublicSymbol(public_interface, "CameraStorageInformation");
10778   d = md;
10779 
10780   /* type '::_CameraFilesystemFuncs' */
10781   builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___CameraFilesystemFuncs_type;
10782   builtin_pytype->tp_dict = d = PyDict_New();
10783   SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
10784   builtin_pytype->tp_new = PyType_GenericNew;
10785   builtin_base_count = 0;
10786   builtin_bases[builtin_base_count] = NULL;
10787   SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
10788   PyDict_SetItemString(d, "this", this_descr);
10789   PyDict_SetItemString(d, "thisown", thisown_descr);
10790   if (PyType_Ready(builtin_pytype) < 0) {
10791     PyErr_SetString(PyExc_TypeError, "Could not create type '_CameraFilesystemFuncs'.");
10792 #if PY_VERSION_HEX >= 0x03000000
10793     return NULL;
10794 #else
10795     return;
10796 #endif
10797   }
10798   Py_INCREF(builtin_pytype);
10799   PyModule_AddObject(m, "_CameraFilesystemFuncs", (PyObject *)builtin_pytype);
10800   SwigPyBuiltin_AddPublicSymbol(public_interface, "_CameraFilesystemFuncs");
10801   d = md;
10802 #if PY_VERSION_HEX >= 0x03000000
10803   return m;
10804 #else
10805   return;
10806 #endif
10807 }
10808 
10809