Debian Codegraph @

python/Redland_wrap.c

raw symbols SCIP
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.7
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 /* -----------------------------------------------------------------------------
15 * This section contains generic SWIG labels for method/variable
16 * declarations/attributes, and other compiler dependent labels.
17 * ----------------------------------------------------------------------------- */
18
19 /* template workaround for compilers that cannot correctly implement the C++ standard */
20 #ifndef SWIGTEMPLATEDISAMBIGUATOR
21 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
22 # define SWIGTEMPLATEDISAMBIGUATOR template
23 # elif defined(__HP_aCC)
24 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
25 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
26 # define SWIGTEMPLATEDISAMBIGUATOR template
27 # else
28 # define SWIGTEMPLATEDISAMBIGUATOR
29 # endif
30 #endif
31
32 /* inline attribute */
33 #ifndef SWIGINLINE
34 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
35 # define SWIGINLINE inline
36 # else
37 # define SWIGINLINE
38 # endif
39 #endif
40
41 /* attribute recognised by some compilers to avoid 'unused' warnings */
42 #ifndef SWIGUNUSED
43 # if defined(__GNUC__)
44 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
45 # define SWIGUNUSED __attribute__ ((__unused__))
46 # else
47 # define SWIGUNUSED
48 # endif
49 # elif defined(__ICC)
50 # define SWIGUNUSED __attribute__ ((__unused__))
51 # else
52 # define SWIGUNUSED
53 # endif
54 #endif
55
56 #ifndef SWIG_MSC_UNSUPPRESS_4505
57 # if defined(_MSC_VER)
58 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
59 # endif
60 #endif
61
62 #ifndef SWIGUNUSEDPARM
63 # ifdef __cplusplus
64 # define SWIGUNUSEDPARM(p)
65 # else
66 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
67 # endif
68 #endif
69
70 /* internal SWIG method */
71 #ifndef SWIGINTERN
72 # define SWIGINTERN static SWIGUNUSED
73 #endif
74
75 /* internal inline SWIG method */
76 #ifndef SWIGINTERNINLINE
77 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
78 #endif
79
80 /* exporting methods */
81 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
82 # ifndef GCC_HASCLASSVISIBILITY
83 # define GCC_HASCLASSVISIBILITY
84 # endif
85 #endif
86
87 #ifndef SWIGEXPORT
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # if defined(STATIC_LINKED)
90 # define SWIGEXPORT
91 # else
92 # define SWIGEXPORT __declspec(dllexport)
93 # endif
94 # else
95 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
96 # define SWIGEXPORT __attribute__ ((visibility("default")))
97 # else
98 # define SWIGEXPORT
99 # endif
100 # endif
101 #endif
102
103 /* calling conventions for Windows */
104 #ifndef SWIGSTDCALL
105 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
106 # define SWIGSTDCALL __stdcall
107 # else
108 # define SWIGSTDCALL
109 # endif
110 #endif
111
112 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
113 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
114 # define _CRT_SECURE_NO_DEPRECATE
115 #endif
116
117 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
118 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
119 # define _SCL_SECURE_NO_DEPRECATE
120 #endif
121
122
123
124 /* Python.h has to appear first */
125 #include <Python.h>
126
127 /* -----------------------------------------------------------------------------
128 * swigrun.swg
129 *
130 * This file contains generic C API SWIG runtime support for pointer
131 * type checking.
132 * ----------------------------------------------------------------------------- */
133
134 /* This should only be incremented when either the layout of swig_type_info changes,
135 or for whatever reason, the runtime changes incompatibly */
136 #define SWIG_RUNTIME_VERSION "4"
137
138 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
139 #ifdef SWIG_TYPE_TABLE
140 # define SWIG_QUOTE_STRING(x) #x
141 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
142 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
143 #else
144 # define SWIG_TYPE_TABLE_NAME
145 #endif
146
147 /*
148 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
149 creating a static or dynamic library from the SWIG runtime code.
150 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
151
152 But only do this if strictly necessary, ie, if you have problems
153 with your compiler or suchlike.
154 */
155
156 #ifndef SWIGRUNTIME
157 # define SWIGRUNTIME SWIGINTERN
158 #endif
159
160 #ifndef SWIGRUNTIMEINLINE
161 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
162 #endif
163
164 /* Generic buffer size */
165 #ifndef SWIG_BUFFER_SIZE
166 # define SWIG_BUFFER_SIZE 1024
167 #endif
168
169 /* Flags for pointer conversions */
170 #define SWIG_POINTER_DISOWN 0x1
171 #define SWIG_CAST_NEW_MEMORY 0x2
172
173 /* Flags for new pointer objects */
174 #define SWIG_POINTER_OWN 0x1
175
176
177 /*
178 Flags/methods for returning states.
179
180 The SWIG conversion methods, as ConvertPtr, return an integer
181 that tells if the conversion was successful or not. And if not,
182 an error code can be returned (see swigerrors.swg for the codes).
183
184 Use the following macros/flags to set or process the returning
185 states.
186
187 In old versions of SWIG, code such as the following was usually written:
188
189 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
190 // success code
191 } else {
192 //fail code
193 }
194
195 Now you can be more explicit:
196
197 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
198 if (SWIG_IsOK(res)) {
199 // success code
200 } else {
201 // fail code
202 }
203
204 which is the same really, but now you can also do
205
206 Type *ptr;
207 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
208 if (SWIG_IsOK(res)) {
209 // success code
210 if (SWIG_IsNewObj(res) {
211 ...
212 delete *ptr;
213 } else {
214 ...
215 }
216 } else {
217 // fail code
218 }
219
220 I.e., now SWIG_ConvertPtr can return new objects and you can
221 identify the case and take care of the deallocation. Of course that
222 also requires SWIG_ConvertPtr to return new result values, such as
223
224 int SWIG_ConvertPtr(obj, ptr,...) {
225 if (<obj is ok>) {
226 if (<need new object>) {
227 *ptr = <ptr to new allocated object>;
228 return SWIG_NEWOBJ;
229 } else {
230 *ptr = <ptr to old object>;
231 return SWIG_OLDOBJ;
232 }
233 } else {
234 return SWIG_BADOBJ;
235 }
236 }
237
238 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
239 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
240 SWIG errors code.
241
242 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
243 allows to return the 'cast rank', for example, if you have this
244
245 int food(double)
246 int fooi(int);
247
248 and you call
249
250 food(1) // cast rank '1' (1 -> 1.0)
251 fooi(1) // cast rank '0'
252
253 just use the SWIG_AddCast()/SWIG_CheckState()
254 */
255
256 #define SWIG_OK (0)
257 #define SWIG_ERROR (-1)
258 #define SWIG_IsOK(r) (r >= 0)
259 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
260
261 /* The CastRankLimit says how many bits are used for the cast rank */
262 #define SWIG_CASTRANKLIMIT (1 << 8)
263 /* The NewMask denotes the object was created (using new/malloc) */
264 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
265 /* The TmpMask is for in/out typemaps that use temporal objects */
266 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
267 /* Simple returning values */
268 #define SWIG_BADOBJ (SWIG_ERROR)
269 #define SWIG_OLDOBJ (SWIG_OK)
270 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
271 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
272 /* Check, add and del mask methods */
273 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
274 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
275 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
276 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
277 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
278 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
279
280 /* Cast-Rank Mode */
281 #if defined(SWIG_CASTRANK_MODE)
282 # ifndef SWIG_TypeRank
283 # define SWIG_TypeRank unsigned long
284 # endif
285 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
286 # define SWIG_MAXCASTRANK (2)
287 # endif
288 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
289 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
290 SWIGINTERNINLINE int SWIG_AddCast(int r) {
291 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
292 }
293 SWIGINTERNINLINE int SWIG_CheckState(int r) {
294 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
295 }
296 #else /* no cast-rank mode */
297 # define SWIG_AddCast
298 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
299 #endif
300
301
302 #include <string.h>
303
304 #ifdef __cplusplus
305 extern "C" {
306 #endif
307
308 typedef void *(*swig_converter_func)(void *, int *);
309 typedef struct swig_type_info *(*swig_dycast_func)(void **);
310
311 /* Structure to store information on one type */
312 typedef struct swig_type_info {
313 const char *name; /* mangled name of this type */
314 const char *str; /* human readable name of this type */
315 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
316 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
317 void *clientdata; /* language specific type data */
318 int owndata; /* flag if the structure owns the clientdata */
319 } swig_type_info;
320
321 /* Structure to store a type and conversion function used for casting */
322 typedef struct swig_cast_info {
323 swig_type_info *type; /* pointer to type that is equivalent to this type */
324 swig_converter_func converter; /* function to cast the void pointers */
325 struct swig_cast_info *next; /* pointer to next cast in linked list */
326 struct swig_cast_info *prev; /* pointer to the previous cast */
327 } swig_cast_info;
328
329 /* Structure used to store module information
330 * Each module generates one structure like this, and the runtime collects
331 * all of these structures and stores them in a circularly linked list.*/
332 typedef struct swig_module_info {
333 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
334 size_t size; /* Number of types in this module */
335 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
336 swig_type_info **type_initial; /* Array of initially generated type structures */
337 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
338 void *clientdata; /* Language specific module data */
339 } swig_module_info;
340
341 /*
342 Compare two type names skipping the space characters, therefore
343 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
344
345 Return 0 when the two name types are equivalent, as in
346 strncmp, but skipping ' '.
347 */
348 SWIGRUNTIME int
349 SWIG_TypeNameComp(const char *f1, const char *l1,
350 const char *f2, const char *l2) {
351 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
352 while ((*f1 == ' ') && (f1 != l1)) ++f1;
353 while ((*f2 == ' ') && (f2 != l2)) ++f2;
354 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
355 }
356 return (int)((l1 - f1) - (l2 - f2));
357 }
358
359 /*
360 Check type equivalence in a name list like <name1>|<name2>|...
361 Return 0 if not equal, 1 if equal
362 */
363 SWIGRUNTIME int
364 SWIG_TypeEquiv(const char *nb, const char *tb) {
365 int equiv = 0;
366 const char* te = tb + strlen(tb);
367 const char* ne = nb;
368 while (!equiv && *ne) {
369 for (nb = ne; *ne; ++ne) {
370 if (*ne == '|') break;
371 }
372 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
373 if (*ne) ++ne;
374 }
375 return equiv;
376 }
377
378 /*
379 Check type equivalence in a name list like <name1>|<name2>|...
380 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
381 */
382 SWIGRUNTIME int
383 SWIG_TypeCompare(const char *nb, const char *tb) {
384 int equiv = 0;
385 const char* te = tb + strlen(tb);
386 const char* ne = nb;
387 while (!equiv && *ne) {
388 for (nb = ne; *ne; ++ne) {
389 if (*ne == '|') break;
390 }
391 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
392 if (*ne) ++ne;
393 }
394 return equiv;
395 }
396
397
398 /*
399 Check the typename
400 */
401 SWIGRUNTIME swig_cast_info *
402 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
403 if (ty) {
404 swig_cast_info *iter = ty->cast;
405 while (iter) {
406 if (strcmp(iter->type->name, c) == 0) {
407 if (iter == ty->cast)
408 return iter;
409 /* Move iter to the top of the linked list */
410 iter->prev->next = iter->next;
411 if (iter->next)
412 iter->next->prev = iter->prev;
413 iter->next = ty->cast;
414 iter->prev = 0;
415 if (ty->cast) ty->cast->prev = iter;
416 ty->cast = iter;
417 return iter;
418 }
419 iter = iter->next;
420 }
421 }
422 return 0;
423 }
424
425 /*
426 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
427 */
428 SWIGRUNTIME swig_cast_info *
429 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
430 if (ty) {
431 swig_cast_info *iter = ty->cast;
432 while (iter) {
433 if (iter->type == from) {
434 if (iter == ty->cast)
435 return iter;
436 /* Move iter to the top of the linked list */
437 iter->prev->next = iter->next;
438 if (iter->next)
439 iter->next->prev = iter->prev;
440 iter->next = ty->cast;
441 iter->prev = 0;
442 if (ty->cast) ty->cast->prev = iter;
443 ty->cast = iter;
444 return iter;
445 }
446 iter = iter->next;
447 }
448 }
449 return 0;
450 }
451
452 /*
453 Cast a pointer up an inheritance hierarchy
454 */
455 SWIGRUNTIMEINLINE void *
456 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
457 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
458 }
459
460 /*
461 Dynamic pointer casting. Down an inheritance hierarchy
462 */
463 SWIGRUNTIME swig_type_info *
464 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
465 swig_type_info *lastty = ty;
466 if (!ty || !ty->dcast) return ty;
467 while (ty && (ty->dcast)) {
468 ty = (*ty->dcast)(ptr);
469 if (ty) lastty = ty;
470 }
471 return lastty;
472 }
473
474 /*
475 Return the name associated with this type
476 */
477 SWIGRUNTIMEINLINE const char *
478 SWIG_TypeName(const swig_type_info *ty) {
479 return ty->name;
480 }
481
482 /*
483 Return the pretty name associated with this type,
484 that is an unmangled type name in a form presentable to the user.
485 */
486 SWIGRUNTIME const char *
487 SWIG_TypePrettyName(const swig_type_info *type) {
488 /* The "str" field contains the equivalent pretty names of the
489 type, separated by vertical-bar characters. We choose
490 to print the last name, as it is often (?) the most
491 specific. */
492 if (!type) return NULL;
493 if (type->str != NULL) {
494 const char *last_name = type->str;
495 const char *s;
496 for (s = type->str; *s; s++)
497 if (*s == '|') last_name = s+1;
498 return last_name;
499 }
500 else
501 return type->name;
502 }
503
504 /*
505 Set the clientdata field for a type
506 */
507 SWIGRUNTIME void
508 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
509 swig_cast_info *cast = ti->cast;
510 /* if (ti->clientdata == clientdata) return; */
511 ti->clientdata = clientdata;
512
513 while (cast) {
514 if (!cast->converter) {
515 swig_type_info *tc = cast->type;
516 if (!tc->clientdata) {
517 SWIG_TypeClientData(tc, clientdata);
518 }
519 }
520 cast = cast->next;
521 }
522 }
523 SWIGRUNTIME void
524 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
525 SWIG_TypeClientData(ti, clientdata);
526 ti->owndata = 1;
527 }
528
529 /*
530 Search for a swig_type_info structure only by mangled name
531 Search is a O(log #types)
532
533 We start searching at module start, and finish searching when start == end.
534 Note: if start == end at the beginning of the function, we go all the way around
535 the circular list.
536 */
537 SWIGRUNTIME swig_type_info *
538 SWIG_MangledTypeQueryModule(swig_module_info *start,
539 swig_module_info *end,
540 const char *name) {
541 swig_module_info *iter = start;
542 do {
543 if (iter->size) {
544 register size_t l = 0;
545 register size_t r = iter->size - 1;
546 do {
547 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
548 register size_t i = (l + r) >> 1;
549 const char *iname = iter->types[i]->name;
550 if (iname) {
551 register int compare = strcmp(name, iname);
552 if (compare == 0) {
553 return iter->types[i];
554 } else if (compare < 0) {
555 if (i) {
556 r = i - 1;
557 } else {
558 break;
559 }
560 } else if (compare > 0) {
561 l = i + 1;
562 }
563 } else {
564 break; /* should never happen */
565 }
566 } while (l <= r);
567 }
568 iter = iter->next;
569 } while (iter != end);
570 return 0;
571 }
572
573 /*
574 Search for a swig_type_info structure for either a mangled name or a human readable name.
575 It first searches the mangled names of the types, which is a O(log #types)
576 If a type is not found it then searches the human readable names, which is O(#types).
577
578 We start searching at module start, and finish searching when start == end.
579 Note: if start == end at the beginning of the function, we go all the way around
580 the circular list.
581 */
582 SWIGRUNTIME swig_type_info *
583 SWIG_TypeQueryModule(swig_module_info *start,
584 swig_module_info *end,
585 const char *name) {
586 /* STEP 1: Search the name field using binary search */
587 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
588 if (ret) {
589 return ret;
590 } else {
591 /* STEP 2: If the type hasn't been found, do a complete search
592 of the str field (the human readable name) */
593 swig_module_info *iter = start;
594 do {
595 register size_t i = 0;
596 for (; i < iter->size; ++i) {
597 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
598 return iter->types[i];
599 }
600 iter = iter->next;
601 } while (iter != end);
602 }
603
604 /* neither found a match */
605 return 0;
606 }
607
608 /*
609 Pack binary data into a string
610 */
611 SWIGRUNTIME char *
612 SWIG_PackData(char *c, void *ptr, size_t sz) {
613 static const char hex[17] = "0123456789abcdef";
614 register const unsigned char *u = (unsigned char *) ptr;
615 register const unsigned char *eu = u + sz;
616 for (; u != eu; ++u) {
617 register unsigned char uu = *u;
618 *(c++) = hex[(uu & 0xf0) >> 4];
619 *(c++) = hex[uu & 0xf];
620 }
621 return c;
622 }
623
624 /*
625 Unpack binary data from a string
626 */
627 SWIGRUNTIME const char *
628 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
629 register unsigned char *u = (unsigned char *) ptr;
630 register const unsigned char *eu = u + sz;
631 for (; u != eu; ++u) {
632 register char d = *(c++);
633 register unsigned char uu;
634 if ((d >= '0') && (d <= '9'))
635 uu = ((d - '0') << 4);
636 else if ((d >= 'a') && (d <= 'f'))
637 uu = ((d - ('a'-10)) << 4);
638 else
639 return (char *) 0;
640 d = *(c++);
641 if ((d >= '0') && (d <= '9'))
642 uu |= (d - '0');
643 else if ((d >= 'a') && (d <= 'f'))
644 uu |= (d - ('a'-10));
645 else
646 return (char *) 0;
647 *u = uu;
648 }
649 return c;
650 }
651
652 /*
653 Pack 'void *' into a string buffer.
654 */
655 SWIGRUNTIME char *
656 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
657 char *r = buff;
658 if ((2*sizeof(void *) + 2) > bsz) return 0;
659 *(r++) = '_';
660 r = SWIG_PackData(r,&ptr,sizeof(void *));
661 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
662 strcpy(r,name);
663 return buff;
664 }
665
666 SWIGRUNTIME const char *
667 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
668 if (*c != '_') {
669 if (strcmp(c,"NULL") == 0) {
670 *ptr = (void *) 0;
671 return name;
672 } else {
673 return 0;
674 }
675 }
676 return SWIG_UnpackData(++c,ptr,sizeof(void *));
677 }
678
679 SWIGRUNTIME char *
680 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
681 char *r = buff;
682 size_t lname = (name ? strlen(name) : 0);
683 if ((2*sz + 2 + lname) > bsz) return 0;
684 *(r++) = '_';
685 r = SWIG_PackData(r,ptr,sz);
686 if (lname) {
687 strncpy(r,name,lname+1);
688 } else {
689 *r = 0;
690 }
691 return buff;
692 }
693
694 SWIGRUNTIME const char *
695 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
696 if (*c != '_') {
697 if (strcmp(c,"NULL") == 0) {
698 memset(ptr,0,sz);
699 return name;
700 } else {
701 return 0;
702 }
703 }
704 return SWIG_UnpackData(++c,ptr,sz);
705 }
706
707 #ifdef __cplusplus
708 }
709 #endif
710
711 /* Errors in SWIG */
712 #define SWIG_UnknownError -1
713 #define SWIG_IOError -2
714 #define SWIG_RuntimeError -3
715 #define SWIG_IndexError -4
716 #define SWIG_TypeError -5
717 #define SWIG_DivisionByZero -6
718 #define SWIG_OverflowError -7
719 #define SWIG_SyntaxError -8
720 #define SWIG_ValueError -9
721 #define SWIG_SystemError -10
722 #define SWIG_AttributeError -11
723 #define SWIG_MemoryError -12
724 #define SWIG_NullReferenceError -13
725
726
727
728 /* Compatibility macros for Python 3 */
729 #if PY_VERSION_HEX >= 0x03000000
730
731 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
732 #define PyInt_Check(x) PyLong_Check(x)
733 #define PyInt_AsLong(x) PyLong_AsLong(x)
734 #define PyInt_FromLong(x) PyLong_FromLong(x)
735 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
736 #define PyString_Check(name) PyBytes_Check(name)
737 #define PyString_FromString(x) PyUnicode_FromString(x)
738 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
739 #define PyString_AsString(str) PyBytes_AsString(str)
740 #define PyString_Size(str) PyBytes_Size(str)
741 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
742 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
743 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
744 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
745
746 #endif
747
748 #ifndef Py_TYPE
749 # define Py_TYPE(op) ((op)->ob_type)
750 #endif
751
752 /* SWIG APIs for compatibility of both Python 2 & 3 */
753
754 #if PY_VERSION_HEX >= 0x03000000
755 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat
756 #else
757 # define SWIG_Python_str_FromFormat PyString_FromFormat
758 #endif
759
760
761 /* Warning: This function will allocate a new string in Python 3,
762 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
763 */
764 SWIGINTERN char*
765 SWIG_Python_str_AsChar(PyObject *str)
766 {
767 #if PY_VERSION_HEX >= 0x03000000
768 char *cstr;
769 char *newstr;
770 Py_ssize_t len;
771 str = PyUnicode_AsUTF8String(str);
772 PyBytes_AsStringAndSize(str, &cstr, &len);
773 newstr = (char *) malloc(len+1);
774 memcpy(newstr, cstr, len+1);
775 Py_XDECREF(str);
776 return newstr;
777 #else
778 return PyString_AsString(str);
779 #endif
780 }
781
782 #if PY_VERSION_HEX >= 0x03000000
783 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
784 #else
785 # define SWIG_Python_str_DelForPy3(x)
786 #endif
787
788
789 SWIGINTERN PyObject*
790 SWIG_Python_str_FromChar(const char *c)
791 {
792 #if PY_VERSION_HEX >= 0x03000000
793 return PyUnicode_FromString(c);
794 #else
795 return PyString_FromString(c);
796 #endif
797 }
798
799 /* Add PyOS_snprintf for old Pythons */
800 #if PY_VERSION_HEX < 0x02020000
801 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
802 # define PyOS_snprintf _snprintf
803 # else
804 # define PyOS_snprintf snprintf
805 # endif
806 #endif
807
808 /* A crude PyString_FromFormat implementation for old Pythons */
809 #if PY_VERSION_HEX < 0x02020000
810
811 #ifndef SWIG_PYBUFFER_SIZE
812 # define SWIG_PYBUFFER_SIZE 1024
813 #endif
814
815 static PyObject *
816 PyString_FromFormat(const char *fmt, ...) {
817 va_list ap;
818 char buf[SWIG_PYBUFFER_SIZE * 2];
819 int res;
820 va_start(ap, fmt);
821 res = vsnprintf(buf, sizeof(buf), fmt, ap);
822 va_end(ap);
823 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
824 }
825 #endif
826
827 /* Add PyObject_Del for old Pythons */
828 #if PY_VERSION_HEX < 0x01060000
829 # define PyObject_Del(op) PyMem_DEL((op))
830 #endif
831 #ifndef PyObject_DEL
832 # define PyObject_DEL PyObject_Del
833 #endif
834
835 /* A crude PyExc_StopIteration exception for old Pythons */
836 #if PY_VERSION_HEX < 0x02020000
837 # ifndef PyExc_StopIteration
838 # define PyExc_StopIteration PyExc_RuntimeError
839 # endif
840 # ifndef PyObject_GenericGetAttr
841 # define PyObject_GenericGetAttr 0
842 # endif
843 #endif
844
845 /* Py_NotImplemented is defined in 2.1 and up. */
846 #if PY_VERSION_HEX < 0x02010000
847 # ifndef Py_NotImplemented
848 # define Py_NotImplemented PyExc_RuntimeError
849 # endif
850 #endif
851
852 /* A crude PyString_AsStringAndSize implementation for old Pythons */
853 #if PY_VERSION_HEX < 0x02010000
854 # ifndef PyString_AsStringAndSize
855 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
856 # endif
857 #endif
858
859 /* PySequence_Size for old Pythons */
860 #if PY_VERSION_HEX < 0x02000000
861 # ifndef PySequence_Size
862 # define PySequence_Size PySequence_Length
863 # endif
864 #endif
865
866 /* PyBool_FromLong for old Pythons */
867 #if PY_VERSION_HEX < 0x02030000
868 static
869 PyObject *PyBool_FromLong(long ok)
870 {
871 PyObject *result = ok ? Py_True : Py_False;
872 Py_INCREF(result);
873 return result;
874 }
875 #endif
876
877 /* Py_ssize_t for old Pythons */
878 /* This code is as recommended by: */
879 /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
880 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
881 typedef int Py_ssize_t;
882 # define PY_SSIZE_T_MAX INT_MAX
883 # define PY_SSIZE_T_MIN INT_MIN
884 typedef inquiry lenfunc;
885 typedef intargfunc ssizeargfunc;
886 typedef intintargfunc ssizessizeargfunc;
887 typedef intobjargproc ssizeobjargproc;
888 typedef intintobjargproc ssizessizeobjargproc;
889 typedef getreadbufferproc readbufferproc;
890 typedef getwritebufferproc writebufferproc;
891 typedef getsegcountproc segcountproc;
892 typedef getcharbufferproc charbufferproc;
893 static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
894 {
895 long result = 0;
896 PyObject *i = PyNumber_Int(x);
897 if (i) {
898 result = PyInt_AsLong(i);
899 Py_DECREF(i);
900 }
901 return result;
902 }
903 #endif
904
905 #if PY_VERSION_HEX < 0x02040000
906 #define Py_VISIT(op) \
907 do { \
908 if (op) { \
909 int vret = visit((op), arg); \
910 if (vret) \
911 return vret; \
912 } \
913 } while (0)
914 #endif
915
916 #if PY_VERSION_HEX < 0x02030000
917 typedef struct {
918 PyTypeObject type;
919 PyNumberMethods as_number;
920 PyMappingMethods as_mapping;
921 PySequenceMethods as_sequence;
922 PyBufferProcs as_buffer;
923 PyObject *name, *slots;
924 } PyHeapTypeObject;
925 #endif
926
927 #if PY_VERSION_HEX < 0x02030000
928 typedef destructor freefunc;
929 #endif
930
931 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
932 (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
933 (PY_MAJOR_VERSION > 3))
934 # define SWIGPY_USE_CAPSULE
935 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
936 #endif
937
938 #if PY_VERSION_HEX < 0x03020000
939 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
940 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
941 #endif
942
943 /* -----------------------------------------------------------------------------
944 * error manipulation
945 * ----------------------------------------------------------------------------- */
946
947 SWIGRUNTIME PyObject*
948 SWIG_Python_ErrorType(int code) {
949 PyObject* type = 0;
950 switch(code) {
951 case SWIG_MemoryError:
952 type = PyExc_MemoryError;
953 break;
954 case SWIG_IOError:
955 type = PyExc_IOError;
956 break;
957 case SWIG_RuntimeError:
958 type = PyExc_RuntimeError;
959 break;
960 case SWIG_IndexError:
961 type = PyExc_IndexError;
962 break;
963 case SWIG_TypeError:
964 type = PyExc_TypeError;
965 break;
966 case SWIG_DivisionByZero:
967 type = PyExc_ZeroDivisionError;
968 break;
969 case SWIG_OverflowError:
970 type = PyExc_OverflowError;
971 break;
972 case SWIG_SyntaxError:
973 type = PyExc_SyntaxError;
974 break;
975 case SWIG_ValueError:
976 type = PyExc_ValueError;
977 break;
978 case SWIG_SystemError:
979 type = PyExc_SystemError;
980 break;
981 case SWIG_AttributeError:
982 type = PyExc_AttributeError;
983 break;
984 default:
985 type = PyExc_RuntimeError;
986 }
987 return type;
988 }
989
990
991 SWIGRUNTIME void
992 SWIG_Python_AddErrorMsg(const char* mesg)
993 {
994 PyObject *type = 0;
995 PyObject *value = 0;
996 PyObject *traceback = 0;
997
998 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
999 if (value) {
1000 char *tmp;
1001 PyObject *old_str = PyObject_Str(value);
1002 PyErr_Clear();
1003 Py_XINCREF(type);
1004
1005 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1006 SWIG_Python_str_DelForPy3(tmp);
1007 Py_DECREF(old_str);
1008 Py_DECREF(value);
1009 } else {
1010 PyErr_SetString(PyExc_RuntimeError, mesg);
1011 }
1012 }
1013
1014 #if defined(SWIG_PYTHON_NO_THREADS)
1015 # if defined(SWIG_PYTHON_THREADS)
1016 # undef SWIG_PYTHON_THREADS
1017 # endif
1018 #endif
1019 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1020 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1021 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1022 # define SWIG_PYTHON_USE_GIL
1023 # endif
1024 # endif
1025 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1026 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
1027 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1028 # endif
1029 # ifdef __cplusplus /* C++ code */
1030 class SWIG_Python_Thread_Block {
1031 bool status;
1032 PyGILState_STATE state;
1033 public:
1034 void end() { if (status) { PyGILState_Release(state); status = false;} }
1035 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1036 ~SWIG_Python_Thread_Block() { end(); }
1037 };
1038 class SWIG_Python_Thread_Allow {
1039 bool status;
1040 PyThreadState *save;
1041 public:
1042 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1043 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1044 ~SWIG_Python_Thread_Allow() { end(); }
1045 };
1046 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1047 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1048 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1049 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1050 # else /* C code */
1051 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1052 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1053 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1054 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1055 # endif
1056 # else /* Old thread way, not implemented, user must provide it */
1057 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1058 # define SWIG_PYTHON_INITIALIZE_THREADS
1059 # endif
1060 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1061 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1062 # endif
1063 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1064 # define SWIG_PYTHON_THREAD_END_BLOCK
1065 # endif
1066 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1067 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1068 # endif
1069 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1070 # define SWIG_PYTHON_THREAD_END_ALLOW
1071 # endif
1072 # endif
1073 #else /* No thread support */
1074 # define SWIG_PYTHON_INITIALIZE_THREADS
1075 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1076 # define SWIG_PYTHON_THREAD_END_BLOCK
1077 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1078 # define SWIG_PYTHON_THREAD_END_ALLOW
1079 #endif
1080
1081 /* -----------------------------------------------------------------------------
1082 * Python API portion that goes into the runtime
1083 * ----------------------------------------------------------------------------- */
1084
1085 #ifdef __cplusplus
1086 extern "C" {
1087 #endif
1088
1089 /* -----------------------------------------------------------------------------
1090 * Constant declarations
1091 * ----------------------------------------------------------------------------- */
1092
1093 /* Constant Types */
1094 #define SWIG_PY_POINTER 4
1095 #define SWIG_PY_BINARY 5
1096
1097 /* Constant information structure */
1098 typedef struct swig_const_info {
1099 int type;
1100 char *name;
1101 long lvalue;
1102 double dvalue;
1103 void *pvalue;
1104 swig_type_info **ptype;
1105 } swig_const_info;
1106
1107
1108 /* -----------------------------------------------------------------------------
1109 * Wrapper of PyInstanceMethod_New() used in Python 3
1110 * It is exported to the generated module, used for -fastproxy
1111 * ----------------------------------------------------------------------------- */
1112 #if PY_VERSION_HEX >= 0x03000000
1113 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1114 {
1115 return PyInstanceMethod_New(func);
1116 }
1117 #else
1118 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1119 {
1120 return NULL;
1121 }
1122 #endif
1123
1124 #ifdef __cplusplus
1125 }
1126 #endif
1127
1128
1129 /* -----------------------------------------------------------------------------
1130 * pyrun.swg
1131 *
1132 * This file contains the runtime support for Python modules
1133 * and includes code for managing global variables and pointer
1134 * type checking.
1135 *
1136 * ----------------------------------------------------------------------------- */
1137
1138 /* Common SWIG API */
1139
1140 /* for raw pointers */
1141 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1142 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1143 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1144
1145 #ifdef SWIGPYTHON_BUILTIN
1146 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1147 #else
1148 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1149 #endif
1150
1151 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1152
1153 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1154 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1155 #define swig_owntype int
1156
1157 /* for raw packed data */
1158 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1159 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1160
1161 /* for class or struct pointers */
1162 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1163 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1164
1165 /* for C or C++ function pointers */
1166 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1167 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1168
1169 /* for C++ member pointers, ie, member methods */
1170 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1171 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1172
1173
1174 /* Runtime API */
1175
1176 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1177 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1178 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1179
1180 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1181 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1182 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1183 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1184 #define SWIG_fail goto fail
1185
1186
1187 /* Runtime API implementation */
1188
1189 /* Error manipulation */
1190
1191 SWIGINTERN void
1192 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1193 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1194 PyErr_SetObject(errtype, obj);
1195 Py_DECREF(obj);
1196 SWIG_PYTHON_THREAD_END_BLOCK;
1197 }
1198
1199 SWIGINTERN void
1200 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1201 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1202 PyErr_SetString(errtype, msg);
1203 SWIG_PYTHON_THREAD_END_BLOCK;
1204 }
1205
1206 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1207
1208 /* Set a constant value */
1209
1210 #if defined(SWIGPYTHON_BUILTIN)
1211
1212 SWIGINTERN void
1213 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1214 PyObject *s = PyString_InternFromString(key);
1215 PyList_Append(seq, s);
1216 Py_DECREF(s);
1217 }
1218
1219 SWIGINTERN void
1220 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1221 #if PY_VERSION_HEX < 0x02030000
1222 PyDict_SetItemString(d, (char *)name, obj);
1223 #else
1224 PyDict_SetItemString(d, name, obj);
1225 #endif
1226 Py_DECREF(obj);
1227 if (public_interface)
1228 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1229 }
1230
1231 #else
1232
1233 SWIGINTERN void
1234 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1235 #if PY_VERSION_HEX < 0x02030000
1236 PyDict_SetItemString(d, (char *)name, obj);
1237 #else
1238 PyDict_SetItemString(d, name, obj);
1239 #endif
1240 Py_DECREF(obj);
1241 }
1242
1243 #endif
1244
1245 /* Append a value to the result obj */
1246
1247 SWIGINTERN PyObject*
1248 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1249 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1250 if (!result) {
1251 result = obj;
1252 } else if (result == Py_None) {
1253 Py_DECREF(result);
1254 result = obj;
1255 } else {
1256 if (!PyList_Check(result)) {
1257 PyObject *o2 = result;
1258 result = PyList_New(1);
1259 PyList_SetItem(result, 0, o2);
1260 }
1261 PyList_Append(result,obj);
1262 Py_DECREF(obj);
1263 }
1264 return result;
1265 #else
1266 PyObject* o2;
1267 PyObject* o3;
1268 if (!result) {
1269 result = obj;
1270 } else if (result == Py_None) {
1271 Py_DECREF(result);
1272 result = obj;
1273 } else {
1274 if (!PyTuple_Check(result)) {
1275 o2 = result;
1276 result = PyTuple_New(1);
1277 PyTuple_SET_ITEM(result, 0, o2);
1278 }
1279 o3 = PyTuple_New(1);
1280 PyTuple_SET_ITEM(o3, 0, obj);
1281 o2 = result;
1282 result = PySequence_Concat(o2, o3);
1283 Py_DECREF(o2);
1284 Py_DECREF(o3);
1285 }
1286 return result;
1287 #endif
1288 }
1289
1290 /* Unpack the argument tuple */
1291
1292 SWIGINTERN int
1293 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1294 {
1295 if (!args) {
1296 if (!min && !max) {
1297 return 1;
1298 } else {
1299 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1300 name, (min == max ? "" : "at least "), (int)min);
1301 return 0;
1302 }
1303 }
1304 if (!PyTuple_Check(args)) {
1305 if (min <= 1 && max >= 1) {
1306 register int i;
1307 objs[0] = args;
1308 for (i = 1; i < max; ++i) {
1309 objs[i] = 0;
1310 }
1311 return 2;
1312 }
1313 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1314 return 0;
1315 } else {
1316 register Py_ssize_t l = PyTuple_GET_SIZE(args);
1317 if (l < min) {
1318 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1319 name, (min == max ? "" : "at least "), (int)min, (int)l);
1320 return 0;
1321 } else if (l > max) {
1322 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1323 name, (min == max ? "" : "at most "), (int)max, (int)l);
1324 return 0;
1325 } else {
1326 register int i;
1327 for (i = 0; i < l; ++i) {
1328 objs[i] = PyTuple_GET_ITEM(args, i);
1329 }
1330 for (; l < max; ++l) {
1331 objs[l] = 0;
1332 }
1333 return i + 1;
1334 }
1335 }
1336 }
1337
1338 /* A functor is a function object with one single object argument */
1339 #if PY_VERSION_HEX >= 0x02020000
1340 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1341 #else
1342 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1343 #endif
1344
1345 /*
1346 Helper for static pointer initialization for both C and C++ code, for example
1347 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1348 */
1349 #ifdef __cplusplus
1350 #define SWIG_STATIC_POINTER(var) var
1351 #else
1352 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1353 #endif
1354
1355 /* -----------------------------------------------------------------------------
1356 * Pointer declarations
1357 * ----------------------------------------------------------------------------- */
1358
1359 /* Flags for new pointer objects */
1360 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1361 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1362
1363 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1364
1365 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1366 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1367
1368 #ifdef __cplusplus
1369 extern "C" {
1370 #endif
1371
1372 /* How to access Py_None */
1373 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1374 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1375 # ifndef SWIG_PYTHON_BUILD_NONE
1376 # define SWIG_PYTHON_BUILD_NONE
1377 # endif
1378 # endif
1379 #endif
1380
1381 #ifdef SWIG_PYTHON_BUILD_NONE
1382 # ifdef Py_None
1383 # undef Py_None
1384 # define Py_None SWIG_Py_None()
1385 # endif
1386 SWIGRUNTIMEINLINE PyObject *
1387 _SWIG_Py_None(void)
1388 {
1389 PyObject *none = Py_BuildValue((char*)"");
1390 Py_DECREF(none);
1391 return none;
1392 }
1393 SWIGRUNTIME PyObject *
1394 SWIG_Py_None(void)
1395 {
1396 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1397 return none;
1398 }
1399 #endif
1400
1401 /* The python void return value */
1402
1403 SWIGRUNTIMEINLINE PyObject *
1404 SWIG_Py_Void(void)
1405 {
1406 PyObject *none = Py_None;
1407 Py_INCREF(none);
1408 return none;
1409 }
1410
1411 /* SwigPyClientData */
1412
1413 typedef struct {
1414 PyObject *klass;
1415 PyObject *newraw;
1416 PyObject *newargs;
1417 PyObject *destroy;
1418 int delargs;
1419 int implicitconv;
1420 PyTypeObject *pytype;
1421 } SwigPyClientData;
1422
1423 SWIGRUNTIMEINLINE int
1424 SWIG_Python_CheckImplicit(swig_type_info *ty)
1425 {
1426 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1427 return data ? data->implicitconv : 0;
1428 }
1429
1430 SWIGRUNTIMEINLINE PyObject *
1431 SWIG_Python_ExceptionType(swig_type_info *desc) {
1432 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1433 PyObject *klass = data ? data->klass : 0;
1434 return (klass ? klass : PyExc_RuntimeError);
1435 }
1436
1437
1438 SWIGRUNTIME SwigPyClientData *
1439 SwigPyClientData_New(PyObject* obj)
1440 {
1441 if (!obj) {
1442 return 0;
1443 } else {
1444 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1445 /* the klass element */
1446 data->klass = obj;
1447 Py_INCREF(data->klass);
1448 /* the newraw method and newargs arguments used to create a new raw instance */
1449 if (PyClass_Check(obj)) {
1450 data->newraw = 0;
1451 data->newargs = obj;
1452 Py_INCREF(obj);
1453 } else {
1454 #if (PY_VERSION_HEX < 0x02020000)
1455 data->newraw = 0;
1456 #else
1457 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1458 #endif
1459 if (data->newraw) {
1460 Py_INCREF(data->newraw);
1461 data->newargs = PyTuple_New(1);
1462 PyTuple_SetItem(data->newargs, 0, obj);
1463 } else {
1464 data->newargs = obj;
1465 }
1466 Py_INCREF(data->newargs);
1467 }
1468 /* the destroy method, aka as the C++ delete method */
1469 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1470 if (PyErr_Occurred()) {
1471 PyErr_Clear();
1472 data->destroy = 0;
1473 }
1474 if (data->destroy) {
1475 int flags;
1476 Py_INCREF(data->destroy);
1477 flags = PyCFunction_GET_FLAGS(data->destroy);
1478 #ifdef METH_O
1479 data->delargs = !(flags & (METH_O));
1480 #else
1481 data->delargs = 0;
1482 #endif
1483 } else {
1484 data->delargs = 0;
1485 }
1486 data->implicitconv = 0;
1487 data->pytype = 0;
1488 return data;
1489 }
1490 }
1491
1492 SWIGRUNTIME void
1493 SwigPyClientData_Del(SwigPyClientData *data) {
1494 Py_XDECREF(data->newraw);
1495 Py_XDECREF(data->newargs);
1496 Py_XDECREF(data->destroy);
1497 }
1498
1499 /* =============== SwigPyObject =====================*/
1500
1501 typedef struct {
1502 PyObject_HEAD
1503 void *ptr;
1504 swig_type_info *ty;
1505 int own;
1506 PyObject *next;
1507 #ifdef SWIGPYTHON_BUILTIN
1508 PyObject *dict;
1509 #endif
1510 } SwigPyObject;
1511
1512 SWIGRUNTIME PyObject *
1513 SwigPyObject_long(SwigPyObject *v)
1514 {
1515 return PyLong_FromVoidPtr(v->ptr);
1516 }
1517
1518 SWIGRUNTIME PyObject *
1519 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1520 {
1521 PyObject *res = NULL;
1522 PyObject *args = PyTuple_New(1);
1523 if (args) {
1524 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1525 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1526 if (ofmt) {
1527 #if PY_VERSION_HEX >= 0x03000000
1528 res = PyUnicode_Format(ofmt,args);
1529 #else
1530 res = PyString_Format(ofmt,args);
1531 #endif
1532 Py_DECREF(ofmt);
1533 }
1534 Py_DECREF(args);
1535 }
1536 }
1537 return res;
1538 }
1539
1540 SWIGRUNTIME PyObject *
1541 SwigPyObject_oct(SwigPyObject *v)
1542 {
1543 return SwigPyObject_format("%o",v);
1544 }
1545
1546 SWIGRUNTIME PyObject *
1547 SwigPyObject_hex(SwigPyObject *v)
1548 {
1549 return SwigPyObject_format("%x",v);
1550 }
1551
1552 SWIGRUNTIME PyObject *
1553 #ifdef METH_NOARGS
1554 SwigPyObject_repr(SwigPyObject *v)
1555 #else
1556 SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1557 #endif
1558 {
1559 const char *name = SWIG_TypePrettyName(v->ty);
1560 PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1561 if (v->next) {
1562 # ifdef METH_NOARGS
1563 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1564 # else
1565 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1566 # endif
1567 # if PY_VERSION_HEX >= 0x03000000
1568 PyObject *joined = PyUnicode_Concat(repr, nrep);
1569 Py_DecRef(repr);
1570 Py_DecRef(nrep);
1571 repr = joined;
1572 # else
1573 PyString_ConcatAndDel(&repr,nrep);
1574 # endif
1575 }
1576 return repr;
1577 }
1578
1579 SWIGRUNTIME int
1580 SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1581 {
1582 char *str;
1583 #ifdef METH_NOARGS
1584 PyObject *repr = SwigPyObject_repr(v);
1585 #else
1586 PyObject *repr = SwigPyObject_repr(v, NULL);
1587 #endif
1588 if (repr) {
1589 str = SWIG_Python_str_AsChar(repr);
1590 fputs(str, fp);
1591 SWIG_Python_str_DelForPy3(str);
1592 Py_DECREF(repr);
1593 return 0;
1594 } else {
1595 return 1;
1596 }
1597 }
1598
1599 SWIGRUNTIME PyObject *
1600 SwigPyObject_str(SwigPyObject *v)
1601 {
1602 char result[SWIG_BUFFER_SIZE];
1603 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1604 SWIG_Python_str_FromChar(result) : 0;
1605 }
1606
1607 SWIGRUNTIME int
1608 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1609 {
1610 void *i = v->ptr;
1611 void *j = w->ptr;
1612 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1613 }
1614
1615 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1616 SWIGRUNTIME PyObject*
1617 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1618 {
1619 PyObject* res;
1620 if( op != Py_EQ && op != Py_NE ) {
1621 Py_INCREF(Py_NotImplemented);
1622 return Py_NotImplemented;
1623 }
1624 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1625 return res;
1626 }
1627
1628
1629 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1630
1631 #ifdef SWIGPYTHON_BUILTIN
1632 static swig_type_info *SwigPyObject_stype = 0;
1633 SWIGRUNTIME PyTypeObject*
1634 SwigPyObject_type(void) {
1635 SwigPyClientData *cd;
1636 assert(SwigPyObject_stype);
1637 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1638 assert(cd);
1639 assert(cd->pytype);
1640 return cd->pytype;
1641 }
1642 #else
1643 SWIGRUNTIME PyTypeObject*
1644 SwigPyObject_type(void) {
1645 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1646 return type;
1647 }
1648 #endif
1649
1650 SWIGRUNTIMEINLINE int
1651 SwigPyObject_Check(PyObject *op) {
1652 #ifdef SWIGPYTHON_BUILTIN
1653 PyTypeObject *target_tp = SwigPyObject_type();
1654 if (PyType_IsSubtype(op->ob_type, target_tp))
1655 return 1;
1656 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1657 #else
1658 return (Py_TYPE(op) == SwigPyObject_type())
1659 || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1660 #endif
1661 }
1662
1663 SWIGRUNTIME PyObject *
1664 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1665
1666 SWIGRUNTIME void
1667 SwigPyObject_dealloc(PyObject *v)
1668 {
1669 SwigPyObject *sobj = (SwigPyObject *) v;
1670 PyObject *next = sobj->next;
1671 if (sobj->own == SWIG_POINTER_OWN) {
1672 swig_type_info *ty = sobj->ty;
1673 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1674 PyObject *destroy = data ? data->destroy : 0;
1675 if (destroy) {
1676 /* destroy is always a VARARGS method */
1677 PyObject *res;
1678 if (data->delargs) {
1679 /* we need to create a temporary object to carry the destroy operation */
1680 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1681 res = SWIG_Python_CallFunctor(destroy, tmp);
1682 Py_DECREF(tmp);
1683 } else {
1684 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1685 PyObject *mself = PyCFunction_GET_SELF(destroy);
1686 res = ((*meth)(mself, v));
1687 }
1688 Py_XDECREF(res);
1689 }
1690 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1691 else {
1692 const char *name = SWIG_TypePrettyName(ty);
1693 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1694 }
1695 #endif
1696 }
1697 Py_XDECREF(next);
1698 PyObject_DEL(v);
1699 }
1700
1701 SWIGRUNTIME PyObject*
1702 SwigPyObject_append(PyObject* v, PyObject* next)
1703 {
1704 SwigPyObject *sobj = (SwigPyObject *) v;
1705 #ifndef METH_O
1706 PyObject *tmp = 0;
1707 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1708 next = tmp;
1709 #endif
1710 if (!SwigPyObject_Check(next)) {
1711 return NULL;
1712 }
1713 sobj->next = next;
1714 Py_INCREF(next);
1715 return SWIG_Py_Void();
1716 }
1717
1718 SWIGRUNTIME PyObject*
1719 #ifdef METH_NOARGS
1720 SwigPyObject_next(PyObject* v)
1721 #else
1722 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1723 #endif
1724 {
1725 SwigPyObject *sobj = (SwigPyObject *) v;
1726 if (sobj->next) {
1727 Py_INCREF(sobj->next);
1728 return sobj->next;
1729 } else {
1730 return SWIG_Py_Void();
1731 }
1732 }
1733
1734 SWIGINTERN PyObject*
1735 #ifdef METH_NOARGS
1736 SwigPyObject_disown(PyObject *v)
1737 #else
1738 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1739 #endif
1740 {
1741 SwigPyObject *sobj = (SwigPyObject *)v;
1742 sobj->own = 0;
1743 return SWIG_Py_Void();
1744 }
1745
1746 SWIGINTERN PyObject*
1747 #ifdef METH_NOARGS
1748 SwigPyObject_acquire(PyObject *v)
1749 #else
1750 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1751 #endif
1752 {
1753 SwigPyObject *sobj = (SwigPyObject *)v;
1754 sobj->own = SWIG_POINTER_OWN;
1755 return SWIG_Py_Void();
1756 }
1757
1758 SWIGINTERN PyObject*
1759 SwigPyObject_own(PyObject *v, PyObject *args)
1760 {
1761 PyObject *val = 0;
1762 #if (PY_VERSION_HEX < 0x02020000)
1763 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1764 #elif (PY_VERSION_HEX < 0x02050000)
1765 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1766 #else
1767 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1768 #endif
1769 {
1770 return NULL;
1771 }
1772 else
1773 {
1774 SwigPyObject *sobj = (SwigPyObject *)v;
1775 PyObject *obj = PyBool_FromLong(sobj->own);
1776 if (val) {
1777 #ifdef METH_NOARGS
1778 if (PyObject_IsTrue(val)) {
1779 SwigPyObject_acquire(v);
1780 } else {
1781 SwigPyObject_disown(v);
1782 }
1783 #else
1784 if (PyObject_IsTrue(val)) {
1785 SwigPyObject_acquire(v,args);
1786 } else {
1787 SwigPyObject_disown(v,args);
1788 }
1789 #endif
1790 }
1791 return obj;
1792 }
1793 }
1794
1795 #ifdef METH_O
1796 static PyMethodDef
1797 swigobject_methods[] = {
1798 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1799 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1800 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1801 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
1802 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1803 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
1804 {0, 0, 0, 0}
1805 };
1806 #else
1807 static PyMethodDef
1808 swigobject_methods[] = {
1809 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1810 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1811 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1812 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1813 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1814 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
1815 {0, 0, 0, 0}
1816 };
1817 #endif
1818
1819 #if PY_VERSION_HEX < 0x02020000
1820 SWIGINTERN PyObject *
1821 SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1822 {
1823 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1824 }
1825 #endif
1826
1827 SWIGRUNTIME PyTypeObject*
1828 SwigPyObject_TypeOnce(void) {
1829 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1830
1831 static PyNumberMethods SwigPyObject_as_number = {
1832 (binaryfunc)0, /*nb_add*/
1833 (binaryfunc)0, /*nb_subtract*/
1834 (binaryfunc)0, /*nb_multiply*/
1835 /* nb_divide removed in Python 3 */
1836 #if PY_VERSION_HEX < 0x03000000
1837 (binaryfunc)0, /*nb_divide*/
1838 #endif
1839 (binaryfunc)0, /*nb_remainder*/
1840 (binaryfunc)0, /*nb_divmod*/
1841 (ternaryfunc)0,/*nb_power*/
1842 (unaryfunc)0, /*nb_negative*/
1843 (unaryfunc)0, /*nb_positive*/
1844 (unaryfunc)0, /*nb_absolute*/
1845 (inquiry)0, /*nb_nonzero*/
1846 0, /*nb_invert*/
1847 0, /*nb_lshift*/
1848 0, /*nb_rshift*/
1849 0, /*nb_and*/
1850 0, /*nb_xor*/
1851 0, /*nb_or*/
1852 #if PY_VERSION_HEX < 0x03000000
1853 0, /*nb_coerce*/
1854 #endif
1855 (unaryfunc)SwigPyObject_long, /*nb_int*/
1856 #if PY_VERSION_HEX < 0x03000000
1857 (unaryfunc)SwigPyObject_long, /*nb_long*/
1858 #else
1859 0, /*nb_reserved*/
1860 #endif
1861 (unaryfunc)0, /*nb_float*/
1862 #if PY_VERSION_HEX < 0x03000000
1863 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1864 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1865 #endif
1866 #if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1867 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1868 #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
1869 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1870 #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
1871 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1872 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
1873 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1874 #endif
1875 };
1876
1877 static PyTypeObject swigpyobject_type;
1878 static int type_init = 0;
1879 if (!type_init) {
1880 const PyTypeObject tmp = {
1881 /* PyObject header changed in Python 3 */
1882 #if PY_VERSION_HEX >= 0x03000000
1883 PyVarObject_HEAD_INIT(NULL, 0)
1884 #else
1885 PyObject_HEAD_INIT(NULL)
1886 0, /* ob_size */
1887 #endif
1888 (char *)"SwigPyObject", /* tp_name */
1889 sizeof(SwigPyObject), /* tp_basicsize */
1890 0, /* tp_itemsize */
1891 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1892 (printfunc)SwigPyObject_print, /* tp_print */
1893 #if PY_VERSION_HEX < 0x02020000
1894 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1895 #else
1896 (getattrfunc)0, /* tp_getattr */
1897 #endif
1898 (setattrfunc)0, /* tp_setattr */
1899 #if PY_VERSION_HEX >= 0x03000000
1900 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1901 #else
1902 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1903 #endif
1904 (reprfunc)SwigPyObject_repr, /* tp_repr */
1905 &SwigPyObject_as_number, /* tp_as_number */
1906 0, /* tp_as_sequence */
1907 0, /* tp_as_mapping */
1908 (hashfunc)0, /* tp_hash */
1909 (ternaryfunc)0, /* tp_call */
1910 (reprfunc)SwigPyObject_str, /* tp_str */
1911 PyObject_GenericGetAttr, /* tp_getattro */
1912 0, /* tp_setattro */
1913 0, /* tp_as_buffer */
1914 Py_TPFLAGS_DEFAULT, /* tp_flags */
1915 swigobject_doc, /* tp_doc */
1916 0, /* tp_traverse */
1917 0, /* tp_clear */
1918 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1919 0, /* tp_weaklistoffset */
1920 #if PY_VERSION_HEX >= 0x02020000
1921 0, /* tp_iter */
1922 0, /* tp_iternext */
1923 swigobject_methods, /* tp_methods */
1924 0, /* tp_members */
1925 0, /* tp_getset */
1926 0, /* tp_base */
1927 0, /* tp_dict */
1928 0, /* tp_descr_get */
1929 0, /* tp_descr_set */
1930 0, /* tp_dictoffset */
1931 0, /* tp_init */
1932 0, /* tp_alloc */
1933 0, /* tp_new */
1934 0, /* tp_free */
1935 0, /* tp_is_gc */
1936 0, /* tp_bases */
1937 0, /* tp_mro */
1938 0, /* tp_cache */
1939 0, /* tp_subclasses */
1940 0, /* tp_weaklist */
1941 #endif
1942 #if PY_VERSION_HEX >= 0x02030000
1943 0, /* tp_del */
1944 #endif
1945 #if PY_VERSION_HEX >= 0x02060000
1946 0, /* tp_version */
1947 #endif
1948 #ifdef COUNT_ALLOCS
1949 0,0,0,0 /* tp_alloc -> tp_next */
1950 #endif
1951 };
1952 swigpyobject_type = tmp;
1953 type_init = 1;
1954 #if PY_VERSION_HEX < 0x02020000
1955 swigpyobject_type.ob_type = &PyType_Type;
1956 #else
1957 if (PyType_Ready(&swigpyobject_type) < 0)
1958 return NULL;
1959 #endif
1960 }
1961 return &swigpyobject_type;
1962 }
1963
1964 SWIGRUNTIME PyObject *
1965 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1966 {
1967 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1968 if (sobj) {
1969 sobj->ptr = ptr;
1970 sobj->ty = ty;
1971 sobj->own = own;
1972 sobj->next = 0;
1973 }
1974 return (PyObject *)sobj;
1975 }
1976
1977 /* -----------------------------------------------------------------------------
1978 * Implements a simple Swig Packed type, and use it instead of string
1979 * ----------------------------------------------------------------------------- */
1980
1981 typedef struct {
1982 PyObject_HEAD
1983 void *pack;
1984 swig_type_info *ty;
1985 size_t size;
1986 } SwigPyPacked;
1987
1988 SWIGRUNTIME int
1989 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1990 {
1991 char result[SWIG_BUFFER_SIZE];
1992 fputs("<Swig Packed ", fp);
1993 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1994 fputs("at ", fp);
1995 fputs(result, fp);
1996 }
1997 fputs(v->ty->name,fp);
1998 fputs(">", fp);
1999 return 0;
2000 }
2001
2002 SWIGRUNTIME PyObject *
2003 SwigPyPacked_repr(SwigPyPacked *v)
2004 {
2005 char result[SWIG_BUFFER_SIZE];
2006 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2007 return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2008 } else {
2009 return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2010 }
2011 }
2012
2013 SWIGRUNTIME PyObject *
2014 SwigPyPacked_str(SwigPyPacked *v)
2015 {
2016 char result[SWIG_BUFFER_SIZE];
2017 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2018 return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2019 } else {
2020 return SWIG_Python_str_FromChar(v->ty->name);
2021 }
2022 }
2023
2024 SWIGRUNTIME int
2025 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2026 {
2027 size_t i = v->size;
2028 size_t j = w->size;
2029 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2030 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2031 }
2032
2033 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2034
2035 SWIGRUNTIME PyTypeObject*
2036 SwigPyPacked_type(void) {
2037 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2038 return type;
2039 }
2040
2041 SWIGRUNTIMEINLINE int
2042 SwigPyPacked_Check(PyObject *op) {
2043 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2044 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2045 }
2046
2047 SWIGRUNTIME void
2048 SwigPyPacked_dealloc(PyObject *v)
2049 {
2050 if (SwigPyPacked_Check(v)) {
2051 SwigPyPacked *sobj = (SwigPyPacked *) v;
2052 free(sobj->pack);
2053 }
2054 PyObject_DEL(v);
2055 }
2056
2057 SWIGRUNTIME PyTypeObject*
2058 SwigPyPacked_TypeOnce(void) {
2059 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2060 static PyTypeObject swigpypacked_type;
2061 static int type_init = 0;
2062 if (!type_init) {
2063 const PyTypeObject tmp = {
2064 /* PyObject header changed in Python 3 */
2065 #if PY_VERSION_HEX>=0x03000000
2066 PyVarObject_HEAD_INIT(NULL, 0)
2067 #else
2068 PyObject_HEAD_INIT(NULL)
2069 0, /* ob_size */
2070 #endif
2071 (char *)"SwigPyPacked", /* tp_name */
2072 sizeof(SwigPyPacked), /* tp_basicsize */
2073 0, /* tp_itemsize */
2074 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2075 (printfunc)SwigPyPacked_print, /* tp_print */
2076 (getattrfunc)0, /* tp_getattr */
2077 (setattrfunc)0, /* tp_setattr */
2078 #if PY_VERSION_HEX>=0x03000000
2079 0, /* tp_reserved in 3.0.1 */
2080 #else
2081 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2082 #endif
2083 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2084 0, /* tp_as_number */
2085 0, /* tp_as_sequence */
2086 0, /* tp_as_mapping */
2087 (hashfunc)0, /* tp_hash */
2088 (ternaryfunc)0, /* tp_call */
2089 (reprfunc)SwigPyPacked_str, /* tp_str */
2090 PyObject_GenericGetAttr, /* tp_getattro */
2091 0, /* tp_setattro */
2092 0, /* tp_as_buffer */
2093 Py_TPFLAGS_DEFAULT, /* tp_flags */
2094 swigpacked_doc, /* tp_doc */
2095 0, /* tp_traverse */
2096 0, /* tp_clear */
2097 0, /* tp_richcompare */
2098 0, /* tp_weaklistoffset */
2099 #if PY_VERSION_HEX >= 0x02020000
2100 0, /* tp_iter */
2101 0, /* tp_iternext */
2102 0, /* tp_methods */
2103 0, /* tp_members */
2104 0, /* tp_getset */
2105 0, /* tp_base */
2106 0, /* tp_dict */
2107 0, /* tp_descr_get */
2108 0, /* tp_descr_set */
2109 0, /* tp_dictoffset */
2110 0, /* tp_init */
2111 0, /* tp_alloc */
2112 0, /* tp_new */
2113 0, /* tp_free */
2114 0, /* tp_is_gc */
2115 0, /* tp_bases */
2116 0, /* tp_mro */
2117 0, /* tp_cache */
2118 0, /* tp_subclasses */
2119 0, /* tp_weaklist */
2120 #endif
2121 #if PY_VERSION_HEX >= 0x02030000
2122 0, /* tp_del */
2123 #endif
2124 #if PY_VERSION_HEX >= 0x02060000
2125 0, /* tp_version */
2126 #endif
2127 #ifdef COUNT_ALLOCS
2128 0,0,0,0 /* tp_alloc -> tp_next */
2129 #endif
2130 };
2131 swigpypacked_type = tmp;
2132 type_init = 1;
2133 #if PY_VERSION_HEX < 0x02020000
2134 swigpypacked_type.ob_type = &PyType_Type;
2135 #else
2136 if (PyType_Ready(&swigpypacked_type) < 0)
2137 return NULL;
2138 #endif
2139 }
2140 return &swigpypacked_type;
2141 }
2142
2143 SWIGRUNTIME PyObject *
2144 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2145 {
2146 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
2147 if (sobj) {
2148 void *pack = malloc(size);
2149 if (pack) {
2150 memcpy(pack, ptr, size);
2151 sobj->pack = pack;
2152 sobj->ty = ty;
2153 sobj->size = size;
2154 } else {
2155 PyObject_DEL((PyObject *) sobj);
2156 sobj = 0;
2157 }
2158 }
2159 return (PyObject *) sobj;
2160 }
2161
2162 SWIGRUNTIME swig_type_info *
2163 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2164 {
2165 if (SwigPyPacked_Check(obj)) {
2166 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2167 if (sobj->size != size) return 0;
2168 memcpy(ptr, sobj->pack, size);
2169 return sobj->ty;
2170 } else {
2171 return 0;
2172 }
2173 }
2174
2175 /* -----------------------------------------------------------------------------
2176 * pointers/data manipulation
2177 * ----------------------------------------------------------------------------- */
2178
2179 SWIGRUNTIMEINLINE PyObject *
2180 _SWIG_This(void)
2181 {
2182 return SWIG_Python_str_FromChar("this");
2183 }
2184
2185 static PyObject *swig_this = NULL;
2186
2187 SWIGRUNTIME PyObject *
2188 SWIG_This(void)
2189 {
2190 if (swig_this == NULL)
2191 swig_this = _SWIG_This();
2192 return swig_this;
2193 }
2194
2195 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2196
2197 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2198 #if PY_VERSION_HEX>=0x03000000
2199 #define SWIG_PYTHON_SLOW_GETSET_THIS
2200 #endif
2201
2202 SWIGRUNTIME SwigPyObject *
2203 SWIG_Python_GetSwigThis(PyObject *pyobj)
2204 {
2205 PyObject *obj;
2206
2207 if (SwigPyObject_Check(pyobj))
2208 return (SwigPyObject *) pyobj;
2209
2210 #ifdef SWIGPYTHON_BUILTIN
2211 (void)obj;
2212 # ifdef PyWeakref_CheckProxy
2213 if (PyWeakref_CheckProxy(pyobj)) {
2214 pyobj = PyWeakref_GET_OBJECT(pyobj);
2215 if (pyobj && SwigPyObject_Check(pyobj))
2216 return (SwigPyObject*) pyobj;
2217 }
2218 # endif
2219 return NULL;
2220 #else
2221
2222 obj = 0;
2223
2224 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2225 if (PyInstance_Check(pyobj)) {
2226 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2227 } else {
2228 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2229 if (dictptr != NULL) {
2230 PyObject *dict = *dictptr;
2231 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2232 } else {
2233 #ifdef PyWeakref_CheckProxy
2234 if (PyWeakref_CheckProxy(pyobj)) {
2235 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2236 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2237 }
2238 #endif
2239 obj = PyObject_GetAttr(pyobj,SWIG_This());
2240 if (obj) {
2241 Py_DECREF(obj);
2242 } else {
2243 if (PyErr_Occurred()) PyErr_Clear();
2244 return 0;
2245 }
2246 }
2247 }
2248 #else
2249 obj = PyObject_GetAttr(pyobj,SWIG_This());
2250 if (obj) {
2251 Py_DECREF(obj);
2252 } else {
2253 if (PyErr_Occurred()) PyErr_Clear();
2254 return 0;
2255 }
2256 #endif
2257 if (obj && !SwigPyObject_Check(obj)) {
2258 /* a PyObject is called 'this', try to get the 'real this'
2259 SwigPyObject from it */
2260 return SWIG_Python_GetSwigThis(obj);
2261 }
2262 return (SwigPyObject *)obj;
2263 #endif
2264 }
2265
2266 /* Acquire a pointer value */
2267
2268 SWIGRUNTIME int
2269 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2270 if (own == SWIG_POINTER_OWN) {
2271 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2272 if (sobj) {
2273 int oldown = sobj->own;
2274 sobj->own = own;
2275 return oldown;
2276 }
2277 }
2278 return 0;
2279 }
2280
2281 /* Convert a pointer value */
2282
2283 SWIGRUNTIME int
2284 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2285 int res;
2286 SwigPyObject *sobj;
2287
2288 if (!obj)
2289 return SWIG_ERROR;
2290 if (obj == Py_None) {
2291 if (ptr)
2292 *ptr = 0;
2293 return SWIG_OK;
2294 }
2295
2296 res = SWIG_ERROR;
2297
2298 sobj = SWIG_Python_GetSwigThis(obj);
2299 if (own)
2300 *own = 0;
2301 while (sobj) {
2302 void *vptr = sobj->ptr;
2303 if (ty) {
2304 swig_type_info *to = sobj->ty;
2305 if (to == ty) {
2306 /* no type cast needed */
2307 if (ptr) *ptr = vptr;
2308 break;
2309 } else {
2310 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2311 if (!tc) {
2312 sobj = (SwigPyObject *)sobj->next;
2313 } else {
2314 if (ptr) {
2315 int newmemory = 0;
2316 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2317 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2318 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2319 if (own)
2320 *own = *own | SWIG_CAST_NEW_MEMORY;
2321 }
2322 }
2323 break;
2324 }
2325 }
2326 } else {
2327 if (ptr) *ptr = vptr;
2328 break;
2329 }
2330 }
2331 if (sobj) {
2332 if (own)
2333 *own = *own | sobj->own;
2334 if (flags & SWIG_POINTER_DISOWN) {
2335 sobj->own = 0;
2336 }
2337 res = SWIG_OK;
2338 } else {
2339 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2340 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2341 if (data && !data->implicitconv) {
2342 PyObject *klass = data->klass;
2343 if (klass) {
2344 PyObject *impconv;
2345 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2346 impconv = SWIG_Python_CallFunctor(klass, obj);
2347 data->implicitconv = 0;
2348 if (PyErr_Occurred()) {
2349 PyErr_Clear();
2350 impconv = 0;
2351 }
2352 if (impconv) {
2353 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2354 if (iobj) {
2355 void *vptr;
2356 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2357 if (SWIG_IsOK(res)) {
2358 if (ptr) {
2359 *ptr = vptr;
2360 /* transfer the ownership to 'ptr' */
2361 iobj->own = 0;
2362 res = SWIG_AddCast(res);
2363 res = SWIG_AddNewMask(res);
2364 } else {
2365 res = SWIG_AddCast(res);
2366 }
2367 }
2368 }
2369 Py_DECREF(impconv);
2370 }
2371 }
2372 }
2373 }
2374 }
2375 return res;
2376 }
2377
2378 /* Convert a function ptr value */
2379
2380 SWIGRUNTIME int
2381 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2382 if (!PyCFunction_Check(obj)) {
2383 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2384 } else {
2385 void *vptr = 0;
2386
2387 /* here we get the method pointer for callbacks */
2388 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2389 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2390 if (desc)
2391 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2392 if (!desc)
2393 return SWIG_ERROR;
2394 if (ty) {
2395 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2396 if (tc) {
2397 int newmemory = 0;
2398 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2399 assert(!newmemory); /* newmemory handling not yet implemented */
2400 } else {
2401 return SWIG_ERROR;
2402 }
2403 } else {
2404 *ptr = vptr;
2405 }
2406 return SWIG_OK;
2407 }
2408 }
2409
2410 /* Convert a packed value value */
2411
2412 SWIGRUNTIME int
2413 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2414 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2415 if (!to) return SWIG_ERROR;
2416 if (ty) {
2417 if (to != ty) {
2418 /* check type cast? */
2419 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2420 if (!tc) return SWIG_ERROR;
2421 }
2422 }
2423 return SWIG_OK;
2424 }
2425
2426 /* -----------------------------------------------------------------------------
2427 * Create a new pointer object
2428 * ----------------------------------------------------------------------------- */
2429
2430 /*
2431 Create a new instance object, without calling __init__, and set the
2432 'this' attribute.
2433 */
2434
2435 SWIGRUNTIME PyObject*
2436 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2437 {
2438 #if (PY_VERSION_HEX >= 0x02020000)
2439 PyObject *inst = 0;
2440 PyObject *newraw = data->newraw;
2441 if (newraw) {
2442 inst = PyObject_Call(newraw, data->newargs, NULL);
2443 if (inst) {
2444 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2445 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2446 if (dictptr != NULL) {
2447 PyObject *dict = *dictptr;
2448 if (dict == NULL) {
2449 dict = PyDict_New();
2450 *dictptr = dict;
2451 PyDict_SetItem(dict, SWIG_This(), swig_this);
2452 }
2453 }
2454 #else
2455 PyObject *key = SWIG_This();
2456 PyObject_SetAttr(inst, key, swig_this);
2457 #endif
2458 }
2459 } else {
2460 #if PY_VERSION_HEX >= 0x03000000
2461 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2462 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2463 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2464 #else
2465 PyObject *dict = PyDict_New();
2466 PyDict_SetItem(dict, SWIG_This(), swig_this);
2467 inst = PyInstance_NewRaw(data->newargs, dict);
2468 Py_DECREF(dict);
2469 #endif
2470 }
2471 return inst;
2472 #else
2473 #if (PY_VERSION_HEX >= 0x02010000)
2474 PyObject *inst;
2475 PyObject *dict = PyDict_New();
2476 PyDict_SetItem(dict, SWIG_This(), swig_this);
2477 inst = PyInstance_NewRaw(data->newargs, dict);
2478 Py_DECREF(dict);
2479 return (PyObject *) inst;
2480 #else
2481 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2482 if (inst == NULL) {
2483 return NULL;
2484 }
2485 inst->in_class = (PyClassObject *)data->newargs;
2486 Py_INCREF(inst->in_class);
2487 inst->in_dict = PyDict_New();
2488 if (inst->in_dict == NULL) {
2489 Py_DECREF(inst);
2490 return NULL;
2491 }
2492 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2493 inst->in_weakreflist = NULL;
2494 #endif
2495 #ifdef Py_TPFLAGS_GC
2496 PyObject_GC_Init(inst);
2497 #endif
2498 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2499 return (PyObject *) inst;
2500 #endif
2501 #endif
2502 }
2503
2504 SWIGRUNTIME void
2505 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2506 {
2507 PyObject *dict;
2508 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2509 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2510 if (dictptr != NULL) {
2511 dict = *dictptr;
2512 if (dict == NULL) {
2513 dict = PyDict_New();
2514 *dictptr = dict;
2515 }
2516 PyDict_SetItem(dict, SWIG_This(), swig_this);
2517 return;
2518 }
2519 #endif
2520 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2521 PyDict_SetItem(dict, SWIG_This(), swig_this);
2522 Py_DECREF(dict);
2523 }
2524
2525
2526 SWIGINTERN PyObject *
2527 SWIG_Python_InitShadowInstance(PyObject *args) {
2528 PyObject *obj[2];
2529 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2530 return NULL;
2531 } else {
2532 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2533 if (sthis) {
2534 SwigPyObject_append((PyObject*) sthis, obj[1]);
2535 } else {
2536 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2537 }
2538 return SWIG_Py_Void();
2539 }
2540 }
2541
2542 /* Create a new pointer object */
2543
2544 SWIGRUNTIME PyObject *
2545 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2546 SwigPyClientData *clientdata;
2547 PyObject * robj;
2548 int own;
2549
2550 if (!ptr)
2551 return SWIG_Py_Void();
2552
2553 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2554 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2555 if (clientdata && clientdata->pytype) {
2556 SwigPyObject *newobj;
2557 if (flags & SWIG_BUILTIN_TP_INIT) {
2558 newobj = (SwigPyObject*) self;
2559 if (newobj->ptr) {
2560 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2561 while (newobj->next)
2562 newobj = (SwigPyObject *) newobj->next;
2563 newobj->next = next_self;
2564 newobj = (SwigPyObject *)next_self;
2565 }
2566 } else {
2567 newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2568 }
2569 if (newobj) {
2570 newobj->ptr = ptr;
2571 newobj->ty = type;
2572 newobj->own = own;
2573 newobj->next = 0;
2574 #ifdef SWIGPYTHON_BUILTIN
2575 newobj->dict = 0;
2576 #endif
2577 return (PyObject*) newobj;
2578 }
2579 return SWIG_Py_Void();
2580 }
2581
2582 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2583
2584 robj = SwigPyObject_New(ptr, type, own);
2585 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2586 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2587 if (inst) {
2588 Py_DECREF(robj);
2589 robj = inst;
2590 }
2591 }
2592 return robj;
2593 }
2594
2595 /* Create a new packed object */
2596
2597 SWIGRUNTIMEINLINE PyObject *
2598 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2599 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2600 }
2601
2602 /* -----------------------------------------------------------------------------*
2603 * Get type list
2604 * -----------------------------------------------------------------------------*/
2605
2606 #ifdef SWIG_LINK_RUNTIME
2607 void *SWIG_ReturnGlobalTypeList(void *);
2608 #endif
2609
2610 SWIGRUNTIME swig_module_info *
2611 SWIG_Python_GetModule(void) {
2612 static void *type_pointer = (void *)0;
2613 /* first check if module already created */
2614 if (!type_pointer) {
2615 #ifdef SWIG_LINK_RUNTIME
2616 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2617 #else
2618 # ifdef SWIGPY_USE_CAPSULE
2619 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2620 # else
2621 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2622 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2623 # endif
2624 if (PyErr_Occurred()) {
2625 PyErr_Clear();
2626 type_pointer = (void *)0;
2627 }
2628 #endif
2629 }
2630 return (swig_module_info *) type_pointer;
2631 }
2632
2633 #if PY_MAJOR_VERSION < 2
2634 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2635 is copied out of Python/modsupport.c in python version 2.3.4 */
2636 SWIGINTERN int
2637 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2638 {
2639 PyObject *dict;
2640 if (!PyModule_Check(m)) {
2641 PyErr_SetString(PyExc_TypeError,
2642 "PyModule_AddObject() needs module as first arg");
2643 return SWIG_ERROR;
2644 }
2645 if (!o) {
2646 PyErr_SetString(PyExc_TypeError,
2647 "PyModule_AddObject() needs non-NULL value");
2648 return SWIG_ERROR;
2649 }
2650
2651 dict = PyModule_GetDict(m);
2652 if (dict == NULL) {
2653 /* Internal error -- modules must have a dict! */
2654 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2655 PyModule_GetName(m));
2656 return SWIG_ERROR;
2657 }
2658 if (PyDict_SetItemString(dict, name, o))
2659 return SWIG_ERROR;
2660 Py_DECREF(o);
2661 return SWIG_OK;
2662 }
2663 #endif
2664
2665 SWIGRUNTIME void
2666 #ifdef SWIGPY_USE_CAPSULE
2667 SWIG_Python_DestroyModule(PyObject *obj)
2668 #else
2669 SWIG_Python_DestroyModule(void *vptr)
2670 #endif
2671 {
2672 #ifdef SWIGPY_USE_CAPSULE
2673 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2674 #else
2675 swig_module_info *swig_module = (swig_module_info *) vptr;
2676 #endif
2677 swig_type_info **types = swig_module->types;
2678 size_t i;
2679 for (i =0; i < swig_module->size; ++i) {
2680 swig_type_info *ty = types[i];
2681 if (ty->owndata) {
2682 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2683 if (data) SwigPyClientData_Del(data);
2684 }
2685 }
2686 Py_DECREF(SWIG_This());
2687 swig_this = NULL;
2688 }
2689
2690 SWIGRUNTIME void
2691 SWIG_Python_SetModule(swig_module_info *swig_module) {
2692 #if PY_VERSION_HEX >= 0x03000000
2693 /* Add a dummy module object into sys.modules */
2694 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
2695 #else
2696 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2697 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2698 #endif
2699 #ifdef SWIGPY_USE_CAPSULE
2700 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2701 if (pointer && module) {
2702 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2703 } else {
2704 Py_XDECREF(pointer);
2705 }
2706 #else
2707 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2708 if (pointer && module) {
2709 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2710 } else {
2711 Py_XDECREF(pointer);
2712 }
2713 #endif
2714 }
2715
2716 /* The python cached type query */
2717 SWIGRUNTIME PyObject *
2718 SWIG_Python_TypeCache(void) {
2719 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2720 return cache;
2721 }
2722
2723 SWIGRUNTIME swig_type_info *
2724 SWIG_Python_TypeQuery(const char *type)
2725 {
2726 PyObject *cache = SWIG_Python_TypeCache();
2727 PyObject *key = SWIG_Python_str_FromChar(type);
2728 PyObject *obj = PyDict_GetItem(cache, key);
2729 swig_type_info *descriptor;
2730 if (obj) {
2731 #ifdef SWIGPY_USE_CAPSULE
2732 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2733 #else
2734 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2735 #endif
2736 } else {
2737 swig_module_info *swig_module = SWIG_Python_GetModule();
2738 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2739 if (descriptor) {
2740 #ifdef SWIGPY_USE_CAPSULE
2741 obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2742 #else
2743 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2744 #endif
2745 PyDict_SetItem(cache, key, obj);
2746 Py_DECREF(obj);
2747 }
2748 }
2749 Py_DECREF(key);
2750 return descriptor;
2751 }
2752
2753 /*
2754 For backward compatibility only
2755 */
2756 #define SWIG_POINTER_EXCEPTION 0
2757 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2758 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2759
2760 SWIGRUNTIME int
2761 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2762 {
2763 if (PyErr_Occurred()) {
2764 PyObject *type = 0;
2765 PyObject *value = 0;
2766 PyObject *traceback = 0;
2767 PyErr_Fetch(&type, &value, &traceback);
2768 if (value) {
2769 char *tmp;
2770 PyObject *old_str = PyObject_Str(value);
2771 Py_XINCREF(type);
2772 PyErr_Clear();
2773 if (infront) {
2774 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2775 } else {
2776 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2777 }
2778 SWIG_Python_str_DelForPy3(tmp);
2779 Py_DECREF(old_str);
2780 }
2781 return 1;
2782 } else {
2783 return 0;
2784 }
2785 }
2786
2787 SWIGRUNTIME int
2788 SWIG_Python_ArgFail(int argnum)
2789 {
2790 if (PyErr_Occurred()) {
2791 /* add information about failing argument */
2792 char mesg[256];
2793 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2794 return SWIG_Python_AddErrMesg(mesg, 1);
2795 } else {
2796 return 0;
2797 }
2798 }
2799
2800 SWIGRUNTIMEINLINE const char *
2801 SwigPyObject_GetDesc(PyObject *self)
2802 {
2803 SwigPyObject *v = (SwigPyObject *)self;
2804 swig_type_info *ty = v ? v->ty : 0;
2805 return ty ? ty->str : "";
2806 }
2807
2808 SWIGRUNTIME void
2809 SWIG_Python_TypeError(const char *type, PyObject *obj)
2810 {
2811 if (type) {
2812 #if defined(SWIG_COBJECT_TYPES)
2813 if (obj && SwigPyObject_Check(obj)) {
2814 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2815 if (otype) {
2816 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2817 type, otype);
2818 return;
2819 }
2820 } else
2821 #endif
2822 {
2823 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2824 if (otype) {
2825 PyObject *str = PyObject_Str(obj);
2826 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2827 if (cstr) {
2828 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2829 type, otype, cstr);
2830 SWIG_Python_str_DelForPy3(cstr);
2831 } else {
2832 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2833 type, otype);
2834 }
2835 Py_XDECREF(str);
2836 return;
2837 }
2838 }
2839 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2840 } else {
2841 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2842 }
2843 }
2844
2845
2846 /* Convert a pointer value, signal an exception on a type mismatch */
2847 SWIGRUNTIME void *
2848 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2849 void *result;
2850 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2851 PyErr_Clear();
2852 #if SWIG_POINTER_EXCEPTION
2853 if (flags) {
2854 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2855 SWIG_Python_ArgFail(argnum);
2856 }
2857 #endif
2858 }
2859 return result;
2860 }
2861
2862 #ifdef SWIGPYTHON_BUILTIN
2863 SWIGRUNTIME int
2864 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2865 PyTypeObject *tp = obj->ob_type;
2866 PyObject *descr;
2867 PyObject *encoded_name;
2868 descrsetfunc f;
2869 int res;
2870
2871 # ifdef Py_USING_UNICODE
2872 if (PyString_Check(name)) {
2873 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2874 if (!name)
2875 return -1;
2876 } else if (!PyUnicode_Check(name))
2877 # else
2878 if (!PyString_Check(name))
2879 # endif
2880 {
2881 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2882 return -1;
2883 } else {
2884 Py_INCREF(name);
2885 }
2886
2887 if (!tp->tp_dict) {
2888 if (PyType_Ready(tp) < 0)
2889 goto done;
2890 }
2891
2892 res = -1;
2893 descr = _PyType_Lookup(tp, name);
2894 f = NULL;
2895 if (descr != NULL)
2896 f = descr->ob_type->tp_descr_set;
2897 if (!f) {
2898 if (PyString_Check(name)) {
2899 encoded_name = name;
2900 Py_INCREF(name);
2901 } else {
2902 encoded_name = PyUnicode_AsUTF8String(name);
2903 }
2904 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2905 Py_DECREF(encoded_name);
2906 } else {
2907 res = f(descr, obj, value);
2908 }
2909
2910 done:
2911 Py_DECREF(name);
2912 return res;
2913 }
2914 #endif
2915
2916
2917 #ifdef __cplusplus
2918 }
2919 #endif
2920
2921
2922
2923 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2924
2925 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2926
2927
2928
2929 /* -------- TYPES TABLE (BEGIN) -------- */
2930
2931 #define SWIGTYPE_p_char swig_types[0]
2932 #define SWIGTYPE_p_librdf_digest_s swig_types[1]
2933 #define SWIGTYPE_p_librdf_hash_s swig_types[2]
2934 #define SWIGTYPE_p_librdf_iterator_s swig_types[3]
2935 #define SWIGTYPE_p_librdf_log_func swig_types[4]
2936 #define SWIGTYPE_p_librdf_log_message swig_types[5]
2937 #define SWIGTYPE_p_librdf_model_s swig_types[6]
2938 #define SWIGTYPE_p_librdf_node_s swig_types[7]
2939 #define SWIGTYPE_p_librdf_parser_s swig_types[8]
2940 #define SWIGTYPE_p_librdf_query swig_types[9]
2941 #define SWIGTYPE_p_librdf_query_results swig_types[10]
2942 #define SWIGTYPE_p_librdf_serializer_s swig_types[11]
2943 #define SWIGTYPE_p_librdf_statement_s swig_types[12]
2944 #define SWIGTYPE_p_librdf_storage_s swig_types[13]
2945 #define SWIGTYPE_p_librdf_stream_s swig_types[14]
2946 #define SWIGTYPE_p_librdf_uri_s swig_types[15]
2947 #define SWIGTYPE_p_librdf_world_s swig_types[16]
2948 #define SWIGTYPE_p_p_char swig_types[17]
2949 #define SWIGTYPE_p_raptor_locator swig_types[18]
2950 static swig_type_info *swig_types[20];
2951 static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
2952 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2953 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2954
2955 /* -------- TYPES TABLE (END) -------- */
2956
2957 #if (PY_VERSION_HEX <= 0x02000000)
2958 # if !defined(SWIG_PYTHON_CLASSIC)
2959 # error "This python version requires swig to be run with the '-classic' option"
2960 # endif
2961 #endif
2962
2963 /*-----------------------------------------------
2964 @(target):= _Redland.so
2965 ------------------------------------------------*/
2966 #if PY_VERSION_HEX >= 0x03000000
2967 # define SWIG_init PyInit__Redland
2968
2969 #else
2970 # define SWIG_init init_Redland
2971
2972 #endif
2973 #define SWIG_name "_Redland"
2974
2975 #define SWIGVERSION 0x020007
2976 #define SWIG_VERSION SWIGVERSION
2977
2978
2979 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
2980 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
2981
2982
2983
2984 /* compile-time include (inside a % ... % block) */
2985 #ifdef REDLAND_PRE_I
2986 #include <redland-pre.i>
2987 #endif
2988
2989 #include <redland.h>
2990
2991 /*
2992 * Thanks to the patch in this Debian bug for the solution
2993 * to the crash inside vsnprintf on some architectures.
2994 *
2995 * "reuse of args inside the while(1) loop is in violation of the
2996 * specs and only happens to work by accident on other systems."
2997 *
2998 * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325
2999 */
3000
3001 #ifndef va_copy
3002 #ifdef __va_copy
3003 #define va_copy(dest,src) __va_copy(dest,src)
3004 #else
3005 #define va_copy(dest,src) (dest) = (src)
3006 #endif
3007 #endif
3008
3009 /* compile-time include (inside a % ... % block) */
3010 #ifdef REDLAND_POST_I
3011 #include <redland-post.i>
3012 #endif
3013
3014 /* Internal prototypes */
3015 /* FOR TESTING ERRORS ONLY - NOT PART OF API */
3016 void librdf_internal_test_error(librdf_world *world);
3017 void librdf_internal_test_warning(librdf_world *world);
3018
3019
3020 /* prototypes for internal routines called below - NOT PART OF API */
3021 void librdf_test_error(librdf_world* world, const char* message);
3022 void librdf_test_warning(librdf_world* world, const char* message);
3023
3024 /* FOR TESTING ERRORS ONLY - NOT PART OF API */
3025 void
3026 librdf_internal_test_error(librdf_world *world)
3027 {
3028 librdf_test_error(world, "test error message number 1.");
3029 }
3030
3031 void
3032 librdf_internal_test_warning(librdf_world *world)
3033 {
3034 librdf_test_warning(world, "test warning message number 2.");
3035 }
3036
3037
3038
3039 SWIGINTERN swig_type_info*
3040 SWIG_pchar_descriptor(void)
3041 {
3042 static int init = 0;
3043 static swig_type_info* info = 0;
3044 if (!init) {
3045 info = SWIG_TypeQuery("_p_char");
3046 init = 1;
3047 }
3048 return info;
3049 }
3050
3051
3052 SWIGINTERN int
3053 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3054 {
3055 #if PY_VERSION_HEX>=0x03000000
3056 if (PyUnicode_Check(obj))
3057 #else
3058 if (PyString_Check(obj))
3059 #endif
3060 {
3061 char *cstr; Py_ssize_t len;
3062 #if PY_VERSION_HEX>=0x03000000
3063 if (!alloc && cptr) {
3064 /* We can't allow converting without allocation, since the internal
3065 representation of string in Python 3 is UCS-2/UCS-4 but we require
3066 a UTF-8 representation.
3067 TODO(bhy) More detailed explanation */
3068 return SWIG_RuntimeError;
3069 }
3070 obj = PyUnicode_AsUTF8String(obj);
3071 PyBytes_AsStringAndSize(obj, &cstr, &len);
3072 if(alloc) *alloc = SWIG_NEWOBJ;
3073 #else
3074 PyString_AsStringAndSize(obj, &cstr, &len);
3075 #endif
3076 if (cptr) {
3077 if (alloc) {
3078 /*
3079 In python the user should not be able to modify the inner
3080 string representation. To warranty that, if you define
3081 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3082 buffer is always returned.
3083
3084 The default behavior is just to return the pointer value,
3085 so, be careful.
3086 */
3087 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3088 if (*alloc != SWIG_OLDOBJ)
3089 #else
3090 if (*alloc == SWIG_NEWOBJ)
3091 #endif
3092 {
3093 *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3094 *alloc = SWIG_NEWOBJ;
3095 }
3096 else {
3097 *cptr = cstr;
3098 *alloc = SWIG_OLDOBJ;
3099 }
3100 } else {
3101 #if PY_VERSION_HEX>=0x03000000
3102 assert(0); /* Should never reach here in Python 3 */
3103 #endif
3104 *cptr = SWIG_Python_str_AsChar(obj);
3105 }
3106 }
3107 if (psize) *psize = len + 1;
3108 #if PY_VERSION_HEX>=0x03000000
3109 Py_XDECREF(obj);
3110 #endif
3111 return SWIG_OK;
3112 } else {
3113 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3114 if (pchar_descriptor) {
3115 void* vptr = 0;
3116 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3117 if (cptr) *cptr = (char *) vptr;
3118 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3119 if (alloc) *alloc = SWIG_OLDOBJ;
3120 return SWIG_OK;
3121 }
3122 }
3123 }
3124 return SWIG_TypeError;
3125 }
3126
3127
3128
3129
3130
3131 SWIGINTERN int
3132 SWIG_AsVal_double (PyObject *obj, double *val)
3133 {
3134 int res = SWIG_TypeError;
3135 if (PyFloat_Check(obj)) {
3136 if (val) *val = PyFloat_AsDouble(obj);
3137 return SWIG_OK;
3138 } else if (PyInt_Check(obj)) {
3139 if (val) *val = PyInt_AsLong(obj);
3140 return SWIG_OK;
3141 } else if (PyLong_Check(obj)) {
3142 double v = PyLong_AsDouble(obj);
3143 if (!PyErr_Occurred()) {
3144 if (val) *val = v;
3145 return SWIG_OK;
3146 } else {
3147 PyErr_Clear();
3148 }
3149 }
3150 #ifdef SWIG_PYTHON_CAST_MODE
3151 {
3152 int dispatch = 0;
3153 double d = PyFloat_AsDouble(obj);
3154 if (!PyErr_Occurred()) {
3155 if (val) *val = d;
3156 return SWIG_AddCast(SWIG_OK);
3157 } else {
3158 PyErr_Clear();
3159 }
3160 if (!dispatch) {
3161 long v = PyLong_AsLong(obj);
3162 if (!PyErr_Occurred()) {
3163 if (val) *val = v;
3164 return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3165 } else {
3166 PyErr_Clear();
3167 }
3168 }
3169 }
3170 #endif
3171 return res;
3172 }
3173
3174
3175 #include <float.h>
3176
3177
3178 #include <math.h>
3179
3180
3181 SWIGINTERNINLINE int
3182 SWIG_CanCastAsInteger(double *d, double min, double max) {
3183 double x = *d;
3184 if ((min <= x && x <= max)) {
3185 double fx = floor(x);
3186 double cx = ceil(x);
3187 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3188 if ((errno == EDOM) || (errno == ERANGE)) {
3189 errno = 0;
3190 } else {
3191 double summ, reps, diff;
3192 if (rd < x) {
3193 diff = x - rd;
3194 } else if (rd > x) {
3195 diff = rd - x;
3196 } else {
3197 return 1;
3198 }
3199 summ = rd + x;
3200 reps = diff/summ;
3201 if (reps < 8*DBL_EPSILON) {
3202 *d = rd;
3203 return 1;
3204 }
3205 }
3206 }
3207 return 0;
3208 }
3209
3210
3211 SWIGINTERN int
3212 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3213 {
3214 if (PyInt_Check(obj)) {
3215 long v = PyInt_AsLong(obj);
3216 if (v >= 0) {
3217 if (val) *val = v;
3218 return SWIG_OK;
3219 } else {
3220 return SWIG_OverflowError;
3221 }
3222 } else if (PyLong_Check(obj)) {
3223 unsigned long v = PyLong_AsUnsignedLong(obj);
3224 if (!PyErr_Occurred()) {
3225 if (val) *val = v;
3226 return SWIG_OK;
3227 } else {
3228 PyErr_Clear();
3229 }
3230 }
3231 #ifdef SWIG_PYTHON_CAST_MODE
3232 {
3233 int dispatch = 0;
3234 unsigned long v = PyLong_AsUnsignedLong(obj);
3235 if (!PyErr_Occurred()) {
3236 if (val) *val = v;
3237 return SWIG_AddCast(SWIG_OK);
3238 } else {
3239 PyErr_Clear();
3240 }
3241 if (!dispatch) {
3242 double d;
3243 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3244 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3245 if (val) *val = (unsigned long)(d);
3246 return res;
3247 }
3248 }
3249 }
3250 #endif
3251 return SWIG_TypeError;
3252 }
3253
3254
3255 SWIGINTERNINLINE int
3256 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3257 {
3258 unsigned long v;
3259 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3260 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
3261 return res;
3262 }
3263
3264
3265 SWIGINTERNINLINE PyObject *
3266 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3267 {
3268 if (carray) {
3269 if (size > INT_MAX) {
3270 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3271 return pchar_descriptor ?
3272 SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3273 } else {
3274 #if PY_VERSION_HEX >= 0x03000000
3275 return PyUnicode_FromStringAndSize(carray, (int)(size));
3276 #else
3277 return PyString_FromStringAndSize(carray, (int)(size));
3278 #endif
3279 }
3280 } else {
3281 return SWIG_Py_Void();
3282 }
3283 }
3284
3285
3286 SWIGINTERNINLINE PyObject *
3287 SWIG_FromCharPtr(const char *cptr)
3288 {
3289 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3290 }
3291
3292
3293 SWIGINTERNINLINE PyObject*
3294 SWIG_From_int (int value)
3295 {
3296 return PyInt_FromLong((long) value);
3297 }
3298
3299
3300 #include <limits.h>
3301 #if !defined(SWIG_NO_LLONG_MAX)
3302 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3303 # define LLONG_MAX __LONG_LONG_MAX__
3304 # define LLONG_MIN (-LLONG_MAX - 1LL)
3305 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3306 # endif
3307 #endif
3308
3309
3310 SWIGINTERN int
3311 SWIG_AsVal_long (PyObject *obj, long* val)
3312 {
3313 if (PyInt_Check(obj)) {
3314 if (val) *val = PyInt_AsLong(obj);
3315 return SWIG_OK;
3316 } else if (PyLong_Check(obj)) {
3317 long v = PyLong_AsLong(obj);
3318 if (!PyErr_Occurred()) {
3319 if (val) *val = v;
3320 return SWIG_OK;
3321 } else {
3322 PyErr_Clear();
3323 }
3324 }
3325 #ifdef SWIG_PYTHON_CAST_MODE
3326 {
3327 int dispatch = 0;
3328 long v = PyInt_AsLong(obj);
3329 if (!PyErr_Occurred()) {
3330 if (val) *val = v;
3331 return SWIG_AddCast(SWIG_OK);
3332 } else {
3333 PyErr_Clear();
3334 }
3335 if (!dispatch) {
3336 double d;
3337 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3338 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3339 if (val) *val = (long)(d);
3340 return res;
3341 }
3342 }
3343 }
3344 #endif
3345 return SWIG_TypeError;
3346 }
3347
3348
3349 SWIGINTERN int
3350 SWIG_AsVal_int (PyObject * obj, int *val)
3351 {
3352 long v;
3353 int res = SWIG_AsVal_long (obj, &v);
3354 if (SWIG_IsOK(res)) {
3355 if ((v < INT_MIN || v > INT_MAX)) {
3356 return SWIG_OverflowError;
3357 } else {
3358 if (val) *val = (int)(v);
3359 }
3360 }
3361 return res;
3362 }
3363
3364
3365 SWIGINTERNINLINE PyObject*
3366 SWIG_From_unsigned_SS_int (unsigned int value)
3367 {
3368 return PyInt_FromSize_t((size_t) value);
3369 }
3370
3371 #ifdef __cplusplus
3372 extern "C" {
3373 #endif
3374 SWIGINTERN PyObject *_wrap_librdf_new_digest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3375 PyObject *resultobj = 0;
3376 librdf_world *arg1 = (librdf_world *) 0 ;
3377 char *arg2 = (char *) 0 ;
3378 void *argp1 = 0 ;
3379 int res1 = 0 ;
3380 int res2 ;
3381 char *buf2 = 0 ;
3382 int alloc2 = 0 ;
3383 PyObject * obj0 = 0 ;
3384 PyObject * obj1 = 0 ;
3385 librdf_digest *result = 0 ;
3386
3387 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_digest",&obj0,&obj1)) SWIG_fail;
3388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3389 if (!SWIG_IsOK(res1)) {
3390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_digest" "', argument " "1"" of type '" "librdf_world *""'");
3391 }
3392 arg1 = (librdf_world *)(argp1);
3393 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3394 if (!SWIG_IsOK(res2)) {
3395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_digest" "', argument " "2"" of type '" "char *""'");
3396 }
3397 arg2 = (char *)(buf2);
3398 {
3399 result = (librdf_digest *)librdf_new_digest(arg1,arg2);
3400 if(librdf_python_error_message) {
3401 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3402 free(librdf_python_error_message);
3403 librdf_python_error_message=NULL;
3404 SWIG_fail;
3405 }
3406 if(librdf_python_warning_message) {
3407 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3408 free(librdf_python_warning_message);
3409 librdf_python_warning_message=NULL;
3410 }
3411 }
3412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, SWIG_POINTER_OWN | 0 );
3413 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3414 return resultobj;
3415 fail:
3416 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3417 return NULL;
3418 }
3419
3420
3421 SWIGINTERN PyObject *_wrap_librdf_free_digest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3422 PyObject *resultobj = 0;
3423 librdf_digest *arg1 = (librdf_digest *) 0 ;
3424 void *argp1 = 0 ;
3425 int res1 = 0 ;
3426 PyObject * obj0 = 0 ;
3427
3428 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_digest",&obj0)) SWIG_fail;
3429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3430 if (!SWIG_IsOK(res1)) {
3431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_digest" "', argument " "1"" of type '" "librdf_digest *""'");
3432 }
3433 arg1 = (librdf_digest *)(argp1);
3434 {
3435 librdf_free_digest(arg1);
3436 if(librdf_python_error_message) {
3437 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3438 free(librdf_python_error_message);
3439 librdf_python_error_message=NULL;
3440 SWIG_fail;
3441 }
3442 if(librdf_python_warning_message) {
3443 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3444 free(librdf_python_warning_message);
3445 librdf_python_warning_message=NULL;
3446 }
3447 }
3448 resultobj = SWIG_Py_Void();
3449 return resultobj;
3450 fail:
3451 return NULL;
3452 }
3453
3454
3455 SWIGINTERN PyObject *_wrap_librdf_digest_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3456 PyObject *resultobj = 0;
3457 librdf_digest *arg1 = (librdf_digest *) 0 ;
3458 void *argp1 = 0 ;
3459 int res1 = 0 ;
3460 PyObject * obj0 = 0 ;
3461
3462 if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_init",&obj0)) SWIG_fail;
3463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3464 if (!SWIG_IsOK(res1)) {
3465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_init" "', argument " "1"" of type '" "librdf_digest *""'");
3466 }
3467 arg1 = (librdf_digest *)(argp1);
3468 {
3469 librdf_digest_init(arg1);
3470 if(librdf_python_error_message) {
3471 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3472 free(librdf_python_error_message);
3473 librdf_python_error_message=NULL;
3474 SWIG_fail;
3475 }
3476 if(librdf_python_warning_message) {
3477 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3478 free(librdf_python_warning_message);
3479 librdf_python_warning_message=NULL;
3480 }
3481 }
3482 resultobj = SWIG_Py_Void();
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 SWIGINTERN PyObject *_wrap_librdf_digest_update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3490 PyObject *resultobj = 0;
3491 librdf_digest *arg1 = (librdf_digest *) 0 ;
3492 char *arg2 = (char *) 0 ;
3493 size_t arg3 ;
3494 void *argp1 = 0 ;
3495 int res1 = 0 ;
3496 int res2 ;
3497 char *buf2 = 0 ;
3498 int alloc2 = 0 ;
3499 size_t val3 ;
3500 int ecode3 = 0 ;
3501 PyObject * obj0 = 0 ;
3502 PyObject * obj1 = 0 ;
3503 PyObject * obj2 = 0 ;
3504
3505 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_digest_update",&obj0,&obj1,&obj2)) SWIG_fail;
3506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3507 if (!SWIG_IsOK(res1)) {
3508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update" "', argument " "1"" of type '" "librdf_digest *""'");
3509 }
3510 arg1 = (librdf_digest *)(argp1);
3511 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3512 if (!SWIG_IsOK(res2)) {
3513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update" "', argument " "2"" of type '" "char const *""'");
3514 }
3515 arg2 = (char *)(buf2);
3516 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
3517 if (!SWIG_IsOK(ecode3)) {
3518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_digest_update" "', argument " "3"" of type '" "size_t""'");
3519 }
3520 arg3 = (size_t)(val3);
3521 {
3522 librdf_digest_update(arg1,(char const *)arg2,arg3);
3523 if(librdf_python_error_message) {
3524 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3525 free(librdf_python_error_message);
3526 librdf_python_error_message=NULL;
3527 SWIG_fail;
3528 }
3529 if(librdf_python_warning_message) {
3530 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3531 free(librdf_python_warning_message);
3532 librdf_python_warning_message=NULL;
3533 }
3534 }
3535 resultobj = SWIG_Py_Void();
3536 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3537 return resultobj;
3538 fail:
3539 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3540 return NULL;
3541 }
3542
3543
3544 SWIGINTERN PyObject *_wrap_librdf_digest_update_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3545 PyObject *resultobj = 0;
3546 librdf_digest *arg1 = (librdf_digest *) 0 ;
3547 char *arg2 = (char *) 0 ;
3548 void *argp1 = 0 ;
3549 int res1 = 0 ;
3550 int res2 ;
3551 char *buf2 = 0 ;
3552 int alloc2 = 0 ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555
3556 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_digest_update_string",&obj0,&obj1)) SWIG_fail;
3557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3558 if (!SWIG_IsOK(res1)) {
3559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update_string" "', argument " "1"" of type '" "librdf_digest *""'");
3560 }
3561 arg1 = (librdf_digest *)(argp1);
3562 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3563 if (!SWIG_IsOK(res2)) {
3564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update_string" "', argument " "2"" of type '" "char const *""'");
3565 }
3566 arg2 = (char *)(buf2);
3567 {
3568 librdf_digest_update_string(arg1,(char const *)arg2);
3569 if(librdf_python_error_message) {
3570 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3571 free(librdf_python_error_message);
3572 librdf_python_error_message=NULL;
3573 SWIG_fail;
3574 }
3575 if(librdf_python_warning_message) {
3576 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3577 free(librdf_python_warning_message);
3578 librdf_python_warning_message=NULL;
3579 }
3580 }
3581 resultobj = SWIG_Py_Void();
3582 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3583 return resultobj;
3584 fail:
3585 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3586 return NULL;
3587 }
3588
3589
3590 SWIGINTERN PyObject *_wrap_librdf_digest_final(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3591 PyObject *resultobj = 0;
3592 librdf_digest *arg1 = (librdf_digest *) 0 ;
3593 void *argp1 = 0 ;
3594 int res1 = 0 ;
3595 PyObject * obj0 = 0 ;
3596
3597 if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_final",&obj0)) SWIG_fail;
3598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3599 if (!SWIG_IsOK(res1)) {
3600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_final" "', argument " "1"" of type '" "librdf_digest *""'");
3601 }
3602 arg1 = (librdf_digest *)(argp1);
3603 {
3604 librdf_digest_final(arg1);
3605 if(librdf_python_error_message) {
3606 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3607 free(librdf_python_error_message);
3608 librdf_python_error_message=NULL;
3609 SWIG_fail;
3610 }
3611 if(librdf_python_warning_message) {
3612 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3613 free(librdf_python_warning_message);
3614 librdf_python_warning_message=NULL;
3615 }
3616 }
3617 resultobj = SWIG_Py_Void();
3618 return resultobj;
3619 fail:
3620 return NULL;
3621 }
3622
3623
3624 SWIGINTERN PyObject *_wrap_librdf_digest_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3625 PyObject *resultobj = 0;
3626 librdf_digest *arg1 = (librdf_digest *) 0 ;
3627 void *argp1 = 0 ;
3628 int res1 = 0 ;
3629 PyObject * obj0 = 0 ;
3630 char *result = 0 ;
3631
3632 if (!PyArg_ParseTuple(args,(char *)"O:librdf_digest_to_string",&obj0)) SWIG_fail;
3633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
3634 if (!SWIG_IsOK(res1)) {
3635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_to_string" "', argument " "1"" of type '" "librdf_digest *""'");
3636 }
3637 arg1 = (librdf_digest *)(argp1);
3638 {
3639 result = (char *)librdf_digest_to_string(arg1);
3640 if(librdf_python_error_message) {
3641 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3642 free(librdf_python_error_message);
3643 librdf_python_error_message=NULL;
3644 SWIG_fail;
3645 }
3646 if(librdf_python_warning_message) {
3647 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3648 free(librdf_python_warning_message);
3649 librdf_python_warning_message=NULL;
3650 }
3651 }
3652 resultobj = SWIG_FromCharPtr((const char *)result);
3653 free((char*)result);
3654 return resultobj;
3655 fail:
3656 return NULL;
3657 }
3658
3659
3660 SWIGINTERN PyObject *_wrap_librdf_new_hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3661 PyObject *resultobj = 0;
3662 librdf_world *arg1 = (librdf_world *) 0 ;
3663 char *arg2 = (char *) 0 ;
3664 void *argp1 = 0 ;
3665 int res1 = 0 ;
3666 int res2 ;
3667 char *buf2 = 0 ;
3668 int alloc2 = 0 ;
3669 PyObject * obj0 = 0 ;
3670 PyObject * obj1 = 0 ;
3671 librdf_hash *result = 0 ;
3672
3673 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_hash",&obj0,&obj1)) SWIG_fail;
3674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3675 if (!SWIG_IsOK(res1)) {
3676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash" "', argument " "1"" of type '" "librdf_world *""'");
3677 }
3678 arg1 = (librdf_world *)(argp1);
3679 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3680 if (!SWIG_IsOK(res2)) {
3681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash" "', argument " "2"" of type '" "char const *""'");
3682 }
3683 arg2 = (char *)(buf2);
3684 {
3685 result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2);
3686 if(librdf_python_error_message) {
3687 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3688 free(librdf_python_error_message);
3689 librdf_python_error_message=NULL;
3690 SWIG_fail;
3691 }
3692 if(librdf_python_warning_message) {
3693 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3694 free(librdf_python_warning_message);
3695 librdf_python_warning_message=NULL;
3696 }
3697 }
3698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 );
3699 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3700 return resultobj;
3701 fail:
3702 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3703 return NULL;
3704 }
3705
3706
3707 SWIGINTERN PyObject *_wrap_librdf_new_hash_from_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3708 PyObject *resultobj = 0;
3709 librdf_world *arg1 = (librdf_world *) 0 ;
3710 char *arg2 = (char *) 0 ;
3711 char *arg3 = (char *) 0 ;
3712 void *argp1 = 0 ;
3713 int res1 = 0 ;
3714 int res2 ;
3715 char *buf2 = 0 ;
3716 int alloc2 = 0 ;
3717 int res3 ;
3718 char *buf3 = 0 ;
3719 int alloc3 = 0 ;
3720 PyObject * obj0 = 0 ;
3721 PyObject * obj1 = 0 ;
3722 PyObject * obj2 = 0 ;
3723 librdf_hash *result = 0 ;
3724
3725 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_hash_from_string",&obj0,&obj1,&obj2)) SWIG_fail;
3726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3727 if (!SWIG_IsOK(res1)) {
3728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_string" "', argument " "1"" of type '" "librdf_world *""'");
3729 }
3730 arg1 = (librdf_world *)(argp1);
3731 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3732 if (!SWIG_IsOK(res2)) {
3733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_string" "', argument " "2"" of type '" "char const *""'");
3734 }
3735 arg2 = (char *)(buf2);
3736 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
3737 if (!SWIG_IsOK(res3)) {
3738 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_string" "', argument " "3"" of type '" "char const *""'");
3739 }
3740 arg3 = (char *)(buf3);
3741 {
3742 result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3);
3743 if(librdf_python_error_message) {
3744 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3745 free(librdf_python_error_message);
3746 librdf_python_error_message=NULL;
3747 SWIG_fail;
3748 }
3749 if(librdf_python_warning_message) {
3750 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3751 free(librdf_python_warning_message);
3752 librdf_python_warning_message=NULL;
3753 }
3754 }
3755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 );
3756 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3757 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3758 return resultobj;
3759 fail:
3760 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3761 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3762 return NULL;
3763 }
3764
3765
3766 SWIGINTERN PyObject *_wrap_librdf_new_hash_from_array_of_strings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3767 PyObject *resultobj = 0;
3768 librdf_world *arg1 = (librdf_world *) 0 ;
3769 char *arg2 = (char *) 0 ;
3770 char **arg3 = (char **) 0 ;
3771 void *argp1 = 0 ;
3772 int res1 = 0 ;
3773 int res2 ;
3774 char *buf2 = 0 ;
3775 int alloc2 = 0 ;
3776 void *argp3 = 0 ;
3777 int res3 = 0 ;
3778 PyObject * obj0 = 0 ;
3779 PyObject * obj1 = 0 ;
3780 PyObject * obj2 = 0 ;
3781 librdf_hash *result = 0 ;
3782
3783 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_hash_from_array_of_strings",&obj0,&obj1,&obj2)) SWIG_fail;
3784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3785 if (!SWIG_IsOK(res1)) {
3786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "1"" of type '" "librdf_world *""'");
3787 }
3788 arg1 = (librdf_world *)(argp1);
3789 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
3790 if (!SWIG_IsOK(res2)) {
3791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "2"" of type '" "char const *""'");
3792 }
3793 arg2 = (char *)(buf2);
3794 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_char, 0 | 0 );
3795 if (!SWIG_IsOK(res3)) {
3796 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "3"" of type '" "char const **""'");
3797 }
3798 arg3 = (char **)(argp3);
3799 {
3800 result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3);
3801 if(librdf_python_error_message) {
3802 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3803 free(librdf_python_error_message);
3804 librdf_python_error_message=NULL;
3805 SWIG_fail;
3806 }
3807 if(librdf_python_warning_message) {
3808 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3809 free(librdf_python_warning_message);
3810 librdf_python_warning_message=NULL;
3811 }
3812 }
3813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_POINTER_OWN | 0 );
3814 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3815 return resultobj;
3816 fail:
3817 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3818 return NULL;
3819 }
3820
3821
3822 SWIGINTERN PyObject *_wrap_librdf_hash_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3823 PyObject *resultobj = 0;
3824 librdf_hash *arg1 = (librdf_hash *) 0 ;
3825 char **arg2 ;
3826 void *argp1 = 0 ;
3827 int res1 = 0 ;
3828 void *argp2 = 0 ;
3829 int res2 = 0 ;
3830 PyObject * obj0 = 0 ;
3831 PyObject * obj1 = 0 ;
3832 char *result = 0 ;
3833
3834 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_hash_to_string",&obj0,&obj1)) SWIG_fail;
3835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
3836 if (!SWIG_IsOK(res1)) {
3837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_hash_to_string" "', argument " "1"" of type '" "librdf_hash *""'");
3838 }
3839 arg1 = (librdf_hash *)(argp1);
3840 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 );
3841 if (!SWIG_IsOK(res2)) {
3842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_hash_to_string" "', argument " "2"" of type '" "char const *[]""'");
3843 }
3844 arg2 = (char **)(argp2);
3845 {
3846 result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2);
3847 if(librdf_python_error_message) {
3848 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3849 free(librdf_python_error_message);
3850 librdf_python_error_message=NULL;
3851 SWIG_fail;
3852 }
3853 if(librdf_python_warning_message) {
3854 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3855 free(librdf_python_warning_message);
3856 librdf_python_warning_message=NULL;
3857 }
3858 }
3859 resultobj = SWIG_FromCharPtr((const char *)result);
3860 free((char*)result);
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 SWIGINTERN PyObject *_wrap_librdf_free_hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3868 PyObject *resultobj = 0;
3869 librdf_hash *arg1 = (librdf_hash *) 0 ;
3870 void *argp1 = 0 ;
3871 int res1 = 0 ;
3872 PyObject * obj0 = 0 ;
3873
3874 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_hash",&obj0)) SWIG_fail;
3875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
3876 if (!SWIG_IsOK(res1)) {
3877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_hash" "', argument " "1"" of type '" "librdf_hash *""'");
3878 }
3879 arg1 = (librdf_hash *)(argp1);
3880 {
3881 librdf_free_hash(arg1);
3882 if(librdf_python_error_message) {
3883 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3884 free(librdf_python_error_message);
3885 librdf_python_error_message=NULL;
3886 SWIG_fail;
3887 }
3888 if(librdf_python_warning_message) {
3889 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3890 free(librdf_python_warning_message);
3891 librdf_python_warning_message=NULL;
3892 }
3893 }
3894 resultobj = SWIG_Py_Void();
3895 return resultobj;
3896 fail:
3897 return NULL;
3898 }
3899
3900
3901 SWIGINTERN PyObject *_wrap_librdf_new_world(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3902 PyObject *resultobj = 0;
3903 librdf_world *result = 0 ;
3904
3905 if (!PyArg_ParseTuple(args,(char *)":librdf_new_world")) SWIG_fail;
3906 {
3907 result = (librdf_world *)librdf_new_world();
3908 if(librdf_python_error_message) {
3909 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3910 free(librdf_python_error_message);
3911 librdf_python_error_message=NULL;
3912 SWIG_fail;
3913 }
3914 if(librdf_python_warning_message) {
3915 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3916 free(librdf_python_warning_message);
3917 librdf_python_warning_message=NULL;
3918 }
3919 }
3920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, SWIG_POINTER_OWN | 0 );
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 SWIGINTERN PyObject *_wrap_librdf_free_world(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3928 PyObject *resultobj = 0;
3929 librdf_world *arg1 = (librdf_world *) 0 ;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 PyObject * obj0 = 0 ;
3933
3934 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_world",&obj0)) SWIG_fail;
3935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_world" "', argument " "1"" of type '" "librdf_world *""'");
3938 }
3939 arg1 = (librdf_world *)(argp1);
3940 {
3941 librdf_free_world(arg1);
3942 if(librdf_python_error_message) {
3943 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3944 free(librdf_python_error_message);
3945 librdf_python_error_message=NULL;
3946 SWIG_fail;
3947 }
3948 if(librdf_python_warning_message) {
3949 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3950 free(librdf_python_warning_message);
3951 librdf_python_warning_message=NULL;
3952 }
3953 }
3954 resultobj = SWIG_Py_Void();
3955 return resultobj;
3956 fail:
3957 return NULL;
3958 }
3959
3960
3961 SWIGINTERN PyObject *_wrap_librdf_world_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3962 PyObject *resultobj = 0;
3963 librdf_world *arg1 = (librdf_world *) 0 ;
3964 void *argp1 = 0 ;
3965 int res1 = 0 ;
3966 PyObject * obj0 = 0 ;
3967
3968 if (!PyArg_ParseTuple(args,(char *)"O:librdf_world_open",&obj0)) SWIG_fail;
3969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3970 if (!SWIG_IsOK(res1)) {
3971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_open" "', argument " "1"" of type '" "librdf_world *""'");
3972 }
3973 arg1 = (librdf_world *)(argp1);
3974 {
3975 librdf_world_open(arg1);
3976 if(librdf_python_error_message) {
3977 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
3978 free(librdf_python_error_message);
3979 librdf_python_error_message=NULL;
3980 SWIG_fail;
3981 }
3982 if(librdf_python_warning_message) {
3983 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
3984 free(librdf_python_warning_message);
3985 librdf_python_warning_message=NULL;
3986 }
3987 }
3988 resultobj = SWIG_Py_Void();
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 SWIGINTERN PyObject *_wrap_librdf_world_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3996 PyObject *resultobj = 0;
3997 librdf_world *arg1 = (librdf_world *) 0 ;
3998 librdf_uri *arg2 = (librdf_uri *) 0 ;
3999 void *argp1 = 0 ;
4000 int res1 = 0 ;
4001 void *argp2 = 0 ;
4002 int res2 = 0 ;
4003 PyObject * obj0 = 0 ;
4004 PyObject * obj1 = 0 ;
4005 librdf_node *result = 0 ;
4006
4007 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_world_get_feature",&obj0,&obj1)) SWIG_fail;
4008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4009 if (!SWIG_IsOK(res1)) {
4010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_get_feature" "', argument " "1"" of type '" "librdf_world *""'");
4011 }
4012 arg1 = (librdf_world *)(argp1);
4013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4014 if (!SWIG_IsOK(res2)) {
4015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
4016 }
4017 arg2 = (librdf_uri *)(argp2);
4018 {
4019 result = (librdf_node *)librdf_world_get_feature(arg1,arg2);
4020 if(librdf_python_error_message) {
4021 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4022 free(librdf_python_error_message);
4023 librdf_python_error_message=NULL;
4024 SWIG_fail;
4025 }
4026 if(librdf_python_warning_message) {
4027 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4028 free(librdf_python_warning_message);
4029 librdf_python_warning_message=NULL;
4030 }
4031 }
4032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 SWIGINTERN PyObject *_wrap_librdf_world_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 librdf_world *arg1 = (librdf_world *) 0 ;
4042 librdf_uri *arg2 = (librdf_uri *) 0 ;
4043 librdf_node *arg3 = (librdf_node *) 0 ;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 void *argp2 = 0 ;
4047 int res2 = 0 ;
4048 void *argp3 = 0 ;
4049 int res3 = 0 ;
4050 PyObject * obj0 = 0 ;
4051 PyObject * obj1 = 0 ;
4052 PyObject * obj2 = 0 ;
4053 int result;
4054
4055 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_world_set_feature",&obj0,&obj1,&obj2)) SWIG_fail;
4056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_feature" "', argument " "1"" of type '" "librdf_world *""'");
4059 }
4060 arg1 = (librdf_world *)(argp1);
4061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4062 if (!SWIG_IsOK(res2)) {
4063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
4064 }
4065 arg2 = (librdf_uri *)(argp2);
4066 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4067 if (!SWIG_IsOK(res3)) {
4068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
4069 }
4070 arg3 = (librdf_node *)(argp3);
4071 {
4072 result = (int)librdf_world_set_feature(arg1,arg2,arg3);
4073 if(librdf_python_error_message) {
4074 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4075 free(librdf_python_error_message);
4076 librdf_python_error_message=NULL;
4077 SWIG_fail;
4078 }
4079 if(librdf_python_warning_message) {
4080 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4081 free(librdf_python_warning_message);
4082 librdf_python_warning_message=NULL;
4083 }
4084 }
4085 resultobj = SWIG_From_int((int)(result));
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 SWIGINTERN PyObject *_wrap_librdf_parser_get_accept_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4093 PyObject *resultobj = 0;
4094 librdf_parser *arg1 = (librdf_parser *) 0 ;
4095 void *argp1 = 0 ;
4096 int res1 = 0 ;
4097 PyObject * obj0 = 0 ;
4098 char *result = 0 ;
4099
4100 if (!PyArg_ParseTuple(args,(char *)"O:librdf_parser_get_accept_header",&obj0)) SWIG_fail;
4101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
4102 if (!SWIG_IsOK(res1)) {
4103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_accept_header" "', argument " "1"" of type '" "librdf_parser *""'");
4104 }
4105 arg1 = (librdf_parser *)(argp1);
4106 {
4107 result = (char *)librdf_parser_get_accept_header(arg1);
4108 if(librdf_python_error_message) {
4109 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4110 free(librdf_python_error_message);
4111 librdf_python_error_message=NULL;
4112 SWIG_fail;
4113 }
4114 if(librdf_python_warning_message) {
4115 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4116 free(librdf_python_warning_message);
4117 librdf_python_warning_message=NULL;
4118 }
4119 }
4120 resultobj = SWIG_FromCharPtr((const char *)result);
4121 free((char*)result);
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 SWIGINTERN PyObject *_wrap_librdf_world_set_logger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4129 PyObject *resultobj = 0;
4130 librdf_world *arg1 = (librdf_world *) 0 ;
4131 void *arg2 = (void *) 0 ;
4132 librdf_log_func arg3 ;
4133 void *argp1 = 0 ;
4134 int res1 = 0 ;
4135 int res2 ;
4136 void *argp3 ;
4137 int res3 = 0 ;
4138 PyObject * obj0 = 0 ;
4139 PyObject * obj1 = 0 ;
4140 PyObject * obj2 = 0 ;
4141
4142 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_world_set_logger",&obj0,&obj1,&obj2)) SWIG_fail;
4143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4144 if (!SWIG_IsOK(res1)) {
4145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_logger" "', argument " "1"" of type '" "librdf_world *""'");
4146 }
4147 arg1 = (librdf_world *)(argp1);
4148 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
4149 if (!SWIG_IsOK(res2)) {
4150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_logger" "', argument " "2"" of type '" "void *""'");
4151 }
4152 {
4153 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_librdf_log_func, 0 );
4154 if (!SWIG_IsOK(res3)) {
4155 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'");
4156 }
4157 if (!argp3) {
4158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'");
4159 } else {
4160 arg3 = *((librdf_log_func *)(argp3));
4161 }
4162 }
4163 {
4164 librdf_world_set_logger(arg1,arg2,arg3);
4165 if(librdf_python_error_message) {
4166 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4167 free(librdf_python_error_message);
4168 librdf_python_error_message=NULL;
4169 SWIG_fail;
4170 }
4171 if(librdf_python_warning_message) {
4172 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4173 free(librdf_python_warning_message);
4174 librdf_python_warning_message=NULL;
4175 }
4176 }
4177 resultobj = SWIG_Py_Void();
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 SWIGINTERN PyObject *_wrap_librdf_free_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4185 PyObject *resultobj = 0;
4186 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
4187 void *argp1 = 0 ;
4188 int res1 = 0 ;
4189 PyObject * obj0 = 0 ;
4190
4191 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_iterator",&obj0)) SWIG_fail;
4192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_iterator" "', argument " "1"" of type '" "librdf_iterator *""'");
4195 }
4196 arg1 = (librdf_iterator *)(argp1);
4197 {
4198 librdf_free_iterator(arg1);
4199 if(librdf_python_error_message) {
4200 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4201 free(librdf_python_error_message);
4202 librdf_python_error_message=NULL;
4203 SWIG_fail;
4204 }
4205 if(librdf_python_warning_message) {
4206 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4207 free(librdf_python_warning_message);
4208 librdf_python_warning_message=NULL;
4209 }
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213 fail:
4214 return NULL;
4215 }
4216
4217
4218 SWIGINTERN PyObject *_wrap_librdf_iterator_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4219 PyObject *resultobj = 0;
4220 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
4221 void *argp1 = 0 ;
4222 int res1 = 0 ;
4223 PyObject * obj0 = 0 ;
4224 int result;
4225
4226 if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_end",&obj0)) SWIG_fail;
4227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
4228 if (!SWIG_IsOK(res1)) {
4229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_end" "', argument " "1"" of type '" "librdf_iterator *""'");
4230 }
4231 arg1 = (librdf_iterator *)(argp1);
4232 {
4233 result = (int)librdf_iterator_end(arg1);
4234 if(librdf_python_error_message) {
4235 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4236 free(librdf_python_error_message);
4237 librdf_python_error_message=NULL;
4238 SWIG_fail;
4239 }
4240 if(librdf_python_warning_message) {
4241 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4242 free(librdf_python_warning_message);
4243 librdf_python_warning_message=NULL;
4244 }
4245 }
4246 resultobj = SWIG_From_int((int)(result));
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 SWIGINTERN PyObject *_wrap_librdf_iterator_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4254 PyObject *resultobj = 0;
4255 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
4256 void *argp1 = 0 ;
4257 int res1 = 0 ;
4258 PyObject * obj0 = 0 ;
4259 librdf_node *result = 0 ;
4260
4261 if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_get_object",&obj0)) SWIG_fail;
4262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_object" "', argument " "1"" of type '" "librdf_iterator *""'");
4265 }
4266 arg1 = (librdf_iterator *)(argp1);
4267 {
4268 result = (librdf_node *)librdf_iterator_get_object(arg1);
4269 if(librdf_python_error_message) {
4270 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4271 free(librdf_python_error_message);
4272 librdf_python_error_message=NULL;
4273 SWIG_fail;
4274 }
4275 if(librdf_python_warning_message) {
4276 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4277 free(librdf_python_warning_message);
4278 librdf_python_warning_message=NULL;
4279 }
4280 }
4281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
4282 return resultobj;
4283 fail:
4284 return NULL;
4285 }
4286
4287
4288 SWIGINTERN PyObject *_wrap_librdf_iterator_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4289 PyObject *resultobj = 0;
4290 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
4291 void *argp1 = 0 ;
4292 int res1 = 0 ;
4293 PyObject * obj0 = 0 ;
4294 librdf_node *result = 0 ;
4295
4296 if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_get_context",&obj0)) SWIG_fail;
4297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
4298 if (!SWIG_IsOK(res1)) {
4299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_context" "', argument " "1"" of type '" "librdf_iterator *""'");
4300 }
4301 arg1 = (librdf_iterator *)(argp1);
4302 {
4303 result = (librdf_node *)librdf_iterator_get_context(arg1);
4304 if(librdf_python_error_message) {
4305 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4306 free(librdf_python_error_message);
4307 librdf_python_error_message=NULL;
4308 SWIG_fail;
4309 }
4310 if(librdf_python_warning_message) {
4311 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4312 free(librdf_python_warning_message);
4313 librdf_python_warning_message=NULL;
4314 }
4315 }
4316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
4317 return resultobj;
4318 fail:
4319 return NULL;
4320 }
4321
4322
4323 SWIGINTERN PyObject *_wrap_librdf_iterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4324 PyObject *resultobj = 0;
4325 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject * obj0 = 0 ;
4329 int result;
4330
4331 if (!PyArg_ParseTuple(args,(char *)"O:librdf_iterator_next",&obj0)) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_next" "', argument " "1"" of type '" "librdf_iterator *""'");
4335 }
4336 arg1 = (librdf_iterator *)(argp1);
4337 {
4338 result = (int)librdf_iterator_next(arg1);
4339 if(librdf_python_error_message) {
4340 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4341 free(librdf_python_error_message);
4342 librdf_python_error_message=NULL;
4343 SWIG_fail;
4344 }
4345 if(librdf_python_warning_message) {
4346 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4347 free(librdf_python_warning_message);
4348 librdf_python_warning_message=NULL;
4349 }
4350 }
4351 resultobj = SWIG_From_int((int)(result));
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_librdf_new_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4359 PyObject *resultobj = 0;
4360 librdf_world *arg1 = (librdf_world *) 0 ;
4361 char *arg2 = (char *) 0 ;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 int res2 ;
4365 char *buf2 = 0 ;
4366 int alloc2 = 0 ;
4367 PyObject * obj0 = 0 ;
4368 PyObject * obj1 = 0 ;
4369 librdf_uri *result = 0 ;
4370
4371 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_uri",&obj0,&obj1)) SWIG_fail;
4372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4373 if (!SWIG_IsOK(res1)) {
4374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri" "', argument " "1"" of type '" "librdf_world *""'");
4375 }
4376 arg1 = (librdf_world *)(argp1);
4377 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4378 if (!SWIG_IsOK(res2)) {
4379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri" "', argument " "2"" of type '" "char *""'");
4380 }
4381 arg2 = (char *)(buf2);
4382 {
4383 result = (librdf_uri *)librdf_new_uri(arg1,arg2);
4384 if(librdf_python_error_message) {
4385 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4386 free(librdf_python_error_message);
4387 librdf_python_error_message=NULL;
4388 SWIG_fail;
4389 }
4390 if(librdf_python_warning_message) {
4391 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4392 free(librdf_python_warning_message);
4393 librdf_python_warning_message=NULL;
4394 }
4395 }
4396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 );
4397 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4398 return resultobj;
4399 fail:
4400 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4401 return NULL;
4402 }
4403
4404
4405 SWIGINTERN PyObject *_wrap_librdf_new_uri_from_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4406 PyObject *resultobj = 0;
4407 librdf_uri *arg1 = (librdf_uri *) 0 ;
4408 void *argp1 = 0 ;
4409 int res1 = 0 ;
4410 PyObject * obj0 = 0 ;
4411 librdf_uri *result = 0 ;
4412
4413 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_uri_from_uri",&obj0)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_uri" "', argument " "1"" of type '" "librdf_uri *""'");
4417 }
4418 arg1 = (librdf_uri *)(argp1);
4419 {
4420 result = (librdf_uri *)librdf_new_uri_from_uri(arg1);
4421 if(librdf_python_error_message) {
4422 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4423 free(librdf_python_error_message);
4424 librdf_python_error_message=NULL;
4425 SWIG_fail;
4426 }
4427 if(librdf_python_warning_message) {
4428 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4429 free(librdf_python_warning_message);
4430 librdf_python_warning_message=NULL;
4431 }
4432 }
4433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_POINTER_OWN | 0 );
4434 return resultobj;
4435 fail:
4436 return NULL;
4437 }
4438
4439
4440 SWIGINTERN PyObject *_wrap_librdf_new_uri_from_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4441 PyObject *resultobj = 0;
4442 librdf_world *arg1 = (librdf_world *) 0 ;
4443 char *arg2 = (char *) 0 ;
4444 void *argp1 = 0 ;
4445 int res1 = 0 ;
4446 int res2 ;
4447 char *buf2 = 0 ;
4448 int alloc2 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 PyObject * obj1 = 0 ;
4451 librdf_uri *result = 0 ;
4452
4453 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_uri_from_filename",&obj0,&obj1)) SWIG_fail;
4454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_filename" "', argument " "1"" of type '" "librdf_world *""'");
4457 }
4458 arg1 = (librdf_world *)(argp1);
4459 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4460 if (!SWIG_IsOK(res2)) {
4461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri_from_filename" "', argument " "2"" of type '" "char const *""'");
4462 }
4463 arg2 = (char *)(buf2);
4464 {
4465 result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2);
4466 if(librdf_python_error_message) {
4467 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4468 free(librdf_python_error_message);
4469 librdf_python_error_message=NULL;
4470 SWIG_fail;
4471 }
4472 if(librdf_python_warning_message) {
4473 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4474 free(librdf_python_warning_message);
4475 librdf_python_warning_message=NULL;
4476 }
4477 }
4478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4479 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4480 return resultobj;
4481 fail:
4482 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_librdf_free_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4488 PyObject *resultobj = 0;
4489 librdf_uri *arg1 = (librdf_uri *) 0 ;
4490 void *argp1 = 0 ;
4491 int res1 = 0 ;
4492 PyObject * obj0 = 0 ;
4493
4494 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_uri",&obj0)) SWIG_fail;
4495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_uri" "', argument " "1"" of type '" "librdf_uri *""'");
4498 }
4499 arg1 = (librdf_uri *)(argp1);
4500 {
4501 librdf_free_uri(arg1);
4502 if(librdf_python_error_message) {
4503 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4504 free(librdf_python_error_message);
4505 librdf_python_error_message=NULL;
4506 SWIG_fail;
4507 }
4508 if(librdf_python_warning_message) {
4509 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4510 free(librdf_python_warning_message);
4511 librdf_python_warning_message=NULL;
4512 }
4513 }
4514 resultobj = SWIG_Py_Void();
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 SWIGINTERN PyObject *_wrap_librdf_uri_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4522 PyObject *resultobj = 0;
4523 librdf_uri *arg1 = (librdf_uri *) 0 ;
4524 void *argp1 = 0 ;
4525 int res1 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 char *result = 0 ;
4528
4529 if (!PyArg_ParseTuple(args,(char *)"O:librdf_uri_to_string",&obj0)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_to_string" "', argument " "1"" of type '" "librdf_uri *""'");
4533 }
4534 arg1 = (librdf_uri *)(argp1);
4535 {
4536 result = (char *)librdf_uri_to_string(arg1);
4537 if(librdf_python_error_message) {
4538 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4539 free(librdf_python_error_message);
4540 librdf_python_error_message=NULL;
4541 SWIG_fail;
4542 }
4543 if(librdf_python_warning_message) {
4544 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4545 free(librdf_python_warning_message);
4546 librdf_python_warning_message=NULL;
4547 }
4548 }
4549 resultobj = SWIG_FromCharPtr((const char *)result);
4550 free((char*)result);
4551 return resultobj;
4552 fail:
4553 return NULL;
4554 }
4555
4556
4557 SWIGINTERN PyObject *_wrap_librdf_uri_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4558 PyObject *resultobj = 0;
4559 librdf_uri *arg1 = (librdf_uri *) 0 ;
4560 librdf_uri *arg2 = (librdf_uri *) 0 ;
4561 void *argp1 = 0 ;
4562 int res1 = 0 ;
4563 void *argp2 = 0 ;
4564 int res2 = 0 ;
4565 PyObject * obj0 = 0 ;
4566 PyObject * obj1 = 0 ;
4567 int result;
4568
4569 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_uri_equals",&obj0,&obj1)) SWIG_fail;
4570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4571 if (!SWIG_IsOK(res1)) {
4572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_equals" "', argument " "1"" of type '" "librdf_uri *""'");
4573 }
4574 arg1 = (librdf_uri *)(argp1);
4575 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4576 if (!SWIG_IsOK(res2)) {
4577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_equals" "', argument " "2"" of type '" "librdf_uri *""'");
4578 }
4579 arg2 = (librdf_uri *)(argp2);
4580 {
4581 result = (int)librdf_uri_equals(arg1,arg2);
4582 if(librdf_python_error_message) {
4583 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4584 free(librdf_python_error_message);
4585 librdf_python_error_message=NULL;
4586 SWIG_fail;
4587 }
4588 if(librdf_python_warning_message) {
4589 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4590 free(librdf_python_warning_message);
4591 librdf_python_warning_message=NULL;
4592 }
4593 }
4594 resultobj = SWIG_From_int((int)(result));
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 SWIGINTERN PyObject *_wrap_librdf_uri_compare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 PyObject *resultobj = 0;
4603 librdf_uri *arg1 = (librdf_uri *) 0 ;
4604 librdf_uri *arg2 = (librdf_uri *) 0 ;
4605 void *argp1 = 0 ;
4606 int res1 = 0 ;
4607 void *argp2 = 0 ;
4608 int res2 = 0 ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611 int result;
4612
4613 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_uri_compare",&obj0,&obj1)) SWIG_fail;
4614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4615 if (!SWIG_IsOK(res1)) {
4616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_compare" "', argument " "1"" of type '" "librdf_uri *""'");
4617 }
4618 arg1 = (librdf_uri *)(argp1);
4619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4620 if (!SWIG_IsOK(res2)) {
4621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_compare" "', argument " "2"" of type '" "librdf_uri *""'");
4622 }
4623 arg2 = (librdf_uri *)(argp2);
4624 {
4625 result = (int)librdf_uri_compare(arg1,arg2);
4626 if(librdf_python_error_message) {
4627 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4628 free(librdf_python_error_message);
4629 librdf_python_error_message=NULL;
4630 SWIG_fail;
4631 }
4632 if(librdf_python_warning_message) {
4633 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4634 free(librdf_python_warning_message);
4635 librdf_python_warning_message=NULL;
4636 }
4637 }
4638 resultobj = SWIG_From_int((int)(result));
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_librdf_new_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 librdf_world *arg1 = (librdf_world *) 0 ;
4648 void *argp1 = 0 ;
4649 int res1 = 0 ;
4650 PyObject * obj0 = 0 ;
4651 librdf_node *result = 0 ;
4652
4653 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_node",&obj0)) SWIG_fail;
4654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4655 if (!SWIG_IsOK(res1)) {
4656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node" "', argument " "1"" of type '" "librdf_world *""'");
4657 }
4658 arg1 = (librdf_world *)(argp1);
4659 {
4660 result = (librdf_node *)librdf_new_node(arg1);
4661 if(librdf_python_error_message) {
4662 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4663 free(librdf_python_error_message);
4664 librdf_python_error_message=NULL;
4665 SWIG_fail;
4666 }
4667 if(librdf_python_warning_message) {
4668 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4669 free(librdf_python_warning_message);
4670 librdf_python_warning_message=NULL;
4671 }
4672 }
4673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4674 return resultobj;
4675 fail:
4676 return NULL;
4677 }
4678
4679
4680 SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4681 PyObject *resultobj = 0;
4682 librdf_world *arg1 = (librdf_world *) 0 ;
4683 char *arg2 = (char *) 0 ;
4684 void *argp1 = 0 ;
4685 int res1 = 0 ;
4686 int res2 ;
4687 char *buf2 = 0 ;
4688 int alloc2 = 0 ;
4689 PyObject * obj0 = 0 ;
4690 PyObject * obj1 = 0 ;
4691 librdf_node *result = 0 ;
4692
4693 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_node_from_uri_string",&obj0,&obj1)) SWIG_fail;
4694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4695 if (!SWIG_IsOK(res1)) {
4696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_string" "', argument " "1"" of type '" "librdf_world *""'");
4697 }
4698 arg1 = (librdf_world *)(argp1);
4699 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4700 if (!SWIG_IsOK(res2)) {
4701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_string" "', argument " "2"" of type '" "char const *""'");
4702 }
4703 arg2 = (char *)(buf2);
4704 {
4705 result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2);
4706 if(librdf_python_error_message) {
4707 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4708 free(librdf_python_error_message);
4709 librdf_python_error_message=NULL;
4710 SWIG_fail;
4711 }
4712 if(librdf_python_warning_message) {
4713 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4714 free(librdf_python_warning_message);
4715 librdf_python_warning_message=NULL;
4716 }
4717 }
4718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4719 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4720 return resultobj;
4721 fail:
4722 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4723 return NULL;
4724 }
4725
4726
4727 SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 PyObject *resultobj = 0;
4729 librdf_world *arg1 = (librdf_world *) 0 ;
4730 librdf_uri *arg2 = (librdf_uri *) 0 ;
4731 void *argp1 = 0 ;
4732 int res1 = 0 ;
4733 void *argp2 = 0 ;
4734 int res2 = 0 ;
4735 PyObject * obj0 = 0 ;
4736 PyObject * obj1 = 0 ;
4737 librdf_node *result = 0 ;
4738
4739 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_new_node_from_uri",&obj0,&obj1)) SWIG_fail;
4740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri" "', argument " "1"" of type '" "librdf_world *""'");
4743 }
4744 arg1 = (librdf_world *)(argp1);
4745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4746 if (!SWIG_IsOK(res2)) {
4747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri" "', argument " "2"" of type '" "librdf_uri *""'");
4748 }
4749 arg2 = (librdf_uri *)(argp2);
4750 {
4751 result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2);
4752 if(librdf_python_error_message) {
4753 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4754 free(librdf_python_error_message);
4755 librdf_python_error_message=NULL;
4756 SWIG_fail;
4757 }
4758 if(librdf_python_warning_message) {
4759 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4760 free(librdf_python_warning_message);
4761 librdf_python_warning_message=NULL;
4762 }
4763 }
4764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4765 return resultobj;
4766 fail:
4767 return NULL;
4768 }
4769
4770
4771 SWIGINTERN PyObject *_wrap_librdf_new_node_from_uri_local_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 PyObject *resultobj = 0;
4773 librdf_world *arg1 = (librdf_world *) 0 ;
4774 librdf_uri *arg2 = (librdf_uri *) 0 ;
4775 char *arg3 = (char *) 0 ;
4776 void *argp1 = 0 ;
4777 int res1 = 0 ;
4778 void *argp2 = 0 ;
4779 int res2 = 0 ;
4780 int res3 ;
4781 char *buf3 = 0 ;
4782 int alloc3 = 0 ;
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785 PyObject * obj2 = 0 ;
4786 librdf_node *result = 0 ;
4787
4788 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_node_from_uri_local_name",&obj0,&obj1,&obj2)) SWIG_fail;
4789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4790 if (!SWIG_IsOK(res1)) {
4791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "1"" of type '" "librdf_world *""'");
4792 }
4793 arg1 = (librdf_world *)(argp1);
4794 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4795 if (!SWIG_IsOK(res2)) {
4796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "2"" of type '" "librdf_uri *""'");
4797 }
4798 arg2 = (librdf_uri *)(argp2);
4799 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4800 if (!SWIG_IsOK(res3)) {
4801 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "3"" of type '" "char const *""'");
4802 }
4803 arg3 = (char *)(buf3);
4804 {
4805 result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3);
4806 if(librdf_python_error_message) {
4807 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4808 free(librdf_python_error_message);
4809 librdf_python_error_message=NULL;
4810 SWIG_fail;
4811 }
4812 if(librdf_python_warning_message) {
4813 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4814 free(librdf_python_warning_message);
4815 librdf_python_warning_message=NULL;
4816 }
4817 }
4818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4819 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4820 return resultobj;
4821 fail:
4822 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4823 return NULL;
4824 }
4825
4826
4827 SWIGINTERN PyObject *_wrap_librdf_new_node_from_normalised_uri_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 librdf_world *arg1 = (librdf_world *) 0 ;
4830 char *arg2 = (char *) 0 ;
4831 librdf_uri *arg3 = (librdf_uri *) 0 ;
4832 librdf_uri *arg4 = (librdf_uri *) 0 ;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 int res2 ;
4836 char *buf2 = 0 ;
4837 int alloc2 = 0 ;
4838 void *argp3 = 0 ;
4839 int res3 = 0 ;
4840 void *argp4 = 0 ;
4841 int res4 = 0 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 PyObject * obj2 = 0 ;
4845 PyObject * obj3 = 0 ;
4846 librdf_node *result = 0 ;
4847
4848 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_node_from_normalised_uri_string",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4850 if (!SWIG_IsOK(res1)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "1"" of type '" "librdf_world *""'");
4852 }
4853 arg1 = (librdf_world *)(argp1);
4854 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4855 if (!SWIG_IsOK(res2)) {
4856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "2"" of type '" "char const *""'");
4857 }
4858 arg2 = (char *)(buf2);
4859 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4860 if (!SWIG_IsOK(res3)) {
4861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "3"" of type '" "librdf_uri *""'");
4862 }
4863 arg3 = (librdf_uri *)(argp3);
4864 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4865 if (!SWIG_IsOK(res4)) {
4866 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "4"" of type '" "librdf_uri *""'");
4867 }
4868 arg4 = (librdf_uri *)(argp4);
4869 {
4870 result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4);
4871 if(librdf_python_error_message) {
4872 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4873 free(librdf_python_error_message);
4874 librdf_python_error_message=NULL;
4875 SWIG_fail;
4876 }
4877 if(librdf_python_warning_message) {
4878 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4879 free(librdf_python_warning_message);
4880 librdf_python_warning_message=NULL;
4881 }
4882 }
4883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4884 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4885 return resultobj;
4886 fail:
4887 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4888 return NULL;
4889 }
4890
4891
4892 SWIGINTERN PyObject *_wrap_librdf_new_node_from_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893 PyObject *resultobj = 0;
4894 librdf_world *arg1 = (librdf_world *) 0 ;
4895 char *arg2 = (char *) 0 ;
4896 char *arg3 = (char *) NULL ;
4897 int arg4 = (int) 0 ;
4898 void *argp1 = 0 ;
4899 int res1 = 0 ;
4900 int res2 ;
4901 char *buf2 = 0 ;
4902 int alloc2 = 0 ;
4903 int res3 ;
4904 char *buf3 = 0 ;
4905 int alloc3 = 0 ;
4906 int val4 ;
4907 int ecode4 = 0 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 PyObject * obj2 = 0 ;
4911 PyObject * obj3 = 0 ;
4912 librdf_node *result = 0 ;
4913
4914 if (!PyArg_ParseTuple(args,(char *)"OO|OO:librdf_new_node_from_literal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_literal" "', argument " "1"" of type '" "librdf_world *""'");
4918 }
4919 arg1 = (librdf_world *)(argp1);
4920 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4921 if (!SWIG_IsOK(res2)) {
4922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_literal" "', argument " "2"" of type '" "char const *""'");
4923 }
4924 arg2 = (char *)(buf2);
4925 if (obj2) {
4926 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4927 if (!SWIG_IsOK(res3)) {
4928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_literal" "', argument " "3"" of type '" "char const *""'");
4929 }
4930 arg3 = (char *)(buf3);
4931 }
4932 if (obj3) {
4933 ecode4 = SWIG_AsVal_int(obj3, &val4);
4934 if (!SWIG_IsOK(ecode4)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "librdf_new_node_from_literal" "', argument " "4"" of type '" "int""'");
4936 }
4937 arg4 = (int)(val4);
4938 }
4939 {
4940 result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4);
4941 if(librdf_python_error_message) {
4942 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
4943 free(librdf_python_error_message);
4944 librdf_python_error_message=NULL;
4945 SWIG_fail;
4946 }
4947 if(librdf_python_warning_message) {
4948 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
4949 free(librdf_python_warning_message);
4950 librdf_python_warning_message=NULL;
4951 }
4952 }
4953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
4954 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4955 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4956 return resultobj;
4957 fail:
4958 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4959 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4960 return NULL;
4961 }
4962
4963
4964 SWIGINTERN PyObject *_wrap_librdf_new_node_from_typed_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 librdf_world *arg1 = (librdf_world *) 0 ;
4967 char *arg2 = (char *) 0 ;
4968 char *arg3 = (char *) NULL ;
4969 librdf_uri *arg4 = (librdf_uri *) NULL ;
4970 void *argp1 = 0 ;
4971 int res1 = 0 ;
4972 int res2 ;
4973 char *buf2 = 0 ;
4974 int alloc2 = 0 ;
4975 int res3 ;
4976 char *buf3 = 0 ;
4977 int alloc3 = 0 ;
4978 void *argp4 = 0 ;
4979 int res4 = 0 ;
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 PyObject * obj2 = 0 ;
4983 PyObject * obj3 = 0 ;
4984 librdf_node *result = 0 ;
4985
4986 if (!PyArg_ParseTuple(args,(char *)"OO|OO:librdf_new_node_from_typed_literal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4988 if (!SWIG_IsOK(res1)) {
4989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_typed_literal" "', argument " "1"" of type '" "librdf_world *""'");
4990 }
4991 arg1 = (librdf_world *)(argp1);
4992 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
4993 if (!SWIG_IsOK(res2)) {
4994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_typed_literal" "', argument " "2"" of type '" "char const *""'");
4995 }
4996 arg2 = (char *)(buf2);
4997 if (obj2) {
4998 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
4999 if (!SWIG_IsOK(res3)) {
5000 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_typed_literal" "', argument " "3"" of type '" "char const *""'");
5001 }
5002 arg3 = (char *)(buf3);
5003 }
5004 if (obj3) {
5005 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5006 if (!SWIG_IsOK(res4)) {
5007 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_typed_literal" "', argument " "4"" of type '" "librdf_uri *""'");
5008 }
5009 arg4 = (librdf_uri *)(argp4);
5010 }
5011 {
5012 result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4);
5013 if(librdf_python_error_message) {
5014 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5015 free(librdf_python_error_message);
5016 librdf_python_error_message=NULL;
5017 SWIG_fail;
5018 }
5019 if(librdf_python_warning_message) {
5020 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5021 free(librdf_python_warning_message);
5022 librdf_python_warning_message=NULL;
5023 }
5024 }
5025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
5026 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5027 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5028 return resultobj;
5029 fail:
5030 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5031 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
5032 return NULL;
5033 }
5034
5035
5036 SWIGINTERN PyObject *_wrap_librdf_new_node_from_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5037 PyObject *resultobj = 0;
5038 librdf_node *arg1 = (librdf_node *) 0 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 PyObject * obj0 = 0 ;
5042 librdf_node *result = 0 ;
5043
5044 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_node_from_node",&obj0)) SWIG_fail;
5045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5046 if (!SWIG_IsOK(res1)) {
5047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_node" "', argument " "1"" of type '" "librdf_node *""'");
5048 }
5049 arg1 = (librdf_node *)(argp1);
5050 {
5051 result = (librdf_node *)librdf_new_node_from_node(arg1);
5052 if(librdf_python_error_message) {
5053 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5054 free(librdf_python_error_message);
5055 librdf_python_error_message=NULL;
5056 SWIG_fail;
5057 }
5058 if(librdf_python_warning_message) {
5059 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5060 free(librdf_python_warning_message);
5061 librdf_python_warning_message=NULL;
5062 }
5063 }
5064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 SWIGINTERN PyObject *_wrap_librdf_new_node_from_blank_identifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5072 PyObject *resultobj = 0;
5073 librdf_world *arg1 = (librdf_world *) 0 ;
5074 char *arg2 = (char *) NULL ;
5075 void *argp1 = 0 ;
5076 int res1 = 0 ;
5077 int res2 ;
5078 char *buf2 = 0 ;
5079 int alloc2 = 0 ;
5080 PyObject * obj0 = 0 ;
5081 PyObject * obj1 = 0 ;
5082 librdf_node *result = 0 ;
5083
5084 if (!PyArg_ParseTuple(args,(char *)"O|O:librdf_new_node_from_blank_identifier",&obj0,&obj1)) SWIG_fail;
5085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
5086 if (!SWIG_IsOK(res1)) {
5087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "1"" of type '" "librdf_world *""'");
5088 }
5089 arg1 = (librdf_world *)(argp1);
5090 if (obj1) {
5091 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5092 if (!SWIG_IsOK(res2)) {
5093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "2"" of type '" "char const *""'");
5094 }
5095 arg2 = (char *)(buf2);
5096 }
5097 {
5098 result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2);
5099 if(librdf_python_error_message) {
5100 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5101 free(librdf_python_error_message);
5102 librdf_python_error_message=NULL;
5103 SWIG_fail;
5104 }
5105 if(librdf_python_warning_message) {
5106 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5107 free(librdf_python_warning_message);
5108 librdf_python_warning_message=NULL;
5109 }
5110 }
5111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
5112 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5113 return resultobj;
5114 fail:
5115 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5116 return NULL;
5117 }
5118
5119
5120 SWIGINTERN PyObject *_wrap_librdf_free_node(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5121 PyObject *resultobj = 0;
5122 librdf_node *arg1 = (librdf_node *) 0 ;
5123 void *argp1 = 0 ;
5124 int res1 = 0 ;
5125 PyObject * obj0 = 0 ;
5126
5127 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_node",&obj0)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_node" "', argument " "1"" of type '" "librdf_node *""'");
5131 }
5132 arg1 = (librdf_node *)(argp1);
5133 {
5134 librdf_free_node(arg1);
5135 if(librdf_python_error_message) {
5136 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5137 free(librdf_python_error_message);
5138 librdf_python_error_message=NULL;
5139 SWIG_fail;
5140 }
5141 if(librdf_python_warning_message) {
5142 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5143 free(librdf_python_warning_message);
5144 librdf_python_warning_message=NULL;
5145 }
5146 }
5147 resultobj = SWIG_Py_Void();
5148 return resultobj;
5149 fail:
5150 return NULL;
5151 }
5152
5153
5154 SWIGINTERN PyObject *_wrap_librdf_node_get_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5155 PyObject *resultobj = 0;
5156 librdf_node *arg1 = (librdf_node *) 0 ;
5157 void *argp1 = 0 ;
5158 int res1 = 0 ;
5159 PyObject * obj0 = 0 ;
5160 librdf_uri *result = 0 ;
5161
5162 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_uri",&obj0)) SWIG_fail;
5163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5164 if (!SWIG_IsOK(res1)) {
5165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_uri" "', argument " "1"" of type '" "librdf_node *""'");
5166 }
5167 arg1 = (librdf_node *)(argp1);
5168 {
5169 result = (librdf_uri *)librdf_node_get_uri(arg1);
5170 if(librdf_python_error_message) {
5171 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5172 free(librdf_python_error_message);
5173 librdf_python_error_message=NULL;
5174 SWIG_fail;
5175 }
5176 if(librdf_python_warning_message) {
5177 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5178 free(librdf_python_warning_message);
5179 librdf_python_warning_message=NULL;
5180 }
5181 }
5182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_librdf_node_get_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 librdf_node *arg1 = (librdf_node *) 0 ;
5192 void *argp1 = 0 ;
5193 int res1 = 0 ;
5194 PyObject * obj0 = 0 ;
5195 int result;
5196
5197 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_type",&obj0)) SWIG_fail;
5198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5199 if (!SWIG_IsOK(res1)) {
5200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_type" "', argument " "1"" of type '" "librdf_node *""'");
5201 }
5202 arg1 = (librdf_node *)(argp1);
5203 {
5204 result = (int)librdf_node_get_type(arg1);
5205 if(librdf_python_error_message) {
5206 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5207 free(librdf_python_error_message);
5208 librdf_python_error_message=NULL;
5209 SWIG_fail;
5210 }
5211 if(librdf_python_warning_message) {
5212 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5213 free(librdf_python_warning_message);
5214 librdf_python_warning_message=NULL;
5215 }
5216 }
5217 resultobj = SWIG_From_int((int)(result));
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5225 PyObject *resultobj = 0;
5226 librdf_node *arg1 = (librdf_node *) 0 ;
5227 void *argp1 = 0 ;
5228 int res1 = 0 ;
5229 PyObject * obj0 = 0 ;
5230 char *result = 0 ;
5231
5232 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value",&obj0)) SWIG_fail;
5233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5234 if (!SWIG_IsOK(res1)) {
5235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value" "', argument " "1"" of type '" "librdf_node *""'");
5236 }
5237 arg1 = (librdf_node *)(argp1);
5238 {
5239 result = (char *)librdf_node_get_literal_value(arg1);
5240 if(librdf_python_error_message) {
5241 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5242 free(librdf_python_error_message);
5243 librdf_python_error_message=NULL;
5244 SWIG_fail;
5245 }
5246 if(librdf_python_warning_message) {
5247 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5248 free(librdf_python_warning_message);
5249 librdf_python_warning_message=NULL;
5250 }
5251 }
5252 resultobj = SWIG_FromCharPtr((const char *)result);
5253 return resultobj;
5254 fail:
5255 return NULL;
5256 }
5257
5258
5259 SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_as_latin1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 PyObject *resultobj = 0;
5261 librdf_node *arg1 = (librdf_node *) 0 ;
5262 void *argp1 = 0 ;
5263 int res1 = 0 ;
5264 PyObject * obj0 = 0 ;
5265 char *result = 0 ;
5266
5267 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_as_latin1",&obj0)) SWIG_fail;
5268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5269 if (!SWIG_IsOK(res1)) {
5270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_as_latin1" "', argument " "1"" of type '" "librdf_node *""'");
5271 }
5272 arg1 = (librdf_node *)(argp1);
5273 {
5274 result = (char *)librdf_node_get_literal_value_as_latin1(arg1);
5275 if(librdf_python_error_message) {
5276 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5277 free(librdf_python_error_message);
5278 librdf_python_error_message=NULL;
5279 SWIG_fail;
5280 }
5281 if(librdf_python_warning_message) {
5282 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5283 free(librdf_python_warning_message);
5284 librdf_python_warning_message=NULL;
5285 }
5286 }
5287 resultobj = SWIG_FromCharPtr((const char *)result);
5288 return resultobj;
5289 fail:
5290 return NULL;
5291 }
5292
5293
5294 SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_language(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5295 PyObject *resultobj = 0;
5296 librdf_node *arg1 = (librdf_node *) 0 ;
5297 void *argp1 = 0 ;
5298 int res1 = 0 ;
5299 PyObject * obj0 = 0 ;
5300 char *result = 0 ;
5301
5302 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_language",&obj0)) SWIG_fail;
5303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5304 if (!SWIG_IsOK(res1)) {
5305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_language" "', argument " "1"" of type '" "librdf_node *""'");
5306 }
5307 arg1 = (librdf_node *)(argp1);
5308 {
5309 result = (char *)librdf_node_get_literal_value_language(arg1);
5310 if(librdf_python_error_message) {
5311 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5312 free(librdf_python_error_message);
5313 librdf_python_error_message=NULL;
5314 SWIG_fail;
5315 }
5316 if(librdf_python_warning_message) {
5317 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5318 free(librdf_python_warning_message);
5319 librdf_python_warning_message=NULL;
5320 }
5321 }
5322 resultobj = SWIG_FromCharPtr((const char *)result);
5323 return resultobj;
5324 fail:
5325 return NULL;
5326 }
5327
5328
5329 SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_datatype_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5330 PyObject *resultobj = 0;
5331 librdf_node *arg1 = (librdf_node *) 0 ;
5332 void *argp1 = 0 ;
5333 int res1 = 0 ;
5334 PyObject * obj0 = 0 ;
5335 librdf_uri *result = 0 ;
5336
5337 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_datatype_uri",&obj0)) SWIG_fail;
5338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5339 if (!SWIG_IsOK(res1)) {
5340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_datatype_uri" "', argument " "1"" of type '" "librdf_node *""'");
5341 }
5342 arg1 = (librdf_node *)(argp1);
5343 {
5344 result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1);
5345 if(librdf_python_error_message) {
5346 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5347 free(librdf_python_error_message);
5348 librdf_python_error_message=NULL;
5349 SWIG_fail;
5350 }
5351 if(librdf_python_warning_message) {
5352 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5353 free(librdf_python_warning_message);
5354 librdf_python_warning_message=NULL;
5355 }
5356 }
5357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5358 return resultobj;
5359 fail:
5360 return NULL;
5361 }
5362
5363
5364 SWIGINTERN PyObject *_wrap_librdf_node_get_literal_value_is_wf_xml(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5365 PyObject *resultobj = 0;
5366 librdf_node *arg1 = (librdf_node *) 0 ;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 PyObject * obj0 = 0 ;
5370 int result;
5371
5372 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_literal_value_is_wf_xml",&obj0)) SWIG_fail;
5373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5374 if (!SWIG_IsOK(res1)) {
5375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_is_wf_xml" "', argument " "1"" of type '" "librdf_node *""'");
5376 }
5377 arg1 = (librdf_node *)(argp1);
5378 {
5379 result = (int)librdf_node_get_literal_value_is_wf_xml(arg1);
5380 if(librdf_python_error_message) {
5381 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5382 free(librdf_python_error_message);
5383 librdf_python_error_message=NULL;
5384 SWIG_fail;
5385 }
5386 if(librdf_python_warning_message) {
5387 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5388 free(librdf_python_warning_message);
5389 librdf_python_warning_message=NULL;
5390 }
5391 }
5392 resultobj = SWIG_From_int((int)(result));
5393 return resultobj;
5394 fail:
5395 return NULL;
5396 }
5397
5398
5399 SWIGINTERN PyObject *_wrap_librdf_node_get_li_ordinal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5400 PyObject *resultobj = 0;
5401 librdf_node *arg1 = (librdf_node *) 0 ;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 PyObject * obj0 = 0 ;
5405 int result;
5406
5407 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_li_ordinal",&obj0)) SWIG_fail;
5408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5409 if (!SWIG_IsOK(res1)) {
5410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_li_ordinal" "', argument " "1"" of type '" "librdf_node *""'");
5411 }
5412 arg1 = (librdf_node *)(argp1);
5413 {
5414 result = (int)librdf_node_get_li_ordinal(arg1);
5415 if(librdf_python_error_message) {
5416 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5417 free(librdf_python_error_message);
5418 librdf_python_error_message=NULL;
5419 SWIG_fail;
5420 }
5421 if(librdf_python_warning_message) {
5422 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5423 free(librdf_python_warning_message);
5424 librdf_python_warning_message=NULL;
5425 }
5426 }
5427 resultobj = SWIG_From_int((int)(result));
5428 return resultobj;
5429 fail:
5430 return NULL;
5431 }
5432
5433
5434 SWIGINTERN PyObject *_wrap_librdf_node_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5435 PyObject *resultobj = 0;
5436 librdf_node *arg1 = (librdf_node *) 0 ;
5437 void *argp1 = 0 ;
5438 int res1 = 0 ;
5439 PyObject * obj0 = 0 ;
5440 char *result = 0 ;
5441
5442 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_to_string",&obj0)) SWIG_fail;
5443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5444 if (!SWIG_IsOK(res1)) {
5445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_to_string" "', argument " "1"" of type '" "librdf_node *""'");
5446 }
5447 arg1 = (librdf_node *)(argp1);
5448 {
5449 result = (char *)librdf_node_to_string(arg1);
5450 if(librdf_python_error_message) {
5451 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5452 free(librdf_python_error_message);
5453 librdf_python_error_message=NULL;
5454 SWIG_fail;
5455 }
5456 if(librdf_python_warning_message) {
5457 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5458 free(librdf_python_warning_message);
5459 librdf_python_warning_message=NULL;
5460 }
5461 }
5462 resultobj = SWIG_FromCharPtr((const char *)result);
5463 free((char*)result);
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 SWIGINTERN PyObject *_wrap_librdf_node_get_blank_identifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5471 PyObject *resultobj = 0;
5472 librdf_node *arg1 = (librdf_node *) 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 PyObject * obj0 = 0 ;
5476 char *result = 0 ;
5477
5478 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_get_blank_identifier",&obj0)) SWIG_fail;
5479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5480 if (!SWIG_IsOK(res1)) {
5481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_blank_identifier" "', argument " "1"" of type '" "librdf_node *""'");
5482 }
5483 arg1 = (librdf_node *)(argp1);
5484 {
5485 result = (char *)librdf_node_get_blank_identifier(arg1);
5486 if(librdf_python_error_message) {
5487 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5488 free(librdf_python_error_message);
5489 librdf_python_error_message=NULL;
5490 SWIG_fail;
5491 }
5492 if(librdf_python_warning_message) {
5493 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5494 free(librdf_python_warning_message);
5495 librdf_python_warning_message=NULL;
5496 }
5497 }
5498 resultobj = SWIG_FromCharPtr((const char *)result);
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 SWIGINTERN PyObject *_wrap_librdf_node_is_resource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5506 PyObject *resultobj = 0;
5507 librdf_node *arg1 = (librdf_node *) 0 ;
5508 void *argp1 = 0 ;
5509 int res1 = 0 ;
5510 PyObject * obj0 = 0 ;
5511 int result;
5512
5513 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_resource",&obj0)) SWIG_fail;
5514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5515 if (!SWIG_IsOK(res1)) {
5516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_resource" "', argument " "1"" of type '" "librdf_node *""'");
5517 }
5518 arg1 = (librdf_node *)(argp1);
5519 {
5520 result = (int)librdf_node_is_resource(arg1);
5521 if(librdf_python_error_message) {
5522 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5523 free(librdf_python_error_message);
5524 librdf_python_error_message=NULL;
5525 SWIG_fail;
5526 }
5527 if(librdf_python_warning_message) {
5528 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5529 free(librdf_python_warning_message);
5530 librdf_python_warning_message=NULL;
5531 }
5532 }
5533 resultobj = SWIG_From_int((int)(result));
5534 return resultobj;
5535 fail:
5536 return NULL;
5537 }
5538
5539
5540 SWIGINTERN PyObject *_wrap_librdf_node_is_literal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5541 PyObject *resultobj = 0;
5542 librdf_node *arg1 = (librdf_node *) 0 ;
5543 void *argp1 = 0 ;
5544 int res1 = 0 ;
5545 PyObject * obj0 = 0 ;
5546 int result;
5547
5548 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_literal",&obj0)) SWIG_fail;
5549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5550 if (!SWIG_IsOK(res1)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_literal" "', argument " "1"" of type '" "librdf_node *""'");
5552 }
5553 arg1 = (librdf_node *)(argp1);
5554 {
5555 result = (int)librdf_node_is_literal(arg1);
5556 if(librdf_python_error_message) {
5557 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5558 free(librdf_python_error_message);
5559 librdf_python_error_message=NULL;
5560 SWIG_fail;
5561 }
5562 if(librdf_python_warning_message) {
5563 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5564 free(librdf_python_warning_message);
5565 librdf_python_warning_message=NULL;
5566 }
5567 }
5568 resultobj = SWIG_From_int((int)(result));
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 SWIGINTERN PyObject *_wrap_librdf_node_is_blank(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5576 PyObject *resultobj = 0;
5577 librdf_node *arg1 = (librdf_node *) 0 ;
5578 void *argp1 = 0 ;
5579 int res1 = 0 ;
5580 PyObject * obj0 = 0 ;
5581 int result;
5582
5583 if (!PyArg_ParseTuple(args,(char *)"O:librdf_node_is_blank",&obj0)) SWIG_fail;
5584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5585 if (!SWIG_IsOK(res1)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_blank" "', argument " "1"" of type '" "librdf_node *""'");
5587 }
5588 arg1 = (librdf_node *)(argp1);
5589 {
5590 result = (int)librdf_node_is_blank(arg1);
5591 if(librdf_python_error_message) {
5592 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5593 free(librdf_python_error_message);
5594 librdf_python_error_message=NULL;
5595 SWIG_fail;
5596 }
5597 if(librdf_python_warning_message) {
5598 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5599 free(librdf_python_warning_message);
5600 librdf_python_warning_message=NULL;
5601 }
5602 }
5603 resultobj = SWIG_From_int((int)(result));
5604 return resultobj;
5605 fail:
5606 return NULL;
5607 }
5608
5609
5610 SWIGINTERN PyObject *_wrap_librdf_node_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5611 PyObject *resultobj = 0;
5612 librdf_node *arg1 = (librdf_node *) 0 ;
5613 librdf_node *arg2 = (librdf_node *) 0 ;
5614 void *argp1 = 0 ;
5615 int res1 = 0 ;
5616 void *argp2 = 0 ;
5617 int res2 = 0 ;
5618 PyObject * obj0 = 0 ;
5619 PyObject * obj1 = 0 ;
5620 int result;
5621
5622 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_node_equals",&obj0,&obj1)) SWIG_fail;
5623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5624 if (!SWIG_IsOK(res1)) {
5625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_equals" "', argument " "1"" of type '" "librdf_node *""'");
5626 }
5627 arg1 = (librdf_node *)(argp1);
5628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5629 if (!SWIG_IsOK(res2)) {
5630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_node_equals" "', argument " "2"" of type '" "librdf_node *""'");
5631 }
5632 arg2 = (librdf_node *)(argp2);
5633 {
5634 result = (int)librdf_node_equals(arg1,arg2);
5635 if(librdf_python_error_message) {
5636 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5637 free(librdf_python_error_message);
5638 librdf_python_error_message=NULL;
5639 SWIG_fail;
5640 }
5641 if(librdf_python_warning_message) {
5642 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5643 free(librdf_python_warning_message);
5644 librdf_python_warning_message=NULL;
5645 }
5646 }
5647 resultobj = SWIG_From_int((int)(result));
5648 return resultobj;
5649 fail:
5650 return NULL;
5651 }
5652
5653
5654 SWIGINTERN PyObject *_wrap_librdf_new_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5655 PyObject *resultobj = 0;
5656 librdf_world *arg1 = (librdf_world *) 0 ;
5657 void *argp1 = 0 ;
5658 int res1 = 0 ;
5659 PyObject * obj0 = 0 ;
5660 librdf_statement *result = 0 ;
5661
5662 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_statement",&obj0)) SWIG_fail;
5663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
5664 if (!SWIG_IsOK(res1)) {
5665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement" "', argument " "1"" of type '" "librdf_world *""'");
5666 }
5667 arg1 = (librdf_world *)(argp1);
5668 {
5669 result = (librdf_statement *)librdf_new_statement(arg1);
5670 if(librdf_python_error_message) {
5671 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5672 free(librdf_python_error_message);
5673 librdf_python_error_message=NULL;
5674 SWIG_fail;
5675 }
5676 if(librdf_python_warning_message) {
5677 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5678 free(librdf_python_warning_message);
5679 librdf_python_warning_message=NULL;
5680 }
5681 }
5682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 );
5683 return resultobj;
5684 fail:
5685 return NULL;
5686 }
5687
5688
5689 SWIGINTERN PyObject *_wrap_librdf_new_statement_from_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5690 PyObject *resultobj = 0;
5691 librdf_statement *arg1 = (librdf_statement *) 0 ;
5692 void *argp1 = 0 ;
5693 int res1 = 0 ;
5694 PyObject * obj0 = 0 ;
5695 librdf_statement *result = 0 ;
5696
5697 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_statement_from_statement",&obj0)) SWIG_fail;
5698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5699 if (!SWIG_IsOK(res1)) {
5700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_statement" "', argument " "1"" of type '" "librdf_statement *""'");
5701 }
5702 arg1 = (librdf_statement *)(argp1);
5703 {
5704 result = (librdf_statement *)librdf_new_statement_from_statement(arg1);
5705 if(librdf_python_error_message) {
5706 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5707 free(librdf_python_error_message);
5708 librdf_python_error_message=NULL;
5709 SWIG_fail;
5710 }
5711 if(librdf_python_warning_message) {
5712 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5713 free(librdf_python_warning_message);
5714 librdf_python_warning_message=NULL;
5715 }
5716 }
5717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 );
5718 return resultobj;
5719 fail:
5720 return NULL;
5721 }
5722
5723
5724 SWIGINTERN PyObject *_wrap_librdf_new_statement_from_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5725 PyObject *resultobj = 0;
5726 librdf_world *arg1 = (librdf_world *) 0 ;
5727 librdf_node *arg2 = (librdf_node *) 0 ;
5728 librdf_node *arg3 = (librdf_node *) 0 ;
5729 librdf_node *arg4 = (librdf_node *) 0 ;
5730 void *argp1 = 0 ;
5731 int res1 = 0 ;
5732 void *argp2 = 0 ;
5733 int res2 = 0 ;
5734 void *argp3 = 0 ;
5735 int res3 = 0 ;
5736 void *argp4 = 0 ;
5737 int res4 = 0 ;
5738 PyObject * obj0 = 0 ;
5739 PyObject * obj1 = 0 ;
5740 PyObject * obj2 = 0 ;
5741 PyObject * obj3 = 0 ;
5742 librdf_statement *result = 0 ;
5743
5744 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_statement_from_nodes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
5746 if (!SWIG_IsOK(res1)) {
5747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_nodes" "', argument " "1"" of type '" "librdf_world *""'");
5748 }
5749 arg1 = (librdf_world *)(argp1);
5750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5751 if (!SWIG_IsOK(res2)) {
5752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_statement_from_nodes" "', argument " "2"" of type '" "librdf_node *""'");
5753 }
5754 arg2 = (librdf_node *)(argp2);
5755 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5756 if (!SWIG_IsOK(res3)) {
5757 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_statement_from_nodes" "', argument " "3"" of type '" "librdf_node *""'");
5758 }
5759 arg3 = (librdf_node *)(argp3);
5760 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5761 if (!SWIG_IsOK(res4)) {
5762 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_statement_from_nodes" "', argument " "4"" of type '" "librdf_node *""'");
5763 }
5764 arg4 = (librdf_node *)(argp4);
5765 {
5766 result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4);
5767 if(librdf_python_error_message) {
5768 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5769 free(librdf_python_error_message);
5770 librdf_python_error_message=NULL;
5771 SWIG_fail;
5772 }
5773 if(librdf_python_warning_message) {
5774 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5775 free(librdf_python_warning_message);
5776 librdf_python_warning_message=NULL;
5777 }
5778 }
5779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_POINTER_OWN | 0 );
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 SWIGINTERN PyObject *_wrap_librdf_free_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5787 PyObject *resultobj = 0;
5788 librdf_statement *arg1 = (librdf_statement *) 0 ;
5789 void *argp1 = 0 ;
5790 int res1 = 0 ;
5791 PyObject * obj0 = 0 ;
5792
5793 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_statement",&obj0)) SWIG_fail;
5794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5795 if (!SWIG_IsOK(res1)) {
5796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_statement" "', argument " "1"" of type '" "librdf_statement *""'");
5797 }
5798 arg1 = (librdf_statement *)(argp1);
5799 {
5800 librdf_free_statement(arg1);
5801 if(librdf_python_error_message) {
5802 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5803 free(librdf_python_error_message);
5804 librdf_python_error_message=NULL;
5805 SWIG_fail;
5806 }
5807 if(librdf_python_warning_message) {
5808 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5809 free(librdf_python_warning_message);
5810 librdf_python_warning_message=NULL;
5811 }
5812 }
5813 resultobj = SWIG_Py_Void();
5814 return resultobj;
5815 fail:
5816 return NULL;
5817 }
5818
5819
5820 SWIGINTERN PyObject *_wrap_librdf_statement_get_subject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5821 PyObject *resultobj = 0;
5822 librdf_statement *arg1 = (librdf_statement *) 0 ;
5823 void *argp1 = 0 ;
5824 int res1 = 0 ;
5825 PyObject * obj0 = 0 ;
5826 librdf_node *result = 0 ;
5827
5828 if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_subject",&obj0)) SWIG_fail;
5829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5830 if (!SWIG_IsOK(res1)) {
5831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_subject" "', argument " "1"" of type '" "librdf_statement *""'");
5832 }
5833 arg1 = (librdf_statement *)(argp1);
5834 {
5835 result = (librdf_node *)librdf_statement_get_subject(arg1);
5836 if(librdf_python_error_message) {
5837 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5838 free(librdf_python_error_message);
5839 librdf_python_error_message=NULL;
5840 SWIG_fail;
5841 }
5842 if(librdf_python_warning_message) {
5843 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5844 free(librdf_python_warning_message);
5845 librdf_python_warning_message=NULL;
5846 }
5847 }
5848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_librdf_statement_set_subject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5856 PyObject *resultobj = 0;
5857 librdf_statement *arg1 = (librdf_statement *) 0 ;
5858 librdf_node *arg2 = (librdf_node *) 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 void *argp2 = 0 ;
5862 int res2 = 0 ;
5863 PyObject * obj0 = 0 ;
5864 PyObject * obj1 = 0 ;
5865
5866 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_subject",&obj0,&obj1)) SWIG_fail;
5867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5868 if (!SWIG_IsOK(res1)) {
5869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_subject" "', argument " "1"" of type '" "librdf_statement *""'");
5870 }
5871 arg1 = (librdf_statement *)(argp1);
5872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5873 if (!SWIG_IsOK(res2)) {
5874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_subject" "', argument " "2"" of type '" "librdf_node *""'");
5875 }
5876 arg2 = (librdf_node *)(argp2);
5877 {
5878 librdf_statement_set_subject(arg1,arg2);
5879 if(librdf_python_error_message) {
5880 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5881 free(librdf_python_error_message);
5882 librdf_python_error_message=NULL;
5883 SWIG_fail;
5884 }
5885 if(librdf_python_warning_message) {
5886 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5887 free(librdf_python_warning_message);
5888 librdf_python_warning_message=NULL;
5889 }
5890 }
5891 resultobj = SWIG_Py_Void();
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 SWIGINTERN PyObject *_wrap_librdf_statement_get_predicate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5899 PyObject *resultobj = 0;
5900 librdf_statement *arg1 = (librdf_statement *) 0 ;
5901 void *argp1 = 0 ;
5902 int res1 = 0 ;
5903 PyObject * obj0 = 0 ;
5904 librdf_node *result = 0 ;
5905
5906 if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_predicate",&obj0)) SWIG_fail;
5907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5908 if (!SWIG_IsOK(res1)) {
5909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_predicate" "', argument " "1"" of type '" "librdf_statement *""'");
5910 }
5911 arg1 = (librdf_statement *)(argp1);
5912 {
5913 result = (librdf_node *)librdf_statement_get_predicate(arg1);
5914 if(librdf_python_error_message) {
5915 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5916 free(librdf_python_error_message);
5917 librdf_python_error_message=NULL;
5918 SWIG_fail;
5919 }
5920 if(librdf_python_warning_message) {
5921 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5922 free(librdf_python_warning_message);
5923 librdf_python_warning_message=NULL;
5924 }
5925 }
5926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 SWIGINTERN PyObject *_wrap_librdf_statement_set_predicate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5934 PyObject *resultobj = 0;
5935 librdf_statement *arg1 = (librdf_statement *) 0 ;
5936 librdf_node *arg2 = (librdf_node *) 0 ;
5937 void *argp1 = 0 ;
5938 int res1 = 0 ;
5939 void *argp2 = 0 ;
5940 int res2 = 0 ;
5941 PyObject * obj0 = 0 ;
5942 PyObject * obj1 = 0 ;
5943
5944 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_predicate",&obj0,&obj1)) SWIG_fail;
5945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_predicate" "', argument " "1"" of type '" "librdf_statement *""'");
5948 }
5949 arg1 = (librdf_statement *)(argp1);
5950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5951 if (!SWIG_IsOK(res2)) {
5952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_predicate" "', argument " "2"" of type '" "librdf_node *""'");
5953 }
5954 arg2 = (librdf_node *)(argp2);
5955 {
5956 librdf_statement_set_predicate(arg1,arg2);
5957 if(librdf_python_error_message) {
5958 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5959 free(librdf_python_error_message);
5960 librdf_python_error_message=NULL;
5961 SWIG_fail;
5962 }
5963 if(librdf_python_warning_message) {
5964 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
5965 free(librdf_python_warning_message);
5966 librdf_python_warning_message=NULL;
5967 }
5968 }
5969 resultobj = SWIG_Py_Void();
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 SWIGINTERN PyObject *_wrap_librdf_statement_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5977 PyObject *resultobj = 0;
5978 librdf_statement *arg1 = (librdf_statement *) 0 ;
5979 void *argp1 = 0 ;
5980 int res1 = 0 ;
5981 PyObject * obj0 = 0 ;
5982 librdf_node *result = 0 ;
5983
5984 if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_get_object",&obj0)) SWIG_fail;
5985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5986 if (!SWIG_IsOK(res1)) {
5987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_object" "', argument " "1"" of type '" "librdf_statement *""'");
5988 }
5989 arg1 = (librdf_statement *)(argp1);
5990 {
5991 result = (librdf_node *)librdf_statement_get_object(arg1);
5992 if(librdf_python_error_message) {
5993 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
5994 free(librdf_python_error_message);
5995 librdf_python_error_message=NULL;
5996 SWIG_fail;
5997 }
5998 if(librdf_python_warning_message) {
5999 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6000 free(librdf_python_warning_message);
6001 librdf_python_warning_message=NULL;
6002 }
6003 }
6004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
6005 return resultobj;
6006 fail:
6007 return NULL;
6008 }
6009
6010
6011 SWIGINTERN PyObject *_wrap_librdf_statement_set_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6012 PyObject *resultobj = 0;
6013 librdf_statement *arg1 = (librdf_statement *) 0 ;
6014 librdf_node *arg2 = (librdf_node *) 0 ;
6015 void *argp1 = 0 ;
6016 int res1 = 0 ;
6017 void *argp2 = 0 ;
6018 int res2 = 0 ;
6019 PyObject * obj0 = 0 ;
6020 PyObject * obj1 = 0 ;
6021
6022 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_set_object",&obj0,&obj1)) SWIG_fail;
6023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6024 if (!SWIG_IsOK(res1)) {
6025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_object" "', argument " "1"" of type '" "librdf_statement *""'");
6026 }
6027 arg1 = (librdf_statement *)(argp1);
6028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6029 if (!SWIG_IsOK(res2)) {
6030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_object" "', argument " "2"" of type '" "librdf_node *""'");
6031 }
6032 arg2 = (librdf_node *)(argp2);
6033 {
6034 librdf_statement_set_object(arg1,arg2);
6035 if(librdf_python_error_message) {
6036 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6037 free(librdf_python_error_message);
6038 librdf_python_error_message=NULL;
6039 SWIG_fail;
6040 }
6041 if(librdf_python_warning_message) {
6042 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6043 free(librdf_python_warning_message);
6044 librdf_python_warning_message=NULL;
6045 }
6046 }
6047 resultobj = SWIG_Py_Void();
6048 return resultobj;
6049 fail:
6050 return NULL;
6051 }
6052
6053
6054 SWIGINTERN PyObject *_wrap_librdf_statement_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6055 PyObject *resultobj = 0;
6056 librdf_statement *arg1 = (librdf_statement *) 0 ;
6057 librdf_statement *arg2 = (librdf_statement *) 0 ;
6058 void *argp1 = 0 ;
6059 int res1 = 0 ;
6060 void *argp2 = 0 ;
6061 int res2 = 0 ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 int result;
6065
6066 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_equals",&obj0,&obj1)) SWIG_fail;
6067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6068 if (!SWIG_IsOK(res1)) {
6069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_equals" "', argument " "1"" of type '" "librdf_statement *""'");
6070 }
6071 arg1 = (librdf_statement *)(argp1);
6072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6073 if (!SWIG_IsOK(res2)) {
6074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_equals" "', argument " "2"" of type '" "librdf_statement *""'");
6075 }
6076 arg2 = (librdf_statement *)(argp2);
6077 {
6078 result = (int)librdf_statement_equals(arg1,arg2);
6079 if(librdf_python_error_message) {
6080 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6081 free(librdf_python_error_message);
6082 librdf_python_error_message=NULL;
6083 SWIG_fail;
6084 }
6085 if(librdf_python_warning_message) {
6086 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6087 free(librdf_python_warning_message);
6088 librdf_python_warning_message=NULL;
6089 }
6090 }
6091 resultobj = SWIG_From_int((int)(result));
6092 return resultobj;
6093 fail:
6094 return NULL;
6095 }
6096
6097
6098 SWIGINTERN PyObject *_wrap_librdf_statement_match(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6099 PyObject *resultobj = 0;
6100 librdf_statement *arg1 = (librdf_statement *) 0 ;
6101 librdf_statement *arg2 = (librdf_statement *) 0 ;
6102 void *argp1 = 0 ;
6103 int res1 = 0 ;
6104 void *argp2 = 0 ;
6105 int res2 = 0 ;
6106 PyObject * obj0 = 0 ;
6107 PyObject * obj1 = 0 ;
6108 int result;
6109
6110 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_statement_match",&obj0,&obj1)) SWIG_fail;
6111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_match" "', argument " "1"" of type '" "librdf_statement *""'");
6114 }
6115 arg1 = (librdf_statement *)(argp1);
6116 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6117 if (!SWIG_IsOK(res2)) {
6118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_match" "', argument " "2"" of type '" "librdf_statement *""'");
6119 }
6120 arg2 = (librdf_statement *)(argp2);
6121 {
6122 result = (int)librdf_statement_match(arg1,arg2);
6123 if(librdf_python_error_message) {
6124 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6125 free(librdf_python_error_message);
6126 librdf_python_error_message=NULL;
6127 SWIG_fail;
6128 }
6129 if(librdf_python_warning_message) {
6130 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6131 free(librdf_python_warning_message);
6132 librdf_python_warning_message=NULL;
6133 }
6134 }
6135 resultobj = SWIG_From_int((int)(result));
6136 return resultobj;
6137 fail:
6138 return NULL;
6139 }
6140
6141
6142 SWIGINTERN PyObject *_wrap_librdf_statement_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6143 PyObject *resultobj = 0;
6144 librdf_statement *arg1 = (librdf_statement *) 0 ;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 PyObject * obj0 = 0 ;
6148 char *result = 0 ;
6149
6150 if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_to_string",&obj0)) SWIG_fail;
6151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_to_string" "', argument " "1"" of type '" "librdf_statement *""'");
6154 }
6155 arg1 = (librdf_statement *)(argp1);
6156 {
6157 result = (char *)librdf_statement_to_string(arg1);
6158 if(librdf_python_error_message) {
6159 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6160 free(librdf_python_error_message);
6161 librdf_python_error_message=NULL;
6162 SWIG_fail;
6163 }
6164 if(librdf_python_warning_message) {
6165 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6166 free(librdf_python_warning_message);
6167 librdf_python_warning_message=NULL;
6168 }
6169 }
6170 resultobj = SWIG_FromCharPtr((const char *)result);
6171 free((char*)result);
6172 return resultobj;
6173 fail:
6174 return NULL;
6175 }
6176
6177
6178 SWIGINTERN PyObject *_wrap_librdf_statement_is_complete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6179 PyObject *resultobj = 0;
6180 librdf_statement *arg1 = (librdf_statement *) 0 ;
6181 void *argp1 = 0 ;
6182 int res1 = 0 ;
6183 PyObject * obj0 = 0 ;
6184 int result;
6185
6186 if (!PyArg_ParseTuple(args,(char *)"O:librdf_statement_is_complete",&obj0)) SWIG_fail;
6187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6188 if (!SWIG_IsOK(res1)) {
6189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_is_complete" "', argument " "1"" of type '" "librdf_statement *""'");
6190 }
6191 arg1 = (librdf_statement *)(argp1);
6192 {
6193 result = (int)librdf_statement_is_complete(arg1);
6194 if(librdf_python_error_message) {
6195 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6196 free(librdf_python_error_message);
6197 librdf_python_error_message=NULL;
6198 SWIG_fail;
6199 }
6200 if(librdf_python_warning_message) {
6201 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6202 free(librdf_python_warning_message);
6203 librdf_python_warning_message=NULL;
6204 }
6205 }
6206 resultobj = SWIG_From_int((int)(result));
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 SWIGINTERN PyObject *_wrap_librdf_new_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6214 PyObject *resultobj = 0;
6215 librdf_world *arg1 = (librdf_world *) 0 ;
6216 librdf_storage *arg2 = (librdf_storage *) 0 ;
6217 char *arg3 = (char *) 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 void *argp2 = 0 ;
6221 int res2 = 0 ;
6222 int res3 ;
6223 char *buf3 = 0 ;
6224 int alloc3 = 0 ;
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 PyObject * obj2 = 0 ;
6228 librdf_model *result = 0 ;
6229
6230 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_model",&obj0,&obj1,&obj2)) SWIG_fail;
6231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6232 if (!SWIG_IsOK(res1)) {
6233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model" "', argument " "1"" of type '" "librdf_world *""'");
6234 }
6235 arg1 = (librdf_world *)(argp1);
6236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
6237 if (!SWIG_IsOK(res2)) {
6238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model" "', argument " "2"" of type '" "librdf_storage *""'");
6239 }
6240 arg2 = (librdf_storage *)(argp2);
6241 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
6242 if (!SWIG_IsOK(res3)) {
6243 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model" "', argument " "3"" of type '" "char *""'");
6244 }
6245 arg3 = (char *)(buf3);
6246 {
6247 result = (librdf_model *)librdf_new_model(arg1,arg2,arg3);
6248 if(librdf_python_error_message) {
6249 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6250 free(librdf_python_error_message);
6251 librdf_python_error_message=NULL;
6252 SWIG_fail;
6253 }
6254 if(librdf_python_warning_message) {
6255 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6256 free(librdf_python_warning_message);
6257 librdf_python_warning_message=NULL;
6258 }
6259 }
6260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 );
6261 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6262 return resultobj;
6263 fail:
6264 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_librdf_new_model_with_options(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6270 PyObject *resultobj = 0;
6271 librdf_world *arg1 = (librdf_world *) 0 ;
6272 librdf_storage *arg2 = (librdf_storage *) 0 ;
6273 librdf_hash *arg3 = (librdf_hash *) 0 ;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 void *argp2 = 0 ;
6277 int res2 = 0 ;
6278 void *argp3 = 0 ;
6279 int res3 = 0 ;
6280 PyObject * obj0 = 0 ;
6281 PyObject * obj1 = 0 ;
6282 PyObject * obj2 = 0 ;
6283 librdf_model *result = 0 ;
6284
6285 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_new_model_with_options",&obj0,&obj1,&obj2)) SWIG_fail;
6286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6287 if (!SWIG_IsOK(res1)) {
6288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_with_options" "', argument " "1"" of type '" "librdf_world *""'");
6289 }
6290 arg1 = (librdf_world *)(argp1);
6291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
6292 if (!SWIG_IsOK(res2)) {
6293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model_with_options" "', argument " "2"" of type '" "librdf_storage *""'");
6294 }
6295 arg2 = (librdf_storage *)(argp2);
6296 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
6297 if (!SWIG_IsOK(res3)) {
6298 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model_with_options" "', argument " "3"" of type '" "librdf_hash *""'");
6299 }
6300 arg3 = (librdf_hash *)(argp3);
6301 {
6302 result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3);
6303 if(librdf_python_error_message) {
6304 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6305 free(librdf_python_error_message);
6306 librdf_python_error_message=NULL;
6307 SWIG_fail;
6308 }
6309 if(librdf_python_warning_message) {
6310 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6311 free(librdf_python_warning_message);
6312 librdf_python_warning_message=NULL;
6313 }
6314 }
6315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 );
6316 return resultobj;
6317 fail:
6318 return NULL;
6319 }
6320
6321
6322 SWIGINTERN PyObject *_wrap_librdf_new_model_from_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6323 PyObject *resultobj = 0;
6324 librdf_model *arg1 = (librdf_model *) 0 ;
6325 void *argp1 = 0 ;
6326 int res1 = 0 ;
6327 PyObject * obj0 = 0 ;
6328 librdf_model *result = 0 ;
6329
6330 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_model_from_model",&obj0)) SWIG_fail;
6331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6332 if (!SWIG_IsOK(res1)) {
6333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_from_model" "', argument " "1"" of type '" "librdf_model *""'");
6334 }
6335 arg1 = (librdf_model *)(argp1);
6336 {
6337 result = (librdf_model *)librdf_new_model_from_model(arg1);
6338 if(librdf_python_error_message) {
6339 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6340 free(librdf_python_error_message);
6341 librdf_python_error_message=NULL;
6342 SWIG_fail;
6343 }
6344 if(librdf_python_warning_message) {
6345 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6346 free(librdf_python_warning_message);
6347 librdf_python_warning_message=NULL;
6348 }
6349 }
6350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_POINTER_OWN | 0 );
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 SWIGINTERN PyObject *_wrap_librdf_free_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6358 PyObject *resultobj = 0;
6359 librdf_model *arg1 = (librdf_model *) 0 ;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 PyObject * obj0 = 0 ;
6363
6364 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_model",&obj0)) SWIG_fail;
6365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6366 if (!SWIG_IsOK(res1)) {
6367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_model" "', argument " "1"" of type '" "librdf_model *""'");
6368 }
6369 arg1 = (librdf_model *)(argp1);
6370 {
6371 librdf_free_model(arg1);
6372 if(librdf_python_error_message) {
6373 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6374 free(librdf_python_error_message);
6375 librdf_python_error_message=NULL;
6376 SWIG_fail;
6377 }
6378 if(librdf_python_warning_message) {
6379 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6380 free(librdf_python_warning_message);
6381 librdf_python_warning_message=NULL;
6382 }
6383 }
6384 resultobj = SWIG_Py_Void();
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 SWIGINTERN PyObject *_wrap_librdf_model_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6392 PyObject *resultobj = 0;
6393 librdf_model *arg1 = (librdf_model *) 0 ;
6394 void *argp1 = 0 ;
6395 int res1 = 0 ;
6396 PyObject * obj0 = 0 ;
6397 int result;
6398
6399 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_size",&obj0)) SWIG_fail;
6400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6401 if (!SWIG_IsOK(res1)) {
6402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_size" "', argument " "1"" of type '" "librdf_model *""'");
6403 }
6404 arg1 = (librdf_model *)(argp1);
6405 {
6406 result = (int)librdf_model_size(arg1);
6407 if(librdf_python_error_message) {
6408 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6409 free(librdf_python_error_message);
6410 librdf_python_error_message=NULL;
6411 SWIG_fail;
6412 }
6413 if(librdf_python_warning_message) {
6414 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6415 free(librdf_python_warning_message);
6416 librdf_python_warning_message=NULL;
6417 }
6418 }
6419 resultobj = SWIG_From_int((int)(result));
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_librdf_model_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6427 PyObject *resultobj = 0;
6428 librdf_model *arg1 = (librdf_model *) 0 ;
6429 librdf_node *arg2 = (librdf_node *) 0 ;
6430 librdf_node *arg3 = (librdf_node *) 0 ;
6431 librdf_node *arg4 = (librdf_node *) 0 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 void *argp2 = 0 ;
6435 int res2 = 0 ;
6436 void *argp3 = 0 ;
6437 int res3 = 0 ;
6438 void *argp4 = 0 ;
6439 int res4 = 0 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 PyObject * obj3 = 0 ;
6444 int result;
6445
6446 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_model_add",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6448 if (!SWIG_IsOK(res1)) {
6449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add" "', argument " "1"" of type '" "librdf_model *""'");
6450 }
6451 arg1 = (librdf_model *)(argp1);
6452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6453 if (!SWIG_IsOK(res2)) {
6454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add" "', argument " "2"" of type '" "librdf_node *""'");
6455 }
6456 arg2 = (librdf_node *)(argp2);
6457 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6458 if (!SWIG_IsOK(res3)) {
6459 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add" "', argument " "3"" of type '" "librdf_node *""'");
6460 }
6461 arg3 = (librdf_node *)(argp3);
6462 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6463 if (!SWIG_IsOK(res4)) {
6464 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add" "', argument " "4"" of type '" "librdf_node *""'");
6465 }
6466 arg4 = (librdf_node *)(argp4);
6467 {
6468 result = (int)librdf_model_add(arg1,arg2,arg3,arg4);
6469 if(librdf_python_error_message) {
6470 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6471 free(librdf_python_error_message);
6472 librdf_python_error_message=NULL;
6473 SWIG_fail;
6474 }
6475 if(librdf_python_warning_message) {
6476 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6477 free(librdf_python_warning_message);
6478 librdf_python_warning_message=NULL;
6479 }
6480 }
6481 resultobj = SWIG_From_int((int)(result));
6482 return resultobj;
6483 fail:
6484 return NULL;
6485 }
6486
6487
6488 SWIGINTERN PyObject *_wrap_librdf_model_add_string_literal_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6489 PyObject *resultobj = 0;
6490 librdf_model *arg1 = (librdf_model *) 0 ;
6491 librdf_node *arg2 = (librdf_node *) 0 ;
6492 librdf_node *arg3 = (librdf_node *) 0 ;
6493 char *arg4 = (char *) 0 ;
6494 char *arg5 = (char *) NULL ;
6495 int arg6 = (int) 0 ;
6496 void *argp1 = 0 ;
6497 int res1 = 0 ;
6498 void *argp2 = 0 ;
6499 int res2 = 0 ;
6500 void *argp3 = 0 ;
6501 int res3 = 0 ;
6502 int res4 ;
6503 char *buf4 = 0 ;
6504 int alloc4 = 0 ;
6505 int res5 ;
6506 char *buf5 = 0 ;
6507 int alloc5 = 0 ;
6508 int val6 ;
6509 int ecode6 = 0 ;
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
6512 PyObject * obj2 = 0 ;
6513 PyObject * obj3 = 0 ;
6514 PyObject * obj4 = 0 ;
6515 PyObject * obj5 = 0 ;
6516 int result;
6517
6518 if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:librdf_model_add_string_literal_statement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_string_literal_statement" "', argument " "1"" of type '" "librdf_model *""'");
6522 }
6523 arg1 = (librdf_model *)(argp1);
6524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6525 if (!SWIG_IsOK(res2)) {
6526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_string_literal_statement" "', argument " "2"" of type '" "librdf_node *""'");
6527 }
6528 arg2 = (librdf_node *)(argp2);
6529 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6530 if (!SWIG_IsOK(res3)) {
6531 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_string_literal_statement" "', argument " "3"" of type '" "librdf_node *""'");
6532 }
6533 arg3 = (librdf_node *)(argp3);
6534 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
6535 if (!SWIG_IsOK(res4)) {
6536 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_string_literal_statement" "', argument " "4"" of type '" "char const *""'");
6537 }
6538 arg4 = (char *)(buf4);
6539 if (obj4) {
6540 res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
6541 if (!SWIG_IsOK(res5)) {
6542 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_string_literal_statement" "', argument " "5"" of type '" "char const *""'");
6543 }
6544 arg5 = (char *)(buf5);
6545 }
6546 if (obj5) {
6547 ecode6 = SWIG_AsVal_int(obj5, &val6);
6548 if (!SWIG_IsOK(ecode6)) {
6549 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "librdf_model_add_string_literal_statement" "', argument " "6"" of type '" "int""'");
6550 }
6551 arg6 = (int)(val6);
6552 }
6553 {
6554 result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6);
6555 if(librdf_python_error_message) {
6556 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6557 free(librdf_python_error_message);
6558 librdf_python_error_message=NULL;
6559 SWIG_fail;
6560 }
6561 if(librdf_python_warning_message) {
6562 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6563 free(librdf_python_warning_message);
6564 librdf_python_warning_message=NULL;
6565 }
6566 }
6567 resultobj = SWIG_From_int((int)(result));
6568 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6569 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
6570 return resultobj;
6571 fail:
6572 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6573 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
6574 return NULL;
6575 }
6576
6577
6578 SWIGINTERN PyObject *_wrap_librdf_model_add_typed_literal_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6579 PyObject *resultobj = 0;
6580 librdf_model *arg1 = (librdf_model *) 0 ;
6581 librdf_node *arg2 = (librdf_node *) 0 ;
6582 librdf_node *arg3 = (librdf_node *) 0 ;
6583 char *arg4 = (char *) 0 ;
6584 char *arg5 = (char *) 0 ;
6585 librdf_uri *arg6 = (librdf_uri *) NULL ;
6586 void *argp1 = 0 ;
6587 int res1 = 0 ;
6588 void *argp2 = 0 ;
6589 int res2 = 0 ;
6590 void *argp3 = 0 ;
6591 int res3 = 0 ;
6592 int res4 ;
6593 char *buf4 = 0 ;
6594 int alloc4 = 0 ;
6595 int res5 ;
6596 char *buf5 = 0 ;
6597 int alloc5 = 0 ;
6598 void *argp6 = 0 ;
6599 int res6 = 0 ;
6600 PyObject * obj0 = 0 ;
6601 PyObject * obj1 = 0 ;
6602 PyObject * obj2 = 0 ;
6603 PyObject * obj3 = 0 ;
6604 PyObject * obj4 = 0 ;
6605 PyObject * obj5 = 0 ;
6606 int result;
6607
6608 if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:librdf_model_add_typed_literal_statement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6610 if (!SWIG_IsOK(res1)) {
6611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "1"" of type '" "librdf_model *""'");
6612 }
6613 arg1 = (librdf_model *)(argp1);
6614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6615 if (!SWIG_IsOK(res2)) {
6616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "2"" of type '" "librdf_node *""'");
6617 }
6618 arg2 = (librdf_node *)(argp2);
6619 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6620 if (!SWIG_IsOK(res3)) {
6621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "3"" of type '" "librdf_node *""'");
6622 }
6623 arg3 = (librdf_node *)(argp3);
6624 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
6625 if (!SWIG_IsOK(res4)) {
6626 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "4"" of type '" "char *""'");
6627 }
6628 arg4 = (char *)(buf4);
6629 res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
6630 if (!SWIG_IsOK(res5)) {
6631 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "5"" of type '" "char *""'");
6632 }
6633 arg5 = (char *)(buf5);
6634 if (obj5) {
6635 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6636 if (!SWIG_IsOK(res6)) {
6637 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "6"" of type '" "librdf_uri *""'");
6638 }
6639 arg6 = (librdf_uri *)(argp6);
6640 }
6641 {
6642 result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6);
6643 if(librdf_python_error_message) {
6644 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6645 free(librdf_python_error_message);
6646 librdf_python_error_message=NULL;
6647 SWIG_fail;
6648 }
6649 if(librdf_python_warning_message) {
6650 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6651 free(librdf_python_warning_message);
6652 librdf_python_warning_message=NULL;
6653 }
6654 }
6655 resultobj = SWIG_From_int((int)(result));
6656 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6657 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
6658 return resultobj;
6659 fail:
6660 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6661 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
6662 return NULL;
6663 }
6664
6665
6666 SWIGINTERN PyObject *_wrap_librdf_model_add_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6667 PyObject *resultobj = 0;
6668 librdf_model *arg1 = (librdf_model *) 0 ;
6669 librdf_statement *arg2 = (librdf_statement *) 0 ;
6670 void *argp1 = 0 ;
6671 int res1 = 0 ;
6672 void *argp2 = 0 ;
6673 int res2 = 0 ;
6674 PyObject * obj0 = 0 ;
6675 PyObject * obj1 = 0 ;
6676 int result;
6677
6678 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_add_statement",&obj0,&obj1)) SWIG_fail;
6679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6680 if (!SWIG_IsOK(res1)) {
6681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statement" "', argument " "1"" of type '" "librdf_model *""'");
6682 }
6683 arg1 = (librdf_model *)(argp1);
6684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6685 if (!SWIG_IsOK(res2)) {
6686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statement" "', argument " "2"" of type '" "librdf_statement *""'");
6687 }
6688 arg2 = (librdf_statement *)(argp2);
6689 {
6690 result = (int)librdf_model_add_statement(arg1,arg2);
6691 if(librdf_python_error_message) {
6692 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6693 free(librdf_python_error_message);
6694 librdf_python_error_message=NULL;
6695 SWIG_fail;
6696 }
6697 if(librdf_python_warning_message) {
6698 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6699 free(librdf_python_warning_message);
6700 librdf_python_warning_message=NULL;
6701 }
6702 }
6703 resultobj = SWIG_From_int((int)(result));
6704 return resultobj;
6705 fail:
6706 return NULL;
6707 }
6708
6709
6710 SWIGINTERN PyObject *_wrap_librdf_model_add_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6711 PyObject *resultobj = 0;
6712 librdf_model *arg1 = (librdf_model *) 0 ;
6713 librdf_stream *arg2 = (librdf_stream *) 0 ;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 void *argp2 = 0 ;
6717 int res2 = 0 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 int result;
6721
6722 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_add_statements",&obj0,&obj1)) SWIG_fail;
6723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6724 if (!SWIG_IsOK(res1)) {
6725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statements" "', argument " "1"" of type '" "librdf_model *""'");
6726 }
6727 arg1 = (librdf_model *)(argp1);
6728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
6729 if (!SWIG_IsOK(res2)) {
6730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statements" "', argument " "2"" of type '" "librdf_stream *""'");
6731 }
6732 arg2 = (librdf_stream *)(argp2);
6733 {
6734 result = (int)librdf_model_add_statements(arg1,arg2);
6735 if(librdf_python_error_message) {
6736 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6737 free(librdf_python_error_message);
6738 librdf_python_error_message=NULL;
6739 SWIG_fail;
6740 }
6741 if(librdf_python_warning_message) {
6742 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6743 free(librdf_python_warning_message);
6744 librdf_python_warning_message=NULL;
6745 }
6746 }
6747 resultobj = SWIG_From_int((int)(result));
6748 return resultobj;
6749 fail:
6750 return NULL;
6751 }
6752
6753
6754 SWIGINTERN PyObject *_wrap_librdf_model_remove_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6755 PyObject *resultobj = 0;
6756 librdf_model *arg1 = (librdf_model *) 0 ;
6757 librdf_statement *arg2 = (librdf_statement *) 0 ;
6758 void *argp1 = 0 ;
6759 int res1 = 0 ;
6760 void *argp2 = 0 ;
6761 int res2 = 0 ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 int result;
6765
6766 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_remove_statement",&obj0,&obj1)) SWIG_fail;
6767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6768 if (!SWIG_IsOK(res1)) {
6769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_remove_statement" "', argument " "1"" of type '" "librdf_model *""'");
6770 }
6771 arg1 = (librdf_model *)(argp1);
6772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6773 if (!SWIG_IsOK(res2)) {
6774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_remove_statement" "', argument " "2"" of type '" "librdf_statement *""'");
6775 }
6776 arg2 = (librdf_statement *)(argp2);
6777 {
6778 result = (int)librdf_model_remove_statement(arg1,arg2);
6779 if(librdf_python_error_message) {
6780 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6781 free(librdf_python_error_message);
6782 librdf_python_error_message=NULL;
6783 SWIG_fail;
6784 }
6785 if(librdf_python_warning_message) {
6786 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6787 free(librdf_python_warning_message);
6788 librdf_python_warning_message=NULL;
6789 }
6790 }
6791 resultobj = SWIG_From_int((int)(result));
6792 return resultobj;
6793 fail:
6794 return NULL;
6795 }
6796
6797
6798 SWIGINTERN PyObject *_wrap_librdf_model_contains_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6799 PyObject *resultobj = 0;
6800 librdf_model *arg1 = (librdf_model *) 0 ;
6801 librdf_statement *arg2 = (librdf_statement *) 0 ;
6802 void *argp1 = 0 ;
6803 int res1 = 0 ;
6804 void *argp2 = 0 ;
6805 int res2 = 0 ;
6806 PyObject * obj0 = 0 ;
6807 PyObject * obj1 = 0 ;
6808 int result;
6809
6810 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_contains_statement",&obj0,&obj1)) SWIG_fail;
6811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6812 if (!SWIG_IsOK(res1)) {
6813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_statement" "', argument " "1"" of type '" "librdf_model *""'");
6814 }
6815 arg1 = (librdf_model *)(argp1);
6816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6817 if (!SWIG_IsOK(res2)) {
6818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_statement" "', argument " "2"" of type '" "librdf_statement *""'");
6819 }
6820 arg2 = (librdf_statement *)(argp2);
6821 {
6822 result = (int)librdf_model_contains_statement(arg1,arg2);
6823 if(librdf_python_error_message) {
6824 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6825 free(librdf_python_error_message);
6826 librdf_python_error_message=NULL;
6827 SWIG_fail;
6828 }
6829 if(librdf_python_warning_message) {
6830 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6831 free(librdf_python_warning_message);
6832 librdf_python_warning_message=NULL;
6833 }
6834 }
6835 resultobj = SWIG_From_int((int)(result));
6836 return resultobj;
6837 fail:
6838 return NULL;
6839 }
6840
6841
6842 SWIGINTERN PyObject *_wrap_librdf_model_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6843 PyObject *resultobj = 0;
6844 librdf_model *arg1 = (librdf_model *) 0 ;
6845 void *argp1 = 0 ;
6846 int res1 = 0 ;
6847 PyObject * obj0 = 0 ;
6848 librdf_stream *result = 0 ;
6849
6850 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_as_stream",&obj0)) SWIG_fail;
6851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6852 if (!SWIG_IsOK(res1)) {
6853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_as_stream" "', argument " "1"" of type '" "librdf_model *""'");
6854 }
6855 arg1 = (librdf_model *)(argp1);
6856 {
6857 result = (librdf_stream *)librdf_model_as_stream(arg1);
6858 if(librdf_python_error_message) {
6859 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6860 free(librdf_python_error_message);
6861 librdf_python_error_message=NULL;
6862 SWIG_fail;
6863 }
6864 if(librdf_python_warning_message) {
6865 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6866 free(librdf_python_warning_message);
6867 librdf_python_warning_message=NULL;
6868 }
6869 }
6870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
6871 return resultobj;
6872 fail:
6873 return NULL;
6874 }
6875
6876
6877 SWIGINTERN PyObject *_wrap_librdf_model_find_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6878 PyObject *resultobj = 0;
6879 librdf_model *arg1 = (librdf_model *) 0 ;
6880 librdf_statement *arg2 = (librdf_statement *) 0 ;
6881 void *argp1 = 0 ;
6882 int res1 = 0 ;
6883 void *argp2 = 0 ;
6884 int res2 = 0 ;
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 librdf_stream *result = 0 ;
6888
6889 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_find_statements",&obj0,&obj1)) SWIG_fail;
6890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6891 if (!SWIG_IsOK(res1)) {
6892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements" "', argument " "1"" of type '" "librdf_model *""'");
6893 }
6894 arg1 = (librdf_model *)(argp1);
6895 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6896 if (!SWIG_IsOK(res2)) {
6897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements" "', argument " "2"" of type '" "librdf_statement *""'");
6898 }
6899 arg2 = (librdf_statement *)(argp2);
6900 {
6901 result = (librdf_stream *)librdf_model_find_statements(arg1,arg2);
6902 if(librdf_python_error_message) {
6903 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6904 free(librdf_python_error_message);
6905 librdf_python_error_message=NULL;
6906 SWIG_fail;
6907 }
6908 if(librdf_python_warning_message) {
6909 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6910 free(librdf_python_warning_message);
6911 librdf_python_warning_message=NULL;
6912 }
6913 }
6914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
6915 return resultobj;
6916 fail:
6917 return NULL;
6918 }
6919
6920
6921 SWIGINTERN PyObject *_wrap_librdf_model_find_statements_in_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6922 PyObject *resultobj = 0;
6923 librdf_model *arg1 = (librdf_model *) 0 ;
6924 librdf_statement *arg2 = (librdf_statement *) 0 ;
6925 librdf_node *arg3 = (librdf_node *) NULL ;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 void *argp2 = 0 ;
6929 int res2 = 0 ;
6930 void *argp3 = 0 ;
6931 int res3 = 0 ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 PyObject * obj2 = 0 ;
6935 librdf_stream *result = 0 ;
6936
6937 if (!PyArg_ParseTuple(args,(char *)"OO|O:librdf_model_find_statements_in_context",&obj0,&obj1,&obj2)) SWIG_fail;
6938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6939 if (!SWIG_IsOK(res1)) {
6940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements_in_context" "', argument " "1"" of type '" "librdf_model *""'");
6941 }
6942 arg1 = (librdf_model *)(argp1);
6943 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
6944 if (!SWIG_IsOK(res2)) {
6945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements_in_context" "', argument " "2"" of type '" "librdf_statement *""'");
6946 }
6947 arg2 = (librdf_statement *)(argp2);
6948 if (obj2) {
6949 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6950 if (!SWIG_IsOK(res3)) {
6951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_find_statements_in_context" "', argument " "3"" of type '" "librdf_node *""'");
6952 }
6953 arg3 = (librdf_node *)(argp3);
6954 }
6955 {
6956 result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3);
6957 if(librdf_python_error_message) {
6958 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
6959 free(librdf_python_error_message);
6960 librdf_python_error_message=NULL;
6961 SWIG_fail;
6962 }
6963 if(librdf_python_warning_message) {
6964 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
6965 free(librdf_python_warning_message);
6966 librdf_python_warning_message=NULL;
6967 }
6968 }
6969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
6970 return resultobj;
6971 fail:
6972 return NULL;
6973 }
6974
6975
6976 SWIGINTERN PyObject *_wrap_librdf_model_get_sources(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6977 PyObject *resultobj = 0;
6978 librdf_model *arg1 = (librdf_model *) 0 ;
6979 librdf_node *arg2 = (librdf_node *) 0 ;
6980 librdf_node *arg3 = (librdf_node *) 0 ;
6981 void *argp1 = 0 ;
6982 int res1 = 0 ;
6983 void *argp2 = 0 ;
6984 int res2 = 0 ;
6985 void *argp3 = 0 ;
6986 int res3 = 0 ;
6987 PyObject * obj0 = 0 ;
6988 PyObject * obj1 = 0 ;
6989 PyObject * obj2 = 0 ;
6990 librdf_iterator *result = 0 ;
6991
6992 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_sources",&obj0,&obj1,&obj2)) SWIG_fail;
6993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6994 if (!SWIG_IsOK(res1)) {
6995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_sources" "', argument " "1"" of type '" "librdf_model *""'");
6996 }
6997 arg1 = (librdf_model *)(argp1);
6998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6999 if (!SWIG_IsOK(res2)) {
7000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_sources" "', argument " "2"" of type '" "librdf_node *""'");
7001 }
7002 arg2 = (librdf_node *)(argp2);
7003 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7004 if (!SWIG_IsOK(res3)) {
7005 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_sources" "', argument " "3"" of type '" "librdf_node *""'");
7006 }
7007 arg3 = (librdf_node *)(argp3);
7008 {
7009 result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3);
7010 if(librdf_python_error_message) {
7011 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7012 free(librdf_python_error_message);
7013 librdf_python_error_message=NULL;
7014 SWIG_fail;
7015 }
7016 if(librdf_python_warning_message) {
7017 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7018 free(librdf_python_warning_message);
7019 librdf_python_warning_message=NULL;
7020 }
7021 }
7022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7023 return resultobj;
7024 fail:
7025 return NULL;
7026 }
7027
7028
7029 SWIGINTERN PyObject *_wrap_librdf_model_get_arcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7030 PyObject *resultobj = 0;
7031 librdf_model *arg1 = (librdf_model *) 0 ;
7032 librdf_node *arg2 = (librdf_node *) 0 ;
7033 librdf_node *arg3 = (librdf_node *) 0 ;
7034 void *argp1 = 0 ;
7035 int res1 = 0 ;
7036 void *argp2 = 0 ;
7037 int res2 = 0 ;
7038 void *argp3 = 0 ;
7039 int res3 = 0 ;
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 PyObject * obj2 = 0 ;
7043 librdf_iterator *result = 0 ;
7044
7045 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_arcs",&obj0,&obj1,&obj2)) SWIG_fail;
7046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7047 if (!SWIG_IsOK(res1)) {
7048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs" "', argument " "1"" of type '" "librdf_model *""'");
7049 }
7050 arg1 = (librdf_model *)(argp1);
7051 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7052 if (!SWIG_IsOK(res2)) {
7053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs" "', argument " "2"" of type '" "librdf_node *""'");
7054 }
7055 arg2 = (librdf_node *)(argp2);
7056 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7057 if (!SWIG_IsOK(res3)) {
7058 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arcs" "', argument " "3"" of type '" "librdf_node *""'");
7059 }
7060 arg3 = (librdf_node *)(argp3);
7061 {
7062 result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3);
7063 if(librdf_python_error_message) {
7064 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7065 free(librdf_python_error_message);
7066 librdf_python_error_message=NULL;
7067 SWIG_fail;
7068 }
7069 if(librdf_python_warning_message) {
7070 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7071 free(librdf_python_warning_message);
7072 librdf_python_warning_message=NULL;
7073 }
7074 }
7075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 SWIGINTERN PyObject *_wrap_librdf_model_get_targets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7083 PyObject *resultobj = 0;
7084 librdf_model *arg1 = (librdf_model *) 0 ;
7085 librdf_node *arg2 = (librdf_node *) 0 ;
7086 librdf_node *arg3 = (librdf_node *) 0 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 void *argp2 = 0 ;
7090 int res2 = 0 ;
7091 void *argp3 = 0 ;
7092 int res3 = 0 ;
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 PyObject * obj2 = 0 ;
7096 librdf_iterator *result = 0 ;
7097
7098 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_targets",&obj0,&obj1,&obj2)) SWIG_fail;
7099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7100 if (!SWIG_IsOK(res1)) {
7101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_targets" "', argument " "1"" of type '" "librdf_model *""'");
7102 }
7103 arg1 = (librdf_model *)(argp1);
7104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7105 if (!SWIG_IsOK(res2)) {
7106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_targets" "', argument " "2"" of type '" "librdf_node *""'");
7107 }
7108 arg2 = (librdf_node *)(argp2);
7109 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7110 if (!SWIG_IsOK(res3)) {
7111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_targets" "', argument " "3"" of type '" "librdf_node *""'");
7112 }
7113 arg3 = (librdf_node *)(argp3);
7114 {
7115 result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3);
7116 if(librdf_python_error_message) {
7117 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7118 free(librdf_python_error_message);
7119 librdf_python_error_message=NULL;
7120 SWIG_fail;
7121 }
7122 if(librdf_python_warning_message) {
7123 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7124 free(librdf_python_warning_message);
7125 librdf_python_warning_message=NULL;
7126 }
7127 }
7128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 SWIGINTERN PyObject *_wrap_librdf_model_get_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7136 PyObject *resultobj = 0;
7137 librdf_model *arg1 = (librdf_model *) 0 ;
7138 librdf_node *arg2 = (librdf_node *) 0 ;
7139 librdf_node *arg3 = (librdf_node *) 0 ;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 void *argp2 = 0 ;
7143 int res2 = 0 ;
7144 void *argp3 = 0 ;
7145 int res3 = 0 ;
7146 PyObject * obj0 = 0 ;
7147 PyObject * obj1 = 0 ;
7148 PyObject * obj2 = 0 ;
7149 librdf_node *result = 0 ;
7150
7151 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_source",&obj0,&obj1,&obj2)) SWIG_fail;
7152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7153 if (!SWIG_IsOK(res1)) {
7154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_source" "', argument " "1"" of type '" "librdf_model *""'");
7155 }
7156 arg1 = (librdf_model *)(argp1);
7157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7158 if (!SWIG_IsOK(res2)) {
7159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_source" "', argument " "2"" of type '" "librdf_node *""'");
7160 }
7161 arg2 = (librdf_node *)(argp2);
7162 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7163 if (!SWIG_IsOK(res3)) {
7164 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_source" "', argument " "3"" of type '" "librdf_node *""'");
7165 }
7166 arg3 = (librdf_node *)(argp3);
7167 {
7168 result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3);
7169 if(librdf_python_error_message) {
7170 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7171 free(librdf_python_error_message);
7172 librdf_python_error_message=NULL;
7173 SWIG_fail;
7174 }
7175 if(librdf_python_warning_message) {
7176 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7177 free(librdf_python_warning_message);
7178 librdf_python_warning_message=NULL;
7179 }
7180 }
7181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
7182 return resultobj;
7183 fail:
7184 return NULL;
7185 }
7186
7187
7188 SWIGINTERN PyObject *_wrap_librdf_model_get_arc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7189 PyObject *resultobj = 0;
7190 librdf_model *arg1 = (librdf_model *) 0 ;
7191 librdf_node *arg2 = (librdf_node *) 0 ;
7192 librdf_node *arg3 = (librdf_node *) 0 ;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 void *argp2 = 0 ;
7196 int res2 = 0 ;
7197 void *argp3 = 0 ;
7198 int res3 = 0 ;
7199 PyObject * obj0 = 0 ;
7200 PyObject * obj1 = 0 ;
7201 PyObject * obj2 = 0 ;
7202 librdf_node *result = 0 ;
7203
7204 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_arc",&obj0,&obj1,&obj2)) SWIG_fail;
7205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arc" "', argument " "1"" of type '" "librdf_model *""'");
7208 }
7209 arg1 = (librdf_model *)(argp1);
7210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7211 if (!SWIG_IsOK(res2)) {
7212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arc" "', argument " "2"" of type '" "librdf_node *""'");
7213 }
7214 arg2 = (librdf_node *)(argp2);
7215 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7216 if (!SWIG_IsOK(res3)) {
7217 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arc" "', argument " "3"" of type '" "librdf_node *""'");
7218 }
7219 arg3 = (librdf_node *)(argp3);
7220 {
7221 result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3);
7222 if(librdf_python_error_message) {
7223 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7224 free(librdf_python_error_message);
7225 librdf_python_error_message=NULL;
7226 SWIG_fail;
7227 }
7228 if(librdf_python_warning_message) {
7229 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7230 free(librdf_python_warning_message);
7231 librdf_python_warning_message=NULL;
7232 }
7233 }
7234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
7235 return resultobj;
7236 fail:
7237 return NULL;
7238 }
7239
7240
7241 SWIGINTERN PyObject *_wrap_librdf_model_get_arcs_out(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7242 PyObject *resultobj = 0;
7243 librdf_model *arg1 = (librdf_model *) 0 ;
7244 librdf_node *arg2 = (librdf_node *) 0 ;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 void *argp2 = 0 ;
7248 int res2 = 0 ;
7249 PyObject * obj0 = 0 ;
7250 PyObject * obj1 = 0 ;
7251 librdf_iterator *result = 0 ;
7252
7253 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_arcs_out",&obj0,&obj1)) SWIG_fail;
7254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_out" "', argument " "1"" of type '" "librdf_model *""'");
7257 }
7258 arg1 = (librdf_model *)(argp1);
7259 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7260 if (!SWIG_IsOK(res2)) {
7261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_out" "', argument " "2"" of type '" "librdf_node *""'");
7262 }
7263 arg2 = (librdf_node *)(argp2);
7264 {
7265 result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2);
7266 if(librdf_python_error_message) {
7267 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7268 free(librdf_python_error_message);
7269 librdf_python_error_message=NULL;
7270 SWIG_fail;
7271 }
7272 if(librdf_python_warning_message) {
7273 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7274 free(librdf_python_warning_message);
7275 librdf_python_warning_message=NULL;
7276 }
7277 }
7278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7279 return resultobj;
7280 fail:
7281 return NULL;
7282 }
7283
7284
7285 SWIGINTERN PyObject *_wrap_librdf_model_get_arcs_in(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7286 PyObject *resultobj = 0;
7287 librdf_model *arg1 = (librdf_model *) 0 ;
7288 librdf_node *arg2 = (librdf_node *) 0 ;
7289 void *argp1 = 0 ;
7290 int res1 = 0 ;
7291 void *argp2 = 0 ;
7292 int res2 = 0 ;
7293 PyObject * obj0 = 0 ;
7294 PyObject * obj1 = 0 ;
7295 librdf_iterator *result = 0 ;
7296
7297 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_arcs_in",&obj0,&obj1)) SWIG_fail;
7298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7299 if (!SWIG_IsOK(res1)) {
7300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_in" "', argument " "1"" of type '" "librdf_model *""'");
7301 }
7302 arg1 = (librdf_model *)(argp1);
7303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7304 if (!SWIG_IsOK(res2)) {
7305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_in" "', argument " "2"" of type '" "librdf_node *""'");
7306 }
7307 arg2 = (librdf_node *)(argp2);
7308 {
7309 result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2);
7310 if(librdf_python_error_message) {
7311 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7312 free(librdf_python_error_message);
7313 librdf_python_error_message=NULL;
7314 SWIG_fail;
7315 }
7316 if(librdf_python_warning_message) {
7317 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7318 free(librdf_python_warning_message);
7319 librdf_python_warning_message=NULL;
7320 }
7321 }
7322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *_wrap_librdf_model_has_arc_in(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7330 PyObject *resultobj = 0;
7331 librdf_model *arg1 = (librdf_model *) 0 ;
7332 librdf_node *arg2 = (librdf_node *) 0 ;
7333 librdf_node *arg3 = (librdf_node *) 0 ;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 void *argp2 = 0 ;
7337 int res2 = 0 ;
7338 void *argp3 = 0 ;
7339 int res3 = 0 ;
7340 PyObject * obj0 = 0 ;
7341 PyObject * obj1 = 0 ;
7342 PyObject * obj2 = 0 ;
7343 int result;
7344
7345 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_has_arc_in",&obj0,&obj1,&obj2)) SWIG_fail;
7346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7347 if (!SWIG_IsOK(res1)) {
7348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_in" "', argument " "1"" of type '" "librdf_model *""'");
7349 }
7350 arg1 = (librdf_model *)(argp1);
7351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7352 if (!SWIG_IsOK(res2)) {
7353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_in" "', argument " "2"" of type '" "librdf_node *""'");
7354 }
7355 arg2 = (librdf_node *)(argp2);
7356 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7357 if (!SWIG_IsOK(res3)) {
7358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_in" "', argument " "3"" of type '" "librdf_node *""'");
7359 }
7360 arg3 = (librdf_node *)(argp3);
7361 {
7362 result = (int)librdf_model_has_arc_in(arg1,arg2,arg3);
7363 if(librdf_python_error_message) {
7364 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7365 free(librdf_python_error_message);
7366 librdf_python_error_message=NULL;
7367 SWIG_fail;
7368 }
7369 if(librdf_python_warning_message) {
7370 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7371 free(librdf_python_warning_message);
7372 librdf_python_warning_message=NULL;
7373 }
7374 }
7375 resultobj = SWIG_From_int((int)(result));
7376 return resultobj;
7377 fail:
7378 return NULL;
7379 }
7380
7381
7382 SWIGINTERN PyObject *_wrap_librdf_model_has_arc_out(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7383 PyObject *resultobj = 0;
7384 librdf_model *arg1 = (librdf_model *) 0 ;
7385 librdf_node *arg2 = (librdf_node *) 0 ;
7386 librdf_node *arg3 = (librdf_node *) 0 ;
7387 void *argp1 = 0 ;
7388 int res1 = 0 ;
7389 void *argp2 = 0 ;
7390 int res2 = 0 ;
7391 void *argp3 = 0 ;
7392 int res3 = 0 ;
7393 PyObject * obj0 = 0 ;
7394 PyObject * obj1 = 0 ;
7395 PyObject * obj2 = 0 ;
7396 int result;
7397
7398 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_has_arc_out",&obj0,&obj1,&obj2)) SWIG_fail;
7399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7400 if (!SWIG_IsOK(res1)) {
7401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_out" "', argument " "1"" of type '" "librdf_model *""'");
7402 }
7403 arg1 = (librdf_model *)(argp1);
7404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7405 if (!SWIG_IsOK(res2)) {
7406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_out" "', argument " "2"" of type '" "librdf_node *""'");
7407 }
7408 arg2 = (librdf_node *)(argp2);
7409 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7410 if (!SWIG_IsOK(res3)) {
7411 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_out" "', argument " "3"" of type '" "librdf_node *""'");
7412 }
7413 arg3 = (librdf_node *)(argp3);
7414 {
7415 result = (int)librdf_model_has_arc_out(arg1,arg2,arg3);
7416 if(librdf_python_error_message) {
7417 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7418 free(librdf_python_error_message);
7419 librdf_python_error_message=NULL;
7420 SWIG_fail;
7421 }
7422 if(librdf_python_warning_message) {
7423 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7424 free(librdf_python_warning_message);
7425 librdf_python_warning_message=NULL;
7426 }
7427 }
7428 resultobj = SWIG_From_int((int)(result));
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 SWIGINTERN PyObject *_wrap_librdf_model_get_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7436 PyObject *resultobj = 0;
7437 librdf_model *arg1 = (librdf_model *) 0 ;
7438 librdf_node *arg2 = (librdf_node *) 0 ;
7439 librdf_node *arg3 = (librdf_node *) 0 ;
7440 void *argp1 = 0 ;
7441 int res1 = 0 ;
7442 void *argp2 = 0 ;
7443 int res2 = 0 ;
7444 void *argp3 = 0 ;
7445 int res3 = 0 ;
7446 PyObject * obj0 = 0 ;
7447 PyObject * obj1 = 0 ;
7448 PyObject * obj2 = 0 ;
7449 librdf_node *result = 0 ;
7450
7451 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_get_target",&obj0,&obj1,&obj2)) SWIG_fail;
7452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7453 if (!SWIG_IsOK(res1)) {
7454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_target" "', argument " "1"" of type '" "librdf_model *""'");
7455 }
7456 arg1 = (librdf_model *)(argp1);
7457 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7458 if (!SWIG_IsOK(res2)) {
7459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_target" "', argument " "2"" of type '" "librdf_node *""'");
7460 }
7461 arg2 = (librdf_node *)(argp2);
7462 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7463 if (!SWIG_IsOK(res3)) {
7464 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_target" "', argument " "3"" of type '" "librdf_node *""'");
7465 }
7466 arg3 = (librdf_node *)(argp3);
7467 {
7468 result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3);
7469 if(librdf_python_error_message) {
7470 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7471 free(librdf_python_error_message);
7472 librdf_python_error_message=NULL;
7473 SWIG_fail;
7474 }
7475 if(librdf_python_warning_message) {
7476 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7477 free(librdf_python_warning_message);
7478 librdf_python_warning_message=NULL;
7479 }
7480 }
7481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
7482 return resultobj;
7483 fail:
7484 return NULL;
7485 }
7486
7487
7488 SWIGINTERN PyObject *_wrap_librdf_model_context_add_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7489 PyObject *resultobj = 0;
7490 librdf_model *arg1 = (librdf_model *) 0 ;
7491 librdf_node *arg2 = (librdf_node *) 0 ;
7492 librdf_statement *arg3 = (librdf_statement *) 0 ;
7493 void *argp1 = 0 ;
7494 int res1 = 0 ;
7495 void *argp2 = 0 ;
7496 int res2 = 0 ;
7497 void *argp3 = 0 ;
7498 int res3 = 0 ;
7499 PyObject * obj0 = 0 ;
7500 PyObject * obj1 = 0 ;
7501 PyObject * obj2 = 0 ;
7502 int result;
7503
7504 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_add_statement",&obj0,&obj1,&obj2)) SWIG_fail;
7505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7506 if (!SWIG_IsOK(res1)) {
7507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statement" "', argument " "1"" of type '" "librdf_model *""'");
7508 }
7509 arg1 = (librdf_model *)(argp1);
7510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7511 if (!SWIG_IsOK(res2)) {
7512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statement" "', argument " "2"" of type '" "librdf_node *""'");
7513 }
7514 arg2 = (librdf_node *)(argp2);
7515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
7516 if (!SWIG_IsOK(res3)) {
7517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statement" "', argument " "3"" of type '" "librdf_statement *""'");
7518 }
7519 arg3 = (librdf_statement *)(argp3);
7520 {
7521 result = (int)librdf_model_context_add_statement(arg1,arg2,arg3);
7522 if(librdf_python_error_message) {
7523 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7524 free(librdf_python_error_message);
7525 librdf_python_error_message=NULL;
7526 SWIG_fail;
7527 }
7528 if(librdf_python_warning_message) {
7529 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7530 free(librdf_python_warning_message);
7531 librdf_python_warning_message=NULL;
7532 }
7533 }
7534 resultobj = SWIG_From_int((int)(result));
7535 return resultobj;
7536 fail:
7537 return NULL;
7538 }
7539
7540
7541 SWIGINTERN PyObject *_wrap_librdf_model_context_add_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7542 PyObject *resultobj = 0;
7543 librdf_model *arg1 = (librdf_model *) 0 ;
7544 librdf_node *arg2 = (librdf_node *) 0 ;
7545 librdf_stream *arg3 = (librdf_stream *) 0 ;
7546 void *argp1 = 0 ;
7547 int res1 = 0 ;
7548 void *argp2 = 0 ;
7549 int res2 = 0 ;
7550 void *argp3 = 0 ;
7551 int res3 = 0 ;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj1 = 0 ;
7554 PyObject * obj2 = 0 ;
7555 int result;
7556
7557 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_add_statements",&obj0,&obj1,&obj2)) SWIG_fail;
7558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statements" "', argument " "1"" of type '" "librdf_model *""'");
7561 }
7562 arg1 = (librdf_model *)(argp1);
7563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7564 if (!SWIG_IsOK(res2)) {
7565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statements" "', argument " "2"" of type '" "librdf_node *""'");
7566 }
7567 arg2 = (librdf_node *)(argp2);
7568 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
7569 if (!SWIG_IsOK(res3)) {
7570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statements" "', argument " "3"" of type '" "librdf_stream *""'");
7571 }
7572 arg3 = (librdf_stream *)(argp3);
7573 {
7574 result = (int)librdf_model_context_add_statements(arg1,arg2,arg3);
7575 if(librdf_python_error_message) {
7576 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7577 free(librdf_python_error_message);
7578 librdf_python_error_message=NULL;
7579 SWIG_fail;
7580 }
7581 if(librdf_python_warning_message) {
7582 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7583 free(librdf_python_warning_message);
7584 librdf_python_warning_message=NULL;
7585 }
7586 }
7587 resultobj = SWIG_From_int((int)(result));
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 SWIGINTERN PyObject *_wrap_librdf_model_context_remove_statement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 librdf_model *arg1 = (librdf_model *) 0 ;
7597 librdf_node *arg2 = (librdf_node *) 0 ;
7598 librdf_statement *arg3 = (librdf_statement *) 0 ;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 void *argp2 = 0 ;
7602 int res2 = 0 ;
7603 void *argp3 = 0 ;
7604 int res3 = 0 ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 PyObject * obj2 = 0 ;
7608 int result;
7609
7610 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_context_remove_statement",&obj0,&obj1,&obj2)) SWIG_fail;
7611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7612 if (!SWIG_IsOK(res1)) {
7613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statement" "', argument " "1"" of type '" "librdf_model *""'");
7614 }
7615 arg1 = (librdf_model *)(argp1);
7616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7617 if (!SWIG_IsOK(res2)) {
7618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statement" "', argument " "2"" of type '" "librdf_node *""'");
7619 }
7620 arg2 = (librdf_node *)(argp2);
7621 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
7622 if (!SWIG_IsOK(res3)) {
7623 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_remove_statement" "', argument " "3"" of type '" "librdf_statement *""'");
7624 }
7625 arg3 = (librdf_statement *)(argp3);
7626 {
7627 result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3);
7628 if(librdf_python_error_message) {
7629 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7630 free(librdf_python_error_message);
7631 librdf_python_error_message=NULL;
7632 SWIG_fail;
7633 }
7634 if(librdf_python_warning_message) {
7635 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7636 free(librdf_python_warning_message);
7637 librdf_python_warning_message=NULL;
7638 }
7639 }
7640 resultobj = SWIG_From_int((int)(result));
7641 return resultobj;
7642 fail:
7643 return NULL;
7644 }
7645
7646
7647 SWIGINTERN PyObject *_wrap_librdf_model_context_remove_statements(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7648 PyObject *resultobj = 0;
7649 librdf_model *arg1 = (librdf_model *) 0 ;
7650 librdf_node *arg2 = (librdf_node *) 0 ;
7651 void *argp1 = 0 ;
7652 int res1 = 0 ;
7653 void *argp2 = 0 ;
7654 int res2 = 0 ;
7655 PyObject * obj0 = 0 ;
7656 PyObject * obj1 = 0 ;
7657 int result;
7658
7659 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_context_remove_statements",&obj0,&obj1)) SWIG_fail;
7660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7661 if (!SWIG_IsOK(res1)) {
7662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statements" "', argument " "1"" of type '" "librdf_model *""'");
7663 }
7664 arg1 = (librdf_model *)(argp1);
7665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7666 if (!SWIG_IsOK(res2)) {
7667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statements" "', argument " "2"" of type '" "librdf_node *""'");
7668 }
7669 arg2 = (librdf_node *)(argp2);
7670 {
7671 result = (int)librdf_model_context_remove_statements(arg1,arg2);
7672 if(librdf_python_error_message) {
7673 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7674 free(librdf_python_error_message);
7675 librdf_python_error_message=NULL;
7676 SWIG_fail;
7677 }
7678 if(librdf_python_warning_message) {
7679 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7680 free(librdf_python_warning_message);
7681 librdf_python_warning_message=NULL;
7682 }
7683 }
7684 resultobj = SWIG_From_int((int)(result));
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 SWIGINTERN PyObject *_wrap_librdf_model_context_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7692 PyObject *resultobj = 0;
7693 librdf_model *arg1 = (librdf_model *) 0 ;
7694 librdf_node *arg2 = (librdf_node *) 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 void *argp2 = 0 ;
7698 int res2 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 PyObject * obj1 = 0 ;
7701 librdf_stream *result = 0 ;
7702
7703 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_context_as_stream",&obj0,&obj1)) SWIG_fail;
7704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7705 if (!SWIG_IsOK(res1)) {
7706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_as_stream" "', argument " "1"" of type '" "librdf_model *""'");
7707 }
7708 arg1 = (librdf_model *)(argp1);
7709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7710 if (!SWIG_IsOK(res2)) {
7711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_as_stream" "', argument " "2"" of type '" "librdf_node *""'");
7712 }
7713 arg2 = (librdf_node *)(argp2);
7714 {
7715 result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2);
7716 if(librdf_python_error_message) {
7717 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7718 free(librdf_python_error_message);
7719 librdf_python_error_message=NULL;
7720 SWIG_fail;
7721 }
7722 if(librdf_python_warning_message) {
7723 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7724 free(librdf_python_warning_message);
7725 librdf_python_warning_message=NULL;
7726 }
7727 }
7728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
7729 return resultobj;
7730 fail:
7731 return NULL;
7732 }
7733
7734
7735 SWIGINTERN PyObject *_wrap_librdf_model_sync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7736 PyObject *resultobj = 0;
7737 librdf_model *arg1 = (librdf_model *) 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 PyObject * obj0 = 0 ;
7741
7742 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_sync",&obj0)) SWIG_fail;
7743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7744 if (!SWIG_IsOK(res1)) {
7745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_sync" "', argument " "1"" of type '" "librdf_model *""'");
7746 }
7747 arg1 = (librdf_model *)(argp1);
7748 {
7749 librdf_model_sync(arg1);
7750 if(librdf_python_error_message) {
7751 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7752 free(librdf_python_error_message);
7753 librdf_python_error_message=NULL;
7754 SWIG_fail;
7755 }
7756 if(librdf_python_warning_message) {
7757 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7758 free(librdf_python_warning_message);
7759 librdf_python_warning_message=NULL;
7760 }
7761 }
7762 resultobj = SWIG_Py_Void();
7763 return resultobj;
7764 fail:
7765 return NULL;
7766 }
7767
7768
7769 SWIGINTERN PyObject *_wrap_librdf_model_get_contexts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7770 PyObject *resultobj = 0;
7771 librdf_model *arg1 = (librdf_model *) 0 ;
7772 void *argp1 = 0 ;
7773 int res1 = 0 ;
7774 PyObject * obj0 = 0 ;
7775 librdf_iterator *result = 0 ;
7776
7777 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_get_contexts",&obj0)) SWIG_fail;
7778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7779 if (!SWIG_IsOK(res1)) {
7780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_contexts" "', argument " "1"" of type '" "librdf_model *""'");
7781 }
7782 arg1 = (librdf_model *)(argp1);
7783 {
7784 result = (librdf_iterator *)librdf_model_get_contexts(arg1);
7785 if(librdf_python_error_message) {
7786 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7787 free(librdf_python_error_message);
7788 librdf_python_error_message=NULL;
7789 SWIG_fail;
7790 }
7791 if(librdf_python_warning_message) {
7792 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7793 free(librdf_python_warning_message);
7794 librdf_python_warning_message=NULL;
7795 }
7796 }
7797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_POINTER_OWN | 0 );
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 SWIGINTERN PyObject *_wrap_librdf_model_contains_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 librdf_model *arg1 = (librdf_model *) 0 ;
7807 librdf_node *arg2 = (librdf_node *) 0 ;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 void *argp2 = 0 ;
7811 int res2 = 0 ;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 int result;
7815
7816 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_contains_context",&obj0,&obj1)) SWIG_fail;
7817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7818 if (!SWIG_IsOK(res1)) {
7819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_context" "', argument " "1"" of type '" "librdf_model *""'");
7820 }
7821 arg1 = (librdf_model *)(argp1);
7822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7823 if (!SWIG_IsOK(res2)) {
7824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_context" "', argument " "2"" of type '" "librdf_node *""'");
7825 }
7826 arg2 = (librdf_node *)(argp2);
7827 {
7828 result = (int)librdf_model_contains_context(arg1,arg2);
7829 if(librdf_python_error_message) {
7830 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7831 free(librdf_python_error_message);
7832 librdf_python_error_message=NULL;
7833 SWIG_fail;
7834 }
7835 if(librdf_python_warning_message) {
7836 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7837 free(librdf_python_warning_message);
7838 librdf_python_warning_message=NULL;
7839 }
7840 }
7841 resultobj = SWIG_From_int((int)(result));
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_librdf_model_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7849 PyObject *resultobj = 0;
7850 librdf_model *arg1 = (librdf_model *) 0 ;
7851 librdf_uri *arg2 = (librdf_uri *) 0 ;
7852 void *argp1 = 0 ;
7853 int res1 = 0 ;
7854 void *argp2 = 0 ;
7855 int res2 = 0 ;
7856 PyObject * obj0 = 0 ;
7857 PyObject * obj1 = 0 ;
7858 librdf_node *result = 0 ;
7859
7860 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_get_feature",&obj0,&obj1)) SWIG_fail;
7861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7862 if (!SWIG_IsOK(res1)) {
7863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_feature" "', argument " "1"" of type '" "librdf_model *""'");
7864 }
7865 arg1 = (librdf_model *)(argp1);
7866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7867 if (!SWIG_IsOK(res2)) {
7868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
7869 }
7870 arg2 = (librdf_uri *)(argp2);
7871 {
7872 result = (librdf_node *)librdf_model_get_feature(arg1,arg2);
7873 if(librdf_python_error_message) {
7874 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7875 free(librdf_python_error_message);
7876 librdf_python_error_message=NULL;
7877 SWIG_fail;
7878 }
7879 if(librdf_python_warning_message) {
7880 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7881 free(librdf_python_warning_message);
7882 librdf_python_warning_message=NULL;
7883 }
7884 }
7885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
7886 return resultobj;
7887 fail:
7888 return NULL;
7889 }
7890
7891
7892 SWIGINTERN PyObject *_wrap_librdf_model_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7893 PyObject *resultobj = 0;
7894 librdf_model *arg1 = (librdf_model *) 0 ;
7895 librdf_uri *arg2 = (librdf_uri *) 0 ;
7896 librdf_node *arg3 = (librdf_node *) 0 ;
7897 void *argp1 = 0 ;
7898 int res1 = 0 ;
7899 void *argp2 = 0 ;
7900 int res2 = 0 ;
7901 void *argp3 = 0 ;
7902 int res3 = 0 ;
7903 PyObject * obj0 = 0 ;
7904 PyObject * obj1 = 0 ;
7905 PyObject * obj2 = 0 ;
7906 int result;
7907
7908 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_model_set_feature",&obj0,&obj1,&obj2)) SWIG_fail;
7909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7910 if (!SWIG_IsOK(res1)) {
7911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_set_feature" "', argument " "1"" of type '" "librdf_model *""'");
7912 }
7913 arg1 = (librdf_model *)(argp1);
7914 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7915 if (!SWIG_IsOK(res2)) {
7916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
7917 }
7918 arg2 = (librdf_uri *)(argp2);
7919 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
7920 if (!SWIG_IsOK(res3)) {
7921 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
7922 }
7923 arg3 = (librdf_node *)(argp3);
7924 {
7925 result = (int)librdf_model_set_feature(arg1,arg2,arg3);
7926 if(librdf_python_error_message) {
7927 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
7928 free(librdf_python_error_message);
7929 librdf_python_error_message=NULL;
7930 SWIG_fail;
7931 }
7932 if(librdf_python_warning_message) {
7933 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
7934 free(librdf_python_warning_message);
7935 librdf_python_warning_message=NULL;
7936 }
7937 }
7938 resultobj = SWIG_From_int((int)(result));
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 SWIGINTERN PyObject *_wrap_librdf_model_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7946 PyObject *resultobj = 0;
7947 librdf_model *arg1 = (librdf_model *) 0 ;
7948 librdf_uri *arg2 = (librdf_uri *) 0 ;
7949 char *arg3 = (char *) NULL ;
7950 char *arg4 = (char *) NULL ;
7951 librdf_uri *arg5 = (librdf_uri *) NULL ;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 void *argp2 = 0 ;
7955 int res2 = 0 ;
7956 int res3 ;
7957 char *buf3 = 0 ;
7958 int alloc3 = 0 ;
7959 int res4 ;
7960 char *buf4 = 0 ;
7961 int alloc4 = 0 ;
7962 void *argp5 = 0 ;
7963 int res5 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 PyObject * obj2 = 0 ;
7967 PyObject * obj3 = 0 ;
7968 PyObject * obj4 = 0 ;
7969 int result;
7970
7971 if (!PyArg_ParseTuple(args,(char *)"OO|OOO:librdf_model_load",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
7972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7973 if (!SWIG_IsOK(res1)) {
7974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_load" "', argument " "1"" of type '" "librdf_model *""'");
7975 }
7976 arg1 = (librdf_model *)(argp1);
7977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7978 if (!SWIG_IsOK(res2)) {
7979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_load" "', argument " "2"" of type '" "librdf_uri *""'");
7980 }
7981 arg2 = (librdf_uri *)(argp2);
7982 if (obj2) {
7983 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
7984 if (!SWIG_IsOK(res3)) {
7985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_load" "', argument " "3"" of type '" "char const *""'");
7986 }
7987 arg3 = (char *)(buf3);
7988 }
7989 if (obj3) {
7990 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
7991 if (!SWIG_IsOK(res4)) {
7992 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_load" "', argument " "4"" of type '" "char const *""'");
7993 }
7994 arg4 = (char *)(buf4);
7995 }
7996 if (obj4) {
7997 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7998 if (!SWIG_IsOK(res5)) {
7999 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_load" "', argument " "5"" of type '" "librdf_uri *""'");
8000 }
8001 arg5 = (librdf_uri *)(argp5);
8002 }
8003 {
8004 result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
8005 if(librdf_python_error_message) {
8006 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8007 free(librdf_python_error_message);
8008 librdf_python_error_message=NULL;
8009 SWIG_fail;
8010 }
8011 if(librdf_python_warning_message) {
8012 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8013 free(librdf_python_warning_message);
8014 librdf_python_warning_message=NULL;
8015 }
8016 }
8017 resultobj = SWIG_From_int((int)(result));
8018 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8019 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8020 return resultobj;
8021 fail:
8022 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8023 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8024 return NULL;
8025 }
8026
8027
8028 SWIGINTERN PyObject *_wrap_librdf_model_query_execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 PyObject *resultobj = 0;
8030 librdf_model *arg1 = (librdf_model *) 0 ;
8031 librdf_query *arg2 = (librdf_query *) 0 ;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034 void *argp2 = 0 ;
8035 int res2 = 0 ;
8036 PyObject * obj0 = 0 ;
8037 PyObject * obj1 = 0 ;
8038 librdf_query_results *result = 0 ;
8039
8040 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_model_query_execute",&obj0,&obj1)) SWIG_fail;
8041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8042 if (!SWIG_IsOK(res1)) {
8043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_query_execute" "', argument " "1"" of type '" "librdf_model *""'");
8044 }
8045 arg1 = (librdf_model *)(argp1);
8046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_query, 0 | 0 );
8047 if (!SWIG_IsOK(res2)) {
8048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_query_execute" "', argument " "2"" of type '" "librdf_query *""'");
8049 }
8050 arg2 = (librdf_query *)(argp2);
8051 {
8052 result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2);
8053 if(librdf_python_error_message) {
8054 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8055 free(librdf_python_error_message);
8056 librdf_python_error_message=NULL;
8057 SWIG_fail;
8058 }
8059 if(librdf_python_warning_message) {
8060 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8061 free(librdf_python_warning_message);
8062 librdf_python_warning_message=NULL;
8063 }
8064 }
8065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 );
8066 return resultobj;
8067 fail:
8068 return NULL;
8069 }
8070
8071
8072 SWIGINTERN PyObject *_wrap_librdf_model_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8073 PyObject *resultobj = 0;
8074 librdf_model *arg1 = (librdf_model *) 0 ;
8075 librdf_uri *arg2 = (librdf_uri *) 0 ;
8076 char *arg3 = (char *) NULL ;
8077 char *arg4 = (char *) NULL ;
8078 librdf_uri *arg5 = (librdf_uri *) NULL ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 void *argp2 = 0 ;
8082 int res2 = 0 ;
8083 int res3 ;
8084 char *buf3 = 0 ;
8085 int alloc3 = 0 ;
8086 int res4 ;
8087 char *buf4 = 0 ;
8088 int alloc4 = 0 ;
8089 void *argp5 = 0 ;
8090 int res5 = 0 ;
8091 PyObject * obj0 = 0 ;
8092 PyObject * obj1 = 0 ;
8093 PyObject * obj2 = 0 ;
8094 PyObject * obj3 = 0 ;
8095 PyObject * obj4 = 0 ;
8096 char *result = 0 ;
8097
8098 if (!PyArg_ParseTuple(args,(char *)"OO|OOO:librdf_model_to_string",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8100 if (!SWIG_IsOK(res1)) {
8101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_to_string" "', argument " "1"" of type '" "librdf_model *""'");
8102 }
8103 arg1 = (librdf_model *)(argp1);
8104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8105 if (!SWIG_IsOK(res2)) {
8106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
8107 }
8108 arg2 = (librdf_uri *)(argp2);
8109 if (obj2) {
8110 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
8111 if (!SWIG_IsOK(res3)) {
8112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_to_string" "', argument " "3"" of type '" "char const *""'");
8113 }
8114 arg3 = (char *)(buf3);
8115 }
8116 if (obj3) {
8117 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
8118 if (!SWIG_IsOK(res4)) {
8119 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_to_string" "', argument " "4"" of type '" "char const *""'");
8120 }
8121 arg4 = (char *)(buf4);
8122 }
8123 if (obj4) {
8124 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8125 if (!SWIG_IsOK(res5)) {
8126 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_to_string" "', argument " "5"" of type '" "librdf_uri *""'");
8127 }
8128 arg5 = (librdf_uri *)(argp5);
8129 }
8130 {
8131 result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
8132 if(librdf_python_error_message) {
8133 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8134 free(librdf_python_error_message);
8135 librdf_python_error_message=NULL;
8136 SWIG_fail;
8137 }
8138 if(librdf_python_warning_message) {
8139 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8140 free(librdf_python_warning_message);
8141 librdf_python_warning_message=NULL;
8142 }
8143 }
8144 resultobj = SWIG_FromCharPtr((const char *)result);
8145 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8146 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8147 free((char*)result);
8148 return resultobj;
8149 fail:
8150 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8151 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8152 return NULL;
8153 }
8154
8155
8156 SWIGINTERN PyObject *_wrap_librdf_model_transaction_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8157 PyObject *resultobj = 0;
8158 librdf_model *arg1 = (librdf_model *) 0 ;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 int result;
8163
8164 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_start",&obj0)) SWIG_fail;
8165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_start" "', argument " "1"" of type '" "librdf_model *""'");
8168 }
8169 arg1 = (librdf_model *)(argp1);
8170 {
8171 result = (int)librdf_model_transaction_start(arg1);
8172 if(librdf_python_error_message) {
8173 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8174 free(librdf_python_error_message);
8175 librdf_python_error_message=NULL;
8176 SWIG_fail;
8177 }
8178 if(librdf_python_warning_message) {
8179 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8180 free(librdf_python_warning_message);
8181 librdf_python_warning_message=NULL;
8182 }
8183 }
8184 resultobj = SWIG_From_int((int)(result));
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 SWIGINTERN PyObject *_wrap_librdf_model_transaction_commit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8192 PyObject *resultobj = 0;
8193 librdf_model *arg1 = (librdf_model *) 0 ;
8194 void *argp1 = 0 ;
8195 int res1 = 0 ;
8196 PyObject * obj0 = 0 ;
8197 int result;
8198
8199 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_commit",&obj0)) SWIG_fail;
8200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8201 if (!SWIG_IsOK(res1)) {
8202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_commit" "', argument " "1"" of type '" "librdf_model *""'");
8203 }
8204 arg1 = (librdf_model *)(argp1);
8205 {
8206 result = (int)librdf_model_transaction_commit(arg1);
8207 if(librdf_python_error_message) {
8208 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8209 free(librdf_python_error_message);
8210 librdf_python_error_message=NULL;
8211 SWIG_fail;
8212 }
8213 if(librdf_python_warning_message) {
8214 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8215 free(librdf_python_warning_message);
8216 librdf_python_warning_message=NULL;
8217 }
8218 }
8219 resultobj = SWIG_From_int((int)(result));
8220 return resultobj;
8221 fail:
8222 return NULL;
8223 }
8224
8225
8226 SWIGINTERN PyObject *_wrap_librdf_model_transaction_rollback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *resultobj = 0;
8228 librdf_model *arg1 = (librdf_model *) 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject * obj0 = 0 ;
8232 int result;
8233
8234 if (!PyArg_ParseTuple(args,(char *)"O:librdf_model_transaction_rollback",&obj0)) SWIG_fail;
8235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_rollback" "', argument " "1"" of type '" "librdf_model *""'");
8238 }
8239 arg1 = (librdf_model *)(argp1);
8240 {
8241 result = (int)librdf_model_transaction_rollback(arg1);
8242 if(librdf_python_error_message) {
8243 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8244 free(librdf_python_error_message);
8245 librdf_python_error_message=NULL;
8246 SWIG_fail;
8247 }
8248 if(librdf_python_warning_message) {
8249 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8250 free(librdf_python_warning_message);
8251 librdf_python_warning_message=NULL;
8252 }
8253 }
8254 resultobj = SWIG_From_int((int)(result));
8255 return resultobj;
8256 fail:
8257 return NULL;
8258 }
8259
8260
8261 SWIGINTERN PyObject *_wrap_librdf_new_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8262 PyObject *resultobj = 0;
8263 librdf_world *arg1 = (librdf_world *) 0 ;
8264 char *arg2 = (char *) 0 ;
8265 char *arg3 = (char *) 0 ;
8266 char *arg4 = (char *) 0 ;
8267 void *argp1 = 0 ;
8268 int res1 = 0 ;
8269 int res2 ;
8270 char *buf2 = 0 ;
8271 int alloc2 = 0 ;
8272 int res3 ;
8273 char *buf3 = 0 ;
8274 int alloc3 = 0 ;
8275 int res4 ;
8276 char *buf4 = 0 ;
8277 int alloc4 = 0 ;
8278 PyObject * obj0 = 0 ;
8279 PyObject * obj1 = 0 ;
8280 PyObject * obj2 = 0 ;
8281 PyObject * obj3 = 0 ;
8282 librdf_storage *result = 0 ;
8283
8284 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_storage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage" "', argument " "1"" of type '" "librdf_world *""'");
8288 }
8289 arg1 = (librdf_world *)(argp1);
8290 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8291 if (!SWIG_IsOK(res2)) {
8292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_storage" "', argument " "2"" of type '" "char *""'");
8293 }
8294 arg2 = (char *)(buf2);
8295 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
8296 if (!SWIG_IsOK(res3)) {
8297 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_storage" "', argument " "3"" of type '" "char *""'");
8298 }
8299 arg3 = (char *)(buf3);
8300 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
8301 if (!SWIG_IsOK(res4)) {
8302 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_storage" "', argument " "4"" of type '" "char *""'");
8303 }
8304 arg4 = (char *)(buf4);
8305 {
8306 result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4);
8307 if(librdf_python_error_message) {
8308 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8309 free(librdf_python_error_message);
8310 librdf_python_error_message=NULL;
8311 SWIG_fail;
8312 }
8313 if(librdf_python_warning_message) {
8314 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8315 free(librdf_python_warning_message);
8316 librdf_python_warning_message=NULL;
8317 }
8318 }
8319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 );
8320 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8321 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8322 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8323 return resultobj;
8324 fail:
8325 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8326 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8327 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8328 return NULL;
8329 }
8330
8331
8332 SWIGINTERN PyObject *_wrap_librdf_new_storage_from_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8333 PyObject *resultobj = 0;
8334 librdf_storage *arg1 = (librdf_storage *) 0 ;
8335 void *argp1 = 0 ;
8336 int res1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 librdf_storage *result = 0 ;
8339
8340 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_storage_from_storage",&obj0)) SWIG_fail;
8341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
8342 if (!SWIG_IsOK(res1)) {
8343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage_from_storage" "', argument " "1"" of type '" "librdf_storage *""'");
8344 }
8345 arg1 = (librdf_storage *)(argp1);
8346 {
8347 result = (librdf_storage *)librdf_new_storage_from_storage(arg1);
8348 if(librdf_python_error_message) {
8349 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8350 free(librdf_python_error_message);
8351 librdf_python_error_message=NULL;
8352 SWIG_fail;
8353 }
8354 if(librdf_python_warning_message) {
8355 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8356 free(librdf_python_warning_message);
8357 librdf_python_warning_message=NULL;
8358 }
8359 }
8360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_POINTER_OWN | 0 );
8361 return resultobj;
8362 fail:
8363 return NULL;
8364 }
8365
8366
8367 SWIGINTERN PyObject *_wrap_librdf_free_storage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8368 PyObject *resultobj = 0;
8369 librdf_storage *arg1 = (librdf_storage *) 0 ;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 PyObject * obj0 = 0 ;
8373
8374 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_storage",&obj0)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_storage" "', argument " "1"" of type '" "librdf_storage *""'");
8378 }
8379 arg1 = (librdf_storage *)(argp1);
8380 {
8381 librdf_free_storage(arg1);
8382 if(librdf_python_error_message) {
8383 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8384 free(librdf_python_error_message);
8385 librdf_python_error_message=NULL;
8386 SWIG_fail;
8387 }
8388 if(librdf_python_warning_message) {
8389 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8390 free(librdf_python_warning_message);
8391 librdf_python_warning_message=NULL;
8392 }
8393 }
8394 resultobj = SWIG_Py_Void();
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 SWIGINTERN PyObject *_wrap_librdf_parser_check_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8402 PyObject *resultobj = 0;
8403 librdf_world *arg1 = (librdf_world *) 0 ;
8404 char *arg2 = (char *) 0 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 int res2 ;
8408 char *buf2 = 0 ;
8409 int alloc2 = 0 ;
8410 PyObject * obj0 = 0 ;
8411 PyObject * obj1 = 0 ;
8412 int result;
8413
8414 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_check_name",&obj0,&obj1)) SWIG_fail;
8415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8416 if (!SWIG_IsOK(res1)) {
8417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_check_name" "', argument " "1"" of type '" "librdf_world *""'");
8418 }
8419 arg1 = (librdf_world *)(argp1);
8420 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8421 if (!SWIG_IsOK(res2)) {
8422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_check_name" "', argument " "2"" of type '" "char const *""'");
8423 }
8424 arg2 = (char *)(buf2);
8425 {
8426 result = (int)librdf_parser_check_name(arg1,(char const *)arg2);
8427 if(librdf_python_error_message) {
8428 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8429 free(librdf_python_error_message);
8430 librdf_python_error_message=NULL;
8431 SWIG_fail;
8432 }
8433 if(librdf_python_warning_message) {
8434 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8435 free(librdf_python_warning_message);
8436 librdf_python_warning_message=NULL;
8437 }
8438 }
8439 resultobj = SWIG_From_int((int)(result));
8440 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8441 return resultobj;
8442 fail:
8443 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8444 return NULL;
8445 }
8446
8447
8448 SWIGINTERN PyObject *_wrap_librdf_new_parser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8449 PyObject *resultobj = 0;
8450 librdf_world *arg1 = (librdf_world *) 0 ;
8451 char *arg2 = (char *) 0 ;
8452 char *arg3 = (char *) 0 ;
8453 librdf_uri *arg4 = (librdf_uri *) 0 ;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456 int res2 ;
8457 char *buf2 = 0 ;
8458 int alloc2 = 0 ;
8459 int res3 ;
8460 char *buf3 = 0 ;
8461 int alloc3 = 0 ;
8462 void *argp4 = 0 ;
8463 int res4 = 0 ;
8464 PyObject * obj0 = 0 ;
8465 PyObject * obj1 = 0 ;
8466 PyObject * obj2 = 0 ;
8467 PyObject * obj3 = 0 ;
8468 librdf_parser *result = 0 ;
8469
8470 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_parser",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8472 if (!SWIG_IsOK(res1)) {
8473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_parser" "', argument " "1"" of type '" "librdf_world *""'");
8474 }
8475 arg1 = (librdf_world *)(argp1);
8476 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8477 if (!SWIG_IsOK(res2)) {
8478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_parser" "', argument " "2"" of type '" "char const *""'");
8479 }
8480 arg2 = (char *)(buf2);
8481 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
8482 if (!SWIG_IsOK(res3)) {
8483 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_parser" "', argument " "3"" of type '" "char const *""'");
8484 }
8485 arg3 = (char *)(buf3);
8486 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8487 if (!SWIG_IsOK(res4)) {
8488 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_parser" "', argument " "4"" of type '" "librdf_uri *""'");
8489 }
8490 arg4 = (librdf_uri *)(argp4);
8491 {
8492 result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4);
8493 if(librdf_python_error_message) {
8494 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8495 free(librdf_python_error_message);
8496 librdf_python_error_message=NULL;
8497 SWIG_fail;
8498 }
8499 if(librdf_python_warning_message) {
8500 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8501 free(librdf_python_warning_message);
8502 librdf_python_warning_message=NULL;
8503 }
8504 }
8505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, SWIG_POINTER_OWN | 0 );
8506 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8507 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8508 return resultobj;
8509 fail:
8510 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8511 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8512 return NULL;
8513 }
8514
8515
8516 SWIGINTERN PyObject *_wrap_librdf_free_parser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8517 PyObject *resultobj = 0;
8518 librdf_parser *arg1 = (librdf_parser *) 0 ;
8519 void *argp1 = 0 ;
8520 int res1 = 0 ;
8521 PyObject * obj0 = 0 ;
8522
8523 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_parser",&obj0)) SWIG_fail;
8524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8525 if (!SWIG_IsOK(res1)) {
8526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_parser" "', argument " "1"" of type '" "librdf_parser *""'");
8527 }
8528 arg1 = (librdf_parser *)(argp1);
8529 {
8530 librdf_free_parser(arg1);
8531 if(librdf_python_error_message) {
8532 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8533 free(librdf_python_error_message);
8534 librdf_python_error_message=NULL;
8535 SWIG_fail;
8536 }
8537 if(librdf_python_warning_message) {
8538 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8539 free(librdf_python_warning_message);
8540 librdf_python_warning_message=NULL;
8541 }
8542 }
8543 resultobj = SWIG_Py_Void();
8544 return resultobj;
8545 fail:
8546 return NULL;
8547 }
8548
8549
8550 SWIGINTERN PyObject *_wrap_librdf_parser_parse_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8551 PyObject *resultobj = 0;
8552 librdf_parser *arg1 = (librdf_parser *) 0 ;
8553 librdf_uri *arg2 = (librdf_uri *) 0 ;
8554 librdf_uri *arg3 = (librdf_uri *) NULL ;
8555 void *argp1 = 0 ;
8556 int res1 = 0 ;
8557 void *argp2 = 0 ;
8558 int res2 = 0 ;
8559 void *argp3 = 0 ;
8560 int res3 = 0 ;
8561 PyObject * obj0 = 0 ;
8562 PyObject * obj1 = 0 ;
8563 PyObject * obj2 = 0 ;
8564 librdf_stream *result = 0 ;
8565
8566 if (!PyArg_ParseTuple(args,(char *)"OO|O:librdf_parser_parse_as_stream",&obj0,&obj1,&obj2)) SWIG_fail;
8567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8568 if (!SWIG_IsOK(res1)) {
8569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
8570 }
8571 arg1 = (librdf_parser *)(argp1);
8572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8573 if (!SWIG_IsOK(res2)) {
8574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_as_stream" "', argument " "2"" of type '" "librdf_uri *""'");
8575 }
8576 arg2 = (librdf_uri *)(argp2);
8577 if (obj2) {
8578 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8579 if (!SWIG_IsOK(res3)) {
8580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_as_stream" "', argument " "3"" of type '" "librdf_uri *""'");
8581 }
8582 arg3 = (librdf_uri *)(argp3);
8583 }
8584 {
8585 result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3);
8586 if(librdf_python_error_message) {
8587 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8588 free(librdf_python_error_message);
8589 librdf_python_error_message=NULL;
8590 SWIG_fail;
8591 }
8592 if(librdf_python_warning_message) {
8593 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8594 free(librdf_python_warning_message);
8595 librdf_python_warning_message=NULL;
8596 }
8597 }
8598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 SWIGINTERN PyObject *_wrap_librdf_parser_parse_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8606 PyObject *resultobj = 0;
8607 librdf_parser *arg1 = (librdf_parser *) 0 ;
8608 librdf_uri *arg2 = (librdf_uri *) 0 ;
8609 librdf_uri *arg3 = (librdf_uri *) 0 ;
8610 librdf_model *arg4 = (librdf_model *) 0 ;
8611 void *argp1 = 0 ;
8612 int res1 = 0 ;
8613 void *argp2 = 0 ;
8614 int res2 = 0 ;
8615 void *argp3 = 0 ;
8616 int res3 = 0 ;
8617 void *argp4 = 0 ;
8618 int res4 = 0 ;
8619 PyObject * obj0 = 0 ;
8620 PyObject * obj1 = 0 ;
8621 PyObject * obj2 = 0 ;
8622 PyObject * obj3 = 0 ;
8623 int result;
8624
8625 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_into_model",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8627 if (!SWIG_IsOK(res1)) {
8628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
8629 }
8630 arg1 = (librdf_parser *)(argp1);
8631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8632 if (!SWIG_IsOK(res2)) {
8633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_into_model" "', argument " "2"" of type '" "librdf_uri *""'");
8634 }
8635 arg2 = (librdf_uri *)(argp2);
8636 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8637 if (!SWIG_IsOK(res3)) {
8638 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_into_model" "', argument " "3"" of type '" "librdf_uri *""'");
8639 }
8640 arg3 = (librdf_uri *)(argp3);
8641 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8642 if (!SWIG_IsOK(res4)) {
8643 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_into_model" "', argument " "4"" of type '" "librdf_model *""'");
8644 }
8645 arg4 = (librdf_model *)(argp4);
8646 {
8647 result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4);
8648 if(librdf_python_error_message) {
8649 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8650 free(librdf_python_error_message);
8651 librdf_python_error_message=NULL;
8652 SWIG_fail;
8653 }
8654 if(librdf_python_warning_message) {
8655 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8656 free(librdf_python_warning_message);
8657 librdf_python_warning_message=NULL;
8658 }
8659 }
8660 resultobj = SWIG_From_int((int)(result));
8661 return resultobj;
8662 fail:
8663 return NULL;
8664 }
8665
8666
8667 SWIGINTERN PyObject *_wrap_librdf_parser_parse_string_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8668 PyObject *resultobj = 0;
8669 librdf_parser *arg1 = (librdf_parser *) 0 ;
8670 char *arg2 = (char *) 0 ;
8671 librdf_uri *arg3 = (librdf_uri *) 0 ;
8672 void *argp1 = 0 ;
8673 int res1 = 0 ;
8674 int res2 ;
8675 char *buf2 = 0 ;
8676 int alloc2 = 0 ;
8677 void *argp3 = 0 ;
8678 int res3 = 0 ;
8679 PyObject * obj0 = 0 ;
8680 PyObject * obj1 = 0 ;
8681 PyObject * obj2 = 0 ;
8682 librdf_stream *result = 0 ;
8683
8684 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_parse_string_as_stream",&obj0,&obj1,&obj2)) SWIG_fail;
8685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8686 if (!SWIG_IsOK(res1)) {
8687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
8688 }
8689 arg1 = (librdf_parser *)(argp1);
8690 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8691 if (!SWIG_IsOK(res2)) {
8692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "2"" of type '" "char const *""'");
8693 }
8694 arg2 = (char *)(buf2);
8695 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8696 if (!SWIG_IsOK(res3)) {
8697 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "3"" of type '" "librdf_uri *""'");
8698 }
8699 arg3 = (librdf_uri *)(argp3);
8700 {
8701 result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3);
8702 if(librdf_python_error_message) {
8703 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8704 free(librdf_python_error_message);
8705 librdf_python_error_message=NULL;
8706 SWIG_fail;
8707 }
8708 if(librdf_python_warning_message) {
8709 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8710 free(librdf_python_warning_message);
8711 librdf_python_warning_message=NULL;
8712 }
8713 }
8714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
8715 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8716 return resultobj;
8717 fail:
8718 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8719 return NULL;
8720 }
8721
8722
8723 SWIGINTERN PyObject *_wrap_librdf_parser_parse_string_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8724 PyObject *resultobj = 0;
8725 librdf_parser *arg1 = (librdf_parser *) 0 ;
8726 char *arg2 = (char *) 0 ;
8727 librdf_uri *arg3 = (librdf_uri *) 0 ;
8728 librdf_model *arg4 = (librdf_model *) 0 ;
8729 void *argp1 = 0 ;
8730 int res1 = 0 ;
8731 int res2 ;
8732 char *buf2 = 0 ;
8733 int alloc2 = 0 ;
8734 void *argp3 = 0 ;
8735 int res3 = 0 ;
8736 void *argp4 = 0 ;
8737 int res4 = 0 ;
8738 PyObject * obj0 = 0 ;
8739 PyObject * obj1 = 0 ;
8740 PyObject * obj2 = 0 ;
8741 PyObject * obj3 = 0 ;
8742 int result;
8743
8744 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_string_into_model",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8746 if (!SWIG_IsOK(res1)) {
8747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
8748 }
8749 arg1 = (librdf_parser *)(argp1);
8750 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8751 if (!SWIG_IsOK(res2)) {
8752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_into_model" "', argument " "2"" of type '" "char const *""'");
8753 }
8754 arg2 = (char *)(buf2);
8755 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8756 if (!SWIG_IsOK(res3)) {
8757 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_into_model" "', argument " "3"" of type '" "librdf_uri *""'");
8758 }
8759 arg3 = (librdf_uri *)(argp3);
8760 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8761 if (!SWIG_IsOK(res4)) {
8762 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_string_into_model" "', argument " "4"" of type '" "librdf_model *""'");
8763 }
8764 arg4 = (librdf_model *)(argp4);
8765 {
8766 result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4);
8767 if(librdf_python_error_message) {
8768 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8769 free(librdf_python_error_message);
8770 librdf_python_error_message=NULL;
8771 SWIG_fail;
8772 }
8773 if(librdf_python_warning_message) {
8774 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8775 free(librdf_python_warning_message);
8776 librdf_python_warning_message=NULL;
8777 }
8778 }
8779 resultobj = SWIG_From_int((int)(result));
8780 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8781 return resultobj;
8782 fail:
8783 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8784 return NULL;
8785 }
8786
8787
8788 SWIGINTERN PyObject *_wrap_librdf_parser_parse_counted_string_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8789 PyObject *resultobj = 0;
8790 librdf_parser *arg1 = (librdf_parser *) 0 ;
8791 char *arg2 = (char *) 0 ;
8792 size_t arg3 ;
8793 librdf_uri *arg4 = (librdf_uri *) 0 ;
8794 void *argp1 = 0 ;
8795 int res1 = 0 ;
8796 int res2 ;
8797 char *buf2 = 0 ;
8798 int alloc2 = 0 ;
8799 size_t val3 ;
8800 int ecode3 = 0 ;
8801 void *argp4 = 0 ;
8802 int res4 = 0 ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 PyObject * obj2 = 0 ;
8806 PyObject * obj3 = 0 ;
8807 librdf_stream *result = 0 ;
8808
8809 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_parse_counted_string_as_stream",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8811 if (!SWIG_IsOK(res1)) {
8812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
8813 }
8814 arg1 = (librdf_parser *)(argp1);
8815 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8816 if (!SWIG_IsOK(res2)) {
8817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "2"" of type '" "char const *""'");
8818 }
8819 arg2 = (char *)(buf2);
8820 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8821 if (!SWIG_IsOK(ecode3)) {
8822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "3"" of type '" "size_t""'");
8823 }
8824 arg3 = (size_t)(val3);
8825 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8826 if (!SWIG_IsOK(res4)) {
8827 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "4"" of type '" "librdf_uri *""'");
8828 }
8829 arg4 = (librdf_uri *)(argp4);
8830 {
8831 result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4);
8832 if(librdf_python_error_message) {
8833 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8834 free(librdf_python_error_message);
8835 librdf_python_error_message=NULL;
8836 SWIG_fail;
8837 }
8838 if(librdf_python_warning_message) {
8839 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8840 free(librdf_python_warning_message);
8841 librdf_python_warning_message=NULL;
8842 }
8843 }
8844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8845 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8846 return resultobj;
8847 fail:
8848 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8849 return NULL;
8850 }
8851
8852
8853 SWIGINTERN PyObject *_wrap_librdf_parser_parse_counted_string_into_model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8854 PyObject *resultobj = 0;
8855 librdf_parser *arg1 = (librdf_parser *) 0 ;
8856 char *arg2 = (char *) 0 ;
8857 size_t arg3 ;
8858 librdf_uri *arg4 = (librdf_uri *) 0 ;
8859 librdf_model *arg5 = (librdf_model *) 0 ;
8860 void *argp1 = 0 ;
8861 int res1 = 0 ;
8862 int res2 ;
8863 char *buf2 = 0 ;
8864 int alloc2 = 0 ;
8865 size_t val3 ;
8866 int ecode3 = 0 ;
8867 void *argp4 = 0 ;
8868 int res4 = 0 ;
8869 void *argp5 = 0 ;
8870 int res5 = 0 ;
8871 PyObject * obj0 = 0 ;
8872 PyObject * obj1 = 0 ;
8873 PyObject * obj2 = 0 ;
8874 PyObject * obj3 = 0 ;
8875 PyObject * obj4 = 0 ;
8876 int result;
8877
8878 if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_parser_parse_counted_string_into_model",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8880 if (!SWIG_IsOK(res1)) {
8881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
8882 }
8883 arg1 = (librdf_parser *)(argp1);
8884 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
8885 if (!SWIG_IsOK(res2)) {
8886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "2"" of type '" "char const *""'");
8887 }
8888 arg2 = (char *)(buf2);
8889 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8890 if (!SWIG_IsOK(ecode3)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "3"" of type '" "size_t""'");
8892 }
8893 arg3 = (size_t)(val3);
8894 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8895 if (!SWIG_IsOK(res4)) {
8896 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "4"" of type '" "librdf_uri *""'");
8897 }
8898 arg4 = (librdf_uri *)(argp4);
8899 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8900 if (!SWIG_IsOK(res5)) {
8901 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "5"" of type '" "librdf_model *""'");
8902 }
8903 arg5 = (librdf_model *)(argp5);
8904 {
8905 result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5);
8906 if(librdf_python_error_message) {
8907 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8908 free(librdf_python_error_message);
8909 librdf_python_error_message=NULL;
8910 SWIG_fail;
8911 }
8912 if(librdf_python_warning_message) {
8913 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8914 free(librdf_python_warning_message);
8915 librdf_python_warning_message=NULL;
8916 }
8917 }
8918 resultobj = SWIG_From_int((int)(result));
8919 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8920 return resultobj;
8921 fail:
8922 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8923 return NULL;
8924 }
8925
8926
8927 SWIGINTERN PyObject *_wrap_librdf_parser_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8928 PyObject *resultobj = 0;
8929 librdf_parser *arg1 = (librdf_parser *) 0 ;
8930 librdf_uri *arg2 = (librdf_uri *) 0 ;
8931 void *argp1 = 0 ;
8932 int res1 = 0 ;
8933 void *argp2 = 0 ;
8934 int res2 = 0 ;
8935 PyObject * obj0 = 0 ;
8936 PyObject * obj1 = 0 ;
8937 librdf_node *result = 0 ;
8938
8939 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_feature",&obj0,&obj1)) SWIG_fail;
8940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8941 if (!SWIG_IsOK(res1)) {
8942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_feature" "', argument " "1"" of type '" "librdf_parser *""'");
8943 }
8944 arg1 = (librdf_parser *)(argp1);
8945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8946 if (!SWIG_IsOK(res2)) {
8947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
8948 }
8949 arg2 = (librdf_uri *)(argp2);
8950 {
8951 result = (librdf_node *)librdf_parser_get_feature(arg1,arg2);
8952 if(librdf_python_error_message) {
8953 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
8954 free(librdf_python_error_message);
8955 librdf_python_error_message=NULL;
8956 SWIG_fail;
8957 }
8958 if(librdf_python_warning_message) {
8959 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
8960 free(librdf_python_warning_message);
8961 librdf_python_warning_message=NULL;
8962 }
8963 }
8964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 SWIGINTERN PyObject *_wrap_librdf_parser_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8972 PyObject *resultobj = 0;
8973 librdf_parser *arg1 = (librdf_parser *) 0 ;
8974 librdf_uri *arg2 = (librdf_uri *) 0 ;
8975 librdf_node *arg3 = (librdf_node *) 0 ;
8976 void *argp1 = 0 ;
8977 int res1 = 0 ;
8978 void *argp2 = 0 ;
8979 int res2 = 0 ;
8980 void *argp3 = 0 ;
8981 int res3 = 0 ;
8982 PyObject * obj0 = 0 ;
8983 PyObject * obj1 = 0 ;
8984 PyObject * obj2 = 0 ;
8985 int result;
8986
8987 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_set_feature",&obj0,&obj1,&obj2)) SWIG_fail;
8988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_set_feature" "', argument " "1"" of type '" "librdf_parser *""'");
8991 }
8992 arg1 = (librdf_parser *)(argp1);
8993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8994 if (!SWIG_IsOK(res2)) {
8995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
8996 }
8997 arg2 = (librdf_uri *)(argp2);
8998 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
8999 if (!SWIG_IsOK(res3)) {
9000 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
9001 }
9002 arg3 = (librdf_node *)(argp3);
9003 {
9004 result = (int)librdf_parser_set_feature(arg1,arg2,arg3);
9005 if(librdf_python_error_message) {
9006 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9007 free(librdf_python_error_message);
9008 librdf_python_error_message=NULL;
9009 SWIG_fail;
9010 }
9011 if(librdf_python_warning_message) {
9012 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9013 free(librdf_python_warning_message);
9014 librdf_python_warning_message=NULL;
9015 }
9016 }
9017 resultobj = SWIG_From_int((int)(result));
9018 return resultobj;
9019 fail:
9020 return NULL;
9021 }
9022
9023
9024 SWIGINTERN PyObject *_wrap_librdf_parser_guess_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9025 PyObject *resultobj = 0;
9026 char *arg1 = (char *) 0 ;
9027 char *arg2 = (char *) 0 ;
9028 char *arg3 = (char *) 0 ;
9029 int res1 ;
9030 char *buf1 = 0 ;
9031 int alloc1 = 0 ;
9032 int res2 ;
9033 char *buf2 = 0 ;
9034 int alloc2 = 0 ;
9035 int res3 ;
9036 char *buf3 = 0 ;
9037 int alloc3 = 0 ;
9038 PyObject * obj0 = 0 ;
9039 PyObject * obj1 = 0 ;
9040 PyObject * obj2 = 0 ;
9041 char *result = 0 ;
9042
9043 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_parser_guess_name",&obj0,&obj1,&obj2)) SWIG_fail;
9044 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name" "', argument " "1"" of type '" "char const *""'");
9047 }
9048 arg1 = (char *)(buf1);
9049 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
9050 if (!SWIG_IsOK(res2)) {
9051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name" "', argument " "2"" of type '" "char const *""'");
9052 }
9053 arg2 = (char *)(buf2);
9054 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
9055 if (!SWIG_IsOK(res3)) {
9056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name" "', argument " "3"" of type '" "char const *""'");
9057 }
9058 arg3 = (char *)(buf3);
9059 {
9060 result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3);
9061 if(librdf_python_error_message) {
9062 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9063 free(librdf_python_error_message);
9064 librdf_python_error_message=NULL;
9065 SWIG_fail;
9066 }
9067 if(librdf_python_warning_message) {
9068 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9069 free(librdf_python_warning_message);
9070 librdf_python_warning_message=NULL;
9071 }
9072 }
9073 resultobj = SWIG_FromCharPtr((const char *)result);
9074 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9075 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9076 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
9077 return resultobj;
9078 fail:
9079 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
9080 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9081 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
9082 return NULL;
9083 }
9084
9085
9086 SWIGINTERN PyObject *_wrap_librdf_parser_guess_name2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9087 PyObject *resultobj = 0;
9088 librdf_world *arg1 = (librdf_world *) 0 ;
9089 char *arg2 = (char *) 0 ;
9090 char *arg3 = (char *) 0 ;
9091 char *arg4 = (char *) 0 ;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 int res2 ;
9095 char *buf2 = 0 ;
9096 int alloc2 = 0 ;
9097 int res3 ;
9098 char *buf3 = 0 ;
9099 int alloc3 = 0 ;
9100 int res4 ;
9101 char *buf4 = 0 ;
9102 int alloc4 = 0 ;
9103 PyObject * obj0 = 0 ;
9104 PyObject * obj1 = 0 ;
9105 PyObject * obj2 = 0 ;
9106 PyObject * obj3 = 0 ;
9107 char *result = 0 ;
9108
9109 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_parser_guess_name2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
9111 if (!SWIG_IsOK(res1)) {
9112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name2" "', argument " "1"" of type '" "librdf_world *""'");
9113 }
9114 arg1 = (librdf_world *)(argp1);
9115 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
9116 if (!SWIG_IsOK(res2)) {
9117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name2" "', argument " "2"" of type '" "char const *""'");
9118 }
9119 arg2 = (char *)(buf2);
9120 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
9121 if (!SWIG_IsOK(res3)) {
9122 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name2" "', argument " "3"" of type '" "char const *""'");
9123 }
9124 arg3 = (char *)(buf3);
9125 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
9126 if (!SWIG_IsOK(res4)) {
9127 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_guess_name2" "', argument " "4"" of type '" "char const *""'");
9128 }
9129 arg4 = (char *)(buf4);
9130 {
9131 result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
9132 if(librdf_python_error_message) {
9133 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9134 free(librdf_python_error_message);
9135 librdf_python_error_message=NULL;
9136 SWIG_fail;
9137 }
9138 if(librdf_python_warning_message) {
9139 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9140 free(librdf_python_warning_message);
9141 librdf_python_warning_message=NULL;
9142 }
9143 }
9144 resultobj = SWIG_FromCharPtr((const char *)result);
9145 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9146 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
9147 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
9148 return resultobj;
9149 fail:
9150 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9151 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
9152 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
9153 return NULL;
9154 }
9155
9156
9157 SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_prefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9158 PyObject *resultobj = 0;
9159 librdf_parser *arg1 = (librdf_parser *) 0 ;
9160 int arg2 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 int val2 ;
9164 int ecode2 = 0 ;
9165 PyObject * obj0 = 0 ;
9166 PyObject * obj1 = 0 ;
9167 char *result = 0 ;
9168
9169 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_namespaces_seen_prefix",&obj0,&obj1)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "1"" of type '" "librdf_parser *""'");
9173 }
9174 arg1 = (librdf_parser *)(argp1);
9175 ecode2 = SWIG_AsVal_int(obj1, &val2);
9176 if (!SWIG_IsOK(ecode2)) {
9177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "2"" of type '" "int""'");
9178 }
9179 arg2 = (int)(val2);
9180 {
9181 result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2);
9182 if(librdf_python_error_message) {
9183 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9184 free(librdf_python_error_message);
9185 librdf_python_error_message=NULL;
9186 SWIG_fail;
9187 }
9188 if(librdf_python_warning_message) {
9189 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9190 free(librdf_python_warning_message);
9191 librdf_python_warning_message=NULL;
9192 }
9193 }
9194 resultobj = SWIG_FromCharPtr((const char *)result);
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9202 PyObject *resultobj = 0;
9203 librdf_parser *arg1 = (librdf_parser *) 0 ;
9204 int arg2 ;
9205 void *argp1 = 0 ;
9206 int res1 = 0 ;
9207 int val2 ;
9208 int ecode2 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 librdf_uri *result = 0 ;
9212
9213 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_parser_get_namespaces_seen_uri",&obj0,&obj1)) SWIG_fail;
9214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
9215 if (!SWIG_IsOK(res1)) {
9216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "1"" of type '" "librdf_parser *""'");
9217 }
9218 arg1 = (librdf_parser *)(argp1);
9219 ecode2 = SWIG_AsVal_int(obj1, &val2);
9220 if (!SWIG_IsOK(ecode2)) {
9221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "2"" of type '" "int""'");
9222 }
9223 arg2 = (int)(val2);
9224 {
9225 result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2);
9226 if(librdf_python_error_message) {
9227 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9228 free(librdf_python_error_message);
9229 librdf_python_error_message=NULL;
9230 SWIG_fail;
9231 }
9232 if(librdf_python_warning_message) {
9233 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9234 free(librdf_python_warning_message);
9235 librdf_python_warning_message=NULL;
9236 }
9237 }
9238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0 );
9239 return resultobj;
9240 fail:
9241 return NULL;
9242 }
9243
9244
9245 SWIGINTERN PyObject *_wrap_librdf_parser_get_namespaces_seen_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9246 PyObject *resultobj = 0;
9247 librdf_parser *arg1 = (librdf_parser *) 0 ;
9248 void *argp1 = 0 ;
9249 int res1 = 0 ;
9250 PyObject * obj0 = 0 ;
9251 int result;
9252
9253 if (!PyArg_ParseTuple(args,(char *)"O:librdf_parser_get_namespaces_seen_count",&obj0)) SWIG_fail;
9254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
9255 if (!SWIG_IsOK(res1)) {
9256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_count" "', argument " "1"" of type '" "librdf_parser *""'");
9257 }
9258 arg1 = (librdf_parser *)(argp1);
9259 {
9260 result = (int)librdf_parser_get_namespaces_seen_count(arg1);
9261 if(librdf_python_error_message) {
9262 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9263 free(librdf_python_error_message);
9264 librdf_python_error_message=NULL;
9265 SWIG_fail;
9266 }
9267 if(librdf_python_warning_message) {
9268 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9269 free(librdf_python_warning_message);
9270 librdf_python_warning_message=NULL;
9271 }
9272 }
9273 resultobj = SWIG_From_int((int)(result));
9274 return resultobj;
9275 fail:
9276 return NULL;
9277 }
9278
9279
9280 SWIGINTERN PyObject *_wrap_librdf_new_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9281 PyObject *resultobj = 0;
9282 librdf_world *arg1 = (librdf_world *) 0 ;
9283 char *arg2 = (char *) 0 ;
9284 librdf_uri *arg3 = (librdf_uri *) 0 ;
9285 char *arg4 = (char *) 0 ;
9286 librdf_uri *arg5 = (librdf_uri *) 0 ;
9287 void *argp1 = 0 ;
9288 int res1 = 0 ;
9289 int res2 ;
9290 char *buf2 = 0 ;
9291 int alloc2 = 0 ;
9292 void *argp3 = 0 ;
9293 int res3 = 0 ;
9294 int res4 ;
9295 char *buf4 = 0 ;
9296 int alloc4 = 0 ;
9297 void *argp5 = 0 ;
9298 int res5 = 0 ;
9299 PyObject * obj0 = 0 ;
9300 PyObject * obj1 = 0 ;
9301 PyObject * obj2 = 0 ;
9302 PyObject * obj3 = 0 ;
9303 PyObject * obj4 = 0 ;
9304 librdf_query *result = 0 ;
9305
9306 if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_new_query",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query" "', argument " "1"" of type '" "librdf_world *""'");
9310 }
9311 arg1 = (librdf_world *)(argp1);
9312 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
9313 if (!SWIG_IsOK(res2)) {
9314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_query" "', argument " "2"" of type '" "char const *""'");
9315 }
9316 arg2 = (char *)(buf2);
9317 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
9318 if (!SWIG_IsOK(res3)) {
9319 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_query" "', argument " "3"" of type '" "librdf_uri *""'");
9320 }
9321 arg3 = (librdf_uri *)(argp3);
9322 res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
9323 if (!SWIG_IsOK(res4)) {
9324 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_query" "', argument " "4"" of type '" "char const *""'");
9325 }
9326 arg4 = (char *)(buf4);
9327 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
9328 if (!SWIG_IsOK(res5)) {
9329 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_new_query" "', argument " "5"" of type '" "librdf_uri *""'");
9330 }
9331 arg5 = (librdf_uri *)(argp5);
9332 {
9333 result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5);
9334 if(librdf_python_error_message) {
9335 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9336 free(librdf_python_error_message);
9337 librdf_python_error_message=NULL;
9338 SWIG_fail;
9339 }
9340 if(librdf_python_warning_message) {
9341 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9342 free(librdf_python_warning_message);
9343 librdf_python_warning_message=NULL;
9344 }
9345 }
9346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 );
9347 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9348 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
9349 return resultobj;
9350 fail:
9351 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9352 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
9353 return NULL;
9354 }
9355
9356
9357 SWIGINTERN PyObject *_wrap_librdf_new_query_from_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9358 PyObject *resultobj = 0;
9359 librdf_query *arg1 = (librdf_query *) 0 ;
9360 void *argp1 = 0 ;
9361 int res1 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 librdf_query *result = 0 ;
9364
9365 if (!PyArg_ParseTuple(args,(char *)"O:librdf_new_query_from_query",&obj0)) SWIG_fail;
9366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9367 if (!SWIG_IsOK(res1)) {
9368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query_from_query" "', argument " "1"" of type '" "librdf_query *""'");
9369 }
9370 arg1 = (librdf_query *)(argp1);
9371 {
9372 result = (librdf_query *)librdf_new_query_from_query(arg1);
9373 if(librdf_python_error_message) {
9374 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9375 free(librdf_python_error_message);
9376 librdf_python_error_message=NULL;
9377 SWIG_fail;
9378 }
9379 if(librdf_python_warning_message) {
9380 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9381 free(librdf_python_warning_message);
9382 librdf_python_warning_message=NULL;
9383 }
9384 }
9385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_POINTER_OWN | 0 );
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 SWIGINTERN PyObject *_wrap_librdf_free_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9393 PyObject *resultobj = 0;
9394 librdf_query *arg1 = (librdf_query *) 0 ;
9395 void *argp1 = 0 ;
9396 int res1 = 0 ;
9397 PyObject * obj0 = 0 ;
9398
9399 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_query",&obj0)) SWIG_fail;
9400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9401 if (!SWIG_IsOK(res1)) {
9402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query" "', argument " "1"" of type '" "librdf_query *""'");
9403 }
9404 arg1 = (librdf_query *)(argp1);
9405 {
9406 librdf_free_query(arg1);
9407 if(librdf_python_error_message) {
9408 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9409 free(librdf_python_error_message);
9410 librdf_python_error_message=NULL;
9411 SWIG_fail;
9412 }
9413 if(librdf_python_warning_message) {
9414 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9415 free(librdf_python_warning_message);
9416 librdf_python_warning_message=NULL;
9417 }
9418 }
9419 resultobj = SWIG_Py_Void();
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 SWIGINTERN PyObject *_wrap_librdf_query_execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9427 PyObject *resultobj = 0;
9428 librdf_query *arg1 = (librdf_query *) 0 ;
9429 librdf_model *arg2 = (librdf_model *) 0 ;
9430 void *argp1 = 0 ;
9431 int res1 = 0 ;
9432 void *argp2 = 0 ;
9433 int res2 = 0 ;
9434 PyObject * obj0 = 0 ;
9435 PyObject * obj1 = 0 ;
9436 librdf_query_results *result = 0 ;
9437
9438 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_execute",&obj0,&obj1)) SWIG_fail;
9439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9440 if (!SWIG_IsOK(res1)) {
9441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_execute" "', argument " "1"" of type '" "librdf_query *""'");
9442 }
9443 arg1 = (librdf_query *)(argp1);
9444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_model_s, 0 | 0 );
9445 if (!SWIG_IsOK(res2)) {
9446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_execute" "', argument " "2"" of type '" "librdf_model *""'");
9447 }
9448 arg2 = (librdf_model *)(argp2);
9449 {
9450 result = (librdf_query_results *)librdf_query_execute(arg1,arg2);
9451 if(librdf_python_error_message) {
9452 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9453 free(librdf_python_error_message);
9454 librdf_python_error_message=NULL;
9455 SWIG_fail;
9456 }
9457 if(librdf_python_warning_message) {
9458 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9459 free(librdf_python_warning_message);
9460 librdf_python_warning_message=NULL;
9461 }
9462 }
9463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_POINTER_OWN | 0 );
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 SWIGINTERN PyObject *_wrap_librdf_query_get_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9471 PyObject *resultobj = 0;
9472 librdf_query *arg1 = (librdf_query *) 0 ;
9473 void *argp1 = 0 ;
9474 int res1 = 0 ;
9475 PyObject * obj0 = 0 ;
9476 int result;
9477
9478 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_get_limit",&obj0)) SWIG_fail;
9479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9480 if (!SWIG_IsOK(res1)) {
9481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_limit" "', argument " "1"" of type '" "librdf_query *""'");
9482 }
9483 arg1 = (librdf_query *)(argp1);
9484 {
9485 result = (int)librdf_query_get_limit(arg1);
9486 if(librdf_python_error_message) {
9487 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9488 free(librdf_python_error_message);
9489 librdf_python_error_message=NULL;
9490 SWIG_fail;
9491 }
9492 if(librdf_python_warning_message) {
9493 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9494 free(librdf_python_warning_message);
9495 librdf_python_warning_message=NULL;
9496 }
9497 }
9498 resultobj = SWIG_From_int((int)(result));
9499 return resultobj;
9500 fail:
9501 return NULL;
9502 }
9503
9504
9505 SWIGINTERN PyObject *_wrap_librdf_query_set_limit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9506 PyObject *resultobj = 0;
9507 librdf_query *arg1 = (librdf_query *) 0 ;
9508 int arg2 ;
9509 void *argp1 = 0 ;
9510 int res1 = 0 ;
9511 int val2 ;
9512 int ecode2 = 0 ;
9513 PyObject * obj0 = 0 ;
9514 PyObject * obj1 = 0 ;
9515 int result;
9516
9517 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_set_limit",&obj0,&obj1)) SWIG_fail;
9518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9519 if (!SWIG_IsOK(res1)) {
9520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_limit" "', argument " "1"" of type '" "librdf_query *""'");
9521 }
9522 arg1 = (librdf_query *)(argp1);
9523 ecode2 = SWIG_AsVal_int(obj1, &val2);
9524 if (!SWIG_IsOK(ecode2)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_limit" "', argument " "2"" of type '" "int""'");
9526 }
9527 arg2 = (int)(val2);
9528 {
9529 result = (int)librdf_query_set_limit(arg1,arg2);
9530 if(librdf_python_error_message) {
9531 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9532 free(librdf_python_error_message);
9533 librdf_python_error_message=NULL;
9534 SWIG_fail;
9535 }
9536 if(librdf_python_warning_message) {
9537 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9538 free(librdf_python_warning_message);
9539 librdf_python_warning_message=NULL;
9540 }
9541 }
9542 resultobj = SWIG_From_int((int)(result));
9543 return resultobj;
9544 fail:
9545 return NULL;
9546 }
9547
9548
9549 SWIGINTERN PyObject *_wrap_librdf_query_get_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9550 PyObject *resultobj = 0;
9551 librdf_query *arg1 = (librdf_query *) 0 ;
9552 void *argp1 = 0 ;
9553 int res1 = 0 ;
9554 PyObject * obj0 = 0 ;
9555 int result;
9556
9557 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_get_offset",&obj0)) SWIG_fail;
9558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9559 if (!SWIG_IsOK(res1)) {
9560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_offset" "', argument " "1"" of type '" "librdf_query *""'");
9561 }
9562 arg1 = (librdf_query *)(argp1);
9563 {
9564 result = (int)librdf_query_get_offset(arg1);
9565 if(librdf_python_error_message) {
9566 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9567 free(librdf_python_error_message);
9568 librdf_python_error_message=NULL;
9569 SWIG_fail;
9570 }
9571 if(librdf_python_warning_message) {
9572 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9573 free(librdf_python_warning_message);
9574 librdf_python_warning_message=NULL;
9575 }
9576 }
9577 resultobj = SWIG_From_int((int)(result));
9578 return resultobj;
9579 fail:
9580 return NULL;
9581 }
9582
9583
9584 SWIGINTERN PyObject *_wrap_librdf_query_set_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9585 PyObject *resultobj = 0;
9586 librdf_query *arg1 = (librdf_query *) 0 ;
9587 int arg2 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 int val2 ;
9591 int ecode2 = 0 ;
9592 PyObject * obj0 = 0 ;
9593 PyObject * obj1 = 0 ;
9594 int result;
9595
9596 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_set_offset",&obj0,&obj1)) SWIG_fail;
9597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_offset" "', argument " "1"" of type '" "librdf_query *""'");
9600 }
9601 arg1 = (librdf_query *)(argp1);
9602 ecode2 = SWIG_AsVal_int(obj1, &val2);
9603 if (!SWIG_IsOK(ecode2)) {
9604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_offset" "', argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = (int)(val2);
9607 {
9608 result = (int)librdf_query_set_offset(arg1,arg2);
9609 if(librdf_python_error_message) {
9610 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9611 free(librdf_python_error_message);
9612 librdf_python_error_message=NULL;
9613 SWIG_fail;
9614 }
9615 if(librdf_python_warning_message) {
9616 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9617 free(librdf_python_warning_message);
9618 librdf_python_warning_message=NULL;
9619 }
9620 }
9621 resultobj = SWIG_From_int((int)(result));
9622 return resultobj;
9623 fail:
9624 return NULL;
9625 }
9626
9627
9628 SWIGINTERN PyObject *_wrap_librdf_query_results_as_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9629 PyObject *resultobj = 0;
9630 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 PyObject * obj0 = 0 ;
9634 librdf_stream *result = 0 ;
9635
9636 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_as_stream",&obj0)) SWIG_fail;
9637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_as_stream" "', argument " "1"" of type '" "librdf_query_results *""'");
9640 }
9641 arg1 = (librdf_query_results *)(argp1);
9642 {
9643 result = (librdf_stream *)librdf_query_results_as_stream(arg1);
9644 if(librdf_python_error_message) {
9645 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9646 free(librdf_python_error_message);
9647 librdf_python_error_message=NULL;
9648 SWIG_fail;
9649 }
9650 if(librdf_python_warning_message) {
9651 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9652 free(librdf_python_warning_message);
9653 librdf_python_warning_message=NULL;
9654 }
9655 }
9656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_POINTER_OWN | 0 );
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_librdf_query_results_get_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9664 PyObject *resultobj = 0;
9665 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 PyObject * obj0 = 0 ;
9669 int result;
9670
9671 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_count",&obj0)) SWIG_fail;
9672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_count" "', argument " "1"" of type '" "librdf_query_results *""'");
9675 }
9676 arg1 = (librdf_query_results *)(argp1);
9677 {
9678 result = (int)librdf_query_results_get_count(arg1);
9679 if(librdf_python_error_message) {
9680 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9681 free(librdf_python_error_message);
9682 librdf_python_error_message=NULL;
9683 SWIG_fail;
9684 }
9685 if(librdf_python_warning_message) {
9686 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9687 free(librdf_python_warning_message);
9688 librdf_python_warning_message=NULL;
9689 }
9690 }
9691 resultobj = SWIG_From_int((int)(result));
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 SWIGINTERN PyObject *_wrap_librdf_query_results_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9699 PyObject *resultobj = 0;
9700 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 PyObject * obj0 = 0 ;
9704 int result;
9705
9706 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_next",&obj0)) SWIG_fail;
9707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9708 if (!SWIG_IsOK(res1)) {
9709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_next" "', argument " "1"" of type '" "librdf_query_results *""'");
9710 }
9711 arg1 = (librdf_query_results *)(argp1);
9712 {
9713 result = (int)librdf_query_results_next(arg1);
9714 if(librdf_python_error_message) {
9715 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9716 free(librdf_python_error_message);
9717 librdf_python_error_message=NULL;
9718 SWIG_fail;
9719 }
9720 if(librdf_python_warning_message) {
9721 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9722 free(librdf_python_warning_message);
9723 librdf_python_warning_message=NULL;
9724 }
9725 }
9726 resultobj = SWIG_From_int((int)(result));
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 SWIGINTERN PyObject *_wrap_librdf_query_results_finished(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9734 PyObject *resultobj = 0;
9735 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9736 void *argp1 = 0 ;
9737 int res1 = 0 ;
9738 PyObject * obj0 = 0 ;
9739 int result;
9740
9741 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_finished",&obj0)) SWIG_fail;
9742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9743 if (!SWIG_IsOK(res1)) {
9744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_finished" "', argument " "1"" of type '" "librdf_query_results *""'");
9745 }
9746 arg1 = (librdf_query_results *)(argp1);
9747 {
9748 result = (int)librdf_query_results_finished(arg1);
9749 if(librdf_python_error_message) {
9750 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9751 free(librdf_python_error_message);
9752 librdf_python_error_message=NULL;
9753 SWIG_fail;
9754 }
9755 if(librdf_python_warning_message) {
9756 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9757 free(librdf_python_warning_message);
9758 librdf_python_warning_message=NULL;
9759 }
9760 }
9761 resultobj = SWIG_From_int((int)(result));
9762 return resultobj;
9763 fail:
9764 return NULL;
9765 }
9766
9767
9768 SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9769 PyObject *resultobj = 0;
9770 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9771 int arg2 ;
9772 void *argp1 = 0 ;
9773 int res1 = 0 ;
9774 int val2 ;
9775 int ecode2 = 0 ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 librdf_node *result = 0 ;
9779
9780 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_value",&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value" "', argument " "1"" of type '" "librdf_query_results *""'");
9784 }
9785 arg1 = (librdf_query_results *)(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_value" "', argument " "2"" of type '" "int""'");
9789 }
9790 arg2 = (int)(val2);
9791 {
9792 result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2);
9793 if(librdf_python_error_message) {
9794 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9795 free(librdf_python_error_message);
9796 librdf_python_error_message=NULL;
9797 SWIG_fail;
9798 }
9799 if(librdf_python_warning_message) {
9800 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9801 free(librdf_python_warning_message);
9802 librdf_python_warning_message=NULL;
9803 }
9804 }
9805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
9806 return resultobj;
9807 fail:
9808 return NULL;
9809 }
9810
9811
9812 SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9813 PyObject *resultobj = 0;
9814 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9815 int arg2 ;
9816 void *argp1 = 0 ;
9817 int res1 = 0 ;
9818 int val2 ;
9819 int ecode2 = 0 ;
9820 PyObject * obj0 = 0 ;
9821 PyObject * obj1 = 0 ;
9822 char *result = 0 ;
9823
9824 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_name",&obj0,&obj1)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_name" "', argument " "1"" of type '" "librdf_query_results *""'");
9828 }
9829 arg1 = (librdf_query_results *)(argp1);
9830 ecode2 = SWIG_AsVal_int(obj1, &val2);
9831 if (!SWIG_IsOK(ecode2)) {
9832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_name" "', argument " "2"" of type '" "int""'");
9833 }
9834 arg2 = (int)(val2);
9835 {
9836 result = (char *)librdf_query_results_get_binding_name(arg1,arg2);
9837 if(librdf_python_error_message) {
9838 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9839 free(librdf_python_error_message);
9840 librdf_python_error_message=NULL;
9841 SWIG_fail;
9842 }
9843 if(librdf_python_warning_message) {
9844 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9845 free(librdf_python_warning_message);
9846 librdf_python_warning_message=NULL;
9847 }
9848 }
9849 resultobj = SWIG_FromCharPtr((const char *)result);
9850 return resultobj;
9851 fail:
9852 return NULL;
9853 }
9854
9855
9856 SWIGINTERN PyObject *_wrap_librdf_query_results_get_binding_value_by_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9857 PyObject *resultobj = 0;
9858 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9859 char *arg2 = (char *) 0 ;
9860 void *argp1 = 0 ;
9861 int res1 = 0 ;
9862 int res2 ;
9863 char *buf2 = 0 ;
9864 int alloc2 = 0 ;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867 librdf_node *result = 0 ;
9868
9869 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_query_results_get_binding_value_by_name",&obj0,&obj1)) SWIG_fail;
9870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9871 if (!SWIG_IsOK(res1)) {
9872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "1"" of type '" "librdf_query_results *""'");
9873 }
9874 arg1 = (librdf_query_results *)(argp1);
9875 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
9876 if (!SWIG_IsOK(res2)) {
9877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "2"" of type '" "char const *""'");
9878 }
9879 arg2 = (char *)(buf2);
9880 {
9881 result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2);
9882 if(librdf_python_error_message) {
9883 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9884 free(librdf_python_error_message);
9885 librdf_python_error_message=NULL;
9886 SWIG_fail;
9887 }
9888 if(librdf_python_warning_message) {
9889 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9890 free(librdf_python_warning_message);
9891 librdf_python_warning_message=NULL;
9892 }
9893 }
9894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_POINTER_OWN | 0 );
9895 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9896 return resultobj;
9897 fail:
9898 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9899 return NULL;
9900 }
9901
9902
9903 SWIGINTERN PyObject *_wrap_librdf_query_results_get_bindings_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9904 PyObject *resultobj = 0;
9905 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9906 void *argp1 = 0 ;
9907 int res1 = 0 ;
9908 PyObject * obj0 = 0 ;
9909 int result;
9910
9911 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_bindings_count",&obj0)) SWIG_fail;
9912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9913 if (!SWIG_IsOK(res1)) {
9914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_bindings_count" "', argument " "1"" of type '" "librdf_query_results *""'");
9915 }
9916 arg1 = (librdf_query_results *)(argp1);
9917 {
9918 result = (int)librdf_query_results_get_bindings_count(arg1);
9919 if(librdf_python_error_message) {
9920 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9921 free(librdf_python_error_message);
9922 librdf_python_error_message=NULL;
9923 SWIG_fail;
9924 }
9925 if(librdf_python_warning_message) {
9926 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9927 free(librdf_python_warning_message);
9928 librdf_python_warning_message=NULL;
9929 }
9930 }
9931 resultobj = SWIG_From_int((int)(result));
9932 return resultobj;
9933 fail:
9934 return NULL;
9935 }
9936
9937
9938 SWIGINTERN PyObject *_wrap_librdf_query_results_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9939 PyObject *resultobj = 0;
9940 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
9941 char *arg2 = (char *) 0 ;
9942 librdf_uri *arg3 = (librdf_uri *) 0 ;
9943 librdf_uri *arg4 = (librdf_uri *) 0 ;
9944 void *argp1 = 0 ;
9945 int res1 = 0 ;
9946 int res2 ;
9947 char *buf2 = 0 ;
9948 int alloc2 = 0 ;
9949 void *argp3 = 0 ;
9950 int res3 = 0 ;
9951 void *argp4 = 0 ;
9952 int res4 = 0 ;
9953 PyObject * obj0 = 0 ;
9954 PyObject * obj1 = 0 ;
9955 PyObject * obj2 = 0 ;
9956 PyObject * obj3 = 0 ;
9957 int result;
9958
9959 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_query_results_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
9961 if (!SWIG_IsOK(res1)) {
9962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file" "', argument " "1"" of type '" "librdf_query_results *""'");
9963 }
9964 arg1 = (librdf_query_results *)(argp1);
9965 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
9966 if (!SWIG_IsOK(res2)) {
9967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file" "', argument " "2"" of type '" "char const *""'");
9968 }
9969 arg2 = (char *)(buf2);
9970 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
9971 if (!SWIG_IsOK(res3)) {
9972 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
9973 }
9974 arg3 = (librdf_uri *)(argp3);
9975 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
9976 if (!SWIG_IsOK(res4)) {
9977 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file" "', argument " "4"" of type '" "librdf_uri *""'");
9978 }
9979 arg4 = (librdf_uri *)(argp4);
9980 {
9981 result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4);
9982 if(librdf_python_error_message) {
9983 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
9984 free(librdf_python_error_message);
9985 librdf_python_error_message=NULL;
9986 SWIG_fail;
9987 }
9988 if(librdf_python_warning_message) {
9989 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
9990 free(librdf_python_warning_message);
9991 librdf_python_warning_message=NULL;
9992 }
9993 }
9994 resultobj = SWIG_From_int((int)(result));
9995 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9996 return resultobj;
9997 fail:
9998 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
9999 return NULL;
10000 }
10001
10002
10003 SWIGINTERN PyObject *_wrap_librdf_query_results_to_file2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10004 PyObject *resultobj = 0;
10005 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10006 char *arg2 = (char *) 0 ;
10007 char *arg3 = (char *) 0 ;
10008 librdf_uri *arg4 = (librdf_uri *) 0 ;
10009 librdf_uri *arg5 = (librdf_uri *) 0 ;
10010 void *argp1 = 0 ;
10011 int res1 = 0 ;
10012 int res2 ;
10013 char *buf2 = 0 ;
10014 int alloc2 = 0 ;
10015 int res3 ;
10016 char *buf3 = 0 ;
10017 int alloc3 = 0 ;
10018 void *argp4 = 0 ;
10019 int res4 = 0 ;
10020 void *argp5 = 0 ;
10021 int res5 = 0 ;
10022 PyObject * obj0 = 0 ;
10023 PyObject * obj1 = 0 ;
10024 PyObject * obj2 = 0 ;
10025 PyObject * obj3 = 0 ;
10026 PyObject * obj4 = 0 ;
10027 int result;
10028
10029 if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_query_results_to_file2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10031 if (!SWIG_IsOK(res1)) {
10032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file2" "', argument " "1"" of type '" "librdf_query_results *""'");
10033 }
10034 arg1 = (librdf_query_results *)(argp1);
10035 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10036 if (!SWIG_IsOK(res2)) {
10037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file2" "', argument " "2"" of type '" "char const *""'");
10038 }
10039 arg2 = (char *)(buf2);
10040 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10041 if (!SWIG_IsOK(res3)) {
10042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file2" "', argument " "3"" of type '" "char const *""'");
10043 }
10044 arg3 = (char *)(buf3);
10045 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10046 if (!SWIG_IsOK(res4)) {
10047 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file2" "', argument " "4"" of type '" "librdf_uri *""'");
10048 }
10049 arg4 = (librdf_uri *)(argp4);
10050 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10051 if (!SWIG_IsOK(res5)) {
10052 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_file2" "', argument " "5"" of type '" "librdf_uri *""'");
10053 }
10054 arg5 = (librdf_uri *)(argp5);
10055 {
10056 result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
10057 if(librdf_python_error_message) {
10058 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10059 free(librdf_python_error_message);
10060 librdf_python_error_message=NULL;
10061 SWIG_fail;
10062 }
10063 if(librdf_python_warning_message) {
10064 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10065 free(librdf_python_warning_message);
10066 librdf_python_warning_message=NULL;
10067 }
10068 }
10069 resultobj = SWIG_From_int((int)(result));
10070 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10071 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10072 return resultobj;
10073 fail:
10074 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10075 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10076 return NULL;
10077 }
10078
10079
10080 SWIGINTERN PyObject *_wrap_librdf_query_results_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *resultobj = 0;
10082 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10083 librdf_uri *arg2 = (librdf_uri *) 0 ;
10084 librdf_uri *arg3 = (librdf_uri *) 0 ;
10085 void *argp1 = 0 ;
10086 int res1 = 0 ;
10087 void *argp2 = 0 ;
10088 int res2 = 0 ;
10089 void *argp3 = 0 ;
10090 int res3 = 0 ;
10091 PyObject * obj0 = 0 ;
10092 PyObject * obj1 = 0 ;
10093 PyObject * obj2 = 0 ;
10094 char *result = 0 ;
10095
10096 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_query_results_to_string",&obj0,&obj1,&obj2)) SWIG_fail;
10097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10098 if (!SWIG_IsOK(res1)) {
10099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string" "', argument " "1"" of type '" "librdf_query_results *""'");
10100 }
10101 arg1 = (librdf_query_results *)(argp1);
10102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10103 if (!SWIG_IsOK(res2)) {
10104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
10105 }
10106 arg2 = (librdf_uri *)(argp2);
10107 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10108 if (!SWIG_IsOK(res3)) {
10109 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string" "', argument " "3"" of type '" "librdf_uri *""'");
10110 }
10111 arg3 = (librdf_uri *)(argp3);
10112 {
10113 result = (char *)librdf_query_results_to_string(arg1,arg2,arg3);
10114 if(librdf_python_error_message) {
10115 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10116 free(librdf_python_error_message);
10117 librdf_python_error_message=NULL;
10118 SWIG_fail;
10119 }
10120 if(librdf_python_warning_message) {
10121 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10122 free(librdf_python_warning_message);
10123 librdf_python_warning_message=NULL;
10124 }
10125 }
10126 resultobj = SWIG_FromCharPtr((const char *)result);
10127 free((char*)result);
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 SWIGINTERN PyObject *_wrap_librdf_query_results_to_string2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10135 PyObject *resultobj = 0;
10136 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10137 char *arg2 = (char *) 0 ;
10138 char *arg3 = (char *) 0 ;
10139 librdf_uri *arg4 = (librdf_uri *) 0 ;
10140 librdf_uri *arg5 = (librdf_uri *) 0 ;
10141 void *argp1 = 0 ;
10142 int res1 = 0 ;
10143 int res2 ;
10144 char *buf2 = 0 ;
10145 int alloc2 = 0 ;
10146 int res3 ;
10147 char *buf3 = 0 ;
10148 int alloc3 = 0 ;
10149 void *argp4 = 0 ;
10150 int res4 = 0 ;
10151 void *argp5 = 0 ;
10152 int res5 = 0 ;
10153 PyObject * obj0 = 0 ;
10154 PyObject * obj1 = 0 ;
10155 PyObject * obj2 = 0 ;
10156 PyObject * obj3 = 0 ;
10157 PyObject * obj4 = 0 ;
10158 char *result = 0 ;
10159
10160 if (!PyArg_ParseTuple(args,(char *)"OOOOO:librdf_query_results_to_string2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10162 if (!SWIG_IsOK(res1)) {
10163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string2" "', argument " "1"" of type '" "librdf_query_results *""'");
10164 }
10165 arg1 = (librdf_query_results *)(argp1);
10166 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10167 if (!SWIG_IsOK(res2)) {
10168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string2" "', argument " "2"" of type '" "char const *""'");
10169 }
10170 arg2 = (char *)(buf2);
10171 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10172 if (!SWIG_IsOK(res3)) {
10173 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string2" "', argument " "3"" of type '" "char const *""'");
10174 }
10175 arg3 = (char *)(buf3);
10176 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10177 if (!SWIG_IsOK(res4)) {
10178 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_string2" "', argument " "4"" of type '" "librdf_uri *""'");
10179 }
10180 arg4 = (librdf_uri *)(argp4);
10181 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10182 if (!SWIG_IsOK(res5)) {
10183 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_string2" "', argument " "5"" of type '" "librdf_uri *""'");
10184 }
10185 arg5 = (librdf_uri *)(argp5);
10186 {
10187 result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
10188 if(librdf_python_error_message) {
10189 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10190 free(librdf_python_error_message);
10191 librdf_python_error_message=NULL;
10192 SWIG_fail;
10193 }
10194 if(librdf_python_warning_message) {
10195 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10196 free(librdf_python_warning_message);
10197 librdf_python_warning_message=NULL;
10198 }
10199 }
10200 resultobj = SWIG_FromCharPtr((const char *)result);
10201 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10202 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10203 free((char*)result);
10204 return resultobj;
10205 fail:
10206 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10207 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10208 return NULL;
10209 }
10210
10211
10212 SWIGINTERN PyObject *_wrap_librdf_free_query_results(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10213 PyObject *resultobj = 0;
10214 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10215 void *argp1 = 0 ;
10216 int res1 = 0 ;
10217 PyObject * obj0 = 0 ;
10218
10219 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_query_results",&obj0)) SWIG_fail;
10220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10221 if (!SWIG_IsOK(res1)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query_results" "', argument " "1"" of type '" "librdf_query_results *""'");
10223 }
10224 arg1 = (librdf_query_results *)(argp1);
10225 {
10226 librdf_free_query_results(arg1);
10227 if(librdf_python_error_message) {
10228 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10229 free(librdf_python_error_message);
10230 librdf_python_error_message=NULL;
10231 SWIG_fail;
10232 }
10233 if(librdf_python_warning_message) {
10234 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10235 free(librdf_python_warning_message);
10236 librdf_python_warning_message=NULL;
10237 }
10238 }
10239 resultobj = SWIG_Py_Void();
10240 return resultobj;
10241 fail:
10242 return NULL;
10243 }
10244
10245
10246 SWIGINTERN PyObject *_wrap_librdf_query_results_is_bindings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10247 PyObject *resultobj = 0;
10248 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 PyObject * obj0 = 0 ;
10252 int result;
10253
10254 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_bindings",&obj0)) SWIG_fail;
10255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10256 if (!SWIG_IsOK(res1)) {
10257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_bindings" "', argument " "1"" of type '" "librdf_query_results *""'");
10258 }
10259 arg1 = (librdf_query_results *)(argp1);
10260 {
10261 result = (int)librdf_query_results_is_bindings(arg1);
10262 if(librdf_python_error_message) {
10263 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10264 free(librdf_python_error_message);
10265 librdf_python_error_message=NULL;
10266 SWIG_fail;
10267 }
10268 if(librdf_python_warning_message) {
10269 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10270 free(librdf_python_warning_message);
10271 librdf_python_warning_message=NULL;
10272 }
10273 }
10274 resultobj = SWIG_From_int((int)(result));
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 SWIGINTERN PyObject *_wrap_librdf_query_results_is_boolean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10282 PyObject *resultobj = 0;
10283 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 PyObject * obj0 = 0 ;
10287 int result;
10288
10289 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_boolean",&obj0)) SWIG_fail;
10290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10291 if (!SWIG_IsOK(res1)) {
10292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_boolean" "', argument " "1"" of type '" "librdf_query_results *""'");
10293 }
10294 arg1 = (librdf_query_results *)(argp1);
10295 {
10296 result = (int)librdf_query_results_is_boolean(arg1);
10297 if(librdf_python_error_message) {
10298 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10299 free(librdf_python_error_message);
10300 librdf_python_error_message=NULL;
10301 SWIG_fail;
10302 }
10303 if(librdf_python_warning_message) {
10304 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10305 free(librdf_python_warning_message);
10306 librdf_python_warning_message=NULL;
10307 }
10308 }
10309 resultobj = SWIG_From_int((int)(result));
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 SWIGINTERN PyObject *_wrap_librdf_query_results_is_graph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10317 PyObject *resultobj = 0;
10318 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10319 void *argp1 = 0 ;
10320 int res1 = 0 ;
10321 PyObject * obj0 = 0 ;
10322 int result;
10323
10324 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_graph",&obj0)) SWIG_fail;
10325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10326 if (!SWIG_IsOK(res1)) {
10327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_graph" "', argument " "1"" of type '" "librdf_query_results *""'");
10328 }
10329 arg1 = (librdf_query_results *)(argp1);
10330 {
10331 result = (int)librdf_query_results_is_graph(arg1);
10332 if(librdf_python_error_message) {
10333 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10334 free(librdf_python_error_message);
10335 librdf_python_error_message=NULL;
10336 SWIG_fail;
10337 }
10338 if(librdf_python_warning_message) {
10339 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10340 free(librdf_python_warning_message);
10341 librdf_python_warning_message=NULL;
10342 }
10343 }
10344 resultobj = SWIG_From_int((int)(result));
10345 return resultobj;
10346 fail:
10347 return NULL;
10348 }
10349
10350
10351 SWIGINTERN PyObject *_wrap_librdf_query_results_is_syntax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10352 PyObject *resultobj = 0;
10353 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10354 void *argp1 = 0 ;
10355 int res1 = 0 ;
10356 PyObject * obj0 = 0 ;
10357 int result;
10358
10359 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_is_syntax",&obj0)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_syntax" "', argument " "1"" of type '" "librdf_query_results *""'");
10363 }
10364 arg1 = (librdf_query_results *)(argp1);
10365 {
10366 result = (int)librdf_query_results_is_syntax(arg1);
10367 if(librdf_python_error_message) {
10368 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10369 free(librdf_python_error_message);
10370 librdf_python_error_message=NULL;
10371 SWIG_fail;
10372 }
10373 if(librdf_python_warning_message) {
10374 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10375 free(librdf_python_warning_message);
10376 librdf_python_warning_message=NULL;
10377 }
10378 }
10379 resultobj = SWIG_From_int((int)(result));
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 SWIGINTERN PyObject *_wrap_librdf_query_results_get_boolean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10387 PyObject *resultobj = 0;
10388 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
10389 void *argp1 = 0 ;
10390 int res1 = 0 ;
10391 PyObject * obj0 = 0 ;
10392 int result;
10393
10394 if (!PyArg_ParseTuple(args,(char *)"O:librdf_query_results_get_boolean",&obj0)) SWIG_fail;
10395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
10396 if (!SWIG_IsOK(res1)) {
10397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_boolean" "', argument " "1"" of type '" "librdf_query_results *""'");
10398 }
10399 arg1 = (librdf_query_results *)(argp1);
10400 {
10401 result = (int)librdf_query_results_get_boolean(arg1);
10402 if(librdf_python_error_message) {
10403 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10404 free(librdf_python_error_message);
10405 librdf_python_error_message=NULL;
10406 SWIG_fail;
10407 }
10408 if(librdf_python_warning_message) {
10409 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10410 free(librdf_python_warning_message);
10411 librdf_python_warning_message=NULL;
10412 }
10413 }
10414 resultobj = SWIG_From_int((int)(result));
10415 return resultobj;
10416 fail:
10417 return NULL;
10418 }
10419
10420
10421 SWIGINTERN PyObject *_wrap_librdf_serializer_check_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10422 PyObject *resultobj = 0;
10423 librdf_world *arg1 = (librdf_world *) 0 ;
10424 char *arg2 = (char *) 0 ;
10425 void *argp1 = 0 ;
10426 int res1 = 0 ;
10427 int res2 ;
10428 char *buf2 = 0 ;
10429 int alloc2 = 0 ;
10430 PyObject * obj0 = 0 ;
10431 PyObject * obj1 = 0 ;
10432 int result;
10433
10434 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_serializer_check_name",&obj0,&obj1)) SWIG_fail;
10435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
10436 if (!SWIG_IsOK(res1)) {
10437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_check_name" "', argument " "1"" of type '" "librdf_world *""'");
10438 }
10439 arg1 = (librdf_world *)(argp1);
10440 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10441 if (!SWIG_IsOK(res2)) {
10442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_check_name" "', argument " "2"" of type '" "char const *""'");
10443 }
10444 arg2 = (char *)(buf2);
10445 {
10446 result = (int)librdf_serializer_check_name(arg1,(char const *)arg2);
10447 if(librdf_python_error_message) {
10448 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10449 free(librdf_python_error_message);
10450 librdf_python_error_message=NULL;
10451 SWIG_fail;
10452 }
10453 if(librdf_python_warning_message) {
10454 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10455 free(librdf_python_warning_message);
10456 librdf_python_warning_message=NULL;
10457 }
10458 }
10459 resultobj = SWIG_From_int((int)(result));
10460 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10461 return resultobj;
10462 fail:
10463 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10464 return NULL;
10465 }
10466
10467
10468 SWIGINTERN PyObject *_wrap_librdf_new_serializer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10469 PyObject *resultobj = 0;
10470 librdf_world *arg1 = (librdf_world *) 0 ;
10471 char *arg2 = (char *) 0 ;
10472 char *arg3 = (char *) 0 ;
10473 librdf_uri *arg4 = (librdf_uri *) 0 ;
10474 void *argp1 = 0 ;
10475 int res1 = 0 ;
10476 int res2 ;
10477 char *buf2 = 0 ;
10478 int alloc2 = 0 ;
10479 int res3 ;
10480 char *buf3 = 0 ;
10481 int alloc3 = 0 ;
10482 void *argp4 = 0 ;
10483 int res4 = 0 ;
10484 PyObject * obj0 = 0 ;
10485 PyObject * obj1 = 0 ;
10486 PyObject * obj2 = 0 ;
10487 PyObject * obj3 = 0 ;
10488 librdf_serializer *result = 0 ;
10489
10490 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_new_serializer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
10492 if (!SWIG_IsOK(res1)) {
10493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_serializer" "', argument " "1"" of type '" "librdf_world *""'");
10494 }
10495 arg1 = (librdf_world *)(argp1);
10496 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10497 if (!SWIG_IsOK(res2)) {
10498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_serializer" "', argument " "2"" of type '" "char const *""'");
10499 }
10500 arg2 = (char *)(buf2);
10501 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10502 if (!SWIG_IsOK(res3)) {
10503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_serializer" "', argument " "3"" of type '" "char const *""'");
10504 }
10505 arg3 = (char *)(buf3);
10506 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10507 if (!SWIG_IsOK(res4)) {
10508 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_serializer" "', argument " "4"" of type '" "librdf_uri *""'");
10509 }
10510 arg4 = (librdf_uri *)(argp4);
10511 {
10512 result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4);
10513 if(librdf_python_error_message) {
10514 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10515 free(librdf_python_error_message);
10516 librdf_python_error_message=NULL;
10517 SWIG_fail;
10518 }
10519 if(librdf_python_warning_message) {
10520 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10521 free(librdf_python_warning_message);
10522 librdf_python_warning_message=NULL;
10523 }
10524 }
10525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, SWIG_POINTER_OWN | 0 );
10526 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10527 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10528 return resultobj;
10529 fail:
10530 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10531 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10532 return NULL;
10533 }
10534
10535
10536 SWIGINTERN PyObject *_wrap_librdf_free_serializer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10537 PyObject *resultobj = 0;
10538 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10539 void *argp1 = 0 ;
10540 int res1 = 0 ;
10541 PyObject * obj0 = 0 ;
10542
10543 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_serializer",&obj0)) SWIG_fail;
10544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10545 if (!SWIG_IsOK(res1)) {
10546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_serializer" "', argument " "1"" of type '" "librdf_serializer *""'");
10547 }
10548 arg1 = (librdf_serializer *)(argp1);
10549 {
10550 librdf_free_serializer(arg1);
10551 if(librdf_python_error_message) {
10552 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10553 free(librdf_python_error_message);
10554 librdf_python_error_message=NULL;
10555 SWIG_fail;
10556 }
10557 if(librdf_python_warning_message) {
10558 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10559 free(librdf_python_warning_message);
10560 librdf_python_warning_message=NULL;
10561 }
10562 }
10563 resultobj = SWIG_Py_Void();
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_stream_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10571 PyObject *resultobj = 0;
10572 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10573 char *arg2 = (char *) 0 ;
10574 librdf_uri *arg3 = (librdf_uri *) 0 ;
10575 librdf_stream *arg4 = (librdf_stream *) 0 ;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 int res2 ;
10579 char *buf2 = 0 ;
10580 int alloc2 = 0 ;
10581 void *argp3 = 0 ;
10582 int res3 = 0 ;
10583 void *argp4 = 0 ;
10584 int res4 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 PyObject * obj2 = 0 ;
10588 PyObject * obj3 = 0 ;
10589 int result;
10590
10591 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_serializer_serialize_stream_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "1"" of type '" "librdf_serializer *""'");
10595 }
10596 arg1 = (librdf_serializer *)(argp1);
10597 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10598 if (!SWIG_IsOK(res2)) {
10599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "2"" of type '" "char const *""'");
10600 }
10601 arg2 = (char *)(buf2);
10602 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10603 if (!SWIG_IsOK(res3)) {
10604 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
10605 }
10606 arg3 = (librdf_uri *)(argp3);
10607 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
10608 if (!SWIG_IsOK(res4)) {
10609 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "4"" of type '" "librdf_stream *""'");
10610 }
10611 arg4 = (librdf_stream *)(argp4);
10612 {
10613 result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4);
10614 if(librdf_python_error_message) {
10615 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10616 free(librdf_python_error_message);
10617 librdf_python_error_message=NULL;
10618 SWIG_fail;
10619 }
10620 if(librdf_python_warning_message) {
10621 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10622 free(librdf_python_warning_message);
10623 librdf_python_warning_message=NULL;
10624 }
10625 }
10626 resultobj = SWIG_From_int((int)(result));
10627 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10628 return resultobj;
10629 fail:
10630 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10631 return NULL;
10632 }
10633
10634
10635 SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_model_to_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10636 PyObject *resultobj = 0;
10637 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10638 char *arg2 = (char *) 0 ;
10639 librdf_uri *arg3 = (librdf_uri *) 0 ;
10640 librdf_model *arg4 = (librdf_model *) 0 ;
10641 void *argp1 = 0 ;
10642 int res1 = 0 ;
10643 int res2 ;
10644 char *buf2 = 0 ;
10645 int alloc2 = 0 ;
10646 void *argp3 = 0 ;
10647 int res3 = 0 ;
10648 void *argp4 = 0 ;
10649 int res4 = 0 ;
10650 PyObject * obj0 = 0 ;
10651 PyObject * obj1 = 0 ;
10652 PyObject * obj2 = 0 ;
10653 PyObject * obj3 = 0 ;
10654 int result;
10655
10656 if (!PyArg_ParseTuple(args,(char *)"OOOO:librdf_serializer_serialize_model_to_file",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10658 if (!SWIG_IsOK(res1)) {
10659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "1"" of type '" "librdf_serializer *""'");
10660 }
10661 arg1 = (librdf_serializer *)(argp1);
10662 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10663 if (!SWIG_IsOK(res2)) {
10664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "2"" of type '" "char const *""'");
10665 }
10666 arg2 = (char *)(buf2);
10667 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10668 if (!SWIG_IsOK(res3)) {
10669 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
10670 }
10671 arg3 = (librdf_uri *)(argp3);
10672 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
10673 if (!SWIG_IsOK(res4)) {
10674 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "4"" of type '" "librdf_model *""'");
10675 }
10676 arg4 = (librdf_model *)(argp4);
10677 {
10678 result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4);
10679 if(librdf_python_error_message) {
10680 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10681 free(librdf_python_error_message);
10682 librdf_python_error_message=NULL;
10683 SWIG_fail;
10684 }
10685 if(librdf_python_warning_message) {
10686 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10687 free(librdf_python_warning_message);
10688 librdf_python_warning_message=NULL;
10689 }
10690 }
10691 resultobj = SWIG_From_int((int)(result));
10692 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10693 return resultobj;
10694 fail:
10695 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10696 return NULL;
10697 }
10698
10699
10700 SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_stream_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10701 PyObject *resultobj = 0;
10702 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10703 librdf_uri *arg2 = (librdf_uri *) 0 ;
10704 librdf_stream *arg3 = (librdf_stream *) 0 ;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 void *argp2 = 0 ;
10708 int res2 = 0 ;
10709 void *argp3 = 0 ;
10710 int res3 = 0 ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 PyObject * obj2 = 0 ;
10714 char *result = 0 ;
10715
10716 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_serialize_stream_to_string",&obj0,&obj1,&obj2)) SWIG_fail;
10717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10718 if (!SWIG_IsOK(res1)) {
10719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "1"" of type '" "librdf_serializer *""'");
10720 }
10721 arg1 = (librdf_serializer *)(argp1);
10722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10723 if (!SWIG_IsOK(res2)) {
10724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
10725 }
10726 arg2 = (librdf_uri *)(argp2);
10727 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
10728 if (!SWIG_IsOK(res3)) {
10729 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "3"" of type '" "librdf_stream *""'");
10730 }
10731 arg3 = (librdf_stream *)(argp3);
10732 {
10733 result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3);
10734 if(librdf_python_error_message) {
10735 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10736 free(librdf_python_error_message);
10737 librdf_python_error_message=NULL;
10738 SWIG_fail;
10739 }
10740 if(librdf_python_warning_message) {
10741 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10742 free(librdf_python_warning_message);
10743 librdf_python_warning_message=NULL;
10744 }
10745 }
10746 resultobj = SWIG_FromCharPtr((const char *)result);
10747 free((char*)result);
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 SWIGINTERN PyObject *_wrap_librdf_serializer_serialize_model_to_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10755 PyObject *resultobj = 0;
10756 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10757 librdf_uri *arg2 = (librdf_uri *) 0 ;
10758 librdf_model *arg3 = (librdf_model *) 0 ;
10759 void *argp1 = 0 ;
10760 int res1 = 0 ;
10761 void *argp2 = 0 ;
10762 int res2 = 0 ;
10763 void *argp3 = 0 ;
10764 int res3 = 0 ;
10765 PyObject * obj0 = 0 ;
10766 PyObject * obj1 = 0 ;
10767 PyObject * obj2 = 0 ;
10768 char *result = 0 ;
10769
10770 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_serialize_model_to_string",&obj0,&obj1,&obj2)) SWIG_fail;
10771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10772 if (!SWIG_IsOK(res1)) {
10773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "1"" of type '" "librdf_serializer *""'");
10774 }
10775 arg1 = (librdf_serializer *)(argp1);
10776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10777 if (!SWIG_IsOK(res2)) {
10778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
10779 }
10780 arg2 = (librdf_uri *)(argp2);
10781 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_model_s, 0 | 0 );
10782 if (!SWIG_IsOK(res3)) {
10783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "3"" of type '" "librdf_model *""'");
10784 }
10785 arg3 = (librdf_model *)(argp3);
10786 {
10787 result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3);
10788 if(librdf_python_error_message) {
10789 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10790 free(librdf_python_error_message);
10791 librdf_python_error_message=NULL;
10792 SWIG_fail;
10793 }
10794 if(librdf_python_warning_message) {
10795 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10796 free(librdf_python_warning_message);
10797 librdf_python_warning_message=NULL;
10798 }
10799 }
10800 resultobj = SWIG_FromCharPtr((const char *)result);
10801 free((char*)result);
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_librdf_serializer_get_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10809 PyObject *resultobj = 0;
10810 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10811 librdf_uri *arg2 = (librdf_uri *) 0 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 void *argp2 = 0 ;
10815 int res2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 librdf_node *result = 0 ;
10819
10820 if (!PyArg_ParseTuple(args,(char *)"OO:librdf_serializer_get_feature",&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_get_feature" "', argument " "1"" of type '" "librdf_serializer *""'");
10824 }
10825 arg1 = (librdf_serializer *)(argp1);
10826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10827 if (!SWIG_IsOK(res2)) {
10828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
10829 }
10830 arg2 = (librdf_uri *)(argp2);
10831 {
10832 result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2);
10833 if(librdf_python_error_message) {
10834 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10835 free(librdf_python_error_message);
10836 librdf_python_error_message=NULL;
10837 SWIG_fail;
10838 }
10839 if(librdf_python_warning_message) {
10840 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10841 free(librdf_python_warning_message);
10842 librdf_python_warning_message=NULL;
10843 }
10844 }
10845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
10846 return resultobj;
10847 fail:
10848 return NULL;
10849 }
10850
10851
10852 SWIGINTERN PyObject *_wrap_librdf_serializer_set_feature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10853 PyObject *resultobj = 0;
10854 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10855 librdf_uri *arg2 = (librdf_uri *) 0 ;
10856 librdf_node *arg3 = (librdf_node *) 0 ;
10857 void *argp1 = 0 ;
10858 int res1 = 0 ;
10859 void *argp2 = 0 ;
10860 int res2 = 0 ;
10861 void *argp3 = 0 ;
10862 int res3 = 0 ;
10863 PyObject * obj0 = 0 ;
10864 PyObject * obj1 = 0 ;
10865 PyObject * obj2 = 0 ;
10866 int result;
10867
10868 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_set_feature",&obj0,&obj1,&obj2)) SWIG_fail;
10869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10870 if (!SWIG_IsOK(res1)) {
10871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_feature" "', argument " "1"" of type '" "librdf_serializer *""'");
10872 }
10873 arg1 = (librdf_serializer *)(argp1);
10874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10875 if (!SWIG_IsOK(res2)) {
10876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
10877 }
10878 arg2 = (librdf_uri *)(argp2);
10879 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
10880 if (!SWIG_IsOK(res3)) {
10881 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
10882 }
10883 arg3 = (librdf_node *)(argp3);
10884 {
10885 result = (int)librdf_serializer_set_feature(arg1,arg2,arg3);
10886 if(librdf_python_error_message) {
10887 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10888 free(librdf_python_error_message);
10889 librdf_python_error_message=NULL;
10890 SWIG_fail;
10891 }
10892 if(librdf_python_warning_message) {
10893 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10894 free(librdf_python_warning_message);
10895 librdf_python_warning_message=NULL;
10896 }
10897 }
10898 resultobj = SWIG_From_int((int)(result));
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 SWIGINTERN PyObject *_wrap_librdf_serializer_set_namespace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10906 PyObject *resultobj = 0;
10907 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
10908 librdf_uri *arg2 = (librdf_uri *) 0 ;
10909 char *arg3 = (char *) 0 ;
10910 void *argp1 = 0 ;
10911 int res1 = 0 ;
10912 void *argp2 = 0 ;
10913 int res2 = 0 ;
10914 int res3 ;
10915 char *buf3 = 0 ;
10916 int alloc3 = 0 ;
10917 PyObject * obj0 = 0 ;
10918 PyObject * obj1 = 0 ;
10919 PyObject * obj2 = 0 ;
10920 int result;
10921
10922 if (!PyArg_ParseTuple(args,(char *)"OOO:librdf_serializer_set_namespace",&obj0,&obj1,&obj2)) SWIG_fail;
10923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_namespace" "', argument " "1"" of type '" "librdf_serializer *""'");
10926 }
10927 arg1 = (librdf_serializer *)(argp1);
10928 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
10929 if (!SWIG_IsOK(res2)) {
10930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_namespace" "', argument " "2"" of type '" "librdf_uri *""'");
10931 }
10932 arg2 = (librdf_uri *)(argp2);
10933 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10934 if (!SWIG_IsOK(res3)) {
10935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_namespace" "', argument " "3"" of type '" "char const *""'");
10936 }
10937 arg3 = (char *)(buf3);
10938 {
10939 result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3);
10940 if(librdf_python_error_message) {
10941 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10942 free(librdf_python_error_message);
10943 librdf_python_error_message=NULL;
10944 SWIG_fail;
10945 }
10946 if(librdf_python_warning_message) {
10947 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10948 free(librdf_python_warning_message);
10949 librdf_python_warning_message=NULL;
10950 }
10951 }
10952 resultobj = SWIG_From_int((int)(result));
10953 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10954 return resultobj;
10955 fail:
10956 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
10957 return NULL;
10958 }
10959
10960
10961 SWIGINTERN PyObject *_wrap_librdf_free_stream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10962 PyObject *resultobj = 0;
10963 librdf_stream *arg1 = (librdf_stream *) 0 ;
10964 void *argp1 = 0 ;
10965 int res1 = 0 ;
10966 PyObject * obj0 = 0 ;
10967
10968 if (!PyArg_ParseTuple(args,(char *)"O:librdf_free_stream",&obj0)) SWIG_fail;
10969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
10970 if (!SWIG_IsOK(res1)) {
10971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_stream" "', argument " "1"" of type '" "librdf_stream *""'");
10972 }
10973 arg1 = (librdf_stream *)(argp1);
10974 {
10975 librdf_free_stream(arg1);
10976 if(librdf_python_error_message) {
10977 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
10978 free(librdf_python_error_message);
10979 librdf_python_error_message=NULL;
10980 SWIG_fail;
10981 }
10982 if(librdf_python_warning_message) {
10983 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
10984 free(librdf_python_warning_message);
10985 librdf_python_warning_message=NULL;
10986 }
10987 }
10988 resultobj = SWIG_Py_Void();
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 SWIGINTERN PyObject *_wrap_librdf_stream_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10996 PyObject *resultobj = 0;
10997 librdf_stream *arg1 = (librdf_stream *) 0 ;
10998 void *argp1 = 0 ;
10999 int res1 = 0 ;
11000 PyObject * obj0 = 0 ;
11001 int result;
11002
11003 if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_end",&obj0)) SWIG_fail;
11004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
11005 if (!SWIG_IsOK(res1)) {
11006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_end" "', argument " "1"" of type '" "librdf_stream *""'");
11007 }
11008 arg1 = (librdf_stream *)(argp1);
11009 {
11010 result = (int)librdf_stream_end(arg1);
11011 if(librdf_python_error_message) {
11012 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11013 free(librdf_python_error_message);
11014 librdf_python_error_message=NULL;
11015 SWIG_fail;
11016 }
11017 if(librdf_python_warning_message) {
11018 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11019 free(librdf_python_warning_message);
11020 librdf_python_warning_message=NULL;
11021 }
11022 }
11023 resultobj = SWIG_From_int((int)(result));
11024 return resultobj;
11025 fail:
11026 return NULL;
11027 }
11028
11029
11030 SWIGINTERN PyObject *_wrap_librdf_stream_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11031 PyObject *resultobj = 0;
11032 librdf_stream *arg1 = (librdf_stream *) 0 ;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 PyObject * obj0 = 0 ;
11036 int result;
11037
11038 if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_next",&obj0)) SWIG_fail;
11039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
11040 if (!SWIG_IsOK(res1)) {
11041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_next" "', argument " "1"" of type '" "librdf_stream *""'");
11042 }
11043 arg1 = (librdf_stream *)(argp1);
11044 {
11045 result = (int)librdf_stream_next(arg1);
11046 if(librdf_python_error_message) {
11047 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11048 free(librdf_python_error_message);
11049 librdf_python_error_message=NULL;
11050 SWIG_fail;
11051 }
11052 if(librdf_python_warning_message) {
11053 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11054 free(librdf_python_warning_message);
11055 librdf_python_warning_message=NULL;
11056 }
11057 }
11058 resultobj = SWIG_From_int((int)(result));
11059 return resultobj;
11060 fail:
11061 return NULL;
11062 }
11063
11064
11065 SWIGINTERN PyObject *_wrap_librdf_stream_get_object(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11066 PyObject *resultobj = 0;
11067 librdf_stream *arg1 = (librdf_stream *) 0 ;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 PyObject * obj0 = 0 ;
11071 librdf_statement *result = 0 ;
11072
11073 if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_get_object",&obj0)) SWIG_fail;
11074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
11075 if (!SWIG_IsOK(res1)) {
11076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_object" "', argument " "1"" of type '" "librdf_stream *""'");
11077 }
11078 arg1 = (librdf_stream *)(argp1);
11079 {
11080 result = (librdf_statement *)librdf_stream_get_object(arg1);
11081 if(librdf_python_error_message) {
11082 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11083 free(librdf_python_error_message);
11084 librdf_python_error_message=NULL;
11085 SWIG_fail;
11086 }
11087 if(librdf_python_warning_message) {
11088 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11089 free(librdf_python_warning_message);
11090 librdf_python_warning_message=NULL;
11091 }
11092 }
11093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, 0 | 0 );
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 SWIGINTERN PyObject *_wrap_librdf_stream_get_context(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11101 PyObject *resultobj = 0;
11102 librdf_stream *arg1 = (librdf_stream *) 0 ;
11103 void *argp1 = 0 ;
11104 int res1 = 0 ;
11105 PyObject * obj0 = 0 ;
11106 librdf_node *result = 0 ;
11107
11108 if (!PyArg_ParseTuple(args,(char *)"O:librdf_stream_get_context",&obj0)) SWIG_fail;
11109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
11110 if (!SWIG_IsOK(res1)) {
11111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_context" "', argument " "1"" of type '" "librdf_stream *""'");
11112 }
11113 arg1 = (librdf_stream *)(argp1);
11114 {
11115 result = (librdf_node *)librdf_stream_get_context(arg1);
11116 if(librdf_python_error_message) {
11117 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11118 free(librdf_python_error_message);
11119 librdf_python_error_message=NULL;
11120 SWIG_fail;
11121 }
11122 if(librdf_python_warning_message) {
11123 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11124 free(librdf_python_warning_message);
11125 librdf_python_warning_message=NULL;
11126 }
11127 }
11128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0 );
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 SWIGINTERN PyObject *_wrap_librdf_log_message_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
11138 void *argp1 = 0 ;
11139 int res1 = 0 ;
11140 PyObject * obj0 = 0 ;
11141 int result;
11142
11143 if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_code",&obj0)) SWIG_fail;
11144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
11145 if (!SWIG_IsOK(res1)) {
11146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_code" "', argument " "1"" of type '" "librdf_log_message *""'");
11147 }
11148 arg1 = (librdf_log_message *)(argp1);
11149 {
11150 result = (int)librdf_log_message_code(arg1);
11151 if(librdf_python_error_message) {
11152 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11153 free(librdf_python_error_message);
11154 librdf_python_error_message=NULL;
11155 SWIG_fail;
11156 }
11157 if(librdf_python_warning_message) {
11158 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11159 free(librdf_python_warning_message);
11160 librdf_python_warning_message=NULL;
11161 }
11162 }
11163 resultobj = SWIG_From_int((int)(result));
11164 return resultobj;
11165 fail:
11166 return NULL;
11167 }
11168
11169
11170 SWIGINTERN PyObject *_wrap_librdf_log_message_level(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11171 PyObject *resultobj = 0;
11172 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject * obj0 = 0 ;
11176 int result;
11177
11178 if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_level",&obj0)) SWIG_fail;
11179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_level" "', argument " "1"" of type '" "librdf_log_message *""'");
11182 }
11183 arg1 = (librdf_log_message *)(argp1);
11184 {
11185 result = (int)librdf_log_message_level(arg1);
11186 if(librdf_python_error_message) {
11187 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11188 free(librdf_python_error_message);
11189 librdf_python_error_message=NULL;
11190 SWIG_fail;
11191 }
11192 if(librdf_python_warning_message) {
11193 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11194 free(librdf_python_warning_message);
11195 librdf_python_warning_message=NULL;
11196 }
11197 }
11198 resultobj = SWIG_From_int((int)(result));
11199 return resultobj;
11200 fail:
11201 return NULL;
11202 }
11203
11204
11205 SWIGINTERN PyObject *_wrap_librdf_log_message_facility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11206 PyObject *resultobj = 0;
11207 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
11208 void *argp1 = 0 ;
11209 int res1 = 0 ;
11210 PyObject * obj0 = 0 ;
11211 int result;
11212
11213 if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_facility",&obj0)) SWIG_fail;
11214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_facility" "', argument " "1"" of type '" "librdf_log_message *""'");
11217 }
11218 arg1 = (librdf_log_message *)(argp1);
11219 {
11220 result = (int)librdf_log_message_facility(arg1);
11221 if(librdf_python_error_message) {
11222 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11223 free(librdf_python_error_message);
11224 librdf_python_error_message=NULL;
11225 SWIG_fail;
11226 }
11227 if(librdf_python_warning_message) {
11228 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11229 free(librdf_python_warning_message);
11230 librdf_python_warning_message=NULL;
11231 }
11232 }
11233 resultobj = SWIG_From_int((int)(result));
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 SWIGINTERN PyObject *_wrap_librdf_log_message_message(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11241 PyObject *resultobj = 0;
11242 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
11243 void *argp1 = 0 ;
11244 int res1 = 0 ;
11245 PyObject * obj0 = 0 ;
11246 char *result = 0 ;
11247
11248 if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_message",&obj0)) SWIG_fail;
11249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_message" "', argument " "1"" of type '" "librdf_log_message *""'");
11252 }
11253 arg1 = (librdf_log_message *)(argp1);
11254 {
11255 result = (char *)librdf_log_message_message(arg1);
11256 if(librdf_python_error_message) {
11257 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11258 free(librdf_python_error_message);
11259 librdf_python_error_message=NULL;
11260 SWIG_fail;
11261 }
11262 if(librdf_python_warning_message) {
11263 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11264 free(librdf_python_warning_message);
11265 librdf_python_warning_message=NULL;
11266 }
11267 }
11268 resultobj = SWIG_FromCharPtr((const char *)result);
11269 return resultobj;
11270 fail:
11271 return NULL;
11272 }
11273
11274
11275 SWIGINTERN PyObject *_wrap_librdf_log_message_locator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11276 PyObject *resultobj = 0;
11277 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 PyObject * obj0 = 0 ;
11281 raptor_locator *result = 0 ;
11282
11283 if (!PyArg_ParseTuple(args,(char *)"O:librdf_log_message_locator",&obj0)) SWIG_fail;
11284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_locator" "', argument " "1"" of type '" "librdf_log_message *""'");
11287 }
11288 arg1 = (librdf_log_message *)(argp1);
11289 {
11290 result = (raptor_locator *)librdf_log_message_locator(arg1);
11291 if(librdf_python_error_message) {
11292 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11293 free(librdf_python_error_message);
11294 librdf_python_error_message=NULL;
11295 SWIG_fail;
11296 }
11297 if(librdf_python_warning_message) {
11298 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11299 free(librdf_python_warning_message);
11300 librdf_python_warning_message=NULL;
11301 }
11302 }
11303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, 0 | 0 );
11304 return resultobj;
11305 fail:
11306 return NULL;
11307 }
11308
11309
11310 SWIGINTERN PyObject *_wrap_raptor_locator_line(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11311 PyObject *resultobj = 0;
11312 raptor_locator *arg1 = (raptor_locator *) 0 ;
11313 void *argp1 = 0 ;
11314 int res1 = 0 ;
11315 PyObject * obj0 = 0 ;
11316 int result;
11317
11318 if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_line",&obj0)) SWIG_fail;
11319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
11320 if (!SWIG_IsOK(res1)) {
11321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_line" "', argument " "1"" of type '" "raptor_locator *""'");
11322 }
11323 arg1 = (raptor_locator *)(argp1);
11324 {
11325 result = (int)raptor_locator_line(arg1);
11326 if(librdf_python_error_message) {
11327 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11328 free(librdf_python_error_message);
11329 librdf_python_error_message=NULL;
11330 SWIG_fail;
11331 }
11332 if(librdf_python_warning_message) {
11333 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11334 free(librdf_python_warning_message);
11335 librdf_python_warning_message=NULL;
11336 }
11337 }
11338 resultobj = SWIG_From_int((int)(result));
11339 return resultobj;
11340 fail:
11341 return NULL;
11342 }
11343
11344
11345 SWIGINTERN PyObject *_wrap_raptor_locator_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11346 PyObject *resultobj = 0;
11347 raptor_locator *arg1 = (raptor_locator *) 0 ;
11348 void *argp1 = 0 ;
11349 int res1 = 0 ;
11350 PyObject * obj0 = 0 ;
11351 int result;
11352
11353 if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_column",&obj0)) SWIG_fail;
11354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
11355 if (!SWIG_IsOK(res1)) {
11356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_column" "', argument " "1"" of type '" "raptor_locator *""'");
11357 }
11358 arg1 = (raptor_locator *)(argp1);
11359 {
11360 result = (int)raptor_locator_column(arg1);
11361 if(librdf_python_error_message) {
11362 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11363 free(librdf_python_error_message);
11364 librdf_python_error_message=NULL;
11365 SWIG_fail;
11366 }
11367 if(librdf_python_warning_message) {
11368 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11369 free(librdf_python_warning_message);
11370 librdf_python_warning_message=NULL;
11371 }
11372 }
11373 resultobj = SWIG_From_int((int)(result));
11374 return resultobj;
11375 fail:
11376 return NULL;
11377 }
11378
11379
11380 SWIGINTERN PyObject *_wrap_raptor_locator_byte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11381 PyObject *resultobj = 0;
11382 raptor_locator *arg1 = (raptor_locator *) 0 ;
11383 void *argp1 = 0 ;
11384 int res1 = 0 ;
11385 PyObject * obj0 = 0 ;
11386 int result;
11387
11388 if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_byte",&obj0)) SWIG_fail;
11389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
11390 if (!SWIG_IsOK(res1)) {
11391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_byte" "', argument " "1"" of type '" "raptor_locator *""'");
11392 }
11393 arg1 = (raptor_locator *)(argp1);
11394 {
11395 result = (int)raptor_locator_byte(arg1);
11396 if(librdf_python_error_message) {
11397 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11398 free(librdf_python_error_message);
11399 librdf_python_error_message=NULL;
11400 SWIG_fail;
11401 }
11402 if(librdf_python_warning_message) {
11403 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11404 free(librdf_python_warning_message);
11405 librdf_python_warning_message=NULL;
11406 }
11407 }
11408 resultobj = SWIG_From_int((int)(result));
11409 return resultobj;
11410 fail:
11411 return NULL;
11412 }
11413
11414
11415 SWIGINTERN PyObject *_wrap_raptor_locator_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11416 PyObject *resultobj = 0;
11417 raptor_locator *arg1 = (raptor_locator *) 0 ;
11418 void *argp1 = 0 ;
11419 int res1 = 0 ;
11420 PyObject * obj0 = 0 ;
11421 char *result = 0 ;
11422
11423 if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_file",&obj0)) SWIG_fail;
11424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
11425 if (!SWIG_IsOK(res1)) {
11426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_file" "', argument " "1"" of type '" "raptor_locator *""'");
11427 }
11428 arg1 = (raptor_locator *)(argp1);
11429 {
11430 result = (char *)raptor_locator_file(arg1);
11431 if(librdf_python_error_message) {
11432 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11433 free(librdf_python_error_message);
11434 librdf_python_error_message=NULL;
11435 SWIG_fail;
11436 }
11437 if(librdf_python_warning_message) {
11438 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11439 free(librdf_python_warning_message);
11440 librdf_python_warning_message=NULL;
11441 }
11442 }
11443 resultobj = SWIG_FromCharPtr((const char *)result);
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 SWIGINTERN PyObject *_wrap_raptor_locator_uri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11451 PyObject *resultobj = 0;
11452 raptor_locator *arg1 = (raptor_locator *) 0 ;
11453 void *argp1 = 0 ;
11454 int res1 = 0 ;
11455 PyObject * obj0 = 0 ;
11456 char *result = 0 ;
11457
11458 if (!PyArg_ParseTuple(args,(char *)"O:raptor_locator_uri",&obj0)) SWIG_fail;
11459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
11460 if (!SWIG_IsOK(res1)) {
11461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_uri" "', argument " "1"" of type '" "raptor_locator *""'");
11462 }
11463 arg1 = (raptor_locator *)(argp1);
11464 {
11465 result = (char *)raptor_locator_uri(arg1);
11466 if(librdf_python_error_message) {
11467 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11468 free(librdf_python_error_message);
11469 librdf_python_error_message=NULL;
11470 SWIG_fail;
11471 }
11472 if(librdf_python_warning_message) {
11473 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11474 free(librdf_python_warning_message);
11475 librdf_python_warning_message=NULL;
11476 }
11477 }
11478 resultobj = SWIG_FromCharPtr((const char *)result);
11479 return resultobj;
11480 fail:
11481 return NULL;
11482 }
11483
11484
11485 SWIGINTERN PyObject *_wrap_librdf_internal_test_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 librdf_world *arg1 = (librdf_world *) 0 ;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 PyObject * obj0 = 0 ;
11491
11492 if (!PyArg_ParseTuple(args,(char *)"O:librdf_internal_test_error",&obj0)) SWIG_fail;
11493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
11494 if (!SWIG_IsOK(res1)) {
11495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_error" "', argument " "1"" of type '" "librdf_world *""'");
11496 }
11497 arg1 = (librdf_world *)(argp1);
11498 {
11499 librdf_internal_test_error(arg1);
11500 if(librdf_python_error_message) {
11501 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11502 free(librdf_python_error_message);
11503 librdf_python_error_message=NULL;
11504 SWIG_fail;
11505 }
11506 if(librdf_python_warning_message) {
11507 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11508 free(librdf_python_warning_message);
11509 librdf_python_warning_message=NULL;
11510 }
11511 }
11512 resultobj = SWIG_Py_Void();
11513 return resultobj;
11514 fail:
11515 return NULL;
11516 }
11517
11518
11519 SWIGINTERN PyObject *_wrap_librdf_internal_test_warning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11520 PyObject *resultobj = 0;
11521 librdf_world *arg1 = (librdf_world *) 0 ;
11522 void *argp1 = 0 ;
11523 int res1 = 0 ;
11524 PyObject * obj0 = 0 ;
11525
11526 if (!PyArg_ParseTuple(args,(char *)"O:librdf_internal_test_warning",&obj0)) SWIG_fail;
11527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_warning" "', argument " "1"" of type '" "librdf_world *""'");
11530 }
11531 arg1 = (librdf_world *)(argp1);
11532 {
11533 librdf_internal_test_warning(arg1);
11534 if(librdf_python_error_message) {
11535 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11536 free(librdf_python_error_message);
11537 librdf_python_error_message=NULL;
11538 SWIG_fail;
11539 }
11540 if(librdf_python_warning_message) {
11541 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11542 free(librdf_python_warning_message);
11543 librdf_python_warning_message=NULL;
11544 }
11545 }
11546 resultobj = SWIG_Py_Void();
11547 return resultobj;
11548 fail:
11549 return NULL;
11550 }
11551
11552
11553 SWIGINTERN int Swig_var_librdf_short_copyright_string_set(PyObject *_val SWIGUNUSED) {
11554 SWIG_Error(SWIG_AttributeError,"Variable librdf_short_copyright_string is read-only.");
11555 return 1;
11556 }
11557
11558
11559 SWIGINTERN PyObject *Swig_var_librdf_short_copyright_string_get(void) {
11560 PyObject *pyobj = 0;
11561
11562 pyobj = SWIG_FromCharPtr(librdf_short_copyright_string);
11563 return pyobj;
11564 }
11565
11566
11567 SWIGINTERN int Swig_var_librdf_copyright_string_set(PyObject *_val SWIGUNUSED) {
11568 SWIG_Error(SWIG_AttributeError,"Variable librdf_copyright_string is read-only.");
11569 return 1;
11570 }
11571
11572
11573 SWIGINTERN PyObject *Swig_var_librdf_copyright_string_get(void) {
11574 PyObject *pyobj = 0;
11575
11576 pyobj = SWIG_FromCharPtr(librdf_copyright_string);
11577 return pyobj;
11578 }
11579
11580
11581 SWIGINTERN int Swig_var_librdf_version_string_set(PyObject *_val SWIGUNUSED) {
11582 SWIG_Error(SWIG_AttributeError,"Variable librdf_version_string is read-only.");
11583 return 1;
11584 }
11585
11586
11587 SWIGINTERN PyObject *Swig_var_librdf_version_string_get(void) {
11588 PyObject *pyobj = 0;
11589
11590 pyobj = SWIG_FromCharPtr(librdf_version_string);
11591 return pyobj;
11592 }
11593
11594
11595 SWIGINTERN int Swig_var_librdf_version_major_set(PyObject *_val SWIGUNUSED) {
11596 SWIG_Error(SWIG_AttributeError,"Variable librdf_version_major is read-only.");
11597 return 1;
11598 }
11599
11600
11601 SWIGINTERN PyObject *Swig_var_librdf_version_major_get(void) {
11602 PyObject *pyobj = 0;
11603
11604 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_major));
11605 return pyobj;
11606 }
11607
11608
11609 SWIGINTERN int Swig_var_librdf_version_minor_set(PyObject *_val SWIGUNUSED) {
11610 SWIG_Error(SWIG_AttributeError,"Variable librdf_version_minor is read-only.");
11611 return 1;
11612 }
11613
11614
11615 SWIGINTERN PyObject *Swig_var_librdf_version_minor_get(void) {
11616 PyObject *pyobj = 0;
11617
11618 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_minor));
11619 return pyobj;
11620 }
11621
11622
11623 SWIGINTERN int Swig_var_librdf_version_release_set(PyObject *_val SWIGUNUSED) {
11624 SWIG_Error(SWIG_AttributeError,"Variable librdf_version_release is read-only.");
11625 return 1;
11626 }
11627
11628
11629 SWIGINTERN PyObject *Swig_var_librdf_version_release_get(void) {
11630 PyObject *pyobj = 0;
11631
11632 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_release));
11633 return pyobj;
11634 }
11635
11636
11637 SWIGINTERN int Swig_var_librdf_version_decimal_set(PyObject *_val SWIGUNUSED) {
11638 SWIG_Error(SWIG_AttributeError,"Variable librdf_version_decimal is read-only.");
11639 return 1;
11640 }
11641
11642
11643 SWIGINTERN PyObject *Swig_var_librdf_version_decimal_get(void) {
11644 PyObject *pyobj = 0;
11645
11646 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(librdf_version_decimal));
11647 return pyobj;
11648 }
11649
11650
11651 SWIGINTERN int Swig_var_raptor_version_string_set(PyObject *_val SWIGUNUSED) {
11652 SWIG_Error(SWIG_AttributeError,"Variable raptor_version_string is read-only.");
11653 return 1;
11654 }
11655
11656
11657 SWIGINTERN PyObject *Swig_var_raptor_version_string_get(void) {
11658 PyObject *pyobj = 0;
11659
11660 pyobj = SWIG_FromCharPtr(raptor_version_string);
11661 return pyobj;
11662 }
11663
11664
11665 SWIGINTERN int Swig_var_raptor_version_major_set(PyObject *_val SWIGUNUSED) {
11666 SWIG_Error(SWIG_AttributeError,"Variable raptor_version_major is read-only.");
11667 return 1;
11668 }
11669
11670
11671 SWIGINTERN PyObject *Swig_var_raptor_version_major_get(void) {
11672 PyObject *pyobj = 0;
11673
11674 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_major));
11675 return pyobj;
11676 }
11677
11678
11679 SWIGINTERN int Swig_var_raptor_version_minor_set(PyObject *_val SWIGUNUSED) {
11680 SWIG_Error(SWIG_AttributeError,"Variable raptor_version_minor is read-only.");
11681 return 1;
11682 }
11683
11684
11685 SWIGINTERN PyObject *Swig_var_raptor_version_minor_get(void) {
11686 PyObject *pyobj = 0;
11687
11688 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_minor));
11689 return pyobj;
11690 }
11691
11692
11693 SWIGINTERN int Swig_var_raptor_version_release_set(PyObject *_val SWIGUNUSED) {
11694 SWIG_Error(SWIG_AttributeError,"Variable raptor_version_release is read-only.");
11695 return 1;
11696 }
11697
11698
11699 SWIGINTERN PyObject *Swig_var_raptor_version_release_get(void) {
11700 PyObject *pyobj = 0;
11701
11702 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_release));
11703 return pyobj;
11704 }
11705
11706
11707 SWIGINTERN int Swig_var_raptor_version_decimal_set(PyObject *_val SWIGUNUSED) {
11708 SWIG_Error(SWIG_AttributeError,"Variable raptor_version_decimal is read-only.");
11709 return 1;
11710 }
11711
11712
11713 SWIGINTERN PyObject *Swig_var_raptor_version_decimal_get(void) {
11714 PyObject *pyobj = 0;
11715
11716 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(raptor_version_decimal));
11717 return pyobj;
11718 }
11719
11720
11721 SWIGINTERN int Swig_var_rasqal_version_string_set(PyObject *_val SWIGUNUSED) {
11722 SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_string is read-only.");
11723 return 1;
11724 }
11725
11726
11727 SWIGINTERN PyObject *Swig_var_rasqal_version_string_get(void) {
11728 PyObject *pyobj = 0;
11729
11730 pyobj = SWIG_FromCharPtr(rasqal_version_string);
11731 return pyobj;
11732 }
11733
11734
11735 SWIGINTERN int Swig_var_rasqal_version_major_set(PyObject *_val SWIGUNUSED) {
11736 SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_major is read-only.");
11737 return 1;
11738 }
11739
11740
11741 SWIGINTERN PyObject *Swig_var_rasqal_version_major_get(void) {
11742 PyObject *pyobj = 0;
11743
11744 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_major));
11745 return pyobj;
11746 }
11747
11748
11749 SWIGINTERN int Swig_var_rasqal_version_minor_set(PyObject *_val SWIGUNUSED) {
11750 SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_minor is read-only.");
11751 return 1;
11752 }
11753
11754
11755 SWIGINTERN PyObject *Swig_var_rasqal_version_minor_get(void) {
11756 PyObject *pyobj = 0;
11757
11758 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_minor));
11759 return pyobj;
11760 }
11761
11762
11763 SWIGINTERN int Swig_var_rasqal_version_release_set(PyObject *_val SWIGUNUSED) {
11764 SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_release is read-only.");
11765 return 1;
11766 }
11767
11768
11769 SWIGINTERN PyObject *Swig_var_rasqal_version_release_get(void) {
11770 PyObject *pyobj = 0;
11771
11772 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_release));
11773 return pyobj;
11774 }
11775
11776
11777 SWIGINTERN int Swig_var_rasqal_version_decimal_set(PyObject *_val SWIGUNUSED) {
11778 SWIG_Error(SWIG_AttributeError,"Variable rasqal_version_decimal is read-only.");
11779 return 1;
11780 }
11781
11782
11783 SWIGINTERN PyObject *Swig_var_rasqal_version_decimal_get(void) {
11784 PyObject *pyobj = 0;
11785
11786 pyobj = SWIG_From_unsigned_SS_int((unsigned int)(rasqal_version_decimal));
11787 return pyobj;
11788 }
11789
11790
11791 SWIGINTERN PyObject *_wrap_librdf_python_world_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11792 PyObject *resultobj = 0;
11793 librdf_world *arg1 = (librdf_world *) 0 ;
11794 void *argp1 = 0 ;
11795 int res1 = 0 ;
11796 PyObject * obj0 = 0 ;
11797
11798 if (!PyArg_ParseTuple(args,(char *)"O:librdf_python_world_init",&obj0)) SWIG_fail;
11799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
11800 if (!SWIG_IsOK(res1)) {
11801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_python_world_init" "', argument " "1"" of type '" "librdf_world *""'");
11802 }
11803 arg1 = (librdf_world *)(argp1);
11804 {
11805 librdf_python_world_init(arg1);
11806 if(librdf_python_error_message) {
11807 PyErr_SetString(PyRedland_Error, librdf_python_error_message);
11808 free(librdf_python_error_message);
11809 librdf_python_error_message=NULL;
11810 SWIG_fail;
11811 }
11812 if(librdf_python_warning_message) {
11813 PyErr_Warn(PyRedland_Warning, librdf_python_warning_message);
11814 free(librdf_python_warning_message);
11815 librdf_python_warning_message=NULL;
11816 }
11817 }
11818 resultobj = SWIG_Py_Void();
11819 return resultobj;
11820 fail:
11821 return NULL;
11822 }
11823
11824
11825 static PyMethodDef SwigMethods[] = {
11826 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
11827 { (char *)"librdf_new_digest", _wrap_librdf_new_digest, METH_VARARGS, NULL},
11828 { (char *)"librdf_free_digest", _wrap_librdf_free_digest, METH_VARARGS, NULL},
11829 { (char *)"librdf_digest_init", _wrap_librdf_digest_init, METH_VARARGS, NULL},
11830 { (char *)"librdf_digest_update", _wrap_librdf_digest_update, METH_VARARGS, NULL},
11831 { (char *)"librdf_digest_update_string", _wrap_librdf_digest_update_string, METH_VARARGS, NULL},
11832 { (char *)"librdf_digest_final", _wrap_librdf_digest_final, METH_VARARGS, NULL},
11833 { (char *)"librdf_digest_to_string", _wrap_librdf_digest_to_string, METH_VARARGS, NULL},
11834 { (char *)"librdf_new_hash", _wrap_librdf_new_hash, METH_VARARGS, NULL},
11835 { (char *)"librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string, METH_VARARGS, NULL},
11836 { (char *)"librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings, METH_VARARGS, NULL},
11837 { (char *)"librdf_hash_to_string", _wrap_librdf_hash_to_string, METH_VARARGS, NULL},
11838 { (char *)"librdf_free_hash", _wrap_librdf_free_hash, METH_VARARGS, NULL},
11839 { (char *)"librdf_new_world", _wrap_librdf_new_world, METH_VARARGS, NULL},
11840 { (char *)"librdf_free_world", _wrap_librdf_free_world, METH_VARARGS, NULL},
11841 { (char *)"librdf_world_open", _wrap_librdf_world_open, METH_VARARGS, NULL},
11842 { (char *)"librdf_world_get_feature", _wrap_librdf_world_get_feature, METH_VARARGS, NULL},
11843 { (char *)"librdf_world_set_feature", _wrap_librdf_world_set_feature, METH_VARARGS, NULL},
11844 { (char *)"librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header, METH_VARARGS, NULL},
11845 { (char *)"librdf_world_set_logger", _wrap_librdf_world_set_logger, METH_VARARGS, NULL},
11846 { (char *)"librdf_free_iterator", _wrap_librdf_free_iterator, METH_VARARGS, NULL},
11847 { (char *)"librdf_iterator_end", _wrap_librdf_iterator_end, METH_VARARGS, NULL},
11848 { (char *)"librdf_iterator_get_object", _wrap_librdf_iterator_get_object, METH_VARARGS, NULL},
11849 { (char *)"librdf_iterator_get_context", _wrap_librdf_iterator_get_context, METH_VARARGS, NULL},
11850 { (char *)"librdf_iterator_next", _wrap_librdf_iterator_next, METH_VARARGS, NULL},
11851 { (char *)"librdf_new_uri", _wrap_librdf_new_uri, METH_VARARGS, NULL},
11852 { (char *)"librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri, METH_VARARGS, NULL},
11853 { (char *)"librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename, METH_VARARGS, NULL},
11854 { (char *)"librdf_free_uri", _wrap_librdf_free_uri, METH_VARARGS, NULL},
11855 { (char *)"librdf_uri_to_string", _wrap_librdf_uri_to_string, METH_VARARGS, NULL},
11856 { (char *)"librdf_uri_equals", _wrap_librdf_uri_equals, METH_VARARGS, NULL},
11857 { (char *)"librdf_uri_compare", _wrap_librdf_uri_compare, METH_VARARGS, NULL},
11858 { (char *)"librdf_new_node", _wrap_librdf_new_node, METH_VARARGS, NULL},
11859 { (char *)"librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string, METH_VARARGS, NULL},
11860 { (char *)"librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri, METH_VARARGS, NULL},
11861 { (char *)"librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name, METH_VARARGS, NULL},
11862 { (char *)"librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string, METH_VARARGS, NULL},
11863 { (char *)"librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal, METH_VARARGS, NULL},
11864 { (char *)"librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal, METH_VARARGS, NULL},
11865 { (char *)"librdf_new_node_from_node", _wrap_librdf_new_node_from_node, METH_VARARGS, NULL},
11866 { (char *)"librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier, METH_VARARGS, NULL},
11867 { (char *)"librdf_free_node", _wrap_librdf_free_node, METH_VARARGS, NULL},
11868 { (char *)"librdf_node_get_uri", _wrap_librdf_node_get_uri, METH_VARARGS, NULL},
11869 { (char *)"librdf_node_get_type", _wrap_librdf_node_get_type, METH_VARARGS, NULL},
11870 { (char *)"librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value, METH_VARARGS, NULL},
11871 { (char *)"librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1, METH_VARARGS, NULL},
11872 { (char *)"librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language, METH_VARARGS, NULL},
11873 { (char *)"librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri, METH_VARARGS, NULL},
11874 { (char *)"librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml, METH_VARARGS, NULL},
11875 { (char *)"librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal, METH_VARARGS, NULL},
11876 { (char *)"librdf_node_to_string", _wrap_librdf_node_to_string, METH_VARARGS, NULL},
11877 { (char *)"librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier, METH_VARARGS, NULL},
11878 { (char *)"librdf_node_is_resource", _wrap_librdf_node_is_resource, METH_VARARGS, NULL},
11879 { (char *)"librdf_node_is_literal", _wrap_librdf_node_is_literal, METH_VARARGS, NULL},
11880 { (char *)"librdf_node_is_blank", _wrap_librdf_node_is_blank, METH_VARARGS, NULL},
11881 { (char *)"librdf_node_equals", _wrap_librdf_node_equals, METH_VARARGS, NULL},
11882 { (char *)"librdf_new_statement", _wrap_librdf_new_statement, METH_VARARGS, NULL},
11883 { (char *)"librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement, METH_VARARGS, NULL},
11884 { (char *)"librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes, METH_VARARGS, NULL},
11885 { (char *)"librdf_free_statement", _wrap_librdf_free_statement, METH_VARARGS, NULL},
11886 { (char *)"librdf_statement_get_subject", _wrap_librdf_statement_get_subject, METH_VARARGS, NULL},
11887 { (char *)"librdf_statement_set_subject", _wrap_librdf_statement_set_subject, METH_VARARGS, NULL},
11888 { (char *)"librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate, METH_VARARGS, NULL},
11889 { (char *)"librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate, METH_VARARGS, NULL},
11890 { (char *)"librdf_statement_get_object", _wrap_librdf_statement_get_object, METH_VARARGS, NULL},
11891 { (char *)"librdf_statement_set_object", _wrap_librdf_statement_set_object, METH_VARARGS, NULL},
11892 { (char *)"librdf_statement_equals", _wrap_librdf_statement_equals, METH_VARARGS, NULL},
11893 { (char *)"librdf_statement_match", _wrap_librdf_statement_match, METH_VARARGS, NULL},
11894 { (char *)"librdf_statement_to_string", _wrap_librdf_statement_to_string, METH_VARARGS, NULL},
11895 { (char *)"librdf_statement_is_complete", _wrap_librdf_statement_is_complete, METH_VARARGS, NULL},
11896 { (char *)"librdf_new_model", _wrap_librdf_new_model, METH_VARARGS, NULL},
11897 { (char *)"librdf_new_model_with_options", _wrap_librdf_new_model_with_options, METH_VARARGS, NULL},
11898 { (char *)"librdf_new_model_from_model", _wrap_librdf_new_model_from_model, METH_VARARGS, NULL},
11899 { (char *)"librdf_free_model", _wrap_librdf_free_model, METH_VARARGS, NULL},
11900 { (char *)"librdf_model_size", _wrap_librdf_model_size, METH_VARARGS, NULL},
11901 { (char *)"librdf_model_add", _wrap_librdf_model_add, METH_VARARGS, NULL},
11902 { (char *)"librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement, METH_VARARGS, NULL},
11903 { (char *)"librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement, METH_VARARGS, NULL},
11904 { (char *)"librdf_model_add_statement", _wrap_librdf_model_add_statement, METH_VARARGS, NULL},
11905 { (char *)"librdf_model_add_statements", _wrap_librdf_model_add_statements, METH_VARARGS, NULL},
11906 { (char *)"librdf_model_remove_statement", _wrap_librdf_model_remove_statement, METH_VARARGS, NULL},
11907 { (char *)"librdf_model_contains_statement", _wrap_librdf_model_contains_statement, METH_VARARGS, NULL},
11908 { (char *)"librdf_model_as_stream", _wrap_librdf_model_as_stream, METH_VARARGS, NULL},
11909 { (char *)"librdf_model_find_statements", _wrap_librdf_model_find_statements, METH_VARARGS, NULL},
11910 { (char *)"librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context, METH_VARARGS, NULL},
11911 { (char *)"librdf_model_get_sources", _wrap_librdf_model_get_sources, METH_VARARGS, NULL},
11912 { (char *)"librdf_model_get_arcs", _wrap_librdf_model_get_arcs, METH_VARARGS, NULL},
11913 { (char *)"librdf_model_get_targets", _wrap_librdf_model_get_targets, METH_VARARGS, NULL},
11914 { (char *)"librdf_model_get_source", _wrap_librdf_model_get_source, METH_VARARGS, NULL},
11915 { (char *)"librdf_model_get_arc", _wrap_librdf_model_get_arc, METH_VARARGS, NULL},
11916 { (char *)"librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out, METH_VARARGS, NULL},
11917 { (char *)"librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in, METH_VARARGS, NULL},
11918 { (char *)"librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in, METH_VARARGS, NULL},
11919 { (char *)"librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out, METH_VARARGS, NULL},
11920 { (char *)"librdf_model_get_target", _wrap_librdf_model_get_target, METH_VARARGS, NULL},
11921 { (char *)"librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement, METH_VARARGS, NULL},
11922 { (char *)"librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements, METH_VARARGS, NULL},
11923 { (char *)"librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement, METH_VARARGS, NULL},
11924 { (char *)"librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements, METH_VARARGS, NULL},
11925 { (char *)"librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream, METH_VARARGS, NULL},
11926 { (char *)"librdf_model_sync", _wrap_librdf_model_sync, METH_VARARGS, NULL},
11927 { (char *)"librdf_model_get_contexts", _wrap_librdf_model_get_contexts, METH_VARARGS, NULL},
11928 { (char *)"librdf_model_contains_context", _wrap_librdf_model_contains_context, METH_VARARGS, NULL},
11929 { (char *)"librdf_model_get_feature", _wrap_librdf_model_get_feature, METH_VARARGS, NULL},
11930 { (char *)"librdf_model_set_feature", _wrap_librdf_model_set_feature, METH_VARARGS, NULL},
11931 { (char *)"librdf_model_load", _wrap_librdf_model_load, METH_VARARGS, NULL},
11932 { (char *)"librdf_model_query_execute", _wrap_librdf_model_query_execute, METH_VARARGS, NULL},
11933 { (char *)"librdf_model_to_string", _wrap_librdf_model_to_string, METH_VARARGS, NULL},
11934 { (char *)"librdf_model_transaction_start", _wrap_librdf_model_transaction_start, METH_VARARGS, NULL},
11935 { (char *)"librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit, METH_VARARGS, NULL},
11936 { (char *)"librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback, METH_VARARGS, NULL},
11937 { (char *)"librdf_new_storage", _wrap_librdf_new_storage, METH_VARARGS, NULL},
11938 { (char *)"librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage, METH_VARARGS, NULL},
11939 { (char *)"librdf_free_storage", _wrap_librdf_free_storage, METH_VARARGS, NULL},
11940 { (char *)"librdf_parser_check_name", _wrap_librdf_parser_check_name, METH_VARARGS, NULL},
11941 { (char *)"librdf_new_parser", _wrap_librdf_new_parser, METH_VARARGS, NULL},
11942 { (char *)"librdf_free_parser", _wrap_librdf_free_parser, METH_VARARGS, NULL},
11943 { (char *)"librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream, METH_VARARGS, NULL},
11944 { (char *)"librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model, METH_VARARGS, NULL},
11945 { (char *)"librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream, METH_VARARGS, NULL},
11946 { (char *)"librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model, METH_VARARGS, NULL},
11947 { (char *)"librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream, METH_VARARGS, NULL},
11948 { (char *)"librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model, METH_VARARGS, NULL},
11949 { (char *)"librdf_parser_get_feature", _wrap_librdf_parser_get_feature, METH_VARARGS, NULL},
11950 { (char *)"librdf_parser_set_feature", _wrap_librdf_parser_set_feature, METH_VARARGS, NULL},
11951 { (char *)"librdf_parser_guess_name", _wrap_librdf_parser_guess_name, METH_VARARGS, NULL},
11952 { (char *)"librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2, METH_VARARGS, NULL},
11953 { (char *)"librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix, METH_VARARGS, NULL},
11954 { (char *)"librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri, METH_VARARGS, NULL},
11955 { (char *)"librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count, METH_VARARGS, NULL},
11956 { (char *)"librdf_new_query", _wrap_librdf_new_query, METH_VARARGS, NULL},
11957 { (char *)"librdf_new_query_from_query", _wrap_librdf_new_query_from_query, METH_VARARGS, NULL},
11958 { (char *)"librdf_free_query", _wrap_librdf_free_query, METH_VARARGS, NULL},
11959 { (char *)"librdf_query_execute", _wrap_librdf_query_execute, METH_VARARGS, NULL},
11960 { (char *)"librdf_query_get_limit", _wrap_librdf_query_get_limit, METH_VARARGS, NULL},
11961 { (char *)"librdf_query_set_limit", _wrap_librdf_query_set_limit, METH_VARARGS, NULL},
11962 { (char *)"librdf_query_get_offset", _wrap_librdf_query_get_offset, METH_VARARGS, NULL},
11963 { (char *)"librdf_query_set_offset", _wrap_librdf_query_set_offset, METH_VARARGS, NULL},
11964 { (char *)"librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream, METH_VARARGS, NULL},
11965 { (char *)"librdf_query_results_get_count", _wrap_librdf_query_results_get_count, METH_VARARGS, NULL},
11966 { (char *)"librdf_query_results_next", _wrap_librdf_query_results_next, METH_VARARGS, NULL},
11967 { (char *)"librdf_query_results_finished", _wrap_librdf_query_results_finished, METH_VARARGS, NULL},
11968 { (char *)"librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value, METH_VARARGS, NULL},
11969 { (char *)"librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name, METH_VARARGS, NULL},
11970 { (char *)"librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name, METH_VARARGS, NULL},
11971 { (char *)"librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count, METH_VARARGS, NULL},
11972 { (char *)"librdf_query_results_to_file", _wrap_librdf_query_results_to_file, METH_VARARGS, NULL},
11973 { (char *)"librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2, METH_VARARGS, NULL},
11974 { (char *)"librdf_query_results_to_string", _wrap_librdf_query_results_to_string, METH_VARARGS, NULL},
11975 { (char *)"librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2, METH_VARARGS, NULL},
11976 { (char *)"librdf_free_query_results", _wrap_librdf_free_query_results, METH_VARARGS, NULL},
11977 { (char *)"librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings, METH_VARARGS, NULL},
11978 { (char *)"librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean, METH_VARARGS, NULL},
11979 { (char *)"librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph, METH_VARARGS, NULL},
11980 { (char *)"librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax, METH_VARARGS, NULL},
11981 { (char *)"librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean, METH_VARARGS, NULL},
11982 { (char *)"librdf_serializer_check_name", _wrap_librdf_serializer_check_name, METH_VARARGS, NULL},
11983 { (char *)"librdf_new_serializer", _wrap_librdf_new_serializer, METH_VARARGS, NULL},
11984 { (char *)"librdf_free_serializer", _wrap_librdf_free_serializer, METH_VARARGS, NULL},
11985 { (char *)"librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file, METH_VARARGS, NULL},
11986 { (char *)"librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file, METH_VARARGS, NULL},
11987 { (char *)"librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string, METH_VARARGS, NULL},
11988 { (char *)"librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string, METH_VARARGS, NULL},
11989 { (char *)"librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature, METH_VARARGS, NULL},
11990 { (char *)"librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature, METH_VARARGS, NULL},
11991 { (char *)"librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace, METH_VARARGS, NULL},
11992 { (char *)"librdf_free_stream", _wrap_librdf_free_stream, METH_VARARGS, NULL},
11993 { (char *)"librdf_stream_end", _wrap_librdf_stream_end, METH_VARARGS, NULL},
11994 { (char *)"librdf_stream_next", _wrap_librdf_stream_next, METH_VARARGS, NULL},
11995 { (char *)"librdf_stream_get_object", _wrap_librdf_stream_get_object, METH_VARARGS, NULL},
11996 { (char *)"librdf_stream_get_context", _wrap_librdf_stream_get_context, METH_VARARGS, NULL},
11997 { (char *)"librdf_log_message_code", _wrap_librdf_log_message_code, METH_VARARGS, NULL},
11998 { (char *)"librdf_log_message_level", _wrap_librdf_log_message_level, METH_VARARGS, NULL},
11999 { (char *)"librdf_log_message_facility", _wrap_librdf_log_message_facility, METH_VARARGS, NULL},
12000 { (char *)"librdf_log_message_message", _wrap_librdf_log_message_message, METH_VARARGS, NULL},
12001 { (char *)"librdf_log_message_locator", _wrap_librdf_log_message_locator, METH_VARARGS, NULL},
12002 { (char *)"raptor_locator_line", _wrap_raptor_locator_line, METH_VARARGS, NULL},
12003 { (char *)"raptor_locator_column", _wrap_raptor_locator_column, METH_VARARGS, NULL},
12004 { (char *)"raptor_locator_byte", _wrap_raptor_locator_byte, METH_VARARGS, NULL},
12005 { (char *)"raptor_locator_file", _wrap_raptor_locator_file, METH_VARARGS, NULL},
12006 { (char *)"raptor_locator_uri", _wrap_raptor_locator_uri, METH_VARARGS, NULL},
12007 { (char *)"librdf_internal_test_error", _wrap_librdf_internal_test_error, METH_VARARGS, NULL},
12008 { (char *)"librdf_internal_test_warning", _wrap_librdf_internal_test_warning, METH_VARARGS, NULL},
12009 { (char *)"librdf_python_world_init", _wrap_librdf_python_world_init, METH_VARARGS, NULL},
12010 { NULL, NULL, 0, NULL }
12011 };
12012
12013
12014 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
12015
12016 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12017 static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0};
12018 static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0};
12019 static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0};
12020 static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0};
12021 static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0};
12022 static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0};
12023 static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0};
12024 static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0};
12025 static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0};
12026 static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0};
12027 static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0};
12028 static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0};
12029 static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0};
12030 static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0};
12031 static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0};
12032 static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0};
12033 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
12034 static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0};
12035
12036 static swig_type_info *swig_type_initial[] = {
12037 &_swigt__p_char,
12038 &_swigt__p_librdf_digest_s,
12039 &_swigt__p_librdf_hash_s,
12040 &_swigt__p_librdf_iterator_s,
12041 &_swigt__p_librdf_log_func,
12042 &_swigt__p_librdf_log_message,
12043 &_swigt__p_librdf_model_s,
12044 &_swigt__p_librdf_node_s,
12045 &_swigt__p_librdf_parser_s,
12046 &_swigt__p_librdf_query,
12047 &_swigt__p_librdf_query_results,
12048 &_swigt__p_librdf_serializer_s,
12049 &_swigt__p_librdf_statement_s,
12050 &_swigt__p_librdf_storage_s,
12051 &_swigt__p_librdf_stream_s,
12052 &_swigt__p_librdf_uri_s,
12053 &_swigt__p_librdf_world_s,
12054 &_swigt__p_p_char,
12055 &_swigt__p_raptor_locator,
12056 };
12057
12058 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
12059 static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}};
12060 static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}};
12061 static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}};
12062 static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}};
12063 static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}};
12064 static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}};
12065 static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}};
12066 static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}};
12067 static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}};
12068 static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}};
12069 static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}};
12070 static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}};
12071 static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}};
12072 static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}};
12073 static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}};
12074 static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}};
12075 static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
12076 static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}};
12077
12078 static swig_cast_info *swig_cast_initial[] = {
12079 _swigc__p_char,
12080 _swigc__p_librdf_digest_s,
12081 _swigc__p_librdf_hash_s,
12082 _swigc__p_librdf_iterator_s,
12083 _swigc__p_librdf_log_func,
12084 _swigc__p_librdf_log_message,
12085 _swigc__p_librdf_model_s,
12086 _swigc__p_librdf_node_s,
12087 _swigc__p_librdf_parser_s,
12088 _swigc__p_librdf_query,
12089 _swigc__p_librdf_query_results,
12090 _swigc__p_librdf_serializer_s,
12091 _swigc__p_librdf_statement_s,
12092 _swigc__p_librdf_storage_s,
12093 _swigc__p_librdf_stream_s,
12094 _swigc__p_librdf_uri_s,
12095 _swigc__p_librdf_world_s,
12096 _swigc__p_p_char,
12097 _swigc__p_raptor_locator,
12098 };
12099
12100
12101 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
12102
12103 static swig_const_info swig_const_table[] = {
12104 {0, 0, 0, 0.0, 0, 0}};
12105
12106 #ifdef __cplusplus
12107 }
12108 #endif
12109 /* -----------------------------------------------------------------------------
12110 * Type initialization:
12111 * This problem is tough by the requirement that no dynamic
12112 * memory is used. Also, since swig_type_info structures store pointers to
12113 * swig_cast_info structures and swig_cast_info structures store pointers back
12114 * to swig_type_info structures, we need some lookup code at initialization.
12115 * The idea is that swig generates all the structures that are needed.
12116 * The runtime then collects these partially filled structures.
12117 * The SWIG_InitializeModule function takes these initial arrays out of
12118 * swig_module, and does all the lookup, filling in the swig_module.types
12119 * array with the correct data and linking the correct swig_cast_info
12120 * structures together.
12121 *
12122 * The generated swig_type_info structures are assigned staticly to an initial
12123 * array. We just loop through that array, and handle each type individually.
12124 * First we lookup if this type has been already loaded, and if so, use the
12125 * loaded structure instead of the generated one. Then we have to fill in the
12126 * cast linked list. The cast data is initially stored in something like a
12127 * two-dimensional array. Each row corresponds to a type (there are the same
12128 * number of rows as there are in the swig_type_initial array). Each entry in
12129 * a column is one of the swig_cast_info structures for that type.
12130 * The cast_initial array is actually an array of arrays, because each row has
12131 * a variable number of columns. So to actually build the cast linked list,
12132 * we find the array of casts associated with the type, and loop through it
12133 * adding the casts to the list. The one last trick we need to do is making
12134 * sure the type pointer in the swig_cast_info struct is correct.
12135 *
12136 * First off, we lookup the cast->type name to see if it is already loaded.
12137 * There are three cases to handle:
12138 * 1) If the cast->type has already been loaded AND the type we are adding
12139 * casting info to has not been loaded (it is in this module), THEN we
12140 * replace the cast->type pointer with the type pointer that has already
12141 * been loaded.
12142 * 2) If BOTH types (the one we are adding casting info to, and the
12143 * cast->type) are loaded, THEN the cast info has already been loaded by
12144 * the previous module so we just ignore it.
12145 * 3) Finally, if cast->type has not already been loaded, then we add that
12146 * swig_cast_info to the linked list (because the cast->type) pointer will
12147 * be correct.
12148 * ----------------------------------------------------------------------------- */
12149
12150 #ifdef __cplusplus
12151 extern "C" {
12152 #if 0
12153 } /* c-mode */
12154 #endif
12155 #endif
12156
12157 #if 0
12158 #define SWIGRUNTIME_DEBUG
12159 #endif
12160
12161
12162 SWIGRUNTIME void
12163 SWIG_InitializeModule(void *clientdata) {
12164 size_t i;
12165 swig_module_info *module_head, *iter;
12166 int found, init;
12167
12168 clientdata = clientdata;
12169
12170 /* check to see if the circular list has been setup, if not, set it up */
12171 if (swig_module.next==0) {
12172 /* Initialize the swig_module */
12173 swig_module.type_initial = swig_type_initial;
12174 swig_module.cast_initial = swig_cast_initial;
12175 swig_module.next = &swig_module;
12176 init = 1;
12177 } else {
12178 init = 0;
12179 }
12180
12181 /* Try and load any already created modules */
12182 module_head = SWIG_GetModule(clientdata);
12183 if (!module_head) {
12184 /* This is the first module loaded for this interpreter */
12185 /* so set the swig module into the interpreter */
12186 SWIG_SetModule(clientdata, &swig_module);
12187 module_head = &swig_module;
12188 } else {
12189 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
12190 found=0;
12191 iter=module_head;
12192 do {
12193 if (iter==&swig_module) {
12194 found=1;
12195 break;
12196 }
12197 iter=iter->next;
12198 } while (iter!= module_head);
12199
12200 /* if the is found in the list, then all is done and we may leave */
12201 if (found) return;
12202 /* otherwise we must add out module into the list */
12203 swig_module.next = module_head->next;
12204 module_head->next = &swig_module;
12205 }
12206
12207 /* When multiple interpeters are used, a module could have already been initialized in
12208 a different interpreter, but not yet have a pointer in this interpreter.
12209 In this case, we do not want to continue adding types... everything should be
12210 set up already */
12211 if (init == 0) return;
12212
12213 /* Now work on filling in swig_module.types */
12214 #ifdef SWIGRUNTIME_DEBUG
12215 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
12216 #endif
12217 for (i = 0; i < swig_module.size; ++i) {
12218 swig_type_info *type = 0;
12219 swig_type_info *ret;
12220 swig_cast_info *cast;
12221
12222 #ifdef SWIGRUNTIME_DEBUG
12223 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12224 #endif
12225
12226 /* if there is another module already loaded */
12227 if (swig_module.next != &swig_module) {
12228 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
12229 }
12230 if (type) {
12231 /* Overwrite clientdata field */
12232 #ifdef SWIGRUNTIME_DEBUG
12233 printf("SWIG_InitializeModule: found type %s\n", type->name);
12234 #endif
12235 if (swig_module.type_initial[i]->clientdata) {
12236 type->clientdata = swig_module.type_initial[i]->clientdata;
12237 #ifdef SWIGRUNTIME_DEBUG
12238 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
12239 #endif
12240 }
12241 } else {
12242 type = swig_module.type_initial[i];
12243 }
12244
12245 /* Insert casting types */
12246 cast = swig_module.cast_initial[i];
12247 while (cast->type) {
12248 /* Don't need to add information already in the list */
12249 ret = 0;
12250 #ifdef SWIGRUNTIME_DEBUG
12251 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
12252 #endif
12253 if (swig_module.next != &swig_module) {
12254 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
12255 #ifdef SWIGRUNTIME_DEBUG
12256 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
12257 #endif
12258 }
12259 if (ret) {
12260 if (type == swig_module.type_initial[i]) {
12261 #ifdef SWIGRUNTIME_DEBUG
12262 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
12263 #endif
12264 cast->type = ret;
12265 ret = 0;
12266 } else {
12267 /* Check for casting already in the list */
12268 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
12269 #ifdef SWIGRUNTIME_DEBUG
12270 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
12271 #endif
12272 if (!ocast) ret = 0;
12273 }
12274 }
12275
12276 if (!ret) {
12277 #ifdef SWIGRUNTIME_DEBUG
12278 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
12279 #endif
12280 if (type->cast) {
12281 type->cast->prev = cast;
12282 cast->next = type->cast;
12283 }
12284 type->cast = cast;
12285 }
12286 cast++;
12287 }
12288 /* Set entry in modules->types array equal to the type */
12289 swig_module.types[i] = type;
12290 }
12291 swig_module.types[i] = 0;
12292
12293 #ifdef SWIGRUNTIME_DEBUG
12294 printf("**** SWIG_InitializeModule: Cast List ******\n");
12295 for (i = 0; i < swig_module.size; ++i) {
12296 int j = 0;
12297 swig_cast_info *cast = swig_module.cast_initial[i];
12298 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12299 while (cast->type) {
12300 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
12301 cast++;
12302 ++j;
12303 }
12304 printf("---- Total casts: %d\n",j);
12305 }
12306 printf("**** SWIG_InitializeModule: Cast List ******\n");
12307 #endif
12308 }
12309
12310 /* This function will propagate the clientdata field of type to
12311 * any new swig_type_info structures that have been added into the list
12312 * of equivalent types. It is like calling
12313 * SWIG_TypeClientData(type, clientdata) a second time.
12314 */
12315 SWIGRUNTIME void
12316 SWIG_PropagateClientData(void) {
12317 size_t i;
12318 swig_cast_info *equiv;
12319 static int init_run = 0;
12320
12321 if (init_run) return;
12322 init_run = 1;
12323
12324 for (i = 0; i < swig_module.size; i++) {
12325 if (swig_module.types[i]->clientdata) {
12326 equiv = swig_module.types[i]->cast;
12327 while (equiv) {
12328 if (!equiv->converter) {
12329 if (equiv->type && !equiv->type->clientdata)
12330 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
12331 }
12332 equiv = equiv->next;
12333 }
12334 }
12335 }
12336 }
12337
12338 #ifdef __cplusplus
12339 #if 0
12340 {
12341 /* c-mode */
12342 #endif
12343 }
12344 #endif
12345
12346
12347
12348 #ifdef __cplusplus
12349 extern "C" {
12350 #endif
12351
12352 /* Python-specific SWIG API */
12353 #define SWIG_newvarlink() SWIG_Python_newvarlink()
12354 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
12355 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
12356
12357 /* -----------------------------------------------------------------------------
12358 * global variable support code.
12359 * ----------------------------------------------------------------------------- */
12360
12361 typedef struct swig_globalvar {
12362 char *name; /* Name of global variable */
12363 PyObject *(*get_attr)(void); /* Return the current value */
12364 int (*set_attr)(PyObject *); /* Set the value */
12365 struct swig_globalvar *next;
12366 } swig_globalvar;
12367
12368 typedef struct swig_varlinkobject {
12369 PyObject_HEAD
12370 swig_globalvar *vars;
12371 } swig_varlinkobject;
12372
12373 SWIGINTERN PyObject *
12374 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
12375 #if PY_VERSION_HEX >= 0x03000000
12376 return PyUnicode_InternFromString("<Swig global variables>");
12377 #else
12378 return PyString_FromString("<Swig global variables>");
12379 #endif
12380 }
12381
12382 SWIGINTERN PyObject *
12383 swig_varlink_str(swig_varlinkobject *v) {
12384 #if PY_VERSION_HEX >= 0x03000000
12385 PyObject *str = PyUnicode_InternFromString("(");
12386 PyObject *tail;
12387 PyObject *joined;
12388 swig_globalvar *var;
12389 for (var = v->vars; var; var=var->next) {
12390 tail = PyUnicode_FromString(var->name);
12391 joined = PyUnicode_Concat(str, tail);
12392 Py_DecRef(str);
12393 Py_DecRef(tail);
12394 str = joined;
12395 if (var->next) {
12396 tail = PyUnicode_InternFromString(", ");
12397 joined = PyUnicode_Concat(str, tail);
12398 Py_DecRef(str);
12399 Py_DecRef(tail);
12400 str = joined;
12401 }
12402 }
12403 tail = PyUnicode_InternFromString(")");
12404 joined = PyUnicode_Concat(str, tail);
12405 Py_DecRef(str);
12406 Py_DecRef(tail);
12407 str = joined;
12408 #else
12409 PyObject *str = PyString_FromString("(");
12410 swig_globalvar *var;
12411 for (var = v->vars; var; var=var->next) {
12412 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
12413 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
12414 }
12415 PyString_ConcatAndDel(&str,PyString_FromString(")"));
12416 #endif
12417 return str;
12418 }
12419
12420 SWIGINTERN int
12421 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
12422 char *tmp;
12423 PyObject *str = swig_varlink_str(v);
12424 fprintf(fp,"Swig global variables ");
12425 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
12426 SWIG_Python_str_DelForPy3(tmp);
12427 Py_DECREF(str);
12428 return 0;
12429 }
12430
12431 SWIGINTERN void
12432 swig_varlink_dealloc(swig_varlinkobject *v) {
12433 swig_globalvar *var = v->vars;
12434 while (var) {
12435 swig_globalvar *n = var->next;
12436 free(var->name);
12437 free(var);
12438 var = n;
12439 }
12440 }
12441
12442 SWIGINTERN PyObject *
12443 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
12444 PyObject *res = NULL;
12445 swig_globalvar *var = v->vars;
12446 while (var) {
12447 if (strcmp(var->name,n) == 0) {
12448 res = (*var->get_attr)();
12449 break;
12450 }
12451 var = var->next;
12452 }
12453 if (res == NULL && !PyErr_Occurred()) {
12454 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12455 }
12456 return res;
12457 }
12458
12459 SWIGINTERN int
12460 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
12461 int res = 1;
12462 swig_globalvar *var = v->vars;
12463 while (var) {
12464 if (strcmp(var->name,n) == 0) {
12465 res = (*var->set_attr)(p);
12466 break;
12467 }
12468 var = var->next;
12469 }
12470 if (res == 1 && !PyErr_Occurred()) {
12471 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12472 }
12473 return res;
12474 }
12475
12476 SWIGINTERN PyTypeObject*
12477 swig_varlink_type(void) {
12478 static char varlink__doc__[] = "Swig var link object";
12479 static PyTypeObject varlink_type;
12480 static int type_init = 0;
12481 if (!type_init) {
12482 const PyTypeObject tmp = {
12483 /* PyObject header changed in Python 3 */
12484 #if PY_VERSION_HEX >= 0x03000000
12485 PyVarObject_HEAD_INIT(NULL, 0)
12486 #else
12487 PyObject_HEAD_INIT(NULL)
12488 0, /* ob_size */
12489 #endif
12490 (char *)"swigvarlink", /* tp_name */
12491 sizeof(swig_varlinkobject), /* tp_basicsize */
12492 0, /* tp_itemsize */
12493 (destructor) swig_varlink_dealloc, /* tp_dealloc */
12494 (printfunc) swig_varlink_print, /* tp_print */
12495 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
12496 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
12497 0, /* tp_compare */
12498 (reprfunc) swig_varlink_repr, /* tp_repr */
12499 0, /* tp_as_number */
12500 0, /* tp_as_sequence */
12501 0, /* tp_as_mapping */
12502 0, /* tp_hash */
12503 0, /* tp_call */
12504 (reprfunc) swig_varlink_str, /* tp_str */
12505 0, /* tp_getattro */
12506 0, /* tp_setattro */
12507 0, /* tp_as_buffer */
12508 0, /* tp_flags */
12509 varlink__doc__, /* tp_doc */
12510 0, /* tp_traverse */
12511 0, /* tp_clear */
12512 0, /* tp_richcompare */
12513 0, /* tp_weaklistoffset */
12514 #if PY_VERSION_HEX >= 0x02020000
12515 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
12516 #endif
12517 #if PY_VERSION_HEX >= 0x02030000
12518 0, /* tp_del */
12519 #endif
12520 #if PY_VERSION_HEX >= 0x02060000
12521 0, /* tp_version */
12522 #endif
12523 #ifdef COUNT_ALLOCS
12524 0,0,0,0 /* tp_alloc -> tp_next */
12525 #endif
12526 };
12527 varlink_type = tmp;
12528 type_init = 1;
12529 #if PY_VERSION_HEX < 0x02020000
12530 varlink_type.ob_type = &PyType_Type;
12531 #else
12532 if (PyType_Ready(&varlink_type) < 0)
12533 return NULL;
12534 #endif
12535 }
12536 return &varlink_type;
12537 }
12538
12539 /* Create a variable linking object for use later */
12540 SWIGINTERN PyObject *
12541 SWIG_Python_newvarlink(void) {
12542 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
12543 if (result) {
12544 result->vars = 0;
12545 }
12546 return ((PyObject*) result);
12547 }
12548
12549 SWIGINTERN void
12550 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
12551 swig_varlinkobject *v = (swig_varlinkobject *) p;
12552 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
12553 if (gv) {
12554 size_t size = strlen(name)+1;
12555 gv->name = (char *)malloc(size);
12556 if (gv->name) {
12557 strncpy(gv->name,name,size);
12558 gv->get_attr = get_attr;
12559 gv->set_attr = set_attr;
12560 gv->next = v->vars;
12561 }
12562 }
12563 v->vars = gv;
12564 }
12565
12566 SWIGINTERN PyObject *
12567 SWIG_globals(void) {
12568 static PyObject *_SWIG_globals = 0;
12569 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
12570 return _SWIG_globals;
12571 }
12572
12573 /* -----------------------------------------------------------------------------
12574 * constants/methods manipulation
12575 * ----------------------------------------------------------------------------- */
12576
12577 /* Install Constants */
12578 SWIGINTERN void
12579 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
12580 PyObject *obj = 0;
12581 size_t i;
12582 for (i = 0; constants[i].type; ++i) {
12583 switch(constants[i].type) {
12584 case SWIG_PY_POINTER:
12585 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
12586 break;
12587 case SWIG_PY_BINARY:
12588 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
12589 break;
12590 default:
12591 obj = 0;
12592 break;
12593 }
12594 if (obj) {
12595 PyDict_SetItemString(d, constants[i].name, obj);
12596 Py_DECREF(obj);
12597 }
12598 }
12599 }
12600
12601 /* -----------------------------------------------------------------------------*/
12602 /* Fix SwigMethods to carry the callback ptrs when needed */
12603 /* -----------------------------------------------------------------------------*/
12604
12605 SWIGINTERN void
12606 SWIG_Python_FixMethods(PyMethodDef *methods,
12607 swig_const_info *const_table,
12608 swig_type_info **types,
12609 swig_type_info **types_initial) {
12610 size_t i;
12611 for (i = 0; methods[i].ml_name; ++i) {
12612 const char *c = methods[i].ml_doc;
12613 if (c && (c = strstr(c, "swig_ptr: "))) {
12614 int j;
12615 swig_const_info *ci = 0;
12616 const char *name = c + 10;
12617 for (j = 0; const_table[j].type; ++j) {
12618 if (strncmp(const_table[j].name, name,
12619 strlen(const_table[j].name)) == 0) {
12620 ci = &(const_table[j]);
12621 break;
12622 }
12623 }
12624 if (ci) {
12625 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
12626 if (ptr) {
12627 size_t shift = (ci->ptype) - types;
12628 swig_type_info *ty = types_initial[shift];
12629 size_t ldoc = (c - methods[i].ml_doc);
12630 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
12631 char *ndoc = (char*)malloc(ldoc + lptr + 10);
12632 if (ndoc) {
12633 char *buff = ndoc;
12634 strncpy(buff, methods[i].ml_doc, ldoc);
12635 buff += ldoc;
12636 strncpy(buff, "swig_ptr: ", 10);
12637 buff += 10;
12638 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
12639 methods[i].ml_doc = ndoc;
12640 }
12641 }
12642 }
12643 }
12644 }
12645 }
12646
12647 #ifdef __cplusplus
12648 }
12649 #endif
12650
12651 /* -----------------------------------------------------------------------------*
12652 * Partial Init method
12653 * -----------------------------------------------------------------------------*/
12654
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658
12659 SWIGEXPORT
12660 #if PY_VERSION_HEX >= 0x03000000
12661 PyObject*
12662 #else
12663 void
12664 #endif
12665 SWIG_init(void) {
12666 PyObject *m, *d, *md;
12667 #if PY_VERSION_HEX >= 0x03000000
12668 static struct PyModuleDef SWIG_module = {
12669 # if PY_VERSION_HEX >= 0x03020000
12670 PyModuleDef_HEAD_INIT,
12671 # else
12672 {
12673 PyObject_HEAD_INIT(NULL)
12674 NULL, /* m_init */
12675 0, /* m_index */
12676 NULL, /* m_copy */
12677 },
12678 # endif
12679 (char *) SWIG_name,
12680 NULL,
12681 -1,
12682 SwigMethods,
12683 NULL,
12684 NULL,
12685 NULL,
12686 NULL
12687 };
12688 #endif
12689
12690 #if defined(SWIGPYTHON_BUILTIN)
12691 static SwigPyClientData SwigPyObject_clientdata = {
12692 0, 0, 0, 0, 0, 0, 0
12693 };
12694 static PyGetSetDef this_getset_def = {
12695 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
12696 };
12697 static SwigPyGetSet thisown_getset_closure = {
12698 (PyCFunction) SwigPyObject_own,
12699 (PyCFunction) SwigPyObject_own
12700 };
12701 static PyGetSetDef thisown_getset_def = {
12702 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
12703 };
12704 PyObject *metatype_args;
12705 PyTypeObject *builtin_pytype;
12706 int builtin_base_count;
12707 swig_type_info *builtin_basetype;
12708 PyObject *tuple;
12709 PyGetSetDescrObject *static_getset;
12710 PyTypeObject *metatype;
12711 SwigPyClientData *cd;
12712 PyObject *public_interface, *public_symbol;
12713 PyObject *this_descr;
12714 PyObject *thisown_descr;
12715 int i;
12716
12717 (void)builtin_pytype;
12718 (void)builtin_base_count;
12719 (void)builtin_basetype;
12720 (void)tuple;
12721 (void)static_getset;
12722
12723 /* metatype is used to implement static member variables. */
12724 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
12725 assert(metatype_args);
12726 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
12727 assert(metatype);
12728 Py_DECREF(metatype_args);
12729 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
12730 assert(PyType_Ready(metatype) >= 0);
12731 #endif
12732
12733 /* Fix SwigMethods to carry the callback ptrs when needed */
12734 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
12735
12736 #if PY_VERSION_HEX >= 0x03000000
12737 m = PyModule_Create(&SWIG_module);
12738 #else
12739 m = Py_InitModule((char *) SWIG_name, SwigMethods);
12740 #endif
12741 md = d = PyModule_GetDict(m);
12742
12743 SWIG_InitializeModule(0);
12744
12745 #ifdef SWIGPYTHON_BUILTIN
12746 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
12747 assert(SwigPyObject_stype);
12748 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
12749 if (!cd) {
12750 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
12751 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
12752 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
12753 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
12754 # if PY_VERSION_HEX >= 0x03000000
12755 return NULL;
12756 # else
12757 return;
12758 # endif
12759 }
12760
12761 /* All objects have a 'this' attribute */
12762 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
12763 (void)this_descr;
12764
12765 /* All objects have a 'thisown' attribute */
12766 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
12767 (void)thisown_descr;
12768
12769 public_interface = PyList_New(0);
12770 public_symbol = 0;
12771 (void)public_symbol;
12772
12773 PyDict_SetItemString(md, "__all__", public_interface);
12774 Py_DECREF(public_interface);
12775 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
12776 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
12777 for (i = 0; swig_const_table[i].name != 0; ++i)
12778 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
12779 #endif
12780
12781 SWIG_InstallConstants(d,swig_const_table);
12782
12783
12784 /* compile-time include (inside a % ... % block) */
12785 #ifdef REDLAND_INIT_I
12786 #include <redland-init.i>
12787 #endif
12788
12789 PyDict_SetItemString(md,(char*)"cvar", SWIG_globals());
12790 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_short_copyright_string",Swig_var_librdf_short_copyright_string_get, Swig_var_librdf_short_copyright_string_set);
12791 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_copyright_string",Swig_var_librdf_copyright_string_get, Swig_var_librdf_copyright_string_set);
12792 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_string",Swig_var_librdf_version_string_get, Swig_var_librdf_version_string_set);
12793 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_major",Swig_var_librdf_version_major_get, Swig_var_librdf_version_major_set);
12794 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_minor",Swig_var_librdf_version_minor_get, Swig_var_librdf_version_minor_set);
12795 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_release",Swig_var_librdf_version_release_get, Swig_var_librdf_version_release_set);
12796 SWIG_addvarlink(SWIG_globals(),(char*)"librdf_version_decimal",Swig_var_librdf_version_decimal_get, Swig_var_librdf_version_decimal_set);
12797 SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_string",Swig_var_raptor_version_string_get, Swig_var_raptor_version_string_set);
12798 SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_major",Swig_var_raptor_version_major_get, Swig_var_raptor_version_major_set);
12799 SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_minor",Swig_var_raptor_version_minor_get, Swig_var_raptor_version_minor_set);
12800 SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_release",Swig_var_raptor_version_release_get, Swig_var_raptor_version_release_set);
12801 SWIG_addvarlink(SWIG_globals(),(char*)"raptor_version_decimal",Swig_var_raptor_version_decimal_get, Swig_var_raptor_version_decimal_set);
12802 SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_string",Swig_var_rasqal_version_string_get, Swig_var_rasqal_version_string_set);
12803 SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_major",Swig_var_rasqal_version_major_get, Swig_var_rasqal_version_major_set);
12804 SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_minor",Swig_var_rasqal_version_minor_get, Swig_var_rasqal_version_minor_set);
12805 SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_release",Swig_var_rasqal_version_release_get, Swig_var_rasqal_version_release_set);
12806 SWIG_addvarlink(SWIG_globals(),(char*)"rasqal_version_decimal",Swig_var_rasqal_version_decimal_get, Swig_var_rasqal_version_decimal_set);
12807 #if PY_VERSION_HEX >= 0x03000000
12808 return m;
12809 #else
12810 return;
12811 #endif
12812 }
12813