botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
BotSenseCore_wrap.c
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.8
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 /*! \file
12  * \brief Swig generated core wrapper c file.
13  */
14 
15 
16 
17 #ifndef SWIGPYTHON
18 #define SWIGPYTHON
19 #endif
20 
21 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
22 
23 /* -----------------------------------------------------------------------------
24  * This section contains generic SWIG labels for method/variable
25  * declarations/attributes, and other compiler dependent labels.
26  * ----------------------------------------------------------------------------- */
27 
28 /* template workaround for compilers that cannot correctly implement the C++ standard */
29 #ifndef SWIGTEMPLATEDISAMBIGUATOR
30 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
31 # define SWIGTEMPLATEDISAMBIGUATOR template
32 # elif defined(__HP_aCC)
33 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
34 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
35 # define SWIGTEMPLATEDISAMBIGUATOR template
36 # else
37 # define SWIGTEMPLATEDISAMBIGUATOR
38 # endif
39 #endif
40 
41 /* inline attribute */
42 #ifndef SWIGINLINE
43 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
44 # define SWIGINLINE inline
45 # else
46 # define SWIGINLINE
47 # endif
48 #endif
49 
50 /* attribute recognised by some compilers to avoid 'unused' warnings */
51 #ifndef SWIGUNUSED
52 # if defined(__GNUC__)
53 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
54 # define SWIGUNUSED __attribute__ ((__unused__))
55 # else
56 # define SWIGUNUSED
57 # endif
58 # elif defined(__ICC)
59 # define SWIGUNUSED __attribute__ ((__unused__))
60 # else
61 # define SWIGUNUSED
62 # endif
63 #endif
64 
65 #ifndef SWIG_MSC_UNSUPPRESS_4505
66 # if defined(_MSC_VER)
67 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
68 # endif
69 #endif
70 
71 #ifndef SWIGUNUSEDPARM
72 # ifdef __cplusplus
73 # define SWIGUNUSEDPARM(p)
74 # else
75 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
76 # endif
77 #endif
78 
79 /* internal SWIG method */
80 #ifndef SWIGINTERN
81 # define SWIGINTERN static SWIGUNUSED
82 #endif
83 
84 /* internal inline SWIG method */
85 #ifndef SWIGINTERNINLINE
86 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
87 #endif
88 
89 /* exporting methods */
90 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
91 # ifndef GCC_HASCLASSVISIBILITY
92 # define GCC_HASCLASSVISIBILITY
93 # endif
94 #endif
95 
96 #ifndef SWIGEXPORT
97 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
98 # if defined(STATIC_LINKED)
99 # define SWIGEXPORT
100 # else
101 # define SWIGEXPORT __declspec(dllexport)
102 # endif
103 # else
104 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
105 # define SWIGEXPORT __attribute__ ((visibility("default")))
106 # else
107 # define SWIGEXPORT
108 # endif
109 # endif
110 #endif
111 
112 /* calling conventions for Windows */
113 #ifndef SWIGSTDCALL
114 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
115 # define SWIGSTDCALL __stdcall
116 # else
117 # define SWIGSTDCALL
118 # endif
119 #endif
120 
121 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
122 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
123 # define _CRT_SECURE_NO_DEPRECATE
124 #endif
125 
126 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
127 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
128 # define _SCL_SECURE_NO_DEPRECATE
129 #endif
130 
131 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
132 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
133 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
134 #endif
135 
136 /* Intel's compiler complains if a variable which was never initialised is
137  * cast to void, which is a common idiom which we use to indicate that we
138  * are aware a variable isn't used. So we just silence that warning.
139  * See: https://github.com/swig/swig/issues/192 for more discussion.
140  */
141 #ifdef __INTEL_COMPILER
142 # pragma warning disable 592
143 #endif
144 
145 
146 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
147 /* Use debug wrappers with the Python release dll */
148 # undef _DEBUG
149 # include <Python.h>
150 # define _DEBUG
151 #else
152 # include <Python.h>
153 #endif
154 
155 /* -----------------------------------------------------------------------------
156  * swigrun.swg
157  *
158  * This file contains generic C API SWIG runtime support for pointer
159  * type checking.
160  * ----------------------------------------------------------------------------- */
161 
162 /* This should only be incremented when either the layout of swig_type_info changes,
163  or for whatever reason, the runtime changes incompatibly */
164 #define SWIG_RUNTIME_VERSION "4"
165 
166 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
167 #ifdef SWIG_TYPE_TABLE
168 # define SWIG_QUOTE_STRING(x) #x
169 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
170 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
171 #else
172 # define SWIG_TYPE_TABLE_NAME
173 #endif
174 
175 /*
176  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
177  creating a static or dynamic library from the SWIG runtime code.
178  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
179 
180  But only do this if strictly necessary, ie, if you have problems
181  with your compiler or suchlike.
182 */
183 
184 #ifndef SWIGRUNTIME
185 # define SWIGRUNTIME SWIGINTERN
186 #endif
187 
188 #ifndef SWIGRUNTIMEINLINE
189 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
190 #endif
191 
192 /* Generic buffer size */
193 #ifndef SWIG_BUFFER_SIZE
194 # define SWIG_BUFFER_SIZE 1024
195 #endif
196 
197 /* Flags for pointer conversions */
198 #define SWIG_POINTER_DISOWN 0x1
199 #define SWIG_CAST_NEW_MEMORY 0x2
200 
201 /* Flags for new pointer objects */
202 #define SWIG_POINTER_OWN 0x1
203 
204 
205 /*
206  Flags/methods for returning states.
207 
208  The SWIG conversion methods, as ConvertPtr, return an integer
209  that tells if the conversion was successful or not. And if not,
210  an error code can be returned (see swigerrors.swg for the codes).
211 
212  Use the following macros/flags to set or process the returning
213  states.
214 
215  In old versions of SWIG, code such as the following was usually written:
216 
217  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
218  // success code
219  } else {
220  //fail code
221  }
222 
223  Now you can be more explicit:
224 
225  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
226  if (SWIG_IsOK(res)) {
227  // success code
228  } else {
229  // fail code
230  }
231 
232  which is the same really, but now you can also do
233 
234  Type *ptr;
235  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
236  if (SWIG_IsOK(res)) {
237  // success code
238  if (SWIG_IsNewObj(res) {
239  ...
240  delete *ptr;
241  } else {
242  ...
243  }
244  } else {
245  // fail code
246  }
247 
248  I.e., now SWIG_ConvertPtr can return new objects and you can
249  identify the case and take care of the deallocation. Of course that
250  also requires SWIG_ConvertPtr to return new result values, such as
251 
252  int SWIG_ConvertPtr(obj, ptr,...) {
253  if (<obj is ok>) {
254  if (<need new object>) {
255  *ptr = <ptr to new allocated object>;
256  return SWIG_NEWOBJ;
257  } else {
258  *ptr = <ptr to old object>;
259  return SWIG_OLDOBJ;
260  }
261  } else {
262  return SWIG_BADOBJ;
263  }
264  }
265 
266  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
267  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
268  SWIG errors code.
269 
270  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
271  allows to return the 'cast rank', for example, if you have this
272 
273  int food(double)
274  int fooi(int);
275 
276  and you call
277 
278  food(1) // cast rank '1' (1 -> 1.0)
279  fooi(1) // cast rank '0'
280 
281  just use the SWIG_AddCast()/SWIG_CheckState()
282 */
283 
284 #define SWIG_OK (0)
285 #define SWIG_ERROR (-1)
286 #define SWIG_IsOK(r) (r >= 0)
287 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
288 
289 /* The CastRankLimit says how many bits are used for the cast rank */
290 #define SWIG_CASTRANKLIMIT (1 << 8)
291 /* The NewMask denotes the object was created (using new/malloc) */
292 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
293 /* The TmpMask is for in/out typemaps that use temporal objects */
294 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
295 /* Simple returning values */
296 #define SWIG_BADOBJ (SWIG_ERROR)
297 #define SWIG_OLDOBJ (SWIG_OK)
298 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
299 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
300 /* Check, add and del mask methods */
301 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
302 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
303 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
304 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
305 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
306 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
307 
308 /* Cast-Rank Mode */
309 #if defined(SWIG_CASTRANK_MODE)
310 # ifndef SWIG_TypeRank
311 # define SWIG_TypeRank unsigned long
312 # endif
313 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
314 # define SWIG_MAXCASTRANK (2)
315 # endif
316 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
317 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
318 SWIGINTERNINLINE int SWIG_AddCast(int r) {
319  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
320 }
321 SWIGINTERNINLINE int SWIG_CheckState(int r) {
322  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
323 }
324 #else /* no cast-rank mode */
325 # define SWIG_AddCast(r) (r)
326 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
327 #endif
328 
329 
330 #include <string.h>
331 
332 #ifdef __cplusplus
333 extern "C" {
334 #endif
335 
336 typedef void *(*swig_converter_func)(void *, int *);
337 typedef struct swig_type_info *(*swig_dycast_func)(void **);
338 
339 /* Structure to store information on one type */
340 typedef struct swig_type_info {
341  const char *name; /* mangled name of this type */
342  const char *str; /* human readable name of this type */
343  swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
344  struct swig_cast_info *cast; /* linked list of types that can cast into this type */
345  void *clientdata; /* language specific type data */
346  int owndata; /* flag if the structure owns the clientdata */
348 
349 /* Structure to store a type and conversion function used for casting */
350 typedef struct swig_cast_info {
351  swig_type_info *type; /* pointer to type that is equivalent to this type */
352  swig_converter_func converter; /* function to cast the void pointers */
353  struct swig_cast_info *next; /* pointer to next cast in linked list */
354  struct swig_cast_info *prev; /* pointer to the previous cast */
356 
357 /* Structure used to store module information
358  * Each module generates one structure like this, and the runtime collects
359  * all of these structures and stores them in a circularly linked list.*/
360 typedef struct swig_module_info {
361  swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
362  size_t size; /* Number of types in this module */
363  struct swig_module_info *next; /* Pointer to next element in circularly linked list */
364  swig_type_info **type_initial; /* Array of initially generated type structures */
365  swig_cast_info **cast_initial; /* Array of initially generated casting structures */
366  void *clientdata; /* Language specific module data */
368 
369 /*
370  Compare two type names skipping the space characters, therefore
371  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
372 
373  Return 0 when the two name types are equivalent, as in
374  strncmp, but skipping ' '.
375 */
376 SWIGRUNTIME int
377 SWIG_TypeNameComp(const char *f1, const char *l1,
378  const char *f2, const char *l2) {
379  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
380  while ((*f1 == ' ') && (f1 != l1)) ++f1;
381  while ((*f2 == ' ') && (f2 != l2)) ++f2;
382  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
383  }
384  return (int)((l1 - f1) - (l2 - f2));
385 }
386 
387 /*
388  Check type equivalence in a name list like <name1>|<name2>|...
389  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
390 */
391 SWIGRUNTIME int
392 SWIG_TypeCmp(const char *nb, const char *tb) {
393  int equiv = 1;
394  const char* te = tb + strlen(tb);
395  const char* ne = nb;
396  while (equiv != 0 && *ne) {
397  for (nb = ne; *ne; ++ne) {
398  if (*ne == '|') break;
399  }
400  equiv = SWIG_TypeNameComp(nb, ne, tb, te);
401  if (*ne) ++ne;
402  }
403  return equiv;
404 }
405 
406 /*
407  Check type equivalence in a name list like <name1>|<name2>|...
408  Return 0 if not equal, 1 if equal
409 */
410 SWIGRUNTIME int
411 SWIG_TypeEquiv(const char *nb, const char *tb) {
412  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
413 }
414 
415 /*
416  Check the typename
417 */
418 SWIGRUNTIME swig_cast_info *
419 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
420  if (ty) {
421  swig_cast_info *iter = ty->cast;
422  while (iter) {
423  if (strcmp(iter->type->name, c) == 0) {
424  if (iter == ty->cast)
425  return iter;
426  /* Move iter to the top of the linked list */
427  iter->prev->next = iter->next;
428  if (iter->next)
429  iter->next->prev = iter->prev;
430  iter->next = ty->cast;
431  iter->prev = 0;
432  if (ty->cast) ty->cast->prev = iter;
433  ty->cast = iter;
434  return iter;
435  }
436  iter = iter->next;
437  }
438  }
439  return 0;
440 }
441 
442 /*
443  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
444 */
445 SWIGRUNTIME swig_cast_info *
446 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
447  if (ty) {
448  swig_cast_info *iter = ty->cast;
449  while (iter) {
450  if (iter->type == from) {
451  if (iter == ty->cast)
452  return iter;
453  /* Move iter to the top of the linked list */
454  iter->prev->next = iter->next;
455  if (iter->next)
456  iter->next->prev = iter->prev;
457  iter->next = ty->cast;
458  iter->prev = 0;
459  if (ty->cast) ty->cast->prev = iter;
460  ty->cast = iter;
461  return iter;
462  }
463  iter = iter->next;
464  }
465  }
466  return 0;
467 }
468 
469 /*
470  Cast a pointer up an inheritance hierarchy
471 */
472 SWIGRUNTIMEINLINE void *
473 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
474  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
475 }
476 
477 /*
478  Dynamic pointer casting. Down an inheritance hierarchy
479 */
480 SWIGRUNTIME swig_type_info *
481 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
482  swig_type_info *lastty = ty;
483  if (!ty || !ty->dcast) return ty;
484  while (ty && (ty->dcast)) {
485  ty = (*ty->dcast)(ptr);
486  if (ty) lastty = ty;
487  }
488  return lastty;
489 }
490 
491 /*
492  Return the name associated with this type
493 */
494 SWIGRUNTIMEINLINE const char *
495 SWIG_TypeName(const swig_type_info *ty) {
496  return ty->name;
497 }
498 
499 /*
500  Return the pretty name associated with this type,
501  that is an unmangled type name in a form presentable to the user.
502 */
503 SWIGRUNTIME const char *
504 SWIG_TypePrettyName(const swig_type_info *type) {
505  /* The "str" field contains the equivalent pretty names of the
506  type, separated by vertical-bar characters. We choose
507  to print the last name, as it is often (?) the most
508  specific. */
509  if (!type) return NULL;
510  if (type->str != NULL) {
511  const char *last_name = type->str;
512  const char *s;
513  for (s = type->str; *s; s++)
514  if (*s == '|') last_name = s+1;
515  return last_name;
516  }
517  else
518  return type->name;
519 }
520 
521 /*
522  Set the clientdata field for a type
523 */
524 SWIGRUNTIME void
525 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
526  swig_cast_info *cast = ti->cast;
527  /* if (ti->clientdata == clientdata) return; */
528  ti->clientdata = clientdata;
529 
530  while (cast) {
531  if (!cast->converter) {
532  swig_type_info *tc = cast->type;
533  if (!tc->clientdata) {
534  SWIG_TypeClientData(tc, clientdata);
535  }
536  }
537  cast = cast->next;
538  }
539 }
540 SWIGRUNTIME void
541 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
542  SWIG_TypeClientData(ti, clientdata);
543  ti->owndata = 1;
544 }
545 
546 /*
547  Search for a swig_type_info structure only by mangled name
548  Search is a O(log #types)
549 
550  We start searching at module start, and finish searching when start == end.
551  Note: if start == end at the beginning of the function, we go all the way around
552  the circular list.
553 */
554 SWIGRUNTIME swig_type_info *
555 SWIG_MangledTypeQueryModule(swig_module_info *start,
556  swig_module_info *end,
557  const char *name) {
558  swig_module_info *iter = start;
559  do {
560  if (iter->size) {
561  size_t l = 0;
562  size_t r = iter->size - 1;
563  do {
564  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
565  size_t i = (l + r) >> 1;
566  const char *iname = iter->types[i]->name;
567  if (iname) {
568  int compare = strcmp(name, iname);
569  if (compare == 0) {
570  return iter->types[i];
571  } else if (compare < 0) {
572  if (i) {
573  r = i - 1;
574  } else {
575  break;
576  }
577  } else if (compare > 0) {
578  l = i + 1;
579  }
580  } else {
581  break; /* should never happen */
582  }
583  } while (l <= r);
584  }
585  iter = iter->next;
586  } while (iter != end);
587  return 0;
588 }
589 
590 /*
591  Search for a swig_type_info structure for either a mangled name or a human readable name.
592  It first searches the mangled names of the types, which is a O(log #types)
593  If a type is not found it then searches the human readable names, which is O(#types).
594 
595  We start searching at module start, and finish searching when start == end.
596  Note: if start == end at the beginning of the function, we go all the way around
597  the circular list.
598 */
599 SWIGRUNTIME swig_type_info *
600 SWIG_TypeQueryModule(swig_module_info *start,
601  swig_module_info *end,
602  const char *name) {
603  /* STEP 1: Search the name field using binary search */
604  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
605  if (ret) {
606  return ret;
607  } else {
608  /* STEP 2: If the type hasn't been found, do a complete search
609  of the str field (the human readable name) */
610  swig_module_info *iter = start;
611  do {
612  size_t i = 0;
613  for (; i < iter->size; ++i) {
614  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
615  return iter->types[i];
616  }
617  iter = iter->next;
618  } while (iter != end);
619  }
620 
621  /* neither found a match */
622  return 0;
623 }
624 
625 /*
626  Pack binary data into a string
627 */
628 SWIGRUNTIME char *
629 SWIG_PackData(char *c, void *ptr, size_t sz) {
630  static const char hex[17] = "0123456789abcdef";
631  const unsigned char *u = (unsigned char *) ptr;
632  const unsigned char *eu = u + sz;
633  for (; u != eu; ++u) {
634  unsigned char uu = *u;
635  *(c++) = hex[(uu & 0xf0) >> 4];
636  *(c++) = hex[uu & 0xf];
637  }
638  return c;
639 }
640 
641 /*
642  Unpack binary data from a string
643 */
644 SWIGRUNTIME const char *
645 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
646  unsigned char *u = (unsigned char *) ptr;
647  const unsigned char *eu = u + sz;
648  for (; u != eu; ++u) {
649  char d = *(c++);
650  unsigned char uu;
651  if ((d >= '0') && (d <= '9'))
652  uu = ((d - '0') << 4);
653  else if ((d >= 'a') && (d <= 'f'))
654  uu = ((d - ('a'-10)) << 4);
655  else
656  return (char *) 0;
657  d = *(c++);
658  if ((d >= '0') && (d <= '9'))
659  uu |= (d - '0');
660  else if ((d >= 'a') && (d <= 'f'))
661  uu |= (d - ('a'-10));
662  else
663  return (char *) 0;
664  *u = uu;
665  }
666  return c;
667 }
668 
669 /*
670  Pack 'void *' into a string buffer.
671 */
672 SWIGRUNTIME char *
673 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
674  char *r = buff;
675  if ((2*sizeof(void *) + 2) > bsz) return 0;
676  *(r++) = '_';
677  r = SWIG_PackData(r,&ptr,sizeof(void *));
678  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
679  strcpy(r,name);
680  return buff;
681 }
682 
683 SWIGRUNTIME const char *
684 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
685  if (*c != '_') {
686  if (strcmp(c,"NULL") == 0) {
687  *ptr = (void *) 0;
688  return name;
689  } else {
690  return 0;
691  }
692  }
693  return SWIG_UnpackData(++c,ptr,sizeof(void *));
694 }
695 
696 SWIGRUNTIME char *
697 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
698  char *r = buff;
699  size_t lname = (name ? strlen(name) : 0);
700  if ((2*sz + 2 + lname) > bsz) return 0;
701  *(r++) = '_';
702  r = SWIG_PackData(r,ptr,sz);
703  if (lname) {
704  strncpy(r,name,lname+1);
705  } else {
706  *r = 0;
707  }
708  return buff;
709 }
710 
711 SWIGRUNTIME const char *
712 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
713  if (*c != '_') {
714  if (strcmp(c,"NULL") == 0) {
715  memset(ptr,0,sz);
716  return name;
717  } else {
718  return 0;
719  }
720  }
721  return SWIG_UnpackData(++c,ptr,sz);
722 }
723 
724 #ifdef __cplusplus
725 }
726 #endif
727 
728 /* Errors in SWIG */
729 #define SWIG_UnknownError -1
730 #define SWIG_IOError -2
731 #define SWIG_RuntimeError -3
732 #define SWIG_IndexError -4
733 #define SWIG_TypeError -5
734 #define SWIG_DivisionByZero -6
735 #define SWIG_OverflowError -7
736 #define SWIG_SyntaxError -8
737 #define SWIG_ValueError -9
738 #define SWIG_SystemError -10
739 #define SWIG_AttributeError -11
740 #define SWIG_MemoryError -12
741 #define SWIG_NullReferenceError -13
742 
743 
744 
745 /* Compatibility macros for Python 3 */
746 #if PY_VERSION_HEX >= 0x03000000
747 
748 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
749 #define PyInt_Check(x) PyLong_Check(x)
750 #define PyInt_AsLong(x) PyLong_AsLong(x)
751 #define PyInt_FromLong(x) PyLong_FromLong(x)
752 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
753 #define PyString_Check(name) PyBytes_Check(name)
754 #define PyString_FromString(x) PyUnicode_FromString(x)
755 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
756 #define PyString_AsString(str) PyBytes_AsString(str)
757 #define PyString_Size(str) PyBytes_Size(str)
758 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
759 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
760 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
761 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
762 
763 #endif
764 
765 #ifndef Py_TYPE
766 # define Py_TYPE(op) ((op)->ob_type)
767 #endif
768 
769 /* SWIG APIs for compatibility of both Python 2 & 3 */
770 
771 #if PY_VERSION_HEX >= 0x03000000
772 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat
773 #else
774 # define SWIG_Python_str_FromFormat PyString_FromFormat
775 #endif
776 
777 
778 /* Warning: This function will allocate a new string in Python 3,
779  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
780  */
781 SWIGINTERN char*
782 SWIG_Python_str_AsChar(PyObject *str)
783 {
784 #if PY_VERSION_HEX >= 0x03000000
785  char *cstr;
786  char *newstr;
787  Py_ssize_t len;
788  str = PyUnicode_AsUTF8String(str);
789  PyBytes_AsStringAndSize(str, &cstr, &len);
790  newstr = (char *) malloc(len+1);
791  memcpy(newstr, cstr, len+1);
792  Py_XDECREF(str);
793  return newstr;
794 #else
795  return PyString_AsString(str);
796 #endif
797 }
798 
799 #if PY_VERSION_HEX >= 0x03000000
800 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
801 #else
802 # define SWIG_Python_str_DelForPy3(x)
803 #endif
804 
805 
806 SWIGINTERN PyObject*
807 SWIG_Python_str_FromChar(const char *c)
808 {
809 #if PY_VERSION_HEX >= 0x03000000
810  return PyUnicode_FromString(c);
811 #else
812  return PyString_FromString(c);
813 #endif
814 }
815 
816 /* Add PyOS_snprintf for old Pythons */
817 #if PY_VERSION_HEX < 0x02020000
818 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
819 # define PyOS_snprintf _snprintf
820 # else
821 # define PyOS_snprintf snprintf
822 # endif
823 #endif
824 
825 /* A crude PyString_FromFormat implementation for old Pythons */
826 #if PY_VERSION_HEX < 0x02020000
827 
828 #ifndef SWIG_PYBUFFER_SIZE
829 # define SWIG_PYBUFFER_SIZE 1024
830 #endif
831 
832 static PyObject *
833 PyString_FromFormat(const char *fmt, ...) {
834  va_list ap;
835  char buf[SWIG_PYBUFFER_SIZE * 2];
836  int res;
837  va_start(ap, fmt);
838  res = vsnprintf(buf, sizeof(buf), fmt, ap);
839  va_end(ap);
840  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
841 }
842 #endif
843 
844 /* Add PyObject_Del for old Pythons */
845 #if PY_VERSION_HEX < 0x01060000
846 # define PyObject_Del(op) PyMem_DEL((op))
847 #endif
848 #ifndef PyObject_DEL
849 # define PyObject_DEL PyObject_Del
850 #endif
851 
852 /* A crude PyExc_StopIteration exception for old Pythons */
853 #if PY_VERSION_HEX < 0x02020000
854 # ifndef PyExc_StopIteration
855 # define PyExc_StopIteration PyExc_RuntimeError
856 # endif
857 # ifndef PyObject_GenericGetAttr
858 # define PyObject_GenericGetAttr 0
859 # endif
860 #endif
861 
862 /* Py_NotImplemented is defined in 2.1 and up. */
863 #if PY_VERSION_HEX < 0x02010000
864 # ifndef Py_NotImplemented
865 # define Py_NotImplemented PyExc_RuntimeError
866 # endif
867 #endif
868 
869 /* A crude PyString_AsStringAndSize implementation for old Pythons */
870 #if PY_VERSION_HEX < 0x02010000
871 # ifndef PyString_AsStringAndSize
872 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
873 # endif
874 #endif
875 
876 /* PySequence_Size for old Pythons */
877 #if PY_VERSION_HEX < 0x02000000
878 # ifndef PySequence_Size
879 # define PySequence_Size PySequence_Length
880 # endif
881 #endif
882 
883 /* PyBool_FromLong for old Pythons */
884 #if PY_VERSION_HEX < 0x02030000
885 static
886 PyObject *PyBool_FromLong(long ok)
887 {
888  PyObject *result = ok ? Py_True : Py_False;
889  Py_INCREF(result);
890  return result;
891 }
892 #endif
893 
894 /* Py_ssize_t for old Pythons */
895 /* This code is as recommended by: */
896 /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
897 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
898 typedef int Py_ssize_t;
899 # define PY_SSIZE_T_MAX INT_MAX
900 # define PY_SSIZE_T_MIN INT_MIN
901 typedef inquiry lenfunc;
902 typedef intargfunc ssizeargfunc;
903 typedef intintargfunc ssizessizeargfunc;
904 typedef intobjargproc ssizeobjargproc;
905 typedef intintobjargproc ssizessizeobjargproc;
906 typedef getreadbufferproc readbufferproc;
907 typedef getwritebufferproc writebufferproc;
908 typedef getsegcountproc segcountproc;
909 typedef getcharbufferproc charbufferproc;
910 static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
911 {
912  long result = 0;
913  PyObject *i = PyNumber_Int(x);
914  if (i) {
915  result = PyInt_AsLong(i);
916  Py_DECREF(i);
917  }
918  return result;
919 }
920 #endif
921 
922 #if PY_VERSION_HEX < 0x02050000
923 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
924 #endif
925 
926 #if PY_VERSION_HEX < 0x02040000
927 #define Py_VISIT(op) \
928  do { \
929  if (op) { \
930  int vret = visit((op), arg); \
931  if (vret) \
932  return vret; \
933  } \
934  } while (0)
935 #endif
936 
937 #if PY_VERSION_HEX < 0x02030000
938 typedef struct {
939  PyTypeObject type;
940  PyNumberMethods as_number;
941  PyMappingMethods as_mapping;
942  PySequenceMethods as_sequence;
943  PyBufferProcs as_buffer;
944  PyObject *name, *slots;
946 #endif
947 
948 #if PY_VERSION_HEX < 0x02030000
949 typedef destructor freefunc;
950 #endif
951 
952 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
953  (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
954  (PY_MAJOR_VERSION > 3))
955 # define SWIGPY_USE_CAPSULE
956 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
957 #endif
958 
959 #if PY_VERSION_HEX < 0x03020000
960 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
961 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
962 #endif
963 
964 /* -----------------------------------------------------------------------------
965  * error manipulation
966  * ----------------------------------------------------------------------------- */
967 
968 SWIGRUNTIME PyObject*
969 SWIG_Python_ErrorType(int code) {
970  PyObject* type = 0;
971  switch(code) {
972  case SWIG_MemoryError:
973  type = PyExc_MemoryError;
974  break;
975  case SWIG_IOError:
976  type = PyExc_IOError;
977  break;
978  case SWIG_RuntimeError:
979  type = PyExc_RuntimeError;
980  break;
981  case SWIG_IndexError:
982  type = PyExc_IndexError;
983  break;
984  case SWIG_TypeError:
985  type = PyExc_TypeError;
986  break;
987  case SWIG_DivisionByZero:
988  type = PyExc_ZeroDivisionError;
989  break;
990  case SWIG_OverflowError:
991  type = PyExc_OverflowError;
992  break;
993  case SWIG_SyntaxError:
994  type = PyExc_SyntaxError;
995  break;
996  case SWIG_ValueError:
997  type = PyExc_ValueError;
998  break;
999  case SWIG_SystemError:
1000  type = PyExc_SystemError;
1001  break;
1002  case SWIG_AttributeError:
1003  type = PyExc_AttributeError;
1004  break;
1005  default:
1006  type = PyExc_RuntimeError;
1007  }
1008  return type;
1009 }
1010 
1011 
1012 SWIGRUNTIME void
1013 SWIG_Python_AddErrorMsg(const char* mesg)
1014 {
1015  PyObject *type = 0;
1016  PyObject *value = 0;
1017  PyObject *traceback = 0;
1018 
1019  if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1020  if (value) {
1021  char *tmp;
1022  PyObject *old_str = PyObject_Str(value);
1023  PyErr_Clear();
1024  Py_XINCREF(type);
1025 
1026  PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1027  SWIG_Python_str_DelForPy3(tmp);
1028  Py_DECREF(old_str);
1029  Py_DECREF(value);
1030  } else {
1031  PyErr_SetString(PyExc_RuntimeError, mesg);
1032  }
1033 }
1034 
1035 #if defined(SWIG_PYTHON_NO_THREADS)
1036 # if defined(SWIG_PYTHON_THREADS)
1037 # undef SWIG_PYTHON_THREADS
1038 # endif
1039 #endif
1040 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1041 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1042 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1043 # define SWIG_PYTHON_USE_GIL
1044 # endif
1045 # endif
1046 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1047 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
1048 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1049 # endif
1050 # ifdef __cplusplus /* C++ code */
1051  class SWIG_Python_Thread_Block {
1052  bool status;
1053  PyGILState_STATE state;
1054  public:
1055  void end() { if (status) { PyGILState_Release(state); status = false;} }
1056  SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1057  ~SWIG_Python_Thread_Block() { end(); }
1058  };
1059  class SWIG_Python_Thread_Allow {
1060  bool status;
1061  PyThreadState *save;
1062  public:
1063  void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1064  SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1065  ~SWIG_Python_Thread_Allow() { end(); }
1066  };
1067 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1068 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1069 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1070 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1071 # else /* C code */
1072 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1073 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1074 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1075 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1076 # endif
1077 # else /* Old thread way, not implemented, user must provide it */
1078 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1079 # define SWIG_PYTHON_INITIALIZE_THREADS
1080 # endif
1081 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1082 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1083 # endif
1084 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1085 # define SWIG_PYTHON_THREAD_END_BLOCK
1086 # endif
1087 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1088 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1089 # endif
1090 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1091 # define SWIG_PYTHON_THREAD_END_ALLOW
1092 # endif
1093 # endif
1094 #else /* No thread support */
1095 # define SWIG_PYTHON_INITIALIZE_THREADS
1096 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1097 # define SWIG_PYTHON_THREAD_END_BLOCK
1098 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1099 # define SWIG_PYTHON_THREAD_END_ALLOW
1100 #endif
1101 
1102 /* -----------------------------------------------------------------------------
1103  * Python API portion that goes into the runtime
1104  * ----------------------------------------------------------------------------- */
1105 
1106 #ifdef __cplusplus
1107 extern "C" {
1108 #endif
1109 
1110 /* -----------------------------------------------------------------------------
1111  * Constant declarations
1112  * ----------------------------------------------------------------------------- */
1113 
1114 /* Constant Types */
1115 #define SWIG_PY_POINTER 4
1116 #define SWIG_PY_BINARY 5
1117 
1118 /* Constant information structure */
1119 typedef struct swig_const_info {
1120  int type;
1121  char *name;
1122  long lvalue;
1123  double dvalue;
1124  void *pvalue;
1125  swig_type_info **ptype;
1126 } swig_const_info;
1127 
1128 
1129 /* -----------------------------------------------------------------------------
1130  * Wrapper of PyInstanceMethod_New() used in Python 3
1131  * It is exported to the generated module, used for -fastproxy
1132  * ----------------------------------------------------------------------------- */
1133 #if PY_VERSION_HEX >= 0x03000000
1134 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1135 {
1136  return PyInstanceMethod_New(func);
1137 }
1138 #else
1139 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1140 {
1141  return NULL;
1142 }
1143 #endif
1144 
1145 #ifdef __cplusplus
1146 }
1147 #endif
1148 
1149 
1150 /* -----------------------------------------------------------------------------
1151  * pyrun.swg
1152  *
1153  * This file contains the runtime support for Python modules
1154  * and includes code for managing global variables and pointer
1155  * type checking.
1156  *
1157  * ----------------------------------------------------------------------------- */
1158 
1159 /* Common SWIG API */
1160 
1161 /* for raw pointers */
1162 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1163 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1164 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1165 
1166 #ifdef SWIGPYTHON_BUILTIN
1167 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1168 #else
1169 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1170 #endif
1171 
1172 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1173 
1174 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1175 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1176 #define swig_owntype int
1177 
1178 /* for raw packed data */
1179 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1180 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1181 
1182 /* for class or struct pointers */
1183 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1184 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1185 
1186 /* for C or C++ function pointers */
1187 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1188 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1189 
1190 /* for C++ member pointers, ie, member methods */
1191 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1192 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1193 
1194 
1195 /* Runtime API */
1196 
1197 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1198 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1199 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1200 
1201 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1202 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1203 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1204 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1205 #define SWIG_fail goto fail
1206 
1207 
1208 /* Runtime API implementation */
1209 
1210 /* Error manipulation */
1211 
1212 SWIGINTERN void
1213 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1214  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1215  PyErr_SetObject(errtype, obj);
1216  Py_DECREF(obj);
1217  SWIG_PYTHON_THREAD_END_BLOCK;
1218 }
1219 
1220 SWIGINTERN void
1221 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1222  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1223  PyErr_SetString(errtype, msg);
1224  SWIG_PYTHON_THREAD_END_BLOCK;
1225 }
1226 
1227 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1228 
1229 /* Set a constant value */
1230 
1231 #if defined(SWIGPYTHON_BUILTIN)
1232 
1233 SWIGINTERN void
1234 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1235  PyObject *s = PyString_InternFromString(key);
1236  PyList_Append(seq, s);
1237  Py_DECREF(s);
1238 }
1239 
1240 SWIGINTERN void
1241 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1242 #if PY_VERSION_HEX < 0x02030000
1243  PyDict_SetItemString(d, (char *)name, obj);
1244 #else
1245  PyDict_SetItemString(d, name, obj);
1246 #endif
1247  Py_DECREF(obj);
1248  if (public_interface)
1249  SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1250 }
1251 
1252 #else
1253 
1254 SWIGINTERN void
1255 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1256 #if PY_VERSION_HEX < 0x02030000
1257  PyDict_SetItemString(d, (char *)name, obj);
1258 #else
1259  PyDict_SetItemString(d, name, obj);
1260 #endif
1261  Py_DECREF(obj);
1262 }
1263 
1264 #endif
1265 
1266 /* Append a value to the result obj */
1267 
1268 SWIGINTERN PyObject*
1269 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1270 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1271  if (!result) {
1272  result = obj;
1273  } else if (result == Py_None) {
1274  Py_DECREF(result);
1275  result = obj;
1276  } else {
1277  if (!PyList_Check(result)) {
1278  PyObject *o2 = result;
1279  result = PyList_New(1);
1280  PyList_SetItem(result, 0, o2);
1281  }
1282  PyList_Append(result,obj);
1283  Py_DECREF(obj);
1284  }
1285  return result;
1286 #else
1287  PyObject* o2;
1288  PyObject* o3;
1289  if (!result) {
1290  result = obj;
1291  } else if (result == Py_None) {
1292  Py_DECREF(result);
1293  result = obj;
1294  } else {
1295  if (!PyTuple_Check(result)) {
1296  o2 = result;
1297  result = PyTuple_New(1);
1298  PyTuple_SET_ITEM(result, 0, o2);
1299  }
1300  o3 = PyTuple_New(1);
1301  PyTuple_SET_ITEM(o3, 0, obj);
1302  o2 = result;
1303  result = PySequence_Concat(o2, o3);
1304  Py_DECREF(o2);
1305  Py_DECREF(o3);
1306  }
1307  return result;
1308 #endif
1309 }
1310 
1311 /* Unpack the argument tuple */
1312 
1313 SWIGINTERN Py_ssize_t
1314 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1315 {
1316  if (!args) {
1317  if (!min && !max) {
1318  return 1;
1319  } else {
1320  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1321  name, (min == max ? "" : "at least "), (int)min);
1322  return 0;
1323  }
1324  }
1325  if (!PyTuple_Check(args)) {
1326  if (min <= 1 && max >= 1) {
1327  Py_ssize_t i;
1328  objs[0] = args;
1329  for (i = 1; i < max; ++i) {
1330  objs[i] = 0;
1331  }
1332  return 2;
1333  }
1334  PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1335  return 0;
1336  } else {
1337  Py_ssize_t l = PyTuple_GET_SIZE(args);
1338  if (l < min) {
1339  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1340  name, (min == max ? "" : "at least "), (int)min, (int)l);
1341  return 0;
1342  } else if (l > max) {
1343  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1344  name, (min == max ? "" : "at most "), (int)max, (int)l);
1345  return 0;
1346  } else {
1347  Py_ssize_t i;
1348  for (i = 0; i < l; ++i) {
1349  objs[i] = PyTuple_GET_ITEM(args, i);
1350  }
1351  for (; l < max; ++l) {
1352  objs[l] = 0;
1353  }
1354  return i + 1;
1355  }
1356  }
1357 }
1358 
1359 /* A functor is a function object with one single object argument */
1360 #if PY_VERSION_HEX >= 0x02020000
1361 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1362 #else
1363 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1364 #endif
1365 
1366 /*
1367  Helper for static pointer initialization for both C and C++ code, for example
1368  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1369 */
1370 #ifdef __cplusplus
1371 #define SWIG_STATIC_POINTER(var) var
1372 #else
1373 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1374 #endif
1375 
1376 /* -----------------------------------------------------------------------------
1377  * Pointer declarations
1378  * ----------------------------------------------------------------------------- */
1379 
1380 /* Flags for new pointer objects */
1381 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1382 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1383 
1384 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1385 
1386 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1387 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1388 
1389 #ifdef __cplusplus
1390 extern "C" {
1391 #endif
1392 
1393 /* How to access Py_None */
1394 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1395 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1396 # ifndef SWIG_PYTHON_BUILD_NONE
1397 # define SWIG_PYTHON_BUILD_NONE
1398 # endif
1399 # endif
1400 #endif
1401 
1402 #ifdef SWIG_PYTHON_BUILD_NONE
1403 # ifdef Py_None
1404 # undef Py_None
1405 # define Py_None SWIG_Py_None()
1406 # endif
1407 SWIGRUNTIMEINLINE PyObject *
1408 _SWIG_Py_None(void)
1409 {
1410  PyObject *none = Py_BuildValue((char*)"");
1411  Py_DECREF(none);
1412  return none;
1413 }
1414 SWIGRUNTIME PyObject *
1415 SWIG_Py_None(void)
1416 {
1417  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1418  return none;
1419 }
1420 #endif
1421 
1422 /* The python void return value */
1423 
1424 SWIGRUNTIMEINLINE PyObject *
1425 SWIG_Py_Void(void)
1426 {
1427  PyObject *none = Py_None;
1428  Py_INCREF(none);
1429  return none;
1430 }
1431 
1432 /* SwigPyClientData */
1433 
1434 typedef struct {
1435  PyObject *klass;
1436  PyObject *newraw;
1437  PyObject *newargs;
1438  PyObject *destroy;
1439  int delargs;
1440  int implicitconv;
1441  PyTypeObject *pytype;
1443 
1444 SWIGRUNTIMEINLINE int
1445 SWIG_Python_CheckImplicit(swig_type_info *ty)
1446 {
1447  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1448  return data ? data->implicitconv : 0;
1449 }
1450 
1451 SWIGRUNTIMEINLINE PyObject *
1452 SWIG_Python_ExceptionType(swig_type_info *desc) {
1453  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1454  PyObject *klass = data ? data->klass : 0;
1455  return (klass ? klass : PyExc_RuntimeError);
1456 }
1457 
1458 
1459 SWIGRUNTIME SwigPyClientData *
1460 SwigPyClientData_New(PyObject* obj)
1461 {
1462  if (!obj) {
1463  return 0;
1464  } else {
1465  SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1466  /* the klass element */
1467  data->klass = obj;
1468  Py_INCREF(data->klass);
1469  /* the newraw method and newargs arguments used to create a new raw instance */
1470  if (PyClass_Check(obj)) {
1471  data->newraw = 0;
1472  data->newargs = obj;
1473  Py_INCREF(obj);
1474  } else {
1475 #if (PY_VERSION_HEX < 0x02020000)
1476  data->newraw = 0;
1477 #else
1478  data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1479 #endif
1480  if (data->newraw) {
1481  Py_INCREF(data->newraw);
1482  data->newargs = PyTuple_New(1);
1483  PyTuple_SetItem(data->newargs, 0, obj);
1484  } else {
1485  data->newargs = obj;
1486  }
1487  Py_INCREF(data->newargs);
1488  }
1489  /* the destroy method, aka as the C++ delete method */
1490  data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1491  if (PyErr_Occurred()) {
1492  PyErr_Clear();
1493  data->destroy = 0;
1494  }
1495  if (data->destroy) {
1496  int flags;
1497  Py_INCREF(data->destroy);
1498  flags = PyCFunction_GET_FLAGS(data->destroy);
1499 #ifdef METH_O
1500  data->delargs = !(flags & (METH_O));
1501 #else
1502  data->delargs = 0;
1503 #endif
1504  } else {
1505  data->delargs = 0;
1506  }
1507  data->implicitconv = 0;
1508  data->pytype = 0;
1509  return data;
1510  }
1511 }
1512 
1513 SWIGRUNTIME void
1514 SwigPyClientData_Del(SwigPyClientData *data) {
1515  Py_XDECREF(data->newraw);
1516  Py_XDECREF(data->newargs);
1517  Py_XDECREF(data->destroy);
1518 }
1519 
1520 /* =============== SwigPyObject =====================*/
1521 
1522 typedef struct {
1523  PyObject_HEAD
1524  void *ptr;
1525  swig_type_info *ty;
1526  int own;
1527  PyObject *next;
1528 #ifdef SWIGPYTHON_BUILTIN
1529  PyObject *dict;
1530 #endif
1531 } SwigPyObject;
1532 
1533 
1534 #ifdef SWIGPYTHON_BUILTIN
1535 
1536 SWIGRUNTIME PyObject *
1537 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1538 {
1539  SwigPyObject *sobj = (SwigPyObject *)v;
1540 
1541  if (!sobj->dict)
1542  sobj->dict = PyDict_New();
1543 
1544  Py_INCREF(sobj->dict);
1545  return sobj->dict;
1546 }
1547 
1548 #endif
1549 
1550 SWIGRUNTIME PyObject *
1551 SwigPyObject_long(SwigPyObject *v)
1552 {
1553  return PyLong_FromVoidPtr(v->ptr);
1554 }
1555 
1556 SWIGRUNTIME PyObject *
1557 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1558 {
1559  PyObject *res = NULL;
1560  PyObject *args = PyTuple_New(1);
1561  if (args) {
1562  if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1563  PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1564  if (ofmt) {
1565 #if PY_VERSION_HEX >= 0x03000000
1566  res = PyUnicode_Format(ofmt,args);
1567 #else
1568  res = PyString_Format(ofmt,args);
1569 #endif
1570  Py_DECREF(ofmt);
1571  }
1572  Py_DECREF(args);
1573  }
1574  }
1575  return res;
1576 }
1577 
1578 SWIGRUNTIME PyObject *
1579 SwigPyObject_oct(SwigPyObject *v)
1580 {
1581  return SwigPyObject_format("%o",v);
1582 }
1583 
1584 SWIGRUNTIME PyObject *
1585 SwigPyObject_hex(SwigPyObject *v)
1586 {
1587  return SwigPyObject_format("%x",v);
1588 }
1589 
1590 SWIGRUNTIME PyObject *
1591 #ifdef METH_NOARGS
1592 SwigPyObject_repr(SwigPyObject *v)
1593 #else
1594 SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1595 #endif
1596 {
1597  const char *name = SWIG_TypePrettyName(v->ty);
1598  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1599  if (v->next) {
1600 # ifdef METH_NOARGS
1601  PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1602 # else
1603  PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1604 # endif
1605 # if PY_VERSION_HEX >= 0x03000000
1606  PyObject *joined = PyUnicode_Concat(repr, nrep);
1607  Py_DecRef(repr);
1608  Py_DecRef(nrep);
1609  repr = joined;
1610 # else
1611  PyString_ConcatAndDel(&repr,nrep);
1612 # endif
1613  }
1614  return repr;
1615 }
1616 
1617 SWIGRUNTIME int
1618 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1619 {
1620  void *i = v->ptr;
1621  void *j = w->ptr;
1622  return (i < j) ? -1 : ((i > j) ? 1 : 0);
1623 }
1624 
1625 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1626 SWIGRUNTIME PyObject*
1627 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1628 {
1629  PyObject* res;
1630  if( op != Py_EQ && op != Py_NE ) {
1631  Py_INCREF(Py_NotImplemented);
1632  return Py_NotImplemented;
1633  }
1634  res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1635  return res;
1636 }
1637 
1638 
1639 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1640 
1641 #ifdef SWIGPYTHON_BUILTIN
1642 static swig_type_info *SwigPyObject_stype = 0;
1643 SWIGRUNTIME PyTypeObject*
1644 SwigPyObject_type(void) {
1645  SwigPyClientData *cd;
1646  assert(SwigPyObject_stype);
1647  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1648  assert(cd);
1649  assert(cd->pytype);
1650  return cd->pytype;
1651 }
1652 #else
1653 SWIGRUNTIME PyTypeObject*
1654 SwigPyObject_type(void) {
1655  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1656  return type;
1657 }
1658 #endif
1659 
1660 SWIGRUNTIMEINLINE int
1661 SwigPyObject_Check(PyObject *op) {
1662 #ifdef SWIGPYTHON_BUILTIN
1663  PyTypeObject *target_tp = SwigPyObject_type();
1664  if (PyType_IsSubtype(op->ob_type, target_tp))
1665  return 1;
1666  return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1667 #else
1668  return (Py_TYPE(op) == SwigPyObject_type())
1669  || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1670 #endif
1671 }
1672 
1673 SWIGRUNTIME PyObject *
1674 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1675 
1676 SWIGRUNTIME void
1677 SwigPyObject_dealloc(PyObject *v)
1678 {
1679  SwigPyObject *sobj = (SwigPyObject *) v;
1680  PyObject *next = sobj->next;
1681  if (sobj->own == SWIG_POINTER_OWN) {
1682  swig_type_info *ty = sobj->ty;
1683  SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1684  PyObject *destroy = data ? data->destroy : 0;
1685  if (destroy) {
1686  /* destroy is always a VARARGS method */
1687  PyObject *res;
1688 
1689  /* PyObject_CallFunction() has the potential to silently drop
1690  the active active exception. In cases of unnamed temporary
1691  variable or where we just finished iterating over a generator
1692  StopIteration will be active right now, and this needs to
1693  remain true upon return from SwigPyObject_dealloc. So save
1694  and restore. */
1695 
1696  PyObject *val = NULL, *type = NULL, *tb = NULL;
1697  PyErr_Fetch(&val, &type, &tb);
1698 
1699  if (data->delargs) {
1700  /* we need to create a temporary object to carry the destroy operation */
1701  PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1702  res = SWIG_Python_CallFunctor(destroy, tmp);
1703  Py_DECREF(tmp);
1704  } else {
1705  PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1706  PyObject *mself = PyCFunction_GET_SELF(destroy);
1707  res = ((*meth)(mself, v));
1708  }
1709  if (!res)
1710  PyErr_WriteUnraisable(destroy);
1711 
1712  PyErr_Restore(val, type, tb);
1713 
1714  Py_XDECREF(res);
1715  }
1716 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1717  else {
1718  const char *name = SWIG_TypePrettyName(ty);
1719  printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1720  }
1721 #endif
1722  }
1723  Py_XDECREF(next);
1724  PyObject_DEL(v);
1725 }
1726 
1727 SWIGRUNTIME PyObject*
1728 SwigPyObject_append(PyObject* v, PyObject* next)
1729 {
1730  SwigPyObject *sobj = (SwigPyObject *) v;
1731 #ifndef METH_O
1732  PyObject *tmp = 0;
1733  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1734  next = tmp;
1735 #endif
1736  if (!SwigPyObject_Check(next)) {
1737  PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1738  return NULL;
1739  }
1740  sobj->next = next;
1741  Py_INCREF(next);
1742  return SWIG_Py_Void();
1743 }
1744 
1745 SWIGRUNTIME PyObject*
1746 #ifdef METH_NOARGS
1747 SwigPyObject_next(PyObject* v)
1748 #else
1749 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1750 #endif
1751 {
1752  SwigPyObject *sobj = (SwigPyObject *) v;
1753  if (sobj->next) {
1754  Py_INCREF(sobj->next);
1755  return sobj->next;
1756  } else {
1757  return SWIG_Py_Void();
1758  }
1759 }
1760 
1761 SWIGINTERN PyObject*
1762 #ifdef METH_NOARGS
1763 SwigPyObject_disown(PyObject *v)
1764 #else
1765 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1766 #endif
1767 {
1768  SwigPyObject *sobj = (SwigPyObject *)v;
1769  sobj->own = 0;
1770  return SWIG_Py_Void();
1771 }
1772 
1773 SWIGINTERN PyObject*
1774 #ifdef METH_NOARGS
1775 SwigPyObject_acquire(PyObject *v)
1776 #else
1777 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1778 #endif
1779 {
1780  SwigPyObject *sobj = (SwigPyObject *)v;
1781  sobj->own = SWIG_POINTER_OWN;
1782  return SWIG_Py_Void();
1783 }
1784 
1785 SWIGINTERN PyObject*
1786 SwigPyObject_own(PyObject *v, PyObject *args)
1787 {
1788  PyObject *val = 0;
1789 #if (PY_VERSION_HEX < 0x02020000)
1790  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1791 #elif (PY_VERSION_HEX < 0x02050000)
1792  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1793 #else
1794  if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1795 #endif
1796  {
1797  return NULL;
1798  }
1799  else
1800  {
1801  SwigPyObject *sobj = (SwigPyObject *)v;
1802  PyObject *obj = PyBool_FromLong(sobj->own);
1803  if (val) {
1804 #ifdef METH_NOARGS
1805  if (PyObject_IsTrue(val)) {
1806  SwigPyObject_acquire(v);
1807  } else {
1808  SwigPyObject_disown(v);
1809  }
1810 #else
1811  if (PyObject_IsTrue(val)) {
1812  SwigPyObject_acquire(v,args);
1813  } else {
1814  SwigPyObject_disown(v,args);
1815  }
1816 #endif
1817  }
1818  return obj;
1819  }
1820 }
1821 
1822 #ifdef METH_O
1823 static PyMethodDef
1824 swigobject_methods[] = {
1825  {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1826  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"},
1827  {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1828  {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
1829  {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1830  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
1831  {0, 0, 0, 0}
1832 };
1833 #else
1834 static PyMethodDef
1835 swigobject_methods[] = {
1836  {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1837  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
1838  {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1839  {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1840  {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1841  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
1842  {0, 0, 0, 0}
1843 };
1844 #endif
1845 
1846 #if PY_VERSION_HEX < 0x02020000
1847 SWIGINTERN PyObject *
1848 SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1849 {
1850  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1851 }
1852 #endif
1853 
1854 SWIGRUNTIME PyTypeObject*
1855 SwigPyObject_TypeOnce(void) {
1856  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1857 
1858  static PyNumberMethods SwigPyObject_as_number = {
1859  (binaryfunc)0, /*nb_add*/
1860  (binaryfunc)0, /*nb_subtract*/
1861  (binaryfunc)0, /*nb_multiply*/
1862  /* nb_divide removed in Python 3 */
1863 #if PY_VERSION_HEX < 0x03000000
1864  (binaryfunc)0, /*nb_divide*/
1865 #endif
1866  (binaryfunc)0, /*nb_remainder*/
1867  (binaryfunc)0, /*nb_divmod*/
1868  (ternaryfunc)0,/*nb_power*/
1869  (unaryfunc)0, /*nb_negative*/
1870  (unaryfunc)0, /*nb_positive*/
1871  (unaryfunc)0, /*nb_absolute*/
1872  (inquiry)0, /*nb_nonzero*/
1873  0, /*nb_invert*/
1874  0, /*nb_lshift*/
1875  0, /*nb_rshift*/
1876  0, /*nb_and*/
1877  0, /*nb_xor*/
1878  0, /*nb_or*/
1879 #if PY_VERSION_HEX < 0x03000000
1880  0, /*nb_coerce*/
1881 #endif
1882  (unaryfunc)SwigPyObject_long, /*nb_int*/
1883 #if PY_VERSION_HEX < 0x03000000
1884  (unaryfunc)SwigPyObject_long, /*nb_long*/
1885 #else
1886  0, /*nb_reserved*/
1887 #endif
1888  (unaryfunc)0, /*nb_float*/
1889 #if PY_VERSION_HEX < 0x03000000
1890  (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1891  (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1892 #endif
1893 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1894  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1895 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1896  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1897 #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
1898  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1899 #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
1900  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1901 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
1902  0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1903 #endif
1904  };
1905 
1906  static PyTypeObject swigpyobject_type;
1907  static int type_init = 0;
1908  if (!type_init) {
1909  const PyTypeObject tmp = {
1910  /* PyObject header changed in Python 3 */
1911 #if PY_VERSION_HEX >= 0x03000000
1912  PyVarObject_HEAD_INIT(NULL, 0)
1913 #else
1914  PyObject_HEAD_INIT(NULL)
1915  0, /* ob_size */
1916 #endif
1917  (char *)"SwigPyObject", /* tp_name */
1918  sizeof(SwigPyObject), /* tp_basicsize */
1919  0, /* tp_itemsize */
1920  (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1921  0, /* tp_print */
1922 #if PY_VERSION_HEX < 0x02020000
1923  (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1924 #else
1925  (getattrfunc)0, /* tp_getattr */
1926 #endif
1927  (setattrfunc)0, /* tp_setattr */
1928 #if PY_VERSION_HEX >= 0x03000000
1929  0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1930 #else
1931  (cmpfunc)SwigPyObject_compare, /* tp_compare */
1932 #endif
1933  (reprfunc)SwigPyObject_repr, /* tp_repr */
1934  &SwigPyObject_as_number, /* tp_as_number */
1935  0, /* tp_as_sequence */
1936  0, /* tp_as_mapping */
1937  (hashfunc)0, /* tp_hash */
1938  (ternaryfunc)0, /* tp_call */
1939  0, /* tp_str */
1940  PyObject_GenericGetAttr, /* tp_getattro */
1941  0, /* tp_setattro */
1942  0, /* tp_as_buffer */
1943  Py_TPFLAGS_DEFAULT, /* tp_flags */
1944  swigobject_doc, /* tp_doc */
1945  0, /* tp_traverse */
1946  0, /* tp_clear */
1947  (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1948  0, /* tp_weaklistoffset */
1949 #if PY_VERSION_HEX >= 0x02020000
1950  0, /* tp_iter */
1951  0, /* tp_iternext */
1952  swigobject_methods, /* tp_methods */
1953  0, /* tp_members */
1954  0, /* tp_getset */
1955  0, /* tp_base */
1956  0, /* tp_dict */
1957  0, /* tp_descr_get */
1958  0, /* tp_descr_set */
1959  0, /* tp_dictoffset */
1960  0, /* tp_init */
1961  0, /* tp_alloc */
1962  0, /* tp_new */
1963  0, /* tp_free */
1964  0, /* tp_is_gc */
1965  0, /* tp_bases */
1966  0, /* tp_mro */
1967  0, /* tp_cache */
1968  0, /* tp_subclasses */
1969  0, /* tp_weaklist */
1970 #endif
1971 #if PY_VERSION_HEX >= 0x02030000
1972  0, /* tp_del */
1973 #endif
1974 #if PY_VERSION_HEX >= 0x02060000
1975  0, /* tp_version_tag */
1976 #endif
1977 #if PY_VERSION_HEX >= 0x03040000
1978  0, /* tp_finalize */
1979 #endif
1980 #ifdef COUNT_ALLOCS
1981  0, /* tp_allocs */
1982  0, /* tp_frees */
1983  0, /* tp_maxalloc */
1984 #if PY_VERSION_HEX >= 0x02050000
1985  0, /* tp_prev */
1986 #endif
1987  0 /* tp_next */
1988 #endif
1989  };
1990  swigpyobject_type = tmp;
1991  type_init = 1;
1992 #if PY_VERSION_HEX < 0x02020000
1993  swigpyobject_type.ob_type = &PyType_Type;
1994 #else
1995  if (PyType_Ready(&swigpyobject_type) < 0)
1996  return NULL;
1997 #endif
1998  }
1999  return &swigpyobject_type;
2000 }
2001 
2002 SWIGRUNTIME PyObject *
2003 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2004 {
2005  SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
2006  if (sobj) {
2007  sobj->ptr = ptr;
2008  sobj->ty = ty;
2009  sobj->own = own;
2010  sobj->next = 0;
2011  }
2012  return (PyObject *)sobj;
2013 }
2014 
2015 /* -----------------------------------------------------------------------------
2016  * Implements a simple Swig Packed type, and use it instead of string
2017  * ----------------------------------------------------------------------------- */
2018 
2019 typedef struct {
2020  PyObject_HEAD
2021  void *pack;
2022  swig_type_info *ty;
2023  size_t size;
2024 } SwigPyPacked;
2025 
2026 SWIGRUNTIME int
2027 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2028 {
2029  char result[SWIG_BUFFER_SIZE];
2030  fputs("<Swig Packed ", fp);
2031  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2032  fputs("at ", fp);
2033  fputs(result, fp);
2034  }
2035  fputs(v->ty->name,fp);
2036  fputs(">", fp);
2037  return 0;
2038 }
2039 
2040 SWIGRUNTIME PyObject *
2041 SwigPyPacked_repr(SwigPyPacked *v)
2042 {
2043  char result[SWIG_BUFFER_SIZE];
2044  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2045  return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2046  } else {
2047  return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2048  }
2049 }
2050 
2051 SWIGRUNTIME PyObject *
2052 SwigPyPacked_str(SwigPyPacked *v)
2053 {
2054  char result[SWIG_BUFFER_SIZE];
2055  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2056  return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2057  } else {
2058  return SWIG_Python_str_FromChar(v->ty->name);
2059  }
2060 }
2061 
2062 SWIGRUNTIME int
2063 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2064 {
2065  size_t i = v->size;
2066  size_t j = w->size;
2067  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2068  return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2069 }
2070 
2071 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2072 
2073 SWIGRUNTIME PyTypeObject*
2074 SwigPyPacked_type(void) {
2075  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2076  return type;
2077 }
2078 
2079 SWIGRUNTIMEINLINE int
2080 SwigPyPacked_Check(PyObject *op) {
2081  return ((op)->ob_type == SwigPyPacked_TypeOnce())
2082  || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2083 }
2084 
2085 SWIGRUNTIME void
2086 SwigPyPacked_dealloc(PyObject *v)
2087 {
2088  if (SwigPyPacked_Check(v)) {
2089  SwigPyPacked *sobj = (SwigPyPacked *) v;
2090  free(sobj->pack);
2091  }
2092  PyObject_DEL(v);
2093 }
2094 
2095 SWIGRUNTIME PyTypeObject*
2096 SwigPyPacked_TypeOnce(void) {
2097  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2098  static PyTypeObject swigpypacked_type;
2099  static int type_init = 0;
2100  if (!type_init) {
2101  const PyTypeObject tmp = {
2102  /* PyObject header changed in Python 3 */
2103 #if PY_VERSION_HEX>=0x03000000
2104  PyVarObject_HEAD_INIT(NULL, 0)
2105 #else
2106  PyObject_HEAD_INIT(NULL)
2107  0, /* ob_size */
2108 #endif
2109  (char *)"SwigPyPacked", /* tp_name */
2110  sizeof(SwigPyPacked), /* tp_basicsize */
2111  0, /* tp_itemsize */
2112  (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2113  (printfunc)SwigPyPacked_print, /* tp_print */
2114  (getattrfunc)0, /* tp_getattr */
2115  (setattrfunc)0, /* tp_setattr */
2116 #if PY_VERSION_HEX>=0x03000000
2117  0, /* tp_reserved in 3.0.1 */
2118 #else
2119  (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2120 #endif
2121  (reprfunc)SwigPyPacked_repr, /* tp_repr */
2122  0, /* tp_as_number */
2123  0, /* tp_as_sequence */
2124  0, /* tp_as_mapping */
2125  (hashfunc)0, /* tp_hash */
2126  (ternaryfunc)0, /* tp_call */
2127  (reprfunc)SwigPyPacked_str, /* tp_str */
2128  PyObject_GenericGetAttr, /* tp_getattro */
2129  0, /* tp_setattro */
2130  0, /* tp_as_buffer */
2131  Py_TPFLAGS_DEFAULT, /* tp_flags */
2132  swigpacked_doc, /* tp_doc */
2133  0, /* tp_traverse */
2134  0, /* tp_clear */
2135  0, /* tp_richcompare */
2136  0, /* tp_weaklistoffset */
2137 #if PY_VERSION_HEX >= 0x02020000
2138  0, /* tp_iter */
2139  0, /* tp_iternext */
2140  0, /* tp_methods */
2141  0, /* tp_members */
2142  0, /* tp_getset */
2143  0, /* tp_base */
2144  0, /* tp_dict */
2145  0, /* tp_descr_get */
2146  0, /* tp_descr_set */
2147  0, /* tp_dictoffset */
2148  0, /* tp_init */
2149  0, /* tp_alloc */
2150  0, /* tp_new */
2151  0, /* tp_free */
2152  0, /* tp_is_gc */
2153  0, /* tp_bases */
2154  0, /* tp_mro */
2155  0, /* tp_cache */
2156  0, /* tp_subclasses */
2157  0, /* tp_weaklist */
2158 #endif
2159 #if PY_VERSION_HEX >= 0x02030000
2160  0, /* tp_del */
2161 #endif
2162 #if PY_VERSION_HEX >= 0x02060000
2163  0, /* tp_version_tag */
2164 #endif
2165 #if PY_VERSION_HEX >= 0x03040000
2166  0, /* tp_finalize */
2167 #endif
2168 #ifdef COUNT_ALLOCS
2169  0, /* tp_allocs */
2170  0, /* tp_frees */
2171  0, /* tp_maxalloc */
2172 #if PY_VERSION_HEX >= 0x02050000
2173  0, /* tp_prev */
2174 #endif
2175  0 /* tp_next */
2176 #endif
2177  };
2178  swigpypacked_type = tmp;
2179  type_init = 1;
2180 #if PY_VERSION_HEX < 0x02020000
2181  swigpypacked_type.ob_type = &PyType_Type;
2182 #else
2183  if (PyType_Ready(&swigpypacked_type) < 0)
2184  return NULL;
2185 #endif
2186  }
2187  return &swigpypacked_type;
2188 }
2189 
2190 SWIGRUNTIME PyObject *
2191 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2192 {
2193  SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
2194  if (sobj) {
2195  void *pack = malloc(size);
2196  if (pack) {
2197  memcpy(pack, ptr, size);
2198  sobj->pack = pack;
2199  sobj->ty = ty;
2200  sobj->size = size;
2201  } else {
2202  PyObject_DEL((PyObject *) sobj);
2203  sobj = 0;
2204  }
2205  }
2206  return (PyObject *) sobj;
2207 }
2208 
2209 SWIGRUNTIME swig_type_info *
2210 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2211 {
2212  if (SwigPyPacked_Check(obj)) {
2213  SwigPyPacked *sobj = (SwigPyPacked *)obj;
2214  if (sobj->size != size) return 0;
2215  memcpy(ptr, sobj->pack, size);
2216  return sobj->ty;
2217  } else {
2218  return 0;
2219  }
2220 }
2221 
2222 /* -----------------------------------------------------------------------------
2223  * pointers/data manipulation
2224  * ----------------------------------------------------------------------------- */
2225 
2226 SWIGRUNTIMEINLINE PyObject *
2227 _SWIG_This(void)
2228 {
2229  return SWIG_Python_str_FromChar("this");
2230 }
2231 
2232 static PyObject *swig_this = NULL;
2233 
2234 SWIGRUNTIME PyObject *
2235 SWIG_This(void)
2236 {
2237  if (swig_this == NULL)
2238  swig_this = _SWIG_This();
2239  return swig_this;
2240 }
2241 
2242 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2243 
2244 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2245 #if PY_VERSION_HEX>=0x03000000
2246 #define SWIG_PYTHON_SLOW_GETSET_THIS
2247 #endif
2248 
2249 SWIGRUNTIME SwigPyObject *
2250 SWIG_Python_GetSwigThis(PyObject *pyobj)
2251 {
2252  PyObject *obj;
2253 
2254  if (SwigPyObject_Check(pyobj))
2255  return (SwigPyObject *) pyobj;
2256 
2257 #ifdef SWIGPYTHON_BUILTIN
2258  (void)obj;
2259 # ifdef PyWeakref_CheckProxy
2260  if (PyWeakref_CheckProxy(pyobj)) {
2261  pyobj = PyWeakref_GET_OBJECT(pyobj);
2262  if (pyobj && SwigPyObject_Check(pyobj))
2263  return (SwigPyObject*) pyobj;
2264  }
2265 # endif
2266  return NULL;
2267 #else
2268 
2269  obj = 0;
2270 
2271 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2272  if (PyInstance_Check(pyobj)) {
2273  obj = _PyInstance_Lookup(pyobj, SWIG_This());
2274  } else {
2275  PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2276  if (dictptr != NULL) {
2277  PyObject *dict = *dictptr;
2278  obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2279  } else {
2280 #ifdef PyWeakref_CheckProxy
2281  if (PyWeakref_CheckProxy(pyobj)) {
2282  PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2283  return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2284  }
2285 #endif
2286  obj = PyObject_GetAttr(pyobj,SWIG_This());
2287  if (obj) {
2288  Py_DECREF(obj);
2289  } else {
2290  if (PyErr_Occurred()) PyErr_Clear();
2291  return 0;
2292  }
2293  }
2294  }
2295 #else
2296  obj = PyObject_GetAttr(pyobj,SWIG_This());
2297  if (obj) {
2298  Py_DECREF(obj);
2299  } else {
2300  if (PyErr_Occurred()) PyErr_Clear();
2301  return 0;
2302  }
2303 #endif
2304  if (obj && !SwigPyObject_Check(obj)) {
2305  /* a PyObject is called 'this', try to get the 'real this'
2306  SwigPyObject from it */
2307  return SWIG_Python_GetSwigThis(obj);
2308  }
2309  return (SwigPyObject *)obj;
2310 #endif
2311 }
2312 
2313 /* Acquire a pointer value */
2314 
2315 SWIGRUNTIME int
2316 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2317  if (own == SWIG_POINTER_OWN) {
2318  SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2319  if (sobj) {
2320  int oldown = sobj->own;
2321  sobj->own = own;
2322  return oldown;
2323  }
2324  }
2325  return 0;
2326 }
2327 
2328 /* Convert a pointer value */
2329 
2330 SWIGRUNTIME int
2331 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2332  int res;
2333  SwigPyObject *sobj;
2334  int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2335 
2336  if (!obj)
2337  return SWIG_ERROR;
2338  if (obj == Py_None && !implicit_conv) {
2339  if (ptr)
2340  *ptr = 0;
2341  return SWIG_OK;
2342  }
2343 
2344  res = SWIG_ERROR;
2345 
2346  sobj = SWIG_Python_GetSwigThis(obj);
2347  if (own)
2348  *own = 0;
2349  while (sobj) {
2350  void *vptr = sobj->ptr;
2351  if (ty) {
2352  swig_type_info *to = sobj->ty;
2353  if (to == ty) {
2354  /* no type cast needed */
2355  if (ptr) *ptr = vptr;
2356  break;
2357  } else {
2358  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2359  if (!tc) {
2360  sobj = (SwigPyObject *)sobj->next;
2361  } else {
2362  if (ptr) {
2363  int newmemory = 0;
2364  *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2365  if (newmemory == SWIG_CAST_NEW_MEMORY) {
2366  assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2367  if (own)
2368  *own = *own | SWIG_CAST_NEW_MEMORY;
2369  }
2370  }
2371  break;
2372  }
2373  }
2374  } else {
2375  if (ptr) *ptr = vptr;
2376  break;
2377  }
2378  }
2379  if (sobj) {
2380  if (own)
2381  *own = *own | sobj->own;
2382  if (flags & SWIG_POINTER_DISOWN) {
2383  sobj->own = 0;
2384  }
2385  res = SWIG_OK;
2386  } else {
2387  if (implicit_conv) {
2388  SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2389  if (data && !data->implicitconv) {
2390  PyObject *klass = data->klass;
2391  if (klass) {
2392  PyObject *impconv;
2393  data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2394  impconv = SWIG_Python_CallFunctor(klass, obj);
2395  data->implicitconv = 0;
2396  if (PyErr_Occurred()) {
2397  PyErr_Clear();
2398  impconv = 0;
2399  }
2400  if (impconv) {
2401  SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2402  if (iobj) {
2403  void *vptr;
2404  res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2405  if (SWIG_IsOK(res)) {
2406  if (ptr) {
2407  *ptr = vptr;
2408  /* transfer the ownership to 'ptr' */
2409  iobj->own = 0;
2410  res = SWIG_AddCast(res);
2411  res = SWIG_AddNewMask(res);
2412  } else {
2413  res = SWIG_AddCast(res);
2414  }
2415  }
2416  }
2417  Py_DECREF(impconv);
2418  }
2419  }
2420  }
2421  }
2422  if (!SWIG_IsOK(res) && obj == Py_None) {
2423  if (ptr)
2424  *ptr = 0;
2425  if (PyErr_Occurred())
2426  PyErr_Clear();
2427  res = SWIG_OK;
2428  }
2429  }
2430  return res;
2431 }
2432 
2433 /* Convert a function ptr value */
2434 
2435 SWIGRUNTIME int
2436 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2437  if (!PyCFunction_Check(obj)) {
2438  return SWIG_ConvertPtr(obj, ptr, ty, 0);
2439  } else {
2440  void *vptr = 0;
2441 
2442  /* here we get the method pointer for callbacks */
2443  const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2444  const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2445  if (desc)
2446  desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2447  if (!desc)
2448  return SWIG_ERROR;
2449  if (ty) {
2450  swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2451  if (tc) {
2452  int newmemory = 0;
2453  *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2454  assert(!newmemory); /* newmemory handling not yet implemented */
2455  } else {
2456  return SWIG_ERROR;
2457  }
2458  } else {
2459  *ptr = vptr;
2460  }
2461  return SWIG_OK;
2462  }
2463 }
2464 
2465 /* Convert a packed value value */
2466 
2467 SWIGRUNTIME int
2468 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2469  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2470  if (!to) return SWIG_ERROR;
2471  if (ty) {
2472  if (to != ty) {
2473  /* check type cast? */
2474  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2475  if (!tc) return SWIG_ERROR;
2476  }
2477  }
2478  return SWIG_OK;
2479 }
2480 
2481 /* -----------------------------------------------------------------------------
2482  * Create a new pointer object
2483  * ----------------------------------------------------------------------------- */
2484 
2485 /*
2486  Create a new instance object, without calling __init__, and set the
2487  'this' attribute.
2488 */
2489 
2490 SWIGRUNTIME PyObject*
2491 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2492 {
2493 #if (PY_VERSION_HEX >= 0x02020000)
2494  PyObject *inst = 0;
2495  PyObject *newraw = data->newraw;
2496  if (newraw) {
2497  inst = PyObject_Call(newraw, data->newargs, NULL);
2498  if (inst) {
2499 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2500  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2501  if (dictptr != NULL) {
2502  PyObject *dict = *dictptr;
2503  if (dict == NULL) {
2504  dict = PyDict_New();
2505  *dictptr = dict;
2506  PyDict_SetItem(dict, SWIG_This(), swig_this);
2507  }
2508  }
2509 #else
2510  PyObject *key = SWIG_This();
2511  PyObject_SetAttr(inst, key, swig_this);
2512 #endif
2513  }
2514  } else {
2515 #if PY_VERSION_HEX >= 0x03000000
2516  inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2517  if (inst) {
2518  PyObject_SetAttr(inst, SWIG_This(), swig_this);
2519  Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2520  }
2521 #else
2522  PyObject *dict = PyDict_New();
2523  if (dict) {
2524  PyDict_SetItem(dict, SWIG_This(), swig_this);
2525  inst = PyInstance_NewRaw(data->newargs, dict);
2526  Py_DECREF(dict);
2527  }
2528 #endif
2529  }
2530  return inst;
2531 #else
2532 #if (PY_VERSION_HEX >= 0x02010000)
2533  PyObject *inst = 0;
2534  PyObject *dict = PyDict_New();
2535  if (dict) {
2536  PyDict_SetItem(dict, SWIG_This(), swig_this);
2537  inst = PyInstance_NewRaw(data->newargs, dict);
2538  Py_DECREF(dict);
2539  }
2540  return (PyObject *) inst;
2541 #else
2542  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2543  if (inst == NULL) {
2544  return NULL;
2545  }
2546  inst->in_class = (PyClassObject *)data->newargs;
2547  Py_INCREF(inst->in_class);
2548  inst->in_dict = PyDict_New();
2549  if (inst->in_dict == NULL) {
2550  Py_DECREF(inst);
2551  return NULL;
2552  }
2553 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2554  inst->in_weakreflist = NULL;
2555 #endif
2556 #ifdef Py_TPFLAGS_GC
2557  PyObject_GC_Init(inst);
2558 #endif
2559  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2560  return (PyObject *) inst;
2561 #endif
2562 #endif
2563 }
2564 
2565 SWIGRUNTIME void
2566 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2567 {
2568  PyObject *dict;
2569 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2570  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2571  if (dictptr != NULL) {
2572  dict = *dictptr;
2573  if (dict == NULL) {
2574  dict = PyDict_New();
2575  *dictptr = dict;
2576  }
2577  PyDict_SetItem(dict, SWIG_This(), swig_this);
2578  return;
2579  }
2580 #endif
2581  dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2582  PyDict_SetItem(dict, SWIG_This(), swig_this);
2583  Py_DECREF(dict);
2584 }
2585 
2586 
2587 SWIGINTERN PyObject *
2588 SWIG_Python_InitShadowInstance(PyObject *args) {
2589  PyObject *obj[2];
2590  if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2591  return NULL;
2592  } else {
2593  SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2594  if (sthis) {
2595  SwigPyObject_append((PyObject*) sthis, obj[1]);
2596  } else {
2597  SWIG_Python_SetSwigThis(obj[0], obj[1]);
2598  }
2599  return SWIG_Py_Void();
2600  }
2601 }
2602 
2603 /* Create a new pointer object */
2604 
2605 SWIGRUNTIME PyObject *
2606 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2607  SwigPyClientData *clientdata;
2608  PyObject * robj;
2609  int own;
2610 
2611  if (!ptr)
2612  return SWIG_Py_Void();
2613 
2614  clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2615  own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2616  if (clientdata && clientdata->pytype) {
2617  SwigPyObject *newobj;
2618  if (flags & SWIG_BUILTIN_TP_INIT) {
2619  newobj = (SwigPyObject*) self;
2620  if (newobj->ptr) {
2621  PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2622  while (newobj->next)
2623  newobj = (SwigPyObject *) newobj->next;
2624  newobj->next = next_self;
2625  newobj = (SwigPyObject *)next_self;
2626 #ifdef SWIGPYTHON_BUILTIN
2627  newobj->dict = 0;
2628 #endif
2629  }
2630  } else {
2631  newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2632 #ifdef SWIGPYTHON_BUILTIN
2633  newobj->dict = 0;
2634 #endif
2635  }
2636  if (newobj) {
2637  newobj->ptr = ptr;
2638  newobj->ty = type;
2639  newobj->own = own;
2640  newobj->next = 0;
2641  return (PyObject*) newobj;
2642  }
2643  return SWIG_Py_Void();
2644  }
2645 
2646  assert(!(flags & SWIG_BUILTIN_TP_INIT));
2647 
2648  robj = SwigPyObject_New(ptr, type, own);
2649  if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2650  PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2651  Py_DECREF(robj);
2652  robj = inst;
2653  }
2654  return robj;
2655 }
2656 
2657 /* Create a new packed object */
2658 
2659 SWIGRUNTIMEINLINE PyObject *
2660 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2661  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2662 }
2663 
2664 /* -----------------------------------------------------------------------------*
2665  * Get type list
2666  * -----------------------------------------------------------------------------*/
2667 
2668 #ifdef SWIG_LINK_RUNTIME
2669 void *SWIG_ReturnGlobalTypeList(void *);
2670 #endif
2671 
2672 SWIGRUNTIME swig_module_info *
2673 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2674  static void *type_pointer = (void *)0;
2675  /* first check if module already created */
2676  if (!type_pointer) {
2677 #ifdef SWIG_LINK_RUNTIME
2678  type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2679 #else
2680 # ifdef SWIGPY_USE_CAPSULE
2681  type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2682 # else
2683  type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2684  (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2685 # endif
2686  if (PyErr_Occurred()) {
2687  PyErr_Clear();
2688  type_pointer = (void *)0;
2689  }
2690 #endif
2691  }
2692  return (swig_module_info *) type_pointer;
2693 }
2694 
2695 #if PY_MAJOR_VERSION < 2
2696 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2697  is copied out of Python/modsupport.c in python version 2.3.4 */
2698 SWIGINTERN int
2699 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2700 {
2701  PyObject *dict;
2702  if (!PyModule_Check(m)) {
2703  PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2704  return SWIG_ERROR;
2705  }
2706  if (!o) {
2707  PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2708  return SWIG_ERROR;
2709  }
2710 
2711  dict = PyModule_GetDict(m);
2712  if (dict == NULL) {
2713  /* Internal error -- modules must have a dict! */
2714  PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2715  PyModule_GetName(m));
2716  return SWIG_ERROR;
2717  }
2718  if (PyDict_SetItemString(dict, name, o))
2719  return SWIG_ERROR;
2720  Py_DECREF(o);
2721  return SWIG_OK;
2722 }
2723 #endif
2724 
2725 SWIGRUNTIME void
2726 #ifdef SWIGPY_USE_CAPSULE
2727 SWIG_Python_DestroyModule(PyObject *obj)
2728 #else
2729 SWIG_Python_DestroyModule(void *vptr)
2730 #endif
2731 {
2732 #ifdef SWIGPY_USE_CAPSULE
2733  swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2734 #else
2735  swig_module_info *swig_module = (swig_module_info *) vptr;
2736 #endif
2737  swig_type_info **types = swig_module->types;
2738  size_t i;
2739  for (i =0; i < swig_module->size; ++i) {
2740  swig_type_info *ty = types[i];
2741  if (ty->owndata) {
2742  SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2743  if (data) SwigPyClientData_Del(data);
2744  }
2745  }
2746  Py_DECREF(SWIG_This());
2747  swig_this = NULL;
2748 }
2749 
2750 SWIGRUNTIME void
2751 SWIG_Python_SetModule(swig_module_info *swig_module) {
2752 #if PY_VERSION_HEX >= 0x03000000
2753  /* Add a dummy module object into sys.modules */
2754  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
2755 #else
2756  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2757  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2758 #endif
2759 #ifdef SWIGPY_USE_CAPSULE
2760  PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2761  if (pointer && module) {
2762  PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2763  } else {
2764  Py_XDECREF(pointer);
2765  }
2766 #else
2767  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2768  if (pointer && module) {
2769  PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2770  } else {
2771  Py_XDECREF(pointer);
2772  }
2773 #endif
2774 }
2775 
2776 /* The python cached type query */
2777 SWIGRUNTIME PyObject *
2778 SWIG_Python_TypeCache(void) {
2779  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2780  return cache;
2781 }
2782 
2783 SWIGRUNTIME swig_type_info *
2784 SWIG_Python_TypeQuery(const char *type)
2785 {
2786  PyObject *cache = SWIG_Python_TypeCache();
2787  PyObject *key = SWIG_Python_str_FromChar(type);
2788  PyObject *obj = PyDict_GetItem(cache, key);
2789  swig_type_info *descriptor;
2790  if (obj) {
2791 #ifdef SWIGPY_USE_CAPSULE
2792  descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2793 #else
2794  descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2795 #endif
2796  } else {
2797  swig_module_info *swig_module = SWIG_GetModule(0);
2798  descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2799  if (descriptor) {
2800 #ifdef SWIGPY_USE_CAPSULE
2801  obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2802 #else
2803  obj = PyCObject_FromVoidPtr(descriptor, NULL);
2804 #endif
2805  PyDict_SetItem(cache, key, obj);
2806  Py_DECREF(obj);
2807  }
2808  }
2809  Py_DECREF(key);
2810  return descriptor;
2811 }
2812 
2813 /*
2814  For backward compatibility only
2815 */
2816 #define SWIG_POINTER_EXCEPTION 0
2817 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2818 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2819 
2820 SWIGRUNTIME int
2821 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2822 {
2823  if (PyErr_Occurred()) {
2824  PyObject *type = 0;
2825  PyObject *value = 0;
2826  PyObject *traceback = 0;
2827  PyErr_Fetch(&type, &value, &traceback);
2828  if (value) {
2829  char *tmp;
2830  PyObject *old_str = PyObject_Str(value);
2831  Py_XINCREF(type);
2832  PyErr_Clear();
2833  if (infront) {
2834  PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2835  } else {
2836  PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2837  }
2838  SWIG_Python_str_DelForPy3(tmp);
2839  Py_DECREF(old_str);
2840  }
2841  return 1;
2842  } else {
2843  return 0;
2844  }
2845 }
2846 
2847 SWIGRUNTIME int
2848 SWIG_Python_ArgFail(int argnum)
2849 {
2850  if (PyErr_Occurred()) {
2851  /* add information about failing argument */
2852  char mesg[256];
2853  PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2854  return SWIG_Python_AddErrMesg(mesg, 1);
2855  } else {
2856  return 0;
2857  }
2858 }
2859 
2860 SWIGRUNTIMEINLINE const char *
2861 SwigPyObject_GetDesc(PyObject *self)
2862 {
2863  SwigPyObject *v = (SwigPyObject *)self;
2864  swig_type_info *ty = v ? v->ty : 0;
2865  return ty ? ty->str : "";
2866 }
2867 
2868 SWIGRUNTIME void
2869 SWIG_Python_TypeError(const char *type, PyObject *obj)
2870 {
2871  if (type) {
2872 #if defined(SWIG_COBJECT_TYPES)
2873  if (obj && SwigPyObject_Check(obj)) {
2874  const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2875  if (otype) {
2876  PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2877  type, otype);
2878  return;
2879  }
2880  } else
2881 #endif
2882  {
2883  const char *otype = (obj ? obj->ob_type->tp_name : 0);
2884  if (otype) {
2885  PyObject *str = PyObject_Str(obj);
2886  const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2887  if (cstr) {
2888  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2889  type, otype, cstr);
2890  SWIG_Python_str_DelForPy3(cstr);
2891  } else {
2892  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2893  type, otype);
2894  }
2895  Py_XDECREF(str);
2896  return;
2897  }
2898  }
2899  PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2900  } else {
2901  PyErr_Format(PyExc_TypeError, "unexpected type is received");
2902  }
2903 }
2904 
2905 
2906 /* Convert a pointer value, signal an exception on a type mismatch */
2907 SWIGRUNTIME void *
2908 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2909  void *result;
2910  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2911  PyErr_Clear();
2912 #if SWIG_POINTER_EXCEPTION
2913  if (flags) {
2914  SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2915  SWIG_Python_ArgFail(argnum);
2916  }
2917 #endif
2918  }
2919  return result;
2920 }
2921 
2922 #ifdef SWIGPYTHON_BUILTIN
2923 SWIGRUNTIME int
2924 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2925  PyTypeObject *tp = obj->ob_type;
2926  PyObject *descr;
2927  PyObject *encoded_name;
2928  descrsetfunc f;
2929  int res = -1;
2930 
2931 # ifdef Py_USING_UNICODE
2932  if (PyString_Check(name)) {
2933  name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2934  if (!name)
2935  return -1;
2936  } else if (!PyUnicode_Check(name))
2937 # else
2938  if (!PyString_Check(name))
2939 # endif
2940  {
2941  PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2942  return -1;
2943  } else {
2944  Py_INCREF(name);
2945  }
2946 
2947  if (!tp->tp_dict) {
2948  if (PyType_Ready(tp) < 0)
2949  goto done;
2950  }
2951 
2952  descr = _PyType_Lookup(tp, name);
2953  f = NULL;
2954  if (descr != NULL)
2955  f = descr->ob_type->tp_descr_set;
2956  if (!f) {
2957  if (PyString_Check(name)) {
2958  encoded_name = name;
2959  Py_INCREF(name);
2960  } else {
2961  encoded_name = PyUnicode_AsUTF8String(name);
2962  }
2963  PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2964  Py_DECREF(encoded_name);
2965  } else {
2966  res = f(descr, obj, value);
2967  }
2968 
2969  done:
2970  Py_DECREF(name);
2971  return res;
2972 }
2973 #endif
2974 
2975 
2976 #ifdef __cplusplus
2977 }
2978 #endif
2979 
2980 
2981 
2982 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2983 
2984 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2985 
2986 
2987 
2988 /* -------- TYPES TABLE (BEGIN) -------- */
2989 
2990 #define SWIGTYPE_p_BsClientAppInfo_T swig_types[0]
2991 #define SWIGTYPE_p_BsClientConnState_T swig_types[1]
2992 #define SWIGTYPE_p_BsProxyMsgHdr_T swig_types[2]
2993 #define SWIGTYPE_p_BsVConnInfo_T swig_types[3]
2994 #define SWIGTYPE_p_BsVecHandles_T swig_types[4]
2995 #define SWIGTYPE_p__bsClientStruct swig_types[5]
2996 #define SWIGTYPE_p_char swig_types[6]
2997 #define SWIGTYPE_p_f_p_struct__bsClientStruct_int_unsigned_int__p_char swig_types[7]
2998 #define SWIGTYPE_p_int swig_types[8]
2999 #define SWIGTYPE_p_unsigned_char swig_types[9]
3000 #define SWIGTYPE_p_unsigned_int swig_types[10]
3001 #define SWIGTYPE_p_unsigned_long swig_types[11]
3002 #define SWIGTYPE_p_unsigned_short swig_types[12]
3003 static swig_type_info *swig_types[14];
3004 static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
3005 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3006 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3007 
3008 /* -------- TYPES TABLE (END) -------- */
3009 
3010 #if (PY_VERSION_HEX <= 0x02000000)
3011 # if !defined(SWIG_PYTHON_CLASSIC)
3012 # error "This python version requires swig to be run with the '-classic' option"
3013 # endif
3014 #endif
3015 
3016 /*-----------------------------------------------
3017  @(target):= _BotSenseCore.so
3018  ------------------------------------------------*/
3019 #if PY_VERSION_HEX >= 0x03000000
3020 # define SWIG_init PyInit__BotSenseCore
3021 
3022 #else
3023 # define SWIG_init init_BotSenseCore
3024 
3025 #endif
3026 #define SWIG_name "_BotSenseCore"
3027 
3028 #define SWIGVERSION 0x030008
3029 #define SWIG_VERSION SWIGVERSION
3030 
3031 
3032 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
3033 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
3034 
3035 
3036 #include "botsense/BotSense.h"
3037 #include "botsense/libBotSense.h"
3038 /* RDK add mod i/f here */
3039 
3040 
3041 SWIGINTERNINLINE PyObject*
3042  SWIG_From_int (int value)
3043 {
3044  return PyInt_FromLong((long) value);
3045 }
3046 
3047 
3048 SWIGINTERN swig_type_info*
3049 SWIG_pchar_descriptor(void)
3050 {
3051  static int init = 0;
3052  static swig_type_info* info = 0;
3053  if (!init) {
3054  info = SWIG_TypeQuery("_p_char");
3055  init = 1;
3056  }
3057  return info;
3058 }
3059 
3060 
3061 SWIGINTERNINLINE PyObject *
3062 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3063 {
3064  if (carray) {
3065  if (size > INT_MAX) {
3066  swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3067  return pchar_descriptor ?
3068  SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3069  } else {
3070 #if PY_VERSION_HEX >= 0x03000000
3071 #if PY_VERSION_HEX >= 0x03010000
3072  return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
3073 #else
3074  return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size));
3075 #endif
3076 #else
3077  return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3078 #endif
3079  }
3080  } else {
3081  return SWIG_Py_Void();
3082  }
3083 }
3084 
3085 
3086 SWIGINTERNINLINE PyObject *
3087 SWIG_FromCharPtr(const char *cptr)
3088 {
3089  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3090 }
3091 
3092 
3093 #include <limits.h>
3094 #if !defined(SWIG_NO_LLONG_MAX)
3095 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3096 # define LLONG_MAX __LONG_LONG_MAX__
3097 # define LLONG_MIN (-LLONG_MAX - 1LL)
3098 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3099 # endif
3100 #endif
3101 
3102 
3103 SWIGINTERN int
3104 SWIG_AsVal_double (PyObject *obj, double *val)
3105 {
3106  int res = SWIG_TypeError;
3107  if (PyFloat_Check(obj)) {
3108  if (val) *val = PyFloat_AsDouble(obj);
3109  return SWIG_OK;
3110 #if PY_VERSION_HEX < 0x03000000
3111  } else if (PyInt_Check(obj)) {
3112  if (val) *val = PyInt_AsLong(obj);
3113  return SWIG_OK;
3114 #endif
3115  } else if (PyLong_Check(obj)) {
3116  double v = PyLong_AsDouble(obj);
3117  if (!PyErr_Occurred()) {
3118  if (val) *val = v;
3119  return SWIG_OK;
3120  } else {
3121  PyErr_Clear();
3122  }
3123  }
3124 #ifdef SWIG_PYTHON_CAST_MODE
3125  {
3126  int dispatch = 0;
3127  double d = PyFloat_AsDouble(obj);
3128  if (!PyErr_Occurred()) {
3129  if (val) *val = d;
3130  return SWIG_AddCast(SWIG_OK);
3131  } else {
3132  PyErr_Clear();
3133  }
3134  if (!dispatch) {
3135  long v = PyLong_AsLong(obj);
3136  if (!PyErr_Occurred()) {
3137  if (val) *val = v;
3138  return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3139  } else {
3140  PyErr_Clear();
3141  }
3142  }
3143  }
3144 #endif
3145  return res;
3146 }
3147 
3148 
3149 #include <float.h>
3150 
3151 
3152 #include <math.h>
3153 
3154 
3155 SWIGINTERNINLINE int
3156 SWIG_CanCastAsInteger(double *d, double min, double max) {
3157  double x = *d;
3158  if ((min <= x && x <= max)) {
3159  double fx = floor(x);
3160  double cx = ceil(x);
3161  double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3162  if ((errno == EDOM) || (errno == ERANGE)) {
3163  errno = 0;
3164  } else {
3165  double summ, reps, diff;
3166  if (rd < x) {
3167  diff = x - rd;
3168  } else if (rd > x) {
3169  diff = rd - x;
3170  } else {
3171  return 1;
3172  }
3173  summ = rd + x;
3174  reps = diff/summ;
3175  if (reps < 8*DBL_EPSILON) {
3176  *d = rd;
3177  return 1;
3178  }
3179  }
3180  }
3181  return 0;
3182 }
3183 
3184 
3185 SWIGINTERN int
3186 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3187 {
3188 #if PY_VERSION_HEX < 0x03000000
3189  if (PyInt_Check(obj)) {
3190  long v = PyInt_AsLong(obj);
3191  if (v >= 0) {
3192  if (val) *val = v;
3193  return SWIG_OK;
3194  } else {
3195  return SWIG_OverflowError;
3196  }
3197  } else
3198 #endif
3199  if (PyLong_Check(obj)) {
3200  unsigned long v = PyLong_AsUnsignedLong(obj);
3201  if (!PyErr_Occurred()) {
3202  if (val) *val = v;
3203  return SWIG_OK;
3204  } else {
3205  PyErr_Clear();
3206  return SWIG_OverflowError;
3207  }
3208  }
3209 #ifdef SWIG_PYTHON_CAST_MODE
3210  {
3211  int dispatch = 0;
3212  unsigned long v = PyLong_AsUnsignedLong(obj);
3213  if (!PyErr_Occurred()) {
3214  if (val) *val = v;
3215  return SWIG_AddCast(SWIG_OK);
3216  } else {
3217  PyErr_Clear();
3218  }
3219  if (!dispatch) {
3220  double d;
3221  int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3222  if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3223  if (val) *val = (unsigned long)(d);
3224  return res;
3225  }
3226  }
3227  }
3228 #endif
3229  return SWIG_TypeError;
3230 }
3231 
3232 
3233 SWIGINTERN int
3234 SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val)
3235 {
3236  unsigned long v;
3237  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3238  if (SWIG_IsOK(res)) {
3239  if ((v > USHRT_MAX)) {
3240  return SWIG_OverflowError;
3241  } else {
3242  if (val) *val = (unsigned short)(v);
3243  }
3244  }
3245  return res;
3246 }
3247 
3248 
3249  #define SWIG_From_long PyLong_FromLong
3250 
3251 
3252 SWIGINTERNINLINE PyObject*
3253 SWIG_From_unsigned_SS_long (unsigned long value)
3254 {
3255  return (value > LONG_MAX) ?
3256  PyLong_FromUnsignedLong(value) : PyLong_FromLong((long)(value));
3257 }
3258 
3259 
3260 SWIGINTERNINLINE PyObject *
3261 SWIG_From_unsigned_SS_short (unsigned short value)
3262 {
3263  return SWIG_From_unsigned_SS_long (value);
3264 }
3265 
3266 
3267 SWIGINTERN int
3268 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
3269 {
3270  unsigned long v;
3271  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3272  if (SWIG_IsOK(res)) {
3273  if ((v > UCHAR_MAX)) {
3274  return SWIG_OverflowError;
3275  } else {
3276  if (val) *val = (unsigned char)(v);
3277  }
3278  }
3279  return res;
3280 }
3281 
3282 
3283 SWIGINTERNINLINE PyObject *
3284 SWIG_From_unsigned_SS_char (unsigned char value)
3285 {
3286  return SWIG_From_unsigned_SS_long (value);
3287 }
3288 
3289 
3290 SWIGINTERN int
3291 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3292 {
3293 #if PY_VERSION_HEX>=0x03000000
3294  if (PyUnicode_Check(obj))
3295 #else
3296  if (PyString_Check(obj))
3297 #endif
3298  {
3299  char *cstr; Py_ssize_t len;
3300 #if PY_VERSION_HEX>=0x03000000
3301  if (!alloc && cptr) {
3302  /* We can't allow converting without allocation, since the internal
3303  representation of string in Python 3 is UCS-2/UCS-4 but we require
3304  a UTF-8 representation.
3305  TODO(bhy) More detailed explanation */
3306  return SWIG_RuntimeError;
3307  }
3308  obj = PyUnicode_AsUTF8String(obj);
3309  PyBytes_AsStringAndSize(obj, &cstr, &len);
3310  if(alloc) *alloc = SWIG_NEWOBJ;
3311 #else
3312  PyString_AsStringAndSize(obj, &cstr, &len);
3313 #endif
3314  if (cptr) {
3315  if (alloc) {
3316  /*
3317  In python the user should not be able to modify the inner
3318  string representation. To warranty that, if you define
3319  SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3320  buffer is always returned.
3321 
3322  The default behavior is just to return the pointer value,
3323  so, be careful.
3324  */
3325 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3326  if (*alloc != SWIG_OLDOBJ)
3327 #else
3328  if (*alloc == SWIG_NEWOBJ)
3329 #endif
3330  {
3331  *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3332  *alloc = SWIG_NEWOBJ;
3333  } else {
3334  *cptr = cstr;
3335  *alloc = SWIG_OLDOBJ;
3336  }
3337  } else {
3338  #if PY_VERSION_HEX>=0x03000000
3339  assert(0); /* Should never reach here in Python 3 */
3340  #endif
3341  *cptr = SWIG_Python_str_AsChar(obj);
3342  }
3343  }
3344  if (psize) *psize = len + 1;
3345 #if PY_VERSION_HEX>=0x03000000
3346  Py_XDECREF(obj);
3347 #endif
3348  return SWIG_OK;
3349  } else {
3350 #if defined(SWIG_PYTHON_2_UNICODE)
3351 #if PY_VERSION_HEX<0x03000000
3352  if (PyUnicode_Check(obj)) {
3353  char *cstr; Py_ssize_t len;
3354  if (!alloc && cptr) {
3355  return SWIG_RuntimeError;
3356  }
3357  obj = PyUnicode_AsUTF8String(obj);
3358  if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3359  if (cptr) {
3360  if (alloc) *alloc = SWIG_NEWOBJ;
3361  *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3362  }
3363  if (psize) *psize = len + 1;
3364 
3365  Py_XDECREF(obj);
3366  return SWIG_OK;
3367  } else {
3368  Py_XDECREF(obj);
3369  }
3370  }
3371 #endif
3372 #endif
3373 
3374  swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3375  if (pchar_descriptor) {
3376  void* vptr = 0;
3377  if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3378  if (cptr) *cptr = (char *) vptr;
3379  if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3380  if (alloc) *alloc = SWIG_OLDOBJ;
3381  return SWIG_OK;
3382  }
3383  }
3384  }
3385  return SWIG_TypeError;
3386 }
3387 
3388 
3389 
3390 
3391 
3392 SWIGINTERN int
3393 SWIG_AsVal_long (PyObject *obj, long* val)
3394 {
3395 #if PY_VERSION_HEX < 0x03000000
3396  if (PyInt_Check(obj)) {
3397  if (val) *val = PyInt_AsLong(obj);
3398  return SWIG_OK;
3399  } else
3400 #endif
3401  if (PyLong_Check(obj)) {
3402  long v = PyLong_AsLong(obj);
3403  if (!PyErr_Occurred()) {
3404  if (val) *val = v;
3405  return SWIG_OK;
3406  } else {
3407  PyErr_Clear();
3408  return SWIG_OverflowError;
3409  }
3410  }
3411 #ifdef SWIG_PYTHON_CAST_MODE
3412  {
3413  int dispatch = 0;
3414  long v = PyInt_AsLong(obj);
3415  if (!PyErr_Occurred()) {
3416  if (val) *val = v;
3417  return SWIG_AddCast(SWIG_OK);
3418  } else {
3419  PyErr_Clear();
3420  }
3421  if (!dispatch) {
3422  double d;
3423  int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3424  if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3425  if (val) *val = (long)(d);
3426  return res;
3427  }
3428  }
3429  }
3430 #endif
3431  return SWIG_TypeError;
3432 }
3433 
3434 
3435 SWIGINTERN int
3436 SWIG_AsVal_int (PyObject * obj, int *val)
3437 {
3438  long v;
3439  int res = SWIG_AsVal_long (obj, &v);
3440  if (SWIG_IsOK(res)) {
3441  if ((v < INT_MIN || v > INT_MAX)) {
3442  return SWIG_OverflowError;
3443  } else {
3444  if (val) *val = (int)(v);
3445  }
3446  }
3447  return res;
3448 }
3449 
3450 
3451 SWIGINTERNINLINE int
3452 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3453 {
3454  unsigned long v;
3455  int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3456  if (SWIG_IsOK(res) && val) *val = (size_t)(v);
3457  return res;
3458 }
3459 
3460 
3461 SWIGINTERNINLINE PyObject *
3462 SWIG_From_size_t (size_t value)
3463 {
3464  return SWIG_From_unsigned_SS_long ((unsigned long)(value));
3465 }
3466 
3467 
3468 SWIGINTERN int
3469 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
3470 {
3471  char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
3472  int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3473  if (SWIG_IsOK(res)) {
3474  /* special case of single char conversion when we don't need space for NUL */
3475  if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
3476  if (csize <= size) {
3477  if (val) {
3478  if (csize) memcpy(val, cptr, csize*sizeof(char));
3479  if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
3480  }
3481  if (alloc == SWIG_NEWOBJ) {
3482  free((char*)cptr);
3483  res = SWIG_DelNewMask(res);
3484  }
3485  return res;
3486  }
3487  if (alloc == SWIG_NEWOBJ) free((char*)cptr);
3488  }
3489  return SWIG_TypeError;
3490 }
3491 
3492 
3493 size_t
3494 SWIG_strnlen(const char* s, size_t maxlen)
3495 {
3496  const char *p;
3497  for (p = s; maxlen-- && *p; p++)
3498  ;
3499  return p - s;
3500 }
3501 
3502 
3503 SWIGINTERN int
3504 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3505 {
3506  unsigned long v;
3507  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3508  if (SWIG_IsOK(res)) {
3509  if ((v > UINT_MAX)) {
3510  return SWIG_OverflowError;
3511  } else {
3512  if (val) *val = (unsigned int)(v);
3513  }
3514  }
3515  return res;
3516 }
3517 
3518 
3519  static byte_t *new_byteArray(size_t nelements) {
3520  return (byte_t *)malloc((nelements)*sizeof(byte_t));
3521  }
3522 
3523  static void delete_byteArray(byte_t *ary) {
3524  free((char*)ary);
3525  }
3526 
3527  static byte_t byteArray_getitem(byte_t *ary, size_t index) {
3528  return ary[index];
3529  }
3530  static void byteArray_setitem(byte_t *ary, size_t index, byte_t value) {
3531  ary[index] = value;
3532  }
3533 
3534 
3535  static BsVConnHnd_T *new_hndVConnArray(size_t nelements) {
3536  return (BsVConnHnd_T *)malloc((nelements)*sizeof(BsVConnHnd_T));
3537  }
3538 
3539  static void delete_hndVConnArray(BsVConnHnd_T *ary) {
3540  free((char*)ary);
3541  }
3542 
3543  static BsVConnHnd_T hndVConnArray_getitem(BsVConnHnd_T *ary, size_t index) {
3544  return ary[index];
3545  }
3546  static void hndVConnArray_setitem(BsVConnHnd_T *ary, size_t index, BsVConnHnd_T value) {
3547  ary[index] = value;
3548  }
3549 
3550 
3551  static uint_t *new_uintp() {
3552  return (uint_t *)malloc(sizeof(uint_t));
3553  }
3554 
3555  static uint_t *copy_uintp(uint_t value) {
3556  return (uint_t *)memcpy((uint_t *)malloc(sizeof(uint_t)),&value,sizeof(uint_t));
3557  }
3558 
3559  static void delete_uintp(uint_t *obj) {
3560  if (obj) free((char*)obj);
3561  }
3562 
3563  static void uintp_assign(uint_t *obj, uint_t value) {
3564  *obj = value;
3565  }
3566 
3567  static uint_t uintp_value(uint_t *obj) {
3568  return *obj;
3569  }
3570 
3571 
3572 SWIGINTERNINLINE PyObject*
3573  SWIG_From_unsigned_SS_int (unsigned int value)
3574 {
3575  return PyInt_FromSize_t((size_t) value);
3576 }
3577 
3578 #ifdef __cplusplus
3579 extern "C" {
3580 #endif
3581 SWIGINTERN PyObject *BS_OK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3582  PyObject *module;
3583  PyObject *d;
3584  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3585  d = PyModule_GetDict(module);
3586  if (!d) return NULL;
3587  SWIG_Python_SetConstant(d, "BS_OK",SWIG_From_int((int)(0)));
3588  return SWIG_Py_Void();
3589 }
3590 
3591 
3592 SWIGINTERN PyObject *BS_ECODE_GEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3593  PyObject *module;
3594  PyObject *d;
3595  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3596  d = PyModule_GetDict(module);
3597  if (!d) return NULL;
3598  SWIG_Python_SetConstant(d, "BS_ECODE_GEN",SWIG_From_int((int)(1)));
3599  return SWIG_Py_Void();
3600 }
3601 
3602 
3603 SWIGINTERN PyObject *BS_ECODE_BAD_RECV_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3604  PyObject *module;
3605  PyObject *d;
3606  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3607  d = PyModule_GetDict(module);
3608  if (!d) return NULL;
3609  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_RECV",SWIG_From_int((int)(2)));
3610  return SWIG_Py_Void();
3611 }
3612 
3613 
3614 SWIGINTERN PyObject *BS_ECODE_BAD_SEND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3615  PyObject *module;
3616  PyObject *d;
3617  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3618  d = PyModule_GetDict(module);
3619  if (!d) return NULL;
3620  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_SEND",SWIG_From_int((int)(3)));
3621  return SWIG_Py_Void();
3622 }
3623 
3624 
3625 SWIGINTERN PyObject *BS_ECODE_BAD_RESYNC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3626  PyObject *module;
3627  PyObject *d;
3628  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3629  d = PyModule_GetDict(module);
3630  if (!d) return NULL;
3631  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_RESYNC",SWIG_From_int((int)(4)));
3632  return SWIG_Py_Void();
3633 }
3634 
3635 
3636 SWIGINTERN PyObject *BS_ECODE_MSG_BAD_HDR_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3637  PyObject *module;
3638  PyObject *d;
3639  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3640  d = PyModule_GetDict(module);
3641  if (!d) return NULL;
3642  SWIG_Python_SetConstant(d, "BS_ECODE_MSG_BAD_HDR",SWIG_From_int((int)(5)));
3643  return SWIG_Py_Void();
3644 }
3645 
3646 
3647 SWIGINTERN PyObject *BS_ECODE_MSG_FRAG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3648  PyObject *module;
3649  PyObject *d;
3650  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3651  d = PyModule_GetDict(module);
3652  if (!d) return NULL;
3653  SWIG_Python_SetConstant(d, "BS_ECODE_MSG_FRAG",SWIG_From_int((int)(6)));
3654  return SWIG_Py_Void();
3655 }
3656 
3657 
3658 SWIGINTERN PyObject *BS_ECODE_MSG_TOO_BIG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3659  PyObject *module;
3660  PyObject *d;
3661  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3662  d = PyModule_GetDict(module);
3663  if (!d) return NULL;
3664  SWIG_Python_SetConstant(d, "BS_ECODE_MSG_TOO_BIG",SWIG_From_int((int)(7)));
3665  return SWIG_Py_Void();
3666 }
3667 
3668 
3669 SWIGINTERN PyObject *BS_ECODE_BUF_TOO_SMALL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3670  PyObject *module;
3671  PyObject *d;
3672  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3673  d = PyModule_GetDict(module);
3674  if (!d) return NULL;
3675  SWIG_Python_SetConstant(d, "BS_ECODE_BUF_TOO_SMALL",SWIG_From_int((int)(8)));
3676  return SWIG_Py_Void();
3677 }
3678 
3679 
3680 SWIGINTERN PyObject *BS_ECODE_BAD_MSG_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3681  PyObject *module;
3682  PyObject *d;
3683  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3684  d = PyModule_GetDict(module);
3685  if (!d) return NULL;
3686  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_MSG",SWIG_From_int((int)(9)));
3687  return SWIG_Py_Void();
3688 }
3689 
3690 
3691 SWIGINTERN PyObject *BS_ECODE_BAD_VAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3692  PyObject *module;
3693  PyObject *d;
3694  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3695  d = PyModule_GetDict(module);
3696  if (!d) return NULL;
3697  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_VAL",SWIG_From_int((int)(10)));
3698  return SWIG_Py_Void();
3699 }
3700 
3701 
3702 SWIGINTERN PyObject *BS_ECODE_MSG_BAD_TID_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3703  PyObject *module;
3704  PyObject *d;
3705  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3706  d = PyModule_GetDict(module);
3707  if (!d) return NULL;
3708  SWIG_Python_SetConstant(d, "BS_ECODE_MSG_BAD_TID",SWIG_From_int((int)(11)));
3709  return SWIG_Py_Void();
3710 }
3711 
3712 
3713 SWIGINTERN PyObject *BS_ECODE_BAD_VCONN_HND_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3714  PyObject *module;
3715  PyObject *d;
3716  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3717  d = PyModule_GetDict(module);
3718  if (!d) return NULL;
3719  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_VCONN_HND",SWIG_From_int((int)(12)));
3720  return SWIG_Py_Void();
3721 }
3722 
3723 
3724 SWIGINTERN PyObject *BS_ECODE_NO_VCONN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3725  PyObject *module;
3726  PyObject *d;
3727  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3728  d = PyModule_GetDict(module);
3729  if (!d) return NULL;
3730  SWIG_Python_SetConstant(d, "BS_ECODE_NO_VCONN",SWIG_From_int((int)(13)));
3731  return SWIG_Py_Void();
3732 }
3733 
3734 
3735 SWIGINTERN PyObject *BS_ECODE_UNKNOWN_REQ_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3736  PyObject *module;
3737  PyObject *d;
3738  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3739  d = PyModule_GetDict(module);
3740  if (!d) return NULL;
3741  SWIG_Python_SetConstant(d, "BS_ECODE_UNKNOWN_REQ",SWIG_From_int((int)(14)));
3742  return SWIG_Py_Void();
3743 }
3744 
3745 
3746 SWIGINTERN PyObject *BS_ECODE_NO_DEV_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3747  PyObject *module;
3748  PyObject *d;
3749  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3750  d = PyModule_GetDict(module);
3751  if (!d) return NULL;
3752  SWIG_Python_SetConstant(d, "BS_ECODE_NO_DEV",SWIG_From_int((int)(15)));
3753  return SWIG_Py_Void();
3754 }
3755 
3756 
3757 SWIGINTERN PyObject *BS_ECODE_NO_MOD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758  PyObject *module;
3759  PyObject *d;
3760  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3761  d = PyModule_GetDict(module);
3762  if (!d) return NULL;
3763  SWIG_Python_SetConstant(d, "BS_ECODE_NO_MOD",SWIG_From_int((int)(16)));
3764  return SWIG_Py_Void();
3765 }
3766 
3767 
3768 SWIGINTERN PyObject *BS_ECODE_BAD_MOD_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3769  PyObject *module;
3770  PyObject *d;
3771  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3772  d = PyModule_GetDict(module);
3773  if (!d) return NULL;
3774  SWIG_Python_SetConstant(d, "BS_ECODE_BAD_MOD",SWIG_From_int((int)(17)));
3775  return SWIG_Py_Void();
3776 }
3777 
3778 
3779 SWIGINTERN PyObject *BS_ECODE_NO_RSRC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3780  PyObject *module;
3781  PyObject *d;
3782  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3783  d = PyModule_GetDict(module);
3784  if (!d) return NULL;
3785  SWIG_Python_SetConstant(d, "BS_ECODE_NO_RSRC",SWIG_From_int((int)(18)));
3786  return SWIG_Py_Void();
3787 }
3788 
3789 
3790 SWIGINTERN PyObject *BS_ECODE_BUSY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3791  PyObject *module;
3792  PyObject *d;
3793  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3794  d = PyModule_GetDict(module);
3795  if (!d) return NULL;
3796  SWIG_Python_SetConstant(d, "BS_ECODE_BUSY",SWIG_From_int((int)(19)));
3797  return SWIG_Py_Void();
3798 }
3799 
3800 
3801 SWIGINTERN PyObject *BS_ECODE_TIMEDOUT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3802  PyObject *module;
3803  PyObject *d;
3804  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3805  d = PyModule_GetDict(module);
3806  if (!d) return NULL;
3807  SWIG_Python_SetConstant(d, "BS_ECODE_TIMEDOUT",SWIG_From_int((int)(20)));
3808  return SWIG_Py_Void();
3809 }
3810 
3811 
3812 SWIGINTERN PyObject *BS_ECODE_NO_EXEC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3813  PyObject *module;
3814  PyObject *d;
3815  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3816  d = PyModule_GetDict(module);
3817  if (!d) return NULL;
3818  SWIG_Python_SetConstant(d, "BS_ECODE_NO_EXEC",SWIG_From_int((int)(21)));
3819  return SWIG_Py_Void();
3820 }
3821 
3822 
3823 SWIGINTERN PyObject *BS_ECODE_SERVER_CONN_FAIL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3824  PyObject *module;
3825  PyObject *d;
3826  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3827  d = PyModule_GetDict(module);
3828  if (!d) return NULL;
3829  SWIG_Python_SetConstant(d, "BS_ECODE_SERVER_CONN_FAIL",SWIG_From_int((int)(22)));
3830  return SWIG_Py_Void();
3831 }
3832 
3833 
3834 SWIGINTERN PyObject *BS_ECODE_SERVER_CONN_DENY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3835  PyObject *module;
3836  PyObject *d;
3837  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3838  d = PyModule_GetDict(module);
3839  if (!d) return NULL;
3840  SWIG_Python_SetConstant(d, "BS_ECODE_SERVER_CONN_DENY",SWIG_From_int((int)(23)));
3841  return SWIG_Py_Void();
3842 }
3843 
3844 
3845 SWIGINTERN PyObject *BS_ECODE_SERVER_BAD_CLIENT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3846  PyObject *module;
3847  PyObject *d;
3848  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3849  d = PyModule_GetDict(module);
3850  if (!d) return NULL;
3851  SWIG_Python_SetConstant(d, "BS_ECODE_SERVER_BAD_CLIENT",SWIG_From_int((int)(24)));
3852  return SWIG_Py_Void();
3853 }
3854 
3855 
3856 SWIGINTERN PyObject *BS_ECODE_SYS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3857  PyObject *module;
3858  PyObject *d;
3859  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3860  d = PyModule_GetDict(module);
3861  if (!d) return NULL;
3862  SWIG_Python_SetConstant(d, "BS_ECODE_SYS",SWIG_From_int((int)(25)));
3863  return SWIG_Py_Void();
3864 }
3865 
3866 
3867 SWIGINTERN PyObject *BS_ECODE_INTERNAL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3868  PyObject *module;
3869  PyObject *d;
3870  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3871  d = PyModule_GetDict(module);
3872  if (!d) return NULL;
3873  SWIG_Python_SetConstant(d, "BS_ECODE_INTERNAL",SWIG_From_int((int)(26)));
3874  return SWIG_Py_Void();
3875 }
3876 
3877 
3878 SWIGINTERN PyObject *BS_ECODE_BADEC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3879  PyObject *module;
3880  PyObject *d;
3881  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3882  d = PyModule_GetDict(module);
3883  if (!d) return NULL;
3884  SWIG_Python_SetConstant(d, "BS_ECODE_BADEC",SWIG_From_int((int)(27)));
3885  return SWIG_Py_Void();
3886 }
3887 
3888 
3889 SWIGINTERN PyObject *BS_ECODE_NUMOF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890  PyObject *module;
3891  PyObject *d;
3892  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3893  d = PyModule_GetDict(module);
3894  if (!d) return NULL;
3895  SWIG_Python_SetConstant(d, "BS_ECODE_NUMOF",SWIG_From_int((int)(28)));
3896  return SWIG_Py_Void();
3897 }
3898 
3899 
3900 SWIGINTERN PyObject *BSPROXY_URI_SCHEME_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3901  PyObject *module;
3902  PyObject *d;
3903  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3904  d = PyModule_GetDict(module);
3905  if (!d) return NULL;
3906  SWIG_Python_SetConstant(d, "BSPROXY_URI_SCHEME",SWIG_FromCharPtr("botsense"));
3907  return SWIG_Py_Void();
3908 }
3909 
3910 
3911 SWIGINTERN PyObject *BSPROXY_URI_HOSTNAME_DFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3912  PyObject *module;
3913  PyObject *d;
3914  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3915  d = PyModule_GetDict(module);
3916  if (!d) return NULL;
3917  SWIG_Python_SetConstant(d, "BSPROXY_URI_HOSTNAME_DFT",SWIG_FromCharPtr("localhost"));
3918  return SWIG_Py_Void();
3919 }
3920 
3921 
3922 SWIGINTERN PyObject *BSPROXY_LISTEN_PORT_DFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3923  PyObject *module;
3924  PyObject *d;
3925  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3926  d = PyModule_GetDict(module);
3927  if (!d) return NULL;
3928  SWIG_Python_SetConstant(d, "BSPROXY_LISTEN_PORT_DFT",SWIG_From_int((int)(9195)));
3929  return SWIG_Py_Void();
3930 }
3931 
3932 
3933 SWIGINTERN PyObject *BSPROXY_REG_CLIENT_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3934  PyObject *module;
3935  PyObject *d;
3936  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3937  d = PyModule_GetDict(module);
3938  if (!d) return NULL;
3939  SWIG_Python_SetConstant(d, "BSPROXY_REG_CLIENT_MAX",SWIG_From_int((int)(16)));
3940  return SWIG_Py_Void();
3941 }
3942 
3943 
3944 SWIGINTERN PyObject *BSPROXY_VCONN_CLIENT_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945  PyObject *module;
3946  PyObject *d;
3947  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3948  d = PyModule_GetDict(module);
3949  if (!d) return NULL;
3950  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_CLIENT_MAX",SWIG_From_int((int)(16)));
3951  return SWIG_Py_Void();
3952 }
3953 
3954 
3955 SWIGINTERN PyObject *BSPROXY_MSG_BODY_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3956  PyObject *module;
3957  PyObject *d;
3958  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3959  d = PyModule_GetDict(module);
3960  if (!d) return NULL;
3961  SWIG_Python_SetConstant(d, "BSPROXY_MSG_BODY_MAX",SWIG_From_int((int)(2048)));
3962  return SWIG_Py_Void();
3963 }
3964 
3965 
3966 SWIGINTERN PyObject *BSPROXY_VCONN_MASK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967  PyObject *module;
3968  PyObject *d;
3969  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3970  d = PyModule_GetDict(module);
3971  if (!d) return NULL;
3972  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MASK",SWIG_From_int((int)(0xff)));
3973  return SWIG_Py_Void();
3974 }
3975 
3976 
3977 SWIGINTERN PyObject *BSPROXY_VCONN_UNDEF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978  PyObject *module;
3979  PyObject *d;
3980  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3981  d = PyModule_GetDict(module);
3982  if (!d) return NULL;
3983  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_UNDEF",SWIG_From_int((int)(255)));
3984  return SWIG_Py_Void();
3985 }
3986 
3987 
3988 SWIGINTERN PyObject *BSPROXY_VCONN_SERVER_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3989  PyObject *module;
3990  PyObject *d;
3991  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3992  d = PyModule_GetDict(module);
3993  if (!d) return NULL;
3994  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_SERVER",SWIG_From_int((int)(254)));
3995  return SWIG_Py_Void();
3996 }
3997 
3998 
3999 SWIGINTERN PyObject *BSPROXY_VCONN_MOD_MIN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000  PyObject *module;
4001  PyObject *d;
4002  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4003  d = PyModule_GetDict(module);
4004  if (!d) return NULL;
4005  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MOD_MIN",SWIG_From_int((int)(0)));
4006  return SWIG_Py_Void();
4007 }
4008 
4009 
4010 SWIGINTERN PyObject *BSPROXY_VCONN_MOD_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011  PyObject *module;
4012  PyObject *d;
4013  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4014  d = PyModule_GetDict(module);
4015  if (!d) return NULL;
4016  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MOD_MAX",SWIG_From_int((int)(253)));
4017  return SWIG_Py_Void();
4018 }
4019 
4020 
4021 SWIGINTERN PyObject *BSPROXY_VCONN_MOD_NUMOF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022  PyObject *module;
4023  PyObject *d;
4024  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4025  d = PyModule_GetDict(module);
4026  if (!d) return NULL;
4027  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MOD_NUMOF",SWIG_From_int((int)(254)));
4028  return SWIG_Py_Void();
4029 }
4030 
4031 
4032 SWIGINTERN PyObject *BSPROXY_VCONN_NUMOF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033  PyObject *module;
4034  PyObject *d;
4035  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4036  d = PyModule_GetDict(module);
4037  if (!d) return NULL;
4038  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_NUMOF",SWIG_From_int((int)((254+1))));
4039  return SWIG_Py_Void();
4040 }
4041 
4042 
4043 SWIGINTERN PyObject *BSPROXY_VCONN_MIN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4044  PyObject *module;
4045  PyObject *d;
4046  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4047  d = PyModule_GetDict(module);
4048  if (!d) return NULL;
4049  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MIN",SWIG_From_int((int)((0))));
4050  return SWIG_Py_Void();
4051 }
4052 
4053 
4054 SWIGINTERN PyObject *BSPROXY_VCONN_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4055  PyObject *module;
4056  PyObject *d;
4057  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4058  d = PyModule_GetDict(module);
4059  if (!d) return NULL;
4060  SWIG_Python_SetConstant(d, "BSPROXY_VCONN_MAX",SWIG_From_int((int)((254))));
4061  return SWIG_Py_Void();
4062 }
4063 
4064 
4065 SWIGINTERN PyObject *BSPROXY_TID_MIN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066  PyObject *module;
4067  PyObject *d;
4068  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4069  d = PyModule_GetDict(module);
4070  if (!d) return NULL;
4071  SWIG_Python_SetConstant(d, "BSPROXY_TID_MIN",SWIG_From_int((int)(0)));
4072  return SWIG_Py_Void();
4073 }
4074 
4075 
4076 SWIGINTERN PyObject *BSPROXY_TID_MAX_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077  PyObject *module;
4078  PyObject *d;
4079  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4080  d = PyModule_GetDict(module);
4081  if (!d) return NULL;
4082  SWIG_Python_SetConstant(d, "BSPROXY_TID_MAX",SWIG_From_int((int)(255)));
4083  return SWIG_Py_Void();
4084 }
4085 
4086 
4087 SWIGINTERN PyObject *BSPROXY_TID_NUMOF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4088  PyObject *module;
4089  PyObject *d;
4090  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4091  d = PyModule_GetDict(module);
4092  if (!d) return NULL;
4093  SWIG_Python_SetConstant(d, "BSPROXY_TID_NUMOF",SWIG_From_int((int)(256)));
4094  return SWIG_Py_Void();
4095 }
4096 
4097 
4098 SWIGINTERN PyObject *BSPROXY_TID_MASK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099  PyObject *module;
4100  PyObject *d;
4101  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4102  d = PyModule_GetDict(module);
4103  if (!d) return NULL;
4104  SWIG_Python_SetConstant(d, "BSPROXY_TID_MASK",SWIG_From_int((int)(0xff)));
4105  return SWIG_Py_Void();
4106 }
4107 
4108 
4109 SWIGINTERN PyObject *BSPROXY_MSGID_NUMOF_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4110  PyObject *module;
4111  PyObject *d;
4112  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4113  d = PyModule_GetDict(module);
4114  if (!d) return NULL;
4115  SWIG_Python_SetConstant(d, "BSPROXY_MSGID_NUMOF",SWIG_From_int((int)(0x10000)));
4116  return SWIG_Py_Void();
4117 }
4118 
4119 
4120 SWIGINTERN PyObject *BSPROXY_MSGID_MASK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4121  PyObject *module;
4122  PyObject *d;
4123  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4124  d = PyModule_GetDict(module);
4125  if (!d) return NULL;
4126  SWIG_Python_SetConstant(d, "BSPROXY_MSGID_MASK",SWIG_From_int((int)(0xffff)));
4127  return SWIG_Py_Void();
4128 }
4129 
4130 
4131 SWIGINTERN PyObject *BSPROXY_MSGUID_VCONN_SHIFT_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4132  PyObject *module;
4133  PyObject *d;
4134  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4135  d = PyModule_GetDict(module);
4136  if (!d) return NULL;
4137  SWIG_Python_SetConstant(d, "BSPROXY_MSGUID_VCONN_SHIFT",SWIG_From_int((int)(16)));
4138  return SWIG_Py_Void();
4139 }
4140 
4141 
4142 SWIGINTERN PyObject *BSPROXY_MSGUID_VCONN_MASK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4143  PyObject *module;
4144  PyObject *d;
4145  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4146  d = PyModule_GetDict(module);
4147  if (!d) return NULL;
4148  SWIG_Python_SetConstant(d, "BSPROXY_MSGUID_VCONN_MASK",SWIG_From_int((int)((0xff << 16))));
4149  return SWIG_Py_Void();
4150 }
4151 
4152 
4153 SWIGINTERN PyObject *BSPROXY_MSGUID_MSGID_MASK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154  PyObject *module;
4155  PyObject *d;
4156  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4157  d = PyModule_GetDict(module);
4158  if (!d) return NULL;
4159  SWIG_Python_SetConstant(d, "BSPROXY_MSGUID_MSGID_MASK",SWIG_From_int((int)((0xffff))));
4160  return SWIG_Py_Void();
4161 }
4162 
4163 
4164 SWIGINTERN PyObject *BSPROXY_MSG_HDR_LEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4165  PyObject *module;
4166  PyObject *d;
4167  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4168  d = PyModule_GetDict(module);
4169  if (!d) return NULL;
4170  SWIG_Python_SetConstant(d, "BSPROXY_MSG_HDR_LEN",SWIG_From_int((int)(8)));
4171  return SWIG_Py_Void();
4172 }
4173 
4174 
4175 SWIGINTERN PyObject *BSPROXY_MSG_MAX_LEN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176  PyObject *module;
4177  PyObject *d;
4178  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4179  d = PyModule_GetDict(module);
4180  if (!d) return NULL;
4181  SWIG_Python_SetConstant(d, "BSPROXY_MSG_MAX_LEN",SWIG_From_int((int)((8+2048))));
4182  return SWIG_Py_Void();
4183 }
4184 
4185 
4186 SWIGINTERN PyObject *BSPROXY_MSG_MAGIC_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4187  PyObject *module;
4188  PyObject *d;
4189  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4190  d = PyModule_GetDict(module);
4191  if (!d) return NULL;
4192  SWIG_Python_SetConstant(d, "BSPROXY_MSG_MAGIC",SWIG_From_int((int)(0xaaaa)));
4193  return SWIG_Py_Void();
4194 }
4195 
4196 
4197 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrMagic_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198  PyObject *resultobj = 0;
4199  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4200  ushort_t arg2 ;
4201  void *argp1 = 0 ;
4202  int res1 = 0 ;
4203  unsigned short val2 ;
4204  int ecode2 = 0 ;
4205  PyObject * obj0 = 0 ;
4206  PyObject * obj1 = 0 ;
4207 
4208  if (!PyArg_ParseTuple(args,(char *)"OO:BsProxyMsgHdr_T_m_hdrMagic_set",&obj0,&obj1)) SWIG_fail;
4209  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4210  if (!SWIG_IsOK(res1)) {
4211  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrMagic_set" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4212  }
4213  arg1 = (BsProxyMsgHdr_T *)(argp1);
4214  ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
4215  if (!SWIG_IsOK(ecode2)) {
4216  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsProxyMsgHdr_T_m_hdrMagic_set" "', argument " "2"" of type '" "ushort_t""'");
4217  }
4218  arg2 = (ushort_t)(val2);
4219  if (arg1) (arg1)->m_hdrMagic = arg2;
4220  resultobj = SWIG_Py_Void();
4221  return resultobj;
4222 fail:
4223  return NULL;
4224 }
4225 
4226 
4227 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrMagic_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4228  PyObject *resultobj = 0;
4229  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4230  void *argp1 = 0 ;
4231  int res1 = 0 ;
4232  PyObject * obj0 = 0 ;
4233  ushort_t result;
4234 
4235  if (!PyArg_ParseTuple(args,(char *)"O:BsProxyMsgHdr_T_m_hdrMagic_get",&obj0)) SWIG_fail;
4236  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4237  if (!SWIG_IsOK(res1)) {
4238  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrMagic_get" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4239  }
4240  arg1 = (BsProxyMsgHdr_T *)(argp1);
4241  result = (ushort_t) ((arg1)->m_hdrMagic);
4242  resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
4243  return resultobj;
4244 fail:
4245  return NULL;
4246 }
4247 
4248 
4249 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrTid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4250  PyObject *resultobj = 0;
4251  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4252  byte_t arg2 ;
4253  void *argp1 = 0 ;
4254  int res1 = 0 ;
4255  unsigned char val2 ;
4256  int ecode2 = 0 ;
4257  PyObject * obj0 = 0 ;
4258  PyObject * obj1 = 0 ;
4259 
4260  if (!PyArg_ParseTuple(args,(char *)"OO:BsProxyMsgHdr_T_m_hdrTid_set",&obj0,&obj1)) SWIG_fail;
4261  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4262  if (!SWIG_IsOK(res1)) {
4263  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrTid_set" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4264  }
4265  arg1 = (BsProxyMsgHdr_T *)(argp1);
4266  ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4267  if (!SWIG_IsOK(ecode2)) {
4268  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsProxyMsgHdr_T_m_hdrTid_set" "', argument " "2"" of type '" "byte_t""'");
4269  }
4270  arg2 = (byte_t)(val2);
4271  if (arg1) (arg1)->m_hdrTid = arg2;
4272  resultobj = SWIG_Py_Void();
4273  return resultobj;
4274 fail:
4275  return NULL;
4276 }
4277 
4278 
4279 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrTid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4280  PyObject *resultobj = 0;
4281  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4282  void *argp1 = 0 ;
4283  int res1 = 0 ;
4284  PyObject * obj0 = 0 ;
4285  byte_t result;
4286 
4287  if (!PyArg_ParseTuple(args,(char *)"O:BsProxyMsgHdr_T_m_hdrTid_get",&obj0)) SWIG_fail;
4288  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4289  if (!SWIG_IsOK(res1)) {
4290  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrTid_get" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4291  }
4292  arg1 = (BsProxyMsgHdr_T *)(argp1);
4293  result = (byte_t) ((arg1)->m_hdrTid);
4294  resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
4295  return resultobj;
4296 fail:
4297  return NULL;
4298 }
4299 
4300 
4301 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrVConn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4302  PyObject *resultobj = 0;
4303  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4304  byte_t arg2 ;
4305  void *argp1 = 0 ;
4306  int res1 = 0 ;
4307  unsigned char val2 ;
4308  int ecode2 = 0 ;
4309  PyObject * obj0 = 0 ;
4310  PyObject * obj1 = 0 ;
4311 
4312  if (!PyArg_ParseTuple(args,(char *)"OO:BsProxyMsgHdr_T_m_hdrVConn_set",&obj0,&obj1)) SWIG_fail;
4313  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4314  if (!SWIG_IsOK(res1)) {
4315  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrVConn_set" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4316  }
4317  arg1 = (BsProxyMsgHdr_T *)(argp1);
4318  ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4319  if (!SWIG_IsOK(ecode2)) {
4320  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsProxyMsgHdr_T_m_hdrVConn_set" "', argument " "2"" of type '" "byte_t""'");
4321  }
4322  arg2 = (byte_t)(val2);
4323  if (arg1) (arg1)->m_hdrVConn = arg2;
4324  resultobj = SWIG_Py_Void();
4325  return resultobj;
4326 fail:
4327  return NULL;
4328 }
4329 
4330 
4331 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrVConn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4332  PyObject *resultobj = 0;
4333  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4334  void *argp1 = 0 ;
4335  int res1 = 0 ;
4336  PyObject * obj0 = 0 ;
4337  byte_t result;
4338 
4339  if (!PyArg_ParseTuple(args,(char *)"O:BsProxyMsgHdr_T_m_hdrVConn_get",&obj0)) SWIG_fail;
4340  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4341  if (!SWIG_IsOK(res1)) {
4342  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrVConn_get" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4343  }
4344  arg1 = (BsProxyMsgHdr_T *)(argp1);
4345  result = (byte_t) ((arg1)->m_hdrVConn);
4346  resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
4347  return resultobj;
4348 fail:
4349  return NULL;
4350 }
4351 
4352 
4353 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrMsgId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4354  PyObject *resultobj = 0;
4355  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4356  ushort_t arg2 ;
4357  void *argp1 = 0 ;
4358  int res1 = 0 ;
4359  unsigned short val2 ;
4360  int ecode2 = 0 ;
4361  PyObject * obj0 = 0 ;
4362  PyObject * obj1 = 0 ;
4363 
4364  if (!PyArg_ParseTuple(args,(char *)"OO:BsProxyMsgHdr_T_m_hdrMsgId_set",&obj0,&obj1)) SWIG_fail;
4365  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4366  if (!SWIG_IsOK(res1)) {
4367  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrMsgId_set" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4368  }
4369  arg1 = (BsProxyMsgHdr_T *)(argp1);
4370  ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
4371  if (!SWIG_IsOK(ecode2)) {
4372  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsProxyMsgHdr_T_m_hdrMsgId_set" "', argument " "2"" of type '" "ushort_t""'");
4373  }
4374  arg2 = (ushort_t)(val2);
4375  if (arg1) (arg1)->m_hdrMsgId = arg2;
4376  resultobj = SWIG_Py_Void();
4377  return resultobj;
4378 fail:
4379  return NULL;
4380 }
4381 
4382 
4383 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrMsgId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4384  PyObject *resultobj = 0;
4385  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4386  void *argp1 = 0 ;
4387  int res1 = 0 ;
4388  PyObject * obj0 = 0 ;
4389  ushort_t result;
4390 
4391  if (!PyArg_ParseTuple(args,(char *)"O:BsProxyMsgHdr_T_m_hdrMsgId_get",&obj0)) SWIG_fail;
4392  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4393  if (!SWIG_IsOK(res1)) {
4394  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrMsgId_get" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4395  }
4396  arg1 = (BsProxyMsgHdr_T *)(argp1);
4397  result = (ushort_t) ((arg1)->m_hdrMsgId);
4398  resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
4399  return resultobj;
4400 fail:
4401  return NULL;
4402 }
4403 
4404 
4405 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrBodyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4406  PyObject *resultobj = 0;
4407  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4408  ushort_t arg2 ;
4409  void *argp1 = 0 ;
4410  int res1 = 0 ;
4411  unsigned short val2 ;
4412  int ecode2 = 0 ;
4413  PyObject * obj0 = 0 ;
4414  PyObject * obj1 = 0 ;
4415 
4416  if (!PyArg_ParseTuple(args,(char *)"OO:BsProxyMsgHdr_T_m_hdrBodyLen_set",&obj0,&obj1)) SWIG_fail;
4417  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4418  if (!SWIG_IsOK(res1)) {
4419  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrBodyLen_set" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4420  }
4421  arg1 = (BsProxyMsgHdr_T *)(argp1);
4422  ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
4423  if (!SWIG_IsOK(ecode2)) {
4424  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsProxyMsgHdr_T_m_hdrBodyLen_set" "', argument " "2"" of type '" "ushort_t""'");
4425  }
4426  arg2 = (ushort_t)(val2);
4427  if (arg1) (arg1)->m_hdrBodyLen = arg2;
4428  resultobj = SWIG_Py_Void();
4429  return resultobj;
4430 fail:
4431  return NULL;
4432 }
4433 
4434 
4435 SWIGINTERN PyObject *_wrap_BsProxyMsgHdr_T_m_hdrBodyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4436  PyObject *resultobj = 0;
4437  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4438  void *argp1 = 0 ;
4439  int res1 = 0 ;
4440  PyObject * obj0 = 0 ;
4441  ushort_t result;
4442 
4443  if (!PyArg_ParseTuple(args,(char *)"O:BsProxyMsgHdr_T_m_hdrBodyLen_get",&obj0)) SWIG_fail;
4444  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
4445  if (!SWIG_IsOK(res1)) {
4446  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsProxyMsgHdr_T_m_hdrBodyLen_get" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4447  }
4448  arg1 = (BsProxyMsgHdr_T *)(argp1);
4449  result = (ushort_t) ((arg1)->m_hdrBodyLen);
4450  resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
4451  return resultobj;
4452 fail:
4453  return NULL;
4454 }
4455 
4456 
4457 SWIGINTERN PyObject *_wrap_new_BsProxyMsgHdr_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458  PyObject *resultobj = 0;
4459  BsProxyMsgHdr_T *result = 0 ;
4460 
4461  if (!PyArg_ParseTuple(args,(char *)":new_BsProxyMsgHdr_T")) SWIG_fail;
4462  result = (BsProxyMsgHdr_T *)calloc(1, sizeof(BsProxyMsgHdr_T));
4463  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BsProxyMsgHdr_T, SWIG_POINTER_NEW | 0 );
4464  return resultobj;
4465 fail:
4466  return NULL;
4467 }
4468 
4469 
4470 SWIGINTERN PyObject *_wrap_delete_BsProxyMsgHdr_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471  PyObject *resultobj = 0;
4472  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
4473  void *argp1 = 0 ;
4474  int res1 = 0 ;
4475  PyObject * obj0 = 0 ;
4476 
4477  if (!PyArg_ParseTuple(args,(char *)"O:delete_BsProxyMsgHdr_T",&obj0)) SWIG_fail;
4478  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, SWIG_POINTER_DISOWN | 0 );
4479  if (!SWIG_IsOK(res1)) {
4480  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BsProxyMsgHdr_T" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
4481  }
4482  arg1 = (BsProxyMsgHdr_T *)(argp1);
4483  free((char *) arg1);
4484  resultobj = SWIG_Py_Void();
4485  return resultobj;
4486 fail:
4487  return NULL;
4488 }
4489 
4490 
4491 SWIGINTERN PyObject *BsProxyMsgHdr_T_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4492  PyObject *obj;
4493  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
4494  SWIG_TypeNewClientData(SWIGTYPE_p_BsProxyMsgHdr_T, SWIG_NewClientData(obj));
4495  return SWIG_Py_Void();
4496 }
4497 
4498 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_app_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4499  PyObject *resultobj = 0;
4500  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4501  char *arg2 = (char *) 0 ;
4502  void *argp1 = 0 ;
4503  int res1 = 0 ;
4504  int res2 ;
4505  char *buf2 = 0 ;
4506  int alloc2 = 0 ;
4507  PyObject * obj0 = 0 ;
4508  PyObject * obj1 = 0 ;
4509 
4510  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_app_name_set",&obj0,&obj1)) SWIG_fail;
4511  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4512  if (!SWIG_IsOK(res1)) {
4513  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_app_name_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4514  }
4515  arg1 = (BsClientAppInfo_T *)(argp1);
4516  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4517  if (!SWIG_IsOK(res2)) {
4518  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_app_name_set" "', argument " "2"" of type '" "char const *""'");
4519  }
4520  arg2 = (char *)(buf2);
4521  if (arg2) {
4522  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4523  arg1->app_name = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4524  } else {
4525  arg1->app_name = 0;
4526  }
4527  resultobj = SWIG_Py_Void();
4528  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4529  return resultobj;
4530 fail:
4531  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4532  return NULL;
4533 }
4534 
4535 
4536 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_app_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4537  PyObject *resultobj = 0;
4538  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4539  void *argp1 = 0 ;
4540  int res1 = 0 ;
4541  PyObject * obj0 = 0 ;
4542  char *result = 0 ;
4543 
4544  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_app_name_get",&obj0)) SWIG_fail;
4545  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4546  if (!SWIG_IsOK(res1)) {
4547  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_app_name_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4548  }
4549  arg1 = (BsClientAppInfo_T *)(argp1);
4550  result = (char *) ((arg1)->app_name);
4551  resultobj = SWIG_FromCharPtr((const char *)result);
4552  return resultobj;
4553 fail:
4554  return NULL;
4555 }
4556 
4557 
4558 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_brief_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4559  PyObject *resultobj = 0;
4560  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4561  char *arg2 = (char *) 0 ;
4562  void *argp1 = 0 ;
4563  int res1 = 0 ;
4564  int res2 ;
4565  char *buf2 = 0 ;
4566  int alloc2 = 0 ;
4567  PyObject * obj0 = 0 ;
4568  PyObject * obj1 = 0 ;
4569 
4570  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_brief_set",&obj0,&obj1)) SWIG_fail;
4571  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4572  if (!SWIG_IsOK(res1)) {
4573  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_brief_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4574  }
4575  arg1 = (BsClientAppInfo_T *)(argp1);
4576  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4577  if (!SWIG_IsOK(res2)) {
4578  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_brief_set" "', argument " "2"" of type '" "char const *""'");
4579  }
4580  arg2 = (char *)(buf2);
4581  if (arg2) {
4582  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4583  arg1->brief = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4584  } else {
4585  arg1->brief = 0;
4586  }
4587  resultobj = SWIG_Py_Void();
4588  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4589  return resultobj;
4590 fail:
4591  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4592  return NULL;
4593 }
4594 
4595 
4596 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_brief_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4597  PyObject *resultobj = 0;
4598  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4599  void *argp1 = 0 ;
4600  int res1 = 0 ;
4601  PyObject * obj0 = 0 ;
4602  char *result = 0 ;
4603 
4604  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_brief_get",&obj0)) SWIG_fail;
4605  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4606  if (!SWIG_IsOK(res1)) {
4607  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_brief_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4608  }
4609  arg1 = (BsClientAppInfo_T *)(argp1);
4610  result = (char *) ((arg1)->brief);
4611  resultobj = SWIG_FromCharPtr((const char *)result);
4612  return resultobj;
4613 fail:
4614  return NULL;
4615 }
4616 
4617 
4618 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4619  PyObject *resultobj = 0;
4620  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4621  char *arg2 = (char *) 0 ;
4622  void *argp1 = 0 ;
4623  int res1 = 0 ;
4624  int res2 ;
4625  char *buf2 = 0 ;
4626  int alloc2 = 0 ;
4627  PyObject * obj0 = 0 ;
4628  PyObject * obj1 = 0 ;
4629 
4630  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_version_set",&obj0,&obj1)) SWIG_fail;
4631  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4632  if (!SWIG_IsOK(res1)) {
4633  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_version_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4634  }
4635  arg1 = (BsClientAppInfo_T *)(argp1);
4636  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4637  if (!SWIG_IsOK(res2)) {
4638  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_version_set" "', argument " "2"" of type '" "char const *""'");
4639  }
4640  arg2 = (char *)(buf2);
4641  if (arg2) {
4642  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4643  arg1->version = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4644  } else {
4645  arg1->version = 0;
4646  }
4647  resultobj = SWIG_Py_Void();
4648  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4649  return resultobj;
4650 fail:
4651  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4652  return NULL;
4653 }
4654 
4655 
4656 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4657  PyObject *resultobj = 0;
4658  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4659  void *argp1 = 0 ;
4660  int res1 = 0 ;
4661  PyObject * obj0 = 0 ;
4662  char *result = 0 ;
4663 
4664  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_version_get",&obj0)) SWIG_fail;
4665  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4666  if (!SWIG_IsOK(res1)) {
4667  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_version_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4668  }
4669  arg1 = (BsClientAppInfo_T *)(argp1);
4670  result = (char *) ((arg1)->version);
4671  resultobj = SWIG_FromCharPtr((const char *)result);
4672  return resultobj;
4673 fail:
4674  return NULL;
4675 }
4676 
4677 
4678 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_date_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679  PyObject *resultobj = 0;
4680  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4681  char *arg2 = (char *) 0 ;
4682  void *argp1 = 0 ;
4683  int res1 = 0 ;
4684  int res2 ;
4685  char *buf2 = 0 ;
4686  int alloc2 = 0 ;
4687  PyObject * obj0 = 0 ;
4688  PyObject * obj1 = 0 ;
4689 
4690  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_date_set",&obj0,&obj1)) SWIG_fail;
4691  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4692  if (!SWIG_IsOK(res1)) {
4693  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_date_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4694  }
4695  arg1 = (BsClientAppInfo_T *)(argp1);
4696  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4697  if (!SWIG_IsOK(res2)) {
4698  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_date_set" "', argument " "2"" of type '" "char const *""'");
4699  }
4700  arg2 = (char *)(buf2);
4701  if (arg2) {
4702  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4703  arg1->date = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4704  } else {
4705  arg1->date = 0;
4706  }
4707  resultobj = SWIG_Py_Void();
4708  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4709  return resultobj;
4710 fail:
4711  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4712  return NULL;
4713 }
4714 
4715 
4716 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_date_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4717  PyObject *resultobj = 0;
4718  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4719  void *argp1 = 0 ;
4720  int res1 = 0 ;
4721  PyObject * obj0 = 0 ;
4722  char *result = 0 ;
4723 
4724  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_date_get",&obj0)) SWIG_fail;
4725  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4726  if (!SWIG_IsOK(res1)) {
4727  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_date_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4728  }
4729  arg1 = (BsClientAppInfo_T *)(argp1);
4730  result = (char *) ((arg1)->date);
4731  resultobj = SWIG_FromCharPtr((const char *)result);
4732  return resultobj;
4733 fail:
4734  return NULL;
4735 }
4736 
4737 
4738 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_maintainer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739  PyObject *resultobj = 0;
4740  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4741  char *arg2 = (char *) 0 ;
4742  void *argp1 = 0 ;
4743  int res1 = 0 ;
4744  int res2 ;
4745  char *buf2 = 0 ;
4746  int alloc2 = 0 ;
4747  PyObject * obj0 = 0 ;
4748  PyObject * obj1 = 0 ;
4749 
4750  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_maintainer_set",&obj0,&obj1)) SWIG_fail;
4751  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4752  if (!SWIG_IsOK(res1)) {
4753  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_maintainer_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4754  }
4755  arg1 = (BsClientAppInfo_T *)(argp1);
4756  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4757  if (!SWIG_IsOK(res2)) {
4758  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_maintainer_set" "', argument " "2"" of type '" "char const *""'");
4759  }
4760  arg2 = (char *)(buf2);
4761  if (arg2) {
4762  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4763  arg1->maintainer = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4764  } else {
4765  arg1->maintainer = 0;
4766  }
4767  resultobj = SWIG_Py_Void();
4768  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4769  return resultobj;
4770 fail:
4771  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4772  return NULL;
4773 }
4774 
4775 
4776 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_maintainer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4777  PyObject *resultobj = 0;
4778  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4779  void *argp1 = 0 ;
4780  int res1 = 0 ;
4781  PyObject * obj0 = 0 ;
4782  char *result = 0 ;
4783 
4784  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_maintainer_get",&obj0)) SWIG_fail;
4785  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4786  if (!SWIG_IsOK(res1)) {
4787  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_maintainer_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4788  }
4789  arg1 = (BsClientAppInfo_T *)(argp1);
4790  result = (char *) ((arg1)->maintainer);
4791  resultobj = SWIG_FromCharPtr((const char *)result);
4792  return resultobj;
4793 fail:
4794  return NULL;
4795 }
4796 
4797 
4798 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_license_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4799  PyObject *resultobj = 0;
4800  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4801  char *arg2 = (char *) 0 ;
4802  void *argp1 = 0 ;
4803  int res1 = 0 ;
4804  int res2 ;
4805  char *buf2 = 0 ;
4806  int alloc2 = 0 ;
4807  PyObject * obj0 = 0 ;
4808  PyObject * obj1 = 0 ;
4809 
4810  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_license_set",&obj0,&obj1)) SWIG_fail;
4811  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4812  if (!SWIG_IsOK(res1)) {
4813  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_license_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4814  }
4815  arg1 = (BsClientAppInfo_T *)(argp1);
4816  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4817  if (!SWIG_IsOK(res2)) {
4818  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientAppInfo_T_license_set" "', argument " "2"" of type '" "char const *""'");
4819  }
4820  arg2 = (char *)(buf2);
4821  if (arg2) {
4822  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4823  arg1->license = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4824  } else {
4825  arg1->license = 0;
4826  }
4827  resultobj = SWIG_Py_Void();
4828  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4829  return resultobj;
4830 fail:
4831  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4832  return NULL;
4833 }
4834 
4835 
4836 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_license_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4837  PyObject *resultobj = 0;
4838  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4839  void *argp1 = 0 ;
4840  int res1 = 0 ;
4841  PyObject * obj0 = 0 ;
4842  char *result = 0 ;
4843 
4844  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_license_get",&obj0)) SWIG_fail;
4845  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4846  if (!SWIG_IsOK(res1)) {
4847  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_license_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4848  }
4849  arg1 = (BsClientAppInfo_T *)(argp1);
4850  result = (char *) ((arg1)->license);
4851  resultobj = SWIG_FromCharPtr((const char *)result);
4852  return resultobj;
4853 fail:
4854  return NULL;
4855 }
4856 
4857 
4858 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_fnGetMsgName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4859  PyObject *resultobj = 0;
4860  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4861  char *(*arg2)(BsClient_P,BsVConnHnd_T,uint_t) = (char *(*)(BsClient_P,BsVConnHnd_T,uint_t)) 0 ;
4862  void *argp1 = 0 ;
4863  int res1 = 0 ;
4864  PyObject * obj0 = 0 ;
4865  PyObject * obj1 = 0 ;
4866 
4867  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientAppInfo_T_fnGetMsgName_set",&obj0,&obj1)) SWIG_fail;
4868  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4869  if (!SWIG_IsOK(res1)) {
4870  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_fnGetMsgName_set" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4871  }
4872  arg1 = (BsClientAppInfo_T *)(argp1);
4873  {
4874  int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_struct__bsClientStruct_int_unsigned_int__p_char);
4875  if (!SWIG_IsOK(res)) {
4876  SWIG_exception_fail(SWIG_ArgError(res), "in method '" "BsClientAppInfo_T_fnGetMsgName_set" "', argument " "2"" of type '" "char const *(*)(BsClient_P,BsVConnHnd_T,uint_t)""'");
4877  }
4878  }
4879  if (arg1) (arg1)->fnGetMsgName = (char const *(*)(BsClient_P,BsVConnHnd_T,uint_t))arg2;
4880  resultobj = SWIG_Py_Void();
4881  return resultobj;
4882 fail:
4883  return NULL;
4884 }
4885 
4886 
4887 SWIGINTERN PyObject *_wrap_BsClientAppInfo_T_fnGetMsgName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4888  PyObject *resultobj = 0;
4889  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4890  void *argp1 = 0 ;
4891  int res1 = 0 ;
4892  PyObject * obj0 = 0 ;
4893  char *(*result)(BsClient_P,BsVConnHnd_T,uint_t) = 0 ;
4894 
4895  if (!PyArg_ParseTuple(args,(char *)"O:BsClientAppInfo_T_fnGetMsgName_get",&obj0)) SWIG_fail;
4896  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
4897  if (!SWIG_IsOK(res1)) {
4898  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientAppInfo_T_fnGetMsgName_get" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4899  }
4900  arg1 = (BsClientAppInfo_T *)(argp1);
4901  result = (char *(*)(BsClient_P,BsVConnHnd_T,uint_t)) ((arg1)->fnGetMsgName);
4902  resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct__bsClientStruct_int_unsigned_int__p_char);
4903  return resultobj;
4904 fail:
4905  return NULL;
4906 }
4907 
4908 
4909 SWIGINTERN PyObject *_wrap_new_BsClientAppInfo_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910  PyObject *resultobj = 0;
4911  BsClientAppInfo_T *result = 0 ;
4912 
4913  if (!PyArg_ParseTuple(args,(char *)":new_BsClientAppInfo_T")) SWIG_fail;
4914  result = (BsClientAppInfo_T *)calloc(1, sizeof(BsClientAppInfo_T));
4915  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BsClientAppInfo_T, SWIG_POINTER_NEW | 0 );
4916  return resultobj;
4917 fail:
4918  return NULL;
4919 }
4920 
4921 
4922 SWIGINTERN PyObject *_wrap_delete_BsClientAppInfo_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4923  PyObject *resultobj = 0;
4924  BsClientAppInfo_T *arg1 = (BsClientAppInfo_T *) 0 ;
4925  void *argp1 = 0 ;
4926  int res1 = 0 ;
4927  PyObject * obj0 = 0 ;
4928 
4929  if (!PyArg_ParseTuple(args,(char *)"O:delete_BsClientAppInfo_T",&obj0)) SWIG_fail;
4930  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientAppInfo_T, SWIG_POINTER_DISOWN | 0 );
4931  if (!SWIG_IsOK(res1)) {
4932  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BsClientAppInfo_T" "', argument " "1"" of type '" "BsClientAppInfo_T *""'");
4933  }
4934  arg1 = (BsClientAppInfo_T *)(argp1);
4935  free((char *) arg1);
4936  resultobj = SWIG_Py_Void();
4937  return resultobj;
4938 fail:
4939  return NULL;
4940 }
4941 
4942 
4943 SWIGINTERN PyObject *BsClientAppInfo_T_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4944  PyObject *obj;
4945  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
4946  SWIG_TypeNewClientData(SWIGTYPE_p_BsClientAppInfo_T, SWIG_NewClientData(obj));
4947  return SWIG_Py_Void();
4948 }
4949 
4950 SWIGINTERN PyObject *_wrap_BsClientConnState_T_m_bIsConnected_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4951  PyObject *resultobj = 0;
4953  bool_t arg2 ;
4954  void *argp1 = 0 ;
4955  int res1 = 0 ;
4956  int val2 ;
4957  int ecode2 = 0 ;
4958  PyObject * obj0 = 0 ;
4959  PyObject * obj1 = 0 ;
4960 
4961  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientConnState_T_m_bIsConnected_set",&obj0,&obj1)) SWIG_fail;
4962  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientConnState_T, 0 | 0 );
4963  if (!SWIG_IsOK(res1)) {
4964  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientConnState_T_m_bIsConnected_set" "', argument " "1"" of type '" "BsClientConnState_T *""'");
4965  }
4966  arg1 = (BsClientConnState_T *)(argp1);
4967  ecode2 = SWIG_AsVal_int(obj1, &val2);
4968  if (!SWIG_IsOK(ecode2)) {
4969  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsClientConnState_T_m_bIsConnected_set" "', argument " "2"" of type '" "bool_t""'");
4970  }
4971  arg2 = (bool_t)(val2);
4972  if (arg1) (arg1)->m_bIsConnected = arg2;
4973  resultobj = SWIG_Py_Void();
4974  return resultobj;
4975 fail:
4976  return NULL;
4977 }
4978 
4979 
4980 SWIGINTERN PyObject *_wrap_BsClientConnState_T_m_bIsConnected_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4981  PyObject *resultobj = 0;
4983  void *argp1 = 0 ;
4984  int res1 = 0 ;
4985  PyObject * obj0 = 0 ;
4986  bool_t result;
4987 
4988  if (!PyArg_ParseTuple(args,(char *)"O:BsClientConnState_T_m_bIsConnected_get",&obj0)) SWIG_fail;
4989  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientConnState_T, 0 | 0 );
4990  if (!SWIG_IsOK(res1)) {
4991  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientConnState_T_m_bIsConnected_get" "', argument " "1"" of type '" "BsClientConnState_T *""'");
4992  }
4993  arg1 = (BsClientConnState_T *)(argp1);
4994  result = (bool_t) ((arg1)->m_bIsConnected);
4995  resultobj = SWIG_From_int((int)(result));
4996  return resultobj;
4997 fail:
4998  return NULL;
4999 }
5000 
5001 
5002 SWIGINTERN PyObject *_wrap_BsClientConnState_T_m_sServerHostName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5003  PyObject *resultobj = 0;
5005  char *arg2 = (char *) 0 ;
5006  void *argp1 = 0 ;
5007  int res1 = 0 ;
5008  int res2 ;
5009  char *buf2 = 0 ;
5010  int alloc2 = 0 ;
5011  PyObject * obj0 = 0 ;
5012  PyObject * obj1 = 0 ;
5013 
5014  if (!PyArg_ParseTuple(args,(char *)"OO:BsClientConnState_T_m_sServerHostName_set",&obj0,&obj1)) SWIG_fail;
5015  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientConnState_T, 0 | 0 );
5016  if (!SWIG_IsOK(res1)) {
5017  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientConnState_T_m_sServerHostName_set" "', argument " "1"" of type '" "BsClientConnState_T *""'");
5018  }
5019  arg1 = (BsClientConnState_T *)(argp1);
5020  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5021  if (!SWIG_IsOK(res2)) {
5022  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsClientConnState_T_m_sServerHostName_set" "', argument " "2"" of type '" "char const *""'");
5023  }
5024  arg2 = (char *)(buf2);
5025  if (arg2) {
5026  size_t size = strlen((const char *)((const char *)(arg2))) + 1;
5027  arg1->m_sServerHostName = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
5028  } else {
5029  arg1->m_sServerHostName = 0;
5030  }
5031  resultobj = SWIG_Py_Void();
5032  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5033  return resultobj;
5034 fail:
5035  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5036  return NULL;
5037 }
5038 
5039 
5040 SWIGINTERN PyObject *_wrap_BsClientConnState_T_m_sServerHostName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5041  PyObject *resultobj = 0;
5043  void *argp1 = 0 ;
5044  int res1 = 0 ;
5045  PyObject * obj0 = 0 ;
5046  char *result = 0 ;
5047 
5048  if (!PyArg_ParseTuple(args,(char *)"O:BsClientConnState_T_m_sServerHostName_get",&obj0)) SWIG_fail;
5049  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientConnState_T, 0 | 0 );
5050  if (!SWIG_IsOK(res1)) {
5051  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsClientConnState_T_m_sServerHostName_get" "', argument " "1"" of type '" "BsClientConnState_T *""'");
5052  }
5053  arg1 = (BsClientConnState_T *)(argp1);
5054  result = (char *) ((arg1)->m_sServerHostName);
5055  resultobj = SWIG_FromCharPtr((const char *)result);
5056  return resultobj;
5057 fail:
5058  return NULL;
5059 }
5060 
5061 
5062 SWIGINTERN PyObject *_wrap_new_BsClientConnState_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5063  PyObject *resultobj = 0;
5064  BsClientConnState_T *result = 0 ;
5065 
5066  if (!PyArg_ParseTuple(args,(char *)":new_BsClientConnState_T")) SWIG_fail;
5067  result = (BsClientConnState_T *)calloc(1, sizeof(BsClientConnState_T));
5068  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BsClientConnState_T, SWIG_POINTER_NEW | 0 );
5069  return resultobj;
5070 fail:
5071  return NULL;
5072 }
5073 
5074 
5075 SWIGINTERN PyObject *_wrap_delete_BsClientConnState_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5076  PyObject *resultobj = 0;
5078  void *argp1 = 0 ;
5079  int res1 = 0 ;
5080  PyObject * obj0 = 0 ;
5081 
5082  if (!PyArg_ParseTuple(args,(char *)"O:delete_BsClientConnState_T",&obj0)) SWIG_fail;
5083  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsClientConnState_T, SWIG_POINTER_DISOWN | 0 );
5084  if (!SWIG_IsOK(res1)) {
5085  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BsClientConnState_T" "', argument " "1"" of type '" "BsClientConnState_T *""'");
5086  }
5087  arg1 = (BsClientConnState_T *)(argp1);
5088  free((char *) arg1);
5089  resultobj = SWIG_Py_Void();
5090  return resultobj;
5091 fail:
5092  return NULL;
5093 }
5094 
5095 
5096 SWIGINTERN PyObject *BsClientConnState_T_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5097  PyObject *obj;
5098  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
5099  SWIG_TypeNewClientData(SWIGTYPE_p_BsClientConnState_T, SWIG_NewClientData(obj));
5100  return SWIG_Py_Void();
5101 }
5102 
5103 SWIGINTERN PyObject *_wrap_BsVecHandles_T_m_uCount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5104  PyObject *resultobj = 0;
5105  BsVecHandles_T *arg1 = (BsVecHandles_T *) 0 ;
5106  size_t arg2 ;
5107  void *argp1 = 0 ;
5108  int res1 = 0 ;
5109  size_t val2 ;
5110  int ecode2 = 0 ;
5111  PyObject * obj0 = 0 ;
5112  PyObject * obj1 = 0 ;
5113 
5114  if (!PyArg_ParseTuple(args,(char *)"OO:BsVecHandles_T_m_uCount_set",&obj0,&obj1)) SWIG_fail;
5115  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVecHandles_T, 0 | 0 );
5116  if (!SWIG_IsOK(res1)) {
5117  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVecHandles_T_m_uCount_set" "', argument " "1"" of type '" "BsVecHandles_T *""'");
5118  }
5119  arg1 = (BsVecHandles_T *)(argp1);
5120  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5121  if (!SWIG_IsOK(ecode2)) {
5122  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsVecHandles_T_m_uCount_set" "', argument " "2"" of type '" "size_t""'");
5123  }
5124  arg2 = (size_t)(val2);
5125  if (arg1) (arg1)->m_uCount = arg2;
5126  resultobj = SWIG_Py_Void();
5127  return resultobj;
5128 fail:
5129  return NULL;
5130 }
5131 
5132 
5133 SWIGINTERN PyObject *_wrap_BsVecHandles_T_m_uCount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134  PyObject *resultobj = 0;
5135  BsVecHandles_T *arg1 = (BsVecHandles_T *) 0 ;
5136  void *argp1 = 0 ;
5137  int res1 = 0 ;
5138  PyObject * obj0 = 0 ;
5139  size_t result;
5140 
5141  if (!PyArg_ParseTuple(args,(char *)"O:BsVecHandles_T_m_uCount_get",&obj0)) SWIG_fail;
5142  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVecHandles_T, 0 | 0 );
5143  if (!SWIG_IsOK(res1)) {
5144  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVecHandles_T_m_uCount_get" "', argument " "1"" of type '" "BsVecHandles_T *""'");
5145  }
5146  arg1 = (BsVecHandles_T *)(argp1);
5147  result = ((arg1)->m_uCount);
5148  resultobj = SWIG_From_size_t((size_t)(result));
5149  return resultobj;
5150 fail:
5151  return NULL;
5152 }
5153 
5154 
5155 SWIGINTERN PyObject *_wrap_BsVecHandles_T_m_vecHnd_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5156  PyObject *resultobj = 0;
5157  BsVecHandles_T *arg1 = (BsVecHandles_T *) 0 ;
5158  BsVConnHnd_T *arg2 ;
5159  void *argp1 = 0 ;
5160  int res1 = 0 ;
5161  void *argp2 = 0 ;
5162  int res2 = 0 ;
5163  PyObject * obj0 = 0 ;
5164  PyObject * obj1 = 0 ;
5165 
5166  if (!PyArg_ParseTuple(args,(char *)"OO:BsVecHandles_T_m_vecHnd_set",&obj0,&obj1)) SWIG_fail;
5167  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVecHandles_T, 0 | 0 );
5168  if (!SWIG_IsOK(res1)) {
5169  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVecHandles_T_m_vecHnd_set" "', argument " "1"" of type '" "BsVecHandles_T *""'");
5170  }
5171  arg1 = (BsVecHandles_T *)(argp1);
5172  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
5173  if (!SWIG_IsOK(res2)) {
5174  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVecHandles_T_m_vecHnd_set" "', argument " "2"" of type '" "BsVConnHnd_T [16]""'");
5175  }
5176  arg2 = (BsVConnHnd_T *)(argp2);
5177  {
5178  if (arg2) {
5179  size_t ii = 0;
5180  for (; ii < (size_t)16; ++ii) *(BsVConnHnd_T *)&arg1->m_vecHnd[ii] = *((BsVConnHnd_T *)arg2 + ii);
5181  } else {
5182  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""m_vecHnd""' of type '""BsVConnHnd_T [16]""'");
5183  }
5184  }
5185  resultobj = SWIG_Py_Void();
5186  return resultobj;
5187 fail:
5188  return NULL;
5189 }
5190 
5191 
5192 SWIGINTERN PyObject *_wrap_BsVecHandles_T_m_vecHnd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5193  PyObject *resultobj = 0;
5194  BsVecHandles_T *arg1 = (BsVecHandles_T *) 0 ;
5195  void *argp1 = 0 ;
5196  int res1 = 0 ;
5197  PyObject * obj0 = 0 ;
5198  BsVConnHnd_T *result = 0 ;
5199 
5200  if (!PyArg_ParseTuple(args,(char *)"O:BsVecHandles_T_m_vecHnd_get",&obj0)) SWIG_fail;
5201  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVecHandles_T, 0 | 0 );
5202  if (!SWIG_IsOK(res1)) {
5203  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVecHandles_T_m_vecHnd_get" "', argument " "1"" of type '" "BsVecHandles_T *""'");
5204  }
5205  arg1 = (BsVecHandles_T *)(argp1);
5206  result = (BsVConnHnd_T *)(BsVConnHnd_T *) ((arg1)->m_vecHnd);
5207  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
5208  return resultobj;
5209 fail:
5210  return NULL;
5211 }
5212 
5213 
5214 SWIGINTERN PyObject *_wrap_new_BsVecHandles_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5215  PyObject *resultobj = 0;
5216  BsVecHandles_T *result = 0 ;
5217 
5218  if (!PyArg_ParseTuple(args,(char *)":new_BsVecHandles_T")) SWIG_fail;
5219  result = (BsVecHandles_T *)calloc(1, sizeof(BsVecHandles_T));
5220  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BsVecHandles_T, SWIG_POINTER_NEW | 0 );
5221  return resultobj;
5222 fail:
5223  return NULL;
5224 }
5225 
5226 
5227 SWIGINTERN PyObject *_wrap_delete_BsVecHandles_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228  PyObject *resultobj = 0;
5229  BsVecHandles_T *arg1 = (BsVecHandles_T *) 0 ;
5230  void *argp1 = 0 ;
5231  int res1 = 0 ;
5232  PyObject * obj0 = 0 ;
5233 
5234  if (!PyArg_ParseTuple(args,(char *)"O:delete_BsVecHandles_T",&obj0)) SWIG_fail;
5235  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVecHandles_T, SWIG_POINTER_DISOWN | 0 );
5236  if (!SWIG_IsOK(res1)) {
5237  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BsVecHandles_T" "', argument " "1"" of type '" "BsVecHandles_T *""'");
5238  }
5239  arg1 = (BsVecHandles_T *)(argp1);
5240  free((char *) arg1);
5241  resultobj = SWIG_Py_Void();
5242  return resultobj;
5243 fail:
5244  return NULL;
5245 }
5246 
5247 
5248 SWIGINTERN PyObject *BsVecHandles_T_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5249  PyObject *obj;
5250  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
5251  SWIG_TypeNewClientData(SWIGTYPE_p_BsVecHandles_T, SWIG_NewClientData(obj));
5252  return SWIG_Py_Void();
5253 }
5254 
5255 SWIGINTERN PyObject *BSCLIENT_INFO_STR_MAX_SIZE_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5256  PyObject *module;
5257  PyObject *d;
5258  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5259  d = PyModule_GetDict(module);
5260  if (!d) return NULL;
5261  SWIG_Python_SetConstant(d, "BSCLIENT_INFO_STR_MAX_SIZE",SWIG_From_int((int)(256)));
5262  return SWIG_Py_Void();
5263 }
5264 
5265 
5266 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_vconn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5267  PyObject *resultobj = 0;
5268  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5269  byte_t arg2 ;
5270  void *argp1 = 0 ;
5271  int res1 = 0 ;
5272  unsigned char val2 ;
5273  int ecode2 = 0 ;
5274  PyObject * obj0 = 0 ;
5275  PyObject * obj1 = 0 ;
5276 
5277  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_vconn_set",&obj0,&obj1)) SWIG_fail;
5278  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5279  if (!SWIG_IsOK(res1)) {
5280  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_vconn_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5281  }
5282  arg1 = (BsVConnInfo_T *)(argp1);
5283  ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
5284  if (!SWIG_IsOK(ecode2)) {
5285  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsVConnInfo_T_m_vconn_set" "', argument " "2"" of type '" "byte_t""'");
5286  }
5287  arg2 = (byte_t)(val2);
5288  if (arg1) (arg1)->m_vconn = arg2;
5289  resultobj = SWIG_Py_Void();
5290  return resultobj;
5291 fail:
5292  return NULL;
5293 }
5294 
5295 
5296 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_vconn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5297  PyObject *resultobj = 0;
5298  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5299  void *argp1 = 0 ;
5300  int res1 = 0 ;
5301  PyObject * obj0 = 0 ;
5302  byte_t result;
5303 
5304  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_vconn_get",&obj0)) SWIG_fail;
5305  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5306  if (!SWIG_IsOK(res1)) {
5307  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_vconn_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5308  }
5309  arg1 = (BsVConnInfo_T *)(argp1);
5310  result = (byte_t) ((arg1)->m_vconn);
5311  resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
5312  return resultobj;
5313 fail:
5314  return NULL;
5315 }
5316 
5317 
5318 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_rd_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5319  PyObject *resultobj = 0;
5320  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5321  int arg2 ;
5322  void *argp1 = 0 ;
5323  int res1 = 0 ;
5324  int val2 ;
5325  int ecode2 = 0 ;
5326  PyObject * obj0 = 0 ;
5327  PyObject * obj1 = 0 ;
5328 
5329  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_rd_set",&obj0,&obj1)) SWIG_fail;
5330  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5331  if (!SWIG_IsOK(res1)) {
5332  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_rd_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5333  }
5334  arg1 = (BsVConnInfo_T *)(argp1);
5335  ecode2 = SWIG_AsVal_int(obj1, &val2);
5336  if (!SWIG_IsOK(ecode2)) {
5337  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BsVConnInfo_T_m_rd_set" "', argument " "2"" of type '" "int""'");
5338  }
5339  arg2 = (int)(val2);
5340  if (arg1) (arg1)->m_rd = arg2;
5341  resultobj = SWIG_Py_Void();
5342  return resultobj;
5343 fail:
5344  return NULL;
5345 }
5346 
5347 
5348 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_rd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5349  PyObject *resultobj = 0;
5350  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5351  void *argp1 = 0 ;
5352  int res1 = 0 ;
5353  PyObject * obj0 = 0 ;
5354  int result;
5355 
5356  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_rd_get",&obj0)) SWIG_fail;
5357  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5358  if (!SWIG_IsOK(res1)) {
5359  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_rd_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5360  }
5361  arg1 = (BsVConnInfo_T *)(argp1);
5362  result = (int) ((arg1)->m_rd);
5363  resultobj = SWIG_From_int((int)(result));
5364  return resultobj;
5365 fail:
5366  return NULL;
5367 }
5368 
5369 
5370 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_client_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5371  PyObject *resultobj = 0;
5372  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5373  char *arg2 ;
5374  void *argp1 = 0 ;
5375  int res1 = 0 ;
5376  char temp2[256] ;
5377  int res2 ;
5378  PyObject * obj0 = 0 ;
5379  PyObject * obj1 = 0 ;
5380 
5381  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_client_set",&obj0,&obj1)) SWIG_fail;
5382  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5383  if (!SWIG_IsOK(res1)) {
5384  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_client_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5385  }
5386  arg1 = (BsVConnInfo_T *)(argp1);
5387  res2 = SWIG_AsCharArray(obj1, temp2, 256);
5388  if (!SWIG_IsOK(res2)) {
5389  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVConnInfo_T_m_client_set" "', argument " "2"" of type '" "char [256]""'");
5390  }
5391  arg2 = (char *)(temp2);
5392  if (arg2) memcpy(arg1->m_client,arg2,256*sizeof(char));
5393  else memset(arg1->m_client,0,256*sizeof(char));
5394  resultobj = SWIG_Py_Void();
5395  return resultobj;
5396 fail:
5397  return NULL;
5398 }
5399 
5400 
5401 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_client_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5402  PyObject *resultobj = 0;
5403  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5404  void *argp1 = 0 ;
5405  int res1 = 0 ;
5406  PyObject * obj0 = 0 ;
5407  char *result = 0 ;
5408 
5409  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_client_get",&obj0)) SWIG_fail;
5410  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5411  if (!SWIG_IsOK(res1)) {
5412  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_client_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5413  }
5414  arg1 = (BsVConnInfo_T *)(argp1);
5415  result = (char *)(char *) ((arg1)->m_client);
5416  {
5417  size_t size = SWIG_strnlen(result, 256);
5418 
5419 
5420 
5421  resultobj = SWIG_FromCharPtrAndSize(result, size);
5422  }
5423  return resultobj;
5424 fail:
5425  return NULL;
5426 }
5427 
5428 
5429 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_devuri_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5430  PyObject *resultobj = 0;
5431  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5432  char *arg2 ;
5433  void *argp1 = 0 ;
5434  int res1 = 0 ;
5435  char temp2[256] ;
5436  int res2 ;
5437  PyObject * obj0 = 0 ;
5438  PyObject * obj1 = 0 ;
5439 
5440  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_devuri_set",&obj0,&obj1)) SWIG_fail;
5441  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5442  if (!SWIG_IsOK(res1)) {
5443  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_devuri_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5444  }
5445  arg1 = (BsVConnInfo_T *)(argp1);
5446  res2 = SWIG_AsCharArray(obj1, temp2, 256);
5447  if (!SWIG_IsOK(res2)) {
5448  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVConnInfo_T_m_devuri_set" "', argument " "2"" of type '" "char [256]""'");
5449  }
5450  arg2 = (char *)(temp2);
5451  if (arg2) memcpy(arg1->m_devuri,arg2,256*sizeof(char));
5452  else memset(arg1->m_devuri,0,256*sizeof(char));
5453  resultobj = SWIG_Py_Void();
5454  return resultobj;
5455 fail:
5456  return NULL;
5457 }
5458 
5459 
5460 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_devuri_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5461  PyObject *resultobj = 0;
5462  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5463  void *argp1 = 0 ;
5464  int res1 = 0 ;
5465  PyObject * obj0 = 0 ;
5466  char *result = 0 ;
5467 
5468  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_devuri_get",&obj0)) SWIG_fail;
5469  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5470  if (!SWIG_IsOK(res1)) {
5471  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_devuri_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5472  }
5473  arg1 = (BsVConnInfo_T *)(argp1);
5474  result = (char *)(char *) ((arg1)->m_devuri);
5475  {
5476  size_t size = SWIG_strnlen(result, 256);
5477 
5478 
5479 
5480  resultobj = SWIG_FromCharPtrAndSize(result, size);
5481  }
5482  return resultobj;
5483 fail:
5484  return NULL;
5485 }
5486 
5487 
5488 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_moduri_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5489  PyObject *resultobj = 0;
5490  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5491  char *arg2 ;
5492  void *argp1 = 0 ;
5493  int res1 = 0 ;
5494  char temp2[256] ;
5495  int res2 ;
5496  PyObject * obj0 = 0 ;
5497  PyObject * obj1 = 0 ;
5498 
5499  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_moduri_set",&obj0,&obj1)) SWIG_fail;
5500  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5501  if (!SWIG_IsOK(res1)) {
5502  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_moduri_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5503  }
5504  arg1 = (BsVConnInfo_T *)(argp1);
5505  res2 = SWIG_AsCharArray(obj1, temp2, 256);
5506  if (!SWIG_IsOK(res2)) {
5507  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVConnInfo_T_m_moduri_set" "', argument " "2"" of type '" "char [256]""'");
5508  }
5509  arg2 = (char *)(temp2);
5510  if (arg2) memcpy(arg1->m_moduri,arg2,256*sizeof(char));
5511  else memset(arg1->m_moduri,0,256*sizeof(char));
5512  resultobj = SWIG_Py_Void();
5513  return resultobj;
5514 fail:
5515  return NULL;
5516 }
5517 
5518 
5519 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_moduri_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5520  PyObject *resultobj = 0;
5521  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5522  void *argp1 = 0 ;
5523  int res1 = 0 ;
5524  PyObject * obj0 = 0 ;
5525  char *result = 0 ;
5526 
5527  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_moduri_get",&obj0)) SWIG_fail;
5528  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5529  if (!SWIG_IsOK(res1)) {
5530  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_moduri_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5531  }
5532  arg1 = (BsVConnInfo_T *)(argp1);
5533  result = (char *)(char *) ((arg1)->m_moduri);
5534  {
5535  size_t size = SWIG_strnlen(result, 256);
5536 
5537 
5538 
5539  resultobj = SWIG_FromCharPtrAndSize(result, size);
5540  }
5541  return resultobj;
5542 fail:
5543  return NULL;
5544 }
5545 
5546 
5547 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_modver_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5548  PyObject *resultobj = 0;
5549  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5550  char *arg2 ;
5551  void *argp1 = 0 ;
5552  int res1 = 0 ;
5553  char temp2[256] ;
5554  int res2 ;
5555  PyObject * obj0 = 0 ;
5556  PyObject * obj1 = 0 ;
5557 
5558  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_modver_set",&obj0,&obj1)) SWIG_fail;
5559  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5560  if (!SWIG_IsOK(res1)) {
5561  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_modver_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5562  }
5563  arg1 = (BsVConnInfo_T *)(argp1);
5564  res2 = SWIG_AsCharArray(obj1, temp2, 256);
5565  if (!SWIG_IsOK(res2)) {
5566  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVConnInfo_T_m_modver_set" "', argument " "2"" of type '" "char [256]""'");
5567  }
5568  arg2 = (char *)(temp2);
5569  if (arg2) memcpy(arg1->m_modver,arg2,256*sizeof(char));
5570  else memset(arg1->m_modver,0,256*sizeof(char));
5571  resultobj = SWIG_Py_Void();
5572  return resultobj;
5573 fail:
5574  return NULL;
5575 }
5576 
5577 
5578 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_modver_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5579  PyObject *resultobj = 0;
5580  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5581  void *argp1 = 0 ;
5582  int res1 = 0 ;
5583  PyObject * obj0 = 0 ;
5584  char *result = 0 ;
5585 
5586  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_modver_get",&obj0)) SWIG_fail;
5587  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5588  if (!SWIG_IsOK(res1)) {
5589  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_modver_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5590  }
5591  arg1 = (BsVConnInfo_T *)(argp1);
5592  result = (char *)(char *) ((arg1)->m_modver);
5593  {
5594  size_t size = SWIG_strnlen(result, 256);
5595 
5596 
5597 
5598  resultobj = SWIG_FromCharPtrAndSize(result, size);
5599  }
5600  return resultobj;
5601 fail:
5602  return NULL;
5603 }
5604 
5605 
5606 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_moddate_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5607  PyObject *resultobj = 0;
5608  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5609  char *arg2 ;
5610  void *argp1 = 0 ;
5611  int res1 = 0 ;
5612  char temp2[256] ;
5613  int res2 ;
5614  PyObject * obj0 = 0 ;
5615  PyObject * obj1 = 0 ;
5616 
5617  if (!PyArg_ParseTuple(args,(char *)"OO:BsVConnInfo_T_m_moddate_set",&obj0,&obj1)) SWIG_fail;
5618  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5619  if (!SWIG_IsOK(res1)) {
5620  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_moddate_set" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5621  }
5622  arg1 = (BsVConnInfo_T *)(argp1);
5623  res2 = SWIG_AsCharArray(obj1, temp2, 256);
5624  if (!SWIG_IsOK(res2)) {
5625  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BsVConnInfo_T_m_moddate_set" "', argument " "2"" of type '" "char [256]""'");
5626  }
5627  arg2 = (char *)(temp2);
5628  if (arg2) memcpy(arg1->m_moddate,arg2,256*sizeof(char));
5629  else memset(arg1->m_moddate,0,256*sizeof(char));
5630  resultobj = SWIG_Py_Void();
5631  return resultobj;
5632 fail:
5633  return NULL;
5634 }
5635 
5636 
5637 SWIGINTERN PyObject *_wrap_BsVConnInfo_T_m_moddate_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638  PyObject *resultobj = 0;
5639  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5640  void *argp1 = 0 ;
5641  int res1 = 0 ;
5642  PyObject * obj0 = 0 ;
5643  char *result = 0 ;
5644 
5645  if (!PyArg_ParseTuple(args,(char *)"O:BsVConnInfo_T_m_moddate_get",&obj0)) SWIG_fail;
5646  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
5647  if (!SWIG_IsOK(res1)) {
5648  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BsVConnInfo_T_m_moddate_get" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5649  }
5650  arg1 = (BsVConnInfo_T *)(argp1);
5651  result = (char *)(char *) ((arg1)->m_moddate);
5652  {
5653  size_t size = SWIG_strnlen(result, 256);
5654 
5655 
5656 
5657  resultobj = SWIG_FromCharPtrAndSize(result, size);
5658  }
5659  return resultobj;
5660 fail:
5661  return NULL;
5662 }
5663 
5664 
5665 SWIGINTERN PyObject *_wrap_new_BsVConnInfo_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5666  PyObject *resultobj = 0;
5667  BsVConnInfo_T *result = 0 ;
5668 
5669  if (!PyArg_ParseTuple(args,(char *)":new_BsVConnInfo_T")) SWIG_fail;
5670  result = (BsVConnInfo_T *)calloc(1, sizeof(BsVConnInfo_T));
5671  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BsVConnInfo_T, SWIG_POINTER_NEW | 0 );
5672  return resultobj;
5673 fail:
5674  return NULL;
5675 }
5676 
5677 
5678 SWIGINTERN PyObject *_wrap_delete_BsVConnInfo_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5679  PyObject *resultobj = 0;
5680  BsVConnInfo_T *arg1 = (BsVConnInfo_T *) 0 ;
5681  void *argp1 = 0 ;
5682  int res1 = 0 ;
5683  PyObject * obj0 = 0 ;
5684 
5685  if (!PyArg_ParseTuple(args,(char *)"O:delete_BsVConnInfo_T",&obj0)) SWIG_fail;
5686  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsVConnInfo_T, SWIG_POINTER_DISOWN | 0 );
5687  if (!SWIG_IsOK(res1)) {
5688  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BsVConnInfo_T" "', argument " "1"" of type '" "BsVConnInfo_T *""'");
5689  }
5690  arg1 = (BsVConnInfo_T *)(argp1);
5691  free((char *) arg1);
5692  resultobj = SWIG_Py_Void();
5693  return resultobj;
5694 fail:
5695  return NULL;
5696 }
5697 
5698 
5699 SWIGINTERN PyObject *BsVConnInfo_T_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5700  PyObject *obj;
5701  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
5702  SWIG_TypeNewClientData(SWIGTYPE_p_BsVConnInfo_T, SWIG_NewClientData(obj));
5703  return SWIG_Py_Void();
5704 }
5705 
5706 SWIGINTERN PyObject *_wrap_bsStrError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707  PyObject *resultobj = 0;
5708  int arg1 ;
5709  int val1 ;
5710  int ecode1 = 0 ;
5711  PyObject * obj0 = 0 ;
5712  char *result = 0 ;
5713 
5714  if (!PyArg_ParseTuple(args,(char *)"O:bsStrError",&obj0)) SWIG_fail;
5715  ecode1 = SWIG_AsVal_int(obj0, &val1);
5716  if (!SWIG_IsOK(ecode1)) {
5717  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "bsStrError" "', argument " "1"" of type '" "int""'");
5718  }
5719  arg1 = (int)(val1);
5720  result = (char *)bsStrError(arg1);
5721  resultobj = SWIG_FromCharPtr((const char *)result);
5722  return resultobj;
5723 fail:
5724  return NULL;
5725 }
5726 
5727 
5728 SWIGINTERN PyObject *_wrap_bsPackMsgHdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729  PyObject *resultobj = 0;
5730  BsProxyMsgHdr_T *arg1 = (BsProxyMsgHdr_T *) 0 ;
5731  byte_t *arg2 ;
5732  size_t arg3 ;
5733  void *argp1 = 0 ;
5734  int res1 = 0 ;
5735  void *argp2 = 0 ;
5736  int res2 = 0 ;
5737  size_t val3 ;
5738  int ecode3 = 0 ;
5739  PyObject * obj0 = 0 ;
5740  PyObject * obj1 = 0 ;
5741  PyObject * obj2 = 0 ;
5742  int result;
5743 
5744  if (!PyArg_ParseTuple(args,(char *)"OOO:bsPackMsgHdr",&obj0,&obj1,&obj2)) SWIG_fail;
5745  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
5746  if (!SWIG_IsOK(res1)) {
5747  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsPackMsgHdr" "', argument " "1"" of type '" "BsProxyMsgHdr_T *""'");
5748  }
5749  arg1 = (BsProxyMsgHdr_T *)(argp1);
5750  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
5751  if (!SWIG_IsOK(res2)) {
5752  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsPackMsgHdr" "', argument " "2"" of type '" "byte_t []""'");
5753  }
5754  arg2 = (byte_t *)(argp2);
5755  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
5756  if (!SWIG_IsOK(ecode3)) {
5757  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsPackMsgHdr" "', argument " "3"" of type '" "size_t""'");
5758  }
5759  arg3 = (size_t)(val3);
5760  result = (int)bsPackMsgHdr(arg1,arg2,arg3);
5761  resultobj = SWIG_From_int((int)(result));
5762  return resultobj;
5763 fail:
5764  return NULL;
5765 }
5766 
5767 
5768 SWIGINTERN PyObject *_wrap_bsUnpackMsgHdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5769  PyObject *resultobj = 0;
5770  byte_t *arg1 ;
5771  size_t arg2 ;
5772  BsProxyMsgHdr_T *arg3 = (BsProxyMsgHdr_T *) 0 ;
5773  void *argp1 = 0 ;
5774  int res1 = 0 ;
5775  size_t val2 ;
5776  int ecode2 = 0 ;
5777  void *argp3 = 0 ;
5778  int res3 = 0 ;
5779  PyObject * obj0 = 0 ;
5780  PyObject * obj1 = 0 ;
5781  PyObject * obj2 = 0 ;
5782  int result;
5783 
5784  if (!PyArg_ParseTuple(args,(char *)"OOO:bsUnpackMsgHdr",&obj0,&obj1,&obj2)) SWIG_fail;
5785  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
5786  if (!SWIG_IsOK(res1)) {
5787  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsUnpackMsgHdr" "', argument " "1"" of type '" "byte_t []""'");
5788  }
5789  arg1 = (byte_t *)(argp1);
5790  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5791  if (!SWIG_IsOK(ecode2)) {
5792  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsUnpackMsgHdr" "', argument " "2"" of type '" "size_t""'");
5793  }
5794  arg2 = (size_t)(val2);
5795  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
5796  if (!SWIG_IsOK(res3)) {
5797  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "bsUnpackMsgHdr" "', argument " "3"" of type '" "BsProxyMsgHdr_T *""'");
5798  }
5799  arg3 = (BsProxyMsgHdr_T *)(argp3);
5800  result = (int)bsUnpackMsgHdr(arg1,arg2,arg3);
5801  resultobj = SWIG_From_int((int)(result));
5802  return resultobj;
5803 fail:
5804  return NULL;
5805 }
5806 
5807 
5808 SWIGINTERN PyObject *_wrap_bsClientNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5809  PyObject *resultobj = 0;
5810  char *arg1 = (char *) 0 ;
5811  int res1 ;
5812  char *buf1 = 0 ;
5813  int alloc1 = 0 ;
5814  PyObject * obj0 = 0 ;
5815  BsClient_P result;
5816 
5817  if (!PyArg_ParseTuple(args,(char *)"O:bsClientNew",&obj0)) SWIG_fail;
5818  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
5819  if (!SWIG_IsOK(res1)) {
5820  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientNew" "', argument " "1"" of type '" "char const *""'");
5821  }
5822  arg1 = (char *)(buf1);
5823  result = (BsClient_P)bsClientNew((char const *)arg1);
5824  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__bsClientStruct, 0 | 0 );
5825  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5826  return resultobj;
5827 fail:
5828  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5829  return NULL;
5830 }
5831 
5832 
5833 SWIGINTERN PyObject *_wrap_bsClientDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5834  PyObject *resultobj = 0;
5835  BsClient_P arg1 = (BsClient_P) 0 ;
5836  void *argp1 = 0 ;
5837  int res1 = 0 ;
5838  PyObject * obj0 = 0 ;
5839 
5840  if (!PyArg_ParseTuple(args,(char *)"O:bsClientDelete",&obj0)) SWIG_fail;
5841  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
5842  if (!SWIG_IsOK(res1)) {
5843  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientDelete" "', argument " "1"" of type '" "BsClient_P""'");
5844  }
5845  arg1 = (BsClient_P)(argp1);
5846  bsClientDelete(arg1);
5847  resultobj = SWIG_Py_Void();
5848  return resultobj;
5849 fail:
5850  return NULL;
5851 }
5852 
5853 
5854 SWIGINTERN PyObject *_wrap_bsClientTrans(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5855  PyObject *resultobj = 0;
5856  BsClient_P arg1 = (BsClient_P) 0 ;
5857  int arg2 ;
5858  uint_t arg3 ;
5859  byte_t *arg4 ;
5860  size_t arg5 ;
5861  uint_t arg6 ;
5862  byte_t *arg7 ;
5863  size_t arg8 ;
5864  void *argp1 = 0 ;
5865  int res1 = 0 ;
5866  int val2 ;
5867  int ecode2 = 0 ;
5868  unsigned int val3 ;
5869  int ecode3 = 0 ;
5870  void *argp4 = 0 ;
5871  int res4 = 0 ;
5872  size_t val5 ;
5873  int ecode5 = 0 ;
5874  unsigned int val6 ;
5875  int ecode6 = 0 ;
5876  void *argp7 = 0 ;
5877  int res7 = 0 ;
5878  size_t val8 ;
5879  int ecode8 = 0 ;
5880  PyObject * obj0 = 0 ;
5881  PyObject * obj1 = 0 ;
5882  PyObject * obj2 = 0 ;
5883  PyObject * obj3 = 0 ;
5884  PyObject * obj4 = 0 ;
5885  PyObject * obj5 = 0 ;
5886  PyObject * obj6 = 0 ;
5887  PyObject * obj7 = 0 ;
5888  int result;
5889 
5890  if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:bsClientTrans",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5891  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
5892  if (!SWIG_IsOK(res1)) {
5893  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientTrans" "', argument " "1"" of type '" "BsClient_P""'");
5894  }
5895  arg1 = (BsClient_P)(argp1);
5896  ecode2 = SWIG_AsVal_int(obj1, &val2);
5897  if (!SWIG_IsOK(ecode2)) {
5898  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientTrans" "', argument " "2"" of type '" "int""'");
5899  }
5900  arg2 = (int)(val2);
5901  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
5902  if (!SWIG_IsOK(ecode3)) {
5903  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsClientTrans" "', argument " "3"" of type '" "uint_t""'");
5904  }
5905  arg3 = (uint_t)(val3);
5906  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
5907  if (!SWIG_IsOK(res4)) {
5908  SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "bsClientTrans" "', argument " "4"" of type '" "byte_t []""'");
5909  }
5910  arg4 = (byte_t *)(argp4);
5911  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
5912  if (!SWIG_IsOK(ecode5)) {
5913  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "bsClientTrans" "', argument " "5"" of type '" "size_t""'");
5914  }
5915  arg5 = (size_t)(val5);
5916  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
5917  if (!SWIG_IsOK(ecode6)) {
5918  SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "bsClientTrans" "', argument " "6"" of type '" "uint_t""'");
5919  }
5920  arg6 = (uint_t)(val6);
5921  res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 );
5922  if (!SWIG_IsOK(res7)) {
5923  SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "bsClientTrans" "', argument " "7"" of type '" "byte_t []""'");
5924  }
5925  arg7 = (byte_t *)(argp7);
5926  ecode8 = SWIG_AsVal_size_t(obj7, &val8);
5927  if (!SWIG_IsOK(ecode8)) {
5928  SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "bsClientTrans" "', argument " "8"" of type '" "size_t""'");
5929  }
5930  arg8 = (size_t)(val8);
5931  result = (int)bsClientTrans(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5932  resultobj = SWIG_From_int((int)(result));
5933  return resultobj;
5934 fail:
5935  return NULL;
5936 }
5937 
5938 
5939 SWIGINTERN PyObject *_wrap_bsClientAttrGetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940  PyObject *resultobj = 0;
5941  BsClient_P arg1 = (BsClient_P) 0 ;
5942  void *argp1 = 0 ;
5943  int res1 = 0 ;
5944  PyObject * obj0 = 0 ;
5945  char *result = 0 ;
5946 
5947  if (!PyArg_ParseTuple(args,(char *)"O:bsClientAttrGetName",&obj0)) SWIG_fail;
5948  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
5949  if (!SWIG_IsOK(res1)) {
5950  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetName" "', argument " "1"" of type '" "BsClient_P""'");
5951  }
5952  arg1 = (BsClient_P)(argp1);
5953  result = (char *)bsClientAttrGetName(arg1);
5954  resultobj = SWIG_FromCharPtr((const char *)result);
5955  return resultobj;
5956 fail:
5957  return NULL;
5958 }
5959 
5960 
5961 SWIGINTERN PyObject *_wrap_bsClientAttrGetTimeouts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5962  PyObject *resultobj = 0;
5963  BsClient_P arg1 = (BsClient_P) 0 ;
5964  uint_t *arg2 = (uint_t *) 0 ;
5965  uint_t *arg3 = (uint_t *) 0 ;
5966  void *argp1 = 0 ;
5967  int res1 = 0 ;
5968  void *argp2 = 0 ;
5969  int res2 = 0 ;
5970  void *argp3 = 0 ;
5971  int res3 = 0 ;
5972  PyObject * obj0 = 0 ;
5973  PyObject * obj1 = 0 ;
5974  PyObject * obj2 = 0 ;
5975 
5976  if (!PyArg_ParseTuple(args,(char *)"OOO:bsClientAttrGetTimeouts",&obj0,&obj1,&obj2)) SWIG_fail;
5977  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
5978  if (!SWIG_IsOK(res1)) {
5979  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetTimeouts" "', argument " "1"" of type '" "BsClient_P""'");
5980  }
5981  arg1 = (BsClient_P)(argp1);
5982  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 );
5983  if (!SWIG_IsOK(res2)) {
5984  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsClientAttrGetTimeouts" "', argument " "2"" of type '" "uint_t *""'");
5985  }
5986  arg2 = (uint_t *)(argp2);
5987  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
5988  if (!SWIG_IsOK(res3)) {
5989  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "bsClientAttrGetTimeouts" "', argument " "3"" of type '" "uint_t *""'");
5990  }
5991  arg3 = (uint_t *)(argp3);
5992  bsClientAttrGetTimeouts(arg1,arg2,arg3);
5993  resultobj = SWIG_Py_Void();
5994  return resultobj;
5995 fail:
5996  return NULL;
5997 }
5998 
5999 
6000 SWIGINTERN PyObject *_wrap_bsClientAttrSetTimeouts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6001  PyObject *resultobj = 0;
6002  BsClient_P arg1 = (BsClient_P) 0 ;
6003  uint_t arg2 ;
6004  uint_t arg3 ;
6005  void *argp1 = 0 ;
6006  int res1 = 0 ;
6007  unsigned int val2 ;
6008  int ecode2 = 0 ;
6009  unsigned int val3 ;
6010  int ecode3 = 0 ;
6011  PyObject * obj0 = 0 ;
6012  PyObject * obj1 = 0 ;
6013  PyObject * obj2 = 0 ;
6014 
6015  if (!PyArg_ParseTuple(args,(char *)"OOO:bsClientAttrSetTimeouts",&obj0,&obj1,&obj2)) SWIG_fail;
6016  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6017  if (!SWIG_IsOK(res1)) {
6018  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrSetTimeouts" "', argument " "1"" of type '" "BsClient_P""'");
6019  }
6020  arg1 = (BsClient_P)(argp1);
6021  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6022  if (!SWIG_IsOK(ecode2)) {
6023  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrSetTimeouts" "', argument " "2"" of type '" "uint_t""'");
6024  }
6025  arg2 = (uint_t)(val2);
6026  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
6027  if (!SWIG_IsOK(ecode3)) {
6028  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsClientAttrSetTimeouts" "', argument " "3"" of type '" "uint_t""'");
6029  }
6030  arg3 = (uint_t)(val3);
6031  bsClientAttrSetTimeouts(arg1,arg2,arg3);
6032  resultobj = SWIG_Py_Void();
6033  return resultobj;
6034 fail:
6035  return NULL;
6036 }
6037 
6038 
6039 SWIGINTERN PyObject *_wrap_bsClientAttrGetTraceState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6040  PyObject *resultobj = 0;
6041  BsClient_P arg1 = (BsClient_P) 0 ;
6042  BsVConnHnd_T arg2 ;
6043  void *argp1 = 0 ;
6044  int res1 = 0 ;
6045  int val2 ;
6046  int ecode2 = 0 ;
6047  PyObject * obj0 = 0 ;
6048  PyObject * obj1 = 0 ;
6049  bool_t result;
6050 
6051  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrGetTraceState",&obj0,&obj1)) SWIG_fail;
6052  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6053  if (!SWIG_IsOK(res1)) {
6054  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetTraceState" "', argument " "1"" of type '" "BsClient_P""'");
6055  }
6056  arg1 = (BsClient_P)(argp1);
6057  ecode2 = SWIG_AsVal_int(obj1, &val2);
6058  if (!SWIG_IsOK(ecode2)) {
6059  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrGetTraceState" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6060  }
6061  arg2 = (BsVConnHnd_T)(val2);
6062  result = (bool_t)bsClientAttrGetTraceState(arg1,arg2);
6063  resultobj = SWIG_From_int((int)(result));
6064  return resultobj;
6065 fail:
6066  return NULL;
6067 }
6068 
6069 
6070 SWIGINTERN PyObject *_wrap_bsClientAttrGetVConnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6071  PyObject *resultobj = 0;
6072  BsClient_P arg1 = (BsClient_P) 0 ;
6073  void *argp1 = 0 ;
6074  int res1 = 0 ;
6075  PyObject * obj0 = 0 ;
6076  int result;
6077 
6078  if (!PyArg_ParseTuple(args,(char *)"O:bsClientAttrGetVConnCount",&obj0)) SWIG_fail;
6079  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6080  if (!SWIG_IsOK(res1)) {
6081  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetVConnCount" "', argument " "1"" of type '" "BsClient_P""'");
6082  }
6083  arg1 = (BsClient_P)(argp1);
6084  result = (int)bsClientAttrGetVConnCount(arg1);
6085  resultobj = SWIG_From_int((int)(result));
6086  return resultobj;
6087 fail:
6088  return NULL;
6089 }
6090 
6091 
6092 SWIGINTERN PyObject *_wrap_bsClientAttrHasVConn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6093  PyObject *resultobj = 0;
6094  BsClient_P arg1 = (BsClient_P) 0 ;
6095  BsVConnHnd_T arg2 ;
6096  void *argp1 = 0 ;
6097  int res1 = 0 ;
6098  int val2 ;
6099  int ecode2 = 0 ;
6100  PyObject * obj0 = 0 ;
6101  PyObject * obj1 = 0 ;
6102  bool_t result;
6103 
6104  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrHasVConn",&obj0,&obj1)) SWIG_fail;
6105  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6106  if (!SWIG_IsOK(res1)) {
6107  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrHasVConn" "', argument " "1"" of type '" "BsClient_P""'");
6108  }
6109  arg1 = (BsClient_P)(argp1);
6110  ecode2 = SWIG_AsVal_int(obj1, &val2);
6111  if (!SWIG_IsOK(ecode2)) {
6112  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrHasVConn" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6113  }
6114  arg2 = (BsVConnHnd_T)(val2);
6115  result = (bool_t)bsClientAttrHasVConn(arg1,arg2);
6116  resultobj = SWIG_From_int((int)(result));
6117  return resultobj;
6118 fail:
6119  return NULL;
6120 }
6121 
6122 
6123 SWIGINTERN PyObject *_wrap_bsClientAttrGetDevName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6124  PyObject *resultobj = 0;
6125  BsClient_P arg1 = (BsClient_P) 0 ;
6126  BsVConnHnd_T arg2 ;
6127  void *argp1 = 0 ;
6128  int res1 = 0 ;
6129  int val2 ;
6130  int ecode2 = 0 ;
6131  PyObject * obj0 = 0 ;
6132  PyObject * obj1 = 0 ;
6133  char *result = 0 ;
6134 
6135  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrGetDevName",&obj0,&obj1)) SWIG_fail;
6136  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6137  if (!SWIG_IsOK(res1)) {
6138  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetDevName" "', argument " "1"" of type '" "BsClient_P""'");
6139  }
6140  arg1 = (BsClient_P)(argp1);
6141  ecode2 = SWIG_AsVal_int(obj1, &val2);
6142  if (!SWIG_IsOK(ecode2)) {
6143  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrGetDevName" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6144  }
6145  arg2 = (BsVConnHnd_T)(val2);
6146  result = (char *)bsClientAttrGetDevName(arg1,arg2);
6147  resultobj = SWIG_FromCharPtr((const char *)result);
6148  return resultobj;
6149 fail:
6150  return NULL;
6151 }
6152 
6153 
6154 SWIGINTERN PyObject *_wrap_bsClientAttrGetModName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155  PyObject *resultobj = 0;
6156  BsClient_P arg1 = (BsClient_P) 0 ;
6157  BsVConnHnd_T arg2 ;
6158  void *argp1 = 0 ;
6159  int res1 = 0 ;
6160  int val2 ;
6161  int ecode2 = 0 ;
6162  PyObject * obj0 = 0 ;
6163  PyObject * obj1 = 0 ;
6164  char *result = 0 ;
6165 
6166  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrGetModName",&obj0,&obj1)) SWIG_fail;
6167  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6168  if (!SWIG_IsOK(res1)) {
6169  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetModName" "', argument " "1"" of type '" "BsClient_P""'");
6170  }
6171  arg1 = (BsClient_P)(argp1);
6172  ecode2 = SWIG_AsVal_int(obj1, &val2);
6173  if (!SWIG_IsOK(ecode2)) {
6174  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrGetModName" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6175  }
6176  arg2 = (BsVConnHnd_T)(val2);
6177  result = (char *)bsClientAttrGetModName(arg1,arg2);
6178  resultobj = SWIG_FromCharPtr((const char *)result);
6179  return resultobj;
6180 fail:
6181  return NULL;
6182 }
6183 
6184 
6185 SWIGINTERN PyObject *_wrap_bsClientAttrSetLogging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186  PyObject *resultobj = 0;
6187  BsClient_P arg1 = (BsClient_P) 0 ;
6188  int arg2 ;
6189  void *argp1 = 0 ;
6190  int res1 = 0 ;
6191  int val2 ;
6192  int ecode2 = 0 ;
6193  PyObject * obj0 = 0 ;
6194  PyObject * obj1 = 0 ;
6195 
6196  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrSetLogging",&obj0,&obj1)) SWIG_fail;
6197  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6198  if (!SWIG_IsOK(res1)) {
6199  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrSetLogging" "', argument " "1"" of type '" "BsClient_P""'");
6200  }
6201  arg1 = (BsClient_P)(argp1);
6202  ecode2 = SWIG_AsVal_int(obj1, &val2);
6203  if (!SWIG_IsOK(ecode2)) {
6204  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientAttrSetLogging" "', argument " "2"" of type '" "int""'");
6205  }
6206  arg2 = (int)(val2);
6207  bsClientAttrSetLogging(arg1,arg2);
6208  resultobj = SWIG_Py_Void();
6209  return resultobj;
6210 fail:
6211  return NULL;
6212 }
6213 
6214 
6215 SWIGINTERN PyObject *_wrap_bsClientAttrGetConnState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6216  PyObject *resultobj = 0;
6217  BsClient_P arg1 = (BsClient_P) 0 ;
6219  void *argp1 = 0 ;
6220  int res1 = 0 ;
6221  void *argp2 = 0 ;
6222  int res2 = 0 ;
6223  PyObject * obj0 = 0 ;
6224  PyObject * obj1 = 0 ;
6225 
6226  if (!PyArg_ParseTuple(args,(char *)"OO:bsClientAttrGetConnState",&obj0,&obj1)) SWIG_fail;
6227  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6228  if (!SWIG_IsOK(res1)) {
6229  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientAttrGetConnState" "', argument " "1"" of type '" "BsClient_P""'");
6230  }
6231  arg1 = (BsClient_P)(argp1);
6232  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BsClientConnState_T, 0 | 0 );
6233  if (!SWIG_IsOK(res2)) {
6234  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsClientAttrGetConnState" "', argument " "2"" of type '" "BsClientConnState_T *""'");
6235  }
6236  arg2 = (BsClientConnState_T *)(argp2);
6237  bsClientAttrGetConnState(arg1,arg2);
6238  resultobj = SWIG_Py_Void();
6239  return resultobj;
6240 fail:
6241  return NULL;
6242 }
6243 
6244 
6245 SWIGINTERN PyObject *_wrap_bsClientFillMsgHdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6246  PyObject *resultobj = 0;
6247  BsClient_P arg1 = (BsClient_P) 0 ;
6248  BsVConnHnd_T arg2 ;
6249  uint_t arg3 ;
6250  size_t arg4 ;
6251  BsProxyMsgHdr_T *arg5 = (BsProxyMsgHdr_T *) 0 ;
6252  void *argp1 = 0 ;
6253  int res1 = 0 ;
6254  int val2 ;
6255  int ecode2 = 0 ;
6256  unsigned int val3 ;
6257  int ecode3 = 0 ;
6258  size_t val4 ;
6259  int ecode4 = 0 ;
6260  void *argp5 = 0 ;
6261  int res5 = 0 ;
6262  PyObject * obj0 = 0 ;
6263  PyObject * obj1 = 0 ;
6264  PyObject * obj2 = 0 ;
6265  PyObject * obj3 = 0 ;
6266  PyObject * obj4 = 0 ;
6267 
6268  if (!PyArg_ParseTuple(args,(char *)"OOOOO:bsClientFillMsgHdr",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
6269  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6270  if (!SWIG_IsOK(res1)) {
6271  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientFillMsgHdr" "', argument " "1"" of type '" "BsClient_P""'");
6272  }
6273  arg1 = (BsClient_P)(argp1);
6274  ecode2 = SWIG_AsVal_int(obj1, &val2);
6275  if (!SWIG_IsOK(ecode2)) {
6276  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientFillMsgHdr" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6277  }
6278  arg2 = (BsVConnHnd_T)(val2);
6279  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
6280  if (!SWIG_IsOK(ecode3)) {
6281  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsClientFillMsgHdr" "', argument " "3"" of type '" "uint_t""'");
6282  }
6283  arg3 = (uint_t)(val3);
6284  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
6285  if (!SWIG_IsOK(ecode4)) {
6286  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "bsClientFillMsgHdr" "', argument " "4"" of type '" "size_t""'");
6287  }
6288  arg4 = (size_t)(val4);
6289  res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_BsProxyMsgHdr_T, 0 | 0 );
6290  if (!SWIG_IsOK(res5)) {
6291  SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "bsClientFillMsgHdr" "', argument " "5"" of type '" "BsProxyMsgHdr_T *""'");
6292  }
6293  arg5 = (BsProxyMsgHdr_T *)(argp5);
6294  bsClientFillMsgHdr(arg1,arg2,arg3,arg4,arg5);
6295  resultobj = SWIG_Py_Void();
6296  return resultobj;
6297 fail:
6298  return NULL;
6299 }
6300 
6301 
6302 SWIGINTERN PyObject *_wrap_bsClientGetMsgName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6303  PyObject *resultobj = 0;
6304  BsClient_P arg1 = (BsClient_P) 0 ;
6305  BsVConnHnd_T arg2 ;
6306  uint_t arg3 ;
6307  void *argp1 = 0 ;
6308  int res1 = 0 ;
6309  int val2 ;
6310  int ecode2 = 0 ;
6311  unsigned int val3 ;
6312  int ecode3 = 0 ;
6313  PyObject * obj0 = 0 ;
6314  PyObject * obj1 = 0 ;
6315  PyObject * obj2 = 0 ;
6316  char *result = 0 ;
6317 
6318  if (!PyArg_ParseTuple(args,(char *)"OOO:bsClientGetMsgName",&obj0,&obj1,&obj2)) SWIG_fail;
6319  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6320  if (!SWIG_IsOK(res1)) {
6321  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsClientGetMsgName" "', argument " "1"" of type '" "BsClient_P""'");
6322  }
6323  arg1 = (BsClient_P)(argp1);
6324  ecode2 = SWIG_AsVal_int(obj1, &val2);
6325  if (!SWIG_IsOK(ecode2)) {
6326  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsClientGetMsgName" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6327  }
6328  arg2 = (BsVConnHnd_T)(val2);
6329  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
6330  if (!SWIG_IsOK(ecode3)) {
6331  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsClientGetMsgName" "', argument " "3"" of type '" "uint_t""'");
6332  }
6333  arg3 = (uint_t)(val3);
6334  result = (char *)bsClientGetMsgName(arg1,arg2,arg3);
6335  resultobj = SWIG_FromCharPtr((const char *)result);
6336  return resultobj;
6337 fail:
6338  return NULL;
6339 }
6340 
6341 
6342 SWIGINTERN PyObject *_wrap_bsServerConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6343  PyObject *resultobj = 0;
6344  BsClient_P arg1 = (BsClient_P) 0 ;
6345  char *arg2 = (char *) 0 ;
6346  int arg3 ;
6347  void *argp1 = 0 ;
6348  int res1 = 0 ;
6349  int res2 ;
6350  char *buf2 = 0 ;
6351  int alloc2 = 0 ;
6352  int val3 ;
6353  int ecode3 = 0 ;
6354  PyObject * obj0 = 0 ;
6355  PyObject * obj1 = 0 ;
6356  PyObject * obj2 = 0 ;
6357  int result;
6358 
6359  if (!PyArg_ParseTuple(args,(char *)"OOO:bsServerConnect",&obj0,&obj1,&obj2)) SWIG_fail;
6360  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6361  if (!SWIG_IsOK(res1)) {
6362  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerConnect" "', argument " "1"" of type '" "BsClient_P""'");
6363  }
6364  arg1 = (BsClient_P)(argp1);
6365  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6366  if (!SWIG_IsOK(res2)) {
6367  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsServerConnect" "', argument " "2"" of type '" "char const *""'");
6368  }
6369  arg2 = (char *)(buf2);
6370  ecode3 = SWIG_AsVal_int(obj2, &val3);
6371  if (!SWIG_IsOK(ecode3)) {
6372  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsServerConnect" "', argument " "3"" of type '" "int""'");
6373  }
6374  arg3 = (int)(val3);
6375  result = (int)bsServerConnect(arg1,(char const *)arg2,arg3);
6376  resultobj = SWIG_From_int((int)(result));
6377  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6378  return resultobj;
6379 fail:
6380  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6381  return NULL;
6382 }
6383 
6384 
6385 SWIGINTERN PyObject *_wrap_bsServerDisconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6386  PyObject *resultobj = 0;
6387  BsClient_P arg1 = (BsClient_P) 0 ;
6388  void *argp1 = 0 ;
6389  int res1 = 0 ;
6390  PyObject * obj0 = 0 ;
6391  int result;
6392 
6393  if (!PyArg_ParseTuple(args,(char *)"O:bsServerDisconnect",&obj0)) SWIG_fail;
6394  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6395  if (!SWIG_IsOK(res1)) {
6396  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerDisconnect" "', argument " "1"" of type '" "BsClient_P""'");
6397  }
6398  arg1 = (BsClient_P)(argp1);
6399  result = (int)bsServerDisconnect(arg1);
6400  resultobj = SWIG_From_int((int)(result));
6401  return resultobj;
6402 fail:
6403  return NULL;
6404 }
6405 
6406 
6407 SWIGINTERN PyObject *_wrap_bsServerReqGetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6408  PyObject *resultobj = 0;
6409  BsClient_P arg1 = (BsClient_P) 0 ;
6410  char *arg2 ;
6411  size_t arg3 ;
6412  void *argp1 = 0 ;
6413  int res1 = 0 ;
6414  int res2 ;
6415  char *buf2 = 0 ;
6416  int alloc2 = 0 ;
6417  size_t val3 ;
6418  int ecode3 = 0 ;
6419  PyObject * obj0 = 0 ;
6420  PyObject * obj1 = 0 ;
6421  PyObject * obj2 = 0 ;
6422  int result;
6423 
6424  if (!PyArg_ParseTuple(args,(char *)"OOO:bsServerReqGetVersion",&obj0,&obj1,&obj2)) SWIG_fail;
6425  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6426  if (!SWIG_IsOK(res1)) {
6427  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqGetVersion" "', argument " "1"" of type '" "BsClient_P""'");
6428  }
6429  arg1 = (BsClient_P)(argp1);
6430  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6431  if (!SWIG_IsOK(res2)) {
6432  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsServerReqGetVersion" "', argument " "2"" of type '" "char []""'");
6433  }
6434  arg2 = (char *)(buf2);
6435  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
6436  if (!SWIG_IsOK(ecode3)) {
6437  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsServerReqGetVersion" "', argument " "3"" of type '" "size_t""'");
6438  }
6439  arg3 = (size_t)(val3);
6440  result = (int)bsServerReqGetVersion(arg1,arg2,arg3);
6441  resultobj = SWIG_From_int((int)(result));
6442  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6443  return resultobj;
6444 fail:
6445  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6446  return NULL;
6447 }
6448 
6449 
6450 SWIGINTERN PyObject *_wrap_bsServerReqLoopback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6451  PyObject *resultobj = 0;
6452  BsClient_P arg1 = (BsClient_P) 0 ;
6453  char *arg2 ;
6454  void *argp1 = 0 ;
6455  int res1 = 0 ;
6456  int res2 ;
6457  char *buf2 = 0 ;
6458  int alloc2 = 0 ;
6459  PyObject * obj0 = 0 ;
6460  PyObject * obj1 = 0 ;
6461  int result;
6462 
6463  if (!PyArg_ParseTuple(args,(char *)"OO:bsServerReqLoopback",&obj0,&obj1)) SWIG_fail;
6464  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6465  if (!SWIG_IsOK(res1)) {
6466  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqLoopback" "', argument " "1"" of type '" "BsClient_P""'");
6467  }
6468  arg1 = (BsClient_P)(argp1);
6469  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6470  if (!SWIG_IsOK(res2)) {
6471  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsServerReqLoopback" "', argument " "2"" of type '" "char []""'");
6472  }
6473  arg2 = (char *)(buf2);
6474  result = (int)bsServerReqLoopback(arg1,arg2);
6475  resultobj = SWIG_From_int((int)(result));
6476  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6477  return resultobj;
6478 fail:
6479  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6480  return NULL;
6481 }
6482 
6483 
6484 SWIGINTERN PyObject *_wrap_bsServerReqSetLogging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485  PyObject *resultobj = 0;
6486  BsClient_P arg1 = (BsClient_P) 0 ;
6487  int arg2 ;
6488  void *argp1 = 0 ;
6489  int res1 = 0 ;
6490  int val2 ;
6491  int ecode2 = 0 ;
6492  PyObject * obj0 = 0 ;
6493  PyObject * obj1 = 0 ;
6494  int result;
6495 
6496  if (!PyArg_ParseTuple(args,(char *)"OO:bsServerReqSetLogging",&obj0,&obj1)) SWIG_fail;
6497  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6498  if (!SWIG_IsOK(res1)) {
6499  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqSetLogging" "', argument " "1"" of type '" "BsClient_P""'");
6500  }
6501  arg1 = (BsClient_P)(argp1);
6502  ecode2 = SWIG_AsVal_int(obj1, &val2);
6503  if (!SWIG_IsOK(ecode2)) {
6504  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsServerReqSetLogging" "', argument " "2"" of type '" "int""'");
6505  }
6506  arg2 = (int)(val2);
6507  result = (int)bsServerReqSetLogging(arg1,arg2);
6508  resultobj = SWIG_From_int((int)(result));
6509  return resultobj;
6510 fail:
6511  return NULL;
6512 }
6513 
6514 
6515 SWIGINTERN PyObject *_wrap_bsServerReqMsgTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6516  PyObject *resultobj = 0;
6517  BsClient_P arg1 = (BsClient_P) 0 ;
6518  BsVConnHnd_T arg2 ;
6519  bool_t arg3 ;
6520  void *argp1 = 0 ;
6521  int res1 = 0 ;
6522  int val2 ;
6523  int ecode2 = 0 ;
6524  int val3 ;
6525  int ecode3 = 0 ;
6526  PyObject * obj0 = 0 ;
6527  PyObject * obj1 = 0 ;
6528  PyObject * obj2 = 0 ;
6529  int result;
6530 
6531  if (!PyArg_ParseTuple(args,(char *)"OOO:bsServerReqMsgTrace",&obj0,&obj1,&obj2)) SWIG_fail;
6532  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6533  if (!SWIG_IsOK(res1)) {
6534  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqMsgTrace" "', argument " "1"" of type '" "BsClient_P""'");
6535  }
6536  arg1 = (BsClient_P)(argp1);
6537  ecode2 = SWIG_AsVal_int(obj1, &val2);
6538  if (!SWIG_IsOK(ecode2)) {
6539  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsServerReqMsgTrace" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6540  }
6541  arg2 = (BsVConnHnd_T)(val2);
6542  ecode3 = SWIG_AsVal_int(obj2, &val3);
6543  if (!SWIG_IsOK(ecode3)) {
6544  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bsServerReqMsgTrace" "', argument " "3"" of type '" "bool_t""'");
6545  }
6546  arg3 = (bool_t)(val3);
6547  result = (int)bsServerReqMsgTrace(arg1,arg2,arg3);
6548  resultobj = SWIG_From_int((int)(result));
6549  return resultobj;
6550 fail:
6551  return NULL;
6552 }
6553 
6554 
6555 SWIGINTERN PyObject *_wrap_bsServerReqOpenDev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6556  PyObject *resultobj = 0;
6557  BsClient_P arg1 = (BsClient_P) 0 ;
6558  char *arg2 = (char *) 0 ;
6559  char *arg3 = (char *) 0 ;
6560  byte_t *arg4 ;
6561  size_t arg5 ;
6562  BsClientAppInfo_T *arg6 = (BsClientAppInfo_T *) 0 ;
6563  bool_t arg7 ;
6564  void *argp1 = 0 ;
6565  int res1 = 0 ;
6566  int res2 ;
6567  char *buf2 = 0 ;
6568  int alloc2 = 0 ;
6569  int res3 ;
6570  char *buf3 = 0 ;
6571  int alloc3 = 0 ;
6572  void *argp4 = 0 ;
6573  int res4 = 0 ;
6574  size_t val5 ;
6575  int ecode5 = 0 ;
6576  void *argp6 = 0 ;
6577  int res6 = 0 ;
6578  int val7 ;
6579  int ecode7 = 0 ;
6580  PyObject * obj0 = 0 ;
6581  PyObject * obj1 = 0 ;
6582  PyObject * obj2 = 0 ;
6583  PyObject * obj3 = 0 ;
6584  PyObject * obj4 = 0 ;
6585  PyObject * obj5 = 0 ;
6586  PyObject * obj6 = 0 ;
6587  int result;
6588 
6589  if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:bsServerReqOpenDev",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
6590  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6591  if (!SWIG_IsOK(res1)) {
6592  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqOpenDev" "', argument " "1"" of type '" "BsClient_P""'");
6593  }
6594  arg1 = (BsClient_P)(argp1);
6595  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6596  if (!SWIG_IsOK(res2)) {
6597  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsServerReqOpenDev" "', argument " "2"" of type '" "char const *""'");
6598  }
6599  arg2 = (char *)(buf2);
6600  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
6601  if (!SWIG_IsOK(res3)) {
6602  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "bsServerReqOpenDev" "', argument " "3"" of type '" "char const *""'");
6603  }
6604  arg3 = (char *)(buf3);
6605  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
6606  if (!SWIG_IsOK(res4)) {
6607  SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "bsServerReqOpenDev" "', argument " "4"" of type '" "byte_t []""'");
6608  }
6609  arg4 = (byte_t *)(argp4);
6610  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
6611  if (!SWIG_IsOK(ecode5)) {
6612  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "bsServerReqOpenDev" "', argument " "5"" of type '" "size_t""'");
6613  }
6614  arg5 = (size_t)(val5);
6615  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_BsClientAppInfo_T, 0 | 0 );
6616  if (!SWIG_IsOK(res6)) {
6617  SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "bsServerReqOpenDev" "', argument " "6"" of type '" "BsClientAppInfo_T const *""'");
6618  }
6619  arg6 = (BsClientAppInfo_T *)(argp6);
6620  ecode7 = SWIG_AsVal_int(obj6, &val7);
6621  if (!SWIG_IsOK(ecode7)) {
6622  SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "bsServerReqOpenDev" "', argument " "7"" of type '" "bool_t""'");
6623  }
6624  arg7 = (bool_t)(val7);
6625  result = (int)bsServerReqOpenDev(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,(BsClientAppInfo_T const *)arg6,arg7);
6626  resultobj = SWIG_From_int((int)(result));
6627  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6628  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6629  return resultobj;
6630 fail:
6631  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6632  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6633  return NULL;
6634 }
6635 
6636 
6637 SWIGINTERN PyObject *_wrap_bsServerReqCloseDev(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6638  PyObject *resultobj = 0;
6639  BsClient_P arg1 = (BsClient_P) 0 ;
6640  BsVConnHnd_T arg2 ;
6641  void *argp1 = 0 ;
6642  int res1 = 0 ;
6643  int val2 ;
6644  int ecode2 = 0 ;
6645  PyObject * obj0 = 0 ;
6646  PyObject * obj1 = 0 ;
6647  int result;
6648 
6649  if (!PyArg_ParseTuple(args,(char *)"OO:bsServerReqCloseDev",&obj0,&obj1)) SWIG_fail;
6650  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6651  if (!SWIG_IsOK(res1)) {
6652  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqCloseDev" "', argument " "1"" of type '" "BsClient_P""'");
6653  }
6654  arg1 = (BsClient_P)(argp1);
6655  ecode2 = SWIG_AsVal_int(obj1, &val2);
6656  if (!SWIG_IsOK(ecode2)) {
6657  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsServerReqCloseDev" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6658  }
6659  arg2 = (BsVConnHnd_T)(val2);
6660  result = (int)bsServerReqCloseDev(arg1,arg2);
6661  resultobj = SWIG_From_int((int)(result));
6662  return resultobj;
6663 fail:
6664  return NULL;
6665 }
6666 
6667 
6668 SWIGINTERN PyObject *_wrap_bsServerReqGetVConnList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6669  PyObject *resultobj = 0;
6670  BsClient_P arg1 = (BsClient_P) 0 ;
6671  BsVecHandles_T *arg2 = (BsVecHandles_T *) 0 ;
6672  void *argp1 = 0 ;
6673  int res1 = 0 ;
6674  void *argp2 = 0 ;
6675  int res2 = 0 ;
6676  PyObject * obj0 = 0 ;
6677  PyObject * obj1 = 0 ;
6678  int result;
6679 
6680  if (!PyArg_ParseTuple(args,(char *)"OO:bsServerReqGetVConnList",&obj0,&obj1)) SWIG_fail;
6681  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6682  if (!SWIG_IsOK(res1)) {
6683  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqGetVConnList" "', argument " "1"" of type '" "BsClient_P""'");
6684  }
6685  arg1 = (BsClient_P)(argp1);
6686  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BsVecHandles_T, 0 | 0 );
6687  if (!SWIG_IsOK(res2)) {
6688  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bsServerReqGetVConnList" "', argument " "2"" of type '" "BsVecHandles_T *""'");
6689  }
6690  arg2 = (BsVecHandles_T *)(argp2);
6691  result = (int)bsServerReqGetVConnList(arg1,arg2);
6692  resultobj = SWIG_From_int((int)(result));
6693  return resultobj;
6694 fail:
6695  return NULL;
6696 }
6697 
6698 
6699 SWIGINTERN PyObject *_wrap_bsServerReqGetVConnInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6700  PyObject *resultobj = 0;
6701  BsClient_P arg1 = (BsClient_P) 0 ;
6702  BsVConnHnd_T arg2 ;
6703  BsVConnInfo_T *arg3 = (BsVConnInfo_T *) 0 ;
6704  void *argp1 = 0 ;
6705  int res1 = 0 ;
6706  int val2 ;
6707  int ecode2 = 0 ;
6708  void *argp3 = 0 ;
6709  int res3 = 0 ;
6710  PyObject * obj0 = 0 ;
6711  PyObject * obj1 = 0 ;
6712  PyObject * obj2 = 0 ;
6713  int result;
6714 
6715  if (!PyArg_ParseTuple(args,(char *)"OOO:bsServerReqGetVConnInfo",&obj0,&obj1,&obj2)) SWIG_fail;
6716  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__bsClientStruct, 0 | 0 );
6717  if (!SWIG_IsOK(res1)) {
6718  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bsServerReqGetVConnInfo" "', argument " "1"" of type '" "BsClient_P""'");
6719  }
6720  arg1 = (BsClient_P)(argp1);
6721  ecode2 = SWIG_AsVal_int(obj1, &val2);
6722  if (!SWIG_IsOK(ecode2)) {
6723  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bsServerReqGetVConnInfo" "', argument " "2"" of type '" "BsVConnHnd_T""'");
6724  }
6725  arg2 = (BsVConnHnd_T)(val2);
6726  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BsVConnInfo_T, 0 | 0 );
6727  if (!SWIG_IsOK(res3)) {
6728  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "bsServerReqGetVConnInfo" "', argument " "3"" of type '" "BsVConnInfo_T *""'");
6729  }
6730  arg3 = (BsVConnInfo_T *)(argp3);
6731  result = (int)bsServerReqGetVConnInfo(arg1,arg2,arg3);
6732  resultobj = SWIG_From_int((int)(result));
6733  return resultobj;
6734 fail:
6735  return NULL;
6736 }
6737 
6738 
6739 SWIGINTERN PyObject *_wrap_new_byteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6740  PyObject *resultobj = 0;
6741  size_t arg1 ;
6742  size_t val1 ;
6743  int ecode1 = 0 ;
6744  PyObject * obj0 = 0 ;
6745  byte_t *result = 0 ;
6746 
6747  if (!PyArg_ParseTuple(args,(char *)"O:new_byteArray",&obj0)) SWIG_fail;
6748  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
6749  if (!SWIG_IsOK(ecode1)) {
6750  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_byteArray" "', argument " "1"" of type '" "size_t""'");
6751  }
6752  arg1 = (size_t)(val1);
6753  result = (byte_t *)new_byteArray(arg1);
6754  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
6755  return resultobj;
6756 fail:
6757  return NULL;
6758 }
6759 
6760 
6761 SWIGINTERN PyObject *_wrap_delete_byteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6762  PyObject *resultobj = 0;
6763  byte_t *arg1 = (byte_t *) 0 ;
6764  void *argp1 = 0 ;
6765  int res1 = 0 ;
6766  PyObject * obj0 = 0 ;
6767 
6768  if (!PyArg_ParseTuple(args,(char *)"O:delete_byteArray",&obj0)) SWIG_fail;
6769  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6770  if (!SWIG_IsOK(res1)) {
6771  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_byteArray" "', argument " "1"" of type '" "byte_t *""'");
6772  }
6773  arg1 = (byte_t *)(argp1);
6774  delete_byteArray(arg1);
6775  resultobj = SWIG_Py_Void();
6776  return resultobj;
6777 fail:
6778  return NULL;
6779 }
6780 
6781 
6782 SWIGINTERN PyObject *_wrap_byteArray_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6783  PyObject *resultobj = 0;
6784  byte_t *arg1 = (byte_t *) 0 ;
6785  size_t arg2 ;
6786  void *argp1 = 0 ;
6787  int res1 = 0 ;
6788  size_t val2 ;
6789  int ecode2 = 0 ;
6790  PyObject * obj0 = 0 ;
6791  PyObject * obj1 = 0 ;
6792  byte_t result;
6793 
6794  if (!PyArg_ParseTuple(args,(char *)"OO:byteArray_getitem",&obj0,&obj1)) SWIG_fail;
6795  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6796  if (!SWIG_IsOK(res1)) {
6797  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "byteArray_getitem" "', argument " "1"" of type '" "byte_t *""'");
6798  }
6799  arg1 = (byte_t *)(argp1);
6800  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6801  if (!SWIG_IsOK(ecode2)) {
6802  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "byteArray_getitem" "', argument " "2"" of type '" "size_t""'");
6803  }
6804  arg2 = (size_t)(val2);
6805  result = (byte_t)byteArray_getitem(arg1,arg2);
6806  resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
6807  return resultobj;
6808 fail:
6809  return NULL;
6810 }
6811 
6812 
6813 SWIGINTERN PyObject *_wrap_byteArray_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6814  PyObject *resultobj = 0;
6815  byte_t *arg1 = (byte_t *) 0 ;
6816  size_t arg2 ;
6817  byte_t arg3 ;
6818  void *argp1 = 0 ;
6819  int res1 = 0 ;
6820  size_t val2 ;
6821  int ecode2 = 0 ;
6822  unsigned char val3 ;
6823  int ecode3 = 0 ;
6824  PyObject * obj0 = 0 ;
6825  PyObject * obj1 = 0 ;
6826  PyObject * obj2 = 0 ;
6827 
6828  if (!PyArg_ParseTuple(args,(char *)"OOO:byteArray_setitem",&obj0,&obj1,&obj2)) SWIG_fail;
6829  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6830  if (!SWIG_IsOK(res1)) {
6831  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "byteArray_setitem" "', argument " "1"" of type '" "byte_t *""'");
6832  }
6833  arg1 = (byte_t *)(argp1);
6834  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6835  if (!SWIG_IsOK(ecode2)) {
6836  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "byteArray_setitem" "', argument " "2"" of type '" "size_t""'");
6837  }
6838  arg2 = (size_t)(val2);
6839  ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
6840  if (!SWIG_IsOK(ecode3)) {
6841  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "byteArray_setitem" "', argument " "3"" of type '" "byte_t""'");
6842  }
6843  arg3 = (byte_t)(val3);
6844  byteArray_setitem(arg1,arg2,arg3);
6845  resultobj = SWIG_Py_Void();
6846  return resultobj;
6847 fail:
6848  return NULL;
6849 }
6850 
6851 
6852 SWIGINTERN PyObject *_wrap_new_hndVConnArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6853  PyObject *resultobj = 0;
6854  size_t arg1 ;
6855  size_t val1 ;
6856  int ecode1 = 0 ;
6857  PyObject * obj0 = 0 ;
6858  BsVConnHnd_T *result = 0 ;
6859 
6860  if (!PyArg_ParseTuple(args,(char *)"O:new_hndVConnArray",&obj0)) SWIG_fail;
6861  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
6862  if (!SWIG_IsOK(ecode1)) {
6863  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_hndVConnArray" "', argument " "1"" of type '" "size_t""'");
6864  }
6865  arg1 = (size_t)(val1);
6866  result = (BsVConnHnd_T *)new_hndVConnArray(arg1);
6867  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
6868  return resultobj;
6869 fail:
6870  return NULL;
6871 }
6872 
6873 
6874 SWIGINTERN PyObject *_wrap_delete_hndVConnArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6875  PyObject *resultobj = 0;
6876  BsVConnHnd_T *arg1 = (BsVConnHnd_T *) 0 ;
6877  void *argp1 = 0 ;
6878  int res1 = 0 ;
6879  PyObject * obj0 = 0 ;
6880 
6881  if (!PyArg_ParseTuple(args,(char *)"O:delete_hndVConnArray",&obj0)) SWIG_fail;
6882  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
6883  if (!SWIG_IsOK(res1)) {
6884  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_hndVConnArray" "', argument " "1"" of type '" "BsVConnHnd_T *""'");
6885  }
6886  arg1 = (BsVConnHnd_T *)(argp1);
6887  delete_hndVConnArray(arg1);
6888  resultobj = SWIG_Py_Void();
6889  return resultobj;
6890 fail:
6891  return NULL;
6892 }
6893 
6894 
6895 SWIGINTERN PyObject *_wrap_hndVConnArray_getitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6896  PyObject *resultobj = 0;
6897  BsVConnHnd_T *arg1 = (BsVConnHnd_T *) 0 ;
6898  size_t arg2 ;
6899  void *argp1 = 0 ;
6900  int res1 = 0 ;
6901  size_t val2 ;
6902  int ecode2 = 0 ;
6903  PyObject * obj0 = 0 ;
6904  PyObject * obj1 = 0 ;
6905  BsVConnHnd_T result;
6906 
6907  if (!PyArg_ParseTuple(args,(char *)"OO:hndVConnArray_getitem",&obj0,&obj1)) SWIG_fail;
6908  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
6909  if (!SWIG_IsOK(res1)) {
6910  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hndVConnArray_getitem" "', argument " "1"" of type '" "BsVConnHnd_T *""'");
6911  }
6912  arg1 = (BsVConnHnd_T *)(argp1);
6913  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6914  if (!SWIG_IsOK(ecode2)) {
6915  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hndVConnArray_getitem" "', argument " "2"" of type '" "size_t""'");
6916  }
6917  arg2 = (size_t)(val2);
6918  result = (BsVConnHnd_T)hndVConnArray_getitem(arg1,arg2);
6919  resultobj = SWIG_From_int((int)(result));
6920  return resultobj;
6921 fail:
6922  return NULL;
6923 }
6924 
6925 
6926 SWIGINTERN PyObject *_wrap_hndVConnArray_setitem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6927  PyObject *resultobj = 0;
6928  BsVConnHnd_T *arg1 = (BsVConnHnd_T *) 0 ;
6929  size_t arg2 ;
6930  BsVConnHnd_T arg3 ;
6931  void *argp1 = 0 ;
6932  int res1 = 0 ;
6933  size_t val2 ;
6934  int ecode2 = 0 ;
6935  int val3 ;
6936  int ecode3 = 0 ;
6937  PyObject * obj0 = 0 ;
6938  PyObject * obj1 = 0 ;
6939  PyObject * obj2 = 0 ;
6940 
6941  if (!PyArg_ParseTuple(args,(char *)"OOO:hndVConnArray_setitem",&obj0,&obj1,&obj2)) SWIG_fail;
6942  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 );
6943  if (!SWIG_IsOK(res1)) {
6944  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hndVConnArray_setitem" "', argument " "1"" of type '" "BsVConnHnd_T *""'");
6945  }
6946  arg1 = (BsVConnHnd_T *)(argp1);
6947  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6948  if (!SWIG_IsOK(ecode2)) {
6949  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hndVConnArray_setitem" "', argument " "2"" of type '" "size_t""'");
6950  }
6951  arg2 = (size_t)(val2);
6952  ecode3 = SWIG_AsVal_int(obj2, &val3);
6953  if (!SWIG_IsOK(ecode3)) {
6954  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "hndVConnArray_setitem" "', argument " "3"" of type '" "BsVConnHnd_T""'");
6955  }
6956  arg3 = (BsVConnHnd_T)(val3);
6957  hndVConnArray_setitem(arg1,arg2,arg3);
6958  resultobj = SWIG_Py_Void();
6959  return resultobj;
6960 fail:
6961  return NULL;
6962 }
6963 
6964 
6965 SWIGINTERN PyObject *_wrap_new_uintp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6966  PyObject *resultobj = 0;
6967  uint_t *result = 0 ;
6968 
6969  if (!PyArg_ParseTuple(args,(char *)":new_uintp")) SWIG_fail;
6970  result = (uint_t *)new_uintp();
6971  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
6972  return resultobj;
6973 fail:
6974  return NULL;
6975 }
6976 
6977 
6978 SWIGINTERN PyObject *_wrap_copy_uintp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6979  PyObject *resultobj = 0;
6980  uint_t arg1 ;
6981  unsigned int val1 ;
6982  int ecode1 = 0 ;
6983  PyObject * obj0 = 0 ;
6984  uint_t *result = 0 ;
6985 
6986  if (!PyArg_ParseTuple(args,(char *)"O:copy_uintp",&obj0)) SWIG_fail;
6987  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
6988  if (!SWIG_IsOK(ecode1)) {
6989  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "copy_uintp" "', argument " "1"" of type '" "uint_t""'");
6990  }
6991  arg1 = (uint_t)(val1);
6992  result = (uint_t *)copy_uintp(arg1);
6993  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
6994  return resultobj;
6995 fail:
6996  return NULL;
6997 }
6998 
6999 
7000 SWIGINTERN PyObject *_wrap_delete_uintp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7001  PyObject *resultobj = 0;
7002  uint_t *arg1 = (uint_t *) 0 ;
7003  void *argp1 = 0 ;
7004  int res1 = 0 ;
7005  PyObject * obj0 = 0 ;
7006 
7007  if (!PyArg_ParseTuple(args,(char *)"O:delete_uintp",&obj0)) SWIG_fail;
7008  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
7009  if (!SWIG_IsOK(res1)) {
7010  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_uintp" "', argument " "1"" of type '" "uint_t *""'");
7011  }
7012  arg1 = (uint_t *)(argp1);
7013  delete_uintp(arg1);
7014  resultobj = SWIG_Py_Void();
7015  return resultobj;
7016 fail:
7017  return NULL;
7018 }
7019 
7020 
7021 SWIGINTERN PyObject *_wrap_uintp_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7022  PyObject *resultobj = 0;
7023  uint_t *arg1 = (uint_t *) 0 ;
7024  uint_t arg2 ;
7025  void *argp1 = 0 ;
7026  int res1 = 0 ;
7027  unsigned int val2 ;
7028  int ecode2 = 0 ;
7029  PyObject * obj0 = 0 ;
7030  PyObject * obj1 = 0 ;
7031 
7032  if (!PyArg_ParseTuple(args,(char *)"OO:uintp_assign",&obj0,&obj1)) SWIG_fail;
7033  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
7034  if (!SWIG_IsOK(res1)) {
7035  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_assign" "', argument " "1"" of type '" "uint_t *""'");
7036  }
7037  arg1 = (uint_t *)(argp1);
7038  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
7039  if (!SWIG_IsOK(ecode2)) {
7040  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "uintp_assign" "', argument " "2"" of type '" "uint_t""'");
7041  }
7042  arg2 = (uint_t)(val2);
7043  uintp_assign(arg1,arg2);
7044  resultobj = SWIG_Py_Void();
7045  return resultobj;
7046 fail:
7047  return NULL;
7048 }
7049 
7050 
7051 SWIGINTERN PyObject *_wrap_uintp_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7052  PyObject *resultobj = 0;
7053  uint_t *arg1 = (uint_t *) 0 ;
7054  void *argp1 = 0 ;
7055  int res1 = 0 ;
7056  PyObject * obj0 = 0 ;
7057  uint_t result;
7058 
7059  if (!PyArg_ParseTuple(args,(char *)"O:uintp_value",&obj0)) SWIG_fail;
7060  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
7061  if (!SWIG_IsOK(res1)) {
7062  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_value" "', argument " "1"" of type '" "uint_t *""'");
7063  }
7064  arg1 = (uint_t *)(argp1);
7065  result = (uint_t)uintp_value(arg1);
7066  resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
7067  return resultobj;
7068 fail:
7069  return NULL;
7070 }
7071 
7072 
7073 static PyMethodDef SwigMethods[] = {
7074  { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
7075  { (char *)"BS_OK_swigconstant", BS_OK_swigconstant, METH_VARARGS, NULL},
7076  { (char *)"BS_ECODE_GEN_swigconstant", BS_ECODE_GEN_swigconstant, METH_VARARGS, NULL},
7077  { (char *)"BS_ECODE_BAD_RECV_swigconstant", BS_ECODE_BAD_RECV_swigconstant, METH_VARARGS, NULL},
7078  { (char *)"BS_ECODE_BAD_SEND_swigconstant", BS_ECODE_BAD_SEND_swigconstant, METH_VARARGS, NULL},
7079  { (char *)"BS_ECODE_BAD_RESYNC_swigconstant", BS_ECODE_BAD_RESYNC_swigconstant, METH_VARARGS, NULL},
7080  { (char *)"BS_ECODE_MSG_BAD_HDR_swigconstant", BS_ECODE_MSG_BAD_HDR_swigconstant, METH_VARARGS, NULL},
7081  { (char *)"BS_ECODE_MSG_FRAG_swigconstant", BS_ECODE_MSG_FRAG_swigconstant, METH_VARARGS, NULL},
7082  { (char *)"BS_ECODE_MSG_TOO_BIG_swigconstant", BS_ECODE_MSG_TOO_BIG_swigconstant, METH_VARARGS, NULL},
7083  { (char *)"BS_ECODE_BUF_TOO_SMALL_swigconstant", BS_ECODE_BUF_TOO_SMALL_swigconstant, METH_VARARGS, NULL},
7084  { (char *)"BS_ECODE_BAD_MSG_swigconstant", BS_ECODE_BAD_MSG_swigconstant, METH_VARARGS, NULL},
7085  { (char *)"BS_ECODE_BAD_VAL_swigconstant", BS_ECODE_BAD_VAL_swigconstant, METH_VARARGS, NULL},
7086  { (char *)"BS_ECODE_MSG_BAD_TID_swigconstant", BS_ECODE_MSG_BAD_TID_swigconstant, METH_VARARGS, NULL},
7087  { (char *)"BS_ECODE_BAD_VCONN_HND_swigconstant", BS_ECODE_BAD_VCONN_HND_swigconstant, METH_VARARGS, NULL},
7088  { (char *)"BS_ECODE_NO_VCONN_swigconstant", BS_ECODE_NO_VCONN_swigconstant, METH_VARARGS, NULL},
7089  { (char *)"BS_ECODE_UNKNOWN_REQ_swigconstant", BS_ECODE_UNKNOWN_REQ_swigconstant, METH_VARARGS, NULL},
7090  { (char *)"BS_ECODE_NO_DEV_swigconstant", BS_ECODE_NO_DEV_swigconstant, METH_VARARGS, NULL},
7091  { (char *)"BS_ECODE_NO_MOD_swigconstant", BS_ECODE_NO_MOD_swigconstant, METH_VARARGS, NULL},
7092  { (char *)"BS_ECODE_BAD_MOD_swigconstant", BS_ECODE_BAD_MOD_swigconstant, METH_VARARGS, NULL},
7093  { (char *)"BS_ECODE_NO_RSRC_swigconstant", BS_ECODE_NO_RSRC_swigconstant, METH_VARARGS, NULL},
7094  { (char *)"BS_ECODE_BUSY_swigconstant", BS_ECODE_BUSY_swigconstant, METH_VARARGS, NULL},
7095  { (char *)"BS_ECODE_TIMEDOUT_swigconstant", BS_ECODE_TIMEDOUT_swigconstant, METH_VARARGS, NULL},
7096  { (char *)"BS_ECODE_NO_EXEC_swigconstant", BS_ECODE_NO_EXEC_swigconstant, METH_VARARGS, NULL},
7097  { (char *)"BS_ECODE_SERVER_CONN_FAIL_swigconstant", BS_ECODE_SERVER_CONN_FAIL_swigconstant, METH_VARARGS, NULL},
7098  { (char *)"BS_ECODE_SERVER_CONN_DENY_swigconstant", BS_ECODE_SERVER_CONN_DENY_swigconstant, METH_VARARGS, NULL},
7099  { (char *)"BS_ECODE_SERVER_BAD_CLIENT_swigconstant", BS_ECODE_SERVER_BAD_CLIENT_swigconstant, METH_VARARGS, NULL},
7100  { (char *)"BS_ECODE_SYS_swigconstant", BS_ECODE_SYS_swigconstant, METH_VARARGS, NULL},
7101  { (char *)"BS_ECODE_INTERNAL_swigconstant", BS_ECODE_INTERNAL_swigconstant, METH_VARARGS, NULL},
7102  { (char *)"BS_ECODE_BADEC_swigconstant", BS_ECODE_BADEC_swigconstant, METH_VARARGS, NULL},
7103  { (char *)"BS_ECODE_NUMOF_swigconstant", BS_ECODE_NUMOF_swigconstant, METH_VARARGS, NULL},
7104  { (char *)"BSPROXY_URI_SCHEME_swigconstant", BSPROXY_URI_SCHEME_swigconstant, METH_VARARGS, NULL},
7105  { (char *)"BSPROXY_URI_HOSTNAME_DFT_swigconstant", BSPROXY_URI_HOSTNAME_DFT_swigconstant, METH_VARARGS, NULL},
7106  { (char *)"BSPROXY_LISTEN_PORT_DFT_swigconstant", BSPROXY_LISTEN_PORT_DFT_swigconstant, METH_VARARGS, NULL},
7107  { (char *)"BSPROXY_REG_CLIENT_MAX_swigconstant", BSPROXY_REG_CLIENT_MAX_swigconstant, METH_VARARGS, NULL},
7108  { (char *)"BSPROXY_VCONN_CLIENT_MAX_swigconstant", BSPROXY_VCONN_CLIENT_MAX_swigconstant, METH_VARARGS, NULL},
7109  { (char *)"BSPROXY_MSG_BODY_MAX_swigconstant", BSPROXY_MSG_BODY_MAX_swigconstant, METH_VARARGS, NULL},
7110  { (char *)"BSPROXY_VCONN_MASK_swigconstant", BSPROXY_VCONN_MASK_swigconstant, METH_VARARGS, NULL},
7111  { (char *)"BSPROXY_VCONN_UNDEF_swigconstant", BSPROXY_VCONN_UNDEF_swigconstant, METH_VARARGS, NULL},
7112  { (char *)"BSPROXY_VCONN_SERVER_swigconstant", BSPROXY_VCONN_SERVER_swigconstant, METH_VARARGS, NULL},
7113  { (char *)"BSPROXY_VCONN_MOD_MIN_swigconstant", BSPROXY_VCONN_MOD_MIN_swigconstant, METH_VARARGS, NULL},
7114  { (char *)"BSPROXY_VCONN_MOD_MAX_swigconstant", BSPROXY_VCONN_MOD_MAX_swigconstant, METH_VARARGS, NULL},
7115  { (char *)"BSPROXY_VCONN_MOD_NUMOF_swigconstant", BSPROXY_VCONN_MOD_NUMOF_swigconstant, METH_VARARGS, NULL},
7116  { (char *)"BSPROXY_VCONN_NUMOF_swigconstant", BSPROXY_VCONN_NUMOF_swigconstant, METH_VARARGS, NULL},
7117  { (char *)"BSPROXY_VCONN_MIN_swigconstant", BSPROXY_VCONN_MIN_swigconstant, METH_VARARGS, NULL},
7118  { (char *)"BSPROXY_VCONN_MAX_swigconstant", BSPROXY_VCONN_MAX_swigconstant, METH_VARARGS, NULL},
7119  { (char *)"BSPROXY_TID_MIN_swigconstant", BSPROXY_TID_MIN_swigconstant, METH_VARARGS, NULL},
7120  { (char *)"BSPROXY_TID_MAX_swigconstant", BSPROXY_TID_MAX_swigconstant, METH_VARARGS, NULL},
7121  { (char *)"BSPROXY_TID_NUMOF_swigconstant", BSPROXY_TID_NUMOF_swigconstant, METH_VARARGS, NULL},
7122  { (char *)"BSPROXY_TID_MASK_swigconstant", BSPROXY_TID_MASK_swigconstant, METH_VARARGS, NULL},
7123  { (char *)"BSPROXY_MSGID_NUMOF_swigconstant", BSPROXY_MSGID_NUMOF_swigconstant, METH_VARARGS, NULL},
7124  { (char *)"BSPROXY_MSGID_MASK_swigconstant", BSPROXY_MSGID_MASK_swigconstant, METH_VARARGS, NULL},
7125  { (char *)"BSPROXY_MSGUID_VCONN_SHIFT_swigconstant", BSPROXY_MSGUID_VCONN_SHIFT_swigconstant, METH_VARARGS, NULL},
7126  { (char *)"BSPROXY_MSGUID_VCONN_MASK_swigconstant", BSPROXY_MSGUID_VCONN_MASK_swigconstant, METH_VARARGS, NULL},
7127  { (char *)"BSPROXY_MSGUID_MSGID_MASK_swigconstant", BSPROXY_MSGUID_MSGID_MASK_swigconstant, METH_VARARGS, NULL},
7128  { (char *)"BSPROXY_MSG_HDR_LEN_swigconstant", BSPROXY_MSG_HDR_LEN_swigconstant, METH_VARARGS, NULL},
7129  { (char *)"BSPROXY_MSG_MAX_LEN_swigconstant", BSPROXY_MSG_MAX_LEN_swigconstant, METH_VARARGS, NULL},
7130  { (char *)"BSPROXY_MSG_MAGIC_swigconstant", BSPROXY_MSG_MAGIC_swigconstant, METH_VARARGS, NULL},
7131  { (char *)"BsProxyMsgHdr_T_m_hdrMagic_set", _wrap_BsProxyMsgHdr_T_m_hdrMagic_set, METH_VARARGS, NULL},
7132  { (char *)"BsProxyMsgHdr_T_m_hdrMagic_get", _wrap_BsProxyMsgHdr_T_m_hdrMagic_get, METH_VARARGS, NULL},
7133  { (char *)"BsProxyMsgHdr_T_m_hdrTid_set", _wrap_BsProxyMsgHdr_T_m_hdrTid_set, METH_VARARGS, NULL},
7134  { (char *)"BsProxyMsgHdr_T_m_hdrTid_get", _wrap_BsProxyMsgHdr_T_m_hdrTid_get, METH_VARARGS, NULL},
7135  { (char *)"BsProxyMsgHdr_T_m_hdrVConn_set", _wrap_BsProxyMsgHdr_T_m_hdrVConn_set, METH_VARARGS, NULL},
7136  { (char *)"BsProxyMsgHdr_T_m_hdrVConn_get", _wrap_BsProxyMsgHdr_T_m_hdrVConn_get, METH_VARARGS, NULL},
7137  { (char *)"BsProxyMsgHdr_T_m_hdrMsgId_set", _wrap_BsProxyMsgHdr_T_m_hdrMsgId_set, METH_VARARGS, NULL},
7138  { (char *)"BsProxyMsgHdr_T_m_hdrMsgId_get", _wrap_BsProxyMsgHdr_T_m_hdrMsgId_get, METH_VARARGS, NULL},
7139  { (char *)"BsProxyMsgHdr_T_m_hdrBodyLen_set", _wrap_BsProxyMsgHdr_T_m_hdrBodyLen_set, METH_VARARGS, NULL},
7140  { (char *)"BsProxyMsgHdr_T_m_hdrBodyLen_get", _wrap_BsProxyMsgHdr_T_m_hdrBodyLen_get, METH_VARARGS, NULL},
7141  { (char *)"new_BsProxyMsgHdr_T", _wrap_new_BsProxyMsgHdr_T, METH_VARARGS, NULL},
7142  { (char *)"delete_BsProxyMsgHdr_T", _wrap_delete_BsProxyMsgHdr_T, METH_VARARGS, NULL},
7143  { (char *)"BsProxyMsgHdr_T_swigregister", BsProxyMsgHdr_T_swigregister, METH_VARARGS, NULL},
7144  { (char *)"BsClientAppInfo_T_app_name_set", _wrap_BsClientAppInfo_T_app_name_set, METH_VARARGS, NULL},
7145  { (char *)"BsClientAppInfo_T_app_name_get", _wrap_BsClientAppInfo_T_app_name_get, METH_VARARGS, NULL},
7146  { (char *)"BsClientAppInfo_T_brief_set", _wrap_BsClientAppInfo_T_brief_set, METH_VARARGS, NULL},
7147  { (char *)"BsClientAppInfo_T_brief_get", _wrap_BsClientAppInfo_T_brief_get, METH_VARARGS, NULL},
7148  { (char *)"BsClientAppInfo_T_version_set", _wrap_BsClientAppInfo_T_version_set, METH_VARARGS, NULL},
7149  { (char *)"BsClientAppInfo_T_version_get", _wrap_BsClientAppInfo_T_version_get, METH_VARARGS, NULL},
7150  { (char *)"BsClientAppInfo_T_date_set", _wrap_BsClientAppInfo_T_date_set, METH_VARARGS, NULL},
7151  { (char *)"BsClientAppInfo_T_date_get", _wrap_BsClientAppInfo_T_date_get, METH_VARARGS, NULL},
7152  { (char *)"BsClientAppInfo_T_maintainer_set", _wrap_BsClientAppInfo_T_maintainer_set, METH_VARARGS, NULL},
7153  { (char *)"BsClientAppInfo_T_maintainer_get", _wrap_BsClientAppInfo_T_maintainer_get, METH_VARARGS, NULL},
7154  { (char *)"BsClientAppInfo_T_license_set", _wrap_BsClientAppInfo_T_license_set, METH_VARARGS, NULL},
7155  { (char *)"BsClientAppInfo_T_license_get", _wrap_BsClientAppInfo_T_license_get, METH_VARARGS, NULL},
7156  { (char *)"BsClientAppInfo_T_fnGetMsgName_set", _wrap_BsClientAppInfo_T_fnGetMsgName_set, METH_VARARGS, NULL},
7157  { (char *)"BsClientAppInfo_T_fnGetMsgName_get", _wrap_BsClientAppInfo_T_fnGetMsgName_get, METH_VARARGS, NULL},
7158  { (char *)"new_BsClientAppInfo_T", _wrap_new_BsClientAppInfo_T, METH_VARARGS, NULL},
7159  { (char *)"delete_BsClientAppInfo_T", _wrap_delete_BsClientAppInfo_T, METH_VARARGS, NULL},
7160  { (char *)"BsClientAppInfo_T_swigregister", BsClientAppInfo_T_swigregister, METH_VARARGS, NULL},
7161  { (char *)"BsClientConnState_T_m_bIsConnected_set", _wrap_BsClientConnState_T_m_bIsConnected_set, METH_VARARGS, NULL},
7162  { (char *)"BsClientConnState_T_m_bIsConnected_get", _wrap_BsClientConnState_T_m_bIsConnected_get, METH_VARARGS, NULL},
7163  { (char *)"BsClientConnState_T_m_sServerHostName_set", _wrap_BsClientConnState_T_m_sServerHostName_set, METH_VARARGS, NULL},
7164  { (char *)"BsClientConnState_T_m_sServerHostName_get", _wrap_BsClientConnState_T_m_sServerHostName_get, METH_VARARGS, NULL},
7165  { (char *)"new_BsClientConnState_T", _wrap_new_BsClientConnState_T, METH_VARARGS, NULL},
7166  { (char *)"delete_BsClientConnState_T", _wrap_delete_BsClientConnState_T, METH_VARARGS, NULL},
7167  { (char *)"BsClientConnState_T_swigregister", BsClientConnState_T_swigregister, METH_VARARGS, NULL},
7168  { (char *)"BsVecHandles_T_m_uCount_set", _wrap_BsVecHandles_T_m_uCount_set, METH_VARARGS, NULL},
7169  { (char *)"BsVecHandles_T_m_uCount_get", _wrap_BsVecHandles_T_m_uCount_get, METH_VARARGS, NULL},
7170  { (char *)"BsVecHandles_T_m_vecHnd_set", _wrap_BsVecHandles_T_m_vecHnd_set, METH_VARARGS, NULL},
7171  { (char *)"BsVecHandles_T_m_vecHnd_get", _wrap_BsVecHandles_T_m_vecHnd_get, METH_VARARGS, NULL},
7172  { (char *)"new_BsVecHandles_T", _wrap_new_BsVecHandles_T, METH_VARARGS, NULL},
7173  { (char *)"delete_BsVecHandles_T", _wrap_delete_BsVecHandles_T, METH_VARARGS, NULL},
7174  { (char *)"BsVecHandles_T_swigregister", BsVecHandles_T_swigregister, METH_VARARGS, NULL},
7175  { (char *)"BSCLIENT_INFO_STR_MAX_SIZE_swigconstant", BSCLIENT_INFO_STR_MAX_SIZE_swigconstant, METH_VARARGS, NULL},
7176  { (char *)"BsVConnInfo_T_m_vconn_set", _wrap_BsVConnInfo_T_m_vconn_set, METH_VARARGS, NULL},
7177  { (char *)"BsVConnInfo_T_m_vconn_get", _wrap_BsVConnInfo_T_m_vconn_get, METH_VARARGS, NULL},
7178  { (char *)"BsVConnInfo_T_m_rd_set", _wrap_BsVConnInfo_T_m_rd_set, METH_VARARGS, NULL},
7179  { (char *)"BsVConnInfo_T_m_rd_get", _wrap_BsVConnInfo_T_m_rd_get, METH_VARARGS, NULL},
7180  { (char *)"BsVConnInfo_T_m_client_set", _wrap_BsVConnInfo_T_m_client_set, METH_VARARGS, NULL},
7181  { (char *)"BsVConnInfo_T_m_client_get", _wrap_BsVConnInfo_T_m_client_get, METH_VARARGS, NULL},
7182  { (char *)"BsVConnInfo_T_m_devuri_set", _wrap_BsVConnInfo_T_m_devuri_set, METH_VARARGS, NULL},
7183  { (char *)"BsVConnInfo_T_m_devuri_get", _wrap_BsVConnInfo_T_m_devuri_get, METH_VARARGS, NULL},
7184  { (char *)"BsVConnInfo_T_m_moduri_set", _wrap_BsVConnInfo_T_m_moduri_set, METH_VARARGS, NULL},
7185  { (char *)"BsVConnInfo_T_m_moduri_get", _wrap_BsVConnInfo_T_m_moduri_get, METH_VARARGS, NULL},
7186  { (char *)"BsVConnInfo_T_m_modver_set", _wrap_BsVConnInfo_T_m_modver_set, METH_VARARGS, NULL},
7187  { (char *)"BsVConnInfo_T_m_modver_get", _wrap_BsVConnInfo_T_m_modver_get, METH_VARARGS, NULL},
7188  { (char *)"BsVConnInfo_T_m_moddate_set", _wrap_BsVConnInfo_T_m_moddate_set, METH_VARARGS, NULL},
7189  { (char *)"BsVConnInfo_T_m_moddate_get", _wrap_BsVConnInfo_T_m_moddate_get, METH_VARARGS, NULL},
7190  { (char *)"new_BsVConnInfo_T", _wrap_new_BsVConnInfo_T, METH_VARARGS, NULL},
7191  { (char *)"delete_BsVConnInfo_T", _wrap_delete_BsVConnInfo_T, METH_VARARGS, NULL},
7192  { (char *)"BsVConnInfo_T_swigregister", BsVConnInfo_T_swigregister, METH_VARARGS, NULL},
7193  { (char *)"bsStrError", _wrap_bsStrError, METH_VARARGS, NULL},
7194  { (char *)"bsPackMsgHdr", _wrap_bsPackMsgHdr, METH_VARARGS, NULL},
7195  { (char *)"bsUnpackMsgHdr", _wrap_bsUnpackMsgHdr, METH_VARARGS, NULL},
7196  { (char *)"bsClientNew", _wrap_bsClientNew, METH_VARARGS, NULL},
7197  { (char *)"bsClientDelete", _wrap_bsClientDelete, METH_VARARGS, NULL},
7198  { (char *)"bsClientTrans", _wrap_bsClientTrans, METH_VARARGS, NULL},
7199  { (char *)"bsClientAttrGetName", _wrap_bsClientAttrGetName, METH_VARARGS, NULL},
7200  { (char *)"bsClientAttrGetTimeouts", _wrap_bsClientAttrGetTimeouts, METH_VARARGS, NULL},
7201  { (char *)"bsClientAttrSetTimeouts", _wrap_bsClientAttrSetTimeouts, METH_VARARGS, NULL},
7202  { (char *)"bsClientAttrGetTraceState", _wrap_bsClientAttrGetTraceState, METH_VARARGS, NULL},
7203  { (char *)"bsClientAttrGetVConnCount", _wrap_bsClientAttrGetVConnCount, METH_VARARGS, NULL},
7204  { (char *)"bsClientAttrHasVConn", _wrap_bsClientAttrHasVConn, METH_VARARGS, NULL},
7205  { (char *)"bsClientAttrGetDevName", _wrap_bsClientAttrGetDevName, METH_VARARGS, NULL},
7206  { (char *)"bsClientAttrGetModName", _wrap_bsClientAttrGetModName, METH_VARARGS, NULL},
7207  { (char *)"bsClientAttrSetLogging", _wrap_bsClientAttrSetLogging, METH_VARARGS, NULL},
7208  { (char *)"bsClientAttrGetConnState", _wrap_bsClientAttrGetConnState, METH_VARARGS, NULL},
7209  { (char *)"bsClientFillMsgHdr", _wrap_bsClientFillMsgHdr, METH_VARARGS, NULL},
7210  { (char *)"bsClientGetMsgName", _wrap_bsClientGetMsgName, METH_VARARGS, NULL},
7211  { (char *)"bsServerConnect", _wrap_bsServerConnect, METH_VARARGS, NULL},
7212  { (char *)"bsServerDisconnect", _wrap_bsServerDisconnect, METH_VARARGS, NULL},
7213  { (char *)"bsServerReqGetVersion", _wrap_bsServerReqGetVersion, METH_VARARGS, NULL},
7214  { (char *)"bsServerReqLoopback", _wrap_bsServerReqLoopback, METH_VARARGS, NULL},
7215  { (char *)"bsServerReqSetLogging", _wrap_bsServerReqSetLogging, METH_VARARGS, NULL},
7216  { (char *)"bsServerReqMsgTrace", _wrap_bsServerReqMsgTrace, METH_VARARGS, NULL},
7217  { (char *)"bsServerReqOpenDev", _wrap_bsServerReqOpenDev, METH_VARARGS, NULL},
7218  { (char *)"bsServerReqCloseDev", _wrap_bsServerReqCloseDev, METH_VARARGS, NULL},
7219  { (char *)"bsServerReqGetVConnList", _wrap_bsServerReqGetVConnList, METH_VARARGS, NULL},
7220  { (char *)"bsServerReqGetVConnInfo", _wrap_bsServerReqGetVConnInfo, METH_VARARGS, NULL},
7221  { (char *)"new_byteArray", _wrap_new_byteArray, METH_VARARGS, NULL},
7222  { (char *)"delete_byteArray", _wrap_delete_byteArray, METH_VARARGS, NULL},
7223  { (char *)"byteArray_getitem", _wrap_byteArray_getitem, METH_VARARGS, NULL},
7224  { (char *)"byteArray_setitem", _wrap_byteArray_setitem, METH_VARARGS, NULL},
7225  { (char *)"new_hndVConnArray", _wrap_new_hndVConnArray, METH_VARARGS, NULL},
7226  { (char *)"delete_hndVConnArray", _wrap_delete_hndVConnArray, METH_VARARGS, NULL},
7227  { (char *)"hndVConnArray_getitem", _wrap_hndVConnArray_getitem, METH_VARARGS, NULL},
7228  { (char *)"hndVConnArray_setitem", _wrap_hndVConnArray_setitem, METH_VARARGS, NULL},
7229  { (char *)"new_uintp", _wrap_new_uintp, METH_VARARGS, NULL},
7230  { (char *)"copy_uintp", _wrap_copy_uintp, METH_VARARGS, NULL},
7231  { (char *)"delete_uintp", _wrap_delete_uintp, METH_VARARGS, NULL},
7232  { (char *)"uintp_assign", _wrap_uintp_assign, METH_VARARGS, NULL},
7233  { (char *)"uintp_value", _wrap_uintp_value, METH_VARARGS, NULL},
7234  { NULL, NULL, 0, NULL }
7235 };
7236 
7237 
7238 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7239 
7240 static swig_type_info _swigt__p_BsClientAppInfo_T = {"_p_BsClientAppInfo_T", "BsClientAppInfo_T *", 0, 0, (void*)0, 0};
7241 static swig_type_info _swigt__p_BsClientConnState_T = {"_p_BsClientConnState_T", "BsClientConnState_T *", 0, 0, (void*)0, 0};
7242 static swig_type_info _swigt__p_BsProxyMsgHdr_T = {"_p_BsProxyMsgHdr_T", "BsProxyMsgHdr_T *", 0, 0, (void*)0, 0};
7243 static swig_type_info _swigt__p_BsVConnInfo_T = {"_p_BsVConnInfo_T", "BsVConnInfo_T *", 0, 0, (void*)0, 0};
7244 static swig_type_info _swigt__p_BsVecHandles_T = {"_p_BsVecHandles_T", "BsVecHandles_T *", 0, 0, (void*)0, 0};
7245 static swig_type_info _swigt__p__bsClientStruct = {"_p__bsClientStruct", "BsClient_P|struct _bsClientStruct *", 0, 0, (void*)0, 0};
7246 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7247 static swig_type_info _swigt__p_f_p_struct__bsClientStruct_int_unsigned_int__p_char = {"_p_f_p_struct__bsClientStruct_int_unsigned_int__p_char", "char *(*)(BsClient_P,BsVConnHnd_T,uint_t)|char *(*)(struct _bsClientStruct *,int,unsigned int)", 0, 0, (void*)0, 0};
7248 static swig_type_info _swigt__p_int = {"_p_int", "bool_t *|int *|BsVConnHnd_T *", 0, 0, (void*)0, 0};
7249 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte_t *", 0, 0, (void*)0, 0};
7250 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|uint_t *|BsMsgUid_T *|BsTid_T *|BsMsgId_T *", 0, 0, (void*)0, 0};
7251 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|ulong_t *", 0, 0, (void*)0, 0};
7252 static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ushort_t *", 0, 0, (void*)0, 0};
7253 
7254 static swig_type_info *swig_type_initial[] = {
7255  &_swigt__p_BsClientAppInfo_T,
7256  &_swigt__p_BsClientConnState_T,
7257  &_swigt__p_BsProxyMsgHdr_T,
7258  &_swigt__p_BsVConnInfo_T,
7259  &_swigt__p_BsVecHandles_T,
7260  &_swigt__p__bsClientStruct,
7261  &_swigt__p_char,
7262  &_swigt__p_f_p_struct__bsClientStruct_int_unsigned_int__p_char,
7263  &_swigt__p_int,
7264  &_swigt__p_unsigned_char,
7265  &_swigt__p_unsigned_int,
7266  &_swigt__p_unsigned_long,
7267  &_swigt__p_unsigned_short,
7268 };
7269 
7270 static swig_cast_info _swigc__p_BsClientAppInfo_T[] = { {&_swigt__p_BsClientAppInfo_T, 0, 0, 0},{0, 0, 0, 0}};
7271 static swig_cast_info _swigc__p_BsClientConnState_T[] = { {&_swigt__p_BsClientConnState_T, 0, 0, 0},{0, 0, 0, 0}};
7272 static swig_cast_info _swigc__p_BsProxyMsgHdr_T[] = { {&_swigt__p_BsProxyMsgHdr_T, 0, 0, 0},{0, 0, 0, 0}};
7273 static swig_cast_info _swigc__p_BsVConnInfo_T[] = { {&_swigt__p_BsVConnInfo_T, 0, 0, 0},{0, 0, 0, 0}};
7274 static swig_cast_info _swigc__p_BsVecHandles_T[] = { {&_swigt__p_BsVecHandles_T, 0, 0, 0},{0, 0, 0, 0}};
7275 static swig_cast_info _swigc__p__bsClientStruct[] = { {&_swigt__p__bsClientStruct, 0, 0, 0},{0, 0, 0, 0}};
7276 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7277 static swig_cast_info _swigc__p_f_p_struct__bsClientStruct_int_unsigned_int__p_char[] = { {&_swigt__p_f_p_struct__bsClientStruct_int_unsigned_int__p_char, 0, 0, 0},{0, 0, 0, 0}};
7278 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
7279 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
7280 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
7281 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
7282 static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
7283 
7284 static swig_cast_info *swig_cast_initial[] = {
7285  _swigc__p_BsClientAppInfo_T,
7286  _swigc__p_BsClientConnState_T,
7287  _swigc__p_BsProxyMsgHdr_T,
7288  _swigc__p_BsVConnInfo_T,
7289  _swigc__p_BsVecHandles_T,
7290  _swigc__p__bsClientStruct,
7291  _swigc__p_char,
7292  _swigc__p_f_p_struct__bsClientStruct_int_unsigned_int__p_char,
7293  _swigc__p_int,
7294  _swigc__p_unsigned_char,
7295  _swigc__p_unsigned_int,
7296  _swigc__p_unsigned_long,
7297  _swigc__p_unsigned_short,
7298 };
7299 
7300 
7301 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7302 
7303 static swig_const_info swig_const_table[] = {
7304 {0, 0, 0, 0.0, 0, 0}};
7305 
7306 #ifdef __cplusplus
7307 }
7308 #endif
7309 /* -----------------------------------------------------------------------------
7310  * Type initialization:
7311  * This problem is tough by the requirement that no dynamic
7312  * memory is used. Also, since swig_type_info structures store pointers to
7313  * swig_cast_info structures and swig_cast_info structures store pointers back
7314  * to swig_type_info structures, we need some lookup code at initialization.
7315  * The idea is that swig generates all the structures that are needed.
7316  * The runtime then collects these partially filled structures.
7317  * The SWIG_InitializeModule function takes these initial arrays out of
7318  * swig_module, and does all the lookup, filling in the swig_module.types
7319  * array with the correct data and linking the correct swig_cast_info
7320  * structures together.
7321  *
7322  * The generated swig_type_info structures are assigned statically to an initial
7323  * array. We just loop through that array, and handle each type individually.
7324  * First we lookup if this type has been already loaded, and if so, use the
7325  * loaded structure instead of the generated one. Then we have to fill in the
7326  * cast linked list. The cast data is initially stored in something like a
7327  * two-dimensional array. Each row corresponds to a type (there are the same
7328  * number of rows as there are in the swig_type_initial array). Each entry in
7329  * a column is one of the swig_cast_info structures for that type.
7330  * The cast_initial array is actually an array of arrays, because each row has
7331  * a variable number of columns. So to actually build the cast linked list,
7332  * we find the array of casts associated with the type, and loop through it
7333  * adding the casts to the list. The one last trick we need to do is making
7334  * sure the type pointer in the swig_cast_info struct is correct.
7335  *
7336  * First off, we lookup the cast->type name to see if it is already loaded.
7337  * There are three cases to handle:
7338  * 1) If the cast->type has already been loaded AND the type we are adding
7339  * casting info to has not been loaded (it is in this module), THEN we
7340  * replace the cast->type pointer with the type pointer that has already
7341  * been loaded.
7342  * 2) If BOTH types (the one we are adding casting info to, and the
7343  * cast->type) are loaded, THEN the cast info has already been loaded by
7344  * the previous module so we just ignore it.
7345  * 3) Finally, if cast->type has not already been loaded, then we add that
7346  * swig_cast_info to the linked list (because the cast->type) pointer will
7347  * be correct.
7348  * ----------------------------------------------------------------------------- */
7349 
7350 #ifdef __cplusplus
7351 extern "C" {
7352 #if 0
7353 } /* c-mode */
7354 #endif
7355 #endif
7356 
7357 #if 0
7358 #define SWIGRUNTIME_DEBUG
7359 #endif
7360 
7361 
7362 SWIGRUNTIME void
7363 SWIG_InitializeModule(void *clientdata) {
7364  size_t i;
7365  swig_module_info *module_head, *iter;
7366  int init;
7367 
7368  /* check to see if the circular list has been setup, if not, set it up */
7369  if (swig_module.next==0) {
7370  /* Initialize the swig_module */
7371  swig_module.type_initial = swig_type_initial;
7372  swig_module.cast_initial = swig_cast_initial;
7373  swig_module.next = &swig_module;
7374  init = 1;
7375  } else {
7376  init = 0;
7377  }
7378 
7379  /* Try and load any already created modules */
7380  module_head = SWIG_GetModule(clientdata);
7381  if (!module_head) {
7382  /* This is the first module loaded for this interpreter */
7383  /* so set the swig module into the interpreter */
7384  SWIG_SetModule(clientdata, &swig_module);
7385  } else {
7386  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
7387  iter=module_head;
7388  do {
7389  if (iter==&swig_module) {
7390  /* Our module is already in the list, so there's nothing more to do. */
7391  return;
7392  }
7393  iter=iter->next;
7394  } while (iter!= module_head);
7395 
7396  /* otherwise we must add our module into the list */
7397  swig_module.next = module_head->next;
7398  module_head->next = &swig_module;
7399  }
7400 
7401  /* When multiple interpreters are used, a module could have already been initialized in
7402  a different interpreter, but not yet have a pointer in this interpreter.
7403  In this case, we do not want to continue adding types... everything should be
7404  set up already */
7405  if (init == 0) return;
7406 
7407  /* Now work on filling in swig_module.types */
7408 #ifdef SWIGRUNTIME_DEBUG
7409  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
7410 #endif
7411  for (i = 0; i < swig_module.size; ++i) {
7412  swig_type_info *type = 0;
7413  swig_type_info *ret;
7414  swig_cast_info *cast;
7415 
7416 #ifdef SWIGRUNTIME_DEBUG
7417  printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7418 #endif
7419 
7420  /* if there is another module already loaded */
7421  if (swig_module.next != &swig_module) {
7422  type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
7423  }
7424  if (type) {
7425  /* Overwrite clientdata field */
7426 #ifdef SWIGRUNTIME_DEBUG
7427  printf("SWIG_InitializeModule: found type %s\n", type->name);
7428 #endif
7429  if (swig_module.type_initial[i]->clientdata) {
7430  type->clientdata = swig_module.type_initial[i]->clientdata;
7431 #ifdef SWIGRUNTIME_DEBUG
7432  printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
7433 #endif
7434  }
7435  } else {
7436  type = swig_module.type_initial[i];
7437  }
7438 
7439  /* Insert casting types */
7440  cast = swig_module.cast_initial[i];
7441  while (cast->type) {
7442  /* Don't need to add information already in the list */
7443  ret = 0;
7444 #ifdef SWIGRUNTIME_DEBUG
7445  printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
7446 #endif
7447  if (swig_module.next != &swig_module) {
7448  ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
7449 #ifdef SWIGRUNTIME_DEBUG
7450  if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
7451 #endif
7452  }
7453  if (ret) {
7454  if (type == swig_module.type_initial[i]) {
7455 #ifdef SWIGRUNTIME_DEBUG
7456  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
7457 #endif
7458  cast->type = ret;
7459  ret = 0;
7460  } else {
7461  /* Check for casting already in the list */
7462  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
7463 #ifdef SWIGRUNTIME_DEBUG
7464  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
7465 #endif
7466  if (!ocast) ret = 0;
7467  }
7468  }
7469 
7470  if (!ret) {
7471 #ifdef SWIGRUNTIME_DEBUG
7472  printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
7473 #endif
7474  if (type->cast) {
7475  type->cast->prev = cast;
7476  cast->next = type->cast;
7477  }
7478  type->cast = cast;
7479  }
7480  cast++;
7481  }
7482  /* Set entry in modules->types array equal to the type */
7483  swig_module.types[i] = type;
7484  }
7485  swig_module.types[i] = 0;
7486 
7487 #ifdef SWIGRUNTIME_DEBUG
7488  printf("**** SWIG_InitializeModule: Cast List ******\n");
7489  for (i = 0; i < swig_module.size; ++i) {
7490  int j = 0;
7491  swig_cast_info *cast = swig_module.cast_initial[i];
7492  printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7493  while (cast->type) {
7494  printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
7495  cast++;
7496  ++j;
7497  }
7498  printf("---- Total casts: %d\n",j);
7499  }
7500  printf("**** SWIG_InitializeModule: Cast List ******\n");
7501 #endif
7502 }
7503 
7504 /* This function will propagate the clientdata field of type to
7505 * any new swig_type_info structures that have been added into the list
7506 * of equivalent types. It is like calling
7507 * SWIG_TypeClientData(type, clientdata) a second time.
7508 */
7509 SWIGRUNTIME void
7510 SWIG_PropagateClientData(void) {
7511  size_t i;
7512  swig_cast_info *equiv;
7513  static int init_run = 0;
7514 
7515  if (init_run) return;
7516  init_run = 1;
7517 
7518  for (i = 0; i < swig_module.size; i++) {
7519  if (swig_module.types[i]->clientdata) {
7520  equiv = swig_module.types[i]->cast;
7521  while (equiv) {
7522  if (!equiv->converter) {
7523  if (equiv->type && !equiv->type->clientdata)
7524  SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
7525  }
7526  equiv = equiv->next;
7527  }
7528  }
7529  }
7530 }
7531 
7532 #ifdef __cplusplus
7533 #if 0
7534 {
7535  /* c-mode */
7536 #endif
7537 }
7538 #endif
7539 
7540 
7541 
7542 #ifdef __cplusplus
7543 extern "C" {
7544 #endif
7545 
7546  /* Python-specific SWIG API */
7547 #define SWIG_newvarlink() SWIG_Python_newvarlink()
7548 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
7549 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
7550 
7551  /* -----------------------------------------------------------------------------
7552  * global variable support code.
7553  * ----------------------------------------------------------------------------- */
7554 
7555  typedef struct swig_globalvar {
7556  char *name; /* Name of global variable */
7557  PyObject *(*get_attr)(void); /* Return the current value */
7558  int (*set_attr)(PyObject *); /* Set the value */
7559  struct swig_globalvar *next;
7560  } swig_globalvar;
7561 
7562  typedef struct swig_varlinkobject {
7563  PyObject_HEAD
7564  swig_globalvar *vars;
7566 
7567  SWIGINTERN PyObject *
7568  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
7569 #if PY_VERSION_HEX >= 0x03000000
7570  return PyUnicode_InternFromString("<Swig global variables>");
7571 #else
7572  return PyString_FromString("<Swig global variables>");
7573 #endif
7574  }
7575 
7576  SWIGINTERN PyObject *
7577  swig_varlink_str(swig_varlinkobject *v) {
7578 #if PY_VERSION_HEX >= 0x03000000
7579  PyObject *str = PyUnicode_InternFromString("(");
7580  PyObject *tail;
7581  PyObject *joined;
7582  swig_globalvar *var;
7583  for (var = v->vars; var; var=var->next) {
7584  tail = PyUnicode_FromString(var->name);
7585  joined = PyUnicode_Concat(str, tail);
7586  Py_DecRef(str);
7587  Py_DecRef(tail);
7588  str = joined;
7589  if (var->next) {
7590  tail = PyUnicode_InternFromString(", ");
7591  joined = PyUnicode_Concat(str, tail);
7592  Py_DecRef(str);
7593  Py_DecRef(tail);
7594  str = joined;
7595  }
7596  }
7597  tail = PyUnicode_InternFromString(")");
7598  joined = PyUnicode_Concat(str, tail);
7599  Py_DecRef(str);
7600  Py_DecRef(tail);
7601  str = joined;
7602 #else
7603  PyObject *str = PyString_FromString("(");
7604  swig_globalvar *var;
7605  for (var = v->vars; var; var=var->next) {
7606  PyString_ConcatAndDel(&str,PyString_FromString(var->name));
7607  if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
7608  }
7609  PyString_ConcatAndDel(&str,PyString_FromString(")"));
7610 #endif
7611  return str;
7612  }
7613 
7614  SWIGINTERN int
7615  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
7616  char *tmp;
7617  PyObject *str = swig_varlink_str(v);
7618  fprintf(fp,"Swig global variables ");
7619  fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
7620  SWIG_Python_str_DelForPy3(tmp);
7621  Py_DECREF(str);
7622  return 0;
7623  }
7624 
7625  SWIGINTERN void
7626  swig_varlink_dealloc(swig_varlinkobject *v) {
7627  swig_globalvar *var = v->vars;
7628  while (var) {
7629  swig_globalvar *n = var->next;
7630  free(var->name);
7631  free(var);
7632  var = n;
7633  }
7634  }
7635 
7636  SWIGINTERN PyObject *
7637  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
7638  PyObject *res = NULL;
7639  swig_globalvar *var = v->vars;
7640  while (var) {
7641  if (strcmp(var->name,n) == 0) {
7642  res = (*var->get_attr)();
7643  break;
7644  }
7645  var = var->next;
7646  }
7647  if (res == NULL && !PyErr_Occurred()) {
7648  PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
7649  }
7650  return res;
7651  }
7652 
7653  SWIGINTERN int
7654  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
7655  int res = 1;
7656  swig_globalvar *var = v->vars;
7657  while (var) {
7658  if (strcmp(var->name,n) == 0) {
7659  res = (*var->set_attr)(p);
7660  break;
7661  }
7662  var = var->next;
7663  }
7664  if (res == 1 && !PyErr_Occurred()) {
7665  PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
7666  }
7667  return res;
7668  }
7669 
7670  SWIGINTERN PyTypeObject*
7671  swig_varlink_type(void) {
7672  static char varlink__doc__[] = "Swig var link object";
7673  static PyTypeObject varlink_type;
7674  static int type_init = 0;
7675  if (!type_init) {
7676  const PyTypeObject tmp = {
7677  /* PyObject header changed in Python 3 */
7678 #if PY_VERSION_HEX >= 0x03000000
7679  PyVarObject_HEAD_INIT(NULL, 0)
7680 #else
7681  PyObject_HEAD_INIT(NULL)
7682  0, /* ob_size */
7683 #endif
7684  (char *)"swigvarlink", /* tp_name */
7685  sizeof(swig_varlinkobject), /* tp_basicsize */
7686  0, /* tp_itemsize */
7687  (destructor) swig_varlink_dealloc, /* tp_dealloc */
7688  (printfunc) swig_varlink_print, /* tp_print */
7689  (getattrfunc) swig_varlink_getattr, /* tp_getattr */
7690  (setattrfunc) swig_varlink_setattr, /* tp_setattr */
7691  0, /* tp_compare */
7692  (reprfunc) swig_varlink_repr, /* tp_repr */
7693  0, /* tp_as_number */
7694  0, /* tp_as_sequence */
7695  0, /* tp_as_mapping */
7696  0, /* tp_hash */
7697  0, /* tp_call */
7698  (reprfunc) swig_varlink_str, /* tp_str */
7699  0, /* tp_getattro */
7700  0, /* tp_setattro */
7701  0, /* tp_as_buffer */
7702  0, /* tp_flags */
7703  varlink__doc__, /* tp_doc */
7704  0, /* tp_traverse */
7705  0, /* tp_clear */
7706  0, /* tp_richcompare */
7707  0, /* tp_weaklistoffset */
7708 #if PY_VERSION_HEX >= 0x02020000
7709  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
7710 #endif
7711 #if PY_VERSION_HEX >= 0x02030000
7712  0, /* tp_del */
7713 #endif
7714 #if PY_VERSION_HEX >= 0x02060000
7715  0, /* tp_version_tag */
7716 #endif
7717 #if PY_VERSION_HEX >= 0x03040000
7718  0, /* tp_finalize */
7719 #endif
7720 #ifdef COUNT_ALLOCS
7721  0, /* tp_allocs */
7722  0, /* tp_frees */
7723  0, /* tp_maxalloc */
7724 #if PY_VERSION_HEX >= 0x02050000
7725  0, /* tp_prev */
7726 #endif
7727  0 /* tp_next */
7728 #endif
7729  };
7730  varlink_type = tmp;
7731  type_init = 1;
7732 #if PY_VERSION_HEX < 0x02020000
7733  varlink_type.ob_type = &PyType_Type;
7734 #else
7735  if (PyType_Ready(&varlink_type) < 0)
7736  return NULL;
7737 #endif
7738  }
7739  return &varlink_type;
7740  }
7741 
7742  /* Create a variable linking object for use later */
7743  SWIGINTERN PyObject *
7744  SWIG_Python_newvarlink(void) {
7745  swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
7746  if (result) {
7747  result->vars = 0;
7748  }
7749  return ((PyObject*) result);
7750  }
7751 
7752  SWIGINTERN void
7753  SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
7755  swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
7756  if (gv) {
7757  size_t size = strlen(name)+1;
7758  gv->name = (char *)malloc(size);
7759  if (gv->name) {
7760  strncpy(gv->name,name,size);
7761  gv->get_attr = get_attr;
7762  gv->set_attr = set_attr;
7763  gv->next = v->vars;
7764  }
7765  }
7766  v->vars = gv;
7767  }
7768 
7769  SWIGINTERN PyObject *
7770  SWIG_globals(void) {
7771  static PyObject *_SWIG_globals = 0;
7772  if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
7773  return _SWIG_globals;
7774  }
7775 
7776  /* -----------------------------------------------------------------------------
7777  * constants/methods manipulation
7778  * ----------------------------------------------------------------------------- */
7779 
7780  /* Install Constants */
7781  SWIGINTERN void
7782  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
7783  PyObject *obj = 0;
7784  size_t i;
7785  for (i = 0; constants[i].type; ++i) {
7786  switch(constants[i].type) {
7787  case SWIG_PY_POINTER:
7788  obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
7789  break;
7790  case SWIG_PY_BINARY:
7791  obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
7792  break;
7793  default:
7794  obj = 0;
7795  break;
7796  }
7797  if (obj) {
7798  PyDict_SetItemString(d, constants[i].name, obj);
7799  Py_DECREF(obj);
7800  }
7801  }
7802  }
7803 
7804  /* -----------------------------------------------------------------------------*/
7805  /* Fix SwigMethods to carry the callback ptrs when needed */
7806  /* -----------------------------------------------------------------------------*/
7807 
7808  SWIGINTERN void
7809  SWIG_Python_FixMethods(PyMethodDef *methods,
7810  swig_const_info *const_table,
7811  swig_type_info **types,
7812  swig_type_info **types_initial) {
7813  size_t i;
7814  for (i = 0; methods[i].ml_name; ++i) {
7815  const char *c = methods[i].ml_doc;
7816  if (!c) continue;
7817  c = strstr(c, "swig_ptr: ");
7818  if (c) {
7819  int j;
7820  swig_const_info *ci = 0;
7821  const char *name = c + 10;
7822  for (j = 0; const_table[j].type; ++j) {
7823  if (strncmp(const_table[j].name, name,
7824  strlen(const_table[j].name)) == 0) {
7825  ci = &(const_table[j]);
7826  break;
7827  }
7828  }
7829  if (ci) {
7830  void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
7831  if (ptr) {
7832  size_t shift = (ci->ptype) - types;
7833  swig_type_info *ty = types_initial[shift];
7834  size_t ldoc = (c - methods[i].ml_doc);
7835  size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
7836  char *ndoc = (char*)malloc(ldoc + lptr + 10);
7837  if (ndoc) {
7838  char *buff = ndoc;
7839  strncpy(buff, methods[i].ml_doc, ldoc);
7840  buff += ldoc;
7841  strncpy(buff, "swig_ptr: ", 10);
7842  buff += 10;
7843  SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
7844  methods[i].ml_doc = ndoc;
7845  }
7846  }
7847  }
7848  }
7849  }
7850  }
7851 
7852 #ifdef __cplusplus
7853 }
7854 #endif
7855 
7856 /* -----------------------------------------------------------------------------*
7857  * Partial Init method
7858  * -----------------------------------------------------------------------------*/
7859 
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 
7864 SWIGEXPORT
7865 #if PY_VERSION_HEX >= 0x03000000
7866 PyObject*
7867 #else
7868 void
7869 #endif
7870 SWIG_init(void) {
7871  PyObject *m, *d, *md;
7872 #if PY_VERSION_HEX >= 0x03000000
7873  static struct PyModuleDef SWIG_module = {
7874 # if PY_VERSION_HEX >= 0x03020000
7875  PyModuleDef_HEAD_INIT,
7876 # else
7877  {
7878  PyObject_HEAD_INIT(NULL)
7879  NULL, /* m_init */
7880  0, /* m_index */
7881  NULL, /* m_copy */
7882  },
7883 # endif
7884  (char *) SWIG_name,
7885  NULL,
7886  -1,
7887  SwigMethods,
7888  NULL,
7889  NULL,
7890  NULL,
7891  NULL
7892  };
7893 #endif
7894 
7895 #if defined(SWIGPYTHON_BUILTIN)
7896  static SwigPyClientData SwigPyObject_clientdata = {
7897  0, 0, 0, 0, 0, 0, 0
7898  };
7899  static PyGetSetDef this_getset_def = {
7900  (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
7901  };
7902  static SwigPyGetSet thisown_getset_closure = {
7903  (PyCFunction) SwigPyObject_own,
7904  (PyCFunction) SwigPyObject_own
7905  };
7906  static PyGetSetDef thisown_getset_def = {
7907  (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
7908  };
7909  PyObject *metatype_args;
7910  PyTypeObject *builtin_pytype;
7911  int builtin_base_count;
7912  swig_type_info *builtin_basetype;
7913  PyObject *tuple;
7914  PyGetSetDescrObject *static_getset;
7915  PyTypeObject *metatype;
7916  SwigPyClientData *cd;
7917  PyObject *public_interface, *public_symbol;
7918  PyObject *this_descr;
7919  PyObject *thisown_descr;
7920  PyObject *self = 0;
7921  int i;
7922 
7923  (void)builtin_pytype;
7924  (void)builtin_base_count;
7925  (void)builtin_basetype;
7926  (void)tuple;
7927  (void)static_getset;
7928  (void)self;
7929 
7930  /* metatype is used to implement static member variables. */
7931  metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
7932  assert(metatype_args);
7933  metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
7934  assert(metatype);
7935  Py_DECREF(metatype_args);
7936  metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
7937  assert(PyType_Ready(metatype) >= 0);
7938 #endif
7939 
7940  /* Fix SwigMethods to carry the callback ptrs when needed */
7941  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
7942 
7943 #if PY_VERSION_HEX >= 0x03000000
7944  m = PyModule_Create(&SWIG_module);
7945 #else
7946  m = Py_InitModule((char *) SWIG_name, SwigMethods);
7947 #endif
7948 
7949  md = d = PyModule_GetDict(m);
7950  (void)md;
7951 
7952  SWIG_InitializeModule(0);
7953 
7954 #ifdef SWIGPYTHON_BUILTIN
7955  SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
7956  assert(SwigPyObject_stype);
7957  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
7958  if (!cd) {
7959  SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
7960  SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
7961  } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
7962  PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
7963 # if PY_VERSION_HEX >= 0x03000000
7964  return NULL;
7965 # else
7966  return;
7967 # endif
7968  }
7969 
7970  /* All objects have a 'this' attribute */
7971  this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
7972  (void)this_descr;
7973 
7974  /* All objects have a 'thisown' attribute */
7975  thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
7976  (void)thisown_descr;
7977 
7978  public_interface = PyList_New(0);
7979  public_symbol = 0;
7980  (void)public_symbol;
7981 
7982  PyDict_SetItemString(md, "__all__", public_interface);
7983  Py_DECREF(public_interface);
7984  for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
7985  SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
7986  for (i = 0; swig_const_table[i].name != 0; ++i)
7987  SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
7988 #endif
7989 
7990  SWIG_InstallConstants(d,swig_const_table);
7991 
7992 #if PY_VERSION_HEX >= 0x03000000
7993  return m;
7994 #else
7995  return;
7996 #endif
7997 }
7998 
const char * brief
brief one-line description
Definition: libBotSense.h:89
const char * date
version date
Definition: libBotSense.h:91
const char * maintainer
maintainer/owner
Definition: libBotSense.h:92
const char * license
short license/copyright statement
Definition: libBotSense.h:93
const char * m_sServerHostName
server host name
Definition: libBotSense.h:116
BsVConnHnd_T m_vecHnd[BSPROXY_VCONN_CLIENT_MAX]
vector of handles
Definition: libBotSense.h:125
const char * version
dotted version x.y.z[-app]
Definition: libBotSense.h:90
char m_moddate[256]
i/f module date
Definition: libBotSense.h:145
char m_modver[256]
i/f module version
Definition: libBotSense.h:144
<b><i>BotSense</i></b> client library declarations.
<b><i>BotSense</i></b> client library information and callbacks to application-specific data...
Definition: libBotSense.h:86
char m_client[256]
client name
Definition: libBotSense.h:141
char m_moduri[256]
i/f module URI
Definition: libBotSense.h:143
BotSense Proxy Message Header Structure.
Definition: BotSense.h:278
struct _bsClientStruct * BsClient_P
Pointer to client structure forward declaration.
Definition: libBotSense.h:71
const char * app_name
application name
Definition: libBotSense.h:88
<b><i>BotSense</i></b> package top-level, unifying header declarations.
int BsVConnHnd_T
virtual connection handle type
Definition: BotSense.h:151
char m_devuri[256]
device URI
Definition: libBotSense.h:142