Bug Summary

File:/shared/playproj/i2c/src/swig/ddc_swig3_wrap.c
Location:line 3909, column 7
Description:Potential leak of memory pointed to by 'arg1'

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 3.0.11
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
18/* -----------------------------------------------------------------------------
19 * This section contains generic SWIG labels for method/variable
20 * declarations/attributes, and other compiler dependent labels.
21 * ----------------------------------------------------------------------------- */
22
23/* template workaround for compilers that cannot correctly implement the C++ standard */
24#ifndef SWIGTEMPLATEDISAMBIGUATOR
25# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
26# define SWIGTEMPLATEDISAMBIGUATOR template
27# elif defined(__HP_aCC)
28/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
29/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
30# define SWIGTEMPLATEDISAMBIGUATOR template
31# else
32# define SWIGTEMPLATEDISAMBIGUATOR
33# endif
34#endif
35
36/* inline attribute */
37#ifndef SWIGINLINEinline
38# if defined(__cplusplus) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
39# define SWIGINLINEinline inline
40# else
41# define SWIGINLINEinline
42# endif
43#endif
44
45/* attribute recognised by some compilers to avoid 'unused' warnings */
46#ifndef SWIGUNUSED__attribute__ ((__unused__))
47# if defined(__GNUC__4)
48# if !(defined(__cplusplus)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
49# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
50# else
51# define SWIGUNUSED__attribute__ ((__unused__))
52# endif
53# elif defined(__ICC)
54# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
55# else
56# define SWIGUNUSED__attribute__ ((__unused__))
57# endif
58#endif
59
60#ifndef SWIG_MSC_UNSUPPRESS_4505
61# if defined(_MSC_VER)
62# pragma warning(disable : 4505) /* unreferenced local function has been removed */
63# endif
64#endif
65
66#ifndef SWIGUNUSEDPARM
67# ifdef __cplusplus
68# define SWIGUNUSEDPARM(p)p __attribute__ ((__unused__))
69# else
70# define SWIGUNUSEDPARM(p)p __attribute__ ((__unused__)) p SWIGUNUSED__attribute__ ((__unused__))
71# endif
72#endif
73
74/* internal SWIG method */
75#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
76# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
77#endif
78
79/* internal inline SWIG method */
80#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
81# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
82#endif
83
84/* exporting methods */
85#if defined(__GNUC__4)
86# if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
87# ifndef GCC_HASCLASSVISIBILITY
88# define GCC_HASCLASSVISIBILITY
89# endif
90# endif
91#endif
92
93#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
94# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
95# if defined(STATIC_LINKED)
96# define SWIGEXPORT__attribute__ ((visibility("default")))
97# else
98# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
99# endif
100# else
101# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
102# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
103# else
104# define SWIGEXPORT__attribute__ ((visibility("default")))
105# endif
106# endif
107#endif
108
109/* calling conventions for Windows */
110#ifndef SWIGSTDCALL
111# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112# define SWIGSTDCALL __stdcall
113# else
114# define SWIGSTDCALL
115# endif
116#endif
117
118/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
119#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
120# define _CRT_SECURE_NO_DEPRECATE
121#endif
122
123/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
124#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
125# define _SCL_SECURE_NO_DEPRECATE
126#endif
127
128/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
129#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
130# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
131#endif
132
133/* Intel's compiler complains if a variable which was never initialised is
134 * cast to void, which is a common idiom which we use to indicate that we
135 * are aware a variable isn't used. So we just silence that warning.
136 * See: https://github.com/swig/swig/issues/192 for more discussion.
137 */
138#ifdef __INTEL_COMPILER
139# pragma warning disable 592
140#endif
141
142
143#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
144/* Use debug wrappers with the Python release dll */
145# undef _DEBUG
146# include <Python.h>
147# define _DEBUG
148#else
149# include <Python.h>
150#endif
151
152/* -----------------------------------------------------------------------------
153 * swigrun.swg
154 *
155 * This file contains generic C API SWIG runtime support for pointer
156 * type checking.
157 * ----------------------------------------------------------------------------- */
158
159/* This should only be incremented when either the layout of swig_type_info changes,
160 or for whatever reason, the runtime changes incompatibly */
161#define SWIG_RUNTIME_VERSION"4" "4"
162
163/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
164#ifdef SWIG_TYPE_TABLE
165# define SWIG_QUOTE_STRING(x) #x
166# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
167# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
168#else
169# define SWIG_TYPE_TABLE_NAME
170#endif
171
172/*
173 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
174 creating a static or dynamic library from the SWIG runtime code.
175 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
176
177 But only do this if strictly necessary, ie, if you have problems
178 with your compiler or suchlike.
179*/
180
181#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
182# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
183#endif
184
185#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
186# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
187#endif
188
189/* Generic buffer size */
190#ifndef SWIG_BUFFER_SIZE1024
191# define SWIG_BUFFER_SIZE1024 1024
192#endif
193
194/* Flags for pointer conversions */
195#define SWIG_POINTER_DISOWN0x1 0x1
196#define SWIG_CAST_NEW_MEMORY0x2 0x2
197
198/* Flags for new pointer objects */
199#define SWIG_POINTER_OWN0x1 0x1
200
201
202/*
203 Flags/methods for returning states.
204
205 The SWIG conversion methods, as ConvertPtr, return an integer
206 that tells if the conversion was successful or not. And if not,
207 an error code can be returned (see swigerrors.swg for the codes).
208
209 Use the following macros/flags to set or process the returning
210 states.
211
212 In old versions of SWIG, code such as the following was usually written:
213
214 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
215 // success code
216 } else {
217 //fail code
218 }
219
220 Now you can be more explicit:
221
222 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
223 if (SWIG_IsOK(res)) {
224 // success code
225 } else {
226 // fail code
227 }
228
229 which is the same really, but now you can also do
230
231 Type *ptr;
232 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
233 if (SWIG_IsOK(res)) {
234 // success code
235 if (SWIG_IsNewObj(res) {
236 ...
237 delete *ptr;
238 } else {
239 ...
240 }
241 } else {
242 // fail code
243 }
244
245 I.e., now SWIG_ConvertPtr can return new objects and you can
246 identify the case and take care of the deallocation. Of course that
247 also requires SWIG_ConvertPtr to return new result values, such as
248
249 int SWIG_ConvertPtr(obj, ptr,...) {
250 if (<obj is ok>) {
251 if (<need new object>) {
252 *ptr = <ptr to new allocated object>;
253 return SWIG_NEWOBJ;
254 } else {
255 *ptr = <ptr to old object>;
256 return SWIG_OLDOBJ;
257 }
258 } else {
259 return SWIG_BADOBJ;
260 }
261 }
262
263 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
264 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
265 SWIG errors code.
266
267 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
268 allows to return the 'cast rank', for example, if you have this
269
270 int food(double)
271 int fooi(int);
272
273 and you call
274
275 food(1) // cast rank '1' (1 -> 1.0)
276 fooi(1) // cast rank '0'
277
278 just use the SWIG_AddCast()/SWIG_CheckState()
279*/
280
281#define SWIG_OK(0) (0)
282#define SWIG_ERROR(-1) (-1)
283#define SWIG_IsOK(r)(r >= 0) (r >= 0)
284#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
285
286/* The CastRankLimit says how many bits are used for the cast rank */
287#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
288/* The NewMask denotes the object was created (using new/malloc) */
289#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
290/* The TmpMask is for in/out typemaps that use temporal objects */
291#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
292/* Simple returning values */
293#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
294#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
295#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
296#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
297/* Check, add and del mask methods */
298#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
299#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
300#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
301#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
302#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
303#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
304
305/* Cast-Rank Mode */
306#if defined(SWIG_CASTRANK_MODE)
307# ifndef SWIG_TypeRank
308# define SWIG_TypeRank unsigned long
309# endif
310# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
311# define SWIG_MAXCASTRANK (2)
312# endif
313# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
314# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
315SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
316 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
317}
318SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
319 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
320}
321#else /* no cast-rank mode */
322# define SWIG_AddCast(r)(r) (r)
323# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
324#endif
325
326
327#include <string.h>
328
329#ifdef __cplusplus
330extern "C" {
331#endif
332
333typedef void *(*swig_converter_func)(void *, int *);
334typedef struct swig_type_info *(*swig_dycast_func)(void **);
335
336/* Structure to store information on one type */
337typedef struct swig_type_info {
338 const char *name; /* mangled name of this type */
339 const char *str; /* human readable name of this type */
340 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
341 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
342 void *clientdata; /* language specific type data */
343 int owndata; /* flag if the structure owns the clientdata */
344} swig_type_info;
345
346/* Structure to store a type and conversion function used for casting */
347typedef struct swig_cast_info {
348 swig_type_info *type; /* pointer to type that is equivalent to this type */
349 swig_converter_func converter; /* function to cast the void pointers */
350 struct swig_cast_info *next; /* pointer to next cast in linked list */
351 struct swig_cast_info *prev; /* pointer to the previous cast */
352} swig_cast_info;
353
354/* Structure used to store module information
355 * Each module generates one structure like this, and the runtime collects
356 * all of these structures and stores them in a circularly linked list.*/
357typedef struct swig_module_info {
358 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
359 size_t size; /* Number of types in this module */
360 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
361 swig_type_info **type_initial; /* Array of initially generated type structures */
362 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
363 void *clientdata; /* Language specific module data */
364} swig_module_info;
365
366/*
367 Compare two type names skipping the space characters, therefore
368 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
369
370 Return 0 when the two name types are equivalent, as in
371 strncmp, but skipping ' '.
372*/
373SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
374SWIG_TypeNameComp(const char *f1, const char *l1,
375 const char *f2, const char *l2) {
376 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
377 while ((*f1 == ' ') && (f1 != l1)) ++f1;
378 while ((*f2 == ' ') && (f2 != l2)) ++f2;
379 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
380 }
381 return (int)((l1 - f1) - (l2 - f2));
382}
383
384/*
385 Check type equivalence in a name list like <name1>|<name2>|...
386 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
387*/
388SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
389SWIG_TypeCmp(const char *nb, const char *tb) {
390 int equiv = 1;
391 const char* te = tb + strlen(tb);
392 const char* ne = nb;
393 while (equiv != 0 && *ne) {
394 for (nb = ne; *ne; ++ne) {
395 if (*ne == '|') break;
396 }
397 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
398 if (*ne) ++ne;
399 }
400 return equiv;
401}
402
403/*
404 Check type equivalence in a name list like <name1>|<name2>|...
405 Return 0 if not equal, 1 if equal
406*/
407SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
408SWIG_TypeEquiv(const char *nb, const char *tb) {
409 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
410}
411
412/*
413 Check the typename
414*/
415SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
416SWIG_TypeCheck(const char *c, swig_type_info *ty) {
417 if (ty) {
418 swig_cast_info *iter = ty->cast;
419 while (iter) {
420 if (strcmp(iter->type->name, c)__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(iter->type->name) && __builtin_constant_p (c)
&& (__s1_len = strlen (iter->type->name), __s2_len
= strlen (c), (!((size_t)(const void *)((iter->type->name
) + 1) - (size_t)(const void *)(iter->type->name) == 1)
|| __s1_len >= 4) && (!((size_t)(const void *)((c
) + 1) - (size_t)(const void *)(c) == 1) || __s2_len >= 4)
) ? __builtin_strcmp (iter->type->name, c) : (__builtin_constant_p
(iter->type->name) && ((size_t)(const void *)(
(iter->type->name) + 1) - (size_t)(const void *)(iter->
type->name) == 1) && (__s1_len = strlen (iter->
type->name), __s1_len < 4) ? (__builtin_constant_p (c) &&
((size_t)(const void *)((c) + 1) - (size_t)(const void *)(c)
== 1) ? __builtin_strcmp (iter->type->name, c) : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (c); int __result = (((const unsigned char *) (const
char *) (iter->type->name))[0] - __s2[0]); if (__s1_len
> 0 && __result == 0) { __result = (((const unsigned
char *) (const char *) (iter->type->name))[1] - __s2[1
]); if (__s1_len > 1 && __result == 0) { __result =
(((const unsigned char *) (const char *) (iter->type->
name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (iter
->type->name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
(c) && ((size_t)(const void *)((c) + 1) - (size_t)(const
void *)(c) == 1) && (__s2_len = strlen (c), __s2_len
< 4) ? (__builtin_constant_p (iter->type->name) &&
((size_t)(const void *)((iter->type->name) + 1) - (size_t
)(const void *)(iter->type->name) == 1) ? __builtin_strcmp
(iter->type->name, c) : -(__extension__ ({ const unsigned
char *__s2 = (const unsigned char *) (const char *) (iter->
type->name); int __result = (((const unsigned char *) (const
char *) (c))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
c))[1] - __s2[1]); if (__s2_len > 1 && __result ==
0) { __result = (((const unsigned char *) (const char *) (c)
)[2] - __s2[2]); if (__s2_len > 2 && __result == 0
) __result = (((const unsigned char *) (const char *) (c))[3]
- __s2[3]); } } __result; }))) : __builtin_strcmp (iter->
type->name, c)))); })
== 0) {
421 if (iter == ty->cast)
422 return iter;
423 /* Move iter to the top of the linked list */
424 iter->prev->next = iter->next;
425 if (iter->next)
426 iter->next->prev = iter->prev;
427 iter->next = ty->cast;
428 iter->prev = 0;
429 if (ty->cast) ty->cast->prev = iter;
430 ty->cast = iter;
431 return iter;
432 }
433 iter = iter->next;
434 }
435 }
436 return 0;
437}
438
439/*
440 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
441*/
442SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
443SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
444 if (ty) {
445 swig_cast_info *iter = ty->cast;
446 while (iter) {
447 if (iter->type == from) {
448 if (iter == ty->cast)
449 return iter;
450 /* Move iter to the top of the linked list */
451 iter->prev->next = iter->next;
452 if (iter->next)
453 iter->next->prev = iter->prev;
454 iter->next = ty->cast;
455 iter->prev = 0;
456 if (ty->cast) ty->cast->prev = iter;
457 ty->cast = iter;
458 return iter;
459 }
460 iter = iter->next;
461 }
462 }
463 return 0;
464}
465
466/*
467 Cast a pointer up an inheritance hierarchy
468*/
469SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
470SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
471 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
472}
473
474/*
475 Dynamic pointer casting. Down an inheritance hierarchy
476*/
477SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
478SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
479 swig_type_info *lastty = ty;
480 if (!ty || !ty->dcast) return ty;
481 while (ty && (ty->dcast)) {
482 ty = (*ty->dcast)(ptr);
483 if (ty) lastty = ty;
484 }
485 return lastty;
486}
487
488/*
489 Return the name associated with this type
490*/
491SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
492SWIG_TypeName(const swig_type_info *ty) {
493 return ty->name;
494}
495
496/*
497 Return the pretty name associated with this type,
498 that is an unmangled type name in a form presentable to the user.
499*/
500SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
501SWIG_TypePrettyName(const swig_type_info *type) {
502 /* The "str" field contains the equivalent pretty names of the
503 type, separated by vertical-bar characters. We choose
504 to print the last name, as it is often (?) the most
505 specific. */
506 if (!type) return NULL((void*)0);
507 if (type->str != NULL((void*)0)) {
508 const char *last_name = type->str;
509 const char *s;
510 for (s = type->str; *s; s++)
511 if (*s == '|') last_name = s+1;
512 return last_name;
513 }
514 else
515 return type->name;
516}
517
518/*
519 Set the clientdata field for a type
520*/
521SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
522SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
523 swig_cast_info *cast = ti->cast;
524 /* if (ti->clientdata == clientdata) return; */
525 ti->clientdata = clientdata;
526
527 while (cast) {
528 if (!cast->converter) {
529 swig_type_info *tc = cast->type;
530 if (!tc->clientdata) {
531 SWIG_TypeClientData(tc, clientdata);
532 }
533 }
534 cast = cast->next;
535 }
536}
537SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
538SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
539 SWIG_TypeClientData(ti, clientdata);
540 ti->owndata = 1;
541}
542
543/*
544 Search for a swig_type_info structure only by mangled name
545 Search is a O(log #types)
546
547 We start searching at module start, and finish searching when start == end.
548 Note: if start == end at the beginning of the function, we go all the way around
549 the circular list.
550*/
551SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
552SWIG_MangledTypeQueryModule(swig_module_info *start,
553 swig_module_info *end,
554 const char *name) {
555 swig_module_info *iter = start;
556 do {
557 if (iter->size) {
558 size_t l = 0;
559 size_t r = iter->size - 1;
560 do {
561 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
562 size_t i = (l + r) >> 1;
563 const char *iname = iter->types[i]->name;
564 if (iname) {
565 int compare = strcmp(name, iname)__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(name) && __builtin_constant_p (iname) && (__s1_len
= strlen (name), __s2_len = strlen (iname), (!((size_t)(const
void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s1_len
>= 4) && (!((size_t)(const void *)((iname) + 1) -
(size_t)(const void *)(iname) == 1) || __s2_len >= 4)) ? __builtin_strcmp
(name, iname) : (__builtin_constant_p (name) && ((size_t
)(const void *)((name) + 1) - (size_t)(const void *)(name) ==
1) && (__s1_len = strlen (name), __s1_len < 4) ? (
__builtin_constant_p (iname) && ((size_t)(const void *
)((iname) + 1) - (size_t)(const void *)(iname) == 1) ? __builtin_strcmp
(name, iname) : (__extension__ ({ const unsigned char *__s2 =
(const unsigned char *) (const char *) (iname); int __result
= (((const unsigned char *) (const char *) (name))[0] - __s2
[0]); if (__s1_len > 0 && __result == 0) { __result
= (((const unsigned char *) (const char *) (name))[1] - __s2
[1]); if (__s1_len > 1 && __result == 0) { __result
= (((const unsigned char *) (const char *) (name))[2] - __s2
[2]); if (__s1_len > 2 && __result == 0) __result =
(((const unsigned char *) (const char *) (name))[3] - __s2[3
]); } } __result; }))) : (__builtin_constant_p (iname) &&
((size_t)(const void *)((iname) + 1) - (size_t)(const void *
)(iname) == 1) && (__s2_len = strlen (iname), __s2_len
< 4) ? (__builtin_constant_p (name) && ((size_t)(
const void *)((name) + 1) - (size_t)(const void *)(name) == 1
) ? __builtin_strcmp (name, iname) : -(__extension__ ({ const
unsigned char *__s2 = (const unsigned char *) (const char *)
(name); int __result = (((const unsigned char *) (const char
*) (iname))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
iname))[1] - __s2[1]); if (__s2_len > 1 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
iname))[2] - __s2[2]); if (__s2_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (iname
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (name
, iname)))); })
;
566 if (compare == 0) {
567 return iter->types[i];
568 } else if (compare < 0) {
569 if (i) {
570 r = i - 1;
571 } else {
572 break;
573 }
574 } else if (compare > 0) {
575 l = i + 1;
576 }
577 } else {
578 break; /* should never happen */
579 }
580 } while (l <= r);
581 }
582 iter = iter->next;
583 } while (iter != end);
584 return 0;
585}
586
587/*
588 Search for a swig_type_info structure for either a mangled name or a human readable name.
589 It first searches the mangled names of the types, which is a O(log #types)
590 If a type is not found it then searches the human readable names, which is O(#types).
591
592 We start searching at module start, and finish searching when start == end.
593 Note: if start == end at the beginning of the function, we go all the way around
594 the circular list.
595*/
596SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
597SWIG_TypeQueryModule(swig_module_info *start,
598 swig_module_info *end,
599 const char *name) {
600 /* STEP 1: Search the name field using binary search */
601 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
602 if (ret) {
603 return ret;
604 } else {
605 /* STEP 2: If the type hasn't been found, do a complete search
606 of the str field (the human readable name) */
607 swig_module_info *iter = start;
608 do {
609 size_t i = 0;
610 for (; i < iter->size; ++i) {
611 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
612 return iter->types[i];
613 }
614 iter = iter->next;
615 } while (iter != end);
616 }
617
618 /* neither found a match */
619 return 0;
620}
621
622/*
623 Pack binary data into a string
624*/
625SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
626SWIG_PackData(char *c, void *ptr, size_t sz) {
627 static const char hex[17] = "0123456789abcdef";
628 const unsigned char *u = (unsigned char *) ptr;
629 const unsigned char *eu = u + sz;
630 for (; u != eu; ++u) {
631 unsigned char uu = *u;
632 *(c++) = hex[(uu & 0xf0) >> 4];
633 *(c++) = hex[uu & 0xf];
634 }
635 return c;
636}
637
638/*
639 Unpack binary data from a string
640*/
641SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
642SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
643 unsigned char *u = (unsigned char *) ptr;
644 const unsigned char *eu = u + sz;
645 for (; u != eu; ++u) {
646 char d = *(c++);
647 unsigned char uu;
648 if ((d >= '0') && (d <= '9'))
649 uu = (unsigned char)((d - '0') << 4);
650 else if ((d >= 'a') && (d <= 'f'))
651 uu = (unsigned char)((d - ('a'-10)) << 4);
652 else
653 return (char *) 0;
654 d = *(c++);
655 if ((d >= '0') && (d <= '9'))
656 uu |= (unsigned char)(d - '0');
657 else if ((d >= 'a') && (d <= 'f'))
658 uu |= (unsigned char)(d - ('a'-10));
659 else
660 return (char *) 0;
661 *u = uu;
662 }
663 return c;
664}
665
666/*
667 Pack 'void *' into a string buffer.
668*/
669SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
670SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
671 char *r = buff;
672 if ((2*sizeof(void *) + 2) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,&ptr,sizeof(void *));
675 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
676 strcpy(r,name);
677 return buff;
678}
679
680SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
681SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
682 if (*c != '_') {
683 if (strcmp(c,"NULL")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(c) && __builtin_constant_p ("NULL") && (__s1_len
= strlen (c), __s2_len = strlen ("NULL"), (!((size_t)(const void
*)((c) + 1) - (size_t)(const void *)(c) == 1) || __s1_len >=
4) && (!((size_t)(const void *)(("NULL") + 1) - (size_t
)(const void *)("NULL") == 1) || __s2_len >= 4)) ? __builtin_strcmp
(c, "NULL") : (__builtin_constant_p (c) && ((size_t)
(const void *)((c) + 1) - (size_t)(const void *)(c) == 1) &&
(__s1_len = strlen (c), __s1_len < 4) ? (__builtin_constant_p
("NULL") && ((size_t)(const void *)(("NULL") + 1) - (
size_t)(const void *)("NULL") == 1) ? __builtin_strcmp (c, "NULL"
) : (__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) ("NULL"); int __result = (((const unsigned
char *) (const char *) (c))[0] - __s2[0]); if (__s1_len >
0 && __result == 0) { __result = (((const unsigned char
*) (const char *) (c))[1] - __s2[1]); if (__s1_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (c))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (c
))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
"NULL") && ((size_t)(const void *)(("NULL") + 1) - (size_t
)(const void *)("NULL") == 1) && (__s2_len = strlen (
"NULL"), __s2_len < 4) ? (__builtin_constant_p (c) &&
((size_t)(const void *)((c) + 1) - (size_t)(const void *)(c)
== 1) ? __builtin_strcmp (c, "NULL") : -(__extension__ ({ const
unsigned char *__s2 = (const unsigned char *) (const char *)
(c); int __result = (((const unsigned char *) (const char *)
("NULL"))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
"NULL"))[1] - __s2[1]); if (__s2_len > 1 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
"NULL"))[2] - __s2[2]); if (__s2_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) ("NULL"
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (c, "NULL"
)))); })
== 0) {
684 *ptr = (void *) 0;
685 return name;
686 } else {
687 return 0;
688 }
689 }
690 return SWIG_UnpackData(++c,ptr,sizeof(void *));
691}
692
693SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
694SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
695 char *r = buff;
696 size_t lname = (name ? strlen(name) : 0);
697 if ((2*sz + 2 + lname) > bsz) return 0;
698 *(r++) = '_';
699 r = SWIG_PackData(r,ptr,sz);
700 if (lname) {
701 strncpy(r,name,lname+1)__builtin_strncpy (r, name, lname+1);
702 } else {
703 *r = 0;
704 }
705 return buff;
706}
707
708SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
709SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
710 if (*c != '_') {
711 if (strcmp(c,"NULL")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(c) && __builtin_constant_p ("NULL") && (__s1_len
= strlen (c), __s2_len = strlen ("NULL"), (!((size_t)(const void
*)((c) + 1) - (size_t)(const void *)(c) == 1) || __s1_len >=
4) && (!((size_t)(const void *)(("NULL") + 1) - (size_t
)(const void *)("NULL") == 1) || __s2_len >= 4)) ? __builtin_strcmp
(c, "NULL") : (__builtin_constant_p (c) && ((size_t)
(const void *)((c) + 1) - (size_t)(const void *)(c) == 1) &&
(__s1_len = strlen (c), __s1_len < 4) ? (__builtin_constant_p
("NULL") && ((size_t)(const void *)(("NULL") + 1) - (
size_t)(const void *)("NULL") == 1) ? __builtin_strcmp (c, "NULL"
) : (__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) ("NULL"); int __result = (((const unsigned
char *) (const char *) (c))[0] - __s2[0]); if (__s1_len >
0 && __result == 0) { __result = (((const unsigned char
*) (const char *) (c))[1] - __s2[1]); if (__s1_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (c))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (c
))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
"NULL") && ((size_t)(const void *)(("NULL") + 1) - (size_t
)(const void *)("NULL") == 1) && (__s2_len = strlen (
"NULL"), __s2_len < 4) ? (__builtin_constant_p (c) &&
((size_t)(const void *)((c) + 1) - (size_t)(const void *)(c)
== 1) ? __builtin_strcmp (c, "NULL") : -(__extension__ ({ const
unsigned char *__s2 = (const unsigned char *) (const char *)
(c); int __result = (((const unsigned char *) (const char *)
("NULL"))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
"NULL"))[1] - __s2[1]); if (__s2_len > 1 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
"NULL"))[2] - __s2[2]); if (__s2_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) ("NULL"
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (c, "NULL"
)))); })
== 0) {
712 memset(ptr,0,sz);
713 return name;
714 } else {
715 return 0;
716 }
717 }
718 return SWIG_UnpackData(++c,ptr,sz);
719}
720
721#ifdef __cplusplus
722}
723#endif
724
725/* Errors in SWIG */
726#define SWIG_UnknownError-1 -1
727#define SWIG_IOError-2 -2
728#define SWIG_RuntimeError-3 -3
729#define SWIG_IndexError-4 -4
730#define SWIG_TypeError-5 -5
731#define SWIG_DivisionByZero-6 -6
732#define SWIG_OverflowError-7 -7
733#define SWIG_SyntaxError-8 -8
734#define SWIG_ValueError-9 -9
735#define SWIG_SystemError-10 -10
736#define SWIG_AttributeError-11 -11
737#define SWIG_MemoryError-12 -12
738#define SWIG_NullReferenceError-13 -13
739
740
741
742/* Compatibility macros for Python 3 */
743#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
744
745#define PyClass_Check(obj)PyObject_IsInstance(obj, (PyObject *)&PyType_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
746#define PyInt_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1UL <<
24))) != 0)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1UL <<
24))) != 0)
747#define PyInt_AsLong(x)PyLong_AsLong(x) PyLong_AsLong(x)
748#define PyInt_FromLong(x)PyLong_FromLong(x) PyLong_FromLong(x)
749#define PyInt_FromSize_t(x)PyLong_FromSize_t(x) PyLong_FromSize_t(x)
750#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
751#define PyString_FromString(x)PyUnicode_FromString(x) PyUnicode_FromString(x)
752#define PyString_Format(fmt, args)PyUnicode_Format(fmt, args) PyUnicode_Format(fmt, args)
753#define PyString_AsString(str)PyBytes_AsString(str) PyBytes_AsString(str)
754#define PyString_Size(str)PyBytes_Size(str) PyBytes_Size(str)
755#define PyString_InternFromString(key)PyUnicode_InternFromString(key) PyUnicode_InternFromString(key)
756#define Py_TPFLAGS_HAVE_CLASS(1UL << 10) Py_TPFLAGS_BASETYPE(1UL << 10)
757#define PyString_AS_STRING(x)PyUnicode_AS_STRING(x) PyUnicode_AS_STRING(x)
758#define _PyLong_FromSsize_t(x)PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
759
760#endif
761
762#ifndef Py_TYPE
763# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
764#endif
765
766/* SWIG APIs for compatibility of both Python 2 & 3 */
767
768#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
769# define SWIG_Python_str_FromFormatPyUnicode_FromFormat PyUnicode_FromFormat
770#else
771# define SWIG_Python_str_FromFormatPyUnicode_FromFormat PyString_FromFormat
772#endif
773
774
775/* Warning: This function will allocate a new string in Python 3,
776 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
777 */
778SWIGINTERNstatic __attribute__ ((__unused__)) char*
779SWIG_Python_str_AsChar(PyObject *str)
780{
781#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
782 char *cstr;
783 char *newstr;
784 Py_ssize_t len;
785 str = PyUnicode_AsUTF8String(str);
786 PyBytes_AsStringAndSize(str, &cstr, &len);
787 newstr = (char *) malloc(len+1);
788 memcpy(newstr, cstr, len+1);
789 Py_XDECREF(str)do { PyObject *_py_xdecref_tmp = (PyObject *)(str); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
790 return newstr;
791#else
792 return PyString_AsString(str)PyBytes_AsString(str);
793#endif
794}
795
796#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
797# define SWIG_Python_str_DelForPy3(x)free( (void*) (x) ) free( (void*) (x) )
798#else
799# define SWIG_Python_str_DelForPy3(x)free( (void*) (x) )
800#endif
801
802
803SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
804SWIG_Python_str_FromChar(const char *c)
805{
806#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
807 return PyUnicode_FromString(c);
808#else
809 return PyString_FromString(c)PyUnicode_FromString(c);
810#endif
811}
812
813/* Add PyOS_snprintf for old Pythons */
814#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
815# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
816# define PyOS_snprintf _snprintf
817# else
818# define PyOS_snprintf snprintf
819# endif
820#endif
821
822/* A crude PyString_FromFormat implementation for old Pythons */
823#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
824
825#ifndef SWIG_PYBUFFER_SIZE
826# define SWIG_PYBUFFER_SIZE 1024
827#endif
828
829static PyObject *
830PyString_FromFormat(const char *fmt, ...) {
831 va_list ap;
832 char buf[SWIG_PYBUFFER_SIZE * 2];
833 int res;
834 va_start(ap, fmt)__builtin_va_start(ap, fmt);
835 res = vsnprintf(buf, sizeof(buf), fmt, ap);
836 va_end(ap)__builtin_va_end(ap);
837 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf)PyUnicode_FromString(buf);
838}
839#endif
840
841#ifndef PyObject_DELPyObject_Free
842# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
843#endif
844
845/* A crude PyExc_StopIteration exception for old Pythons */
846#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
847# ifndef PyExc_StopIteration
848# define PyExc_StopIteration PyExc_RuntimeError
849# endif
850# ifndef PyObject_GenericGetAttr
851# define PyObject_GenericGetAttr 0
852# endif
853#endif
854
855/* Py_NotImplemented is defined in 2.1 and up. */
856#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
857# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
858# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
859# endif
860#endif
861
862/* A crude PyString_AsStringAndSize implementation for old Pythons */
863#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
864# ifndef PyString_AsStringAndSize
865# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj)PyBytes_AsString(obj); *len = *s ? strlen(*s) : 0;}
866# endif
867#endif
868
869/* PySequence_Size for old Pythons */
870#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
871# ifndef PySequence_Size
872# define PySequence_Size PySequence_LengthPySequence_Size
873# endif
874#endif
875
876/* PyBool_FromLong for old Pythons */
877#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
878static
879PyObject *PyBool_FromLong(long ok)
880{
881 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_FalseStruct);
882 Py_INCREF(result)( ((PyObject *)(result))->ob_refcnt++);
883 return result;
884}
885#endif
886
887/* Py_ssize_t for old Pythons */
888/* This code is as recommended by: */
889/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
890#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
891typedef int Py_ssize_t;
892# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
893# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
894typedef inquiry lenfunc;
895typedef intargfunc ssizeargfunc;
896typedef intintargfunc ssizessizeargfunc;
897typedef intobjargproc ssizeobjargproc;
898typedef intintobjargproc ssizessizeobjargproc;
899typedef getreadbufferproc readbufferproc;
900typedef getwritebufferproc writebufferproc;
901typedef getsegcountproc segcountproc;
902typedef getcharbufferproc charbufferproc;
903static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)exc __attribute__ ((__unused__)))
904{
905 long result = 0;
906 PyObject *i = PyNumber_Int(x);
907 if (i) {
908 result = PyInt_AsLong(i)PyLong_AsLong(i);
909 Py_DECREF(i)do { PyObject *_py_decref_tmp = (PyObject *)(i); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
910 }
911 return result;
912}
913#endif
914
915#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
916#define PyInt_FromSize_t(x)PyLong_FromSize_t(x) PyInt_FromLong((long)x)PyLong_FromLong((long)x)
917#endif
918
919#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
920#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
921 do { \
922 if (op) { \
923 int vret = visit((op), arg); \
924 if (vret) \
925 return vret; \
926 } \
927 } while (0)
928#endif
929
930#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
931typedef struct {
932 PyTypeObject type;
933 PyNumberMethods as_number;
934 PyMappingMethods as_mapping;
935 PySequenceMethods as_sequence;
936 PyBufferProcs as_buffer;
937 PyObject *name, *slots;
938} PyHeapTypeObject;
939#endif
940
941#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
942typedef destructor freefunc;
943#endif
944
945#if ((PY_MAJOR_VERSION3 == 2 && PY_MINOR_VERSION5 > 6) || \
946 (PY_MAJOR_VERSION3 == 3 && PY_MINOR_VERSION5 > 0) || \
947 (PY_MAJOR_VERSION3 > 3))
948# define SWIGPY_USE_CAPSULE
949# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
950#endif
951
952#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
953#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
954#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
955#define Py_hash_t long
956#endif
957
958/* -----------------------------------------------------------------------------
959 * error manipulation
960 * ----------------------------------------------------------------------------- */
961
962SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
963SWIG_Python_ErrorType(int code) {
964 PyObject* type = 0;
965 switch(code) {
966 case SWIG_MemoryError-12:
967 type = PyExc_MemoryError;
968 break;
969 case SWIG_IOError-2:
970 type = PyExc_IOError;
971 break;
972 case SWIG_RuntimeError-3:
973 type = PyExc_RuntimeError;
974 break;
975 case SWIG_IndexError-4:
976 type = PyExc_IndexError;
977 break;
978 case SWIG_TypeError-5:
979 type = PyExc_TypeError;
980 break;
981 case SWIG_DivisionByZero-6:
982 type = PyExc_ZeroDivisionError;
983 break;
984 case SWIG_OverflowError-7:
985 type = PyExc_OverflowError;
986 break;
987 case SWIG_SyntaxError-8:
988 type = PyExc_SyntaxError;
989 break;
990 case SWIG_ValueError-9:
991 type = PyExc_ValueError;
992 break;
993 case SWIG_SystemError-10:
994 type = PyExc_SystemError;
995 break;
996 case SWIG_AttributeError-11:
997 type = PyExc_AttributeError;
998 break;
999 default:
1000 type = PyExc_RuntimeError;
1001 }
1002 return type;
1003}
1004
1005
1006SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1007SWIG_Python_AddErrorMsg(const char* mesg)
1008{
1009 PyObject *type = 0;
1010 PyObject *value = 0;
1011 PyObject *traceback = 0;
1012
1013 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1014 if (value) {
1015 char *tmp;
1016 PyObject *old_str = PyObject_Str(value);
1017 PyErr_Clear();
1018 Py_XINCREF(type)do { PyObject *_py_xincref_tmp = (PyObject *)(type); if (_py_xincref_tmp
!= ((void*)0)) ( ((PyObject *)(_py_xincref_tmp))->ob_refcnt
++); } while (0)
;
1019
1020 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1021 SWIG_Python_str_DelForPy3(tmp)free( (void*) (tmp) );
1022 Py_DECREF(old_str)do { PyObject *_py_decref_tmp = (PyObject *)(old_str); if ( --
(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)
(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
1023 Py_DECREF(value)do { PyObject *_py_decref_tmp = (PyObject *)(value); if ( --(
_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)(
_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
1024 } else {
1025 PyErr_SetString(PyExc_RuntimeError, mesg);
1026 }
1027}
1028
1029#if defined(SWIG_PYTHON_NO_THREADS)
1030# if defined(SWIG_PYTHON_THREADS)
1031# undef SWIG_PYTHON_THREADS
1032# endif
1033#endif
1034#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1035# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1036# if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1037# define SWIG_PYTHON_USE_GIL
1038# endif
1039# endif
1040# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1041# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1042# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1043# endif
1044# ifdef __cplusplus /* C++ code */
1045 class SWIG_Python_Thread_Block {
1046 bool_Bool status;
1047 PyGILState_STATE state;
1048 public:
1049 void end() { if (status) { PyGILState_Release(state); status = false0;} }
1050 SWIG_Python_Thread_Block() : status(true1), state(PyGILState_Ensure()) {}
1051 ~SWIG_Python_Thread_Block() { end(); }
1052 };
1053 class SWIG_Python_Thread_Allow {
1054 bool_Bool status;
1055 PyThreadState *save;
1056 public:
1057 void end() { if (status) { PyEval_RestoreThread(save); status = false0; }}
1058 SWIG_Python_Thread_Allow() : status(true1), save(PyEval_SaveThread()) {}
1059 ~SWIG_Python_Thread_Allow() { end(); }
1060 };
1061# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1062# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1063# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1064# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1065# else /* C code */
1066# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1067# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1068# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1069# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1070# endif
1071# else /* Old thread way, not implemented, user must provide it */
1072# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1073# define SWIG_PYTHON_INITIALIZE_THREADS
1074# endif
1075# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1076# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1077# endif
1078# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1079# define SWIG_PYTHON_THREAD_END_BLOCK
1080# endif
1081# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1082# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1083# endif
1084# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1085# define SWIG_PYTHON_THREAD_END_ALLOW
1086# endif
1087# endif
1088#else /* No thread support */
1089# define SWIG_PYTHON_INITIALIZE_THREADS
1090# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1091# define SWIG_PYTHON_THREAD_END_BLOCK
1092# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1093# define SWIG_PYTHON_THREAD_END_ALLOW
1094#endif
1095
1096/* -----------------------------------------------------------------------------
1097 * Python API portion that goes into the runtime
1098 * ----------------------------------------------------------------------------- */
1099
1100#ifdef __cplusplus
1101extern "C" {
1102#endif
1103
1104/* -----------------------------------------------------------------------------
1105 * Constant declarations
1106 * ----------------------------------------------------------------------------- */
1107
1108/* Constant Types */
1109#define SWIG_PY_POINTER4 4
1110#define SWIG_PY_BINARY5 5
1111
1112/* Constant information structure */
1113typedef struct swig_const_info {
1114 int type;
1115 char *name;
1116 long lvalue;
1117 double dvalue;
1118 void *pvalue;
1119 swig_type_info **ptype;
1120} swig_const_info;
1121
1122
1123/* -----------------------------------------------------------------------------
1124 * Wrapper of PyInstanceMethod_New() used in Python 3
1125 * It is exported to the generated module, used for -fastproxy
1126 * ----------------------------------------------------------------------------- */
1127#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1128SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *func)
1129{
1130 return PyInstanceMethod_New(func);
1131}
1132#else
1133SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *SWIGUNUSEDPARM(func)func __attribute__ ((__unused__)))
1134{
1135 return NULL((void*)0);
1136}
1137#endif
1138
1139#ifdef __cplusplus
1140}
1141#endif
1142
1143
1144/* -----------------------------------------------------------------------------
1145 * pyrun.swg
1146 *
1147 * This file contains the runtime support for Python modules
1148 * and includes code for managing global variables and pointer
1149 * type checking.
1150 *
1151 * ----------------------------------------------------------------------------- */
1152
1153/* Common SWIG API */
1154
1155/* for raw pointers */
1156#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1157#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1158#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1159
1160#ifdef SWIGPYTHON_BUILTIN
1161#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(((void*)0), ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1162#else
1163#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(((void*)0), ptr, type, flags) SWIG_Python_NewPointerObj(NULL((void*)0), ptr, type, flags)
1164#endif
1165
1166#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(((void*)0), ptr, type, flags) SWIG_Python_NewPointerObj(NULL((void*)0), ptr, type, flags)
1167
1168#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1169#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1170#define swig_owntypeint int
1171
1172/* for raw packed data */
1173#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1174#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1175
1176/* for class or struct pointers */
1177#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1178#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(((void*)0), ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(((void*)0), ptr, type, flags)
1179
1180/* for C or C++ function pointers */
1181#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1182#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(((void*)0), ptr, type, 0) SWIG_Python_NewPointerObj(NULL((void*)0), ptr, type, 0)
1183
1184/* for C++ member pointers, ie, member methods */
1185#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1186#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1187
1188
1189/* Runtime API */
1190
1191#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1192#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1193#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1194
1195#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1196#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1197#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1198#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1199#define SWIG_failgoto fail goto fail
1200
1201
1202/* Runtime API implementation */
1203
1204/* Error manipulation */
1205
1206SWIGINTERNstatic __attribute__ ((__unused__)) void
1207SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1208 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1209 PyErr_SetObject(errtype, obj);
1210 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1211 SWIG_PYTHON_THREAD_END_BLOCK;
1212}
1213
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1216 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1217 PyErr_SetString(errtype, msg);
1218 SWIG_PYTHON_THREAD_END_BLOCK;
1219}
1220
1221#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1222
1223/* Set a constant value */
1224
1225#if defined(SWIGPYTHON_BUILTIN)
1226
1227SWIGINTERNstatic __attribute__ ((__unused__)) void
1228SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1229 PyObject *s = PyString_InternFromString(key)PyUnicode_InternFromString(key);
1230 PyList_Append(seq, s);
1231 Py_DECREF(s)do { PyObject *_py_decref_tmp = (PyObject *)(s); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1232}
1233
1234SWIGINTERNstatic __attribute__ ((__unused__)) void
1235SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1236#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1237 PyDict_SetItemString(d, (char *)name, obj);
1238#else
1239 PyDict_SetItemString(d, name, obj);
1240#endif
1241 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1242 if (public_interface)
1243 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1244}
1245
1246#else
1247
1248SWIGINTERNstatic __attribute__ ((__unused__)) void
1249SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1250#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1251 PyDict_SetItemString(d, (char *)name, obj);
1252#else
1253 PyDict_SetItemString(d, name, obj);
1254#endif
1255 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1256}
1257
1258#endif
1259
1260/* Append a value to the result obj */
1261
1262SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1263SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1264#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1265 if (!result) {
1266 result = obj;
1267 } else if (result == Py_None(&_Py_NoneStruct)) {
1268 Py_DECREF(result)do { PyObject *_py_decref_tmp = (PyObject *)(result); if ( --
(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)
(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
1269 result = obj;
1270 } else {
1271 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1UL << 25))) != 0)
) {
1272 PyObject *o2 = result;
1273 result = PyList_New(1);
1274 PyList_SetItem(result, 0, o2);
1275 }
1276 PyList_Append(result,obj);
1277 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1278 }
1279 return result;
1280#else
1281 PyObject* o2;
1282 PyObject* o3;
1283 if (!result) {
1284 result = obj;
1285 } else if (result == Py_None(&_Py_NoneStruct)) {
1286 Py_DECREF(result)do { PyObject *_py_decref_tmp = (PyObject *)(result); if ( --
(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)
(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
1287 result = obj;
1288 } else {
1289 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1UL << 26))) != 0)
) {
1290 o2 = result;
1291 result = PyTuple_New(1);
1292 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1293 }
1294 o3 = PyTuple_New(1);
1295 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1296 o2 = result;
1297 result = PySequence_Concat(o2, o3);
1298 Py_DECREF(o2)do { PyObject *_py_decref_tmp = (PyObject *)(o2); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1299 Py_DECREF(o3)do { PyObject *_py_decref_tmp = (PyObject *)(o3); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1300 }
1301 return result;
1302#endif
1303}
1304
1305/* Unpack the argument tuple */
1306
1307SWIGINTERNstatic __attribute__ ((__unused__)) Py_ssize_t
1308SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1309{
1310 if (!args) {
1311 if (!min && !max) {
1312 return 1;
1313 } else {
1314 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1315 name, (min == max ? "" : "at least "), (int)min);
1316 return 0;
1317 }
1318 }
1319 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1UL
<< 26))) != 0)
) {
1320 if (min <= 1 && max >= 1) {
1321 Py_ssize_t i;
1322 objs[0] = args;
1323 for (i = 1; i < max; ++i) {
1324 objs[i] = 0;
1325 }
1326 return 2;
1327 }
1328 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1329 return 0;
1330 } else {
1331 Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1332 if (l < min) {
1333 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1334 name, (min == max ? "" : "at least "), (int)min, (int)l);
1335 return 0;
1336 } else if (l > max) {
1337 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1338 name, (min == max ? "" : "at most "), (int)max, (int)l);
1339 return 0;
1340 } else {
1341 Py_ssize_t i;
1342 for (i = 0; i < l; ++i) {
1343 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1344 }
1345 for (; l < max; ++l) {
1346 objs[l] = 0;
1347 }
1348 return i + 1;
1349 }
1350 }
1351}
1352
1353/* A functor is a function object with one single object argument */
1354#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1355#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, ((void*)0)); PyObject_CallFunctionObjArgs(functor, obj, NULL((void*)0));
1356#else
1357#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, ((void*)0)); PyObject_CallFunction(functor, "O", obj);
1358#endif
1359
1360/*
1361 Helper for static pointer initialization for both C and C++ code, for example
1362 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1363*/
1364#ifdef __cplusplus
1365#define SWIG_STATIC_POINTER(var)var = 0; if (!var) var var
1366#else
1367#define SWIG_STATIC_POINTER(var)var = 0; if (!var) var var = 0; if (!var) var
1368#endif
1369
1370/* -----------------------------------------------------------------------------
1371 * Pointer declarations
1372 * ----------------------------------------------------------------------------- */
1373
1374/* Flags for new pointer objects */
1375#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1376#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1377
1378#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1379
1380#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1381#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1382
1383#ifdef __cplusplus
1384extern "C" {
1385#endif
1386
1387/* How to access Py_None */
1388#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1389# ifndef SWIG_PYTHON_NO_BUILD_NONE
1390# ifndef SWIG_PYTHON_BUILD_NONE
1391# define SWIG_PYTHON_BUILD_NONE
1392# endif
1393# endif
1394#endif
1395
1396#ifdef SWIG_PYTHON_BUILD_NONE
1397# ifdef Py_None(&_Py_NoneStruct)
1398# undef Py_None(&_Py_NoneStruct)
1399# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1400# endif
1401SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1402_SWIG_Py_None(void)
1403{
1404 PyObject *none = Py_BuildValue((char*)"");
1405 Py_DECREF(none)do { PyObject *_py_decref_tmp = (PyObject *)(none); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1406 return none;
1407}
1408SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1409SWIG_Py_None(void)
1410{
1411 static PyObject *SWIG_STATIC_POINTER(none)none = 0; if (!none) none = _SWIG_Py_None();
1412 return none;
1413}
1414#endif
1415
1416/* The python void return value */
1417
1418SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1419SWIG_Py_Void(void)
1420{
1421 PyObject *none = Py_None(&_Py_NoneStruct);
1422 Py_INCREF(none)( ((PyObject *)(none))->ob_refcnt++);
1423 return none;
1424}
1425
1426/* SwigPyClientData */
1427
1428typedef struct {
1429 PyObject *klass;
1430 PyObject *newraw;
1431 PyObject *newargs;
1432 PyObject *destroy;
1433 int delargs;
1434 int implicitconv;
1435 PyTypeObject *pytype;
1436} SwigPyClientData;
1437
1438SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1439SWIG_Python_CheckImplicit(swig_type_info *ty)
1440{
1441 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1442 return data ? data->implicitconv : 0;
1443}
1444
1445SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1446SWIG_Python_ExceptionType(swig_type_info *desc) {
1447 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1448 PyObject *klass = data ? data->klass : 0;
1449 return (klass ? klass : PyExc_RuntimeError);
1450}
1451
1452
1453SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1454SwigPyClientData_New(PyObject* obj)
1455{
1456 if (!obj) {
1457 return 0;
1458 } else {
1459 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1460 /* the klass element */
1461 data->klass = obj;
1462 Py_INCREF(data->klass)( ((PyObject *)(data->klass))->ob_refcnt++);
1463 /* the newraw method and newargs arguments used to create a new raw instance */
1464 if (PyClass_Check(obj)PyObject_IsInstance(obj, (PyObject *)&PyType_Type)) {
1465 data->newraw = 0;
1466 data->newargs = obj;
1467 Py_INCREF(obj)( ((PyObject *)(obj))->ob_refcnt++);
1468 } else {
1469#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1470 data->newraw = 0;
1471#else
1472 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1473#endif
1474 if (data->newraw) {
1475 Py_INCREF(data->newraw)( ((PyObject *)(data->newraw))->ob_refcnt++);
1476 data->newargs = PyTuple_New(1);
1477 PyTuple_SetItem(data->newargs, 0, obj);
1478 } else {
1479 data->newargs = obj;
1480 }
1481 Py_INCREF(data->newargs)( ((PyObject *)(data->newargs))->ob_refcnt++);
1482 }
1483 /* the destroy method, aka as the C++ delete method */
1484 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1485 if (PyErr_Occurred()) {
1486 PyErr_Clear();
1487 data->destroy = 0;
1488 }
1489 if (data->destroy) {
1490 int flags;
1491 Py_INCREF(data->destroy)( ((PyObject *)(data->destroy))->ob_refcnt++);
1492 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1493#ifdef METH_O0x0008
1494 data->delargs = !(flags & (METH_O0x0008));
1495#else
1496 data->delargs = 0;
1497#endif
1498 } else {
1499 data->delargs = 0;
1500 }
1501 data->implicitconv = 0;
1502 data->pytype = 0;
1503 return data;
1504 }
1505}
1506
1507SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1508SwigPyClientData_Del(SwigPyClientData *data) {
1509 Py_XDECREF(data->newraw)do { PyObject *_py_xdecref_tmp = (PyObject *)(data->newraw
); if (_py_xdecref_tmp != ((void*)0)) do { PyObject *_py_decref_tmp
= (PyObject *)(_py_xdecref_tmp); if ( --(_py_decref_tmp)->
ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp))->
ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))); } while
(0); } while (0)
;
1510 Py_XDECREF(data->newargs)do { PyObject *_py_xdecref_tmp = (PyObject *)(data->newargs
); if (_py_xdecref_tmp != ((void*)0)) do { PyObject *_py_decref_tmp
= (PyObject *)(_py_xdecref_tmp); if ( --(_py_decref_tmp)->
ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp))->
ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))); } while
(0); } while (0)
;
1511 Py_XDECREF(data->destroy)do { PyObject *_py_xdecref_tmp = (PyObject *)(data->destroy
); if (_py_xdecref_tmp != ((void*)0)) do { PyObject *_py_decref_tmp
= (PyObject *)(_py_xdecref_tmp); if ( --(_py_decref_tmp)->
ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp))->
ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))); } while
(0); } while (0)
;
1512}
1513
1514/* =============== SwigPyObject =====================*/
1515
1516typedef struct {
1517 PyObject_HEADPyObject ob_base;
1518 void *ptr;
1519 swig_type_info *ty;
1520 int own;
1521 PyObject *next;
1522#ifdef SWIGPYTHON_BUILTIN
1523 PyObject *dict;
1524#endif
1525} SwigPyObject;
1526
1527
1528#ifdef SWIGPYTHON_BUILTIN
1529
1530SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1531SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)args __attribute__ ((__unused__)))
1532{
1533 SwigPyObject *sobj = (SwigPyObject *)v;
1534
1535 if (!sobj->dict)
1536 sobj->dict = PyDict_New();
1537
1538 Py_INCREF(sobj->dict)( ((PyObject *)(sobj->dict))->ob_refcnt++);
1539 return sobj->dict;
1540}
1541
1542#endif
1543
1544SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1545SwigPyObject_long(SwigPyObject *v)
1546{
1547 return PyLong_FromVoidPtr(v->ptr);
1548}
1549
1550SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1551SwigPyObject_format(const char* fmt, SwigPyObject *v)
1552{
1553 PyObject *res = NULL((void*)0);
1554 PyObject *args = PyTuple_New(1);
1555 if (args) {
1556 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1557 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1558 if (ofmt) {
1559#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1560 res = PyUnicode_Format(ofmt,args);
1561#else
1562 res = PyString_Format(ofmt,args)PyUnicode_Format(ofmt, args);
1563#endif
1564 Py_DECREF(ofmt)do { PyObject *_py_decref_tmp = (PyObject *)(ofmt); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1565 }
1566 Py_DECREF(args)do { PyObject *_py_decref_tmp = (PyObject *)(args); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1567 }
1568 }
1569 return res;
1570}
1571
1572SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1573SwigPyObject_oct(SwigPyObject *v)
1574{
1575 return SwigPyObject_format("%o",v);
1576}
1577
1578SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1579SwigPyObject_hex(SwigPyObject *v)
1580{
1581 return SwigPyObject_format("%x",v);
1582}
1583
1584SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1585#ifdef METH_NOARGS0x0004
1586SwigPyObject_repr(SwigPyObject *v)
1587#else
1588SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1589#endif
1590{
1591 const char *name = SWIG_TypePrettyName(v->ty);
1592 PyObject *repr = SWIG_Python_str_FromFormatPyUnicode_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1593 if (v->next) {
1594# ifdef METH_NOARGS0x0004
1595 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1596# else
1597 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1598# endif
1599# if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1600 PyObject *joined = PyUnicode_Concat(repr, nrep);
1601 Py_DecRef(repr);
1602 Py_DecRef(nrep);
1603 repr = joined;
1604# else
1605 PyString_ConcatAndDel(&repr,nrep);
1606# endif
1607 }
1608 return repr;
1609}
1610
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1612SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1613{
1614 void *i = v->ptr;
1615 void *j = w->ptr;
1616 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1617}
1618
1619/* Added for Python 3.x, would it also be useful for Python 2.x? */
1620SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1621SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1622{
1623 PyObject* res;
1624 if( op != Py_EQ2 && op != Py_NE3 ) {
1625 Py_INCREF(Py_NotImplemented)( ((PyObject *)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1626 return Py_NotImplemented(&_Py_NotImplementedStruct);
1627 }
1628 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1629 return res;
1630}
1631
1632
1633SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1634
1635#ifdef SWIGPYTHON_BUILTIN
1636static swig_type_info *SwigPyObject_stype = 0;
1637SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1638SwigPyObject_type(void) {
1639 SwigPyClientData *cd;
1640 assert(SwigPyObject_stype)((SwigPyObject_stype) ? (void) (0) : __assert_fail ("SwigPyObject_stype"
, "ddc_swig3_wrap.c", 1640, __PRETTY_FUNCTION__))
;
1641 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1642 assert(cd)((cd) ? (void) (0) : __assert_fail ("cd", "ddc_swig3_wrap.c",
1642, __PRETTY_FUNCTION__))
;
1643 assert(cd->pytype)((cd->pytype) ? (void) (0) : __assert_fail ("cd->pytype"
, "ddc_swig3_wrap.c", 1643, __PRETTY_FUNCTION__))
;
1644 return cd->pytype;
1645}
1646#else
1647SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1648SwigPyObject_type(void) {
1649 static PyTypeObject *SWIG_STATIC_POINTER(type)type = 0; if (!type) type = SwigPyObject_TypeOnce();
1650 return type;
1651}
1652#endif
1653
1654SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1655SwigPyObject_Check(PyObject *op) {
1656#ifdef SWIGPYTHON_BUILTIN
1657 PyTypeObject *target_tp = SwigPyObject_type();
1658 if (PyType_IsSubtype(op->ob_type, target_tp))
1659 return 1;
1660 return (strcmp(op->ob_type->tp_name, "SwigPyObject")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(op->ob_type->tp_name) && __builtin_constant_p
("SwigPyObject") && (__s1_len = strlen (op->ob_type
->tp_name), __s2_len = strlen ("SwigPyObject"), (!((size_t
)(const void *)((op->ob_type->tp_name) + 1) - (size_t)(
const void *)(op->ob_type->tp_name) == 1) || __s1_len >=
4) && (!((size_t)(const void *)(("SwigPyObject") + 1
) - (size_t)(const void *)("SwigPyObject") == 1) || __s2_len >=
4)) ? __builtin_strcmp (op->ob_type->tp_name, "SwigPyObject"
) : (__builtin_constant_p (op->ob_type->tp_name) &&
((size_t)(const void *)((op->ob_type->tp_name) + 1) - (
size_t)(const void *)(op->ob_type->tp_name) == 1) &&
(__s1_len = strlen (op->ob_type->tp_name), __s1_len <
4) ? (__builtin_constant_p ("SwigPyObject") && ((size_t
)(const void *)(("SwigPyObject") + 1) - (size_t)(const void *
)("SwigPyObject") == 1) ? __builtin_strcmp (op->ob_type->
tp_name, "SwigPyObject") : (__extension__ ({ const unsigned char
*__s2 = (const unsigned char *) (const char *) ("SwigPyObject"
); int __result = (((const unsigned char *) (const char *) (op
->ob_type->tp_name))[0] - __s2[0]); if (__s1_len > 0
&& __result == 0) { __result = (((const unsigned char
*) (const char *) (op->ob_type->tp_name))[1] - __s2[1]
); if (__s1_len > 1 && __result == 0) { __result =
(((const unsigned char *) (const char *) (op->ob_type->
tp_name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (op
->ob_type->tp_name))[3] - __s2[3]); } } __result; }))) :
(__builtin_constant_p ("SwigPyObject") && ((size_t)(
const void *)(("SwigPyObject") + 1) - (size_t)(const void *)(
"SwigPyObject") == 1) && (__s2_len = strlen ("SwigPyObject"
), __s2_len < 4) ? (__builtin_constant_p (op->ob_type->
tp_name) && ((size_t)(const void *)((op->ob_type->
tp_name) + 1) - (size_t)(const void *)(op->ob_type->tp_name
) == 1) ? __builtin_strcmp (op->ob_type->tp_name, "SwigPyObject"
) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) (op->ob_type->tp_name); int __result
= (((const unsigned char *) (const char *) ("SwigPyObject"))
[0] - __s2[0]); if (__s2_len > 0 && __result == 0)
{ __result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[1] - __s2[1]); if (__s2_len > 1 && __result == 0
) { __result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[2] - __s2[2]); if (__s2_len > 2 && __result == 0
) __result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (op->
ob_type->tp_name, "SwigPyObject")))); })
== 0);
1661#else
1662 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1663 || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
((((PyObject*)(op))->ob_type)->tp_name) && __builtin_constant_p
("SwigPyObject") && (__s1_len = strlen ((((PyObject*
)(op))->ob_type)->tp_name), __s2_len = strlen ("SwigPyObject"
), (!((size_t)(const void *)(((((PyObject*)(op))->ob_type)
->tp_name) + 1) - (size_t)(const void *)((((PyObject*)(op)
)->ob_type)->tp_name) == 1) || __s1_len >= 4) &&
(!((size_t)(const void *)(("SwigPyObject") + 1) - (size_t)(const
void *)("SwigPyObject") == 1) || __s2_len >= 4)) ? __builtin_strcmp
((((PyObject*)(op))->ob_type)->tp_name, "SwigPyObject"
) : (__builtin_constant_p ((((PyObject*)(op))->ob_type)->
tp_name) && ((size_t)(const void *)(((((PyObject*)(op
))->ob_type)->tp_name) + 1) - (size_t)(const void *)(((
(PyObject*)(op))->ob_type)->tp_name) == 1) && (
__s1_len = strlen ((((PyObject*)(op))->ob_type)->tp_name
), __s1_len < 4) ? (__builtin_constant_p ("SwigPyObject") &&
((size_t)(const void *)(("SwigPyObject") + 1) - (size_t)(const
void *)("SwigPyObject") == 1) ? __builtin_strcmp ((((PyObject
*)(op))->ob_type)->tp_name, "SwigPyObject") : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) ("SwigPyObject"); int __result = (((const unsigned char
*) (const char *) ((((PyObject*)(op))->ob_type)->tp_name
))[0] - __s2[0]); if (__s1_len > 0 && __result == 0
) { __result = (((const unsigned char *) (const char *) ((((PyObject
*)(op))->ob_type)->tp_name))[1] - __s2[1]); if (__s1_len
> 1 && __result == 0) { __result = (((const unsigned
char *) (const char *) ((((PyObject*)(op))->ob_type)->
tp_name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) ((
((PyObject*)(op))->ob_type)->tp_name))[3] - __s2[3]); }
} __result; }))) : (__builtin_constant_p ("SwigPyObject") &&
((size_t)(const void *)(("SwigPyObject") + 1) - (size_t)(const
void *)("SwigPyObject") == 1) && (__s2_len = strlen (
"SwigPyObject"), __s2_len < 4) ? (__builtin_constant_p (((
(PyObject*)(op))->ob_type)->tp_name) && ((size_t
)(const void *)(((((PyObject*)(op))->ob_type)->tp_name)
+ 1) - (size_t)(const void *)((((PyObject*)(op))->ob_type
)->tp_name) == 1) ? __builtin_strcmp ((((PyObject*)(op))->
ob_type)->tp_name, "SwigPyObject") : -(__extension__ ({ const
unsigned char *__s2 = (const unsigned char *) (const char *)
((((PyObject*)(op))->ob_type)->tp_name); int __result =
(((const unsigned char *) (const char *) ("SwigPyObject"))[0
] - __s2[0]); if (__s2_len > 0 && __result == 0) {
__result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[1] - __s2[1]); if (__s2_len > 1 && __result == 0
) { __result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[2] - __s2[2]); if (__s2_len > 2 && __result == 0
) __result = (((const unsigned char *) (const char *) ("SwigPyObject"
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ((((PyObject
*)(op))->ob_type)->tp_name, "SwigPyObject")))); })
== 0);
1664#endif
1665}
1666
1667SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1668SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1669
1670SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1671SwigPyObject_dealloc(PyObject *v)
1672{
1673 SwigPyObject *sobj = (SwigPyObject *) v;
1674 PyObject *next = sobj->next;
1675 if (sobj->own == SWIG_POINTER_OWN0x1) {
1676 swig_type_info *ty = sobj->ty;
1677 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1678 PyObject *destroy = data ? data->destroy : 0;
1679 if (destroy) {
1680 /* destroy is always a VARARGS method */
1681 PyObject *res;
1682
1683 /* PyObject_CallFunction() has the potential to silently drop
1684 the active active exception. In cases of unnamed temporary
1685 variable or where we just finished iterating over a generator
1686 StopIteration will be active right now, and this needs to
1687 remain true upon return from SwigPyObject_dealloc. So save
1688 and restore. */
1689
1690 PyObject *val = NULL((void*)0), *type = NULL((void*)0), *tb = NULL((void*)0);
1691 PyErr_Fetch(&val, &type, &tb);
1692
1693 if (data->delargs) {
1694 /* we need to create a temporary object to carry the destroy operation */
1695 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1696 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, ((void*)0));;
1697 Py_DECREF(tmp)do { PyObject *_py_decref_tmp = (PyObject *)(tmp); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
1698 } else {
1699 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1700 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_flags &
0x0020 ? ((void*)0) : ((PyCFunctionObject *)destroy) -> m_self
)
;
1701 res = ((*meth)(mself, v));
1702 }
1703 if (!res)
1704 PyErr_WriteUnraisable(destroy);
1705
1706 PyErr_Restore(val, type, tb);
1707
1708 Py_XDECREF(res)do { PyObject *_py_xdecref_tmp = (PyObject *)(res); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
1709 }
1710#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1711 else {
1712 const char *name = SWIG_TypePrettyName(ty);
1713 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1714 }
1715#endif
1716 }
1717 Py_XDECREF(next)do { PyObject *_py_xdecref_tmp = (PyObject *)(next); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
1718 PyObject_DELPyObject_Free(v);
1719}
1720
1721SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1722SwigPyObject_append(PyObject* v, PyObject* next)
1723{
1724 SwigPyObject *sobj = (SwigPyObject *) v;
1725#ifndef METH_O0x0008
1726 PyObject *tmp = 0;
1727 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL((void*)0);
1728 next = tmp;
1729#endif
1730 if (!SwigPyObject_Check(next)) {
1731 PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1732 return NULL((void*)0);
1733 }
1734 sobj->next = next;
1735 Py_INCREF(next)( ((PyObject *)(next))->ob_refcnt++);
1736 return SWIG_Py_Void();
1737}
1738
1739SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1740#ifdef METH_NOARGS0x0004
1741SwigPyObject_next(PyObject* v)
1742#else
1743SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)args __attribute__ ((__unused__)))
1744#endif
1745{
1746 SwigPyObject *sobj = (SwigPyObject *) v;
1747 if (sobj->next) {
1748 Py_INCREF(sobj->next)( ((PyObject *)(sobj->next))->ob_refcnt++);
1749 return sobj->next;
1750 } else {
1751 return SWIG_Py_Void();
1752 }
1753}
1754
1755SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1756#ifdef METH_NOARGS0x0004
1757SwigPyObject_disown(PyObject *v)
1758#else
1759SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)args __attribute__ ((__unused__)))
1760#endif
1761{
1762 SwigPyObject *sobj = (SwigPyObject *)v;
1763 sobj->own = 0;
1764 return SWIG_Py_Void();
1765}
1766
1767SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1768#ifdef METH_NOARGS0x0004
1769SwigPyObject_acquire(PyObject *v)
1770#else
1771SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)args __attribute__ ((__unused__)))
1772#endif
1773{
1774 SwigPyObject *sobj = (SwigPyObject *)v;
1775 sobj->own = SWIG_POINTER_OWN0x1;
1776 return SWIG_Py_Void();
1777}
1778
1779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1780SwigPyObject_own(PyObject *v, PyObject *args)
1781{
1782 PyObject *val = 0;
1783#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1784 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1785#elif (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1786 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1787#else
1788 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1789#endif
1790 {
1791 return NULL((void*)0);
1792 }
1793 else
1794 {
1795 SwigPyObject *sobj = (SwigPyObject *)v;
1796 PyObject *obj = PyBool_FromLong(sobj->own);
1797 if (val) {
1798#ifdef METH_NOARGS0x0004
1799 if (PyObject_IsTrue(val)) {
1800 SwigPyObject_acquire(v);
1801 } else {
1802 SwigPyObject_disown(v);
1803 }
1804#else
1805 if (PyObject_IsTrue(val)) {
1806 SwigPyObject_acquire(v,args);
1807 } else {
1808 SwigPyObject_disown(v,args);
1809 }
1810#endif
1811 }
1812 return obj;
1813 }
1814}
1815
1816#ifdef METH_O0x0008
1817static PyMethodDef
1818swigobject_methods[] = {
1819 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1820 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1821 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1822 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1823 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1824 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1825 {0, 0, 0, 0}
1826};
1827#else
1828static PyMethodDef
1829swigobject_methods[] = {
1830 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1831 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"acquires ownership of the pointer"},
1832 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1833 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1834 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1835 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1836 {0, 0, 0, 0}
1837};
1838#endif
1839
1840#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1841SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1842SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1843{
1844 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1845}
1846#endif
1847
1848SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1849SwigPyObject_TypeOnce(void) {
1850 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1851
1852 static PyNumberMethods SwigPyObject_as_number = {
1853 (binaryfunc)0, /*nb_add*/
1854 (binaryfunc)0, /*nb_subtract*/
1855 (binaryfunc)0, /*nb_multiply*/
1856 /* nb_divide removed in Python 3 */
1857#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1858 (binaryfunc)0, /*nb_divide*/
1859#endif
1860 (binaryfunc)0, /*nb_remainder*/
1861 (binaryfunc)0, /*nb_divmod*/
1862 (ternaryfunc)0,/*nb_power*/
1863 (unaryfunc)0, /*nb_negative*/
1864 (unaryfunc)0, /*nb_positive*/
1865 (unaryfunc)0, /*nb_absolute*/
1866 (inquiry)0, /*nb_nonzero*/
1867 0, /*nb_invert*/
1868 0, /*nb_lshift*/
1869 0, /*nb_rshift*/
1870 0, /*nb_and*/
1871 0, /*nb_xor*/
1872 0, /*nb_or*/
1873#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1874 0, /*nb_coerce*/
1875#endif
1876 (unaryfunc)SwigPyObject_long, /*nb_int*/
1877#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1878 (unaryfunc)SwigPyObject_long, /*nb_long*/
1879#else
1880 0, /*nb_reserved*/
1881#endif
1882 (unaryfunc)0, /*nb_float*/
1883#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1884 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1885 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1886#endif
1887#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03050000 /* 3.5 */
1888 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1889#elif PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1890 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1891#elif PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1892 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1893#elif PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1894 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1895#elif PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1896 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1897#endif
1898 };
1899
1900 static PyTypeObject swigpyobject_type;
1901 static int type_init = 0;
1902 if (!type_init) {
1903 const PyTypeObject tmp = {
1904#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1905 PyVarObject_HEAD_INIT(NULL, 0){ { 1, ((void*)0) }, 0 },
1906#else
1907 PyObject_HEAD_INIT(NULL){ 1, ((void*)0) },
1908 0, /* ob_size */
1909#endif
1910 (char *)"SwigPyObject", /* tp_name */
1911 sizeof(SwigPyObject), /* tp_basicsize */
1912 0, /* tp_itemsize */
1913 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1914 0, /* tp_print */
1915#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1916 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1917#else
1918 (getattrfunc)0, /* tp_getattr */
1919#endif
1920 (setattrfunc)0, /* tp_setattr */
1921#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1922 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1923#else
1924 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1925#endif
1926 (reprfunc)SwigPyObject_repr, /* tp_repr */
1927 &SwigPyObject_as_number, /* tp_as_number */
1928 0, /* tp_as_sequence */
1929 0, /* tp_as_mapping */
1930 (hashfunc)0, /* tp_hash */
1931 (ternaryfunc)0, /* tp_call */
1932 0, /* tp_str */
1933 PyObject_GenericGetAttr, /* tp_getattro */
1934 0, /* tp_setattro */
1935 0, /* tp_as_buffer */
1936 Py_TPFLAGS_DEFAULT( 0 | (1UL << 18) | 0), /* tp_flags */
1937 swigobject_doc, /* tp_doc */
1938 0, /* tp_traverse */
1939 0, /* tp_clear */
1940 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1941 0, /* tp_weaklistoffset */
1942#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1943 0, /* tp_iter */
1944 0, /* tp_iternext */
1945 swigobject_methods, /* tp_methods */
1946 0, /* tp_members */
1947 0, /* tp_getset */
1948 0, /* tp_base */
1949 0, /* tp_dict */
1950 0, /* tp_descr_get */
1951 0, /* tp_descr_set */
1952 0, /* tp_dictoffset */
1953 0, /* tp_init */
1954 0, /* tp_alloc */
1955 0, /* tp_new */
1956 0, /* tp_free */
1957 0, /* tp_is_gc */
1958 0, /* tp_bases */
1959 0, /* tp_mro */
1960 0, /* tp_cache */
1961 0, /* tp_subclasses */
1962 0, /* tp_weaklist */
1963#endif
1964#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1965 0, /* tp_del */
1966#endif
1967#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1968 0, /* tp_version_tag */
1969#endif
1970#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
1971 0, /* tp_finalize */
1972#endif
1973#ifdef COUNT_ALLOCS
1974 0, /* tp_allocs */
1975 0, /* tp_frees */
1976 0, /* tp_maxalloc */
1977#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
1978 0, /* tp_prev */
1979#endif
1980 0 /* tp_next */
1981#endif
1982 };
1983 swigpyobject_type = tmp;
1984 type_init = 1;
1985#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1986 swigpyobject_type.ob_type = &PyType_Type;
1987#else
1988 if (PyType_Ready(&swigpyobject_type) < 0)
1989 return NULL((void*)0);
1990#endif
1991 }
1992 return &swigpyobject_type;
1993}
1994
1995SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1996SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1997{
1998 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
1999 if (sobj) {
2000 sobj->ptr = ptr;
2001 sobj->ty = ty;
2002 sobj->own = own;
2003 sobj->next = 0;
2004 }
2005 return (PyObject *)sobj;
2006}
2007
2008/* -----------------------------------------------------------------------------
2009 * Implements a simple Swig Packed type, and use it instead of string
2010 * ----------------------------------------------------------------------------- */
2011
2012typedef struct {
2013 PyObject_HEADPyObject ob_base;
2014 void *pack;
2015 swig_type_info *ty;
2016 size_t size;
2017} SwigPyPacked;
2018
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)flags __attribute__ ((__unused__)))
2021{
2022 char result[SWIG_BUFFER_SIZE1024];
2023 fputs("<Swig Packed ", fp);
2024 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2025 fputs("at ", fp);
2026 fputs(result, fp);
2027 }
2028 fputs(v->ty->name,fp);
2029 fputs(">", fp);
2030 return 0;
2031}
2032
2033SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2034SwigPyPacked_repr(SwigPyPacked *v)
2035{
2036 char result[SWIG_BUFFER_SIZE1024];
2037 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2038 return SWIG_Python_str_FromFormatPyUnicode_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2039 } else {
2040 return SWIG_Python_str_FromFormatPyUnicode_FromFormat("<Swig Packed %s>", v->ty->name);
2041 }
2042}
2043
2044SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2045SwigPyPacked_str(SwigPyPacked *v)
2046{
2047 char result[SWIG_BUFFER_SIZE1024];
2048 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2049 return SWIG_Python_str_FromFormatPyUnicode_FromFormat("%s%s", result, v->ty->name);
2050 } else {
2051 return SWIG_Python_str_FromChar(v->ty->name);
2052 }
2053}
2054
2055SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2056SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2057{
2058 size_t i = v->size;
2059 size_t j = w->size;
2060 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2061 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size)(__extension__ (__builtin_constant_p (2*v->size) &&
((__builtin_constant_p ((char *)v->pack) && strlen
((char *)v->pack) < ((size_t) (2*v->size))) || (__builtin_constant_p
((char *)w->pack) && strlen ((char *)w->pack) <
((size_t) (2*v->size)))) ? __extension__ ({ size_t __s1_len
, __s2_len; (__builtin_constant_p ((char *)v->pack) &&
__builtin_constant_p ((char *)w->pack) && (__s1_len
= strlen ((char *)v->pack), __s2_len = strlen ((char *)w->
pack), (!((size_t)(const void *)(((char *)v->pack) + 1) - (
size_t)(const void *)((char *)v->pack) == 1) || __s1_len >=
4) && (!((size_t)(const void *)(((char *)w->pack)
+ 1) - (size_t)(const void *)((char *)w->pack) == 1) || __s2_len
>= 4)) ? __builtin_strcmp ((char *)v->pack, (char *)w->
pack) : (__builtin_constant_p ((char *)v->pack) &&
((size_t)(const void *)(((char *)v->pack) + 1) - (size_t)
(const void *)((char *)v->pack) == 1) && (__s1_len
= strlen ((char *)v->pack), __s1_len < 4) ? (__builtin_constant_p
((char *)w->pack) && ((size_t)(const void *)(((char
*)w->pack) + 1) - (size_t)(const void *)((char *)w->pack
) == 1) ? __builtin_strcmp ((char *)v->pack, (char *)w->
pack) : (__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) ((char *)w->pack); int __result = (
((const unsigned char *) (const char *) ((char *)v->pack))
[0] - __s2[0]); if (__s1_len > 0 && __result == 0)
{ __result = (((const unsigned char *) (const char *) ((char
*)v->pack))[1] - __s2[1]); if (__s1_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) ((char *)v->pack))[2] - __s2[2]); if (__s1_len >
2 && __result == 0) __result = (((const unsigned char
*) (const char *) ((char *)v->pack))[3] - __s2[3]); } } __result
; }))) : (__builtin_constant_p ((char *)w->pack) &&
((size_t)(const void *)(((char *)w->pack) + 1) - (size_t)
(const void *)((char *)w->pack) == 1) && (__s2_len
= strlen ((char *)w->pack), __s2_len < 4) ? (__builtin_constant_p
((char *)v->pack) && ((size_t)(const void *)(((char
*)v->pack) + 1) - (size_t)(const void *)((char *)v->pack
) == 1) ? __builtin_strcmp ((char *)v->pack, (char *)w->
pack) : -(__extension__ ({ const unsigned char *__s2 = (const
unsigned char *) (const char *) ((char *)v->pack); int __result
= (((const unsigned char *) (const char *) ((char *)w->pack
))[0] - __s2[0]); if (__s2_len > 0 && __result == 0
) { __result = (((const unsigned char *) (const char *) ((char
*)w->pack))[1] - __s2[1]); if (__s2_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) ((char *)w->pack))[2] - __s2[2]); if (__s2_len >
2 && __result == 0) __result = (((const unsigned char
*) (const char *) ((char *)w->pack))[3] - __s2[3]); } } __result
; }))) : __builtin_strcmp ((char *)v->pack, (char *)w->
pack)))); }) : strncmp ((char *)v->pack, (char *)w->pack
, 2*v->size)))
;
2062}
2063
2064SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2065
2066SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2067SwigPyPacked_type(void) {
2068 static PyTypeObject *SWIG_STATIC_POINTER(type)type = 0; if (!type) type = SwigPyPacked_TypeOnce();
2069 return type;
2070}
2071
2072SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2073SwigPyPacked_Check(PyObject *op) {
2074 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2075 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked")__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
((op)->ob_type->tp_name) && __builtin_constant_p
("SwigPyPacked") && (__s1_len = strlen ((op)->ob_type
->tp_name), __s2_len = strlen ("SwigPyPacked"), (!((size_t
)(const void *)(((op)->ob_type->tp_name) + 1) - (size_t
)(const void *)((op)->ob_type->tp_name) == 1) || __s1_len
>= 4) && (!((size_t)(const void *)(("SwigPyPacked"
) + 1) - (size_t)(const void *)("SwigPyPacked") == 1) || __s2_len
>= 4)) ? __builtin_strcmp ((op)->ob_type->tp_name, "SwigPyPacked"
) : (__builtin_constant_p ((op)->ob_type->tp_name) &&
((size_t)(const void *)(((op)->ob_type->tp_name) + 1) -
(size_t)(const void *)((op)->ob_type->tp_name) == 1) &&
(__s1_len = strlen ((op)->ob_type->tp_name), __s1_len <
4) ? (__builtin_constant_p ("SwigPyPacked") && ((size_t
)(const void *)(("SwigPyPacked") + 1) - (size_t)(const void *
)("SwigPyPacked") == 1) ? __builtin_strcmp ((op)->ob_type->
tp_name, "SwigPyPacked") : (__extension__ ({ const unsigned char
*__s2 = (const unsigned char *) (const char *) ("SwigPyPacked"
); int __result = (((const unsigned char *) (const char *) ((
op)->ob_type->tp_name))[0] - __s2[0]); if (__s1_len >
0 && __result == 0) { __result = (((const unsigned char
*) (const char *) ((op)->ob_type->tp_name))[1] - __s2[
1]); if (__s1_len > 1 && __result == 0) { __result
= (((const unsigned char *) (const char *) ((op)->ob_type
->tp_name))[2] - __s2[2]); if (__s1_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) ((
op)->ob_type->tp_name))[3] - __s2[3]); } } __result; })
)) : (__builtin_constant_p ("SwigPyPacked") && ((size_t
)(const void *)(("SwigPyPacked") + 1) - (size_t)(const void *
)("SwigPyPacked") == 1) && (__s2_len = strlen ("SwigPyPacked"
), __s2_len < 4) ? (__builtin_constant_p ((op)->ob_type
->tp_name) && ((size_t)(const void *)(((op)->ob_type
->tp_name) + 1) - (size_t)(const void *)((op)->ob_type->
tp_name) == 1) ? __builtin_strcmp ((op)->ob_type->tp_name
, "SwigPyPacked") : -(__extension__ ({ const unsigned char *__s2
= (const unsigned char *) (const char *) ((op)->ob_type->
tp_name); int __result = (((const unsigned char *) (const char
*) ("SwigPyPacked"))[0] - __s2[0]); if (__s2_len > 0 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) ("SwigPyPacked"))[1] - __s2[1]); if (__s2_len > 1
&& __result == 0) { __result = (((const unsigned char
*) (const char *) ("SwigPyPacked"))[2] - __s2[2]); if (__s2_len
> 2 && __result == 0) __result = (((const unsigned
char *) (const char *) ("SwigPyPacked"))[3] - __s2[3]); } } __result
; }))) : __builtin_strcmp ((op)->ob_type->tp_name, "SwigPyPacked"
)))); })
== 0);
2076}
2077
2078SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2079SwigPyPacked_dealloc(PyObject *v)
2080{
2081 if (SwigPyPacked_Check(v)) {
2082 SwigPyPacked *sobj = (SwigPyPacked *) v;
2083 free(sobj->pack);
2084 }
2085 PyObject_DELPyObject_Free(v);
2086}
2087
2088SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2089SwigPyPacked_TypeOnce(void) {
2090 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2091 static PyTypeObject swigpypacked_type;
2092 static int type_init = 0;
2093 if (!type_init) {
2094 const PyTypeObject tmp = {
2095#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2096 PyVarObject_HEAD_INIT(NULL, 0){ { 1, ((void*)0) }, 0 },
2097#else
2098 PyObject_HEAD_INIT(NULL){ 1, ((void*)0) },
2099 0, /* ob_size */
2100#endif
2101 (char *)"SwigPyPacked", /* tp_name */
2102 sizeof(SwigPyPacked), /* tp_basicsize */
2103 0, /* tp_itemsize */
2104 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2105 (printfunc)SwigPyPacked_print, /* tp_print */
2106 (getattrfunc)0, /* tp_getattr */
2107 (setattrfunc)0, /* tp_setattr */
2108#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2109 0, /* tp_reserved in 3.0.1 */
2110#else
2111 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2112#endif
2113 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2114 0, /* tp_as_number */
2115 0, /* tp_as_sequence */
2116 0, /* tp_as_mapping */
2117 (hashfunc)0, /* tp_hash */
2118 (ternaryfunc)0, /* tp_call */
2119 (reprfunc)SwigPyPacked_str, /* tp_str */
2120 PyObject_GenericGetAttr, /* tp_getattro */
2121 0, /* tp_setattro */
2122 0, /* tp_as_buffer */
2123 Py_TPFLAGS_DEFAULT( 0 | (1UL << 18) | 0), /* tp_flags */
2124 swigpacked_doc, /* tp_doc */
2125 0, /* tp_traverse */
2126 0, /* tp_clear */
2127 0, /* tp_richcompare */
2128 0, /* tp_weaklistoffset */
2129#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2130 0, /* tp_iter */
2131 0, /* tp_iternext */
2132 0, /* tp_methods */
2133 0, /* tp_members */
2134 0, /* tp_getset */
2135 0, /* tp_base */
2136 0, /* tp_dict */
2137 0, /* tp_descr_get */
2138 0, /* tp_descr_set */
2139 0, /* tp_dictoffset */
2140 0, /* tp_init */
2141 0, /* tp_alloc */
2142 0, /* tp_new */
2143 0, /* tp_free */
2144 0, /* tp_is_gc */
2145 0, /* tp_bases */
2146 0, /* tp_mro */
2147 0, /* tp_cache */
2148 0, /* tp_subclasses */
2149 0, /* tp_weaklist */
2150#endif
2151#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2152 0, /* tp_del */
2153#endif
2154#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2155 0, /* tp_version_tag */
2156#endif
2157#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
2158 0, /* tp_finalize */
2159#endif
2160#ifdef COUNT_ALLOCS
2161 0, /* tp_allocs */
2162 0, /* tp_frees */
2163 0, /* tp_maxalloc */
2164#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
2165 0, /* tp_prev */
2166#endif
2167 0 /* tp_next */
2168#endif
2169 };
2170 swigpypacked_type = tmp;
2171 type_init = 1;
2172#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2173 swigpypacked_type.ob_type = &PyType_Type;
2174#else
2175 if (PyType_Ready(&swigpypacked_type) < 0)
2176 return NULL((void*)0);
2177#endif
2178 }
2179 return &swigpypacked_type;
2180}
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2184{
2185 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2186 if (sobj) {
2187 void *pack = malloc(size);
2188 if (pack) {
2189 memcpy(pack, ptr, size);
2190 sobj->pack = pack;
2191 sobj->ty = ty;
2192 sobj->size = size;
2193 } else {
2194 PyObject_DELPyObject_Free((PyObject *) sobj);
2195 sobj = 0;
2196 }
2197 }
2198 return (PyObject *) sobj;
2199}
2200
2201SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2202SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2203{
2204 if (SwigPyPacked_Check(obj)) {
2205 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2206 if (sobj->size != size) return 0;
2207 memcpy(ptr, sobj->pack, size);
2208 return sobj->ty;
2209 } else {
2210 return 0;
2211 }
2212}
2213
2214/* -----------------------------------------------------------------------------
2215 * pointers/data manipulation
2216 * ----------------------------------------------------------------------------- */
2217
2218SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2219_SWIG_This(void)
2220{
2221 return SWIG_Python_str_FromChar("this");
2222}
2223
2224static PyObject *swig_this = NULL((void*)0);
2225
2226SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2227SWIG_This(void)
2228{
2229 if (swig_this == NULL((void*)0))
2230 swig_this = _SWIG_This();
2231 return swig_this;
2232}
2233
2234/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2235
2236/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2237#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2238#define SWIG_PYTHON_SLOW_GETSET_THIS
2239#endif
2240
2241SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2242SWIG_Python_GetSwigThis(PyObject *pyobj)
2243{
2244 PyObject *obj;
2245
2246 if (SwigPyObject_Check(pyobj))
2247 return (SwigPyObject *) pyobj;
2248
2249#ifdef SWIGPYTHON_BUILTIN
2250 (void)obj;
2251# ifdef PyWeakref_CheckProxy
2252 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2253 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2254 if (pyobj && SwigPyObject_Check(pyobj))
2255 return (SwigPyObject*) pyobj;
2256 }
2257# endif
2258 return NULL((void*)0);
2259#else
2260
2261 obj = 0;
2262
2263#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2264 if (PyInstance_Check(pyobj)) {
2265 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2266 } else {
2267 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2268 if (dictptr != NULL((void*)0)) {
2269 PyObject *dict = *dictptr;
2270 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2271 } else {
2272#ifdef PyWeakref_CheckProxy
2273 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2274 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2275 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2276 }
2277#endif
2278 obj = PyObject_GetAttr(pyobj,SWIG_This());
2279 if (obj) {
2280 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2281 } else {
2282 if (PyErr_Occurred()) PyErr_Clear();
2283 return 0;
2284 }
2285 }
2286 }
2287#else
2288 obj = PyObject_GetAttr(pyobj,SWIG_This());
2289 if (obj) {
2290 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2291 } else {
2292 if (PyErr_Occurred()) PyErr_Clear();
2293 return 0;
2294 }
2295#endif
2296 if (obj && !SwigPyObject_Check(obj)) {
2297 /* a PyObject is called 'this', try to get the 'real this'
2298 SwigPyObject from it */
2299 return SWIG_Python_GetSwigThis(obj);
2300 }
2301 return (SwigPyObject *)obj;
2302#endif
2303}
2304
2305/* Acquire a pointer value */
2306
2307SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2308SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2309 if (own == SWIG_POINTER_OWN0x1) {
2310 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2311 if (sobj) {
2312 int oldown = sobj->own;
2313 sobj->own = own;
2314 return oldown;
2315 }
2316 }
2317 return 0;
2318}
2319
2320/* Convert a pointer value */
2321
2322SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2323SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2324 int res;
2325 SwigPyObject *sobj;
2326 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2327
2328 if (!obj)
2329 return SWIG_ERROR(-1);
2330 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2331 if (ptr)
2332 *ptr = 0;
2333 return SWIG_OK(0);
2334 }
2335
2336 res = SWIG_ERROR(-1);
2337
2338 sobj = SWIG_Python_GetSwigThis(obj);
2339 if (own)
2340 *own = 0;
2341 while (sobj) {
2342 void *vptr = sobj->ptr;
2343 if (ty) {
2344 swig_type_info *to = sobj->ty;
2345 if (to == ty) {
2346 /* no type cast needed */
2347 if (ptr) *ptr = vptr;
2348 break;
2349 } else {
2350 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2351 if (!tc) {
2352 sobj = (SwigPyObject *)sobj->next;
2353 } else {
2354 if (ptr) {
2355 int newmemory = 0;
2356 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2357 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2358 assert(own)((own) ? (void) (0) : __assert_fail ("own", "ddc_swig3_wrap.c"
, 2358, __PRETTY_FUNCTION__))
; /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2359 if (own)
2360 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2361 }
2362 }
2363 break;
2364 }
2365 }
2366 } else {
2367 if (ptr) *ptr = vptr;
2368 break;
2369 }
2370 }
2371 if (sobj) {
2372 if (own)
2373 *own = *own | sobj->own;
2374 if (flags & SWIG_POINTER_DISOWN0x1) {
2375 sobj->own = 0;
2376 }
2377 res = SWIG_OK(0);
2378 } else {
2379 if (implicit_conv) {
2380 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2381 if (data && !data->implicitconv) {
2382 PyObject *klass = data->klass;
2383 if (klass) {
2384 PyObject *impconv;
2385 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2386 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, ((void*)0));;
2387 data->implicitconv = 0;
2388 if (PyErr_Occurred()) {
2389 PyErr_Clear();
2390 impconv = 0;
2391 }
2392 if (impconv) {
2393 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2394 if (iobj) {
2395 void *vptr;
2396 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2397 if (SWIG_IsOK(res)(res >= 0)) {
2398 if (ptr) {
2399 *ptr = vptr;
2400 /* transfer the ownership to 'ptr' */
2401 iobj->own = 0;
2402 res = SWIG_AddCast(res)(res);
2403 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2404 } else {
2405 res = SWIG_AddCast(res)(res);
2406 }
2407 }
2408 }
2409 Py_DECREF(impconv)do { PyObject *_py_decref_tmp = (PyObject *)(impconv); if ( --
(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)
(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
2410 }
2411 }
2412 }
2413 }
2414 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2415 if (ptr)
2416 *ptr = 0;
2417 if (PyErr_Occurred())
2418 PyErr_Clear();
2419 res = SWIG_OK(0);
2420 }
2421 }
2422 return res;
2423}
2424
2425/* Convert a function ptr value */
2426
2427SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2428SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2429 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2430 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2431 } else {
2432 void *vptr = 0;
2433
2434 /* here we get the method pointer for callbacks */
2435 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2436 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2437 if (desc)
2438 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2439 if (!desc)
2440 return SWIG_ERROR(-1);
2441 if (ty) {
2442 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2443 if (tc) {
2444 int newmemory = 0;
2445 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2446 assert(!newmemory)((!newmemory) ? (void) (0) : __assert_fail ("!newmemory", "ddc_swig3_wrap.c"
, 2446, __PRETTY_FUNCTION__))
; /* newmemory handling not yet implemented */
2447 } else {
2448 return SWIG_ERROR(-1);
2449 }
2450 } else {
2451 *ptr = vptr;
2452 }
2453 return SWIG_OK(0);
2454 }
2455}
2456
2457/* Convert a packed value value */
2458
2459SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2460SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2461 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2462 if (!to) return SWIG_ERROR(-1);
2463 if (ty) {
2464 if (to != ty) {
2465 /* check type cast? */
2466 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2467 if (!tc) return SWIG_ERROR(-1);
2468 }
2469 }
2470 return SWIG_OK(0);
2471}
2472
2473/* -----------------------------------------------------------------------------
2474 * Create a new pointer object
2475 * ----------------------------------------------------------------------------- */
2476
2477/*
2478 Create a new instance object, without calling __init__, and set the
2479 'this' attribute.
2480*/
2481
2482SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2483SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2484{
2485#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2486 PyObject *inst = 0;
2487 PyObject *newraw = data->newraw;
2488 if (newraw) {
2489 inst = PyObject_Call(newraw, data->newargs, NULL((void*)0));
2490 if (inst) {
2491#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2492 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2493 if (dictptr != NULL((void*)0)) {
2494 PyObject *dict = *dictptr;
2495 if (dict == NULL((void*)0)) {
2496 dict = PyDict_New();
2497 *dictptr = dict;
2498 PyDict_SetItem(dict, SWIG_This(), swig_this);
2499 }
2500 }
2501#else
2502 PyObject *key = SWIG_This();
2503 PyObject_SetAttr(inst, key, swig_this);
2504#endif
2505 }
2506 } else {
2507#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2508 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2509 if (inst) {
2510 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2511 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1UL << 19);
2512 }
2513#else
2514 PyObject *dict = PyDict_New();
2515 if (dict) {
2516 PyDict_SetItem(dict, SWIG_This(), swig_this);
2517 inst = PyInstance_NewRaw(data->newargs, dict);
2518 Py_DECREF(dict)do { PyObject *_py_decref_tmp = (PyObject *)(dict); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2519 }
2520#endif
2521 }
2522 return inst;
2523#else
2524#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2525 PyObject *inst = 0;
2526 PyObject *dict = PyDict_New();
2527 if (dict) {
2528 PyDict_SetItem(dict, SWIG_This(), swig_this);
2529 inst = PyInstance_NewRaw(data->newargs, dict);
2530 Py_DECREF(dict)do { PyObject *_py_decref_tmp = (PyObject *)(dict); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2531 }
2532 return (PyObject *) inst;
2533#else
2534 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2535 if (inst == NULL((void*)0)) {
2536 return NULL((void*)0);
2537 }
2538 inst->in_class = (PyClassObject *)data->newargs;
2539 Py_INCREF(inst->in_class)( ((PyObject *)(inst->in_class))->ob_refcnt++);
2540 inst->in_dict = PyDict_New();
2541 if (inst->in_dict == NULL((void*)0)) {
2542 Py_DECREF(inst)do { PyObject *_py_decref_tmp = (PyObject *)(inst); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2543 return NULL((void*)0);
2544 }
2545#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2546 inst->in_weakreflist = NULL((void*)0);
2547#endif
2548#ifdef Py_TPFLAGS_GC
2549 PyObject_GC_Init(inst);
2550#endif
2551 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2552 return (PyObject *) inst;
2553#endif
2554#endif
2555}
2556
2557SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2558SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2559{
2560 PyObject *dict;
2561#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2562 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2563 if (dictptr != NULL((void*)0)) {
2564 dict = *dictptr;
2565 if (dict == NULL((void*)0)) {
2566 dict = PyDict_New();
2567 *dictptr = dict;
2568 }
2569 PyDict_SetItem(dict, SWIG_This(), swig_this);
2570 return;
2571 }
2572#endif
2573 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2574 PyDict_SetItem(dict, SWIG_This(), swig_this);
2575 Py_DECREF(dict)do { PyObject *_py_decref_tmp = (PyObject *)(dict); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2576}
2577
2578
2579SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2580SWIG_Python_InitShadowInstance(PyObject *args) {
2581 PyObject *obj[2];
2582 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2583 return NULL((void*)0);
2584 } else {
2585 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2586 if (sthis) {
2587 SwigPyObject_append((PyObject*) sthis, obj[1]);
2588 } else {
2589 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2590 }
2591 return SWIG_Py_Void();
2592 }
2593}
2594
2595/* Create a new pointer object */
2596
2597SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2598SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2599 SwigPyClientData *clientdata;
2600 PyObject * robj;
2601 int own;
2602
2603 if (!ptr)
2604 return SWIG_Py_Void();
2605
2606 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2607 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2608 if (clientdata && clientdata->pytype) {
2609 SwigPyObject *newobj;
2610 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2611 newobj = (SwigPyObject*) self;
2612 if (newobj->ptr) {
2613 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2614 while (newobj->next)
2615 newobj = (SwigPyObject *) newobj->next;
2616 newobj->next = next_self;
2617 newobj = (SwigPyObject *)next_self;
2618#ifdef SWIGPYTHON_BUILTIN
2619 newobj->dict = 0;
2620#endif
2621 }
2622 } else {
2623 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2624#ifdef SWIGPYTHON_BUILTIN
2625 newobj->dict = 0;
2626#endif
2627 }
2628 if (newobj) {
2629 newobj->ptr = ptr;
2630 newobj->ty = type;
2631 newobj->own = own;
2632 newobj->next = 0;
2633 return (PyObject*) newobj;
2634 }
2635 return SWIG_Py_Void();
2636 }
2637
2638 assert(!(flags & SWIG_BUILTIN_TP_INIT))((!(flags & (0x1 << 2))) ? (void) (0) : __assert_fail
("!(flags & SWIG_BUILTIN_TP_INIT)", "ddc_swig3_wrap.c", 2638
, __PRETTY_FUNCTION__))
;
2639
2640 robj = SwigPyObject_New(ptr, type, own);
2641 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2642 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2643 Py_DECREF(robj)do { PyObject *_py_decref_tmp = (PyObject *)(robj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2644 robj = inst;
2645 }
2646 return robj;
2647}
2648
2649/* Create a new packed object */
2650
2651SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2652SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2653 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2654}
2655
2656/* -----------------------------------------------------------------------------*
2657 * Get type list
2658 * -----------------------------------------------------------------------------*/
2659
2660#ifdef SWIG_LINK_RUNTIME
2661void *SWIG_ReturnGlobalTypeList(void *);
2662#endif
2663
2664SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2665SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)clientdata __attribute__ ((__unused__))) {
2666 static void *type_pointer = (void *)0;
2667 /* first check if module already created */
2668 if (!type_pointer) {
2669#ifdef SWIG_LINK_RUNTIME
2670 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2671#else
2672# ifdef SWIGPY_USE_CAPSULE
2673 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2674# else
2675 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2676 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2677# endif
2678 if (PyErr_Occurred()) {
2679 PyErr_Clear();
2680 type_pointer = (void *)0;
2681 }
2682#endif
2683 }
2684 return (swig_module_info *) type_pointer;
2685}
2686
2687#if PY_MAJOR_VERSION3 < 2
2688/* PyModule_AddObject function was introduced in Python 2.0. The following function
2689 is copied out of Python/modsupport.c in python version 2.3.4 */
2690SWIGINTERNstatic __attribute__ ((__unused__)) int
2691PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2692{
2693 PyObject *dict;
2694 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2695 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2696 return SWIG_ERROR(-1);
2697 }
2698 if (!o) {
2699 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2700 return SWIG_ERROR(-1);
2701 }
2702
2703 dict = PyModule_GetDict(m);
2704 if (dict == NULL((void*)0)) {
2705 /* Internal error -- modules must have a dict! */
2706 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2707 PyModule_GetName(m));
2708 return SWIG_ERROR(-1);
2709 }
2710 if (PyDict_SetItemString(dict, name, o))
2711 return SWIG_ERROR(-1);
2712 Py_DECREF(o)do { PyObject *_py_decref_tmp = (PyObject *)(o); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2713 return SWIG_OK(0);
2714}
2715#endif
2716
2717SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2718#ifdef SWIGPY_USE_CAPSULE
2719SWIG_Python_DestroyModule(PyObject *obj)
2720#else
2721SWIG_Python_DestroyModule(void *vptr)
2722#endif
2723{
2724#ifdef SWIGPY_USE_CAPSULE
2725 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2726#else
2727 swig_module_info *swig_module = (swig_module_info *) vptr;
2728#endif
2729 swig_type_info **types = swig_module->types;
2730 size_t i;
2731 for (i =0; i < swig_module->size; ++i) {
2732 swig_type_info *ty = types[i];
2733 if (ty->owndata) {
2734 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2735 if (data) SwigPyClientData_Del(data);
2736 }
2737 }
2738 Py_DECREF(SWIG_This())do { PyObject *_py_decref_tmp = (PyObject *)(SWIG_This()); if
( --(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject
*)(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)
(_py_decref_tmp))); } while (0)
;
2739 swig_this = NULL((void*)0);
2740}
2741
2742SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2743SWIG_Python_SetModule(swig_module_info *swig_module) {
2744#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2745 /* Add a dummy module object into sys.modules */
2746 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2747#else
2748 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL((void*)0), NULL((void*)0), 0, NULL((void*)0)} }; /* Sentinel */
2749 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", swig_empty_runtime_method_table);
2750#endif
2751#ifdef SWIGPY_USE_CAPSULE
2752 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2753 if (pointer && module) {
2754 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2755 } else {
2756 Py_XDECREF(pointer)do { PyObject *_py_xdecref_tmp = (PyObject *)(pointer); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
2757 }
2758#else
2759 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2760 if (pointer && module) {
2761 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2762 } else {
2763 Py_XDECREF(pointer)do { PyObject *_py_xdecref_tmp = (PyObject *)(pointer); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
2764 }
2765#endif
2766}
2767
2768/* The python cached type query */
2769SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2770SWIG_Python_TypeCache(void) {
2771 static PyObject *SWIG_STATIC_POINTER(cache)cache = 0; if (!cache) cache = PyDict_New();
2772 return cache;
2773}
2774
2775SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2776SWIG_Python_TypeQuery(const char *type)
2777{
2778 PyObject *cache = SWIG_Python_TypeCache();
2779 PyObject *key = SWIG_Python_str_FromChar(type);
2780 PyObject *obj = PyDict_GetItem(cache, key);
2781 swig_type_info *descriptor;
2782 if (obj) {
2783#ifdef SWIGPY_USE_CAPSULE
2784 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL((void*)0));
2785#else
2786 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2787#endif
2788 } else {
2789 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2790 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2791 if (descriptor) {
2792#ifdef SWIGPY_USE_CAPSULE
2793 obj = PyCapsule_New((void*) descriptor, NULL((void*)0), NULL((void*)0));
2794#else
2795 obj = PyCObject_FromVoidPtr(descriptor, NULL((void*)0));
2796#endif
2797 PyDict_SetItem(cache, key, obj);
2798 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2799 }
2800 }
2801 Py_DECREF(key)do { PyObject *_py_decref_tmp = (PyObject *)(key); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2802 return descriptor;
2803}
2804
2805/*
2806 For backward compatibility only
2807*/
2808#define SWIG_POINTER_EXCEPTION0 0
2809#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2810#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2811
2812SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2813SWIG_Python_AddErrMesg(const char* mesg, int infront)
2814{
2815 if (PyErr_Occurred()) {
2816 PyObject *type = 0;
2817 PyObject *value = 0;
2818 PyObject *traceback = 0;
2819 PyErr_Fetch(&type, &value, &traceback);
2820 if (value) {
2821 char *tmp;
2822 PyObject *old_str = PyObject_Str(value);
2823 Py_XINCREF(type)do { PyObject *_py_xincref_tmp = (PyObject *)(type); if (_py_xincref_tmp
!= ((void*)0)) ( ((PyObject *)(_py_xincref_tmp))->ob_refcnt
++); } while (0)
;
2824 PyErr_Clear();
2825 if (infront) {
2826 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2827 } else {
2828 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2829 }
2830 SWIG_Python_str_DelForPy3(tmp)free( (void*) (tmp) );
2831 Py_DECREF(old_str)do { PyObject *_py_decref_tmp = (PyObject *)(old_str); if ( --
(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject*)
(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp
))); } while (0)
;
2832 }
2833 return 1;
2834 } else {
2835 return 0;
2836 }
2837}
2838
2839SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2840SWIG_Python_ArgFail(int argnum)
2841{
2842 if (PyErr_Occurred()) {
2843 /* add information about failing argument */
2844 char mesg[256];
2845 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2846 return SWIG_Python_AddErrMesg(mesg, 1);
2847 } else {
2848 return 0;
2849 }
2850}
2851
2852SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2853SwigPyObject_GetDesc(PyObject *self)
2854{
2855 SwigPyObject *v = (SwigPyObject *)self;
2856 swig_type_info *ty = v ? v->ty : 0;
2857 return ty ? ty->str : "";
2858}
2859
2860SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2861SWIG_Python_TypeError(const char *type, PyObject *obj)
2862{
2863 if (type) {
2864#if defined(SWIG_COBJECT_TYPES)
2865 if (obj && SwigPyObject_Check(obj)) {
2866 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2867 if (otype) {
2868 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2869 type, otype);
2870 return;
2871 }
2872 } else
2873#endif
2874 {
2875 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2876 if (otype) {
2877 PyObject *str = PyObject_Str(obj);
2878 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2879 if (cstr) {
2880 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2881 type, otype, cstr);
2882 SWIG_Python_str_DelForPy3(cstr)free( (void*) (cstr) );
2883 } else {
2884 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2885 type, otype);
2886 }
2887 Py_XDECREF(str)do { PyObject *_py_xdecref_tmp = (PyObject *)(str); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
2888 return;
2889 }
2890 }
2891 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2892 } else {
2893 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2894 }
2895}
2896
2897
2898/* Convert a pointer value, signal an exception on a type mismatch */
2899SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2900SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum)argnum __attribute__ ((__unused__)), int flags) {
2901 void *result;
2902 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2903 PyErr_Clear();
2904#if SWIG_POINTER_EXCEPTION0
2905 if (flags) {
2906 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2907 SWIG_Python_ArgFail(argnum);
2908 }
2909#endif
2910 }
2911 return result;
2912}
2913
2914#ifdef SWIGPYTHON_BUILTIN
2915SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2916SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2917 PyTypeObject *tp = obj->ob_type;
2918 PyObject *descr;
2919 PyObject *encoded_name;
2920 descrsetfunc f;
2921 int res = -1;
2922
2923# ifdef Py_USING_UNICODE
2924 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
) {
2925 name = PyUnicode_Decode(PyString_AsString(name)PyBytes_AsString(name), PyString_Size(name)PyBytes_Size(name), NULL((void*)0), NULL((void*)0));
2926 if (!name)
2927 return -1;
2928 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 28))) != 0)
)
2929# else
2930 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
)
2931# endif
2932 {
2933 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2934 return -1;
2935 } else {
2936 Py_INCREF(name)( ((PyObject *)(name))->ob_refcnt++);
2937 }
2938
2939 if (!tp->tp_dict) {
2940 if (PyType_Ready(tp) < 0)
2941 goto done;
2942 }
2943
2944 descr = _PyType_Lookup(tp, name);
2945 f = NULL((void*)0);
2946 if (descr != NULL((void*)0))
2947 f = descr->ob_type->tp_descr_set;
2948 if (!f) {
2949 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
) {
2950 encoded_name = name;
2951 Py_INCREF(name)( ((PyObject *)(name))->ob_refcnt++);
2952 } else {
2953 encoded_name = PyUnicode_AsUTF8String(name);
2954 }
2955 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)PyBytes_AsString(encoded_name));
2956 Py_DECREF(encoded_name)do { PyObject *_py_decref_tmp = (PyObject *)(encoded_name); if
( --(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((PyObject
*)(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject *)
(_py_decref_tmp))); } while (0)
;
2957 } else {
2958 res = f(descr, obj, value);
2959 }
2960
2961 done:
2962 Py_DECREF(name)do { PyObject *_py_decref_tmp = (PyObject *)(name); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
2963 return res;
2964}
2965#endif
2966
2967
2968#ifdef __cplusplus
2969}
2970#endif
2971
2972
2973
2974#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2975
2976#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2977
2978
2979
2980/* -------- TYPES TABLE (BEGIN) -------- */
2981
2982#define SWIGTYPE_p_DDCA_Output_Levelswig_types[0] swig_types[0]
2983#define SWIGTYPE_p_DDCA_Retry_Typeswig_types[1] swig_types[1]
2984#define SWIGTYPE_p_DDCS_Build_Flagsswig_types[2] swig_types[2]
2985#define SWIGTYPE_p_DDCS_MCCS_Version_Specswig_types[3] swig_types[3]
2986#define SWIGTYPE_p_DDCS_Non_Table_Value_Responseswig_types[4] swig_types[4]
2987#define SWIGTYPE_p_charswig_types[5] swig_types[5]
2988#define SWIGTYPE_p_intswig_types[6] swig_types[6]
2989#define SWIGTYPE_p_uint8_tswig_types[7] swig_types[7]
2990#define SWIGTYPE_p_voidswig_types[8] swig_types[8]
2991static swig_type_info *swig_types[10];
2992static swig_module_info swig_module = {swig_types, 9, 0, 0, 0, 0};
2993#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2994#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2995
2996/* -------- TYPES TABLE (END) -------- */
2997
2998#if (PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2999# if !defined(SWIG_PYTHON_CLASSIC)
3000# error "This python version requires swig to be run with the '-classic' option"
3001# endif
3002#endif
3003
3004/*-----------------------------------------------
3005 @(target):= _ddc_swig3.so
3006 ------------------------------------------------*/
3007#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3008# define SWIG_initPyInit__ddc_swig3 PyInit__ddc_swig3
3009
3010#else
3011# define SWIG_initPyInit__ddc_swig3 init_ddc_swig3
3012
3013#endif
3014#define SWIG_name"_ddc_swig3" "_ddc_swig3"
3015
3016#define SWIGVERSION0x030011 0x030011
3017#define SWIG_VERSION0x030011 SWIGVERSION0x030011
3018
3019
3020#define SWIG_as_voidptr(a)(void *)((const void *)(a)) (void *)((const void *)(a))
3021#define SWIG_as_voidptrptr(a)((void)(void *)((const void *)(*a)),(void**)(a)) ((void)SWIG_as_voidptr(*a)(void *)((const void *)(*a)),(void**)(a))
3022
3023
3024// Start of copy block
3025#include "swig/ddc_swig.h"
3026// void ddca_init(void);
3027// bool ddcs_built_with_adl(void);
3028const char * ddcutil_version(void);
3029// enum Retries{DDCT_WRITE_ONLY_TRIES3, DDCT_WRITE_READ_TRIES3, DDCT_MULTI_PART_TRIES3};
3030// end of copy block
3031
3032
3033SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3034SWIG_pchar_descriptor(void)
3035{
3036 static int init = 0;
3037 static swig_type_info* info = 0;
3038 if (!init) {
3039 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3040 init = 1;
3041 }
3042 return info;
3043}
3044
3045
3046SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3047SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3048{
3049 if (carray) {
3050 if (size > INT_MAX2147483647) {
3051 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3052 return pchar_descriptor ?
3053 SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(((void*)0), (char *)(carray), pchar_descriptor
, 0)
: SWIG_Py_Void();
3054 } else {
3055#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3056#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3057 return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size));
3058#else
3059#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03010000
3060 return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
3061#else
3062 return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size));
3063#endif
3064#endif
3065#else
3066 return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3067#endif
3068 }
3069 } else {
3070 return SWIG_Py_Void();
3071 }
3072}
3073
3074
3075SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3076SWIG_FromCharPtr(const char *cptr)
3077{
3078 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3079}
3080
3081
3082SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3083 SWIG_From_int (int value)
3084{
3085 return PyInt_FromLong((long) value)PyLong_FromLong((long) value);
3086}
3087
3088
3089#include <limits.h>
3090#if !defined(SWIG_NO_LLONG_MAX)
3091# if !defined(LLONG_MAX9223372036854775807LL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3092# define LLONG_MAX9223372036854775807LL __LONG_LONG_MAX__9223372036854775807LL
3093# define LLONG_MIN(-9223372036854775807LL -1LL) (-LLONG_MAX9223372036854775807LL - 1LL)
3094# define ULLONG_MAX(9223372036854775807LL*2ULL+1ULL) (LLONG_MAX9223372036854775807LL * 2ULL + 1ULL)
3095# endif
3096#endif
3097
3098
3099SWIGINTERNstatic __attribute__ ((__unused__)) int
3100SWIG_AsVal_double (PyObject *obj, double *val)
3101{
3102 int res = SWIG_TypeError-5;
3103 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3104 if (val) *val = PyFloat_AsDouble(obj);
3105 return SWIG_OK(0);
3106#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3107 } else if (PyInt_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 24))) != 0)
) {
3108 if (val) *val = (double) PyInt_AsLong(obj)PyLong_AsLong(obj);
3109 return SWIG_OK(0);
3110#endif
3111 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 24))) != 0)
) {
3112 double v = PyLong_AsDouble(obj);
3113 if (!PyErr_Occurred()) {
3114 if (val) *val = v;
3115 return SWIG_OK(0);
3116 } else {
3117 PyErr_Clear();
3118 }
3119 }
3120#ifdef SWIG_PYTHON_CAST_MODE
3121 {
3122 int dispatch = 0;
3123 double d = PyFloat_AsDouble(obj);
3124 if (!PyErr_Occurred()) {
3125 if (val) *val = d;
3126 return SWIG_AddCast(SWIG_OK)((0));
3127 } else {
3128 PyErr_Clear();
3129 }
3130 if (!dispatch) {
3131 long v = PyLong_AsLong(obj);
3132 if (!PyErr_Occurred()) {
3133 if (val) *val = v;
3134 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3135 } else {
3136 PyErr_Clear();
3137 }
3138 }
3139 }
3140#endif
3141 return res;
3142}
3143
3144
3145#include <float.h>
3146
3147
3148#include <math.h>
3149
3150
3151SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3152SWIG_CanCastAsInteger(double *d, double min, double max) {
3153 double x = *d;
3154 if ((min <= x && x <= max)) {
3155 double fx = floor(x);
3156 double cx = ceil(x);
3157 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3158 if ((errno(*__errno_location ()) == EDOM33) || (errno(*__errno_location ()) == ERANGE34)) {
3159 errno(*__errno_location ()) = 0;
3160 } else {
3161 double summ, reps, diff;
3162 if (rd < x) {
3163 diff = x - rd;
3164 } else if (rd > x) {
3165 diff = rd - x;
3166 } else {
3167 return 1;
3168 }
3169 summ = rd + x;
3170 reps = diff/summ;
3171 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3172 *d = rd;
3173 return 1;
3174 }
3175 }
3176 }
3177 return 0;
3178}
3179
3180
3181SWIGINTERNstatic __attribute__ ((__unused__)) int
3182SWIG_AsVal_long (PyObject *obj, long* val)
3183{
3184#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3185 if (PyInt_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 24))) != 0)
) {
3186 if (val) *val = PyInt_AsLong(obj)PyLong_AsLong(obj);
3187 return SWIG_OK(0);
3188 } else
3189#endif
3190 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 24))) != 0)
) {
3191 long v = PyLong_AsLong(obj);
3192 if (!PyErr_Occurred()) {
3193 if (val) *val = v;
3194 return SWIG_OK(0);
3195 } else {
3196 PyErr_Clear();
3197 return SWIG_OverflowError-7;
3198 }
3199 }
3200#ifdef SWIG_PYTHON_CAST_MODE
3201 {
3202 int dispatch = 0;
3203 long v = PyInt_AsLong(obj)PyLong_AsLong(obj);
3204 if (!PyErr_Occurred()) {
3205 if (val) *val = v;
3206 return SWIG_AddCast(SWIG_OK)((0));
3207 } else {
3208 PyErr_Clear();
3209 }
3210 if (!dispatch) {
3211 double d;
3212 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3213 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3214 if (val) *val = (long)(d);
3215 return res;
3216 }
3217 }
3218 }
3219#endif
3220 return SWIG_TypeError-5;
3221}
3222
3223
3224SWIGINTERNstatic __attribute__ ((__unused__)) int
3225SWIG_AsVal_int (PyObject * obj, int *val)
3226{
3227 long v;
3228 int res = SWIG_AsVal_long (obj, &v);
3229 if (SWIG_IsOK(res)(res >= 0)) {
3230 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3231 return SWIG_OverflowError-7;
3232 } else {
3233 if (val) *val = (int)(v);
3234 }
3235 }
3236 return res;
3237}
3238
3239
3240SWIGINTERNstatic __attribute__ ((__unused__)) int
3241SWIG_AsVal_bool (PyObject *obj, bool_Bool *val)
3242{
3243 int r;
3244 if (!PyBool_Check(obj)((((PyObject*)(obj))->ob_type) == &PyBool_Type))
3245 return SWIG_ERROR(-1);
3246 r = PyObject_IsTrue(obj);
3247 if (r == -1)
3248 return SWIG_ERROR(-1);
3249 if (val) *val = r ? true1 : false0;
3250 return SWIG_OK(0);
3251}
3252
3253
3254SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3255 SWIG_From_bool (bool_Bool value)
3256{
3257 return PyBool_FromLong(value ? 1 : 0);
3258}
3259
3260
3261SWIGINTERNstatic __attribute__ ((__unused__)) int
3262SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3263{
3264#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3265#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3266 if (PyBytes_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
)
3267#else
3268 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 28))) != 0)
)
3
Taking true branch
3269#endif
3270#else
3271 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 27))) != 0)
)
3272#endif
3273 {
3274 char *cstr; Py_ssize_t len;
3275#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3276#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3277 if (!alloc && cptr) {
3278 /* We can't allow converting without allocation, since the internal
3279 representation of string in Python 3 is UCS-2/UCS-4 but we require
3280 a UTF-8 representation.
3281 TODO(bhy) More detailed explanation */
3282 return SWIG_RuntimeError-3;
3283 }
3284 obj = PyUnicode_AsUTF8String(obj);
3285 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
4
Taking true branch
3286#endif
3287 PyBytes_AsStringAndSize(obj, &cstr, &len);
3288#else
3289 PyString_AsStringAndSize(obj, &cstr, &len);
3290#endif
3291 if (cptr) {
5
Taking true branch
3292 if (alloc) {
6
Taking true branch
3293 /*
3294 In python the user should not be able to modify the inner
3295 string representation. To warranty that, if you define
3296 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3297 buffer is always returned.
3298
3299 The default behavior is just to return the pointer value,
3300 so, be careful.
3301 */
3302#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3303 if (*alloc != SWIG_OLDOBJ((0)))
3304#else
3305 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
7
Taking true branch
3306#endif
3307 {
3308 *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
8
Memory is allocated
3309 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3310 } else {
3311 *cptr = cstr;
3312 *alloc = SWIG_OLDOBJ((0));
3313 }
3314 } else {
3315#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3316#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3317 *cptr = PyBytes_AsString(obj);
3318#else
3319 assert(0)((0) ? (void) (0) : __assert_fail ("0", "ddc_swig3_wrap.c", 3319
, __PRETTY_FUNCTION__))
; /* Should never reach here with Unicode strings in Python 3 */
3320#endif
3321#else
3322 *cptr = SWIG_Python_str_AsChar(obj);
3323#endif
3324 }
3325 }
3326 if (psize) *psize = len + 1;
9
Taking false branch
3327#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3328 Py_XDECREF(obj)do { PyObject *_py_xdecref_tmp = (PyObject *)(obj); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
3329#endif
3330 return SWIG_OK(0);
3331 } else {
3332#if defined(SWIG_PYTHON_2_UNICODE)
3333#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3334#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3335#endif
3336#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
<0x03000000
3337 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1UL
<< 28))) != 0)
) {
3338 char *cstr; Py_ssize_t len;
3339 if (!alloc && cptr) {
3340 return SWIG_RuntimeError-3;
3341 }
3342 obj = PyUnicode_AsUTF8String(obj);
3343 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3344 if (cptr) {
3345 if (alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3346 *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3347 }
3348 if (psize) *psize = len + 1;
3349
3350 Py_XDECREF(obj)do { PyObject *_py_xdecref_tmp = (PyObject *)(obj); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
3351 return SWIG_OK(0);
3352 } else {
3353 Py_XDECREF(obj)do { PyObject *_py_xdecref_tmp = (PyObject *)(obj); if (_py_xdecref_tmp
!= ((void*)0)) do { PyObject *_py_decref_tmp = (PyObject *)(
_py_xdecref_tmp); if ( --(_py_decref_tmp)->ob_refcnt != 0)
; else ( (*(((PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc
)((PyObject *)(_py_decref_tmp))); } while (0); } while (0)
;
3354 }
3355 }
3356#endif
3357#endif
3358
3359 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3360 if (pchar_descriptor) {
3361 void* vptr = 0;
3362 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3363 if (cptr) *cptr = (char *) vptr;
3364 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3365 if (alloc) *alloc = SWIG_OLDOBJ((0));
3366 return SWIG_OK(0);
3367 }
3368 }
3369 }
3370 return SWIG_TypeError-5;
3371}
3372
3373
3374
3375
3376#ifdef __cplusplus
3377extern "C" {
3378#endif
3379
3380
3381
3382SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_ddcutil_version_string(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3383 PyObject *resultobj = 0;
3384 char *result = 0 ;
3385
3386 if (!PyArg_ParseTuple(args,(char *)":ddcs_ddcutil_version_string")) SWIG_failgoto fail;
3387 {
3388 clear_exception(); // redundant
3389 result = (char *)ddcs_ddcutil_version_string();
3390 // char * emsg = check_exception();
3391 // if (emsg) {
3392 // PyErr_SetString( PyExc_RuntimeError, emsg);
3393 // return NULL;
3394 // }
3395 bool_Bool exception_thrown = check_exception2();
3396 if (exception_thrown) {
3397 puts("(ddc_swig.i:exception handler) throwing exception");
3398 return NULL((void*)0);
3399 }
3400 }
3401 resultobj = SWIG_FromCharPtr((const char *)result);
3402 return resultobj;
3403fail:
3404 return NULL((void*)0);
3405}
3406
3407
3408SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_build_options(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3409 PyObject *resultobj = 0;
3410 FlagsByte result;
3411
3412 if (!PyArg_ParseTuple(args,(char *)":ddcs_get_build_options")) SWIG_failgoto fail;
3413 {
3414 clear_exception(); // redundant
3415 result = ddcs_get_build_options();
3416 // char * emsg = check_exception();
3417 // if (emsg) {
3418 // PyErr_SetString( PyExc_RuntimeError, emsg);
3419 // return NULL;
3420 // }
3421 bool_Bool exception_thrown = check_exception2();
3422 if (exception_thrown) {
3423 puts("(ddc_swig.i:exception handler) throwing exception");
3424 return NULL((void*)0);
3425 }
3426 }
3427 {
3428 printf("(typemap:FlagsByte) Starting. Value=0x%02x\n", result);
3429 PyObject * pyset = PySet_New(NULL((void*)0));
3430 for (int ndx = 0; ndx < 8; ndx++) {
3431 printf("(typemap:FlagsByte) testing bit %d, hexval 0x%02x\n", ndx, (1<<ndx) );
3432 if (result & (1<<ndx)) {
3433 PyObject * iobj = PyInt_FromLong( 1<<ndx)PyLong_FromLong(1<<ndx);
3434 int rc = PySet_Add(pyset, iobj);
3435 printf("(typemap:FlagsByte) PySet_Add returned %d\n", rc);
3436 }
3437 }
3438 resultobj = pyset;
3439 }
3440 return resultobj;
3441fail:
3442 return NULL((void*)0);
3443}
3444
3445
3446SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_status_code_name(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3447 PyObject *resultobj = 0;
3448 DDCA_Status arg1 ;
3449 int val1 ;
3450 int ecode1 = 0 ;
3451 PyObject * obj0 = 0 ;
3452 char *result = 0 ;
3453
3454 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_status_code_name",&obj0)) SWIG_failgoto fail;
3455 ecode1 = SWIG_AsVal_int(obj0, &val1);
3456 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3457 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_status_code_name" "', argument " "1"" of type '" "DDCA_Status""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_status_code_name"
"', argument " "1"" of type '" "DDCA_Status""'"); goto fail;
} while(0)
;
3458 }
3459 arg1 = (DDCA_Status)(val1);
3460 {
3461 clear_exception(); // redundant
3462 result = (char *)ddca_rc_name(arg1);
3463 // char * emsg = check_exception();
3464 // if (emsg) {
3465 // PyErr_SetString( PyExc_RuntimeError, emsg);
3466 // return NULL;
3467 // }
3468 bool_Bool exception_thrown = check_exception2();
3469 if (exception_thrown) {
3470 puts("(ddc_swig.i:exception handler) throwing exception");
3471 return NULL((void*)0);
3472 }
3473 }
3474 resultobj = SWIG_FromCharPtr((const char *)result);
3475 return resultobj;
3476fail:
3477 return NULL((void*)0);
3478}
3479
3480
3481SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_status_code_desc(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3482 PyObject *resultobj = 0;
3483 DDCA_Status arg1 ;
3484 int val1 ;
3485 int ecode1 = 0 ;
3486 PyObject * obj0 = 0 ;
3487 char *result = 0 ;
3488
3489 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_status_code_desc",&obj0)) SWIG_failgoto fail;
3490 ecode1 = SWIG_AsVal_int(obj0, &val1);
3491 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3492 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_status_code_desc" "', argument " "1"" of type '" "DDCA_Status""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_status_code_desc"
"', argument " "1"" of type '" "DDCA_Status""'"); goto fail;
} while(0)
;
3493 }
3494 arg1 = (DDCA_Status)(val1);
3495 {
3496 clear_exception(); // redundant
3497 result = (char *)ddca_rc_desc(arg1);
3498 // char * emsg = check_exception();
3499 // if (emsg) {
3500 // PyErr_SetString( PyExc_RuntimeError, emsg);
3501 // return NULL;
3502 // }
3503 bool_Bool exception_thrown = check_exception2();
3504 if (exception_thrown) {
3505 puts("(ddc_swig.i:exception handler) throwing exception");
3506 return NULL((void*)0);
3507 }
3508 }
3509 resultobj = SWIG_FromCharPtr((const char *)result);
3510 return resultobj;
3511fail:
3512 return NULL((void*)0);
3513}
3514
3515
3516SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_max_tries(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3517 PyObject *resultobj = 0;
3518 DDCA_Retry_Type arg1 ;
3519 int val1 ;
3520 int ecode1 = 0 ;
3521 PyObject * obj0 = 0 ;
3522 int result;
3523
3524 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_get_max_tries",&obj0)) SWIG_failgoto fail;
3525 ecode1 = SWIG_AsVal_int(obj0, &val1);
3526 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3527 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_get_max_tries" "', argument " "1"" of type '" "DDCA_Retry_Type""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_get_max_tries" "', argument "
"1"" of type '" "DDCA_Retry_Type""'"); goto fail; } while(0)
;
3528 }
3529 arg1 = (DDCA_Retry_Type)(val1);
3530 {
3531 clear_exception(); // redundant
3532 result = (int)ddca_get_max_tries(arg1);
3533 // char * emsg = check_exception();
3534 // if (emsg) {
3535 // PyErr_SetString( PyExc_RuntimeError, emsg);
3536 // return NULL;
3537 // }
3538 bool_Bool exception_thrown = check_exception2();
3539 if (exception_thrown) {
3540 puts("(ddc_swig.i:exception handler) throwing exception");
3541 return NULL((void*)0);
3542 }
3543 }
3544 resultobj = SWIG_From_int((int)(result));
3545 return resultobj;
3546fail:
3547 return NULL((void*)0);
3548}
3549
3550
3551SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_set_max_tries(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3552 PyObject *resultobj = 0;
3553 DDCA_Retry_Type arg1 ;
3554 int arg2 ;
3555 int val1 ;
3556 int ecode1 = 0 ;
3557 int val2 ;
3558 int ecode2 = 0 ;
3559 PyObject * obj0 = 0 ;
3560 PyObject * obj1 = 0 ;
3561 DDCA_Status result;
3562
3563 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_set_max_tries",&obj0,&obj1)) SWIG_failgoto fail;
3564 ecode1 = SWIG_AsVal_int(obj0, &val1);
3565 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3566 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_set_max_tries" "', argument " "1"" of type '" "DDCA_Retry_Type""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_set_max_tries" "', argument "
"1"" of type '" "DDCA_Retry_Type""'"); goto fail; } while(0)
;
3567 }
3568 arg1 = (DDCA_Retry_Type)(val1);
3569 ecode2 = SWIG_AsVal_int(obj1, &val2);
3570 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_set_max_tries" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_set_max_tries" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
3572 }
3573 arg2 = (int)(val2);
3574 {
3575 clear_exception(); // redundant
3576 result = (DDCA_Status)ddca_set_max_tries(arg1,arg2);
3577 // char * emsg = check_exception();
3578 // if (emsg) {
3579 // PyErr_SetString( PyExc_RuntimeError, emsg);
3580 // return NULL;
3581 // }
3582 bool_Bool exception_thrown = check_exception2();
3583 if (exception_thrown) {
3584 puts("(ddc_swig.i:exception handler) throwing exception");
3585 return NULL((void*)0);
3586 }
3587 }
3588 resultobj = SWIG_From_int((int)(result));
3589 return resultobj;
3590fail:
3591 return NULL((void*)0);
3592}
3593
3594
3595SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_output_level(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3596 PyObject *resultobj = 0;
3597 DDCA_Output_Level result;
3598
3599 if (!PyArg_ParseTuple(args,(char *)":ddcs_get_output_level")) SWIG_failgoto fail;
3600 {
3601 clear_exception(); // redundant
3602 result = (DDCA_Output_Level)ddca_get_output_level();
3603 // char * emsg = check_exception();
3604 // if (emsg) {
3605 // PyErr_SetString( PyExc_RuntimeError, emsg);
3606 // return NULL;
3607 // }
3608 bool_Bool exception_thrown = check_exception2();
3609 if (exception_thrown) {
3610 puts("(ddc_swig.i:exception handler) throwing exception");
3611 return NULL((void*)0);
3612 }
3613 }
3614 resultobj = SWIG_From_int((int)(result));
3615 return resultobj;
3616fail:
3617 return NULL((void*)0);
3618}
3619
3620
3621SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_set_output_level(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3622 PyObject *resultobj = 0;
3623 DDCA_Output_Level arg1 ;
3624 int val1 ;
3625 int ecode1 = 0 ;
3626 PyObject * obj0 = 0 ;
3627
3628 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_set_output_level",&obj0)) SWIG_failgoto fail;
3629 ecode1 = SWIG_AsVal_int(obj0, &val1);
3630 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_set_output_level" "', argument " "1"" of type '" "DDCA_Output_Level""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_set_output_level"
"', argument " "1"" of type '" "DDCA_Output_Level""'"); goto
fail; } while(0)
;
3632 }
3633 arg1 = (DDCA_Output_Level)(val1);
3634 {
3635 clear_exception(); // redundant
3636 ddca_set_output_level(arg1);
3637 // char * emsg = check_exception();
3638 // if (emsg) {
3639 // PyErr_SetString( PyExc_RuntimeError, emsg);
3640 // return NULL;
3641 // }
3642 bool_Bool exception_thrown = check_exception2();
3643 if (exception_thrown) {
3644 puts("(ddc_swig.i:exception handler) throwing exception");
3645 return NULL((void*)0);
3646 }
3647 }
3648 resultobj = SWIG_Py_Void();
3649 return resultobj;
3650fail:
3651 return NULL((void*)0);
3652}
3653
3654
3655SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_output_level_name(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3656 PyObject *resultobj = 0;
3657 DDCA_Output_Level arg1 ;
3658 int val1 ;
3659 int ecode1 = 0 ;
3660 PyObject * obj0 = 0 ;
3661 char *result = 0 ;
3662
3663 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_output_level_name",&obj0)) SWIG_failgoto fail;
3664 ecode1 = SWIG_AsVal_int(obj0, &val1);
3665 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3666 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_output_level_name" "', argument " "1"" of type '" "DDCA_Output_Level""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_output_level_name"
"', argument " "1"" of type '" "DDCA_Output_Level""'"); goto
fail; } while(0)
;
3667 }
3668 arg1 = (DDCA_Output_Level)(val1);
3669 {
3670 clear_exception(); // redundant
3671 result = (char *)ddca_output_level_name(arg1);
3672 // char * emsg = check_exception();
3673 // if (emsg) {
3674 // PyErr_SetString( PyExc_RuntimeError, emsg);
3675 // return NULL;
3676 // }
3677 bool_Bool exception_thrown = check_exception2();
3678 if (exception_thrown) {
3679 puts("(ddc_swig.i:exception handler) throwing exception");
3680 return NULL((void*)0);
3681 }
3682 }
3683 resultobj = SWIG_FromCharPtr((const char *)result);
3684 return resultobj;
3685fail:
3686 return NULL((void*)0);
3687}
3688
3689
3690SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_enable_report_ddc_errors(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3691 PyObject *resultobj = 0;
3692 bool_Bool arg1 ;
3693 bool_Bool val1 ;
3694 int ecode1 = 0 ;
3695 PyObject * obj0 = 0 ;
3696
3697 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_enable_report_ddc_errors",&obj0)) SWIG_failgoto fail;
3698 ecode1 = SWIG_AsVal_bool(obj0, &val1);
3699 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_enable_report_ddc_errors" "', argument " "1"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_enable_report_ddc_errors"
"', argument " "1"" of type '" "bool""'"); goto fail; } while
(0)
;
3701 }
3702 arg1 = (bool_Bool)(val1);
3703 {
3704 clear_exception(); // redundant
3705 ddca_enable_report_ddc_errors(arg1);
3706 // char * emsg = check_exception();
3707 // if (emsg) {
3708 // PyErr_SetString( PyExc_RuntimeError, emsg);
3709 // return NULL;
3710 // }
3711 bool_Bool exception_thrown = check_exception2();
3712 if (exception_thrown) {
3713 puts("(ddc_swig.i:exception handler) throwing exception");
3714 return NULL((void*)0);
3715 }
3716 }
3717 resultobj = SWIG_Py_Void();
3718 return resultobj;
3719fail:
3720 return NULL((void*)0);
3721}
3722
3723
3724SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_is_report_ddc_errors_enabled(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3725 PyObject *resultobj = 0;
3726 bool_Bool result;
3727
3728 if (!PyArg_ParseTuple(args,(char *)":ddcs_is_report_ddc_errors_enabled")) SWIG_failgoto fail;
3729 {
3730 clear_exception(); // redundant
3731 result = (bool_Bool)ddca_is_report_ddc_errors_enabled();
3732 // char * emsg = check_exception();
3733 // if (emsg) {
3734 // PyErr_SetString( PyExc_RuntimeError, emsg);
3735 // return NULL;
3736 // }
3737 bool_Bool exception_thrown = check_exception2();
3738 if (exception_thrown) {
3739 puts("(ddc_swig.i:exception handler) throwing exception");
3740 return NULL((void*)0);
3741 }
3742 }
3743 resultobj = SWIG_From_bool((bool_Bool)(result));
3744 return resultobj;
3745fail:
3746 return NULL((void*)0);
3747}
3748
3749
3750SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_dispno_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3751 PyObject *resultobj = 0;
3752 int arg1 ;
3753 int val1 ;
3754 int ecode1 = 0 ;
3755 PyObject * obj0 = 0 ;
3756 DDCS_Display_Identifier result;
3757
3758 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_create_dispno_display_identifier",&obj0)) SWIG_failgoto fail;
3759 ecode1 = SWIG_AsVal_int(obj0, &val1);
3760 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_create_dispno_display_identifier" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_create_dispno_display_identifier"
"', argument " "1"" of type '" "int""'"); goto fail; } while
(0)
;
3762 }
3763 arg1 = (int)(val1);
3764 {
3765 clear_exception(); // redundant
3766 result = (DDCS_Display_Identifier)ddcs_create_dispno_display_identifier(arg1);
3767 // char * emsg = check_exception();
3768 // if (emsg) {
3769 // PyErr_SetString( PyExc_RuntimeError, emsg);
3770 // return NULL;
3771 // }
3772 bool_Bool exception_thrown = check_exception2();
3773 if (exception_thrown) {
3774 puts("(ddc_swig.i:exception handler) throwing exception");
3775 return NULL((void*)0);
3776 }
3777 }
3778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
3779 return resultobj;
3780fail:
3781 return NULL((void*)0);
3782}
3783
3784
3785SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_adlno_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3786 PyObject *resultobj = 0;
3787 int arg1 ;
3788 int arg2 ;
3789 int val1 ;
3790 int ecode1 = 0 ;
3791 int val2 ;
3792 int ecode2 = 0 ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 DDCS_Display_Identifier result;
3796
3797 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_create_adlno_display_identifier",&obj0,&obj1)) SWIG_failgoto fail;
3798 ecode1 = SWIG_AsVal_int(obj0, &val1);
3799 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3800 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_create_adlno_display_identifier" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_create_adlno_display_identifier"
"', argument " "1"" of type '" "int""'"); goto fail; } while
(0)
;
3801 }
3802 arg1 = (int)(val1);
3803 ecode2 = SWIG_AsVal_int(obj1, &val2);
3804 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_create_adlno_display_identifier" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_create_adlno_display_identifier"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
3806 }
3807 arg2 = (int)(val2);
3808 {
3809 clear_exception(); // redundant
3810 result = (DDCS_Display_Identifier)ddcs_create_adlno_display_identifier(arg1,arg2);
3811 // char * emsg = check_exception();
3812 // if (emsg) {
3813 // PyErr_SetString( PyExc_RuntimeError, emsg);
3814 // return NULL;
3815 // }
3816 bool_Bool exception_thrown = check_exception2();
3817 if (exception_thrown) {
3818 puts("(ddc_swig.i:exception handler) throwing exception");
3819 return NULL((void*)0);
3820 }
3821 }
3822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
3823 return resultobj;
3824fail:
3825 return NULL((void*)0);
3826}
3827
3828
3829SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_busno_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3830 PyObject *resultobj = 0;
3831 int arg1 ;
3832 int val1 ;
3833 int ecode1 = 0 ;
3834 PyObject * obj0 = 0 ;
3835 DDCS_Display_Identifier result;
3836
3837 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_create_busno_display_identifier",&obj0)) SWIG_failgoto fail;
3838 ecode1 = SWIG_AsVal_int(obj0, &val1);
3839 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3840 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_create_busno_display_identifier" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_create_busno_display_identifier"
"', argument " "1"" of type '" "int""'"); goto fail; } while
(0)
;
3841 }
3842 arg1 = (int)(val1);
3843 {
3844 clear_exception(); // redundant
3845 result = (DDCS_Display_Identifier)ddcs_create_busno_display_identifier(arg1);
3846 // char * emsg = check_exception();
3847 // if (emsg) {
3848 // PyErr_SetString( PyExc_RuntimeError, emsg);
3849 // return NULL;
3850 // }
3851 bool_Bool exception_thrown = check_exception2();
3852 if (exception_thrown) {
3853 puts("(ddc_swig.i:exception handler) throwing exception");
3854 return NULL((void*)0);
3855 }
3856 }
3857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
3858 return resultobj;
3859fail:
3860 return NULL((void*)0);
3861}
3862
3863
3864SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_mfg_model_sn_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3865 PyObject *resultobj = 0;
3866 char *arg1 = (char *) 0 ;
3867 char *arg2 = (char *) 0 ;
3868 char *arg3 = (char *) 0 ;
3869 int res1 ;
3870 char *buf1 = 0 ;
3871 int alloc1 = 0 ;
3872 int res2 ;
3873 char *buf2 = 0 ;
3874 int alloc2 = 0 ;
3875 int res3 ;
3876 char *buf3 = 0 ;
3877 int alloc3 = 0 ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 PyObject * obj2 = 0 ;
3881 DDCS_Display_Identifier result;
3882
3883 if (!PyArg_ParseTuple(args,(char *)"OOO:ddcs_create_mfg_model_sn_display_identifier",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
1
Taking false branch
3884 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL((void*)0), &alloc1);
2
Calling 'SWIG_AsCharPtrAndSize'
10
Returned allocated memory via 2nd parameter
3885 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11
Taking false branch
3886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_create_mfg_model_sn_display_identifier" "', argument " "1"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_create_mfg_model_sn_display_identifier"
"', argument " "1"" of type '" "char const *""'"); goto fail
; } while(0)
;
3887 }
3888 arg1 = (char *)(buf1);
3889 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL((void*)0), &alloc2);
3890 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12
Taking false branch
3891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ddcs_create_mfg_model_sn_display_identifier" "', argument " "2"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "ddcs_create_mfg_model_sn_display_identifier"
"', argument " "2"" of type '" "char const *""'"); goto fail
; } while(0)
;
3892 }
3893 arg2 = (char *)(buf2);
3894 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL((void*)0), &alloc3);
3895 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13
Taking false branch
3896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ddcs_create_mfg_model_sn_display_identifier" "', argument " "3"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "ddcs_create_mfg_model_sn_display_identifier"
"', argument " "3"" of type '" "char const *""'"); goto fail
; } while(0)
;
3897 }
3898 arg3 = (char *)(buf3);
3899 {
3900 clear_exception(); // redundant
3901 result = (DDCS_Display_Identifier)ddcs_create_mfg_model_sn_display_identifier((char const *)arg1,(char const *)arg2,(char const *)arg3);
3902 // char * emsg = check_exception();
3903 // if (emsg) {
3904 // PyErr_SetString( PyExc_RuntimeError, emsg);
3905 // return NULL;
3906 // }
3907 bool_Bool exception_thrown = check_exception2();
3908 if (exception_thrown) {
14
Assuming 'exception_thrown' is not equal to 0
15
Taking true branch
3909 puts("(ddc_swig.i:exception handler) throwing exception");
16
Potential leak of memory pointed to by 'arg1'
3910 return NULL((void*)0);
3911 }
3912 }
3913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
3914 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf1);
3915 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf2);
3916 if (alloc3 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf3);
3917 return resultobj;
3918fail:
3919 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf1);
3920 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf2);
3921 if (alloc3 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf3);
3922 return NULL((void*)0);
3923}
3924
3925
3926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_edid_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3927 PyObject *resultobj = 0;
3928 uint8_t *arg1 = (uint8_t *) 0 ;
3929 int arg2 ;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 int val2 ;
3933 int ecode2 = 0 ;
3934 PyObject * obj0 = 0 ;
3935 PyObject * obj1 = 0 ;
3936 DDCS_Display_Identifier result;
3937
3938 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_create_edid_display_identifier",&obj0,&obj1)) SWIG_failgoto fail;
3939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_uint8_t, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3940 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_create_edid_display_identifier" "', argument " "1"" of type '" "uint8_t const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_create_edid_display_identifier"
"', argument " "1"" of type '" "uint8_t const *""'"); goto fail
; } while(0)
;
3942 }
3943 arg1 = (uint8_t *)(argp1);
3944 ecode2 = SWIG_AsVal_int(obj1, &val2);
3945 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_create_edid_display_identifier" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_create_edid_display_identifier"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
3947 }
3948 arg2 = (int)(val2);
3949 {
3950 clear_exception(); // redundant
3951 result = (DDCS_Display_Identifier)ddcs_create_edid_display_identifier((uint8_t const *)arg1,arg2);
3952 // char * emsg = check_exception();
3953 // if (emsg) {
3954 // PyErr_SetString( PyExc_RuntimeError, emsg);
3955 // return NULL;
3956 // }
3957 bool_Bool exception_thrown = check_exception2();
3958 if (exception_thrown) {
3959 puts("(ddc_swig.i:exception handler) throwing exception");
3960 return NULL((void*)0);
3961 }
3962 }
3963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
3964 return resultobj;
3965fail:
3966 return NULL((void*)0);
3967}
3968
3969
3970SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_create_usb_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
3971 PyObject *resultobj = 0;
3972 int arg1 ;
3973 int arg2 ;
3974 int val1 ;
3975 int ecode1 = 0 ;
3976 int val2 ;
3977 int ecode2 = 0 ;
3978 PyObject * obj0 = 0 ;
3979 PyObject * obj1 = 0 ;
3980 DDCS_Display_Identifier result;
3981
3982 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_create_usb_display_identifier",&obj0,&obj1)) SWIG_failgoto fail;
3983 ecode1 = SWIG_AsVal_int(obj0, &val1);
3984 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
3985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_create_usb_display_identifier" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_create_usb_display_identifier"
"', argument " "1"" of type '" "int""'"); goto fail; } while
(0)
;
3986 }
3987 arg1 = (int)(val1);
3988 ecode2 = SWIG_AsVal_int(obj1, &val2);
3989 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_create_usb_display_identifier" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_create_usb_display_identifier"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
3991 }
3992 arg2 = (int)(val2);
3993 {
3994 clear_exception(); // redundant
3995 result = (DDCS_Display_Identifier)ddcs_create_usb_display_identifier(arg1,arg2);
3996 // char * emsg = check_exception();
3997 // if (emsg) {
3998 // PyErr_SetString( PyExc_RuntimeError, emsg);
3999 // return NULL;
4000 // }
4001 bool_Bool exception_thrown = check_exception2();
4002 if (exception_thrown) {
4003 puts("(ddc_swig.i:exception handler) throwing exception");
4004 return NULL((void*)0);
4005 }
4006 }
4007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
4008 return resultobj;
4009fail:
4010 return NULL((void*)0);
4011}
4012
4013
4014SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_free_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 DDCS_Display_Identifier arg1 = (DDCS_Display_Identifier) 0 ;
4017 int res1 ;
4018 PyObject * obj0 = 0 ;
4019
4020 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_free_display_identifier",&obj0)) SWIG_failgoto fail;
4021 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4022 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_free_display_identifier" "', argument " "1"" of type '" "DDCS_Display_Identifier""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_free_display_identifier"
"', argument " "1"" of type '" "DDCS_Display_Identifier""'")
; goto fail; } while(0)
;
4024 }
4025 {
4026 clear_exception(); // redundant
4027 ddcs_free_display_identifier(arg1);
4028 // char * emsg = check_exception();
4029 // if (emsg) {
4030 // PyErr_SetString( PyExc_RuntimeError, emsg);
4031 // return NULL;
4032 // }
4033 bool_Bool exception_thrown = check_exception2();
4034 if (exception_thrown) {
4035 puts("(ddc_swig.i:exception handler) throwing exception");
4036 return NULL((void*)0);
4037 }
4038 }
4039 resultobj = SWIG_Py_Void();
4040 return resultobj;
4041fail:
4042 return NULL((void*)0);
4043}
4044
4045
4046SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_repr_display_identifier(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 DDCS_Display_Identifier arg1 = (DDCS_Display_Identifier) 0 ;
4049 int res1 ;
4050 PyObject * obj0 = 0 ;
4051 char *result = 0 ;
4052
4053 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_repr_display_identifier",&obj0)) SWIG_failgoto fail;
4054 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4055 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_repr_display_identifier" "', argument " "1"" of type '" "DDCS_Display_Identifier""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_repr_display_identifier"
"', argument " "1"" of type '" "DDCS_Display_Identifier""'")
; goto fail; } while(0)
;
4057 }
4058 {
4059 clear_exception(); // redundant
4060 result = (char *)ddcs_repr_display_identifier(arg1);
4061 // char * emsg = check_exception();
4062 // if (emsg) {
4063 // PyErr_SetString( PyExc_RuntimeError, emsg);
4064 // return NULL;
4065 // }
4066 bool_Bool exception_thrown = check_exception2();
4067 if (exception_thrown) {
4068 puts("(ddc_swig.i:exception handler) throwing exception");
4069 return NULL((void*)0);
4070 }
4071 }
4072 resultobj = SWIG_FromCharPtr((const char *)result);
4073 return resultobj;
4074fail:
4075 return NULL((void*)0);
4076}
4077
4078
4079SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_display_ref(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4080 PyObject *resultobj = 0;
4081 DDCS_Display_Identifier arg1 = (DDCS_Display_Identifier) 0 ;
4082 int res1 ;
4083 PyObject * obj0 = 0 ;
4084 DDCS_Display_Ref result;
4085
4086 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_get_display_ref",&obj0)) SWIG_failgoto fail;
4087 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4088 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_get_display_ref" "', argument " "1"" of type '" "DDCS_Display_Identifier""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_get_display_ref" "', argument "
"1"" of type '" "DDCS_Display_Identifier""'"); goto fail; } while
(0)
;
4090 }
4091 {
4092 clear_exception(); // redundant
4093 result = (DDCS_Display_Ref)ddcs_get_display_ref(arg1);
4094 // char * emsg = check_exception();
4095 // if (emsg) {
4096 // PyErr_SetString( PyExc_RuntimeError, emsg);
4097 // return NULL;
4098 // }
4099 bool_Bool exception_thrown = check_exception2();
4100 if (exception_thrown) {
4101 puts("(ddc_swig.i:exception handler) throwing exception");
4102 return NULL((void*)0);
4103 }
4104 }
4105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
4106 return resultobj;
4107fail:
4108 return NULL((void*)0);
4109}
4110
4111
4112SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_free_display_ref(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4113 PyObject *resultobj = 0;
4114 DDCS_Display_Ref arg1 = (DDCS_Display_Ref) 0 ;
4115 int res1 ;
4116 PyObject * obj0 = 0 ;
4117
4118 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_free_display_ref",&obj0)) SWIG_failgoto fail;
4119 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4120 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_free_display_ref" "', argument " "1"" of type '" "DDCS_Display_Ref""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_free_display_ref" "', argument "
"1"" of type '" "DDCS_Display_Ref""'"); goto fail; } while(0
)
;
4122 }
4123 {
4124 clear_exception(); // redundant
4125 ddcs_free_display_ref(arg1);
4126 // char * emsg = check_exception();
4127 // if (emsg) {
4128 // PyErr_SetString( PyExc_RuntimeError, emsg);
4129 // return NULL;
4130 // }
4131 bool_Bool exception_thrown = check_exception2();
4132 if (exception_thrown) {
4133 puts("(ddc_swig.i:exception handler) throwing exception");
4134 return NULL((void*)0);
4135 }
4136 }
4137 resultobj = SWIG_Py_Void();
4138 return resultobj;
4139fail:
4140 return NULL((void*)0);
4141}
4142
4143
4144SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_repr_display_ref(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4145 PyObject *resultobj = 0;
4146 DDCS_Display_Ref arg1 = (DDCS_Display_Ref) 0 ;
4147 int res1 ;
4148 PyObject * obj0 = 0 ;
4149 char *result = 0 ;
4150
4151 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_repr_display_ref",&obj0)) SWIG_failgoto fail;
4152 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4153 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_repr_display_ref" "', argument " "1"" of type '" "DDCS_Display_Ref""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_repr_display_ref" "', argument "
"1"" of type '" "DDCS_Display_Ref""'"); goto fail; } while(0
)
;
4155 }
4156 {
4157 clear_exception(); // redundant
4158 result = (char *)ddcs_repr_display_ref(arg1);
4159 // char * emsg = check_exception();
4160 // if (emsg) {
4161 // PyErr_SetString( PyExc_RuntimeError, emsg);
4162 // return NULL;
4163 // }
4164 bool_Bool exception_thrown = check_exception2();
4165 if (exception_thrown) {
4166 puts("(ddc_swig.i:exception handler) throwing exception");
4167 return NULL((void*)0);
4168 }
4169 }
4170 resultobj = SWIG_FromCharPtr((const char *)result);
4171 return resultobj;
4172fail:
4173 return NULL((void*)0);
4174}
4175
4176
4177SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_report_display_ref(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4178 PyObject *resultobj = 0;
4179 DDCS_Display_Ref arg1 = (DDCS_Display_Ref) 0 ;
4180 int arg2 ;
4181 int res1 ;
4182 int val2 ;
4183 int ecode2 = 0 ;
4184 PyObject * obj0 = 0 ;
4185 PyObject * obj1 = 0 ;
4186
4187 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_report_display_ref",&obj0,&obj1)) SWIG_failgoto fail;
4188 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4189 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_report_display_ref" "', argument " "1"" of type '" "DDCS_Display_Ref""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_report_display_ref" "', argument "
"1"" of type '" "DDCS_Display_Ref""'"); goto fail; } while(0
)
;
4191 }
4192 ecode2 = SWIG_AsVal_int(obj1, &val2);
4193 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_report_display_ref" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_report_display_ref"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
4195 }
4196 arg2 = (int)(val2);
4197 {
4198 clear_exception(); // redundant
4199 ddcs_report_display_ref(arg1,arg2);
4200 // char * emsg = check_exception();
4201 // if (emsg) {
4202 // PyErr_SetString( PyExc_RuntimeError, emsg);
4203 // return NULL;
4204 // }
4205 bool_Bool exception_thrown = check_exception2();
4206 if (exception_thrown) {
4207 puts("(ddc_swig.i:exception handler) throwing exception");
4208 return NULL((void*)0);
4209 }
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213fail:
4214 return NULL((void*)0);
4215}
4216
4217
4218SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_open_display(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4219 PyObject *resultobj = 0;
4220 DDCS_Display_Ref arg1 = (DDCS_Display_Ref) 0 ;
4221 int res1 ;
4222 PyObject * obj0 = 0 ;
4223 DDCS_Display_Handle result;
4224
4225 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_open_display",&obj0)) SWIG_failgoto fail;
4226 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4227 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_open_display" "', argument " "1"" of type '" "DDCS_Display_Ref""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_open_display" "', argument "
"1"" of type '" "DDCS_Display_Ref""'"); goto fail; } while(0
)
;
4229 }
4230 {
4231 clear_exception(); // redundant
4232 result = (DDCS_Display_Handle)ddcs_open_display(arg1);
4233 // char * emsg = check_exception();
4234 // if (emsg) {
4235 // PyErr_SetString( PyExc_RuntimeError, emsg);
4236 // return NULL;
4237 // }
4238 bool_Bool exception_thrown = check_exception2();
4239 if (exception_thrown) {
4240 puts("(ddc_swig.i:exception handler) throwing exception");
4241 return NULL((void*)0);
4242 }
4243 }
4244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[8], 0 | 0)
;
4245 return resultobj;
4246fail:
4247 return NULL((void*)0);
4248}
4249
4250
4251SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_close_display(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4252 PyObject *resultobj = 0;
4253 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
4254 int res1 ;
4255 PyObject * obj0 = 0 ;
4256
4257 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_close_display",&obj0)) SWIG_failgoto fail;
4258 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4259 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_close_display" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_close_display" "', argument "
"1"" of type '" "DDCS_Display_Handle""'"); goto fail; } while
(0)
;
4261 }
4262 {
4263 clear_exception(); // redundant
4264 ddcs_close_display(arg1);
4265 // char * emsg = check_exception();
4266 // if (emsg) {
4267 // PyErr_SetString( PyExc_RuntimeError, emsg);
4268 // return NULL;
4269 // }
4270 bool_Bool exception_thrown = check_exception2();
4271 if (exception_thrown) {
4272 puts("(ddc_swig.i:exception handler) throwing exception");
4273 return NULL((void*)0);
4274 }
4275 }
4276 resultobj = SWIG_Py_Void();
4277 return resultobj;
4278fail:
4279 return NULL((void*)0);
4280}
4281
4282
4283SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_repr_display_handle(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4284 PyObject *resultobj = 0;
4285 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
4286 int res1 ;
4287 PyObject * obj0 = 0 ;
4288 char *result = 0 ;
4289
4290 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_repr_display_handle",&obj0)) SWIG_failgoto fail;
4291 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4292 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_repr_display_handle" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_repr_display_handle" "', argument "
"1"" of type '" "DDCS_Display_Handle""'"); goto fail; } while
(0)
;
4294 }
4295 {
4296 clear_exception(); // redundant
4297 result = (char *)ddcs_repr_display_handle(arg1);
4298 // char * emsg = check_exception();
4299 // if (emsg) {
4300 // PyErr_SetString( PyExc_RuntimeError, emsg);
4301 // return NULL;
4302 // }
4303 bool_Bool exception_thrown = check_exception2();
4304 if (exception_thrown) {
4305 puts("(ddc_swig.i:exception handler) throwing exception");
4306 return NULL((void*)0);
4307 }
4308 }
4309 resultobj = SWIG_FromCharPtr((const char *)result);
4310 return resultobj;
4311fail:
4312 return NULL((void*)0);
4313}
4314
4315
4316SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_report_active_displays(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4317 PyObject *resultobj = 0;
4318 int arg1 ;
4319 int val1 ;
4320 int ecode1 = 0 ;
4321 PyObject * obj0 = 0 ;
4322 int result;
4323
4324 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_report_active_displays",&obj0)) SWIG_failgoto fail;
4325 ecode1 = SWIG_AsVal_int(obj0, &val1);
4326 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_report_active_displays" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_report_active_displays"
"', argument " "1"" of type '" "int""'"); goto fail; } while
(0)
;
4328 }
4329 arg1 = (int)(val1);
4330 {
4331 clear_exception(); // redundant
4332 result = (int)ddcs_report_active_displays(arg1);
4333 // char * emsg = check_exception();
4334 // if (emsg) {
4335 // PyErr_SetString( PyExc_RuntimeError, emsg);
4336 // return NULL;
4337 // }
4338 bool_Bool exception_thrown = check_exception2();
4339 if (exception_thrown) {
4340 puts("(ddc_swig.i:exception handler) throwing exception");
4341 return NULL((void*)0);
4342 }
4343 }
4344 resultobj = SWIG_From_int((int)(result));
4345 return resultobj;
4346fail:
4347 return NULL((void*)0);
4348}
4349
4350
4351SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_MCCS_Version_Spec_major_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4352 PyObject *resultobj = 0;
4353 DDCS_MCCS_Version_Spec *arg1 = (DDCS_MCCS_Version_Spec *) 0 ;
4354 int arg2 ;
4355 void *argp1 = 0 ;
4356 int res1 = 0 ;
4357 int val2 ;
4358 int ecode2 = 0 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361
4362 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_MCCS_Version_Spec_major_set",&obj0,&obj1)) SWIG_failgoto fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_MCCS_Version_Spec, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4364 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_MCCS_Version_Spec_major_set" "', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_MCCS_Version_Spec_major_set"
"', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'"
); goto fail; } while(0)
;
4366 }
4367 arg1 = (DDCS_MCCS_Version_Spec *)(argp1);
4368 ecode2 = SWIG_AsVal_int(obj1, &val2);
4369 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DDCS_MCCS_Version_Spec_major_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "DDCS_MCCS_Version_Spec_major_set"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
4371 }
4372 arg2 = (int)(val2);
4373 if (arg1) (arg1)->major = arg2;
4374 resultobj = SWIG_Py_Void();
4375 return resultobj;
4376fail:
4377 return NULL((void*)0);
4378}
4379
4380
4381SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_MCCS_Version_Spec_major_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4382 PyObject *resultobj = 0;
4383 DDCS_MCCS_Version_Spec *arg1 = (DDCS_MCCS_Version_Spec *) 0 ;
4384 void *argp1 = 0 ;
4385 int res1 = 0 ;
4386 PyObject * obj0 = 0 ;
4387 int result;
4388
4389 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_MCCS_Version_Spec_major_get",&obj0)) SWIG_failgoto fail;
4390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_MCCS_Version_Spec, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4391 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_MCCS_Version_Spec_major_get" "', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_MCCS_Version_Spec_major_get"
"', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'"
); goto fail; } while(0)
;
4393 }
4394 arg1 = (DDCS_MCCS_Version_Spec *)(argp1);
4395 result = (int) ((arg1)->major);
4396 resultobj = SWIG_From_int((int)(result));
4397 return resultobj;
4398fail:
4399 return NULL((void*)0);
4400}
4401
4402
4403SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_MCCS_Version_Spec_minor_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4404 PyObject *resultobj = 0;
4405 DDCS_MCCS_Version_Spec *arg1 = (DDCS_MCCS_Version_Spec *) 0 ;
4406 int arg2 ;
4407 void *argp1 = 0 ;
4408 int res1 = 0 ;
4409 int val2 ;
4410 int ecode2 = 0 ;
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
4413
4414 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_MCCS_Version_Spec_minor_set",&obj0,&obj1)) SWIG_failgoto fail;
4415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_MCCS_Version_Spec, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4416 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_MCCS_Version_Spec_minor_set" "', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_MCCS_Version_Spec_minor_set"
"', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'"
); goto fail; } while(0)
;
4418 }
4419 arg1 = (DDCS_MCCS_Version_Spec *)(argp1);
4420 ecode2 = SWIG_AsVal_int(obj1, &val2);
4421 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DDCS_MCCS_Version_Spec_minor_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "DDCS_MCCS_Version_Spec_minor_set"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
4423 }
4424 arg2 = (int)(val2);
4425 if (arg1) (arg1)->minor = arg2;
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL((void*)0);
4430}
4431
4432
4433SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_MCCS_Version_Spec_minor_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 DDCS_MCCS_Version_Spec *arg1 = (DDCS_MCCS_Version_Spec *) 0 ;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject * obj0 = 0 ;
4439 int result;
4440
4441 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_MCCS_Version_Spec_minor_get",&obj0)) SWIG_failgoto fail;
4442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_MCCS_Version_Spec, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4443 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_MCCS_Version_Spec_minor_get" "', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_MCCS_Version_Spec_minor_get"
"', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'"
); goto fail; } while(0)
;
4445 }
4446 arg1 = (DDCS_MCCS_Version_Spec *)(argp1);
4447 result = (int) ((arg1)->minor);
4448 resultobj = SWIG_From_int((int)(result));
4449 return resultobj;
4450fail:
4451 return NULL((void*)0);
4452}
4453
4454
4455SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_DDCS_MCCS_Version_Spec(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4456 PyObject *resultobj = 0;
4457 DDCS_MCCS_Version_Spec *result = 0 ;
4458
4459 if (!PyArg_ParseTuple(args,(char *)":new_DDCS_MCCS_Version_Spec")) SWIG_failgoto fail;
4460 {
4461 clear_exception(); // redundant
4462 result = (DDCS_MCCS_Version_Spec *)calloc(1, sizeof(DDCS_MCCS_Version_Spec));
4463 // char * emsg = check_exception();
4464 // if (emsg) {
4465 // PyErr_SetString( PyExc_RuntimeError, emsg);
4466 // return NULL;
4467 // }
4468 bool_Bool exception_thrown = check_exception2();
4469 if (exception_thrown) {
4470 puts("(ddc_swig.i:exception handler) throwing exception");
4471 return NULL((void*)0);
4472 }
4473 }
4474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DDCS_MCCS_Version_Spec, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[3], ((0x1 << 1) | 0x1) | 0)
;
4475 return resultobj;
4476fail:
4477 return NULL((void*)0);
4478}
4479
4480
4481SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_DDCS_MCCS_Version_Spec(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4482 PyObject *resultobj = 0;
4483 DDCS_MCCS_Version_Spec *arg1 = (DDCS_MCCS_Version_Spec *) 0 ;
4484 void *argp1 = 0 ;
4485 int res1 = 0 ;
4486 PyObject * obj0 = 0 ;
4487
4488 if (!PyArg_ParseTuple(args,(char *)"O:delete_DDCS_MCCS_Version_Spec",&obj0)) SWIG_failgoto fail;
4489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_MCCS_Version_Spec, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
4490 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DDCS_MCCS_Version_Spec" "', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_DDCS_MCCS_Version_Spec"
"', argument " "1"" of type '" "DDCS_MCCS_Version_Spec *""'"
); goto fail; } while(0)
;
4492 }
4493 arg1 = (DDCS_MCCS_Version_Spec *)(argp1);
4494 {
4495 clear_exception(); // redundant
4496 free((char *) arg1);
4497 // char * emsg = check_exception();
4498 // if (emsg) {
4499 // PyErr_SetString( PyExc_RuntimeError, emsg);
4500 // return NULL;
4501 // }
4502 bool_Bool exception_thrown = check_exception2();
4503 if (exception_thrown) {
4504 puts("(ddc_swig.i:exception handler) throwing exception");
4505 return NULL((void*)0);
4506 }
4507 }
4508 resultobj = SWIG_Py_Void();
4509 return resultobj;
4510fail:
4511 return NULL((void*)0);
4512}
4513
4514
4515SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *DDCS_MCCS_Version_Spec_swigregister(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4516 PyObject *obj;
4517 if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL((void*)0);
4518 SWIG_TypeNewClientData(SWIGTYPE_p_DDCS_MCCS_Version_Specswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4519 return SWIG_Py_Void();
4520}
4521
4522SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_feature_name(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4523 PyObject *resultobj = 0;
4524 DDCS_VCP_Feature_Code arg1 ;
4525 int val1 ;
4526 int ecode1 = 0 ;
4527 PyObject * obj0 = 0 ;
4528 char *result = 0 ;
4529
4530 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_get_feature_name",&obj0)) SWIG_failgoto fail;
4531 ecode1 = SWIG_AsVal_int(obj0, &val1);
4532 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4533 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ddcs_get_feature_name" "', argument " "1"" of type '" "DDCS_VCP_Feature_Code""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "ddcs_get_feature_name"
"', argument " "1"" of type '" "DDCS_VCP_Feature_Code""'"); goto
fail; } while(0)
;
4534 }
4535 arg1 = (DDCS_VCP_Feature_Code)(val1);
4536 {
4537 clear_exception(); // redundant
4538 result = (char *)ddcs_get_feature_name(arg1);
4539 // char * emsg = check_exception();
4540 // if (emsg) {
4541 // PyErr_SetString( PyExc_RuntimeError, emsg);
4542 // return NULL;
4543 // }
4544 bool_Bool exception_thrown = check_exception2();
4545 if (exception_thrown) {
4546 puts("(ddc_swig.i:exception handler) throwing exception");
4547 return NULL((void*)0);
4548 }
4549 }
4550 resultobj = SWIG_FromCharPtr((const char *)result);
4551 return resultobj;
4552fail:
4553 return NULL((void*)0);
4554}
4555
4556
4557SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_capabilities_string(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4558 PyObject *resultobj = 0;
4559 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
4560 int res1 ;
4561 PyObject * obj0 = 0 ;
4562 char *result = 0 ;
4563
4564 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_get_capabilities_string",&obj0)) SWIG_failgoto fail;
4565 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
4566 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_get_capabilities_string" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_get_capabilities_string"
"', argument " "1"" of type '" "DDCS_Display_Handle""'"); goto
fail; } while(0)
;
4568 }
4569 {
4570 clear_exception(); // redundant
4571 result = (char *)ddcs_get_capabilities_string(arg1);
4572 // char * emsg = check_exception();
4573 // if (emsg) {
4574 // PyErr_SetString( PyExc_RuntimeError, emsg);
4575 // return NULL;
4576 // }
4577 bool_Bool exception_thrown = check_exception2();
4578 if (exception_thrown) {
4579 puts("(ddc_swig.i:exception handler) throwing exception");
4580 return NULL((void*)0);
4581 }
4582 }
4583 resultobj = SWIG_FromCharPtr((const char *)result);
4584 return resultobj;
4585fail:
4586 return NULL((void*)0);
4587}
4588
4589
4590SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_mh_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4591 PyObject *resultobj = 0;
4592 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4593 uint8_t arg2 ;
4594 void *argp1 = 0 ;
4595 int res1 = 0 ;
4596 void *argp2 ;
4597 int res2 = 0 ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600
4601 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_mh_set",&obj0,&obj1)) SWIG_failgoto fail;
4602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4603 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_mh_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_mh_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4605 }
4606 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4607 {
4608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint8_t, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0, 0)
;
4609 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDCS_Non_Table_Value_Response_mh_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_mh_set"
"', argument " "2"" of type '" "uint8_t""'"); goto fail; } while
(0)
;
4611 }
4612 if (!argp2) {
4613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DDCS_Non_Table_Value_Response_mh_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "DDCS_Non_Table_Value_Response_mh_set" "', argument "
"2"" of type '" "uint8_t""'"); goto fail; } while(0)
;
4614 } else {
4615 arg2 = *((uint8_t *)(argp2));
4616 }
4617 }
4618 if (arg1) (arg1)->mh = arg2;
4619 resultobj = SWIG_Py_Void();
4620 return resultobj;
4621fail:
4622 return NULL((void*)0);
4623}
4624
4625
4626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_mh_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4627 PyObject *resultobj = 0;
4628 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4629 void *argp1 = 0 ;
4630 int res1 = 0 ;
4631 PyObject * obj0 = 0 ;
4632 uint8_t result;
4633
4634 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_mh_get",&obj0)) SWIG_failgoto fail;
4635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4636 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_mh_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_mh_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4638 }
4639 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4640 result = ((arg1)->mh);
4641 resultobj = SWIG_NewPointerObj((uint8_t *)memcpy((uint8_t *)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), SWIGTYPE_p_uint8_t, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(((void*)0), (uint8_t *)memcpy((uint8_t
*)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), swig_types
[7], 0x1 | 0)
;
4642 return resultobj;
4643fail:
4644 return NULL((void*)0);
4645}
4646
4647
4648SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_ml_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4649 PyObject *resultobj = 0;
4650 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4651 uint8_t arg2 ;
4652 void *argp1 = 0 ;
4653 int res1 = 0 ;
4654 void *argp2 ;
4655 int res2 = 0 ;
4656 PyObject * obj0 = 0 ;
4657 PyObject * obj1 = 0 ;
4658
4659 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_ml_set",&obj0,&obj1)) SWIG_failgoto fail;
4660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4661 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_ml_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_ml_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4663 }
4664 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4665 {
4666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint8_t, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0, 0)
;
4667 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDCS_Non_Table_Value_Response_ml_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_ml_set"
"', argument " "2"" of type '" "uint8_t""'"); goto fail; } while
(0)
;
4669 }
4670 if (!argp2) {
4671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DDCS_Non_Table_Value_Response_ml_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "DDCS_Non_Table_Value_Response_ml_set" "', argument "
"2"" of type '" "uint8_t""'"); goto fail; } while(0)
;
4672 } else {
4673 arg2 = *((uint8_t *)(argp2));
4674 }
4675 }
4676 if (arg1) (arg1)->ml = arg2;
4677 resultobj = SWIG_Py_Void();
4678 return resultobj;
4679fail:
4680 return NULL((void*)0);
4681}
4682
4683
4684SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_ml_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4685 PyObject *resultobj = 0;
4686 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4687 void *argp1 = 0 ;
4688 int res1 = 0 ;
4689 PyObject * obj0 = 0 ;
4690 uint8_t result;
4691
4692 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_ml_get",&obj0)) SWIG_failgoto fail;
4693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4694 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_ml_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_ml_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4696 }
4697 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4698 result = ((arg1)->ml);
4699 resultobj = SWIG_NewPointerObj((uint8_t *)memcpy((uint8_t *)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), SWIGTYPE_p_uint8_t, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(((void*)0), (uint8_t *)memcpy((uint8_t
*)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), swig_types
[7], 0x1 | 0)
;
4700 return resultobj;
4701fail:
4702 return NULL((void*)0);
4703}
4704
4705
4706SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_sh_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4709 uint8_t arg2 ;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 void *argp2 ;
4713 int res2 = 0 ;
4714 PyObject * obj0 = 0 ;
4715 PyObject * obj1 = 0 ;
4716
4717 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_sh_set",&obj0,&obj1)) SWIG_failgoto fail;
4718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4719 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_sh_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sh_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4721 }
4722 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4723 {
4724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint8_t, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0, 0)
;
4725 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDCS_Non_Table_Value_Response_sh_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sh_set"
"', argument " "2"" of type '" "uint8_t""'"); goto fail; } while
(0)
;
4727 }
4728 if (!argp2) {
4729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DDCS_Non_Table_Value_Response_sh_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "DDCS_Non_Table_Value_Response_sh_set" "', argument "
"2"" of type '" "uint8_t""'"); goto fail; } while(0)
;
4730 } else {
4731 arg2 = *((uint8_t *)(argp2));
4732 }
4733 }
4734 if (arg1) (arg1)->sh = arg2;
4735 resultobj = SWIG_Py_Void();
4736 return resultobj;
4737fail:
4738 return NULL((void*)0);
4739}
4740
4741
4742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_sh_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4743 PyObject *resultobj = 0;
4744 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 PyObject * obj0 = 0 ;
4748 uint8_t result;
4749
4750 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_sh_get",&obj0)) SWIG_failgoto fail;
4751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4752 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_sh_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sh_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4754 }
4755 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4756 result = ((arg1)->sh);
4757 resultobj = SWIG_NewPointerObj((uint8_t *)memcpy((uint8_t *)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), SWIGTYPE_p_uint8_t, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(((void*)0), (uint8_t *)memcpy((uint8_t
*)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), swig_types
[7], 0x1 | 0)
;
4758 return resultobj;
4759fail:
4760 return NULL((void*)0);
4761}
4762
4763
4764SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_sl_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4765 PyObject *resultobj = 0;
4766 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4767 uint8_t arg2 ;
4768 void *argp1 = 0 ;
4769 int res1 = 0 ;
4770 void *argp2 ;
4771 int res2 = 0 ;
4772 PyObject * obj0 = 0 ;
4773 PyObject * obj1 = 0 ;
4774
4775 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_sl_set",&obj0,&obj1)) SWIG_failgoto fail;
4776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4777 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_sl_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sl_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4779 }
4780 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4781 {
4782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint8_t, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0, 0)
;
4783 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDCS_Non_Table_Value_Response_sl_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sl_set"
"', argument " "2"" of type '" "uint8_t""'"); goto fail; } while
(0)
;
4785 }
4786 if (!argp2) {
4787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DDCS_Non_Table_Value_Response_sl_set" "', argument " "2"" of type '" "uint8_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "DDCS_Non_Table_Value_Response_sl_set" "', argument "
"2"" of type '" "uint8_t""'"); goto fail; } while(0)
;
4788 } else {
4789 arg2 = *((uint8_t *)(argp2));
4790 }
4791 }
4792 if (arg1) (arg1)->sl = arg2;
4793 resultobj = SWIG_Py_Void();
4794 return resultobj;
4795fail:
4796 return NULL((void*)0);
4797}
4798
4799
4800SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_sl_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4803 void *argp1 = 0 ;
4804 int res1 = 0 ;
4805 PyObject * obj0 = 0 ;
4806 uint8_t result;
4807
4808 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_sl_get",&obj0)) SWIG_failgoto fail;
4809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4810 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_sl_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_sl_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4812 }
4813 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4814 result = ((arg1)->sl);
4815 resultobj = SWIG_NewPointerObj((uint8_t *)memcpy((uint8_t *)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), SWIGTYPE_p_uint8_t, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(((void*)0), (uint8_t *)memcpy((uint8_t
*)calloc(1,sizeof(uint8_t)),&result,sizeof(uint8_t)), swig_types
[7], 0x1 | 0)
;
4816 return resultobj;
4817fail:
4818 return NULL((void*)0);
4819}
4820
4821
4822SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_max_value_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4823 PyObject *resultobj = 0;
4824 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4825 int arg2 ;
4826 void *argp1 = 0 ;
4827 int res1 = 0 ;
4828 int val2 ;
4829 int ecode2 = 0 ;
4830 PyObject * obj0 = 0 ;
4831 PyObject * obj1 = 0 ;
4832
4833 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_max_value_set",&obj0,&obj1)) SWIG_failgoto fail;
4834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4835 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_max_value_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_max_value_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4837 }
4838 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4839 ecode2 = SWIG_AsVal_int(obj1, &val2);
4840 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DDCS_Non_Table_Value_Response_max_value_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_max_value_set"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
4842 }
4843 arg2 = (int)(val2);
4844 if (arg1) (arg1)->max_value = arg2;
4845 resultobj = SWIG_Py_Void();
4846 return resultobj;
4847fail:
4848 return NULL((void*)0);
4849}
4850
4851
4852SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_max_value_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4853 PyObject *resultobj = 0;
4854 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4855 void *argp1 = 0 ;
4856 int res1 = 0 ;
4857 PyObject * obj0 = 0 ;
4858 int result;
4859
4860 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_max_value_get",&obj0)) SWIG_failgoto fail;
4861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4862 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_max_value_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_max_value_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4864 }
4865 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4866 result = (int) ((arg1)->max_value);
4867 resultobj = SWIG_From_int((int)(result));
4868 return resultobj;
4869fail:
4870 return NULL((void*)0);
4871}
4872
4873
4874SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_cur_value_set(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4875 PyObject *resultobj = 0;
4876 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4877 int arg2 ;
4878 void *argp1 = 0 ;
4879 int res1 = 0 ;
4880 int val2 ;
4881 int ecode2 = 0 ;
4882 PyObject * obj0 = 0 ;
4883 PyObject * obj1 = 0 ;
4884
4885 if (!PyArg_ParseTuple(args,(char *)"OO:DDCS_Non_Table_Value_Response_cur_value_set",&obj0,&obj1)) SWIG_failgoto fail;
4886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4887 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_cur_value_set" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_cur_value_set"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4889 }
4890 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4891 ecode2 = SWIG_AsVal_int(obj1, &val2);
4892 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DDCS_Non_Table_Value_Response_cur_value_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "DDCS_Non_Table_Value_Response_cur_value_set"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
4894 }
4895 arg2 = (int)(val2);
4896 if (arg1) (arg1)->cur_value = arg2;
4897 resultobj = SWIG_Py_Void();
4898 return resultobj;
4899fail:
4900 return NULL((void*)0);
4901}
4902
4903
4904SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_DDCS_Non_Table_Value_Response_cur_value_get(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4905 PyObject *resultobj = 0;
4906 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4907 void *argp1 = 0 ;
4908 int res1 = 0 ;
4909 PyObject * obj0 = 0 ;
4910 int result;
4911
4912 if (!PyArg_ParseTuple(args,(char *)"O:DDCS_Non_Table_Value_Response_cur_value_get",&obj0)) SWIG_failgoto fail;
4913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
4914 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDCS_Non_Table_Value_Response_cur_value_get" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "DDCS_Non_Table_Value_Response_cur_value_get"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4916 }
4917 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4918 result = (int) ((arg1)->cur_value);
4919 resultobj = SWIG_From_int((int)(result));
4920 return resultobj;
4921fail:
4922 return NULL((void*)0);
4923}
4924
4925
4926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_DDCS_Non_Table_Value_Response(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4927 PyObject *resultobj = 0;
4928 DDCS_Non_Table_Value_Response *result = 0 ;
4929
4930 if (!PyArg_ParseTuple(args,(char *)":new_DDCS_Non_Table_Value_Response")) SWIG_failgoto fail;
4931 {
4932 clear_exception(); // redundant
4933 result = (DDCS_Non_Table_Value_Response *)calloc(1, sizeof(DDCS_Non_Table_Value_Response));
4934 // char * emsg = check_exception();
4935 // if (emsg) {
4936 // PyErr_SetString( PyExc_RuntimeError, emsg);
4937 // return NULL;
4938 // }
4939 bool_Bool exception_thrown = check_exception2();
4940 if (exception_thrown) {
4941 puts("(ddc_swig.i:exception handler) throwing exception");
4942 return NULL((void*)0);
4943 }
4944 }
4945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DDCS_Non_Table_Value_Response, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(((void*)0), (void *)((const void *)
(result)), swig_types[4], ((0x1 << 1) | 0x1) | 0)
;
4946 return resultobj;
4947fail:
4948 return NULL((void*)0);
4949}
4950
4951
4952SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_DDCS_Non_Table_Value_Response(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4953 PyObject *resultobj = 0;
4954 DDCS_Non_Table_Value_Response *arg1 = (DDCS_Non_Table_Value_Response *) 0 ;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject * obj0 = 0 ;
4958
4959 if (!PyArg_ParseTuple(args,(char *)"O:delete_DDCS_Non_Table_Value_Response",&obj0)) SWIG_failgoto fail;
4960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDCS_Non_Table_Value_Response, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
4961 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DDCS_Non_Table_Value_Response" "', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_DDCS_Non_Table_Value_Response"
"', argument " "1"" of type '" "DDCS_Non_Table_Value_Response *"
"'"); goto fail; } while(0)
;
4963 }
4964 arg1 = (DDCS_Non_Table_Value_Response *)(argp1);
4965 {
4966 clear_exception(); // redundant
4967 free((char *) arg1);
4968 // char * emsg = check_exception();
4969 // if (emsg) {
4970 // PyErr_SetString( PyExc_RuntimeError, emsg);
4971 // return NULL;
4972 // }
4973 bool_Bool exception_thrown = check_exception2();
4974 if (exception_thrown) {
4975 puts("(ddc_swig.i:exception handler) throwing exception");
4976 return NULL((void*)0);
4977 }
4978 }
4979 resultobj = SWIG_Py_Void();
4980 return resultobj;
4981fail:
4982 return NULL((void*)0);
4983}
4984
4985
4986SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *DDCS_Non_Table_Value_Response_swigregister(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4987 PyObject *obj;
4988 if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL((void*)0);
4989 SWIG_TypeNewClientData(SWIGTYPE_p_DDCS_Non_Table_Value_Responseswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4990 return SWIG_Py_Void();
4991}
4992
4993SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_nontable_vcp_value(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
4994 PyObject *resultobj = 0;
4995 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
4996 DDCS_VCP_Feature_Code arg2 ;
4997 int res1 ;
4998 int val2 ;
4999 int ecode2 = 0 ;
5000 PyObject * obj0 = 0 ;
5001 PyObject * obj1 = 0 ;
5002 DDCS_Non_Table_Value_Response result;
5003
5004 if (!PyArg_ParseTuple(args,(char *)"OO:ddcs_get_nontable_vcp_value",&obj0,&obj1)) SWIG_failgoto fail;
5005 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
5006 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_get_nontable_vcp_value" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_get_nontable_vcp_value"
"', argument " "1"" of type '" "DDCS_Display_Handle""'"); goto
fail; } while(0)
;
5008 }
5009 ecode2 = SWIG_AsVal_int(obj1, &val2);
5010 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_get_nontable_vcp_value" "', argument " "2"" of type '" "DDCS_VCP_Feature_Code""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_get_nontable_vcp_value"
"', argument " "2"" of type '" "DDCS_VCP_Feature_Code""'"); goto
fail; } while(0)
;
5012 }
5013 arg2 = (DDCS_VCP_Feature_Code)(val2);
5014 {
5015 clear_exception(); // redundant
5016 result = ddcs_get_nontable_vcp_value(arg1,arg2);
5017 // char * emsg = check_exception();
5018 // if (emsg) {
5019 // PyErr_SetString( PyExc_RuntimeError, emsg);
5020 // return NULL;
5021 // }
5022 bool_Bool exception_thrown = check_exception2();
5023 if (exception_thrown) {
5024 puts("(ddc_swig.i:exception handler) throwing exception");
5025 return NULL((void*)0);
5026 }
5027 }
5028 resultobj = SWIG_NewPointerObj((DDCS_Non_Table_Value_Response *)memcpy((DDCS_Non_Table_Value_Response *)calloc(1,sizeof(DDCS_Non_Table_Value_Response)),&result,sizeof(DDCS_Non_Table_Value_Response)), SWIGTYPE_p_DDCS_Non_Table_Value_Response, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(((void*)0), (DDCS_Non_Table_Value_Response
*)memcpy((DDCS_Non_Table_Value_Response *)calloc(1,sizeof(DDCS_Non_Table_Value_Response
)),&result,sizeof(DDCS_Non_Table_Value_Response)), swig_types
[4], 0x1 | 0)
;
5029 return resultobj;
5030fail:
5031 return NULL((void*)0);
5032}
5033
5034
5035SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_set_nontable_vcp_value(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
5036 PyObject *resultobj = 0;
5037 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
5038 DDCS_VCP_Feature_Code arg2 ;
5039 int arg3 ;
5040 int res1 ;
5041 int val2 ;
5042 int ecode2 = 0 ;
5043 int val3 ;
5044 int ecode3 = 0 ;
5045 PyObject * obj0 = 0 ;
5046 PyObject * obj1 = 0 ;
5047 PyObject * obj2 = 0 ;
5048
5049 if (!PyArg_ParseTuple(args,(char *)"OOO:ddcs_set_nontable_vcp_value",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5050 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
5051 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_set_nontable_vcp_value" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_set_nontable_vcp_value"
"', argument " "1"" of type '" "DDCS_Display_Handle""'"); goto
fail; } while(0)
;
5053 }
5054 ecode2 = SWIG_AsVal_int(obj1, &val2);
5055 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ddcs_set_nontable_vcp_value" "', argument " "2"" of type '" "DDCS_VCP_Feature_Code""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "ddcs_set_nontable_vcp_value"
"', argument " "2"" of type '" "DDCS_VCP_Feature_Code""'"); goto
fail; } while(0)
;
5057 }
5058 arg2 = (DDCS_VCP_Feature_Code)(val2);
5059 ecode3 = SWIG_AsVal_int(obj2, &val3);
5060 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ddcs_set_nontable_vcp_value" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "ddcs_set_nontable_vcp_value"
"', argument " "3"" of type '" "int""'"); goto fail; } while
(0)
;
5062 }
5063 arg3 = (int)(val3);
5064 {
5065 clear_exception(); // redundant
5066 ddcs_set_nontable_vcp_value(arg1,arg2,arg3);
5067 // char * emsg = check_exception();
5068 // if (emsg) {
5069 // PyErr_SetString( PyExc_RuntimeError, emsg);
5070 // return NULL;
5071 // }
5072 bool_Bool exception_thrown = check_exception2();
5073 if (exception_thrown) {
5074 puts("(ddc_swig.i:exception handler) throwing exception");
5075 return NULL((void*)0);
5076 }
5077 }
5078 resultobj = SWIG_Py_Void();
5079 return resultobj;
5080fail:
5081 return NULL((void*)0);
5082}
5083
5084
5085SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_get_profile_related_values(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
5086 PyObject *resultobj = 0;
5087 DDCS_Display_Handle arg1 = (DDCS_Display_Handle) 0 ;
5088 int res1 ;
5089 PyObject * obj0 = 0 ;
5090 char *result = 0 ;
5091
5092 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_get_profile_related_values",&obj0)) SWIG_failgoto fail;
5093 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0)SWIG_Python_ConvertPtrAndOwn(obj0, ((void)(void *)((const void
*)(*&arg1)),(void**)(&arg1)), 0, 0, 0)
;
5094 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_get_profile_related_values" "', argument " "1"" of type '" "DDCS_Display_Handle""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_get_profile_related_values"
"', argument " "1"" of type '" "DDCS_Display_Handle""'"); goto
fail; } while(0)
;
5096 }
5097 {
5098 clear_exception(); // redundant
5099 result = (char *)ddcs_get_profile_related_values(arg1);
5100 // char * emsg = check_exception();
5101 // if (emsg) {
5102 // PyErr_SetString( PyExc_RuntimeError, emsg);
5103 // return NULL;
5104 // }
5105 bool_Bool exception_thrown = check_exception2();
5106 if (exception_thrown) {
5107 puts("(ddc_swig.i:exception handler) throwing exception");
5108 return NULL((void*)0);
5109 }
5110 }
5111 resultobj = SWIG_FromCharPtr((const char *)result);
5112 return resultobj;
5113fail:
5114 return NULL((void*)0);
5115}
5116
5117
5118SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_ddcs_set_profile_related_values(PyObject *SWIGUNUSEDPARM(self)self __attribute__ ((__unused__)), PyObject *args) {
5119 PyObject *resultobj = 0;
5120 char *arg1 = (char *) 0 ;
5121 int res1 ;
5122 char *buf1 = 0 ;
5123 int alloc1 = 0 ;
5124 PyObject * obj0 = 0 ;
5125
5126 if (!PyArg_ParseTuple(args,(char *)"O:ddcs_set_profile_related_values",&obj0)) SWIG_failgoto fail;
5127 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL((void*)0), &alloc1);
5128 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ddcs_set_profile_related_values" "', argument " "1"" of type '" "char *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "ddcs_set_profile_related_values"
"', argument " "1"" of type '" "char *""'"); goto fail; } while
(0)
;
5130 }
5131 arg1 = (char *)(buf1);
5132 {
5133 clear_exception(); // redundant
5134 ddcs_set_profile_related_values(arg1);
5135 // char * emsg = check_exception();
5136 // if (emsg) {
5137 // PyErr_SetString( PyExc_RuntimeError, emsg);
5138 // return NULL;
5139 // }
5140 bool_Bool exception_thrown = check_exception2();
5141 if (exception_thrown) {
5142 puts("(ddc_swig.i:exception handler) throwing exception");
5143 return NULL((void*)0);
5144 }
5145 }
5146 resultobj = SWIG_Py_Void();
5147 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf1);
5148 return resultobj;
5149fail:
5150 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) free((char*)buf1);
5151 return NULL((void*)0);
5152}
5153
5154
5155static PyMethodDef SwigMethods[] = {
5156 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL((void*)0)},
5157 { (char *)"ddcs_ddcutil_version_string", _wrap_ddcs_ddcutil_version_string, METH_VARARGS0x0001, NULL((void*)0)},
5158 { (char *)"ddcs_get_build_options", _wrap_ddcs_get_build_options, METH_VARARGS0x0001, (char *)"ddcs_get_build_options() -> FlagsByte"},
5159 { (char *)"ddcs_status_code_name", _wrap_ddcs_status_code_name, METH_VARARGS0x0001, (char *)"ddcs_status_code_name(status_code) -> char *"},
5160 { (char *)"ddcs_status_code_desc", _wrap_ddcs_status_code_desc, METH_VARARGS0x0001, (char *)"ddcs_status_code_desc(status_code) -> char *"},
5161 { (char *)"ddcs_get_max_tries", _wrap_ddcs_get_max_tries, METH_VARARGS0x0001, (char *)"ddcs_get_max_tries(retry_type) -> int"},
5162 { (char *)"ddcs_set_max_tries", _wrap_ddcs_set_max_tries, METH_VARARGS0x0001, (char *)"ddcs_set_max_tries(retry_type, max_tries) -> DDCA_Status"},
5163 { (char *)"ddcs_get_output_level", _wrap_ddcs_get_output_level, METH_VARARGS0x0001, (char *)"ddcs_get_output_level() -> DDCA_Output_Level"},
5164 { (char *)"ddcs_set_output_level", _wrap_ddcs_set_output_level, METH_VARARGS0x0001, (char *)"ddcs_set_output_level(newval)"},
5165 { (char *)"ddcs_output_level_name", _wrap_ddcs_output_level_name, METH_VARARGS0x0001, (char *)"ddcs_output_level_name(val) -> char *"},
5166 { (char *)"ddcs_enable_report_ddc_errors", _wrap_ddcs_enable_report_ddc_errors, METH_VARARGS0x0001, (char *)"ddcs_enable_report_ddc_errors(onoff)"},
5167 { (char *)"ddcs_is_report_ddc_errors_enabled", _wrap_ddcs_is_report_ddc_errors_enabled, METH_VARARGS0x0001, (char *)"ddcs_is_report_ddc_errors_enabled() -> bool"},
5168 { (char *)"ddcs_create_dispno_display_identifier", _wrap_ddcs_create_dispno_display_identifier, METH_VARARGS0x0001, (char *)"ddcs_create_dispno_display_identifier(dispno) -> DDCS_Display_Identifier"},
5169 { (char *)"ddcs_create_adlno_display_identifier", _wrap_ddcs_create_adlno_display_identifier, METH_VARARGS0x0001, (char *)"ddcs_create_adlno_display_identifier(int iAdapterIndex, int iDisplayIndex) -> DDCS_Display_Identifier"},
5170 { (char *)"ddcs_create_busno_display_identifier", _wrap_ddcs_create_busno_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5171 { (char *)"ddcs_create_mfg_model_sn_display_identifier", _wrap_ddcs_create_mfg_model_sn_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5172 { (char *)"ddcs_create_edid_display_identifier", _wrap_ddcs_create_edid_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5173 { (char *)"ddcs_create_usb_display_identifier", _wrap_ddcs_create_usb_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5174 { (char *)"ddcs_free_display_identifier", _wrap_ddcs_free_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5175 { (char *)"ddcs_repr_display_identifier", _wrap_ddcs_repr_display_identifier, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5176 { (char *)"ddcs_get_display_ref", _wrap_ddcs_get_display_ref, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5177 { (char *)"ddcs_free_display_ref", _wrap_ddcs_free_display_ref, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5178 { (char *)"ddcs_repr_display_ref", _wrap_ddcs_repr_display_ref, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5179 { (char *)"ddcs_report_display_ref", _wrap_ddcs_report_display_ref, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5180 { (char *)"ddcs_open_display", _wrap_ddcs_open_display, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5181 { (char *)"ddcs_close_display", _wrap_ddcs_close_display, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5182 { (char *)"ddcs_repr_display_handle", _wrap_ddcs_repr_display_handle, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5183 { (char *)"ddcs_report_active_displays", _wrap_ddcs_report_active_displays, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5184 { (char *)"DDCS_MCCS_Version_Spec_major_set", _wrap_DDCS_MCCS_Version_Spec_major_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5185 { (char *)"DDCS_MCCS_Version_Spec_major_get", _wrap_DDCS_MCCS_Version_Spec_major_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5186 { (char *)"DDCS_MCCS_Version_Spec_minor_set", _wrap_DDCS_MCCS_Version_Spec_minor_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5187 { (char *)"DDCS_MCCS_Version_Spec_minor_get", _wrap_DDCS_MCCS_Version_Spec_minor_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5188 { (char *)"new_DDCS_MCCS_Version_Spec", _wrap_new_DDCS_MCCS_Version_Spec, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5189 { (char *)"delete_DDCS_MCCS_Version_Spec", _wrap_delete_DDCS_MCCS_Version_Spec, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5190 { (char *)"DDCS_MCCS_Version_Spec_swigregister", DDCS_MCCS_Version_Spec_swigregister, METH_VARARGS0x0001, NULL((void*)0)},
5191 { (char *)"ddcs_get_feature_name", _wrap_ddcs_get_feature_name, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5192 { (char *)"ddcs_get_capabilities_string", _wrap_ddcs_get_capabilities_string, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5193 { (char *)"DDCS_Non_Table_Value_Response_mh_set", _wrap_DDCS_Non_Table_Value_Response_mh_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5194 { (char *)"DDCS_Non_Table_Value_Response_mh_get", _wrap_DDCS_Non_Table_Value_Response_mh_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5195 { (char *)"DDCS_Non_Table_Value_Response_ml_set", _wrap_DDCS_Non_Table_Value_Response_ml_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5196 { (char *)"DDCS_Non_Table_Value_Response_ml_get", _wrap_DDCS_Non_Table_Value_Response_ml_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5197 { (char *)"DDCS_Non_Table_Value_Response_sh_set", _wrap_DDCS_Non_Table_Value_Response_sh_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5198 { (char *)"DDCS_Non_Table_Value_Response_sh_get", _wrap_DDCS_Non_Table_Value_Response_sh_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5199 { (char *)"DDCS_Non_Table_Value_Response_sl_set", _wrap_DDCS_Non_Table_Value_Response_sl_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5200 { (char *)"DDCS_Non_Table_Value_Response_sl_get", _wrap_DDCS_Non_Table_Value_Response_sl_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5201 { (char *)"DDCS_Non_Table_Value_Response_max_value_set", _wrap_DDCS_Non_Table_Value_Response_max_value_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5202 { (char *)"DDCS_Non_Table_Value_Response_max_value_get", _wrap_DDCS_Non_Table_Value_Response_max_value_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5203 { (char *)"DDCS_Non_Table_Value_Response_cur_value_set", _wrap_DDCS_Non_Table_Value_Response_cur_value_set, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5204 { (char *)"DDCS_Non_Table_Value_Response_cur_value_get", _wrap_DDCS_Non_Table_Value_Response_cur_value_get, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5205 { (char *)"new_DDCS_Non_Table_Value_Response", _wrap_new_DDCS_Non_Table_Value_Response, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5206 { (char *)"delete_DDCS_Non_Table_Value_Response", _wrap_delete_DDCS_Non_Table_Value_Response, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5207 { (char *)"DDCS_Non_Table_Value_Response_swigregister", DDCS_Non_Table_Value_Response_swigregister, METH_VARARGS0x0001, NULL((void*)0)},
5208 { (char *)"ddcs_get_nontable_vcp_value", _wrap_ddcs_get_nontable_vcp_value, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5209 { (char *)"ddcs_set_nontable_vcp_value", _wrap_ddcs_set_nontable_vcp_value, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5210 { (char *)"ddcs_get_profile_related_values", _wrap_ddcs_get_profile_related_values, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5211 { (char *)"ddcs_set_profile_related_values", _wrap_ddcs_set_profile_related_values, METH_VARARGS0x0001, (char *)"sample feature autodoc docstring"},
5212 { NULL((void*)0), NULL((void*)0), 0, NULL((void*)0) }
5213};
5214
5215
5216/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5217
5218static swig_type_info _swigt__p_DDCA_Output_Level = {"_p_DDCA_Output_Level", "enum DDCA_Output_Level *|DDCA_Output_Level *", 0, 0, (void*)0, 0};
5219static swig_type_info _swigt__p_DDCA_Retry_Type = {"_p_DDCA_Retry_Type", "enum DDCA_Retry_Type *|DDCA_Retry_Type *", 0, 0, (void*)0, 0};
5220static swig_type_info _swigt__p_DDCS_Build_Flags = {"_p_DDCS_Build_Flags", "enum DDCS_Build_Flags *|DDCS_Build_Flags *", 0, 0, (void*)0, 0};
5221static swig_type_info _swigt__p_DDCS_MCCS_Version_Spec = {"_p_DDCS_MCCS_Version_Spec", "DDCS_MCCS_Version_Spec *", 0, 0, (void*)0, 0};
5222static swig_type_info _swigt__p_DDCS_Non_Table_Value_Response = {"_p_DDCS_Non_Table_Value_Response", "DDCS_Non_Table_Value_Response *", 0, 0, (void*)0, 0};
5223static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5224static swig_type_info _swigt__p_int = {"_p_int", "int *|DDCA_Status *|DDCS_VCP_Feature_Code *", 0, 0, (void*)0, 0};
5225static swig_type_info _swigt__p_uint8_t = {"_p_uint8_t", "uint8_t *", 0, 0, (void*)0, 0};
5226static swig_type_info _swigt__p_void = {"_p_void", "DDCS_Display_Handle|DDCS_Display_Identifier|void *|DDCS_Display_Ref", 0, 0, (void*)0, 0};
5227
5228static swig_type_info *swig_type_initial[] = {
5229 &_swigt__p_DDCA_Output_Level,
5230 &_swigt__p_DDCA_Retry_Type,
5231 &_swigt__p_DDCS_Build_Flags,
5232 &_swigt__p_DDCS_MCCS_Version_Spec,
5233 &_swigt__p_DDCS_Non_Table_Value_Response,
5234 &_swigt__p_char,
5235 &_swigt__p_int,
5236 &_swigt__p_uint8_t,
5237 &_swigt__p_void,
5238};
5239
5240static swig_cast_info _swigc__p_DDCA_Output_Level[] = { {&_swigt__p_DDCA_Output_Level, 0, 0, 0},{0, 0, 0, 0}};
5241static swig_cast_info _swigc__p_DDCA_Retry_Type[] = { {&_swigt__p_DDCA_Retry_Type, 0, 0, 0},{0, 0, 0, 0}};
5242static swig_cast_info _swigc__p_DDCS_Build_Flags[] = { {&_swigt__p_DDCS_Build_Flags, 0, 0, 0},{0, 0, 0, 0}};
5243static swig_cast_info _swigc__p_DDCS_MCCS_Version_Spec[] = { {&_swigt__p_DDCS_MCCS_Version_Spec, 0, 0, 0},{0, 0, 0, 0}};
5244static swig_cast_info _swigc__p_DDCS_Non_Table_Value_Response[] = { {&_swigt__p_DDCS_Non_Table_Value_Response, 0, 0, 0},{0, 0, 0, 0}};
5245static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5246static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
5247static swig_cast_info _swigc__p_uint8_t[] = { {&_swigt__p_uint8_t, 0, 0, 0},{0, 0, 0, 0}};
5248static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
5249
5250static swig_cast_info *swig_cast_initial[] = {
5251 _swigc__p_DDCA_Output_Level,
5252 _swigc__p_DDCA_Retry_Type,
5253 _swigc__p_DDCS_Build_Flags,
5254 _swigc__p_DDCS_MCCS_Version_Spec,
5255 _swigc__p_DDCS_Non_Table_Value_Response,
5256 _swigc__p_char,
5257 _swigc__p_int,
5258 _swigc__p_uint8_t,
5259 _swigc__p_void,
5260};
5261
5262
5263/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5264
5265static swig_const_info swig_const_table[] = {
5266{0, 0, 0, 0.0, 0, 0}};
5267
5268#ifdef __cplusplus
5269}
5270#endif
5271/* -----------------------------------------------------------------------------
5272 * Type initialization:
5273 * This problem is tough by the requirement that no dynamic
5274 * memory is used. Also, since swig_type_info structures store pointers to
5275 * swig_cast_info structures and swig_cast_info structures store pointers back
5276 * to swig_type_info structures, we need some lookup code at initialization.
5277 * The idea is that swig generates all the structures that are needed.
5278 * The runtime then collects these partially filled structures.
5279 * The SWIG_InitializeModule function takes these initial arrays out of
5280 * swig_module, and does all the lookup, filling in the swig_module.types
5281 * array with the correct data and linking the correct swig_cast_info
5282 * structures together.
5283 *
5284 * The generated swig_type_info structures are assigned statically to an initial
5285 * array. We just loop through that array, and handle each type individually.
5286 * First we lookup if this type has been already loaded, and if so, use the
5287 * loaded structure instead of the generated one. Then we have to fill in the
5288 * cast linked list. The cast data is initially stored in something like a
5289 * two-dimensional array. Each row corresponds to a type (there are the same
5290 * number of rows as there are in the swig_type_initial array). Each entry in
5291 * a column is one of the swig_cast_info structures for that type.
5292 * The cast_initial array is actually an array of arrays, because each row has
5293 * a variable number of columns. So to actually build the cast linked list,
5294 * we find the array of casts associated with the type, and loop through it
5295 * adding the casts to the list. The one last trick we need to do is making
5296 * sure the type pointer in the swig_cast_info struct is correct.
5297 *
5298 * First off, we lookup the cast->type name to see if it is already loaded.
5299 * There are three cases to handle:
5300 * 1) If the cast->type has already been loaded AND the type we are adding
5301 * casting info to has not been loaded (it is in this module), THEN we
5302 * replace the cast->type pointer with the type pointer that has already
5303 * been loaded.
5304 * 2) If BOTH types (the one we are adding casting info to, and the
5305 * cast->type) are loaded, THEN the cast info has already been loaded by
5306 * the previous module so we just ignore it.
5307 * 3) Finally, if cast->type has not already been loaded, then we add that
5308 * swig_cast_info to the linked list (because the cast->type) pointer will
5309 * be correct.
5310 * ----------------------------------------------------------------------------- */
5311
5312#ifdef __cplusplus
5313extern "C" {
5314#if 0
5315} /* c-mode */
5316#endif
5317#endif
5318
5319#if 0
5320#define SWIGRUNTIME_DEBUG
5321#endif
5322
5323
5324SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
5325SWIG_InitializeModule(void *clientdata) {
5326 size_t i;
5327 swig_module_info *module_head, *iter;
5328 int init;
5329
5330 /* check to see if the circular list has been setup, if not, set it up */
5331 if (swig_module.next==0) {
5332 /* Initialize the swig_module */
5333 swig_module.type_initial = swig_type_initial;
5334 swig_module.cast_initial = swig_cast_initial;
5335 swig_module.next = &swig_module;
5336 init = 1;
5337 } else {
5338 init = 0;
5339 }
5340
5341 /* Try and load any already created modules */
5342 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
5343 if (!module_head) {
5344 /* This is the first module loaded for this interpreter */
5345 /* so set the swig module into the interpreter */
5346 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
5347 } else {
5348 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5349 iter=module_head;
5350 do {
5351 if (iter==&swig_module) {
5352 /* Our module is already in the list, so there's nothing more to do. */
5353 return;
5354 }
5355 iter=iter->next;
5356 } while (iter!= module_head);
5357
5358 /* otherwise we must add our module into the list */
5359 swig_module.next = module_head->next;
5360 module_head->next = &swig_module;
5361 }
5362
5363 /* When multiple interpreters are used, a module could have already been initialized in
5364 a different interpreter, but not yet have a pointer in this interpreter.
5365 In this case, we do not want to continue adding types... everything should be
5366 set up already */
5367 if (init == 0) return;
5368
5369 /* Now work on filling in swig_module.types */
5370#ifdef SWIGRUNTIME_DEBUG
5371 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
5372#endif
5373 for (i = 0; i < swig_module.size; ++i) {
5374 swig_type_info *type = 0;
5375 swig_type_info *ret;
5376 swig_cast_info *cast;
5377
5378#ifdef SWIGRUNTIME_DEBUG
5379 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5380#endif
5381
5382 /* if there is another module already loaded */
5383 if (swig_module.next != &swig_module) {
5384 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
5385 }
5386 if (type) {
5387 /* Overwrite clientdata field */
5388#ifdef SWIGRUNTIME_DEBUG
5389 printf("SWIG_InitializeModule: found type %s\n", type->name);
5390#endif
5391 if (swig_module.type_initial[i]->clientdata) {
5392 type->clientdata = swig_module.type_initial[i]->clientdata;
5393#ifdef SWIGRUNTIME_DEBUG
5394 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5395#endif
5396 }
5397 } else {
5398 type = swig_module.type_initial[i];
5399 }
5400
5401 /* Insert casting types */
5402 cast = swig_module.cast_initial[i];
5403 while (cast->type) {
5404 /* Don't need to add information already in the list */
5405 ret = 0;
5406#ifdef SWIGRUNTIME_DEBUG
5407 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5408#endif
5409 if (swig_module.next != &swig_module) {
5410 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5411#ifdef SWIGRUNTIME_DEBUG
5412 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5413#endif
5414 }
5415 if (ret) {
5416 if (type == swig_module.type_initial[i]) {
5417#ifdef SWIGRUNTIME_DEBUG
5418 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5419#endif
5420 cast->type = ret;
5421 ret = 0;
5422 } else {
5423 /* Check for casting already in the list */
5424 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5425#ifdef SWIGRUNTIME_DEBUG
5426 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5427#endif
5428 if (!ocast) ret = 0;
5429 }
5430 }
5431
5432 if (!ret) {
5433#ifdef SWIGRUNTIME_DEBUG
5434 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5435#endif
5436 if (type->cast) {
5437 type->cast->prev = cast;
5438 cast->next = type->cast;
5439 }
5440 type->cast = cast;
5441 }
5442 cast++;
5443 }
5444 /* Set entry in modules->types array equal to the type */
5445 swig_module.types[i] = type;
5446 }
5447 swig_module.types[i] = 0;
5448
5449#ifdef SWIGRUNTIME_DEBUG
5450 printf("**** SWIG_InitializeModule: Cast List ******\n");
5451 for (i = 0; i < swig_module.size; ++i) {
5452 int j = 0;
5453 swig_cast_info *cast = swig_module.cast_initial[i];
5454 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5455 while (cast->type) {
5456 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5457 cast++;
5458 ++j;
5459 }
5460 printf("---- Total casts: %d\n",j);
5461 }
5462 printf("**** SWIG_InitializeModule: Cast List ******\n");
5463#endif
5464}
5465
5466/* This function will propagate the clientdata field of type to
5467* any new swig_type_info structures that have been added into the list
5468* of equivalent types. It is like calling
5469* SWIG_TypeClientData(type, clientdata) a second time.
5470*/
5471SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
5472SWIG_PropagateClientData(void) {
5473 size_t i;
5474 swig_cast_info *equiv;
5475 static int init_run = 0;
5476
5477 if (init_run) return;
5478 init_run = 1;
5479
5480 for (i = 0; i < swig_module.size; i++) {
5481 if (swig_module.types[i]->clientdata) {
5482 equiv = swig_module.types[i]->cast;
5483 while (equiv) {
5484 if (!equiv->converter) {
5485 if (equiv->type && !equiv->type->clientdata)
5486 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5487 }
5488 equiv = equiv->next;
5489 }
5490 }
5491 }
5492}
5493
5494#ifdef __cplusplus
5495#if 0
5496{
5497 /* c-mode */
5498#endif
5499}
5500#endif
5501
5502
5503
5504#ifdef __cplusplus
5505extern "C" {
5506#endif
5507
5508 /* Python-specific SWIG API */
5509#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
5510#define SWIG_addvarlink(p, name, get_attr, set_attr)SWIG_Python_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5511#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5512
5513 /* -----------------------------------------------------------------------------
5514 * global variable support code.
5515 * ----------------------------------------------------------------------------- */
5516
5517 typedef struct swig_globalvar {
5518 char *name; /* Name of global variable */
5519 PyObject *(*get_attr)(void); /* Return the current value */
5520 int (*set_attr)(PyObject *); /* Set the value */
5521 struct swig_globalvar *next;
5522 } swig_globalvar;
5523
5524 typedef struct swig_varlinkobject {
5525 PyObject_HEADPyObject ob_base;
5526 swig_globalvar *vars;
5527 } swig_varlinkobject;
5528
5529 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5530 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)v __attribute__ ((__unused__))) {
5531#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5532 return PyUnicode_InternFromString("<Swig global variables>");
5533#else
5534 return PyString_FromString("<Swig global variables>")PyUnicode_FromString("<Swig global variables>");
5535#endif
5536 }
5537
5538 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5539 swig_varlink_str(swig_varlinkobject *v) {
5540#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5541 PyObject *str = PyUnicode_InternFromString("(");
5542 PyObject *tail;
5543 PyObject *joined;
5544 swig_globalvar *var;
5545 for (var = v->vars; var; var=var->next) {
5546 tail = PyUnicode_FromString(var->name);
5547 joined = PyUnicode_Concat(str, tail);
5548 Py_DecRef(str);
5549 Py_DecRef(tail);
5550 str = joined;
5551 if (var->next) {
5552 tail = PyUnicode_InternFromString(", ");
5553 joined = PyUnicode_Concat(str, tail);
5554 Py_DecRef(str);
5555 Py_DecRef(tail);
5556 str = joined;
5557 }
5558 }
5559 tail = PyUnicode_InternFromString(")");
5560 joined = PyUnicode_Concat(str, tail);
5561 Py_DecRef(str);
5562 Py_DecRef(tail);
5563 str = joined;
5564#else
5565 PyObject *str = PyString_FromString("(")PyUnicode_FromString("(");
5566 swig_globalvar *var;
5567 for (var = v->vars; var; var=var->next) {
5568 PyString_ConcatAndDel(&str,PyString_FromString(var->name)PyUnicode_FromString(var->name));
5569 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")PyUnicode_FromString(", "));
5570 }
5571 PyString_ConcatAndDel(&str,PyString_FromString(")")PyUnicode_FromString(")"));
5572#endif
5573 return str;
5574 }
5575
5576 SWIGINTERNstatic __attribute__ ((__unused__)) int
5577 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)flags __attribute__ ((__unused__))) {
5578 char *tmp;
5579 PyObject *str = swig_varlink_str(v);
5580 fprintf(fp,"Swig global variables ");
5581 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
5582 SWIG_Python_str_DelForPy3(tmp)free( (void*) (tmp) );
5583 Py_DECREF(str)do { PyObject *_py_decref_tmp = (PyObject *)(str); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
5584 return 0;
5585 }
5586
5587 SWIGINTERNstatic __attribute__ ((__unused__)) void
5588 swig_varlink_dealloc(swig_varlinkobject *v) {
5589 swig_globalvar *var = v->vars;
5590 while (var) {
5591 swig_globalvar *n = var->next;
5592 free(var->name);
5593 free(var);
5594 var = n;
5595 }
5596 }
5597
5598 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5599 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
5600 PyObject *res = NULL((void*)0);
5601 swig_globalvar *var = v->vars;
5602 while (var) {
5603 if (strcmp(var->name,n)__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(var->name) && __builtin_constant_p (n) &&
(__s1_len = strlen (var->name), __s2_len = strlen (n), (!
((size_t)(const void *)((var->name) + 1) - (size_t)(const void
*)(var->name) == 1) || __s1_len >= 4) && (!((size_t
)(const void *)((n) + 1) - (size_t)(const void *)(n) == 1) ||
__s2_len >= 4)) ? __builtin_strcmp (var->name, n) : (__builtin_constant_p
(var->name) && ((size_t)(const void *)((var->name
) + 1) - (size_t)(const void *)(var->name) == 1) &&
(__s1_len = strlen (var->name), __s1_len < 4) ? (__builtin_constant_p
(n) && ((size_t)(const void *)((n) + 1) - (size_t)(const
void *)(n) == 1) ? __builtin_strcmp (var->name, n) : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (n); int __result = (((const unsigned char *) (const
char *) (var->name))[0] - __s2[0]); if (__s1_len > 0 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (var->name))[1] - __s2[1]); if (__s1_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (var->name))[2] - __s2[2]); if (__s1_len > 2 &&
__result == 0) __result = (((const unsigned char *) (const char
*) (var->name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
(n) && ((size_t)(const void *)((n) + 1) - (size_t)(const
void *)(n) == 1) && (__s2_len = strlen (n), __s2_len
< 4) ? (__builtin_constant_p (var->name) && ((
size_t)(const void *)((var->name) + 1) - (size_t)(const void
*)(var->name) == 1) ? __builtin_strcmp (var->name, n) :
-(__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) (var->name); int __result = (((const
unsigned char *) (const char *) (n))[0] - __s2[0]); if (__s2_len
> 0 && __result == 0) { __result = (((const unsigned
char *) (const char *) (n))[1] - __s2[1]); if (__s2_len >
1 && __result == 0) { __result = (((const unsigned char
*) (const char *) (n))[2] - __s2[2]); if (__s2_len > 2 &&
__result == 0) __result = (((const unsigned char *) (const char
*) (n))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp
(var->name, n)))); })
== 0) {
5604 res = (*var->get_attr)();
5605 break;
5606 }
5607 var = var->next;
5608 }
5609 if (res == NULL((void*)0) && !PyErr_Occurred()) {
5610 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
5611 }
5612 return res;
5613 }
5614
5615 SWIGINTERNstatic __attribute__ ((__unused__)) int
5616 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
5617 int res = 1;
5618 swig_globalvar *var = v->vars;
5619 while (var) {
5620 if (strcmp(var->name,n)__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p
(var->name) && __builtin_constant_p (n) &&
(__s1_len = strlen (var->name), __s2_len = strlen (n), (!
((size_t)(const void *)((var->name) + 1) - (size_t)(const void
*)(var->name) == 1) || __s1_len >= 4) && (!((size_t
)(const void *)((n) + 1) - (size_t)(const void *)(n) == 1) ||
__s2_len >= 4)) ? __builtin_strcmp (var->name, n) : (__builtin_constant_p
(var->name) && ((size_t)(const void *)((var->name
) + 1) - (size_t)(const void *)(var->name) == 1) &&
(__s1_len = strlen (var->name), __s1_len < 4) ? (__builtin_constant_p
(n) && ((size_t)(const void *)((n) + 1) - (size_t)(const
void *)(n) == 1) ? __builtin_strcmp (var->name, n) : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (n); int __result = (((const unsigned char *) (const
char *) (var->name))[0] - __s2[0]); if (__s1_len > 0 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (var->name))[1] - __s2[1]); if (__s1_len > 1 &&
__result == 0) { __result = (((const unsigned char *) (const
char *) (var->name))[2] - __s2[2]); if (__s1_len > 2 &&
__result == 0) __result = (((const unsigned char *) (const char
*) (var->name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p
(n) && ((size_t)(const void *)((n) + 1) - (size_t)(const
void *)(n) == 1) && (__s2_len = strlen (n), __s2_len
< 4) ? (__builtin_constant_p (var->name) && ((
size_t)(const void *)((var->name) + 1) - (size_t)(const void
*)(var->name) == 1) ? __builtin_strcmp (var->name, n) :
-(__extension__ ({ const unsigned char *__s2 = (const unsigned
char *) (const char *) (var->name); int __result = (((const
unsigned char *) (const char *) (n))[0] - __s2[0]); if (__s2_len
> 0 && __result == 0) { __result = (((const unsigned
char *) (const char *) (n))[1] - __s2[1]); if (__s2_len >
1 && __result == 0) { __result = (((const unsigned char
*) (const char *) (n))[2] - __s2[2]); if (__s2_len > 2 &&
__result == 0) __result = (((const unsigned char *) (const char
*) (n))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp
(var->name, n)))); })
== 0) {
5621 res = (*var->set_attr)(p);
5622 break;
5623 }
5624 var = var->next;
5625 }
5626 if (res == 1 && !PyErr_Occurred()) {
5627 PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
5628 }
5629 return res;
5630 }
5631
5632 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
5633 swig_varlink_type(void) {
5634 static char varlink__doc__[] = "Swig var link object";
5635 static PyTypeObject varlink_type;
5636 static int type_init = 0;
5637 if (!type_init) {
5638 const PyTypeObject tmp = {
5639#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5640 PyVarObject_HEAD_INIT(NULL, 0){ { 1, ((void*)0) }, 0 },
5641#else
5642 PyObject_HEAD_INIT(NULL){ 1, ((void*)0) },
5643 0, /* ob_size */
5644#endif
5645 (char *)"swigvarlink", /* tp_name */
5646 sizeof(swig_varlinkobject), /* tp_basicsize */
5647 0, /* tp_itemsize */
5648 (destructor) swig_varlink_dealloc, /* tp_dealloc */
5649 (printfunc) swig_varlink_print, /* tp_print */
5650 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
5651 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
5652 0, /* tp_compare */
5653 (reprfunc) swig_varlink_repr, /* tp_repr */
5654 0, /* tp_as_number */
5655 0, /* tp_as_sequence */
5656 0, /* tp_as_mapping */
5657 0, /* tp_hash */
5658 0, /* tp_call */
5659 (reprfunc) swig_varlink_str, /* tp_str */
5660 0, /* tp_getattro */
5661 0, /* tp_setattro */
5662 0, /* tp_as_buffer */
5663 0, /* tp_flags */
5664 varlink__doc__, /* tp_doc */
5665 0, /* tp_traverse */
5666 0, /* tp_clear */
5667 0, /* tp_richcompare */
5668 0, /* tp_weaklistoffset */
5669#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
5670 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5671#endif
5672#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
5673 0, /* tp_del */
5674#endif
5675#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
5676 0, /* tp_version_tag */
5677#endif
5678#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
5679 0, /* tp_finalize */
5680#endif
5681#ifdef COUNT_ALLOCS
5682 0, /* tp_allocs */
5683 0, /* tp_frees */
5684 0, /* tp_maxalloc */
5685#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
5686 0, /* tp_prev */
5687#endif
5688 0 /* tp_next */
5689#endif
5690 };
5691 varlink_type = tmp;
5692 type_init = 1;
5693#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
5694 varlink_type.ob_type = &PyType_Type;
5695#else
5696 if (PyType_Ready(&varlink_type) < 0)
5697 return NULL((void*)0);
5698#endif
5699 }
5700 return &varlink_type;
5701 }
5702
5703 /* Create a variable linking object for use later */
5704 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5705 SWIG_Python_newvarlink(void) {
5706 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type())( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type
())) )
;
5707 if (result) {
5708 result->vars = 0;
5709 }
5710 return ((PyObject*) result);
5711 }
5712
5713 SWIGINTERNstatic __attribute__ ((__unused__)) void
5714 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
5715 swig_varlinkobject *v = (swig_varlinkobject *) p;
5716 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
5717 if (gv) {
5718 size_t size = strlen(name)+1;
5719 gv->name = (char *)malloc(size);
5720 if (gv->name) {
5721 strncpy(gv->name,name,size)__builtin_strncpy (gv->name, name, size);
5722 gv->get_attr = get_attr;
5723 gv->set_attr = set_attr;
5724 gv->next = v->vars;
5725 }
5726 }
5727 v->vars = gv;
5728 }
5729
5730 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5731 SWIG_globals(void) {
5732 static PyObject *_SWIG_globals = 0;
5733 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
5734 return _SWIG_globals;
5735 }
5736
5737 /* -----------------------------------------------------------------------------
5738 * constants/methods manipulation
5739 * ----------------------------------------------------------------------------- */
5740
5741 /* Install Constants */
5742 SWIGINTERNstatic __attribute__ ((__unused__)) void
5743 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
5744 PyObject *obj = 0;
5745 size_t i;
5746 for (i = 0; constants[i].type; ++i) {
5747 switch(constants[i].type) {
5748 case SWIG_PY_POINTER4:
5749 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(((void*)0), constants[i].pvalue, *(
constants[i]).ptype, 0)
;
5750 break;
5751 case SWIG_PY_BINARY5:
5752 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
5753 break;
5754 default:
5755 obj = 0;
5756 break;
5757 }
5758 if (obj) {
5759 PyDict_SetItemString(d, constants[i].name, obj);
5760 Py_DECREF(obj)do { PyObject *_py_decref_tmp = (PyObject *)(obj); if ( --(_py_decref_tmp
)->ob_refcnt != 0) ; else ( (*(((PyObject*)(_py_decref_tmp
))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))
); } while (0)
;
5761 }
5762 }
5763 }
5764
5765 /* -----------------------------------------------------------------------------*/
5766 /* Fix SwigMethods to carry the callback ptrs when needed */
5767 /* -----------------------------------------------------------------------------*/
5768
5769 SWIGINTERNstatic __attribute__ ((__unused__)) void
5770 SWIG_Python_FixMethods(PyMethodDef *methods,
5771 swig_const_info *const_table,
5772 swig_type_info **types,
5773 swig_type_info **types_initial) {
5774 size_t i;
5775 for (i = 0; methods[i].ml_name; ++i) {
5776 const char *c = methods[i].ml_doc;
5777 if (!c) continue;
5778 c = strstr(c, "swig_ptr: ");
5779 if (c) {
5780 int j;
5781 swig_const_info *ci = 0;
5782 const char *name = c + 10;
5783 for (j = 0; const_table[j].type; ++j) {
5784 if (strncmp(const_table[j].name, name,(__extension__ (__builtin_constant_p (strlen(const_table[j].name
)) && ((__builtin_constant_p (const_table[j].name) &&
strlen (const_table[j].name) < ((size_t) (strlen(const_table
[j].name)))) || (__builtin_constant_p (name) && strlen
(name) < ((size_t) (strlen(const_table[j].name))))) ? __extension__
({ size_t __s1_len, __s2_len; (__builtin_constant_p (const_table
[j].name) && __builtin_constant_p (name) && (
__s1_len = strlen (const_table[j].name), __s2_len = strlen (name
), (!((size_t)(const void *)((const_table[j].name) + 1) - (size_t
)(const void *)(const_table[j].name) == 1) || __s1_len >= 4
) && (!((size_t)(const void *)((name) + 1) - (size_t)
(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp
(const_table[j].name, name) : (__builtin_constant_p (const_table
[j].name) && ((size_t)(const void *)((const_table[j].
name) + 1) - (size_t)(const void *)(const_table[j].name) == 1
) && (__s1_len = strlen (const_table[j].name), __s1_len
< 4) ? (__builtin_constant_p (name) && ((size_t)(
const void *)((name) + 1) - (size_t)(const void *)(name) == 1
) ? __builtin_strcmp (const_table[j].name, name) : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (name); int __result = (((const unsigned char *) (const
char *) (const_table[j].name))[0] - __s2[0]); if (__s1_len >
0 && __result == 0) { __result = (((const unsigned char
*) (const char *) (const_table[j].name))[1] - __s2[1]); if (
__s1_len > 1 && __result == 0) { __result = (((const
unsigned char *) (const char *) (const_table[j].name))[2] - __s2
[2]); if (__s1_len > 2 && __result == 0) __result =
(((const unsigned char *) (const char *) (const_table[j].name
))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
name) && ((size_t)(const void *)((name) + 1) - (size_t
)(const void *)(name) == 1) && (__s2_len = strlen (name
), __s2_len < 4) ? (__builtin_constant_p (const_table[j].name
) && ((size_t)(const void *)((const_table[j].name) + 1
) - (size_t)(const void *)(const_table[j].name) == 1) ? __builtin_strcmp
(const_table[j].name, name) : -(__extension__ ({ const unsigned
char *__s2 = (const unsigned char *) (const char *) (const_table
[j].name); int __result = (((const unsigned char *) (const char
*) (name))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
name))[1] - __s2[1]); if (__s2_len > 1 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
name))[2] - __s2[2]); if (__s2_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (name
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (const_table
[j].name, name)))); }) : strncmp (const_table[j].name, name, strlen
(const_table[j].name))))
5785 strlen(const_table[j].name))(__extension__ (__builtin_constant_p (strlen(const_table[j].name
)) && ((__builtin_constant_p (const_table[j].name) &&
strlen (const_table[j].name) < ((size_t) (strlen(const_table
[j].name)))) || (__builtin_constant_p (name) && strlen
(name) < ((size_t) (strlen(const_table[j].name))))) ? __extension__
({ size_t __s1_len, __s2_len; (__builtin_constant_p (const_table
[j].name) && __builtin_constant_p (name) && (
__s1_len = strlen (const_table[j].name), __s2_len = strlen (name
), (!((size_t)(const void *)((const_table[j].name) + 1) - (size_t
)(const void *)(const_table[j].name) == 1) || __s1_len >= 4
) && (!((size_t)(const void *)((name) + 1) - (size_t)
(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp
(const_table[j].name, name) : (__builtin_constant_p (const_table
[j].name) && ((size_t)(const void *)((const_table[j].
name) + 1) - (size_t)(const void *)(const_table[j].name) == 1
) && (__s1_len = strlen (const_table[j].name), __s1_len
< 4) ? (__builtin_constant_p (name) && ((size_t)(
const void *)((name) + 1) - (size_t)(const void *)(name) == 1
) ? __builtin_strcmp (const_table[j].name, name) : (__extension__
({ const unsigned char *__s2 = (const unsigned char *) (const
char *) (name); int __result = (((const unsigned char *) (const
char *) (const_table[j].name))[0] - __s2[0]); if (__s1_len >
0 && __result == 0) { __result = (((const unsigned char
*) (const char *) (const_table[j].name))[1] - __s2[1]); if (
__s1_len > 1 && __result == 0) { __result = (((const
unsigned char *) (const char *) (const_table[j].name))[2] - __s2
[2]); if (__s1_len > 2 && __result == 0) __result =
(((const unsigned char *) (const char *) (const_table[j].name
))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
name) && ((size_t)(const void *)((name) + 1) - (size_t
)(const void *)(name) == 1) && (__s2_len = strlen (name
), __s2_len < 4) ? (__builtin_constant_p (const_table[j].name
) && ((size_t)(const void *)((const_table[j].name) + 1
) - (size_t)(const void *)(const_table[j].name) == 1) ? __builtin_strcmp
(const_table[j].name, name) : -(__extension__ ({ const unsigned
char *__s2 = (const unsigned char *) (const char *) (const_table
[j].name); int __result = (((const unsigned char *) (const char
*) (name))[0] - __s2[0]); if (__s2_len > 0 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
name))[1] - __s2[1]); if (__s2_len > 1 && __result
== 0) { __result = (((const unsigned char *) (const char *) (
name))[2] - __s2[2]); if (__s2_len > 2 && __result
== 0) __result = (((const unsigned char *) (const char *) (name
))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (const_table
[j].name, name)))); }) : strncmp (const_table[j].name, name, strlen
(const_table[j].name))))
== 0) {
5786 ci = &(const_table[j]);
5787 break;
5788 }
5789 }
5790 if (ci) {
5791 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
5792 if (ptr) {
5793 size_t shift = (ci->ptype) - types;
5794 swig_type_info *ty = types_initial[shift];
5795 size_t ldoc = (c - methods[i].ml_doc);
5796 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5797 char *ndoc = (char*)malloc(ldoc + lptr + 10);
5798 if (ndoc) {
5799 char *buff = ndoc;
5800 strncpy(buff, methods[i].ml_doc, ldoc)__builtin_strncpy (buff, methods[i].ml_doc, ldoc);
5801 buff += ldoc;
5802 strncpy(buff, "swig_ptr: ", 10)__builtin_strncpy (buff, "swig_ptr: ", 10);
5803 buff += 10;
5804 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5805 methods[i].ml_doc = ndoc;
5806 }
5807 }
5808 }
5809 }
5810 }
5811 }
5812
5813#ifdef __cplusplus
5814}
5815#endif
5816
5817/* -----------------------------------------------------------------------------*
5818 * Partial Init method
5819 * -----------------------------------------------------------------------------*/
5820
5821#ifdef __cplusplus
5822extern "C"
5823#endif
5824
5825SWIGEXPORT__attribute__ ((visibility("default")))
5826#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5827PyObject*
5828#else
5829void
5830#endif
5831SWIG_initPyInit__ddc_swig3(void) {
5832 PyObject *m, *d, *md;
5833#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5834 static struct PyModuleDef SWIG_module = {
5835# if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
5836 PyModuleDef_HEAD_INIT{ { 1, ((void*)0) }, ((void*)0), 0, ((void*)0), },
5837# else
5838 {
5839 PyObject_HEAD_INIT(NULL){ 1, ((void*)0) },
5840 NULL((void*)0), /* m_init */
5841 0, /* m_index */
5842 NULL((void*)0), /* m_copy */
5843 },
5844# endif
5845 (char *) SWIG_name"_ddc_swig3",
5846 NULL((void*)0),
5847 -1,
5848 SwigMethods,
5849 NULL((void*)0),
5850 NULL((void*)0),
5851 NULL((void*)0),
5852 NULL((void*)0)
5853 };
5854#endif
5855
5856#if defined(SWIGPYTHON_BUILTIN)
5857 static SwigPyClientData SwigPyObject_clientdata = {
5858 0, 0, 0, 0, 0, 0, 0
5859 };
5860 static PyGetSetDef this_getset_def = {
5861 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL((void*)0), NULL((void*)0), NULL((void*)0)
5862 };
5863 static SwigPyGetSet thisown_getset_closure = {
5864 (PyCFunction) SwigPyObject_own,
5865 (PyCFunction) SwigPyObject_own
5866 };
5867 static PyGetSetDef thisown_getset_def = {
5868 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL((void*)0), &thisown_getset_closure
5869 };
5870 PyTypeObject *builtin_pytype;
5871 int builtin_base_count;
5872 swig_type_info *builtin_basetype;
5873 PyObject *tuple;
5874 PyGetSetDescrObject *static_getset;
5875 PyTypeObject *metatype;
5876 PyTypeObject *swigpyobject;
5877 SwigPyClientData *cd;
5878 PyObject *public_interface, *public_symbol;
5879 PyObject *this_descr;
5880 PyObject *thisown_descr;
5881 PyObject *self = 0;
5882 int i;
5883
5884 (void)builtin_pytype;
5885 (void)builtin_base_count;
5886 (void)builtin_basetype;
5887 (void)tuple;
5888 (void)static_getset;
5889 (void)self;
5890
5891 /* Metaclass is used to implement static member variables */
5892 metatype = SwigPyObjectType();
5893 assert(metatype)((metatype) ? (void) (0) : __assert_fail ("metatype", "ddc_swig3_wrap.c"
, 5893, __PRETTY_FUNCTION__))
;
5894#endif
5895
5896 /* Fix SwigMethods to carry the callback ptrs when needed */
5897 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
5898
5899#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5900 m = PyModule_Create(&SWIG_module)PyModule_Create2(&SWIG_module, 1013);
5901#else
5902 m = Py_InitModule((char *) SWIG_name"_ddc_swig3", SwigMethods);
5903#endif
5904
5905 md = d = PyModule_GetDict(m);
5906 (void)md;
5907
5908 SWIG_InitializeModule(0);
5909
5910#ifdef SWIGPYTHON_BUILTIN
5911 swigpyobject = SwigPyObject_TypeOnce();
5912
5913 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
5914 assert(SwigPyObject_stype)((SwigPyObject_stype) ? (void) (0) : __assert_fail ("SwigPyObject_stype"
, "ddc_swig3_wrap.c", 5914, __PRETTY_FUNCTION__))
;
5915 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
5916 if (!cd) {
5917 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
5918 SwigPyObject_clientdata.pytype = swigpyobject;
5919 } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
5920 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
5921# if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5922 return NULL((void*)0);
5923# else
5924 return;
5925# endif
5926 }
5927
5928 /* All objects have a 'this' attribute */
5929 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
5930 (void)this_descr;
5931
5932 /* All objects have a 'thisown' attribute */
5933 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
5934 (void)thisown_descr;
5935
5936 public_interface = PyList_New(0);
5937 public_symbol = 0;
5938 (void)public_symbol;
5939
5940 PyDict_SetItemString(md, "__all__", public_interface);
5941 Py_DECREF(public_interface)do { PyObject *_py_decref_tmp = (PyObject *)(public_interface
); if ( --(_py_decref_tmp)->ob_refcnt != 0) ; else ( (*(((
PyObject*)(_py_decref_tmp))->ob_type)->tp_dealloc)((PyObject
*)(_py_decref_tmp))); } while (0)
;
5942 for (i = 0; SwigMethods[i].ml_name != NULL((void*)0); ++i)
5943 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
5944 for (i = 0; swig_const_table[i].name != 0; ++i)
5945 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
5946#endif
5947
5948 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
5949
5950
5951 ddcs_init();
5952
5953 SWIG_Python_SetConstant(d, "DDCS_HAS_ADL",SWIG_From_int((int)(DDCA_HAS_ADL)));
5954 SWIG_Python_SetConstant(d, "DDCS_HAS_USB",SWIG_From_int((int)(DDCA_HAS_USB)));
5955 SWIG_Python_SetConstant(d, "DDCS_HAS_FAILSIM",SWIG_From_int((int)(DDCA_HAS_FAILSIM)));
5956 SWIG_Python_SetConstant(d, "DDCS_WRITE_ONLY_TRIES",SWIG_From_int((int)(DDCA_WRITE_ONLY_TRIES)));
5957 SWIG_Python_SetConstant(d, "DDCS_WRITE_READ_TRIES",SWIG_From_int((int)(DDCA_WRITE_READ_TRIES)));
5958 SWIG_Python_SetConstant(d, "DDCS_MULTI_PART_TRIES",SWIG_From_int((int)(DDCA_MULTI_PART_TRIES)));
5959 SWIG_Python_SetConstant(d, "DDCS_OL_TERSE",SWIG_From_int((int)(DDCA_OL_TERSE)));
5960 SWIG_Python_SetConstant(d, "DDCS_OL_NORMAL",SWIG_From_int((int)(DDCA_OL_NORMAL)));
5961 SWIG_Python_SetConstant(d, "DDCS_OL_VERBOSE",SWIG_From_int((int)(DDCA_OL_VERBOSE)));
5962#if PY_VERSION_HEX((3 << 24) | (5 << 16) | (3 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5963 return m;
5964#else
5965 return;
5966#endif
5967}
5968