Debian Codegraph @

perl/CORE_wrap.c

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
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 SWIGPERL
12 #define SWIG_CASTRANK_MODE
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 * swigrun.swg
125 *
126 * This file contains generic C API SWIG runtime support for pointer
127 * type checking.
128 * ----------------------------------------------------------------------------- */
129
130 /* This should only be incremented when either the layout of swig_type_info changes,
131 or for whatever reason, the runtime changes incompatibly */
132 #define SWIG_RUNTIME_VERSION "4"
133
134 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
135 #ifdef SWIG_TYPE_TABLE
136 # define SWIG_QUOTE_STRING(x) #x
137 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
138 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
139 #else
140 # define SWIG_TYPE_TABLE_NAME
141 #endif
142
143 /*
144 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
145 creating a static or dynamic library from the SWIG runtime code.
146 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
147
148 But only do this if strictly necessary, ie, if you have problems
149 with your compiler or suchlike.
150 */
151
152 #ifndef SWIGRUNTIME
153 # define SWIGRUNTIME SWIGINTERN
154 #endif
155
156 #ifndef SWIGRUNTIMEINLINE
157 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
158 #endif
159
160 /* Generic buffer size */
161 #ifndef SWIG_BUFFER_SIZE
162 # define SWIG_BUFFER_SIZE 1024
163 #endif
164
165 /* Flags for pointer conversions */
166 #define SWIG_POINTER_DISOWN 0x1
167 #define SWIG_CAST_NEW_MEMORY 0x2
168
169 /* Flags for new pointer objects */
170 #define SWIG_POINTER_OWN 0x1
171
172
173 /*
174 Flags/methods for returning states.
175
176 The SWIG conversion methods, as ConvertPtr, return an integer
177 that tells if the conversion was successful or not. And if not,
178 an error code can be returned (see swigerrors.swg for the codes).
179
180 Use the following macros/flags to set or process the returning
181 states.
182
183 In old versions of SWIG, code such as the following was usually written:
184
185 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
186 // success code
187 } else {
188 //fail code
189 }
190
191 Now you can be more explicit:
192
193 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
194 if (SWIG_IsOK(res)) {
195 // success code
196 } else {
197 // fail code
198 }
199
200 which is the same really, but now you can also do
201
202 Type *ptr;
203 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
204 if (SWIG_IsOK(res)) {
205 // success code
206 if (SWIG_IsNewObj(res) {
207 ...
208 delete *ptr;
209 } else {
210 ...
211 }
212 } else {
213 // fail code
214 }
215
216 I.e., now SWIG_ConvertPtr can return new objects and you can
217 identify the case and take care of the deallocation. Of course that
218 also requires SWIG_ConvertPtr to return new result values, such as
219
220 int SWIG_ConvertPtr(obj, ptr,...) {
221 if (<obj is ok>) {
222 if (<need new object>) {
223 *ptr = <ptr to new allocated object>;
224 return SWIG_NEWOBJ;
225 } else {
226 *ptr = <ptr to old object>;
227 return SWIG_OLDOBJ;
228 }
229 } else {
230 return SWIG_BADOBJ;
231 }
232 }
233
234 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
235 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
236 SWIG errors code.
237
238 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
239 allows to return the 'cast rank', for example, if you have this
240
241 int food(double)
242 int fooi(int);
243
244 and you call
245
246 food(1) // cast rank '1' (1 -> 1.0)
247 fooi(1) // cast rank '0'
248
249 just use the SWIG_AddCast()/SWIG_CheckState()
250 */
251
252 #define SWIG_OK (0)
253 #define SWIG_ERROR (-1)
254 #define SWIG_IsOK(r) (r >= 0)
255 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
256
257 /* The CastRankLimit says how many bits are used for the cast rank */
258 #define SWIG_CASTRANKLIMIT (1 << 8)
259 /* The NewMask denotes the object was created (using new/malloc) */
260 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
261 /* The TmpMask is for in/out typemaps that use temporal objects */
262 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
263 /* Simple returning values */
264 #define SWIG_BADOBJ (SWIG_ERROR)
265 #define SWIG_OLDOBJ (SWIG_OK)
266 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
267 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
268 /* Check, add and del mask methods */
269 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
270 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
271 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
272 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
273 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
274 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
275
276 /* Cast-Rank Mode */
277 #if defined(SWIG_CASTRANK_MODE)
278 # ifndef SWIG_TypeRank
279 # define SWIG_TypeRank unsigned long
280 # endif
281 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
282 # define SWIG_MAXCASTRANK (2)
283 # endif
284 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
285 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
286 SWIGINTERNINLINE int SWIG_AddCast(int r) {
287 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
288 }
289 SWIGINTERNINLINE int SWIG_CheckState(int r) {
290 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
291 }
292 #else /* no cast-rank mode */
293 # define SWIG_AddCast
294 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
295 #endif
296
297
298 #include <string.h>
299
300 #ifdef __cplusplus
301 extern "C" {
302 #endif
303
304 typedef void *(*swig_converter_func)(void *, int *);
305 typedef struct swig_type_info *(*swig_dycast_func)(void **);
306
307 /* Structure to store information on one type */
308 typedef struct swig_type_info {
309 const char *name; /* mangled name of this type */
310 const char *str; /* human readable name of this type */
311 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
312 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
313 void *clientdata; /* language specific type data */
314 int owndata; /* flag if the structure owns the clientdata */
315 } swig_type_info;
316
317 /* Structure to store a type and conversion function used for casting */
318 typedef struct swig_cast_info {
319 swig_type_info *type; /* pointer to type that is equivalent to this type */
320 swig_converter_func converter; /* function to cast the void pointers */
321 struct swig_cast_info *next; /* pointer to next cast in linked list */
322 struct swig_cast_info *prev; /* pointer to the previous cast */
323 } swig_cast_info;
324
325 /* Structure used to store module information
326 * Each module generates one structure like this, and the runtime collects
327 * all of these structures and stores them in a circularly linked list.*/
328 typedef struct swig_module_info {
329 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
330 size_t size; /* Number of types in this module */
331 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
332 swig_type_info **type_initial; /* Array of initially generated type structures */
333 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
334 void *clientdata; /* Language specific module data */
335 } swig_module_info;
336
337 /*
338 Compare two type names skipping the space characters, therefore
339 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
340
341 Return 0 when the two name types are equivalent, as in
342 strncmp, but skipping ' '.
343 */
344 SWIGRUNTIME int
345 SWIG_TypeNameComp(const char *f1, const char *l1,
346 const char *f2, const char *l2) {
347 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
348 while ((*f1 == ' ') && (f1 != l1)) ++f1;
349 while ((*f2 == ' ') && (f2 != l2)) ++f2;
350 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
351 }
352 return (int)((l1 - f1) - (l2 - f2));
353 }
354
355 /*
356 Check type equivalence in a name list like <name1>|<name2>|...
357 Return 0 if not equal, 1 if equal
358 */
359 SWIGRUNTIME int
360 SWIG_TypeEquiv(const char *nb, const char *tb) {
361 int equiv = 0;
362 const char* te = tb + strlen(tb);
363 const char* ne = nb;
364 while (!equiv && *ne) {
365 for (nb = ne; *ne; ++ne) {
366 if (*ne == '|') break;
367 }
368 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
369 if (*ne) ++ne;
370 }
371 return equiv;
372 }
373
374 /*
375 Check type equivalence in a name list like <name1>|<name2>|...
376 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
377 */
378 SWIGRUNTIME int
379 SWIG_TypeCompare(const char *nb, const char *tb) {
380 int equiv = 0;
381 const char* te = tb + strlen(tb);
382 const char* ne = nb;
383 while (!equiv && *ne) {
384 for (nb = ne; *ne; ++ne) {
385 if (*ne == '|') break;
386 }
387 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
388 if (*ne) ++ne;
389 }
390 return equiv;
391 }
392
393
394 /*
395 Check the typename
396 */
397 SWIGRUNTIME swig_cast_info *
398 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
399 if (ty) {
400 swig_cast_info *iter = ty->cast;
401 while (iter) {
402 if (strcmp(iter->type->name, c) == 0) {
403 if (iter == ty->cast)
404 return iter;
405 /* Move iter to the top of the linked list */
406 iter->prev->next = iter->next;
407 if (iter->next)
408 iter->next->prev = iter->prev;
409 iter->next = ty->cast;
410 iter->prev = 0;
411 if (ty->cast) ty->cast->prev = iter;
412 ty->cast = iter;
413 return iter;
414 }
415 iter = iter->next;
416 }
417 }
418 return 0;
419 }
420
421 /*
422 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
423 */
424 SWIGRUNTIME swig_cast_info *
425 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
426 if (ty) {
427 swig_cast_info *iter = ty->cast;
428 while (iter) {
429 if (iter->type == from) {
430 if (iter == ty->cast)
431 return iter;
432 /* Move iter to the top of the linked list */
433 iter->prev->next = iter->next;
434 if (iter->next)
435 iter->next->prev = iter->prev;
436 iter->next = ty->cast;
437 iter->prev = 0;
438 if (ty->cast) ty->cast->prev = iter;
439 ty->cast = iter;
440 return iter;
441 }
442 iter = iter->next;
443 }
444 }
445 return 0;
446 }
447
448 /*
449 Cast a pointer up an inheritance hierarchy
450 */
451 SWIGRUNTIMEINLINE void *
452 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
453 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
454 }
455
456 /*
457 Dynamic pointer casting. Down an inheritance hierarchy
458 */
459 SWIGRUNTIME swig_type_info *
460 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
461 swig_type_info *lastty = ty;
462 if (!ty || !ty->dcast) return ty;
463 while (ty && (ty->dcast)) {
464 ty = (*ty->dcast)(ptr);
465 if (ty) lastty = ty;
466 }
467 return lastty;
468 }
469
470 /*
471 Return the name associated with this type
472 */
473 SWIGRUNTIMEINLINE const char *
474 SWIG_TypeName(const swig_type_info *ty) {
475 return ty->name;
476 }
477
478 /*
479 Return the pretty name associated with this type,
480 that is an unmangled type name in a form presentable to the user.
481 */
482 SWIGRUNTIME const char *
483 SWIG_TypePrettyName(const swig_type_info *type) {
484 /* The "str" field contains the equivalent pretty names of the
485 type, separated by vertical-bar characters. We choose
486 to print the last name, as it is often (?) the most
487 specific. */
488 if (!type) return NULL;
489 if (type->str != NULL) {
490 const char *last_name = type->str;
491 const char *s;
492 for (s = type->str; *s; s++)
493 if (*s == '|') last_name = s+1;
494 return last_name;
495 }
496 else
497 return type->name;
498 }
499
500 /*
501 Set the clientdata field for a type
502 */
503 SWIGRUNTIME void
504 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
505 swig_cast_info *cast = ti->cast;
506 /* if (ti->clientdata == clientdata) return; */
507 ti->clientdata = clientdata;
508
509 while (cast) {
510 if (!cast->converter) {
511 swig_type_info *tc = cast->type;
512 if (!tc->clientdata) {
513 SWIG_TypeClientData(tc, clientdata);
514 }
515 }
516 cast = cast->next;
517 }
518 }
519 SWIGRUNTIME void
520 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
521 SWIG_TypeClientData(ti, clientdata);
522 ti->owndata = 1;
523 }
524
525 /*
526 Search for a swig_type_info structure only by mangled name
527 Search is a O(log #types)
528
529 We start searching at module start, and finish searching when start == end.
530 Note: if start == end at the beginning of the function, we go all the way around
531 the circular list.
532 */
533 SWIGRUNTIME swig_type_info *
534 SWIG_MangledTypeQueryModule(swig_module_info *start,
535 swig_module_info *end,
536 const char *name) {
537 swig_module_info *iter = start;
538 do {
539 if (iter->size) {
540 register size_t l = 0;
541 register size_t r = iter->size - 1;
542 do {
543 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
544 register size_t i = (l + r) >> 1;
545 const char *iname = iter->types[i]->name;
546 if (iname) {
547 register int compare = strcmp(name, iname);
548 if (compare == 0) {
549 return iter->types[i];
550 } else if (compare < 0) {
551 if (i) {
552 r = i - 1;
553 } else {
554 break;
555 }
556 } else if (compare > 0) {
557 l = i + 1;
558 }
559 } else {
560 break; /* should never happen */
561 }
562 } while (l <= r);
563 }
564 iter = iter->next;
565 } while (iter != end);
566 return 0;
567 }
568
569 /*
570 Search for a swig_type_info structure for either a mangled name or a human readable name.
571 It first searches the mangled names of the types, which is a O(log #types)
572 If a type is not found it then searches the human readable names, which is O(#types).
573
574 We start searching at module start, and finish searching when start == end.
575 Note: if start == end at the beginning of the function, we go all the way around
576 the circular list.
577 */
578 SWIGRUNTIME swig_type_info *
579 SWIG_TypeQueryModule(swig_module_info *start,
580 swig_module_info *end,
581 const char *name) {
582 /* STEP 1: Search the name field using binary search */
583 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
584 if (ret) {
585 return ret;
586 } else {
587 /* STEP 2: If the type hasn't been found, do a complete search
588 of the str field (the human readable name) */
589 swig_module_info *iter = start;
590 do {
591 register size_t i = 0;
592 for (; i < iter->size; ++i) {
593 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
594 return iter->types[i];
595 }
596 iter = iter->next;
597 } while (iter != end);
598 }
599
600 /* neither found a match */
601 return 0;
602 }
603
604 /*
605 Pack binary data into a string
606 */
607 SWIGRUNTIME char *
608 SWIG_PackData(char *c, void *ptr, size_t sz) {
609 static const char hex[17] = "0123456789abcdef";
610 register const unsigned char *u = (unsigned char *) ptr;
611 register const unsigned char *eu = u + sz;
612 for (; u != eu; ++u) {
613 register unsigned char uu = *u;
614 *(c++) = hex[(uu & 0xf0) >> 4];
615 *(c++) = hex[uu & 0xf];
616 }
617 return c;
618 }
619
620 /*
621 Unpack binary data from a string
622 */
623 SWIGRUNTIME const char *
624 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
625 register unsigned char *u = (unsigned char *) ptr;
626 register const unsigned char *eu = u + sz;
627 for (; u != eu; ++u) {
628 register char d = *(c++);
629 register unsigned char uu;
630 if ((d >= '0') && (d <= '9'))
631 uu = ((d - '0') << 4);
632 else if ((d >= 'a') && (d <= 'f'))
633 uu = ((d - ('a'-10)) << 4);
634 else
635 return (char *) 0;
636 d = *(c++);
637 if ((d >= '0') && (d <= '9'))
638 uu |= (d - '0');
639 else if ((d >= 'a') && (d <= 'f'))
640 uu |= (d - ('a'-10));
641 else
642 return (char *) 0;
643 *u = uu;
644 }
645 return c;
646 }
647
648 /*
649 Pack 'void *' into a string buffer.
650 */
651 SWIGRUNTIME char *
652 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
653 char *r = buff;
654 if ((2*sizeof(void *) + 2) > bsz) return 0;
655 *(r++) = '_';
656 r = SWIG_PackData(r,&ptr,sizeof(void *));
657 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
658 strcpy(r,name);
659 return buff;
660 }
661
662 SWIGRUNTIME const char *
663 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
664 if (*c != '_') {
665 if (strcmp(c,"NULL") == 0) {
666 *ptr = (void *) 0;
667 return name;
668 } else {
669 return 0;
670 }
671 }
672 return SWIG_UnpackData(++c,ptr,sizeof(void *));
673 }
674
675 SWIGRUNTIME char *
676 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
677 char *r = buff;
678 size_t lname = (name ? strlen(name) : 0);
679 if ((2*sz + 2 + lname) > bsz) return 0;
680 *(r++) = '_';
681 r = SWIG_PackData(r,ptr,sz);
682 if (lname) {
683 strncpy(r,name,lname+1);
684 } else {
685 *r = 0;
686 }
687 return buff;
688 }
689
690 SWIGRUNTIME const char *
691 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
692 if (*c != '_') {
693 if (strcmp(c,"NULL") == 0) {
694 memset(ptr,0,sz);
695 return name;
696 } else {
697 return 0;
698 }
699 }
700 return SWIG_UnpackData(++c,ptr,sz);
701 }
702
703 #ifdef __cplusplus
704 }
705 #endif
706
707 /* Errors in SWIG */
708 #define SWIG_UnknownError -1
709 #define SWIG_IOError -2
710 #define SWIG_RuntimeError -3
711 #define SWIG_IndexError -4
712 #define SWIG_TypeError -5
713 #define SWIG_DivisionByZero -6
714 #define SWIG_OverflowError -7
715 #define SWIG_SyntaxError -8
716 #define SWIG_ValueError -9
717 #define SWIG_SystemError -10
718 #define SWIG_AttributeError -11
719 #define SWIG_MemoryError -12
720 #define SWIG_NullReferenceError -13
721
722
723
724 #ifdef __cplusplus
725 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
726 #include <math.h>
727 #include <stdlib.h>
728 extern "C" {
729 #endif
730 #include "EXTERN.h"
731 #include "perl.h"
732 #include "XSUB.h"
733
734 /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
735
736 /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
737 #ifndef PERL_REVISION
738 # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
739 # define PERL_PATCHLEVEL_H_IMPLICIT
740 # include <patchlevel.h>
741 # endif
742 # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
743 # include <could_not_find_Perl_patchlevel.h>
744 # endif
745 # ifndef PERL_REVISION
746 # define PERL_REVISION (5)
747 # define PERL_VERSION PATCHLEVEL
748 # define PERL_SUBVERSION SUBVERSION
749 # endif
750 #endif
751
752 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
753 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
754 #endif
755
756 #ifndef SvIOK_UV
757 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
758 #endif
759
760 #ifndef SvUOK
761 # define SvUOK(sv) SvIOK_UV(sv)
762 #endif
763
764 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
765 # define PL_sv_undef sv_undef
766 # define PL_na na
767 # define PL_errgv errgv
768 # define PL_sv_no sv_no
769 # define PL_sv_yes sv_yes
770 # define PL_markstack_ptr markstack_ptr
771 #endif
772
773 #ifndef IVSIZE
774 # ifdef LONGSIZE
775 # define IVSIZE LONGSIZE
776 # else
777 # define IVSIZE 4 /* A bold guess, but the best we can make. */
778 # endif
779 #endif
780
781 #ifndef INT2PTR
782 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
783 # define PTRV UV
784 # define INT2PTR(any,d) (any)(d)
785 # else
786 # if PTRSIZE == LONGSIZE
787 # define PTRV unsigned long
788 # else
789 # define PTRV unsigned
790 # endif
791 # define INT2PTR(any,d) (any)(PTRV)(d)
792 # endif
793
794 # define NUM2PTR(any,d) (any)(PTRV)(d)
795 # define PTR2IV(p) INT2PTR(IV,p)
796 # define PTR2UV(p) INT2PTR(UV,p)
797 # define PTR2NV(p) NUM2PTR(NV,p)
798
799 # if PTRSIZE == LONGSIZE
800 # define PTR2ul(p) (unsigned long)(p)
801 # else
802 # define PTR2ul(p) INT2PTR(unsigned long,p)
803 # endif
804 #endif /* !INT2PTR */
805
806 #ifndef SvPV_nolen
807 # define SvPV_nolen(x) SvPV(x,PL_na)
808 #endif
809
810 #ifndef get_sv
811 # define get_sv perl_get_sv
812 #endif
813
814 #ifndef ERRSV
815 # define ERRSV get_sv("@",FALSE)
816 #endif
817
818 #ifndef pTHX_
819 #define pTHX_
820 #endif
821
822 #include <string.h>
823 #ifdef __cplusplus
824 }
825 #endif
826
827 /* -----------------------------------------------------------------------------
828 * error manipulation
829 * ----------------------------------------------------------------------------- */
830
831 SWIGINTERN const char*
832 SWIG_Perl_ErrorType(int code) {
833 switch(code) {
834 case SWIG_MemoryError:
835 return "MemoryError";
836 case SWIG_IOError:
837 return "IOError";
838 case SWIG_RuntimeError:
839 return "RuntimeError";
840 case SWIG_IndexError:
841 return "IndexError";
842 case SWIG_TypeError:
843 return "TypeError";
844 case SWIG_DivisionByZero:
845 return "ZeroDivisionError";
846 case SWIG_OverflowError:
847 return "OverflowError";
848 case SWIG_SyntaxError:
849 return "SyntaxError";
850 case SWIG_ValueError:
851 return "ValueError";
852 case SWIG_SystemError:
853 return "SystemError";
854 case SWIG_AttributeError:
855 return "AttributeError";
856 default:
857 return "RuntimeError";
858 }
859 }
860
861
862 /* -----------------------------------------------------------------------------
863 * perlrun.swg
864 *
865 * This file contains the runtime support for Perl modules
866 * and includes code for managing global variables and pointer
867 * type checking.
868 * ----------------------------------------------------------------------------- */
869
870 #ifdef PERL_OBJECT
871 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
872 #define SWIG_PERL_OBJECT_CALL pPerl,
873 #else
874 #define SWIG_PERL_OBJECT_DECL
875 #define SWIG_PERL_OBJECT_CALL
876 #endif
877
878 /* Common SWIG API */
879
880 /* for raw pointers */
881 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
882 #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
883 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
884
885 /* for raw packed data */
886 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
887 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
888
889 /* for class or struct pointers */
890 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
891 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
892
893 /* for C or C++ function pointers */
894 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
895 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
896
897 /* for C++ member pointers, ie, member methods */
898 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
899 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
900
901
902 /* Runtime API */
903
904 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule()
905 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
906
907
908 /* Error manipulation */
909
910 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
911 #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
912 #define SWIG_fail goto fail
913
914 /* Perl-specific SWIG API */
915
916 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
917 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
918 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
919
920
921 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
922 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
923 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
924 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
925
926 /* -----------------------------------------------------------------------------
927 * pointers/data manipulation
928 * ----------------------------------------------------------------------------- */
929
930 /* For backward compatibility only */
931 #define SWIG_POINTER_EXCEPTION 0
932
933 #ifdef __cplusplus
934 extern "C" {
935 #endif
936
937 #define SWIG_OWNER SWIG_POINTER_OWN
938 #define SWIG_SHADOW SWIG_OWNER << 1
939
940 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
941
942 /* SWIG Perl macros */
943
944 /* Macro to declare an XS function */
945 #ifndef XSPROTO
946 # define XSPROTO(name) void name(pTHX_ CV* cv)
947 #endif
948
949 /* Macro to call an XS function */
950 #ifdef PERL_OBJECT
951 # define SWIG_CALLXS(_name) _name(cv,pPerl)
952 #else
953 # ifndef MULTIPLICITY
954 # define SWIG_CALLXS(_name) _name(cv)
955 # else
956 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
957 # endif
958 #endif
959
960 #ifdef PERL_OBJECT
961 #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
962
963 #ifdef __cplusplus
964 extern "C" {
965 #endif
966 typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
967 #ifdef __cplusplus
968 }
969 #endif
970
971 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
972 #define SWIGCLASS_STATIC
973
974 #else /* PERL_OBJECT */
975
976 #define MAGIC_PPERL
977 #define SWIGCLASS_STATIC static SWIGUNUSED
978
979 #ifndef MULTIPLICITY
980 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
981
982 #ifdef __cplusplus
983 extern "C" {
984 #endif
985 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
986 #ifdef __cplusplus
987 }
988 #endif
989
990 #else /* MULTIPLICITY */
991
992 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
993
994 #ifdef __cplusplus
995 extern "C" {
996 #endif
997 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
998 #ifdef __cplusplus
999 }
1000 #endif
1001
1002 #endif /* MULTIPLICITY */
1003 #endif /* PERL_OBJECT */
1004
1005 # ifdef PERL_OBJECT
1006 # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
1007 static void SWIG_Perl_croak_null(CPerlObj *pPerl)
1008 # else
1009 static void SWIG_croak_null()
1010 # endif
1011 {
1012 SV *err = get_sv("@", GV_ADD);
1013 # if (PERL_VERSION < 6)
1014 croak("%_", err);
1015 # else
1016 if (sv_isobject(err))
1017 croak(0);
1018 else
1019 croak("%s", SvPV_nolen(err));
1020 # endif
1021 }
1022
1023
1024 /*
1025 Define how strict is the cast between strings and integers/doubles
1026 when overloading between these types occurs.
1027
1028 The default is making it as strict as possible by using SWIG_AddCast
1029 when needed.
1030
1031 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1032 disable the SWIG_AddCast, making the casting between string and
1033 numbers less strict.
1034
1035 In the end, we try to solve the overloading between strings and
1036 numerical types in the more natural way, but if you can avoid it,
1037 well, avoid it using %rename, for example.
1038 */
1039 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1040 # ifndef SWIG_PERL_STRICT_STR2NUM
1041 # define SWIG_PERL_STRICT_STR2NUM
1042 # endif
1043 #endif
1044 #ifdef SWIG_PERL_STRICT_STR2NUM
1045 /* string takes precedence */
1046 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
1047 #else
1048 /* number takes precedence */
1049 #define SWIG_Str2NumCast(x) x
1050 #endif
1051
1052
1053
1054 #include <stdlib.h>
1055
1056 SWIGRUNTIME const char *
1057 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
1058 if (!type) return NULL;
1059 if (type->clientdata != NULL) {
1060 return (const char*) type->clientdata;
1061 }
1062 else {
1063 return type->name;
1064 }
1065 }
1066
1067 /* Identical to SWIG_TypeCheck, except for strcmp comparison */
1068 SWIGRUNTIME swig_cast_info *
1069 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1070 if (ty) {
1071 swig_cast_info *iter = ty->cast;
1072 while (iter) {
1073 if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
1074 if (iter == ty->cast)
1075 return iter;
1076 /* Move iter to the top of the linked list */
1077 iter->prev->next = iter->next;
1078 if (iter->next)
1079 iter->next->prev = iter->prev;
1080 iter->next = ty->cast;
1081 iter->prev = 0;
1082 if (ty->cast) ty->cast->prev = iter;
1083 ty->cast = iter;
1084 return iter;
1085 }
1086 iter = iter->next;
1087 }
1088 }
1089 return 0;
1090 }
1091
1092 /* Function for getting a pointer value */
1093
1094 SWIGRUNTIME int
1095 SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
1096 swig_cast_info *tc;
1097 void *voidptr = (void *)0;
1098 SV *tsv = 0;
1099
1100 if (own)
1101 *own = 0;
1102
1103 /* If magical, apply more magic */
1104 if (SvGMAGICAL(sv))
1105 mg_get(sv);
1106
1107 /* Check to see if this is an object */
1108 if (sv_isobject(sv)) {
1109 IV tmp = 0;
1110 tsv = (SV*) SvRV(sv);
1111 if ((SvTYPE(tsv) == SVt_PVHV)) {
1112 MAGIC *mg;
1113 if (SvMAGICAL(tsv)) {
1114 mg = mg_find(tsv,'P');
1115 if (mg) {
1116 sv = mg->mg_obj;
1117 if (sv_isobject(sv)) {
1118 tsv = (SV*)SvRV(sv);
1119 tmp = SvIV(tsv);
1120 }
1121 }
1122 } else {
1123 return SWIG_ERROR;
1124 }
1125 } else {
1126 tmp = SvIV(tsv);
1127 }
1128 voidptr = INT2PTR(void *,tmp);
1129 } else if (! SvOK(sv)) { /* Check for undef */
1130 *(ptr) = (void *) 0;
1131 return SWIG_OK;
1132 } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
1133 if (!SvROK(sv)) {
1134 /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */
1135 if (SvIOK(sv)) {
1136 return SWIG_ERROR;
1137 } else {
1138 /* NULL pointer (reference to undef). */
1139 *(ptr) = (void *) 0;
1140 return SWIG_OK;
1141 }
1142 } else {
1143 return SWIG_ERROR;
1144 }
1145 } else { /* Don't know what it is */
1146 return SWIG_ERROR;
1147 }
1148 if (_t) {
1149 /* Now see if the types match */
1150 char *_c = HvNAME(SvSTASH(SvRV(sv)));
1151 tc = SWIG_TypeProxyCheck(_c,_t);
1152 if (!tc) {
1153 return SWIG_ERROR;
1154 }
1155 {
1156 int newmemory = 0;
1157 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
1158 if (newmemory == SWIG_CAST_NEW_MEMORY) {
1159 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
1160 if (own)
1161 *own = *own | SWIG_CAST_NEW_MEMORY;
1162 }
1163 }
1164 } else {
1165 *ptr = voidptr;
1166 }
1167
1168 /*
1169 * DISOWN implementation: we need a perl guru to check this one.
1170 */
1171 if (tsv && (flags & SWIG_POINTER_DISOWN)) {
1172 /*
1173 * almost copy paste code from below SWIG_POINTER_OWN setting
1174 */
1175 SV *obj = sv;
1176 HV *stash = SvSTASH(SvRV(obj));
1177 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1178 if (isGV(gv)) {
1179 HV *hv = GvHVn(gv);
1180 /*
1181 * To set ownership (see below), a newSViv(1) entry is added.
1182 * Hence, to remove ownership, we delete the entry.
1183 */
1184 if (hv_exists_ent(hv, obj, 0)) {
1185 hv_delete_ent(hv, obj, 0, 0);
1186 }
1187 }
1188 }
1189 return SWIG_OK;
1190 }
1191
1192 SWIGRUNTIME int
1193 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
1194 return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
1195 }
1196
1197 SWIGRUNTIME void
1198 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
1199 if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
1200 SV *self;
1201 SV *obj=newSV(0);
1202 HV *hash=newHV();
1203 HV *stash;
1204 sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
1205 stash=SvSTASH(SvRV(obj));
1206 if (flags & SWIG_POINTER_OWN) {
1207 HV *hv;
1208 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1209 if (!isGV(gv))
1210 gv_init(gv, stash, "OWNER", 5, FALSE);
1211 hv=GvHVn(gv);
1212 hv_store_ent(hv, obj, newSViv(1), 0);
1213 }
1214 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
1215 SvREFCNT_dec(obj);
1216 self=newRV_noinc((SV *)hash);
1217 sv_setsv(sv, self);
1218 SvREFCNT_dec((SV *)self);
1219 sv_bless(sv, stash);
1220 }
1221 else {
1222 sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
1223 }
1224 }
1225
1226 SWIGRUNTIMEINLINE SV *
1227 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
1228 SV *result = sv_newmortal();
1229 SWIG_MakePtr(result, ptr, t, flags);
1230 return result;
1231 }
1232
1233 SWIGRUNTIME void
1234 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
1235 char result[1024];
1236 char *r = result;
1237 if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
1238 *(r++) = '_';
1239 r = SWIG_PackData(r,ptr,sz);
1240 strcpy(r,SWIG_Perl_TypeProxyName(type));
1241 sv_setpv(sv, result);
1242 }
1243
1244 SWIGRUNTIME SV *
1245 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
1246 SV *result = sv_newmortal();
1247 SWIG_Perl_MakePackedObj(result, ptr, sz, type);
1248 return result;
1249 }
1250
1251 /* Convert a packed value value */
1252 SWIGRUNTIME int
1253 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
1254 swig_cast_info *tc;
1255 const char *c = 0;
1256
1257 if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
1258 c = SvPV_nolen(obj);
1259 /* Pointer values must start with leading underscore */
1260 if (*c != '_') return SWIG_ERROR;
1261 c++;
1262 c = SWIG_UnpackData(c,ptr,sz);
1263 if (ty) {
1264 tc = SWIG_TypeCheck(c,ty);
1265 if (!tc) return SWIG_ERROR;
1266 }
1267 return SWIG_OK;
1268 }
1269
1270
1271 /* Macros for low-level exception handling */
1272 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1273
1274
1275 typedef XSPROTO(SwigPerlWrapper);
1276 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
1277
1278 /* Structure for command table */
1279 typedef struct {
1280 const char *name;
1281 SwigPerlWrapperPtr wrapper;
1282 } swig_command_info;
1283
1284 /* Information for constant table */
1285
1286 #define SWIG_INT 1
1287 #define SWIG_FLOAT 2
1288 #define SWIG_STRING 3
1289 #define SWIG_POINTER 4
1290 #define SWIG_BINARY 5
1291
1292 /* Constant information structure */
1293 typedef struct swig_constant_info {
1294 int type;
1295 const char *name;
1296 long lvalue;
1297 double dvalue;
1298 void *pvalue;
1299 swig_type_info **ptype;
1300 } swig_constant_info;
1301
1302
1303 /* Structure for variable table */
1304 typedef struct {
1305 const char *name;
1306 SwigMagicFunc set;
1307 SwigMagicFunc get;
1308 swig_type_info **type;
1309 } swig_variable_info;
1310
1311 /* Magic variable code */
1312 #ifndef PERL_OBJECT
1313 # ifdef __cplusplus
1314 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
1315 # else
1316 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
1317 # endif
1318 # ifndef MULTIPLICITY
1319 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
1320 # else
1321 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
1322 # endif
1323 #else
1324 # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
1325 SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *))
1326 #endif
1327 {
1328 MAGIC *mg;
1329 sv_magic(sv,sv,'U',name,strlen(name));
1330 mg = mg_find(sv,'U');
1331 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
1332 mg->mg_virtual->svt_get = (SwigMagicFunc) get;
1333 mg->mg_virtual->svt_set = (SwigMagicFunc) set;
1334 mg->mg_virtual->svt_len = 0;
1335 mg->mg_virtual->svt_clear = 0;
1336 mg->mg_virtual->svt_free = 0;
1337 }
1338
1339
1340 SWIGRUNTIME swig_module_info *
1341 SWIG_Perl_GetModule(void) {
1342 static void *type_pointer = (void *)0;
1343 SV *pointer;
1344
1345 /* first check if pointer already created */
1346 if (!type_pointer) {
1347 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
1348 if (pointer && SvOK(pointer)) {
1349 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
1350 }
1351 }
1352
1353 return (swig_module_info *) type_pointer;
1354 }
1355
1356 SWIGRUNTIME void
1357 SWIG_Perl_SetModule(swig_module_info *module) {
1358 SV *pointer;
1359
1360 /* create a new pointer */
1361 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
1362 sv_setiv(pointer, PTR2IV(module));
1363 }
1364
1365 #ifdef __cplusplus
1366 }
1367 #endif
1368
1369 /* Workaround perl5 global namespace pollution. Note that undefining library
1370 * functions like fopen will not solve the problem on all platforms as fopen
1371 * might be a macro on Windows but not necessarily on other operating systems. */
1372 #ifdef do_open
1373 #undef do_open
1374 #endif
1375 #ifdef do_close
1376 #undef do_close
1377 #endif
1378 #ifdef do_exec
1379 #undef do_exec
1380 #endif
1381 #ifdef scalar
1382 #undef scalar
1383 #endif
1384 #ifdef list
1385 #undef list
1386 #endif
1387 #ifdef apply
1388 #undef apply
1389 #endif
1390 #ifdef convert
1391 #undef convert
1392 #endif
1393 #ifdef Error
1394 #undef Error
1395 #endif
1396 #ifdef form
1397 #undef form
1398 #endif
1399 #ifdef vform
1400 #undef vform
1401 #endif
1402 #ifdef LABEL
1403 #undef LABEL
1404 #endif
1405 #ifdef METHOD
1406 #undef METHOD
1407 #endif
1408 #ifdef Move
1409 #undef Move
1410 #endif
1411 #ifdef yylex
1412 #undef yylex
1413 #endif
1414 #ifdef yyparse
1415 #undef yyparse
1416 #endif
1417 #ifdef yyerror
1418 #undef yyerror
1419 #endif
1420 #ifdef invert
1421 #undef invert
1422 #endif
1423 #ifdef ref
1424 #undef ref
1425 #endif
1426 #ifdef read
1427 #undef read
1428 #endif
1429 #ifdef write
1430 #undef write
1431 #endif
1432 #ifdef eof
1433 #undef eof
1434 #endif
1435 #ifdef close
1436 #undef close
1437 #endif
1438 #ifdef rewind
1439 #undef rewind
1440 #endif
1441 #ifdef free
1442 #undef free
1443 #endif
1444 #ifdef malloc
1445 #undef malloc
1446 #endif
1447 #ifdef calloc
1448 #undef calloc
1449 #endif
1450 #ifdef Stat
1451 #undef Stat
1452 #endif
1453 #ifdef check
1454 #undef check
1455 #endif
1456 #ifdef seekdir
1457 #undef seekdir
1458 #endif
1459 #ifdef open
1460 #undef open
1461 #endif
1462 #ifdef readdir
1463 #undef readdir
1464 #endif
1465 #ifdef bind
1466 #undef bind
1467 #endif
1468 #ifdef access
1469 #undef access
1470 #endif
1471 #ifdef stat
1472 #undef stat
1473 #endif
1474
1475
1476
1477 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1478
1479 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1480
1481
1482
1483 /* -------- TYPES TABLE (BEGIN) -------- */
1484
1485 #define SWIGTYPE_p_char swig_types[0]
1486 #define SWIGTYPE_p_librdf_digest_s swig_types[1]
1487 #define SWIGTYPE_p_librdf_hash_s swig_types[2]
1488 #define SWIGTYPE_p_librdf_iterator_s swig_types[3]
1489 #define SWIGTYPE_p_librdf_log_func swig_types[4]
1490 #define SWIGTYPE_p_librdf_log_message swig_types[5]
1491 #define SWIGTYPE_p_librdf_model_s swig_types[6]
1492 #define SWIGTYPE_p_librdf_node_s swig_types[7]
1493 #define SWIGTYPE_p_librdf_parser_s swig_types[8]
1494 #define SWIGTYPE_p_librdf_query swig_types[9]
1495 #define SWIGTYPE_p_librdf_query_results swig_types[10]
1496 #define SWIGTYPE_p_librdf_serializer_s swig_types[11]
1497 #define SWIGTYPE_p_librdf_statement_s swig_types[12]
1498 #define SWIGTYPE_p_librdf_storage_s swig_types[13]
1499 #define SWIGTYPE_p_librdf_stream_s swig_types[14]
1500 #define SWIGTYPE_p_librdf_uri_s swig_types[15]
1501 #define SWIGTYPE_p_librdf_world_s swig_types[16]
1502 #define SWIGTYPE_p_p_char swig_types[17]
1503 #define SWIGTYPE_p_raptor_locator swig_types[18]
1504 static swig_type_info *swig_types[20];
1505 static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
1506 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1507 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1508
1509 /* -------- TYPES TABLE (END) -------- */
1510
1511 #define SWIG_init boot_RDF__Redland__CORE
1512
1513 #define SWIG_name "RDF::Redland::COREc::boot_RDF__Redland__CORE"
1514 #define SWIG_prefix "RDF::Redland::COREc::"
1515
1516 #define SWIGVERSION 0x020007
1517 #define SWIG_VERSION SWIGVERSION
1518
1519
1520 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1521 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1522
1523
1524 #ifdef __cplusplus
1525 extern "C"
1526 #endif
1527 #ifndef PERL_OBJECT
1528 #ifndef MULTIPLICITY
1529 SWIGEXPORT void SWIG_init (CV* cv);
1530 #else
1531 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1532 #endif
1533 #else
1534 SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
1535 #endif
1536
1537
1538
1539 /* compile-time include (inside a % ... % block) */
1540 #ifdef REDLAND_PRE_I
1541 #include <redland-pre.i>
1542 #endif
1543
1544 #include <redland.h>
1545
1546 /*
1547 * Thanks to the patch in this Debian bug for the solution
1548 * to the crash inside vsnprintf on some architectures.
1549 *
1550 * "reuse of args inside the while(1) loop is in violation of the
1551 * specs and only happens to work by accident on other systems."
1552 *
1553 * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104325
1554 */
1555
1556 #ifndef va_copy
1557 #ifdef __va_copy
1558 #define va_copy(dest,src) __va_copy(dest,src)
1559 #else
1560 #define va_copy(dest,src) (dest) = (src)
1561 #endif
1562 #endif
1563
1564 /* compile-time include (inside a % ... % block) */
1565 #ifdef REDLAND_POST_I
1566 #include <redland-post.i>
1567 #endif
1568
1569 /* Internal prototypes */
1570 /* FOR TESTING ERRORS ONLY - NOT PART OF API */
1571 void librdf_internal_test_error(librdf_world *world);
1572 void librdf_internal_test_warning(librdf_world *world);
1573
1574
1575 /* prototypes for internal routines called below - NOT PART OF API */
1576 void librdf_test_error(librdf_world* world, const char* message);
1577 void librdf_test_warning(librdf_world* world, const char* message);
1578
1579 /* FOR TESTING ERRORS ONLY - NOT PART OF API */
1580 void
1581 librdf_internal_test_error(librdf_world *world)
1582 {
1583 librdf_test_error(world, "test error message number 1.");
1584 }
1585
1586 void
1587 librdf_internal_test_warning(librdf_world *world)
1588 {
1589 librdf_test_warning(world, "test warning message number 2.");
1590 }
1591
1592
1593
1594 SWIGINTERN swig_type_info*
1595 SWIG_pchar_descriptor(void)
1596 {
1597 static int init = 0;
1598 static swig_type_info* info = 0;
1599 if (!init) {
1600 info = SWIG_TypeQuery("_p_char");
1601 init = 1;
1602 }
1603 return info;
1604 }
1605
1606
1607 SWIGINTERN int
1608 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1609 {
1610 if (SvMAGICAL(obj)) {
1611 SV *tmp = sv_newmortal();
1612 SvSetSV(tmp, obj);
1613 obj = tmp;
1614 }
1615 if (SvPOK(obj)) {
1616 STRLEN len = 0;
1617 char *cstr = SvPV(obj, len);
1618 size_t size = len + 1;
1619 if (cptr) {
1620 if (alloc) {
1621 if (*alloc == SWIG_NEWOBJ) {
1622 *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1623 } else {
1624 *cptr = cstr;
1625 *alloc = SWIG_OLDOBJ;
1626 }
1627 }
1628 }
1629 if (psize) *psize = size;
1630 return SWIG_OK;
1631 } else {
1632 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1633 if (pchar_descriptor) {
1634 char* vptr = 0;
1635 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
1636 if (cptr) *cptr = vptr;
1637 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1638 if (alloc) *alloc = SWIG_OLDOBJ;
1639 return SWIG_OK;
1640 }
1641 }
1642 }
1643 return SWIG_TypeError;
1644 }
1645
1646
1647
1648
1649
1650 SWIGINTERN int
1651 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1652 {
1653 if (SvNIOK(obj)) {
1654 if (val) *val = SvNV(obj);
1655 return SWIG_OK;
1656 } else if (SvIOK(obj)) {
1657 if (val) *val = (double) SvIV(obj);
1658 return SWIG_AddCast(SWIG_OK);
1659 } else {
1660 const char *nptr = SvPV_nolen(obj);
1661 if (nptr) {
1662 char *endptr;
1663 double v;
1664 errno = 0;
1665 v = strtod(nptr, &endptr);
1666 if (errno == ERANGE) {
1667 errno = 0;
1668 return SWIG_OverflowError;
1669 } else {
1670 if (*endptr == '\0') {
1671 if (val) *val = v;
1672 return SWIG_Str2NumCast(SWIG_OK);
1673 }
1674 }
1675 }
1676 }
1677 return SWIG_TypeError;
1678 }
1679
1680
1681 #include <float.h>
1682
1683
1684 #include <math.h>
1685
1686
1687 SWIGINTERNINLINE int
1688 SWIG_CanCastAsInteger(double *d, double min, double max) {
1689 double x = *d;
1690 if ((min <= x && x <= max)) {
1691 double fx = floor(x);
1692 double cx = ceil(x);
1693 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
1694 if ((errno == EDOM) || (errno == ERANGE)) {
1695 errno = 0;
1696 } else {
1697 double summ, reps, diff;
1698 if (rd < x) {
1699 diff = x - rd;
1700 } else if (rd > x) {
1701 diff = rd - x;
1702 } else {
1703 return 1;
1704 }
1705 summ = rd + x;
1706 reps = diff/summ;
1707 if (reps < 8*DBL_EPSILON) {
1708 *d = rd;
1709 return 1;
1710 }
1711 }
1712 }
1713 return 0;
1714 }
1715
1716
1717 SWIGINTERN int
1718 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
1719 {
1720 if (SvUOK(obj)) {
1721 UV v = SvUV(obj);
1722 if (v <= ULONG_MAX) {
1723 if (val) *val = v;
1724 return SWIG_OK;
1725 }
1726 return SWIG_OverflowError;
1727 } else if (SvIOK(obj)) {
1728 IV v = SvIV(obj);
1729 if (v >= 0 && v <= ULONG_MAX) {
1730 if (val) *val = v;
1731 return SWIG_OK;
1732 }
1733 return SWIG_OverflowError;
1734 } else {
1735 int dispatch = 0;
1736 const char *nptr = SvPV_nolen(obj);
1737 if (nptr) {
1738 char *endptr;
1739 unsigned long v;
1740 errno = 0;
1741 v = strtoul(nptr, &endptr,0);
1742 if (errno == ERANGE) {
1743 errno = 0;
1744 return SWIG_OverflowError;
1745 } else {
1746 if (*endptr == '\0') {
1747 if (val) *val = v;
1748 return SWIG_Str2NumCast(SWIG_OK);
1749 }
1750 }
1751 }
1752 if (!dispatch) {
1753 double d;
1754 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1755 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
1756 if (val) *val = (unsigned long)(d);
1757 return res;
1758 }
1759 }
1760 }
1761 return SWIG_TypeError;
1762 }
1763
1764
1765 SWIGINTERNINLINE int
1766 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
1767 {
1768 unsigned long v;
1769 int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
1770 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
1771 return res;
1772 }
1773
1774
1775 SWIGINTERNINLINE SV *
1776 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1777 {
1778 SV *obj = sv_newmortal();
1779 if (carray) {
1780 sv_setpvn(obj, carray, size);
1781 } else {
1782 sv_setsv(obj, &PL_sv_undef);
1783 }
1784 return obj;
1785 }
1786
1787
1788 SWIGINTERNINLINE SV *
1789 SWIG_FromCharPtr(const char *cptr)
1790 {
1791 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
1792 }
1793
1794
1795 SWIGINTERNINLINE SV *
1796 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1797 {
1798 SV *sv;
1799 if (value >= IV_MIN && value <= IV_MAX)
1800 sv = newSViv(value);
1801 else
1802 sv = newSVpvf("%ld", value);
1803 return sv_2mortal(sv);
1804 }
1805
1806
1807 SWIGINTERNINLINE SV *
1808 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1809 {
1810 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1811 }
1812
1813
1814 #include <limits.h>
1815 #if !defined(SWIG_NO_LLONG_MAX)
1816 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1817 # define LLONG_MAX __LONG_LONG_MAX__
1818 # define LLONG_MIN (-LLONG_MAX - 1LL)
1819 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1820 # endif
1821 #endif
1822
1823
1824 SWIGINTERN int
1825 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1826 {
1827 if (SvUOK(obj)) {
1828 UV v = SvUV(obj);
1829 if (v <= LONG_MAX) {
1830 if (val) *val = v;
1831 return SWIG_OK;
1832 }
1833 return SWIG_OverflowError;
1834 } else if (SvIOK(obj)) {
1835 IV v = SvIV(obj);
1836 if (v >= LONG_MIN && v <= LONG_MAX) {
1837 if(val) *val = v;
1838 return SWIG_OK;
1839 }
1840 return SWIG_OverflowError;
1841 } else {
1842 int dispatch = 0;
1843 const char *nptr = SvPV_nolen(obj);
1844 if (nptr) {
1845 char *endptr;
1846 long v;
1847 errno = 0;
1848 v = strtol(nptr, &endptr,0);
1849 if (errno == ERANGE) {
1850 errno = 0;
1851 return SWIG_OverflowError;
1852 } else {
1853 if (*endptr == '\0') {
1854 if (val) *val = v;
1855 return SWIG_Str2NumCast(SWIG_OK);
1856 }
1857 }
1858 }
1859 if (!dispatch) {
1860 double d;
1861 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1862 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
1863 if (val) *val = (long)(d);
1864 return res;
1865 }
1866 }
1867 }
1868 return SWIG_TypeError;
1869 }
1870
1871
1872 SWIGINTERN int
1873 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1874 {
1875 long v;
1876 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1877 if (SWIG_IsOK(res)) {
1878 if ((v < INT_MIN || v > INT_MAX)) {
1879 return SWIG_OverflowError;
1880 } else {
1881 if (val) *val = (int)(v);
1882 }
1883 }
1884 return res;
1885 }
1886
1887
1888 SWIGINTERNINLINE SV *
1889 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
1890 {
1891 SV *sv;
1892 if (value <= UV_MAX)
1893 sv = newSVuv(value);
1894 else
1895 sv = newSVpvf("%lu", value);
1896 return sv_2mortal(sv);
1897 }
1898
1899
1900 SWIGINTERNINLINE SV *
1901 SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value)
1902 {
1903 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value);
1904 }
1905
1906 #ifdef __cplusplus
1907 extern "C" {
1908 #endif
1909
1910 #ifdef PERL_OBJECT
1911 #define MAGIC_CLASS _wrap_RDF__Redland__CORE_var::
1912 class _wrap_RDF__Redland__CORE_var : public CPerlObj {
1913 public:
1914 #else
1915 #define MAGIC_CLASS
1916 #endif
1917 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
1918 MAGIC_PPERL
1919 croak("Value is read-only.");
1920 return 0;
1921 }
1922 SWIGCLASS_STATIC int _wrap_librdf_short_copyright_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1923 MAGIC_PPERL
1924 sv_setsv(sv,SWIG_FromCharPtr(librdf_short_copyright_string)) ;
1925 return 1;
1926 }
1927
1928
1929 SWIGCLASS_STATIC int _wrap_librdf_copyright_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1930 MAGIC_PPERL
1931 sv_setsv(sv,SWIG_FromCharPtr(librdf_copyright_string)) ;
1932 return 1;
1933 }
1934
1935
1936 SWIGCLASS_STATIC int _wrap_librdf_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1937 MAGIC_PPERL
1938 sv_setsv(sv,SWIG_FromCharPtr(librdf_version_string)) ;
1939 return 1;
1940 }
1941
1942
1943 SWIGCLASS_STATIC int _wrap_librdf_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1944 MAGIC_PPERL
1945 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_major))) ;
1946 return 1;
1947 }
1948
1949
1950 SWIGCLASS_STATIC int _wrap_librdf_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1951 MAGIC_PPERL
1952 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_minor))) ;
1953 return 1;
1954 }
1955
1956
1957 SWIGCLASS_STATIC int _wrap_librdf_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1958 MAGIC_PPERL
1959 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_release))) ;
1960 return 1;
1961 }
1962
1963
1964 SWIGCLASS_STATIC int _wrap_librdf_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1965 MAGIC_PPERL
1966 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(librdf_version_decimal))) ;
1967 return 1;
1968 }
1969
1970
1971 SWIGCLASS_STATIC int _wrap_raptor_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1972 MAGIC_PPERL
1973 sv_setsv(sv,SWIG_FromCharPtr(raptor_version_string)) ;
1974 return 1;
1975 }
1976
1977
1978 SWIGCLASS_STATIC int _wrap_raptor_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1979 MAGIC_PPERL
1980 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_major))) ;
1981 return 1;
1982 }
1983
1984
1985 SWIGCLASS_STATIC int _wrap_raptor_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1986 MAGIC_PPERL
1987 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_minor))) ;
1988 return 1;
1989 }
1990
1991
1992 SWIGCLASS_STATIC int _wrap_raptor_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
1993 MAGIC_PPERL
1994 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_release))) ;
1995 return 1;
1996 }
1997
1998
1999 SWIGCLASS_STATIC int _wrap_raptor_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2000 MAGIC_PPERL
2001 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(raptor_version_decimal))) ;
2002 return 1;
2003 }
2004
2005
2006 SWIGCLASS_STATIC int _wrap_rasqal_version_string_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2007 MAGIC_PPERL
2008 sv_setsv(sv,SWIG_FromCharPtr(rasqal_version_string)) ;
2009 return 1;
2010 }
2011
2012
2013 SWIGCLASS_STATIC int _wrap_rasqal_version_major_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2014 MAGIC_PPERL
2015 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_major))) ;
2016 return 1;
2017 }
2018
2019
2020 SWIGCLASS_STATIC int _wrap_rasqal_version_minor_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2021 MAGIC_PPERL
2022 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_minor))) ;
2023 return 1;
2024 }
2025
2026
2027 SWIGCLASS_STATIC int _wrap_rasqal_version_release_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2028 MAGIC_PPERL
2029 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_release))) ;
2030 return 1;
2031 }
2032
2033
2034 SWIGCLASS_STATIC int _wrap_rasqal_version_decimal_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2035 MAGIC_PPERL
2036 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(rasqal_version_decimal))) ;
2037 return 1;
2038 }
2039
2040
2041
2042
2043 #ifdef PERL_OBJECT
2044 };
2045 #endif
2046
2047 #ifdef __cplusplus
2048 }
2049 #endif
2050
2051 #ifdef __cplusplus
2052 extern "C" {
2053 #endif
2054 XS(_wrap_librdf_new_digest) {
2055 {
2056 librdf_world *arg1 = (librdf_world *) 0 ;
2057 char *arg2 = (char *) 0 ;
2058 void *argp1 = 0 ;
2059 int res1 = 0 ;
2060 int res2 ;
2061 char *buf2 = 0 ;
2062 int alloc2 = 0 ;
2063 int argvi = 0;
2064 librdf_digest *result = 0 ;
2065 dXSARGS;
2066
2067 if ((items < 2) || (items > 2)) {
2068 SWIG_croak("Usage: librdf_new_digest(world,name);");
2069 }
2070 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2071 if (!SWIG_IsOK(res1)) {
2072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_digest" "', argument " "1"" of type '" "librdf_world *""'");
2073 }
2074 arg1 = (librdf_world *)(argp1);
2075 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2076 if (!SWIG_IsOK(res2)) {
2077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_digest" "', argument " "2"" of type '" "char *""'");
2078 }
2079 arg2 = (char *)(buf2);
2080 result = (librdf_digest *)librdf_new_digest(arg1,arg2);
2081 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_digest_s, SWIG_OWNER | 0); argvi++ ;
2082
2083 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2084 XSRETURN(argvi);
2085 fail:
2086
2087 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2088 SWIG_croak_null();
2089 }
2090 }
2091
2092
2093 XS(_wrap_librdf_free_digest) {
2094 {
2095 librdf_digest *arg1 = (librdf_digest *) 0 ;
2096 void *argp1 = 0 ;
2097 int res1 = 0 ;
2098 int argvi = 0;
2099 dXSARGS;
2100
2101 if ((items < 1) || (items > 1)) {
2102 SWIG_croak("Usage: librdf_free_digest(digest);");
2103 }
2104 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2105 if (!SWIG_IsOK(res1)) {
2106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_digest" "', argument " "1"" of type '" "librdf_digest *""'");
2107 }
2108 arg1 = (librdf_digest *)(argp1);
2109 librdf_free_digest(arg1);
2110 ST(argvi) = sv_newmortal();
2111
2112 XSRETURN(argvi);
2113 fail:
2114
2115 SWIG_croak_null();
2116 }
2117 }
2118
2119
2120 XS(_wrap_librdf_digest_init) {
2121 {
2122 librdf_digest *arg1 = (librdf_digest *) 0 ;
2123 void *argp1 = 0 ;
2124 int res1 = 0 ;
2125 int argvi = 0;
2126 dXSARGS;
2127
2128 if ((items < 1) || (items > 1)) {
2129 SWIG_croak("Usage: librdf_digest_init(digest);");
2130 }
2131 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2132 if (!SWIG_IsOK(res1)) {
2133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_init" "', argument " "1"" of type '" "librdf_digest *""'");
2134 }
2135 arg1 = (librdf_digest *)(argp1);
2136 librdf_digest_init(arg1);
2137 ST(argvi) = sv_newmortal();
2138
2139 XSRETURN(argvi);
2140 fail:
2141
2142 SWIG_croak_null();
2143 }
2144 }
2145
2146
2147 XS(_wrap_librdf_digest_update) {
2148 {
2149 librdf_digest *arg1 = (librdf_digest *) 0 ;
2150 char *arg2 = (char *) 0 ;
2151 size_t arg3 ;
2152 void *argp1 = 0 ;
2153 int res1 = 0 ;
2154 int res2 ;
2155 char *buf2 = 0 ;
2156 int alloc2 = 0 ;
2157 size_t val3 ;
2158 int ecode3 = 0 ;
2159 int argvi = 0;
2160 dXSARGS;
2161
2162 if ((items < 3) || (items > 3)) {
2163 SWIG_croak("Usage: librdf_digest_update(digest,buf,length);");
2164 }
2165 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2166 if (!SWIG_IsOK(res1)) {
2167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update" "', argument " "1"" of type '" "librdf_digest *""'");
2168 }
2169 arg1 = (librdf_digest *)(argp1);
2170 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2171 if (!SWIG_IsOK(res2)) {
2172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update" "', argument " "2"" of type '" "char const *""'");
2173 }
2174 arg2 = (char *)(buf2);
2175 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2176 if (!SWIG_IsOK(ecode3)) {
2177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_digest_update" "', argument " "3"" of type '" "size_t""'");
2178 }
2179 arg3 = (size_t)(val3);
2180 librdf_digest_update(arg1,(char const *)arg2,arg3);
2181 ST(argvi) = sv_newmortal();
2182
2183 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2184
2185 XSRETURN(argvi);
2186 fail:
2187
2188 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2189
2190 SWIG_croak_null();
2191 }
2192 }
2193
2194
2195 XS(_wrap_librdf_digest_update_string) {
2196 {
2197 librdf_digest *arg1 = (librdf_digest *) 0 ;
2198 char *arg2 = (char *) 0 ;
2199 void *argp1 = 0 ;
2200 int res1 = 0 ;
2201 int res2 ;
2202 char *buf2 = 0 ;
2203 int alloc2 = 0 ;
2204 int argvi = 0;
2205 dXSARGS;
2206
2207 if ((items < 2) || (items > 2)) {
2208 SWIG_croak("Usage: librdf_digest_update_string(digest,string);");
2209 }
2210 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2211 if (!SWIG_IsOK(res1)) {
2212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_update_string" "', argument " "1"" of type '" "librdf_digest *""'");
2213 }
2214 arg1 = (librdf_digest *)(argp1);
2215 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2216 if (!SWIG_IsOK(res2)) {
2217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_digest_update_string" "', argument " "2"" of type '" "char const *""'");
2218 }
2219 arg2 = (char *)(buf2);
2220 librdf_digest_update_string(arg1,(char const *)arg2);
2221 ST(argvi) = sv_newmortal();
2222
2223 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2224 XSRETURN(argvi);
2225 fail:
2226
2227 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2228 SWIG_croak_null();
2229 }
2230 }
2231
2232
2233 XS(_wrap_librdf_digest_final) {
2234 {
2235 librdf_digest *arg1 = (librdf_digest *) 0 ;
2236 void *argp1 = 0 ;
2237 int res1 = 0 ;
2238 int argvi = 0;
2239 dXSARGS;
2240
2241 if ((items < 1) || (items > 1)) {
2242 SWIG_croak("Usage: librdf_digest_final(digest);");
2243 }
2244 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2245 if (!SWIG_IsOK(res1)) {
2246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_final" "', argument " "1"" of type '" "librdf_digest *""'");
2247 }
2248 arg1 = (librdf_digest *)(argp1);
2249 librdf_digest_final(arg1);
2250 ST(argvi) = sv_newmortal();
2251
2252 XSRETURN(argvi);
2253 fail:
2254
2255 SWIG_croak_null();
2256 }
2257 }
2258
2259
2260 XS(_wrap_librdf_digest_to_string) {
2261 {
2262 librdf_digest *arg1 = (librdf_digest *) 0 ;
2263 void *argp1 = 0 ;
2264 int res1 = 0 ;
2265 int argvi = 0;
2266 char *result = 0 ;
2267 dXSARGS;
2268
2269 if ((items < 1) || (items > 1)) {
2270 SWIG_croak("Usage: librdf_digest_to_string(digest);");
2271 }
2272 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_digest_s, 0 | 0 );
2273 if (!SWIG_IsOK(res1)) {
2274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_digest_to_string" "', argument " "1"" of type '" "librdf_digest *""'");
2275 }
2276 arg1 = (librdf_digest *)(argp1);
2277 result = (char *)librdf_digest_to_string(arg1);
2278 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2279
2280 free((char*)result);
2281 XSRETURN(argvi);
2282 fail:
2283
2284 SWIG_croak_null();
2285 }
2286 }
2287
2288
2289 XS(_wrap_librdf_new_hash) {
2290 {
2291 librdf_world *arg1 = (librdf_world *) 0 ;
2292 char *arg2 = (char *) 0 ;
2293 void *argp1 = 0 ;
2294 int res1 = 0 ;
2295 int res2 ;
2296 char *buf2 = 0 ;
2297 int alloc2 = 0 ;
2298 int argvi = 0;
2299 librdf_hash *result = 0 ;
2300 dXSARGS;
2301
2302 if ((items < 2) || (items > 2)) {
2303 SWIG_croak("Usage: librdf_new_hash(world,name);");
2304 }
2305 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2306 if (!SWIG_IsOK(res1)) {
2307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash" "', argument " "1"" of type '" "librdf_world *""'");
2308 }
2309 arg1 = (librdf_world *)(argp1);
2310 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2311 if (!SWIG_IsOK(res2)) {
2312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash" "', argument " "2"" of type '" "char const *""'");
2313 }
2314 arg2 = (char *)(buf2);
2315 result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2);
2316 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ;
2317
2318 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2319 XSRETURN(argvi);
2320 fail:
2321
2322 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2323 SWIG_croak_null();
2324 }
2325 }
2326
2327
2328 XS(_wrap_librdf_new_hash_from_string) {
2329 {
2330 librdf_world *arg1 = (librdf_world *) 0 ;
2331 char *arg2 = (char *) 0 ;
2332 char *arg3 = (char *) 0 ;
2333 void *argp1 = 0 ;
2334 int res1 = 0 ;
2335 int res2 ;
2336 char *buf2 = 0 ;
2337 int alloc2 = 0 ;
2338 int res3 ;
2339 char *buf3 = 0 ;
2340 int alloc3 = 0 ;
2341 int argvi = 0;
2342 librdf_hash *result = 0 ;
2343 dXSARGS;
2344
2345 if ((items < 3) || (items > 3)) {
2346 SWIG_croak("Usage: librdf_new_hash_from_string(world,name,string);");
2347 }
2348 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2349 if (!SWIG_IsOK(res1)) {
2350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_string" "', argument " "1"" of type '" "librdf_world *""'");
2351 }
2352 arg1 = (librdf_world *)(argp1);
2353 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2354 if (!SWIG_IsOK(res2)) {
2355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_string" "', argument " "2"" of type '" "char const *""'");
2356 }
2357 arg2 = (char *)(buf2);
2358 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
2359 if (!SWIG_IsOK(res3)) {
2360 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_string" "', argument " "3"" of type '" "char const *""'");
2361 }
2362 arg3 = (char *)(buf3);
2363 result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3);
2364 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ;
2365
2366 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2367 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
2368 XSRETURN(argvi);
2369 fail:
2370
2371 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2372 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
2373 SWIG_croak_null();
2374 }
2375 }
2376
2377
2378 XS(_wrap_librdf_new_hash_from_array_of_strings) {
2379 {
2380 librdf_world *arg1 = (librdf_world *) 0 ;
2381 char *arg2 = (char *) 0 ;
2382 char **arg3 = (char **) 0 ;
2383 void *argp1 = 0 ;
2384 int res1 = 0 ;
2385 int res2 ;
2386 char *buf2 = 0 ;
2387 int alloc2 = 0 ;
2388 void *argp3 = 0 ;
2389 int res3 = 0 ;
2390 int argvi = 0;
2391 librdf_hash *result = 0 ;
2392 dXSARGS;
2393
2394 if ((items < 3) || (items > 3)) {
2395 SWIG_croak("Usage: librdf_new_hash_from_array_of_strings(world,name,string);");
2396 }
2397 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2398 if (!SWIG_IsOK(res1)) {
2399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "1"" of type '" "librdf_world *""'");
2400 }
2401 arg1 = (librdf_world *)(argp1);
2402 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2403 if (!SWIG_IsOK(res2)) {
2404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "2"" of type '" "char const *""'");
2405 }
2406 arg2 = (char *)(buf2);
2407 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_p_char, 0 | 0 );
2408 if (!SWIG_IsOK(res3)) {
2409 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_hash_from_array_of_strings" "', argument " "3"" of type '" "char const **""'");
2410 }
2411 arg3 = (char **)(argp3);
2412 result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3);
2413 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_hash_s, SWIG_OWNER | 0); argvi++ ;
2414
2415 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2416
2417 XSRETURN(argvi);
2418 fail:
2419
2420 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2421
2422 SWIG_croak_null();
2423 }
2424 }
2425
2426
2427 XS(_wrap_librdf_hash_to_string) {
2428 {
2429 librdf_hash *arg1 = (librdf_hash *) 0 ;
2430 char **arg2 ;
2431 void *argp1 = 0 ;
2432 int res1 = 0 ;
2433 void *argp2 = 0 ;
2434 int res2 = 0 ;
2435 int argvi = 0;
2436 char *result = 0 ;
2437 dXSARGS;
2438
2439 if ((items < 2) || (items > 2)) {
2440 SWIG_croak("Usage: librdf_hash_to_string(hash,filter);");
2441 }
2442 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
2443 if (!SWIG_IsOK(res1)) {
2444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_hash_to_string" "', argument " "1"" of type '" "librdf_hash *""'");
2445 }
2446 arg1 = (librdf_hash *)(argp1);
2447 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 | 0 );
2448 if (!SWIG_IsOK(res2)) {
2449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_hash_to_string" "', argument " "2"" of type '" "char const *[]""'");
2450 }
2451 arg2 = (char **)(argp2);
2452 result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2);
2453 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2454
2455
2456 free((char*)result);
2457 XSRETURN(argvi);
2458 fail:
2459
2460
2461 SWIG_croak_null();
2462 }
2463 }
2464
2465
2466 XS(_wrap_librdf_free_hash) {
2467 {
2468 librdf_hash *arg1 = (librdf_hash *) 0 ;
2469 void *argp1 = 0 ;
2470 int res1 = 0 ;
2471 int argvi = 0;
2472 dXSARGS;
2473
2474 if ((items < 1) || (items > 1)) {
2475 SWIG_croak("Usage: librdf_free_hash(hash);");
2476 }
2477 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
2478 if (!SWIG_IsOK(res1)) {
2479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_hash" "', argument " "1"" of type '" "librdf_hash *""'");
2480 }
2481 arg1 = (librdf_hash *)(argp1);
2482 librdf_free_hash(arg1);
2483 ST(argvi) = sv_newmortal();
2484
2485 XSRETURN(argvi);
2486 fail:
2487
2488 SWIG_croak_null();
2489 }
2490 }
2491
2492
2493 XS(_wrap_librdf_new_world) {
2494 {
2495 int argvi = 0;
2496 librdf_world *result = 0 ;
2497 dXSARGS;
2498
2499 if ((items < 0) || (items > 0)) {
2500 SWIG_croak("Usage: librdf_new_world();");
2501 }
2502 result = (librdf_world *)librdf_new_world();
2503 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_world_s, SWIG_OWNER | 0); argvi++ ;
2504 XSRETURN(argvi);
2505 fail:
2506 SWIG_croak_null();
2507 }
2508 }
2509
2510
2511 XS(_wrap_librdf_free_world) {
2512 {
2513 librdf_world *arg1 = (librdf_world *) 0 ;
2514 void *argp1 = 0 ;
2515 int res1 = 0 ;
2516 int argvi = 0;
2517 dXSARGS;
2518
2519 if ((items < 1) || (items > 1)) {
2520 SWIG_croak("Usage: librdf_free_world(world);");
2521 }
2522 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2523 if (!SWIG_IsOK(res1)) {
2524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_world" "', argument " "1"" of type '" "librdf_world *""'");
2525 }
2526 arg1 = (librdf_world *)(argp1);
2527 librdf_free_world(arg1);
2528 ST(argvi) = sv_newmortal();
2529
2530 XSRETURN(argvi);
2531 fail:
2532
2533 SWIG_croak_null();
2534 }
2535 }
2536
2537
2538 XS(_wrap_librdf_world_open) {
2539 {
2540 librdf_world *arg1 = (librdf_world *) 0 ;
2541 void *argp1 = 0 ;
2542 int res1 = 0 ;
2543 int argvi = 0;
2544 dXSARGS;
2545
2546 if ((items < 1) || (items > 1)) {
2547 SWIG_croak("Usage: librdf_world_open(world);");
2548 }
2549 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2550 if (!SWIG_IsOK(res1)) {
2551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_open" "', argument " "1"" of type '" "librdf_world *""'");
2552 }
2553 arg1 = (librdf_world *)(argp1);
2554 librdf_world_open(arg1);
2555 ST(argvi) = sv_newmortal();
2556
2557 XSRETURN(argvi);
2558 fail:
2559
2560 SWIG_croak_null();
2561 }
2562 }
2563
2564
2565 XS(_wrap_librdf_world_get_feature) {
2566 {
2567 librdf_world *arg1 = (librdf_world *) 0 ;
2568 librdf_uri *arg2 = (librdf_uri *) 0 ;
2569 void *argp1 = 0 ;
2570 int res1 = 0 ;
2571 void *argp2 = 0 ;
2572 int res2 = 0 ;
2573 int argvi = 0;
2574 librdf_node *result = 0 ;
2575 dXSARGS;
2576
2577 if ((items < 2) || (items > 2)) {
2578 SWIG_croak("Usage: librdf_world_get_feature(world,feature);");
2579 }
2580 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2581 if (!SWIG_IsOK(res1)) {
2582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_get_feature" "', argument " "1"" of type '" "librdf_world *""'");
2583 }
2584 arg1 = (librdf_world *)(argp1);
2585 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
2586 if (!SWIG_IsOK(res2)) {
2587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
2588 }
2589 arg2 = (librdf_uri *)(argp2);
2590 result = (librdf_node *)librdf_world_get_feature(arg1,arg2);
2591 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
2592
2593
2594 XSRETURN(argvi);
2595 fail:
2596
2597
2598 SWIG_croak_null();
2599 }
2600 }
2601
2602
2603 XS(_wrap_librdf_world_set_feature) {
2604 {
2605 librdf_world *arg1 = (librdf_world *) 0 ;
2606 librdf_uri *arg2 = (librdf_uri *) 0 ;
2607 librdf_node *arg3 = (librdf_node *) 0 ;
2608 void *argp1 = 0 ;
2609 int res1 = 0 ;
2610 void *argp2 = 0 ;
2611 int res2 = 0 ;
2612 void *argp3 = 0 ;
2613 int res3 = 0 ;
2614 int argvi = 0;
2615 int result;
2616 dXSARGS;
2617
2618 if ((items < 3) || (items > 3)) {
2619 SWIG_croak("Usage: librdf_world_set_feature(world,feature,value);");
2620 }
2621 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2622 if (!SWIG_IsOK(res1)) {
2623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_feature" "', argument " "1"" of type '" "librdf_world *""'");
2624 }
2625 arg1 = (librdf_world *)(argp1);
2626 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
2627 if (!SWIG_IsOK(res2)) {
2628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
2629 }
2630 arg2 = (librdf_uri *)(argp2);
2631 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
2632 if (!SWIG_IsOK(res3)) {
2633 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
2634 }
2635 arg3 = (librdf_node *)(argp3);
2636 result = (int)librdf_world_set_feature(arg1,arg2,arg3);
2637 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2638
2639
2640
2641 XSRETURN(argvi);
2642 fail:
2643
2644
2645
2646 SWIG_croak_null();
2647 }
2648 }
2649
2650
2651 XS(_wrap_librdf_parser_get_accept_header) {
2652 {
2653 librdf_parser *arg1 = (librdf_parser *) 0 ;
2654 void *argp1 = 0 ;
2655 int res1 = 0 ;
2656 int argvi = 0;
2657 char *result = 0 ;
2658 dXSARGS;
2659
2660 if ((items < 1) || (items > 1)) {
2661 SWIG_croak("Usage: librdf_parser_get_accept_header(parser);");
2662 }
2663 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
2664 if (!SWIG_IsOK(res1)) {
2665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_accept_header" "', argument " "1"" of type '" "librdf_parser *""'");
2666 }
2667 arg1 = (librdf_parser *)(argp1);
2668 result = (char *)librdf_parser_get_accept_header(arg1);
2669 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2670
2671 free((char*)result);
2672 XSRETURN(argvi);
2673 fail:
2674
2675 SWIG_croak_null();
2676 }
2677 }
2678
2679
2680 XS(_wrap_librdf_world_set_logger) {
2681 {
2682 librdf_world *arg1 = (librdf_world *) 0 ;
2683 void *arg2 = (void *) 0 ;
2684 librdf_log_func arg3 ;
2685 void *argp1 = 0 ;
2686 int res1 = 0 ;
2687 int res2 ;
2688 void *argp3 ;
2689 int res3 = 0 ;
2690 int argvi = 0;
2691 dXSARGS;
2692
2693 if ((items < 3) || (items > 3)) {
2694 SWIG_croak("Usage: librdf_world_set_logger(world,user_data,log_handler);");
2695 }
2696 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2697 if (!SWIG_IsOK(res1)) {
2698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_world_set_logger" "', argument " "1"" of type '" "librdf_world *""'");
2699 }
2700 arg1 = (librdf_world *)(argp1);
2701 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0);
2702 if (!SWIG_IsOK(res2)) {
2703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_world_set_logger" "', argument " "2"" of type '" "void *""'");
2704 }
2705 {
2706 res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_librdf_log_func, 0 );
2707 if (!SWIG_IsOK(res3)) {
2708 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'");
2709 }
2710 if (!argp3) {
2711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "librdf_world_set_logger" "', argument " "3"" of type '" "librdf_log_func""'");
2712 } else {
2713 arg3 = *((librdf_log_func *)(argp3));
2714 }
2715 }
2716 librdf_world_set_logger(arg1,arg2,arg3);
2717 ST(argvi) = sv_newmortal();
2718
2719
2720 XSRETURN(argvi);
2721 fail:
2722
2723
2724 SWIG_croak_null();
2725 }
2726 }
2727
2728
2729 XS(_wrap_librdf_free_iterator) {
2730 {
2731 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
2732 void *argp1 = 0 ;
2733 int res1 = 0 ;
2734 int argvi = 0;
2735 dXSARGS;
2736
2737 if ((items < 1) || (items > 1)) {
2738 SWIG_croak("Usage: librdf_free_iterator(librdf_iterator *);");
2739 }
2740 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
2741 if (!SWIG_IsOK(res1)) {
2742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_iterator" "', argument " "1"" of type '" "librdf_iterator *""'");
2743 }
2744 arg1 = (librdf_iterator *)(argp1);
2745 librdf_free_iterator(arg1);
2746 ST(argvi) = sv_newmortal();
2747
2748 XSRETURN(argvi);
2749 fail:
2750
2751 SWIG_croak_null();
2752 }
2753 }
2754
2755
2756 XS(_wrap_librdf_iterator_end) {
2757 {
2758 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
2759 void *argp1 = 0 ;
2760 int res1 = 0 ;
2761 int argvi = 0;
2762 int result;
2763 dXSARGS;
2764
2765 if ((items < 1) || (items > 1)) {
2766 SWIG_croak("Usage: librdf_iterator_end(iterator);");
2767 }
2768 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
2769 if (!SWIG_IsOK(res1)) {
2770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_end" "', argument " "1"" of type '" "librdf_iterator *""'");
2771 }
2772 arg1 = (librdf_iterator *)(argp1);
2773 result = (int)librdf_iterator_end(arg1);
2774 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2775
2776 XSRETURN(argvi);
2777 fail:
2778
2779 SWIG_croak_null();
2780 }
2781 }
2782
2783
2784 XS(_wrap_librdf_iterator_get_object) {
2785 {
2786 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
2787 void *argp1 = 0 ;
2788 int res1 = 0 ;
2789 int argvi = 0;
2790 librdf_node *result = 0 ;
2791 dXSARGS;
2792
2793 if ((items < 1) || (items > 1)) {
2794 SWIG_croak("Usage: librdf_iterator_get_object(iterator);");
2795 }
2796 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
2797 if (!SWIG_IsOK(res1)) {
2798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_object" "', argument " "1"" of type '" "librdf_iterator *""'");
2799 }
2800 arg1 = (librdf_iterator *)(argp1);
2801 result = (librdf_node *)librdf_iterator_get_object(arg1);
2802 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
2803
2804 XSRETURN(argvi);
2805 fail:
2806
2807 SWIG_croak_null();
2808 }
2809 }
2810
2811
2812 XS(_wrap_librdf_iterator_get_context) {
2813 {
2814 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
2815 void *argp1 = 0 ;
2816 int res1 = 0 ;
2817 int argvi = 0;
2818 librdf_node *result = 0 ;
2819 dXSARGS;
2820
2821 if ((items < 1) || (items > 1)) {
2822 SWIG_croak("Usage: librdf_iterator_get_context(iterator);");
2823 }
2824 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
2825 if (!SWIG_IsOK(res1)) {
2826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_get_context" "', argument " "1"" of type '" "librdf_iterator *""'");
2827 }
2828 arg1 = (librdf_iterator *)(argp1);
2829 result = (librdf_node *)librdf_iterator_get_context(arg1);
2830 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
2831
2832 XSRETURN(argvi);
2833 fail:
2834
2835 SWIG_croak_null();
2836 }
2837 }
2838
2839
2840 XS(_wrap_librdf_iterator_next) {
2841 {
2842 librdf_iterator *arg1 = (librdf_iterator *) 0 ;
2843 void *argp1 = 0 ;
2844 int res1 = 0 ;
2845 int argvi = 0;
2846 int result;
2847 dXSARGS;
2848
2849 if ((items < 1) || (items > 1)) {
2850 SWIG_croak("Usage: librdf_iterator_next(iterator);");
2851 }
2852 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_iterator_s, 0 | 0 );
2853 if (!SWIG_IsOK(res1)) {
2854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_iterator_next" "', argument " "1"" of type '" "librdf_iterator *""'");
2855 }
2856 arg1 = (librdf_iterator *)(argp1);
2857 result = (int)librdf_iterator_next(arg1);
2858 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2859
2860 XSRETURN(argvi);
2861 fail:
2862
2863 SWIG_croak_null();
2864 }
2865 }
2866
2867
2868 XS(_wrap_librdf_new_uri) {
2869 {
2870 librdf_world *arg1 = (librdf_world *) 0 ;
2871 char *arg2 = (char *) 0 ;
2872 void *argp1 = 0 ;
2873 int res1 = 0 ;
2874 int res2 ;
2875 char *buf2 = 0 ;
2876 int alloc2 = 0 ;
2877 int argvi = 0;
2878 librdf_uri *result = 0 ;
2879 dXSARGS;
2880
2881 if ((items < 2) || (items > 2)) {
2882 SWIG_croak("Usage: librdf_new_uri(world,string);");
2883 }
2884 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2885 if (!SWIG_IsOK(res1)) {
2886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri" "', argument " "1"" of type '" "librdf_world *""'");
2887 }
2888 arg1 = (librdf_world *)(argp1);
2889 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2890 if (!SWIG_IsOK(res2)) {
2891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri" "', argument " "2"" of type '" "char *""'");
2892 }
2893 arg2 = (char *)(buf2);
2894 result = (librdf_uri *)librdf_new_uri(arg1,arg2);
2895 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_OWNER | 0); argvi++ ;
2896
2897 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2898 XSRETURN(argvi);
2899 fail:
2900
2901 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2902 SWIG_croak_null();
2903 }
2904 }
2905
2906
2907 XS(_wrap_librdf_new_uri_from_uri) {
2908 {
2909 librdf_uri *arg1 = (librdf_uri *) 0 ;
2910 void *argp1 = 0 ;
2911 int res1 = 0 ;
2912 int argvi = 0;
2913 librdf_uri *result = 0 ;
2914 dXSARGS;
2915
2916 if ((items < 1) || (items > 1)) {
2917 SWIG_croak("Usage: librdf_new_uri_from_uri(uri);");
2918 }
2919 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
2920 if (!SWIG_IsOK(res1)) {
2921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_uri" "', argument " "1"" of type '" "librdf_uri *""'");
2922 }
2923 arg1 = (librdf_uri *)(argp1);
2924 result = (librdf_uri *)librdf_new_uri_from_uri(arg1);
2925 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, SWIG_OWNER | 0); argvi++ ;
2926
2927 XSRETURN(argvi);
2928 fail:
2929
2930 SWIG_croak_null();
2931 }
2932 }
2933
2934
2935 XS(_wrap_librdf_new_uri_from_filename) {
2936 {
2937 librdf_world *arg1 = (librdf_world *) 0 ;
2938 char *arg2 = (char *) 0 ;
2939 void *argp1 = 0 ;
2940 int res1 = 0 ;
2941 int res2 ;
2942 char *buf2 = 0 ;
2943 int alloc2 = 0 ;
2944 int argvi = 0;
2945 librdf_uri *result = 0 ;
2946 dXSARGS;
2947
2948 if ((items < 2) || (items > 2)) {
2949 SWIG_croak("Usage: librdf_new_uri_from_filename(world,filename);");
2950 }
2951 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
2952 if (!SWIG_IsOK(res1)) {
2953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_uri_from_filename" "', argument " "1"" of type '" "librdf_world *""'");
2954 }
2955 arg1 = (librdf_world *)(argp1);
2956 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2957 if (!SWIG_IsOK(res2)) {
2958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_uri_from_filename" "', argument " "2"" of type '" "char const *""'");
2959 }
2960 arg2 = (char *)(buf2);
2961 result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2);
2962 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ;
2963
2964 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2965 XSRETURN(argvi);
2966 fail:
2967
2968 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2969 SWIG_croak_null();
2970 }
2971 }
2972
2973
2974 XS(_wrap_librdf_free_uri) {
2975 {
2976 librdf_uri *arg1 = (librdf_uri *) 0 ;
2977 void *argp1 = 0 ;
2978 int res1 = 0 ;
2979 int argvi = 0;
2980 dXSARGS;
2981
2982 if ((items < 1) || (items > 1)) {
2983 SWIG_croak("Usage: librdf_free_uri(uri);");
2984 }
2985 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
2986 if (!SWIG_IsOK(res1)) {
2987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_uri" "', argument " "1"" of type '" "librdf_uri *""'");
2988 }
2989 arg1 = (librdf_uri *)(argp1);
2990 librdf_free_uri(arg1);
2991 ST(argvi) = sv_newmortal();
2992
2993 XSRETURN(argvi);
2994 fail:
2995
2996 SWIG_croak_null();
2997 }
2998 }
2999
3000
3001 XS(_wrap_librdf_uri_to_string) {
3002 {
3003 librdf_uri *arg1 = (librdf_uri *) 0 ;
3004 void *argp1 = 0 ;
3005 int res1 = 0 ;
3006 int argvi = 0;
3007 char *result = 0 ;
3008 dXSARGS;
3009
3010 if ((items < 1) || (items > 1)) {
3011 SWIG_croak("Usage: librdf_uri_to_string(uri);");
3012 }
3013 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3014 if (!SWIG_IsOK(res1)) {
3015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_to_string" "', argument " "1"" of type '" "librdf_uri *""'");
3016 }
3017 arg1 = (librdf_uri *)(argp1);
3018 result = (char *)librdf_uri_to_string(arg1);
3019 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3020
3021 free((char*)result);
3022 XSRETURN(argvi);
3023 fail:
3024
3025 SWIG_croak_null();
3026 }
3027 }
3028
3029
3030 XS(_wrap_librdf_uri_equals) {
3031 {
3032 librdf_uri *arg1 = (librdf_uri *) 0 ;
3033 librdf_uri *arg2 = (librdf_uri *) 0 ;
3034 void *argp1 = 0 ;
3035 int res1 = 0 ;
3036 void *argp2 = 0 ;
3037 int res2 = 0 ;
3038 int argvi = 0;
3039 int result;
3040 dXSARGS;
3041
3042 if ((items < 2) || (items > 2)) {
3043 SWIG_croak("Usage: librdf_uri_equals(first_uri,second_uri);");
3044 }
3045 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3046 if (!SWIG_IsOK(res1)) {
3047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_equals" "', argument " "1"" of type '" "librdf_uri *""'");
3048 }
3049 arg1 = (librdf_uri *)(argp1);
3050 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3051 if (!SWIG_IsOK(res2)) {
3052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_equals" "', argument " "2"" of type '" "librdf_uri *""'");
3053 }
3054 arg2 = (librdf_uri *)(argp2);
3055 result = (int)librdf_uri_equals(arg1,arg2);
3056 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3057
3058
3059 XSRETURN(argvi);
3060 fail:
3061
3062
3063 SWIG_croak_null();
3064 }
3065 }
3066
3067
3068 XS(_wrap_librdf_uri_compare) {
3069 {
3070 librdf_uri *arg1 = (librdf_uri *) 0 ;
3071 librdf_uri *arg2 = (librdf_uri *) 0 ;
3072 void *argp1 = 0 ;
3073 int res1 = 0 ;
3074 void *argp2 = 0 ;
3075 int res2 = 0 ;
3076 int argvi = 0;
3077 int result;
3078 dXSARGS;
3079
3080 if ((items < 2) || (items > 2)) {
3081 SWIG_croak("Usage: librdf_uri_compare(first_uri,second_uri);");
3082 }
3083 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3084 if (!SWIG_IsOK(res1)) {
3085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_uri_compare" "', argument " "1"" of type '" "librdf_uri *""'");
3086 }
3087 arg1 = (librdf_uri *)(argp1);
3088 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3089 if (!SWIG_IsOK(res2)) {
3090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_uri_compare" "', argument " "2"" of type '" "librdf_uri *""'");
3091 }
3092 arg2 = (librdf_uri *)(argp2);
3093 result = (int)librdf_uri_compare(arg1,arg2);
3094 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3095
3096
3097 XSRETURN(argvi);
3098 fail:
3099
3100
3101 SWIG_croak_null();
3102 }
3103 }
3104
3105
3106 XS(_wrap_librdf_new_node) {
3107 {
3108 librdf_world *arg1 = (librdf_world *) 0 ;
3109 void *argp1 = 0 ;
3110 int res1 = 0 ;
3111 int argvi = 0;
3112 librdf_node *result = 0 ;
3113 dXSARGS;
3114
3115 if ((items < 1) || (items > 1)) {
3116 SWIG_croak("Usage: librdf_new_node(world);");
3117 }
3118 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3119 if (!SWIG_IsOK(res1)) {
3120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node" "', argument " "1"" of type '" "librdf_world *""'");
3121 }
3122 arg1 = (librdf_world *)(argp1);
3123 result = (librdf_node *)librdf_new_node(arg1);
3124 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3125
3126 XSRETURN(argvi);
3127 fail:
3128
3129 SWIG_croak_null();
3130 }
3131 }
3132
3133
3134 XS(_wrap_librdf_new_node_from_uri_string) {
3135 {
3136 librdf_world *arg1 = (librdf_world *) 0 ;
3137 char *arg2 = (char *) 0 ;
3138 void *argp1 = 0 ;
3139 int res1 = 0 ;
3140 int res2 ;
3141 char *buf2 = 0 ;
3142 int alloc2 = 0 ;
3143 int argvi = 0;
3144 librdf_node *result = 0 ;
3145 dXSARGS;
3146
3147 if ((items < 2) || (items > 2)) {
3148 SWIG_croak("Usage: librdf_new_node_from_uri_string(world,string);");
3149 }
3150 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3151 if (!SWIG_IsOK(res1)) {
3152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_string" "', argument " "1"" of type '" "librdf_world *""'");
3153 }
3154 arg1 = (librdf_world *)(argp1);
3155 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3156 if (!SWIG_IsOK(res2)) {
3157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_string" "', argument " "2"" of type '" "char const *""'");
3158 }
3159 arg2 = (char *)(buf2);
3160 result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2);
3161 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3162
3163 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3164 XSRETURN(argvi);
3165 fail:
3166
3167 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3168 SWIG_croak_null();
3169 }
3170 }
3171
3172
3173 XS(_wrap_librdf_new_node_from_uri) {
3174 {
3175 librdf_world *arg1 = (librdf_world *) 0 ;
3176 librdf_uri *arg2 = (librdf_uri *) 0 ;
3177 void *argp1 = 0 ;
3178 int res1 = 0 ;
3179 void *argp2 = 0 ;
3180 int res2 = 0 ;
3181 int argvi = 0;
3182 librdf_node *result = 0 ;
3183 dXSARGS;
3184
3185 if ((items < 2) || (items > 2)) {
3186 SWIG_croak("Usage: librdf_new_node_from_uri(world,uri);");
3187 }
3188 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3189 if (!SWIG_IsOK(res1)) {
3190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri" "', argument " "1"" of type '" "librdf_world *""'");
3191 }
3192 arg1 = (librdf_world *)(argp1);
3193 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3194 if (!SWIG_IsOK(res2)) {
3195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri" "', argument " "2"" of type '" "librdf_uri *""'");
3196 }
3197 arg2 = (librdf_uri *)(argp2);
3198 result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2);
3199 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3200
3201
3202 XSRETURN(argvi);
3203 fail:
3204
3205
3206 SWIG_croak_null();
3207 }
3208 }
3209
3210
3211 XS(_wrap_librdf_new_node_from_uri_local_name) {
3212 {
3213 librdf_world *arg1 = (librdf_world *) 0 ;
3214 librdf_uri *arg2 = (librdf_uri *) 0 ;
3215 char *arg3 = (char *) 0 ;
3216 void *argp1 = 0 ;
3217 int res1 = 0 ;
3218 void *argp2 = 0 ;
3219 int res2 = 0 ;
3220 int res3 ;
3221 char *buf3 = 0 ;
3222 int alloc3 = 0 ;
3223 int argvi = 0;
3224 librdf_node *result = 0 ;
3225 dXSARGS;
3226
3227 if ((items < 3) || (items > 3)) {
3228 SWIG_croak("Usage: librdf_new_node_from_uri_local_name(world,uri,local_name);");
3229 }
3230 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3231 if (!SWIG_IsOK(res1)) {
3232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "1"" of type '" "librdf_world *""'");
3233 }
3234 arg1 = (librdf_world *)(argp1);
3235 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3236 if (!SWIG_IsOK(res2)) {
3237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "2"" of type '" "librdf_uri *""'");
3238 }
3239 arg2 = (librdf_uri *)(argp2);
3240 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
3241 if (!SWIG_IsOK(res3)) {
3242 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_uri_local_name" "', argument " "3"" of type '" "char const *""'");
3243 }
3244 arg3 = (char *)(buf3);
3245 result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3);
3246 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3247
3248
3249 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3250 XSRETURN(argvi);
3251 fail:
3252
3253
3254 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3255 SWIG_croak_null();
3256 }
3257 }
3258
3259
3260 XS(_wrap_librdf_new_node_from_normalised_uri_string) {
3261 {
3262 librdf_world *arg1 = (librdf_world *) 0 ;
3263 char *arg2 = (char *) 0 ;
3264 librdf_uri *arg3 = (librdf_uri *) 0 ;
3265 librdf_uri *arg4 = (librdf_uri *) 0 ;
3266 void *argp1 = 0 ;
3267 int res1 = 0 ;
3268 int res2 ;
3269 char *buf2 = 0 ;
3270 int alloc2 = 0 ;
3271 void *argp3 = 0 ;
3272 int res3 = 0 ;
3273 void *argp4 = 0 ;
3274 int res4 = 0 ;
3275 int argvi = 0;
3276 librdf_node *result = 0 ;
3277 dXSARGS;
3278
3279 if ((items < 4) || (items > 4)) {
3280 SWIG_croak("Usage: librdf_new_node_from_normalised_uri_string(world,uri_string,source_uri,base_uri);");
3281 }
3282 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3283 if (!SWIG_IsOK(res1)) {
3284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "1"" of type '" "librdf_world *""'");
3285 }
3286 arg1 = (librdf_world *)(argp1);
3287 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3288 if (!SWIG_IsOK(res2)) {
3289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "2"" of type '" "char const *""'");
3290 }
3291 arg2 = (char *)(buf2);
3292 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3293 if (!SWIG_IsOK(res3)) {
3294 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "3"" of type '" "librdf_uri *""'");
3295 }
3296 arg3 = (librdf_uri *)(argp3);
3297 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3298 if (!SWIG_IsOK(res4)) {
3299 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_normalised_uri_string" "', argument " "4"" of type '" "librdf_uri *""'");
3300 }
3301 arg4 = (librdf_uri *)(argp4);
3302 result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4);
3303 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3304
3305 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3306
3307
3308 XSRETURN(argvi);
3309 fail:
3310
3311 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3312
3313
3314 SWIG_croak_null();
3315 }
3316 }
3317
3318
3319 XS(_wrap_librdf_new_node_from_literal) {
3320 {
3321 librdf_world *arg1 = (librdf_world *) 0 ;
3322 char *arg2 = (char *) 0 ;
3323 char *arg3 = (char *) NULL ;
3324 int arg4 = (int) 0 ;
3325 void *argp1 = 0 ;
3326 int res1 = 0 ;
3327 int res2 ;
3328 char *buf2 = 0 ;
3329 int alloc2 = 0 ;
3330 int res3 ;
3331 char *buf3 = 0 ;
3332 int alloc3 = 0 ;
3333 int val4 ;
3334 int ecode4 = 0 ;
3335 int argvi = 0;
3336 librdf_node *result = 0 ;
3337 dXSARGS;
3338
3339 if ((items < 2) || (items > 4)) {
3340 SWIG_croak("Usage: librdf_new_node_from_literal(world,string,inStrOrNull,is_wf_xml);");
3341 }
3342 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3343 if (!SWIG_IsOK(res1)) {
3344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_literal" "', argument " "1"" of type '" "librdf_world *""'");
3345 }
3346 arg1 = (librdf_world *)(argp1);
3347 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3348 if (!SWIG_IsOK(res2)) {
3349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_literal" "', argument " "2"" of type '" "char const *""'");
3350 }
3351 arg2 = (char *)(buf2);
3352 if (items > 2) {
3353 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
3354 if (!SWIG_IsOK(res3)) {
3355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_literal" "', argument " "3"" of type '" "char const *""'");
3356 }
3357 arg3 = (char *)(buf3);
3358 }
3359 if (items > 3) {
3360 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3361 if (!SWIG_IsOK(ecode4)) {
3362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "librdf_new_node_from_literal" "', argument " "4"" of type '" "int""'");
3363 }
3364 arg4 = (int)(val4);
3365 }
3366 result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4);
3367 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3368
3369 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3370 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3371
3372 XSRETURN(argvi);
3373 fail:
3374
3375 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3376 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3377
3378 SWIG_croak_null();
3379 }
3380 }
3381
3382
3383 XS(_wrap_librdf_new_node_from_typed_literal) {
3384 {
3385 librdf_world *arg1 = (librdf_world *) 0 ;
3386 char *arg2 = (char *) 0 ;
3387 char *arg3 = (char *) NULL ;
3388 librdf_uri *arg4 = (librdf_uri *) NULL ;
3389 void *argp1 = 0 ;
3390 int res1 = 0 ;
3391 int res2 ;
3392 char *buf2 = 0 ;
3393 int alloc2 = 0 ;
3394 int res3 ;
3395 char *buf3 = 0 ;
3396 int alloc3 = 0 ;
3397 void *argp4 = 0 ;
3398 int res4 = 0 ;
3399 int argvi = 0;
3400 librdf_node *result = 0 ;
3401 dXSARGS;
3402
3403 if ((items < 2) || (items > 4)) {
3404 SWIG_croak("Usage: librdf_new_node_from_typed_literal(world,string,inStrOrNull,inUriOrNull);");
3405 }
3406 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3407 if (!SWIG_IsOK(res1)) {
3408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_typed_literal" "', argument " "1"" of type '" "librdf_world *""'");
3409 }
3410 arg1 = (librdf_world *)(argp1);
3411 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3412 if (!SWIG_IsOK(res2)) {
3413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_typed_literal" "', argument " "2"" of type '" "char const *""'");
3414 }
3415 arg2 = (char *)(buf2);
3416 if (items > 2) {
3417 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
3418 if (!SWIG_IsOK(res3)) {
3419 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_node_from_typed_literal" "', argument " "3"" of type '" "char const *""'");
3420 }
3421 arg3 = (char *)(buf3);
3422 }
3423 if (items > 3) {
3424 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
3425 if (!SWIG_IsOK(res4)) {
3426 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_node_from_typed_literal" "', argument " "4"" of type '" "librdf_uri *""'");
3427 }
3428 arg4 = (librdf_uri *)(argp4);
3429 }
3430 result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4);
3431 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3432
3433 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3434 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3435
3436 XSRETURN(argvi);
3437 fail:
3438
3439 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3440 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
3441
3442 SWIG_croak_null();
3443 }
3444 }
3445
3446
3447 XS(_wrap_librdf_new_node_from_node) {
3448 {
3449 librdf_node *arg1 = (librdf_node *) 0 ;
3450 void *argp1 = 0 ;
3451 int res1 = 0 ;
3452 int argvi = 0;
3453 librdf_node *result = 0 ;
3454 dXSARGS;
3455
3456 if ((items < 1) || (items > 1)) {
3457 SWIG_croak("Usage: librdf_new_node_from_node(node);");
3458 }
3459 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3460 if (!SWIG_IsOK(res1)) {
3461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_node" "', argument " "1"" of type '" "librdf_node *""'");
3462 }
3463 arg1 = (librdf_node *)(argp1);
3464 result = (librdf_node *)librdf_new_node_from_node(arg1);
3465 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3466
3467 XSRETURN(argvi);
3468 fail:
3469
3470 SWIG_croak_null();
3471 }
3472 }
3473
3474
3475 XS(_wrap_librdf_new_node_from_blank_identifier) {
3476 {
3477 librdf_world *arg1 = (librdf_world *) 0 ;
3478 char *arg2 = (char *) NULL ;
3479 void *argp1 = 0 ;
3480 int res1 = 0 ;
3481 int res2 ;
3482 char *buf2 = 0 ;
3483 int alloc2 = 0 ;
3484 int argvi = 0;
3485 librdf_node *result = 0 ;
3486 dXSARGS;
3487
3488 if ((items < 1) || (items > 2)) {
3489 SWIG_croak("Usage: librdf_new_node_from_blank_identifier(world,inStrOrNull);");
3490 }
3491 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3492 if (!SWIG_IsOK(res1)) {
3493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "1"" of type '" "librdf_world *""'");
3494 }
3495 arg1 = (librdf_world *)(argp1);
3496 if (items > 1) {
3497 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3498 if (!SWIG_IsOK(res2)) {
3499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_node_from_blank_identifier" "', argument " "2"" of type '" "char const *""'");
3500 }
3501 arg2 = (char *)(buf2);
3502 }
3503 result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2);
3504 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
3505
3506 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3507 XSRETURN(argvi);
3508 fail:
3509
3510 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3511 SWIG_croak_null();
3512 }
3513 }
3514
3515
3516 XS(_wrap_librdf_free_node) {
3517 {
3518 librdf_node *arg1 = (librdf_node *) 0 ;
3519 void *argp1 = 0 ;
3520 int res1 = 0 ;
3521 int argvi = 0;
3522 dXSARGS;
3523
3524 if ((items < 1) || (items > 1)) {
3525 SWIG_croak("Usage: librdf_free_node(r);");
3526 }
3527 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3528 if (!SWIG_IsOK(res1)) {
3529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_node" "', argument " "1"" of type '" "librdf_node *""'");
3530 }
3531 arg1 = (librdf_node *)(argp1);
3532 librdf_free_node(arg1);
3533 ST(argvi) = sv_newmortal();
3534
3535 XSRETURN(argvi);
3536 fail:
3537
3538 SWIG_croak_null();
3539 }
3540 }
3541
3542
3543 XS(_wrap_librdf_node_get_uri) {
3544 {
3545 librdf_node *arg1 = (librdf_node *) 0 ;
3546 void *argp1 = 0 ;
3547 int res1 = 0 ;
3548 int argvi = 0;
3549 librdf_uri *result = 0 ;
3550 dXSARGS;
3551
3552 if ((items < 1) || (items > 1)) {
3553 SWIG_croak("Usage: librdf_node_get_uri(node);");
3554 }
3555 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3556 if (!SWIG_IsOK(res1)) {
3557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_uri" "', argument " "1"" of type '" "librdf_node *""'");
3558 }
3559 arg1 = (librdf_node *)(argp1);
3560 result = (librdf_uri *)librdf_node_get_uri(arg1);
3561 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ;
3562
3563 XSRETURN(argvi);
3564 fail:
3565
3566 SWIG_croak_null();
3567 }
3568 }
3569
3570
3571 XS(_wrap_librdf_node_get_type) {
3572 {
3573 librdf_node *arg1 = (librdf_node *) 0 ;
3574 void *argp1 = 0 ;
3575 int res1 = 0 ;
3576 int argvi = 0;
3577 int result;
3578 dXSARGS;
3579
3580 if ((items < 1) || (items > 1)) {
3581 SWIG_croak("Usage: librdf_node_get_type(node);");
3582 }
3583 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3584 if (!SWIG_IsOK(res1)) {
3585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_type" "', argument " "1"" of type '" "librdf_node *""'");
3586 }
3587 arg1 = (librdf_node *)(argp1);
3588 result = (int)librdf_node_get_type(arg1);
3589 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3590
3591 XSRETURN(argvi);
3592 fail:
3593
3594 SWIG_croak_null();
3595 }
3596 }
3597
3598
3599 XS(_wrap_librdf_node_get_literal_value) {
3600 {
3601 librdf_node *arg1 = (librdf_node *) 0 ;
3602 void *argp1 = 0 ;
3603 int res1 = 0 ;
3604 int argvi = 0;
3605 char *result = 0 ;
3606 dXSARGS;
3607
3608 if ((items < 1) || (items > 1)) {
3609 SWIG_croak("Usage: librdf_node_get_literal_value(node);");
3610 }
3611 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3612 if (!SWIG_IsOK(res1)) {
3613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value" "', argument " "1"" of type '" "librdf_node *""'");
3614 }
3615 arg1 = (librdf_node *)(argp1);
3616 result = (char *)librdf_node_get_literal_value(arg1);
3617 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3618
3619 XSRETURN(argvi);
3620 fail:
3621
3622 SWIG_croak_null();
3623 }
3624 }
3625
3626
3627 XS(_wrap_librdf_node_get_literal_value_as_latin1) {
3628 {
3629 librdf_node *arg1 = (librdf_node *) 0 ;
3630 void *argp1 = 0 ;
3631 int res1 = 0 ;
3632 int argvi = 0;
3633 char *result = 0 ;
3634 dXSARGS;
3635
3636 if ((items < 1) || (items > 1)) {
3637 SWIG_croak("Usage: librdf_node_get_literal_value_as_latin1(node);");
3638 }
3639 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3640 if (!SWIG_IsOK(res1)) {
3641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_as_latin1" "', argument " "1"" of type '" "librdf_node *""'");
3642 }
3643 arg1 = (librdf_node *)(argp1);
3644 result = (char *)librdf_node_get_literal_value_as_latin1(arg1);
3645 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3646
3647 XSRETURN(argvi);
3648 fail:
3649
3650 SWIG_croak_null();
3651 }
3652 }
3653
3654
3655 XS(_wrap_librdf_node_get_literal_value_language) {
3656 {
3657 librdf_node *arg1 = (librdf_node *) 0 ;
3658 void *argp1 = 0 ;
3659 int res1 = 0 ;
3660 int argvi = 0;
3661 char *result = 0 ;
3662 dXSARGS;
3663
3664 if ((items < 1) || (items > 1)) {
3665 SWIG_croak("Usage: librdf_node_get_literal_value_language(node);");
3666 }
3667 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3668 if (!SWIG_IsOK(res1)) {
3669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_language" "', argument " "1"" of type '" "librdf_node *""'");
3670 }
3671 arg1 = (librdf_node *)(argp1);
3672 result = (char *)librdf_node_get_literal_value_language(arg1);
3673 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3674
3675 XSRETURN(argvi);
3676 fail:
3677
3678 SWIG_croak_null();
3679 }
3680 }
3681
3682
3683 XS(_wrap_librdf_node_get_literal_value_datatype_uri) {
3684 {
3685 librdf_node *arg1 = (librdf_node *) 0 ;
3686 void *argp1 = 0 ;
3687 int res1 = 0 ;
3688 int argvi = 0;
3689 librdf_uri *result = 0 ;
3690 dXSARGS;
3691
3692 if ((items < 1) || (items > 1)) {
3693 SWIG_croak("Usage: librdf_node_get_literal_value_datatype_uri(node);");
3694 }
3695 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3696 if (!SWIG_IsOK(res1)) {
3697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_datatype_uri" "', argument " "1"" of type '" "librdf_node *""'");
3698 }
3699 arg1 = (librdf_node *)(argp1);
3700 result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1);
3701 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ;
3702
3703 XSRETURN(argvi);
3704 fail:
3705
3706 SWIG_croak_null();
3707 }
3708 }
3709
3710
3711 XS(_wrap_librdf_node_get_literal_value_is_wf_xml) {
3712 {
3713 librdf_node *arg1 = (librdf_node *) 0 ;
3714 void *argp1 = 0 ;
3715 int res1 = 0 ;
3716 int argvi = 0;
3717 int result;
3718 dXSARGS;
3719
3720 if ((items < 1) || (items > 1)) {
3721 SWIG_croak("Usage: librdf_node_get_literal_value_is_wf_xml(node);");
3722 }
3723 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3724 if (!SWIG_IsOK(res1)) {
3725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_literal_value_is_wf_xml" "', argument " "1"" of type '" "librdf_node *""'");
3726 }
3727 arg1 = (librdf_node *)(argp1);
3728 result = (int)librdf_node_get_literal_value_is_wf_xml(arg1);
3729 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3730
3731 XSRETURN(argvi);
3732 fail:
3733
3734 SWIG_croak_null();
3735 }
3736 }
3737
3738
3739 XS(_wrap_librdf_node_get_li_ordinal) {
3740 {
3741 librdf_node *arg1 = (librdf_node *) 0 ;
3742 void *argp1 = 0 ;
3743 int res1 = 0 ;
3744 int argvi = 0;
3745 int result;
3746 dXSARGS;
3747
3748 if ((items < 1) || (items > 1)) {
3749 SWIG_croak("Usage: librdf_node_get_li_ordinal(node);");
3750 }
3751 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3752 if (!SWIG_IsOK(res1)) {
3753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_li_ordinal" "', argument " "1"" of type '" "librdf_node *""'");
3754 }
3755 arg1 = (librdf_node *)(argp1);
3756 result = (int)librdf_node_get_li_ordinal(arg1);
3757 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3758
3759 XSRETURN(argvi);
3760 fail:
3761
3762 SWIG_croak_null();
3763 }
3764 }
3765
3766
3767 XS(_wrap_librdf_node_to_string) {
3768 {
3769 librdf_node *arg1 = (librdf_node *) 0 ;
3770 void *argp1 = 0 ;
3771 int res1 = 0 ;
3772 int argvi = 0;
3773 char *result = 0 ;
3774 dXSARGS;
3775
3776 if ((items < 1) || (items > 1)) {
3777 SWIG_croak("Usage: librdf_node_to_string(node);");
3778 }
3779 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3780 if (!SWIG_IsOK(res1)) {
3781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_to_string" "', argument " "1"" of type '" "librdf_node *""'");
3782 }
3783 arg1 = (librdf_node *)(argp1);
3784 result = (char *)librdf_node_to_string(arg1);
3785 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3786
3787 free((char*)result);
3788 XSRETURN(argvi);
3789 fail:
3790
3791 SWIG_croak_null();
3792 }
3793 }
3794
3795
3796 XS(_wrap_librdf_node_get_blank_identifier) {
3797 {
3798 librdf_node *arg1 = (librdf_node *) 0 ;
3799 void *argp1 = 0 ;
3800 int res1 = 0 ;
3801 int argvi = 0;
3802 char *result = 0 ;
3803 dXSARGS;
3804
3805 if ((items < 1) || (items > 1)) {
3806 SWIG_croak("Usage: librdf_node_get_blank_identifier(node);");
3807 }
3808 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3809 if (!SWIG_IsOK(res1)) {
3810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_get_blank_identifier" "', argument " "1"" of type '" "librdf_node *""'");
3811 }
3812 arg1 = (librdf_node *)(argp1);
3813 result = (char *)librdf_node_get_blank_identifier(arg1);
3814 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3815
3816 XSRETURN(argvi);
3817 fail:
3818
3819 SWIG_croak_null();
3820 }
3821 }
3822
3823
3824 XS(_wrap_librdf_node_is_resource) {
3825 {
3826 librdf_node *arg1 = (librdf_node *) 0 ;
3827 void *argp1 = 0 ;
3828 int res1 = 0 ;
3829 int argvi = 0;
3830 int result;
3831 dXSARGS;
3832
3833 if ((items < 1) || (items > 1)) {
3834 SWIG_croak("Usage: librdf_node_is_resource(node);");
3835 }
3836 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3837 if (!SWIG_IsOK(res1)) {
3838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_resource" "', argument " "1"" of type '" "librdf_node *""'");
3839 }
3840 arg1 = (librdf_node *)(argp1);
3841 result = (int)librdf_node_is_resource(arg1);
3842 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3843
3844 XSRETURN(argvi);
3845 fail:
3846
3847 SWIG_croak_null();
3848 }
3849 }
3850
3851
3852 XS(_wrap_librdf_node_is_literal) {
3853 {
3854 librdf_node *arg1 = (librdf_node *) 0 ;
3855 void *argp1 = 0 ;
3856 int res1 = 0 ;
3857 int argvi = 0;
3858 int result;
3859 dXSARGS;
3860
3861 if ((items < 1) || (items > 1)) {
3862 SWIG_croak("Usage: librdf_node_is_literal(node);");
3863 }
3864 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3865 if (!SWIG_IsOK(res1)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_literal" "', argument " "1"" of type '" "librdf_node *""'");
3867 }
3868 arg1 = (librdf_node *)(argp1);
3869 result = (int)librdf_node_is_literal(arg1);
3870 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3871
3872 XSRETURN(argvi);
3873 fail:
3874
3875 SWIG_croak_null();
3876 }
3877 }
3878
3879
3880 XS(_wrap_librdf_node_is_blank) {
3881 {
3882 librdf_node *arg1 = (librdf_node *) 0 ;
3883 void *argp1 = 0 ;
3884 int res1 = 0 ;
3885 int argvi = 0;
3886 int result;
3887 dXSARGS;
3888
3889 if ((items < 1) || (items > 1)) {
3890 SWIG_croak("Usage: librdf_node_is_blank(node);");
3891 }
3892 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3893 if (!SWIG_IsOK(res1)) {
3894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_is_blank" "', argument " "1"" of type '" "librdf_node *""'");
3895 }
3896 arg1 = (librdf_node *)(argp1);
3897 result = (int)librdf_node_is_blank(arg1);
3898 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3899
3900 XSRETURN(argvi);
3901 fail:
3902
3903 SWIG_croak_null();
3904 }
3905 }
3906
3907
3908 XS(_wrap_librdf_node_equals) {
3909 {
3910 librdf_node *arg1 = (librdf_node *) 0 ;
3911 librdf_node *arg2 = (librdf_node *) 0 ;
3912 void *argp1 = 0 ;
3913 int res1 = 0 ;
3914 void *argp2 = 0 ;
3915 int res2 = 0 ;
3916 int argvi = 0;
3917 int result;
3918 dXSARGS;
3919
3920 if ((items < 2) || (items > 2)) {
3921 SWIG_croak("Usage: librdf_node_equals(first_node,second_node);");
3922 }
3923 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3924 if (!SWIG_IsOK(res1)) {
3925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_node_equals" "', argument " "1"" of type '" "librdf_node *""'");
3926 }
3927 arg1 = (librdf_node *)(argp1);
3928 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
3929 if (!SWIG_IsOK(res2)) {
3930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_node_equals" "', argument " "2"" of type '" "librdf_node *""'");
3931 }
3932 arg2 = (librdf_node *)(argp2);
3933 result = (int)librdf_node_equals(arg1,arg2);
3934 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3935
3936
3937 XSRETURN(argvi);
3938 fail:
3939
3940
3941 SWIG_croak_null();
3942 }
3943 }
3944
3945
3946 XS(_wrap_librdf_new_statement) {
3947 {
3948 librdf_world *arg1 = (librdf_world *) 0 ;
3949 void *argp1 = 0 ;
3950 int res1 = 0 ;
3951 int argvi = 0;
3952 librdf_statement *result = 0 ;
3953 dXSARGS;
3954
3955 if ((items < 1) || (items > 1)) {
3956 SWIG_croak("Usage: librdf_new_statement(world);");
3957 }
3958 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement" "', argument " "1"" of type '" "librdf_world *""'");
3961 }
3962 arg1 = (librdf_world *)(argp1);
3963 result = (librdf_statement *)librdf_new_statement(arg1);
3964 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ;
3965
3966 XSRETURN(argvi);
3967 fail:
3968
3969 SWIG_croak_null();
3970 }
3971 }
3972
3973
3974 XS(_wrap_librdf_new_statement_from_statement) {
3975 {
3976 librdf_statement *arg1 = (librdf_statement *) 0 ;
3977 void *argp1 = 0 ;
3978 int res1 = 0 ;
3979 int argvi = 0;
3980 librdf_statement *result = 0 ;
3981 dXSARGS;
3982
3983 if ((items < 1) || (items > 1)) {
3984 SWIG_croak("Usage: librdf_new_statement_from_statement(statement);");
3985 }
3986 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
3987 if (!SWIG_IsOK(res1)) {
3988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_statement" "', argument " "1"" of type '" "librdf_statement *""'");
3989 }
3990 arg1 = (librdf_statement *)(argp1);
3991 result = (librdf_statement *)librdf_new_statement_from_statement(arg1);
3992 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ;
3993
3994 XSRETURN(argvi);
3995 fail:
3996
3997 SWIG_croak_null();
3998 }
3999 }
4000
4001
4002 XS(_wrap_librdf_new_statement_from_nodes) {
4003 {
4004 librdf_world *arg1 = (librdf_world *) 0 ;
4005 librdf_node *arg2 = (librdf_node *) 0 ;
4006 librdf_node *arg3 = (librdf_node *) 0 ;
4007 librdf_node *arg4 = (librdf_node *) 0 ;
4008 void *argp1 = 0 ;
4009 int res1 = 0 ;
4010 void *argp2 = 0 ;
4011 int res2 = 0 ;
4012 void *argp3 = 0 ;
4013 int res3 = 0 ;
4014 void *argp4 = 0 ;
4015 int res4 = 0 ;
4016 int argvi = 0;
4017 librdf_statement *result = 0 ;
4018 dXSARGS;
4019
4020 if ((items < 4) || (items > 4)) {
4021 SWIG_croak("Usage: librdf_new_statement_from_nodes(world,subject,predicate,object);");
4022 }
4023 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_statement_from_nodes" "', argument " "1"" of type '" "librdf_world *""'");
4026 }
4027 arg1 = (librdf_world *)(argp1);
4028 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4029 if (!SWIG_IsOK(res2)) {
4030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_statement_from_nodes" "', argument " "2"" of type '" "librdf_node *""'");
4031 }
4032 arg2 = (librdf_node *)(argp2);
4033 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4034 if (!SWIG_IsOK(res3)) {
4035 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_statement_from_nodes" "', argument " "3"" of type '" "librdf_node *""'");
4036 }
4037 arg3 = (librdf_node *)(argp3);
4038 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4039 if (!SWIG_IsOK(res4)) {
4040 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_statement_from_nodes" "', argument " "4"" of type '" "librdf_node *""'");
4041 }
4042 arg4 = (librdf_node *)(argp4);
4043 result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4);
4044 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, SWIG_OWNER | 0); argvi++ ;
4045
4046
4047
4048
4049 XSRETURN(argvi);
4050 fail:
4051
4052
4053
4054
4055 SWIG_croak_null();
4056 }
4057 }
4058
4059
4060 XS(_wrap_librdf_free_statement) {
4061 {
4062 librdf_statement *arg1 = (librdf_statement *) 0 ;
4063 void *argp1 = 0 ;
4064 int res1 = 0 ;
4065 int argvi = 0;
4066 dXSARGS;
4067
4068 if ((items < 1) || (items > 1)) {
4069 SWIG_croak("Usage: librdf_free_statement(statement);");
4070 }
4071 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4072 if (!SWIG_IsOK(res1)) {
4073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_statement" "', argument " "1"" of type '" "librdf_statement *""'");
4074 }
4075 arg1 = (librdf_statement *)(argp1);
4076 librdf_free_statement(arg1);
4077 ST(argvi) = sv_newmortal();
4078
4079 XSRETURN(argvi);
4080 fail:
4081
4082 SWIG_croak_null();
4083 }
4084 }
4085
4086
4087 XS(_wrap_librdf_statement_get_subject) {
4088 {
4089 librdf_statement *arg1 = (librdf_statement *) 0 ;
4090 void *argp1 = 0 ;
4091 int res1 = 0 ;
4092 int argvi = 0;
4093 librdf_node *result = 0 ;
4094 dXSARGS;
4095
4096 if ((items < 1) || (items > 1)) {
4097 SWIG_croak("Usage: librdf_statement_get_subject(statement);");
4098 }
4099 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4100 if (!SWIG_IsOK(res1)) {
4101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_subject" "', argument " "1"" of type '" "librdf_statement *""'");
4102 }
4103 arg1 = (librdf_statement *)(argp1);
4104 result = (librdf_node *)librdf_statement_get_subject(arg1);
4105 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
4106
4107 XSRETURN(argvi);
4108 fail:
4109
4110 SWIG_croak_null();
4111 }
4112 }
4113
4114
4115 XS(_wrap_librdf_statement_set_subject) {
4116 {
4117 librdf_statement *arg1 = (librdf_statement *) 0 ;
4118 librdf_node *arg2 = (librdf_node *) 0 ;
4119 void *argp1 = 0 ;
4120 int res1 = 0 ;
4121 void *argp2 = 0 ;
4122 int res2 = 0 ;
4123 int argvi = 0;
4124 dXSARGS;
4125
4126 if ((items < 2) || (items > 2)) {
4127 SWIG_croak("Usage: librdf_statement_set_subject(statement,subject);");
4128 }
4129 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_subject" "', argument " "1"" of type '" "librdf_statement *""'");
4132 }
4133 arg1 = (librdf_statement *)(argp1);
4134 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4135 if (!SWIG_IsOK(res2)) {
4136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_subject" "', argument " "2"" of type '" "librdf_node *""'");
4137 }
4138 arg2 = (librdf_node *)(argp2);
4139 librdf_statement_set_subject(arg1,arg2);
4140 ST(argvi) = sv_newmortal();
4141
4142
4143 XSRETURN(argvi);
4144 fail:
4145
4146
4147 SWIG_croak_null();
4148 }
4149 }
4150
4151
4152 XS(_wrap_librdf_statement_get_predicate) {
4153 {
4154 librdf_statement *arg1 = (librdf_statement *) 0 ;
4155 void *argp1 = 0 ;
4156 int res1 = 0 ;
4157 int argvi = 0;
4158 librdf_node *result = 0 ;
4159 dXSARGS;
4160
4161 if ((items < 1) || (items > 1)) {
4162 SWIG_croak("Usage: librdf_statement_get_predicate(statement);");
4163 }
4164 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4165 if (!SWIG_IsOK(res1)) {
4166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_predicate" "', argument " "1"" of type '" "librdf_statement *""'");
4167 }
4168 arg1 = (librdf_statement *)(argp1);
4169 result = (librdf_node *)librdf_statement_get_predicate(arg1);
4170 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
4171
4172 XSRETURN(argvi);
4173 fail:
4174
4175 SWIG_croak_null();
4176 }
4177 }
4178
4179
4180 XS(_wrap_librdf_statement_set_predicate) {
4181 {
4182 librdf_statement *arg1 = (librdf_statement *) 0 ;
4183 librdf_node *arg2 = (librdf_node *) 0 ;
4184 void *argp1 = 0 ;
4185 int res1 = 0 ;
4186 void *argp2 = 0 ;
4187 int res2 = 0 ;
4188 int argvi = 0;
4189 dXSARGS;
4190
4191 if ((items < 2) || (items > 2)) {
4192 SWIG_croak("Usage: librdf_statement_set_predicate(statement,predicate);");
4193 }
4194 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_predicate" "', argument " "1"" of type '" "librdf_statement *""'");
4197 }
4198 arg1 = (librdf_statement *)(argp1);
4199 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4200 if (!SWIG_IsOK(res2)) {
4201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_predicate" "', argument " "2"" of type '" "librdf_node *""'");
4202 }
4203 arg2 = (librdf_node *)(argp2);
4204 librdf_statement_set_predicate(arg1,arg2);
4205 ST(argvi) = sv_newmortal();
4206
4207
4208 XSRETURN(argvi);
4209 fail:
4210
4211
4212 SWIG_croak_null();
4213 }
4214 }
4215
4216
4217 XS(_wrap_librdf_statement_get_object) {
4218 {
4219 librdf_statement *arg1 = (librdf_statement *) 0 ;
4220 void *argp1 = 0 ;
4221 int res1 = 0 ;
4222 int argvi = 0;
4223 librdf_node *result = 0 ;
4224 dXSARGS;
4225
4226 if ((items < 1) || (items > 1)) {
4227 SWIG_croak("Usage: librdf_statement_get_object(statement);");
4228 }
4229 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4230 if (!SWIG_IsOK(res1)) {
4231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_get_object" "', argument " "1"" of type '" "librdf_statement *""'");
4232 }
4233 arg1 = (librdf_statement *)(argp1);
4234 result = (librdf_node *)librdf_statement_get_object(arg1);
4235 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
4236
4237 XSRETURN(argvi);
4238 fail:
4239
4240 SWIG_croak_null();
4241 }
4242 }
4243
4244
4245 XS(_wrap_librdf_statement_set_object) {
4246 {
4247 librdf_statement *arg1 = (librdf_statement *) 0 ;
4248 librdf_node *arg2 = (librdf_node *) 0 ;
4249 void *argp1 = 0 ;
4250 int res1 = 0 ;
4251 void *argp2 = 0 ;
4252 int res2 = 0 ;
4253 int argvi = 0;
4254 dXSARGS;
4255
4256 if ((items < 2) || (items > 2)) {
4257 SWIG_croak("Usage: librdf_statement_set_object(statement,object);");
4258 }
4259 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4260 if (!SWIG_IsOK(res1)) {
4261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_set_object" "', argument " "1"" of type '" "librdf_statement *""'");
4262 }
4263 arg1 = (librdf_statement *)(argp1);
4264 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4265 if (!SWIG_IsOK(res2)) {
4266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_set_object" "', argument " "2"" of type '" "librdf_node *""'");
4267 }
4268 arg2 = (librdf_node *)(argp2);
4269 librdf_statement_set_object(arg1,arg2);
4270 ST(argvi) = sv_newmortal();
4271
4272
4273 XSRETURN(argvi);
4274 fail:
4275
4276
4277 SWIG_croak_null();
4278 }
4279 }
4280
4281
4282 XS(_wrap_librdf_statement_equals) {
4283 {
4284 librdf_statement *arg1 = (librdf_statement *) 0 ;
4285 librdf_statement *arg2 = (librdf_statement *) 0 ;
4286 void *argp1 = 0 ;
4287 int res1 = 0 ;
4288 void *argp2 = 0 ;
4289 int res2 = 0 ;
4290 int argvi = 0;
4291 int result;
4292 dXSARGS;
4293
4294 if ((items < 2) || (items > 2)) {
4295 SWIG_croak("Usage: librdf_statement_equals(statement1,statement2);");
4296 }
4297 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4298 if (!SWIG_IsOK(res1)) {
4299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_equals" "', argument " "1"" of type '" "librdf_statement *""'");
4300 }
4301 arg1 = (librdf_statement *)(argp1);
4302 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4303 if (!SWIG_IsOK(res2)) {
4304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_equals" "', argument " "2"" of type '" "librdf_statement *""'");
4305 }
4306 arg2 = (librdf_statement *)(argp2);
4307 result = (int)librdf_statement_equals(arg1,arg2);
4308 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4309
4310
4311 XSRETURN(argvi);
4312 fail:
4313
4314
4315 SWIG_croak_null();
4316 }
4317 }
4318
4319
4320 XS(_wrap_librdf_statement_match) {
4321 {
4322 librdf_statement *arg1 = (librdf_statement *) 0 ;
4323 librdf_statement *arg2 = (librdf_statement *) 0 ;
4324 void *argp1 = 0 ;
4325 int res1 = 0 ;
4326 void *argp2 = 0 ;
4327 int res2 = 0 ;
4328 int argvi = 0;
4329 int result;
4330 dXSARGS;
4331
4332 if ((items < 2) || (items > 2)) {
4333 SWIG_croak("Usage: librdf_statement_match(statement,partial_statement);");
4334 }
4335 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4336 if (!SWIG_IsOK(res1)) {
4337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_match" "', argument " "1"" of type '" "librdf_statement *""'");
4338 }
4339 arg1 = (librdf_statement *)(argp1);
4340 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4341 if (!SWIG_IsOK(res2)) {
4342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_statement_match" "', argument " "2"" of type '" "librdf_statement *""'");
4343 }
4344 arg2 = (librdf_statement *)(argp2);
4345 result = (int)librdf_statement_match(arg1,arg2);
4346 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4347
4348
4349 XSRETURN(argvi);
4350 fail:
4351
4352
4353 SWIG_croak_null();
4354 }
4355 }
4356
4357
4358 XS(_wrap_librdf_statement_to_string) {
4359 {
4360 librdf_statement *arg1 = (librdf_statement *) 0 ;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 int argvi = 0;
4364 char *result = 0 ;
4365 dXSARGS;
4366
4367 if ((items < 1) || (items > 1)) {
4368 SWIG_croak("Usage: librdf_statement_to_string(statement);");
4369 }
4370 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_to_string" "', argument " "1"" of type '" "librdf_statement *""'");
4373 }
4374 arg1 = (librdf_statement *)(argp1);
4375 result = (char *)librdf_statement_to_string(arg1);
4376 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4377
4378 free((char*)result);
4379 XSRETURN(argvi);
4380 fail:
4381
4382 SWIG_croak_null();
4383 }
4384 }
4385
4386
4387 XS(_wrap_librdf_statement_is_complete) {
4388 {
4389 librdf_statement *arg1 = (librdf_statement *) 0 ;
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 int argvi = 0;
4393 int result;
4394 dXSARGS;
4395
4396 if ((items < 1) || (items > 1)) {
4397 SWIG_croak("Usage: librdf_statement_is_complete(statement);");
4398 }
4399 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4400 if (!SWIG_IsOK(res1)) {
4401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_statement_is_complete" "', argument " "1"" of type '" "librdf_statement *""'");
4402 }
4403 arg1 = (librdf_statement *)(argp1);
4404 result = (int)librdf_statement_is_complete(arg1);
4405 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4406
4407 XSRETURN(argvi);
4408 fail:
4409
4410 SWIG_croak_null();
4411 }
4412 }
4413
4414
4415 XS(_wrap_librdf_new_model) {
4416 {
4417 librdf_world *arg1 = (librdf_world *) 0 ;
4418 librdf_storage *arg2 = (librdf_storage *) 0 ;
4419 char *arg3 = (char *) 0 ;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 void *argp2 = 0 ;
4423 int res2 = 0 ;
4424 int res3 ;
4425 char *buf3 = 0 ;
4426 int alloc3 = 0 ;
4427 int argvi = 0;
4428 librdf_model *result = 0 ;
4429 dXSARGS;
4430
4431 if ((items < 3) || (items > 3)) {
4432 SWIG_croak("Usage: librdf_new_model(world,storage,options_string);");
4433 }
4434 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4435 if (!SWIG_IsOK(res1)) {
4436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model" "', argument " "1"" of type '" "librdf_world *""'");
4437 }
4438 arg1 = (librdf_world *)(argp1);
4439 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
4440 if (!SWIG_IsOK(res2)) {
4441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model" "', argument " "2"" of type '" "librdf_storage *""'");
4442 }
4443 arg2 = (librdf_storage *)(argp2);
4444 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
4445 if (!SWIG_IsOK(res3)) {
4446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model" "', argument " "3"" of type '" "char *""'");
4447 }
4448 arg3 = (char *)(buf3);
4449 result = (librdf_model *)librdf_new_model(arg1,arg2,arg3);
4450 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ;
4451
4452
4453 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4454 XSRETURN(argvi);
4455 fail:
4456
4457
4458 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
4459 SWIG_croak_null();
4460 }
4461 }
4462
4463
4464 XS(_wrap_librdf_new_model_with_options) {
4465 {
4466 librdf_world *arg1 = (librdf_world *) 0 ;
4467 librdf_storage *arg2 = (librdf_storage *) 0 ;
4468 librdf_hash *arg3 = (librdf_hash *) 0 ;
4469 void *argp1 = 0 ;
4470 int res1 = 0 ;
4471 void *argp2 = 0 ;
4472 int res2 = 0 ;
4473 void *argp3 = 0 ;
4474 int res3 = 0 ;
4475 int argvi = 0;
4476 librdf_model *result = 0 ;
4477 dXSARGS;
4478
4479 if ((items < 3) || (items > 3)) {
4480 SWIG_croak("Usage: librdf_new_model_with_options(world,storage,options);");
4481 }
4482 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
4483 if (!SWIG_IsOK(res1)) {
4484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_with_options" "', argument " "1"" of type '" "librdf_world *""'");
4485 }
4486 arg1 = (librdf_world *)(argp1);
4487 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
4488 if (!SWIG_IsOK(res2)) {
4489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_model_with_options" "', argument " "2"" of type '" "librdf_storage *""'");
4490 }
4491 arg2 = (librdf_storage *)(argp2);
4492 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_hash_s, 0 | 0 );
4493 if (!SWIG_IsOK(res3)) {
4494 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_model_with_options" "', argument " "3"" of type '" "librdf_hash *""'");
4495 }
4496 arg3 = (librdf_hash *)(argp3);
4497 result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3);
4498 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ;
4499
4500
4501
4502 XSRETURN(argvi);
4503 fail:
4504
4505
4506
4507 SWIG_croak_null();
4508 }
4509 }
4510
4511
4512 XS(_wrap_librdf_new_model_from_model) {
4513 {
4514 librdf_model *arg1 = (librdf_model *) 0 ;
4515 void *argp1 = 0 ;
4516 int res1 = 0 ;
4517 int argvi = 0;
4518 librdf_model *result = 0 ;
4519 dXSARGS;
4520
4521 if ((items < 1) || (items > 1)) {
4522 SWIG_croak("Usage: librdf_new_model_from_model(model);");
4523 }
4524 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4525 if (!SWIG_IsOK(res1)) {
4526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_model_from_model" "', argument " "1"" of type '" "librdf_model *""'");
4527 }
4528 arg1 = (librdf_model *)(argp1);
4529 result = (librdf_model *)librdf_new_model_from_model(arg1);
4530 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_model_s, SWIG_OWNER | 0); argvi++ ;
4531
4532 XSRETURN(argvi);
4533 fail:
4534
4535 SWIG_croak_null();
4536 }
4537 }
4538
4539
4540 XS(_wrap_librdf_free_model) {
4541 {
4542 librdf_model *arg1 = (librdf_model *) 0 ;
4543 void *argp1 = 0 ;
4544 int res1 = 0 ;
4545 int argvi = 0;
4546 dXSARGS;
4547
4548 if ((items < 1) || (items > 1)) {
4549 SWIG_croak("Usage: librdf_free_model(model);");
4550 }
4551 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4552 if (!SWIG_IsOK(res1)) {
4553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_model" "', argument " "1"" of type '" "librdf_model *""'");
4554 }
4555 arg1 = (librdf_model *)(argp1);
4556 librdf_free_model(arg1);
4557 ST(argvi) = sv_newmortal();
4558
4559 XSRETURN(argvi);
4560 fail:
4561
4562 SWIG_croak_null();
4563 }
4564 }
4565
4566
4567 XS(_wrap_librdf_model_size) {
4568 {
4569 librdf_model *arg1 = (librdf_model *) 0 ;
4570 void *argp1 = 0 ;
4571 int res1 = 0 ;
4572 int argvi = 0;
4573 int result;
4574 dXSARGS;
4575
4576 if ((items < 1) || (items > 1)) {
4577 SWIG_croak("Usage: librdf_model_size(model);");
4578 }
4579 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4580 if (!SWIG_IsOK(res1)) {
4581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_size" "', argument " "1"" of type '" "librdf_model *""'");
4582 }
4583 arg1 = (librdf_model *)(argp1);
4584 result = (int)librdf_model_size(arg1);
4585 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4586
4587 XSRETURN(argvi);
4588 fail:
4589
4590 SWIG_croak_null();
4591 }
4592 }
4593
4594
4595 XS(_wrap_librdf_model_add) {
4596 {
4597 librdf_model *arg1 = (librdf_model *) 0 ;
4598 librdf_node *arg2 = (librdf_node *) 0 ;
4599 librdf_node *arg3 = (librdf_node *) 0 ;
4600 librdf_node *arg4 = (librdf_node *) 0 ;
4601 void *argp1 = 0 ;
4602 int res1 = 0 ;
4603 void *argp2 = 0 ;
4604 int res2 = 0 ;
4605 void *argp3 = 0 ;
4606 int res3 = 0 ;
4607 void *argp4 = 0 ;
4608 int res4 = 0 ;
4609 int argvi = 0;
4610 int result;
4611 dXSARGS;
4612
4613 if ((items < 4) || (items > 4)) {
4614 SWIG_croak("Usage: librdf_model_add(model,subject,predicate,object);");
4615 }
4616 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4617 if (!SWIG_IsOK(res1)) {
4618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add" "', argument " "1"" of type '" "librdf_model *""'");
4619 }
4620 arg1 = (librdf_model *)(argp1);
4621 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4622 if (!SWIG_IsOK(res2)) {
4623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add" "', argument " "2"" of type '" "librdf_node *""'");
4624 }
4625 arg2 = (librdf_node *)(argp2);
4626 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4627 if (!SWIG_IsOK(res3)) {
4628 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add" "', argument " "3"" of type '" "librdf_node *""'");
4629 }
4630 arg3 = (librdf_node *)(argp3);
4631 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4632 if (!SWIG_IsOK(res4)) {
4633 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add" "', argument " "4"" of type '" "librdf_node *""'");
4634 }
4635 arg4 = (librdf_node *)(argp4);
4636 result = (int)librdf_model_add(arg1,arg2,arg3,arg4);
4637 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4638
4639
4640
4641
4642 XSRETURN(argvi);
4643 fail:
4644
4645
4646
4647
4648 SWIG_croak_null();
4649 }
4650 }
4651
4652
4653 XS(_wrap_librdf_model_add_string_literal_statement) {
4654 {
4655 librdf_model *arg1 = (librdf_model *) 0 ;
4656 librdf_node *arg2 = (librdf_node *) 0 ;
4657 librdf_node *arg3 = (librdf_node *) 0 ;
4658 char *arg4 = (char *) 0 ;
4659 char *arg5 = (char *) NULL ;
4660 int arg6 = (int) 0 ;
4661 void *argp1 = 0 ;
4662 int res1 = 0 ;
4663 void *argp2 = 0 ;
4664 int res2 = 0 ;
4665 void *argp3 = 0 ;
4666 int res3 = 0 ;
4667 int res4 ;
4668 char *buf4 = 0 ;
4669 int alloc4 = 0 ;
4670 int res5 ;
4671 char *buf5 = 0 ;
4672 int alloc5 = 0 ;
4673 int val6 ;
4674 int ecode6 = 0 ;
4675 int argvi = 0;
4676 int result;
4677 dXSARGS;
4678
4679 if ((items < 4) || (items > 6)) {
4680 SWIG_croak("Usage: librdf_model_add_string_literal_statement(model,subject,predicate,literal,inStrOrNull,is_wf_xml);");
4681 }
4682 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4683 if (!SWIG_IsOK(res1)) {
4684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_string_literal_statement" "', argument " "1"" of type '" "librdf_model *""'");
4685 }
4686 arg1 = (librdf_model *)(argp1);
4687 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4688 if (!SWIG_IsOK(res2)) {
4689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_string_literal_statement" "', argument " "2"" of type '" "librdf_node *""'");
4690 }
4691 arg2 = (librdf_node *)(argp2);
4692 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4693 if (!SWIG_IsOK(res3)) {
4694 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_string_literal_statement" "', argument " "3"" of type '" "librdf_node *""'");
4695 }
4696 arg3 = (librdf_node *)(argp3);
4697 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
4698 if (!SWIG_IsOK(res4)) {
4699 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_string_literal_statement" "', argument " "4"" of type '" "char const *""'");
4700 }
4701 arg4 = (char *)(buf4);
4702 if (items > 4) {
4703 res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5);
4704 if (!SWIG_IsOK(res5)) {
4705 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_string_literal_statement" "', argument " "5"" of type '" "char const *""'");
4706 }
4707 arg5 = (char *)(buf5);
4708 }
4709 if (items > 5) {
4710 ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
4711 if (!SWIG_IsOK(ecode6)) {
4712 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "librdf_model_add_string_literal_statement" "', argument " "6"" of type '" "int""'");
4713 }
4714 arg6 = (int)(val6);
4715 }
4716 result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6);
4717 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4718
4719
4720
4721 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
4722 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
4723
4724 XSRETURN(argvi);
4725 fail:
4726
4727
4728
4729 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
4730 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
4731
4732 SWIG_croak_null();
4733 }
4734 }
4735
4736
4737 XS(_wrap_librdf_model_add_typed_literal_statement) {
4738 {
4739 librdf_model *arg1 = (librdf_model *) 0 ;
4740 librdf_node *arg2 = (librdf_node *) 0 ;
4741 librdf_node *arg3 = (librdf_node *) 0 ;
4742 char *arg4 = (char *) 0 ;
4743 char *arg5 = (char *) 0 ;
4744 librdf_uri *arg6 = (librdf_uri *) NULL ;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 void *argp2 = 0 ;
4748 int res2 = 0 ;
4749 void *argp3 = 0 ;
4750 int res3 = 0 ;
4751 int res4 ;
4752 char *buf4 = 0 ;
4753 int alloc4 = 0 ;
4754 int res5 ;
4755 char *buf5 = 0 ;
4756 int alloc5 = 0 ;
4757 void *argp6 = 0 ;
4758 int res6 = 0 ;
4759 int argvi = 0;
4760 int result;
4761 dXSARGS;
4762
4763 if ((items < 5) || (items > 6)) {
4764 SWIG_croak("Usage: librdf_model_add_typed_literal_statement(model,subject,predicate,string,inStrOrNull,inUriOrNull);");
4765 }
4766 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4767 if (!SWIG_IsOK(res1)) {
4768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "1"" of type '" "librdf_model *""'");
4769 }
4770 arg1 = (librdf_model *)(argp1);
4771 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4772 if (!SWIG_IsOK(res2)) {
4773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "2"" of type '" "librdf_node *""'");
4774 }
4775 arg2 = (librdf_node *)(argp2);
4776 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
4777 if (!SWIG_IsOK(res3)) {
4778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "3"" of type '" "librdf_node *""'");
4779 }
4780 arg3 = (librdf_node *)(argp3);
4781 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
4782 if (!SWIG_IsOK(res4)) {
4783 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "4"" of type '" "char *""'");
4784 }
4785 arg4 = (char *)(buf4);
4786 res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5);
4787 if (!SWIG_IsOK(res5)) {
4788 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "5"" of type '" "char *""'");
4789 }
4790 arg5 = (char *)(buf5);
4791 if (items > 5) {
4792 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
4793 if (!SWIG_IsOK(res6)) {
4794 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "librdf_model_add_typed_literal_statement" "', argument " "6"" of type '" "librdf_uri *""'");
4795 }
4796 arg6 = (librdf_uri *)(argp6);
4797 }
4798 result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6);
4799 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4800
4801
4802
4803 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
4804 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
4805
4806 XSRETURN(argvi);
4807 fail:
4808
4809
4810
4811 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
4812 if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
4813
4814 SWIG_croak_null();
4815 }
4816 }
4817
4818
4819 XS(_wrap_librdf_model_add_statement) {
4820 {
4821 librdf_model *arg1 = (librdf_model *) 0 ;
4822 librdf_statement *arg2 = (librdf_statement *) 0 ;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 void *argp2 = 0 ;
4826 int res2 = 0 ;
4827 int argvi = 0;
4828 int result;
4829 dXSARGS;
4830
4831 if ((items < 2) || (items > 2)) {
4832 SWIG_croak("Usage: librdf_model_add_statement(model,statement);");
4833 }
4834 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statement" "', argument " "1"" of type '" "librdf_model *""'");
4837 }
4838 arg1 = (librdf_model *)(argp1);
4839 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4840 if (!SWIG_IsOK(res2)) {
4841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statement" "', argument " "2"" of type '" "librdf_statement *""'");
4842 }
4843 arg2 = (librdf_statement *)(argp2);
4844 result = (int)librdf_model_add_statement(arg1,arg2);
4845 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4846
4847
4848 XSRETURN(argvi);
4849 fail:
4850
4851
4852 SWIG_croak_null();
4853 }
4854 }
4855
4856
4857 XS(_wrap_librdf_model_add_statements) {
4858 {
4859 librdf_model *arg1 = (librdf_model *) 0 ;
4860 librdf_stream *arg2 = (librdf_stream *) 0 ;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 void *argp2 = 0 ;
4864 int res2 = 0 ;
4865 int argvi = 0;
4866 int result;
4867 dXSARGS;
4868
4869 if ((items < 2) || (items > 2)) {
4870 SWIG_croak("Usage: librdf_model_add_statements(model,statement_stream);");
4871 }
4872 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4873 if (!SWIG_IsOK(res1)) {
4874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_add_statements" "', argument " "1"" of type '" "librdf_model *""'");
4875 }
4876 arg1 = (librdf_model *)(argp1);
4877 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
4878 if (!SWIG_IsOK(res2)) {
4879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_add_statements" "', argument " "2"" of type '" "librdf_stream *""'");
4880 }
4881 arg2 = (librdf_stream *)(argp2);
4882 result = (int)librdf_model_add_statements(arg1,arg2);
4883 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4884
4885
4886 XSRETURN(argvi);
4887 fail:
4888
4889
4890 SWIG_croak_null();
4891 }
4892 }
4893
4894
4895 XS(_wrap_librdf_model_remove_statement) {
4896 {
4897 librdf_model *arg1 = (librdf_model *) 0 ;
4898 librdf_statement *arg2 = (librdf_statement *) 0 ;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 void *argp2 = 0 ;
4902 int res2 = 0 ;
4903 int argvi = 0;
4904 int result;
4905 dXSARGS;
4906
4907 if ((items < 2) || (items > 2)) {
4908 SWIG_croak("Usage: librdf_model_remove_statement(model,statement);");
4909 }
4910 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4911 if (!SWIG_IsOK(res1)) {
4912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_remove_statement" "', argument " "1"" of type '" "librdf_model *""'");
4913 }
4914 arg1 = (librdf_model *)(argp1);
4915 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4916 if (!SWIG_IsOK(res2)) {
4917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_remove_statement" "', argument " "2"" of type '" "librdf_statement *""'");
4918 }
4919 arg2 = (librdf_statement *)(argp2);
4920 result = (int)librdf_model_remove_statement(arg1,arg2);
4921 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4922
4923
4924 XSRETURN(argvi);
4925 fail:
4926
4927
4928 SWIG_croak_null();
4929 }
4930 }
4931
4932
4933 XS(_wrap_librdf_model_contains_statement) {
4934 {
4935 librdf_model *arg1 = (librdf_model *) 0 ;
4936 librdf_statement *arg2 = (librdf_statement *) 0 ;
4937 void *argp1 = 0 ;
4938 int res1 = 0 ;
4939 void *argp2 = 0 ;
4940 int res2 = 0 ;
4941 int argvi = 0;
4942 int result;
4943 dXSARGS;
4944
4945 if ((items < 2) || (items > 2)) {
4946 SWIG_croak("Usage: librdf_model_contains_statement(model,statement);");
4947 }
4948 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_statement" "', argument " "1"" of type '" "librdf_model *""'");
4951 }
4952 arg1 = (librdf_model *)(argp1);
4953 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
4954 if (!SWIG_IsOK(res2)) {
4955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_statement" "', argument " "2"" of type '" "librdf_statement *""'");
4956 }
4957 arg2 = (librdf_statement *)(argp2);
4958 result = (int)librdf_model_contains_statement(arg1,arg2);
4959 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4960
4961
4962 XSRETURN(argvi);
4963 fail:
4964
4965
4966 SWIG_croak_null();
4967 }
4968 }
4969
4970
4971 XS(_wrap_librdf_model_as_stream) {
4972 {
4973 librdf_model *arg1 = (librdf_model *) 0 ;
4974 void *argp1 = 0 ;
4975 int res1 = 0 ;
4976 int argvi = 0;
4977 librdf_stream *result = 0 ;
4978 dXSARGS;
4979
4980 if ((items < 1) || (items > 1)) {
4981 SWIG_croak("Usage: librdf_model_as_stream(model);");
4982 }
4983 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
4984 if (!SWIG_IsOK(res1)) {
4985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_as_stream" "', argument " "1"" of type '" "librdf_model *""'");
4986 }
4987 arg1 = (librdf_model *)(argp1);
4988 result = (librdf_stream *)librdf_model_as_stream(arg1);
4989 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
4990
4991 XSRETURN(argvi);
4992 fail:
4993
4994 SWIG_croak_null();
4995 }
4996 }
4997
4998
4999 XS(_wrap_librdf_model_find_statements) {
5000 {
5001 librdf_model *arg1 = (librdf_model *) 0 ;
5002 librdf_statement *arg2 = (librdf_statement *) 0 ;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 void *argp2 = 0 ;
5006 int res2 = 0 ;
5007 int argvi = 0;
5008 librdf_stream *result = 0 ;
5009 dXSARGS;
5010
5011 if ((items < 2) || (items > 2)) {
5012 SWIG_croak("Usage: librdf_model_find_statements(model,statement);");
5013 }
5014 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5015 if (!SWIG_IsOK(res1)) {
5016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements" "', argument " "1"" of type '" "librdf_model *""'");
5017 }
5018 arg1 = (librdf_model *)(argp1);
5019 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5020 if (!SWIG_IsOK(res2)) {
5021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements" "', argument " "2"" of type '" "librdf_statement *""'");
5022 }
5023 arg2 = (librdf_statement *)(argp2);
5024 result = (librdf_stream *)librdf_model_find_statements(arg1,arg2);
5025 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
5026
5027
5028 XSRETURN(argvi);
5029 fail:
5030
5031
5032 SWIG_croak_null();
5033 }
5034 }
5035
5036
5037 XS(_wrap_librdf_model_find_statements_in_context) {
5038 {
5039 librdf_model *arg1 = (librdf_model *) 0 ;
5040 librdf_statement *arg2 = (librdf_statement *) 0 ;
5041 librdf_node *arg3 = (librdf_node *) NULL ;
5042 void *argp1 = 0 ;
5043 int res1 = 0 ;
5044 void *argp2 = 0 ;
5045 int res2 = 0 ;
5046 void *argp3 = 0 ;
5047 int res3 = 0 ;
5048 int argvi = 0;
5049 librdf_stream *result = 0 ;
5050 dXSARGS;
5051
5052 if ((items < 2) || (items > 3)) {
5053 SWIG_croak("Usage: librdf_model_find_statements_in_context(model,statement,inNodeOrNull);");
5054 }
5055 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5056 if (!SWIG_IsOK(res1)) {
5057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_find_statements_in_context" "', argument " "1"" of type '" "librdf_model *""'");
5058 }
5059 arg1 = (librdf_model *)(argp1);
5060 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5061 if (!SWIG_IsOK(res2)) {
5062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_find_statements_in_context" "', argument " "2"" of type '" "librdf_statement *""'");
5063 }
5064 arg2 = (librdf_statement *)(argp2);
5065 if (items > 2) {
5066 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5067 if (!SWIG_IsOK(res3)) {
5068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_find_statements_in_context" "', argument " "3"" of type '" "librdf_node *""'");
5069 }
5070 arg3 = (librdf_node *)(argp3);
5071 }
5072 result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3);
5073 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
5074
5075
5076
5077 XSRETURN(argvi);
5078 fail:
5079
5080
5081
5082 SWIG_croak_null();
5083 }
5084 }
5085
5086
5087 XS(_wrap_librdf_model_get_sources) {
5088 {
5089 librdf_model *arg1 = (librdf_model *) 0 ;
5090 librdf_node *arg2 = (librdf_node *) 0 ;
5091 librdf_node *arg3 = (librdf_node *) 0 ;
5092 void *argp1 = 0 ;
5093 int res1 = 0 ;
5094 void *argp2 = 0 ;
5095 int res2 = 0 ;
5096 void *argp3 = 0 ;
5097 int res3 = 0 ;
5098 int argvi = 0;
5099 librdf_iterator *result = 0 ;
5100 dXSARGS;
5101
5102 if ((items < 3) || (items > 3)) {
5103 SWIG_croak("Usage: librdf_model_get_sources(model,arc,target);");
5104 }
5105 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5106 if (!SWIG_IsOK(res1)) {
5107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_sources" "', argument " "1"" of type '" "librdf_model *""'");
5108 }
5109 arg1 = (librdf_model *)(argp1);
5110 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5111 if (!SWIG_IsOK(res2)) {
5112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_sources" "', argument " "2"" of type '" "librdf_node *""'");
5113 }
5114 arg2 = (librdf_node *)(argp2);
5115 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5116 if (!SWIG_IsOK(res3)) {
5117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_sources" "', argument " "3"" of type '" "librdf_node *""'");
5118 }
5119 arg3 = (librdf_node *)(argp3);
5120 result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3);
5121 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5122
5123
5124
5125 XSRETURN(argvi);
5126 fail:
5127
5128
5129
5130 SWIG_croak_null();
5131 }
5132 }
5133
5134
5135 XS(_wrap_librdf_model_get_arcs) {
5136 {
5137 librdf_model *arg1 = (librdf_model *) 0 ;
5138 librdf_node *arg2 = (librdf_node *) 0 ;
5139 librdf_node *arg3 = (librdf_node *) 0 ;
5140 void *argp1 = 0 ;
5141 int res1 = 0 ;
5142 void *argp2 = 0 ;
5143 int res2 = 0 ;
5144 void *argp3 = 0 ;
5145 int res3 = 0 ;
5146 int argvi = 0;
5147 librdf_iterator *result = 0 ;
5148 dXSARGS;
5149
5150 if ((items < 3) || (items > 3)) {
5151 SWIG_croak("Usage: librdf_model_get_arcs(model,source,target);");
5152 }
5153 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5154 if (!SWIG_IsOK(res1)) {
5155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs" "', argument " "1"" of type '" "librdf_model *""'");
5156 }
5157 arg1 = (librdf_model *)(argp1);
5158 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5159 if (!SWIG_IsOK(res2)) {
5160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs" "', argument " "2"" of type '" "librdf_node *""'");
5161 }
5162 arg2 = (librdf_node *)(argp2);
5163 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5164 if (!SWIG_IsOK(res3)) {
5165 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arcs" "', argument " "3"" of type '" "librdf_node *""'");
5166 }
5167 arg3 = (librdf_node *)(argp3);
5168 result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3);
5169 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5170
5171
5172
5173 XSRETURN(argvi);
5174 fail:
5175
5176
5177
5178 SWIG_croak_null();
5179 }
5180 }
5181
5182
5183 XS(_wrap_librdf_model_get_targets) {
5184 {
5185 librdf_model *arg1 = (librdf_model *) 0 ;
5186 librdf_node *arg2 = (librdf_node *) 0 ;
5187 librdf_node *arg3 = (librdf_node *) 0 ;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 void *argp2 = 0 ;
5191 int res2 = 0 ;
5192 void *argp3 = 0 ;
5193 int res3 = 0 ;
5194 int argvi = 0;
5195 librdf_iterator *result = 0 ;
5196 dXSARGS;
5197
5198 if ((items < 3) || (items > 3)) {
5199 SWIG_croak("Usage: librdf_model_get_targets(model,source,arc);");
5200 }
5201 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5202 if (!SWIG_IsOK(res1)) {
5203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_targets" "', argument " "1"" of type '" "librdf_model *""'");
5204 }
5205 arg1 = (librdf_model *)(argp1);
5206 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5207 if (!SWIG_IsOK(res2)) {
5208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_targets" "', argument " "2"" of type '" "librdf_node *""'");
5209 }
5210 arg2 = (librdf_node *)(argp2);
5211 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5212 if (!SWIG_IsOK(res3)) {
5213 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_targets" "', argument " "3"" of type '" "librdf_node *""'");
5214 }
5215 arg3 = (librdf_node *)(argp3);
5216 result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3);
5217 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5218
5219
5220
5221 XSRETURN(argvi);
5222 fail:
5223
5224
5225
5226 SWIG_croak_null();
5227 }
5228 }
5229
5230
5231 XS(_wrap_librdf_model_get_source) {
5232 {
5233 librdf_model *arg1 = (librdf_model *) 0 ;
5234 librdf_node *arg2 = (librdf_node *) 0 ;
5235 librdf_node *arg3 = (librdf_node *) 0 ;
5236 void *argp1 = 0 ;
5237 int res1 = 0 ;
5238 void *argp2 = 0 ;
5239 int res2 = 0 ;
5240 void *argp3 = 0 ;
5241 int res3 = 0 ;
5242 int argvi = 0;
5243 librdf_node *result = 0 ;
5244 dXSARGS;
5245
5246 if ((items < 3) || (items > 3)) {
5247 SWIG_croak("Usage: librdf_model_get_source(model,arc,target);");
5248 }
5249 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5250 if (!SWIG_IsOK(res1)) {
5251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_source" "', argument " "1"" of type '" "librdf_model *""'");
5252 }
5253 arg1 = (librdf_model *)(argp1);
5254 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5255 if (!SWIG_IsOK(res2)) {
5256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_source" "', argument " "2"" of type '" "librdf_node *""'");
5257 }
5258 arg2 = (librdf_node *)(argp2);
5259 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5260 if (!SWIG_IsOK(res3)) {
5261 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_source" "', argument " "3"" of type '" "librdf_node *""'");
5262 }
5263 arg3 = (librdf_node *)(argp3);
5264 result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3);
5265 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
5266
5267
5268
5269 XSRETURN(argvi);
5270 fail:
5271
5272
5273
5274 SWIG_croak_null();
5275 }
5276 }
5277
5278
5279 XS(_wrap_librdf_model_get_arc) {
5280 {
5281 librdf_model *arg1 = (librdf_model *) 0 ;
5282 librdf_node *arg2 = (librdf_node *) 0 ;
5283 librdf_node *arg3 = (librdf_node *) 0 ;
5284 void *argp1 = 0 ;
5285 int res1 = 0 ;
5286 void *argp2 = 0 ;
5287 int res2 = 0 ;
5288 void *argp3 = 0 ;
5289 int res3 = 0 ;
5290 int argvi = 0;
5291 librdf_node *result = 0 ;
5292 dXSARGS;
5293
5294 if ((items < 3) || (items > 3)) {
5295 SWIG_croak("Usage: librdf_model_get_arc(model,source,target);");
5296 }
5297 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5298 if (!SWIG_IsOK(res1)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arc" "', argument " "1"" of type '" "librdf_model *""'");
5300 }
5301 arg1 = (librdf_model *)(argp1);
5302 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5303 if (!SWIG_IsOK(res2)) {
5304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arc" "', argument " "2"" of type '" "librdf_node *""'");
5305 }
5306 arg2 = (librdf_node *)(argp2);
5307 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5308 if (!SWIG_IsOK(res3)) {
5309 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_arc" "', argument " "3"" of type '" "librdf_node *""'");
5310 }
5311 arg3 = (librdf_node *)(argp3);
5312 result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3);
5313 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
5314
5315
5316
5317 XSRETURN(argvi);
5318 fail:
5319
5320
5321
5322 SWIG_croak_null();
5323 }
5324 }
5325
5326
5327 XS(_wrap_librdf_model_get_arcs_out) {
5328 {
5329 librdf_model *arg1 = (librdf_model *) 0 ;
5330 librdf_node *arg2 = (librdf_node *) 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 void *argp2 = 0 ;
5334 int res2 = 0 ;
5335 int argvi = 0;
5336 librdf_iterator *result = 0 ;
5337 dXSARGS;
5338
5339 if ((items < 2) || (items > 2)) {
5340 SWIG_croak("Usage: librdf_model_get_arcs_out(model,node);");
5341 }
5342 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5343 if (!SWIG_IsOK(res1)) {
5344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_out" "', argument " "1"" of type '" "librdf_model *""'");
5345 }
5346 arg1 = (librdf_model *)(argp1);
5347 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5348 if (!SWIG_IsOK(res2)) {
5349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_out" "', argument " "2"" of type '" "librdf_node *""'");
5350 }
5351 arg2 = (librdf_node *)(argp2);
5352 result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2);
5353 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5354
5355
5356 XSRETURN(argvi);
5357 fail:
5358
5359
5360 SWIG_croak_null();
5361 }
5362 }
5363
5364
5365 XS(_wrap_librdf_model_get_arcs_in) {
5366 {
5367 librdf_model *arg1 = (librdf_model *) 0 ;
5368 librdf_node *arg2 = (librdf_node *) 0 ;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 void *argp2 = 0 ;
5372 int res2 = 0 ;
5373 int argvi = 0;
5374 librdf_iterator *result = 0 ;
5375 dXSARGS;
5376
5377 if ((items < 2) || (items > 2)) {
5378 SWIG_croak("Usage: librdf_model_get_arcs_in(model,node);");
5379 }
5380 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_arcs_in" "', argument " "1"" of type '" "librdf_model *""'");
5383 }
5384 arg1 = (librdf_model *)(argp1);
5385 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5386 if (!SWIG_IsOK(res2)) {
5387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_arcs_in" "', argument " "2"" of type '" "librdf_node *""'");
5388 }
5389 arg2 = (librdf_node *)(argp2);
5390 result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2);
5391 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5392
5393
5394 XSRETURN(argvi);
5395 fail:
5396
5397
5398 SWIG_croak_null();
5399 }
5400 }
5401
5402
5403 XS(_wrap_librdf_model_has_arc_in) {
5404 {
5405 librdf_model *arg1 = (librdf_model *) 0 ;
5406 librdf_node *arg2 = (librdf_node *) 0 ;
5407 librdf_node *arg3 = (librdf_node *) 0 ;
5408 void *argp1 = 0 ;
5409 int res1 = 0 ;
5410 void *argp2 = 0 ;
5411 int res2 = 0 ;
5412 void *argp3 = 0 ;
5413 int res3 = 0 ;
5414 int argvi = 0;
5415 int result;
5416 dXSARGS;
5417
5418 if ((items < 3) || (items > 3)) {
5419 SWIG_croak("Usage: librdf_model_has_arc_in(model,node,property);");
5420 }
5421 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5422 if (!SWIG_IsOK(res1)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_in" "', argument " "1"" of type '" "librdf_model *""'");
5424 }
5425 arg1 = (librdf_model *)(argp1);
5426 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5427 if (!SWIG_IsOK(res2)) {
5428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_in" "', argument " "2"" of type '" "librdf_node *""'");
5429 }
5430 arg2 = (librdf_node *)(argp2);
5431 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5432 if (!SWIG_IsOK(res3)) {
5433 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_in" "', argument " "3"" of type '" "librdf_node *""'");
5434 }
5435 arg3 = (librdf_node *)(argp3);
5436 result = (int)librdf_model_has_arc_in(arg1,arg2,arg3);
5437 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5438
5439
5440
5441 XSRETURN(argvi);
5442 fail:
5443
5444
5445
5446 SWIG_croak_null();
5447 }
5448 }
5449
5450
5451 XS(_wrap_librdf_model_has_arc_out) {
5452 {
5453 librdf_model *arg1 = (librdf_model *) 0 ;
5454 librdf_node *arg2 = (librdf_node *) 0 ;
5455 librdf_node *arg3 = (librdf_node *) 0 ;
5456 void *argp1 = 0 ;
5457 int res1 = 0 ;
5458 void *argp2 = 0 ;
5459 int res2 = 0 ;
5460 void *argp3 = 0 ;
5461 int res3 = 0 ;
5462 int argvi = 0;
5463 int result;
5464 dXSARGS;
5465
5466 if ((items < 3) || (items > 3)) {
5467 SWIG_croak("Usage: librdf_model_has_arc_out(model,node,property);");
5468 }
5469 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5470 if (!SWIG_IsOK(res1)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_has_arc_out" "', argument " "1"" of type '" "librdf_model *""'");
5472 }
5473 arg1 = (librdf_model *)(argp1);
5474 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5475 if (!SWIG_IsOK(res2)) {
5476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_has_arc_out" "', argument " "2"" of type '" "librdf_node *""'");
5477 }
5478 arg2 = (librdf_node *)(argp2);
5479 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5480 if (!SWIG_IsOK(res3)) {
5481 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_has_arc_out" "', argument " "3"" of type '" "librdf_node *""'");
5482 }
5483 arg3 = (librdf_node *)(argp3);
5484 result = (int)librdf_model_has_arc_out(arg1,arg2,arg3);
5485 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5486
5487
5488
5489 XSRETURN(argvi);
5490 fail:
5491
5492
5493
5494 SWIG_croak_null();
5495 }
5496 }
5497
5498
5499 XS(_wrap_librdf_model_get_target) {
5500 {
5501 librdf_model *arg1 = (librdf_model *) 0 ;
5502 librdf_node *arg2 = (librdf_node *) 0 ;
5503 librdf_node *arg3 = (librdf_node *) 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 void *argp2 = 0 ;
5507 int res2 = 0 ;
5508 void *argp3 = 0 ;
5509 int res3 = 0 ;
5510 int argvi = 0;
5511 librdf_node *result = 0 ;
5512 dXSARGS;
5513
5514 if ((items < 3) || (items > 3)) {
5515 SWIG_croak("Usage: librdf_model_get_target(model,source,arc);");
5516 }
5517 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5518 if (!SWIG_IsOK(res1)) {
5519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_target" "', argument " "1"" of type '" "librdf_model *""'");
5520 }
5521 arg1 = (librdf_model *)(argp1);
5522 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5523 if (!SWIG_IsOK(res2)) {
5524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_target" "', argument " "2"" of type '" "librdf_node *""'");
5525 }
5526 arg2 = (librdf_node *)(argp2);
5527 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5528 if (!SWIG_IsOK(res3)) {
5529 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_get_target" "', argument " "3"" of type '" "librdf_node *""'");
5530 }
5531 arg3 = (librdf_node *)(argp3);
5532 result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3);
5533 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
5534
5535
5536
5537 XSRETURN(argvi);
5538 fail:
5539
5540
5541
5542 SWIG_croak_null();
5543 }
5544 }
5545
5546
5547 XS(_wrap_librdf_model_context_add_statement) {
5548 {
5549 librdf_model *arg1 = (librdf_model *) 0 ;
5550 librdf_node *arg2 = (librdf_node *) 0 ;
5551 librdf_statement *arg3 = (librdf_statement *) 0 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 void *argp2 = 0 ;
5555 int res2 = 0 ;
5556 void *argp3 = 0 ;
5557 int res3 = 0 ;
5558 int argvi = 0;
5559 int result;
5560 dXSARGS;
5561
5562 if ((items < 3) || (items > 3)) {
5563 SWIG_croak("Usage: librdf_model_context_add_statement(model,context,statement);");
5564 }
5565 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5566 if (!SWIG_IsOK(res1)) {
5567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statement" "', argument " "1"" of type '" "librdf_model *""'");
5568 }
5569 arg1 = (librdf_model *)(argp1);
5570 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5571 if (!SWIG_IsOK(res2)) {
5572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statement" "', argument " "2"" of type '" "librdf_node *""'");
5573 }
5574 arg2 = (librdf_node *)(argp2);
5575 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5576 if (!SWIG_IsOK(res3)) {
5577 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statement" "', argument " "3"" of type '" "librdf_statement *""'");
5578 }
5579 arg3 = (librdf_statement *)(argp3);
5580 result = (int)librdf_model_context_add_statement(arg1,arg2,arg3);
5581 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5582
5583
5584
5585 XSRETURN(argvi);
5586 fail:
5587
5588
5589
5590 SWIG_croak_null();
5591 }
5592 }
5593
5594
5595 XS(_wrap_librdf_model_context_add_statements) {
5596 {
5597 librdf_model *arg1 = (librdf_model *) 0 ;
5598 librdf_node *arg2 = (librdf_node *) 0 ;
5599 librdf_stream *arg3 = (librdf_stream *) 0 ;
5600 void *argp1 = 0 ;
5601 int res1 = 0 ;
5602 void *argp2 = 0 ;
5603 int res2 = 0 ;
5604 void *argp3 = 0 ;
5605 int res3 = 0 ;
5606 int argvi = 0;
5607 int result;
5608 dXSARGS;
5609
5610 if ((items < 3) || (items > 3)) {
5611 SWIG_croak("Usage: librdf_model_context_add_statements(model,context,stream);");
5612 }
5613 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_add_statements" "', argument " "1"" of type '" "librdf_model *""'");
5616 }
5617 arg1 = (librdf_model *)(argp1);
5618 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5619 if (!SWIG_IsOK(res2)) {
5620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_add_statements" "', argument " "2"" of type '" "librdf_node *""'");
5621 }
5622 arg2 = (librdf_node *)(argp2);
5623 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
5624 if (!SWIG_IsOK(res3)) {
5625 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_add_statements" "', argument " "3"" of type '" "librdf_stream *""'");
5626 }
5627 arg3 = (librdf_stream *)(argp3);
5628 result = (int)librdf_model_context_add_statements(arg1,arg2,arg3);
5629 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5630
5631
5632
5633 XSRETURN(argvi);
5634 fail:
5635
5636
5637
5638 SWIG_croak_null();
5639 }
5640 }
5641
5642
5643 XS(_wrap_librdf_model_context_remove_statement) {
5644 {
5645 librdf_model *arg1 = (librdf_model *) 0 ;
5646 librdf_node *arg2 = (librdf_node *) 0 ;
5647 librdf_statement *arg3 = (librdf_statement *) 0 ;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 void *argp2 = 0 ;
5651 int res2 = 0 ;
5652 void *argp3 = 0 ;
5653 int res3 = 0 ;
5654 int argvi = 0;
5655 int result;
5656 dXSARGS;
5657
5658 if ((items < 3) || (items > 3)) {
5659 SWIG_croak("Usage: librdf_model_context_remove_statement(model,context,statement);");
5660 }
5661 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statement" "', argument " "1"" of type '" "librdf_model *""'");
5664 }
5665 arg1 = (librdf_model *)(argp1);
5666 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5667 if (!SWIG_IsOK(res2)) {
5668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statement" "', argument " "2"" of type '" "librdf_node *""'");
5669 }
5670 arg2 = (librdf_node *)(argp2);
5671 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_statement_s, 0 | 0 );
5672 if (!SWIG_IsOK(res3)) {
5673 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_context_remove_statement" "', argument " "3"" of type '" "librdf_statement *""'");
5674 }
5675 arg3 = (librdf_statement *)(argp3);
5676 result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3);
5677 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5678
5679
5680
5681 XSRETURN(argvi);
5682 fail:
5683
5684
5685
5686 SWIG_croak_null();
5687 }
5688 }
5689
5690
5691 XS(_wrap_librdf_model_context_remove_statements) {
5692 {
5693 librdf_model *arg1 = (librdf_model *) 0 ;
5694 librdf_node *arg2 = (librdf_node *) 0 ;
5695 void *argp1 = 0 ;
5696 int res1 = 0 ;
5697 void *argp2 = 0 ;
5698 int res2 = 0 ;
5699 int argvi = 0;
5700 int result;
5701 dXSARGS;
5702
5703 if ((items < 2) || (items > 2)) {
5704 SWIG_croak("Usage: librdf_model_context_remove_statements(model,context);");
5705 }
5706 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5707 if (!SWIG_IsOK(res1)) {
5708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_remove_statements" "', argument " "1"" of type '" "librdf_model *""'");
5709 }
5710 arg1 = (librdf_model *)(argp1);
5711 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5712 if (!SWIG_IsOK(res2)) {
5713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_remove_statements" "', argument " "2"" of type '" "librdf_node *""'");
5714 }
5715 arg2 = (librdf_node *)(argp2);
5716 result = (int)librdf_model_context_remove_statements(arg1,arg2);
5717 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5718
5719
5720 XSRETURN(argvi);
5721 fail:
5722
5723
5724 SWIG_croak_null();
5725 }
5726 }
5727
5728
5729 XS(_wrap_librdf_model_context_as_stream) {
5730 {
5731 librdf_model *arg1 = (librdf_model *) 0 ;
5732 librdf_node *arg2 = (librdf_node *) 0 ;
5733 void *argp1 = 0 ;
5734 int res1 = 0 ;
5735 void *argp2 = 0 ;
5736 int res2 = 0 ;
5737 int argvi = 0;
5738 librdf_stream *result = 0 ;
5739 dXSARGS;
5740
5741 if ((items < 2) || (items > 2)) {
5742 SWIG_croak("Usage: librdf_model_context_as_stream(model,context);");
5743 }
5744 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5745 if (!SWIG_IsOK(res1)) {
5746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_context_as_stream" "', argument " "1"" of type '" "librdf_model *""'");
5747 }
5748 arg1 = (librdf_model *)(argp1);
5749 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5750 if (!SWIG_IsOK(res2)) {
5751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_context_as_stream" "', argument " "2"" of type '" "librdf_node *""'");
5752 }
5753 arg2 = (librdf_node *)(argp2);
5754 result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2);
5755 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
5756
5757
5758 XSRETURN(argvi);
5759 fail:
5760
5761
5762 SWIG_croak_null();
5763 }
5764 }
5765
5766
5767 XS(_wrap_librdf_model_sync) {
5768 {
5769 librdf_model *arg1 = (librdf_model *) 0 ;
5770 void *argp1 = 0 ;
5771 int res1 = 0 ;
5772 int argvi = 0;
5773 dXSARGS;
5774
5775 if ((items < 1) || (items > 1)) {
5776 SWIG_croak("Usage: librdf_model_sync(model);");
5777 }
5778 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5779 if (!SWIG_IsOK(res1)) {
5780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_sync" "', argument " "1"" of type '" "librdf_model *""'");
5781 }
5782 arg1 = (librdf_model *)(argp1);
5783 librdf_model_sync(arg1);
5784 ST(argvi) = sv_newmortal();
5785
5786 XSRETURN(argvi);
5787 fail:
5788
5789 SWIG_croak_null();
5790 }
5791 }
5792
5793
5794 XS(_wrap_librdf_model_get_contexts) {
5795 {
5796 librdf_model *arg1 = (librdf_model *) 0 ;
5797 void *argp1 = 0 ;
5798 int res1 = 0 ;
5799 int argvi = 0;
5800 librdf_iterator *result = 0 ;
5801 dXSARGS;
5802
5803 if ((items < 1) || (items > 1)) {
5804 SWIG_croak("Usage: librdf_model_get_contexts(model);");
5805 }
5806 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5807 if (!SWIG_IsOK(res1)) {
5808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_contexts" "', argument " "1"" of type '" "librdf_model *""'");
5809 }
5810 arg1 = (librdf_model *)(argp1);
5811 result = (librdf_iterator *)librdf_model_get_contexts(arg1);
5812 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_iterator_s, SWIG_OWNER | 0); argvi++ ;
5813
5814 XSRETURN(argvi);
5815 fail:
5816
5817 SWIG_croak_null();
5818 }
5819 }
5820
5821
5822 XS(_wrap_librdf_model_contains_context) {
5823 {
5824 librdf_model *arg1 = (librdf_model *) 0 ;
5825 librdf_node *arg2 = (librdf_node *) 0 ;
5826 void *argp1 = 0 ;
5827 int res1 = 0 ;
5828 void *argp2 = 0 ;
5829 int res2 = 0 ;
5830 int argvi = 0;
5831 int result;
5832 dXSARGS;
5833
5834 if ((items < 2) || (items > 2)) {
5835 SWIG_croak("Usage: librdf_model_contains_context(model,context);");
5836 }
5837 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5838 if (!SWIG_IsOK(res1)) {
5839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_contains_context" "', argument " "1"" of type '" "librdf_model *""'");
5840 }
5841 arg1 = (librdf_model *)(argp1);
5842 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5843 if (!SWIG_IsOK(res2)) {
5844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_contains_context" "', argument " "2"" of type '" "librdf_node *""'");
5845 }
5846 arg2 = (librdf_node *)(argp2);
5847 result = (int)librdf_model_contains_context(arg1,arg2);
5848 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5849
5850
5851 XSRETURN(argvi);
5852 fail:
5853
5854
5855 SWIG_croak_null();
5856 }
5857 }
5858
5859
5860 XS(_wrap_librdf_model_get_feature) {
5861 {
5862 librdf_model *arg1 = (librdf_model *) 0 ;
5863 librdf_uri *arg2 = (librdf_uri *) 0 ;
5864 void *argp1 = 0 ;
5865 int res1 = 0 ;
5866 void *argp2 = 0 ;
5867 int res2 = 0 ;
5868 int argvi = 0;
5869 librdf_node *result = 0 ;
5870 dXSARGS;
5871
5872 if ((items < 2) || (items > 2)) {
5873 SWIG_croak("Usage: librdf_model_get_feature(model,feature);");
5874 }
5875 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_get_feature" "', argument " "1"" of type '" "librdf_model *""'");
5878 }
5879 arg1 = (librdf_model *)(argp1);
5880 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5881 if (!SWIG_IsOK(res2)) {
5882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
5883 }
5884 arg2 = (librdf_uri *)(argp2);
5885 result = (librdf_node *)librdf_model_get_feature(arg1,arg2);
5886 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
5887
5888
5889 XSRETURN(argvi);
5890 fail:
5891
5892
5893 SWIG_croak_null();
5894 }
5895 }
5896
5897
5898 XS(_wrap_librdf_model_set_feature) {
5899 {
5900 librdf_model *arg1 = (librdf_model *) 0 ;
5901 librdf_uri *arg2 = (librdf_uri *) 0 ;
5902 librdf_node *arg3 = (librdf_node *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 void *argp2 = 0 ;
5906 int res2 = 0 ;
5907 void *argp3 = 0 ;
5908 int res3 = 0 ;
5909 int argvi = 0;
5910 int result;
5911 dXSARGS;
5912
5913 if ((items < 3) || (items > 3)) {
5914 SWIG_croak("Usage: librdf_model_set_feature(model,feature,value);");
5915 }
5916 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5917 if (!SWIG_IsOK(res1)) {
5918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_set_feature" "', argument " "1"" of type '" "librdf_model *""'");
5919 }
5920 arg1 = (librdf_model *)(argp1);
5921 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5922 if (!SWIG_IsOK(res2)) {
5923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
5924 }
5925 arg2 = (librdf_uri *)(argp2);
5926 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
5927 if (!SWIG_IsOK(res3)) {
5928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
5929 }
5930 arg3 = (librdf_node *)(argp3);
5931 result = (int)librdf_model_set_feature(arg1,arg2,arg3);
5932 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5933
5934
5935
5936 XSRETURN(argvi);
5937 fail:
5938
5939
5940
5941 SWIG_croak_null();
5942 }
5943 }
5944
5945
5946 XS(_wrap_librdf_model_load) {
5947 {
5948 librdf_model *arg1 = (librdf_model *) 0 ;
5949 librdf_uri *arg2 = (librdf_uri *) 0 ;
5950 char *arg3 = (char *) NULL ;
5951 char *arg4 = (char *) NULL ;
5952 librdf_uri *arg5 = (librdf_uri *) NULL ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 void *argp2 = 0 ;
5956 int res2 = 0 ;
5957 int res3 ;
5958 char *buf3 = 0 ;
5959 int alloc3 = 0 ;
5960 int res4 ;
5961 char *buf4 = 0 ;
5962 int alloc4 = 0 ;
5963 void *argp5 = 0 ;
5964 int res5 = 0 ;
5965 int argvi = 0;
5966 int result;
5967 dXSARGS;
5968
5969 if ((items < 2) || (items > 5)) {
5970 SWIG_croak("Usage: librdf_model_load(model,uri,inStrOrNull,inStrOrNull,type_uri);");
5971 }
5972 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
5973 if (!SWIG_IsOK(res1)) {
5974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_load" "', argument " "1"" of type '" "librdf_model *""'");
5975 }
5976 arg1 = (librdf_model *)(argp1);
5977 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5978 if (!SWIG_IsOK(res2)) {
5979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_load" "', argument " "2"" of type '" "librdf_uri *""'");
5980 }
5981 arg2 = (librdf_uri *)(argp2);
5982 if (items > 2) {
5983 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
5984 if (!SWIG_IsOK(res3)) {
5985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_load" "', argument " "3"" of type '" "char const *""'");
5986 }
5987 arg3 = (char *)(buf3);
5988 }
5989 if (items > 3) {
5990 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
5991 if (!SWIG_IsOK(res4)) {
5992 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_load" "', argument " "4"" of type '" "char const *""'");
5993 }
5994 arg4 = (char *)(buf4);
5995 }
5996 if (items > 4) {
5997 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
5998 if (!SWIG_IsOK(res5)) {
5999 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_load" "', argument " "5"" of type '" "librdf_uri *""'");
6000 }
6001 arg5 = (librdf_uri *)(argp5);
6002 }
6003 result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
6004 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6005
6006
6007 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6008 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6009
6010 XSRETURN(argvi);
6011 fail:
6012
6013
6014 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6015 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6016
6017 SWIG_croak_null();
6018 }
6019 }
6020
6021
6022 XS(_wrap_librdf_model_query_execute) {
6023 {
6024 librdf_model *arg1 = (librdf_model *) 0 ;
6025 librdf_query *arg2 = (librdf_query *) 0 ;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 void *argp2 = 0 ;
6029 int res2 = 0 ;
6030 int argvi = 0;
6031 librdf_query_results *result = 0 ;
6032 dXSARGS;
6033
6034 if ((items < 2) || (items > 2)) {
6035 SWIG_croak("Usage: librdf_model_query_execute(model,query);");
6036 }
6037 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_query_execute" "', argument " "1"" of type '" "librdf_model *""'");
6040 }
6041 arg1 = (librdf_model *)(argp1);
6042 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_query, 0 | 0 );
6043 if (!SWIG_IsOK(res2)) {
6044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_query_execute" "', argument " "2"" of type '" "librdf_query *""'");
6045 }
6046 arg2 = (librdf_query *)(argp2);
6047 result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2);
6048 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_OWNER | 0); argvi++ ;
6049
6050
6051 XSRETURN(argvi);
6052 fail:
6053
6054
6055 SWIG_croak_null();
6056 }
6057 }
6058
6059
6060 XS(_wrap_librdf_model_to_string) {
6061 {
6062 librdf_model *arg1 = (librdf_model *) 0 ;
6063 librdf_uri *arg2 = (librdf_uri *) 0 ;
6064 char *arg3 = (char *) NULL ;
6065 char *arg4 = (char *) NULL ;
6066 librdf_uri *arg5 = (librdf_uri *) NULL ;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 void *argp2 = 0 ;
6070 int res2 = 0 ;
6071 int res3 ;
6072 char *buf3 = 0 ;
6073 int alloc3 = 0 ;
6074 int res4 ;
6075 char *buf4 = 0 ;
6076 int alloc4 = 0 ;
6077 void *argp5 = 0 ;
6078 int res5 = 0 ;
6079 int argvi = 0;
6080 char *result = 0 ;
6081 dXSARGS;
6082
6083 if ((items < 2) || (items > 5)) {
6084 SWIG_croak("Usage: librdf_model_to_string(model,uri,inStrOrNull,inStrOrNull,inUriOrNull);");
6085 }
6086 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6087 if (!SWIG_IsOK(res1)) {
6088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_to_string" "', argument " "1"" of type '" "librdf_model *""'");
6089 }
6090 arg1 = (librdf_model *)(argp1);
6091 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6092 if (!SWIG_IsOK(res2)) {
6093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
6094 }
6095 arg2 = (librdf_uri *)(argp2);
6096 if (items > 2) {
6097 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
6098 if (!SWIG_IsOK(res3)) {
6099 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_model_to_string" "', argument " "3"" of type '" "char const *""'");
6100 }
6101 arg3 = (char *)(buf3);
6102 }
6103 if (items > 3) {
6104 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
6105 if (!SWIG_IsOK(res4)) {
6106 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_model_to_string" "', argument " "4"" of type '" "char const *""'");
6107 }
6108 arg4 = (char *)(buf4);
6109 }
6110 if (items > 4) {
6111 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6112 if (!SWIG_IsOK(res5)) {
6113 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_model_to_string" "', argument " "5"" of type '" "librdf_uri *""'");
6114 }
6115 arg5 = (librdf_uri *)(argp5);
6116 }
6117 result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
6118 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
6119
6120
6121 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6122 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6123
6124 free((char*)result);
6125 XSRETURN(argvi);
6126 fail:
6127
6128
6129 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6130 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6131
6132 SWIG_croak_null();
6133 }
6134 }
6135
6136
6137 XS(_wrap_librdf_model_transaction_start) {
6138 {
6139 librdf_model *arg1 = (librdf_model *) 0 ;
6140 void *argp1 = 0 ;
6141 int res1 = 0 ;
6142 int argvi = 0;
6143 int result;
6144 dXSARGS;
6145
6146 if ((items < 1) || (items > 1)) {
6147 SWIG_croak("Usage: librdf_model_transaction_start(model);");
6148 }
6149 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_start" "', argument " "1"" of type '" "librdf_model *""'");
6152 }
6153 arg1 = (librdf_model *)(argp1);
6154 result = (int)librdf_model_transaction_start(arg1);
6155 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6156
6157 XSRETURN(argvi);
6158 fail:
6159
6160 SWIG_croak_null();
6161 }
6162 }
6163
6164
6165 XS(_wrap_librdf_model_transaction_commit) {
6166 {
6167 librdf_model *arg1 = (librdf_model *) 0 ;
6168 void *argp1 = 0 ;
6169 int res1 = 0 ;
6170 int argvi = 0;
6171 int result;
6172 dXSARGS;
6173
6174 if ((items < 1) || (items > 1)) {
6175 SWIG_croak("Usage: librdf_model_transaction_commit(model);");
6176 }
6177 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6178 if (!SWIG_IsOK(res1)) {
6179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_commit" "', argument " "1"" of type '" "librdf_model *""'");
6180 }
6181 arg1 = (librdf_model *)(argp1);
6182 result = (int)librdf_model_transaction_commit(arg1);
6183 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6184
6185 XSRETURN(argvi);
6186 fail:
6187
6188 SWIG_croak_null();
6189 }
6190 }
6191
6192
6193 XS(_wrap_librdf_model_transaction_rollback) {
6194 {
6195 librdf_model *arg1 = (librdf_model *) 0 ;
6196 void *argp1 = 0 ;
6197 int res1 = 0 ;
6198 int argvi = 0;
6199 int result;
6200 dXSARGS;
6201
6202 if ((items < 1) || (items > 1)) {
6203 SWIG_croak("Usage: librdf_model_transaction_rollback(model);");
6204 }
6205 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_model_transaction_rollback" "', argument " "1"" of type '" "librdf_model *""'");
6208 }
6209 arg1 = (librdf_model *)(argp1);
6210 result = (int)librdf_model_transaction_rollback(arg1);
6211 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6212
6213 XSRETURN(argvi);
6214 fail:
6215
6216 SWIG_croak_null();
6217 }
6218 }
6219
6220
6221 XS(_wrap_librdf_new_storage) {
6222 {
6223 librdf_world *arg1 = (librdf_world *) 0 ;
6224 char *arg2 = (char *) 0 ;
6225 char *arg3 = (char *) 0 ;
6226 char *arg4 = (char *) 0 ;
6227 void *argp1 = 0 ;
6228 int res1 = 0 ;
6229 int res2 ;
6230 char *buf2 = 0 ;
6231 int alloc2 = 0 ;
6232 int res3 ;
6233 char *buf3 = 0 ;
6234 int alloc3 = 0 ;
6235 int res4 ;
6236 char *buf4 = 0 ;
6237 int alloc4 = 0 ;
6238 int argvi = 0;
6239 librdf_storage *result = 0 ;
6240 dXSARGS;
6241
6242 if ((items < 4) || (items > 4)) {
6243 SWIG_croak("Usage: librdf_new_storage(world,storage_name,name,options_string);");
6244 }
6245 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage" "', argument " "1"" of type '" "librdf_world *""'");
6248 }
6249 arg1 = (librdf_world *)(argp1);
6250 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6251 if (!SWIG_IsOK(res2)) {
6252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_storage" "', argument " "2"" of type '" "char *""'");
6253 }
6254 arg2 = (char *)(buf2);
6255 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
6256 if (!SWIG_IsOK(res3)) {
6257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_storage" "', argument " "3"" of type '" "char *""'");
6258 }
6259 arg3 = (char *)(buf3);
6260 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
6261 if (!SWIG_IsOK(res4)) {
6262 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_storage" "', argument " "4"" of type '" "char *""'");
6263 }
6264 arg4 = (char *)(buf4);
6265 result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4);
6266 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_OWNER | 0); argvi++ ;
6267
6268 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6269 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6270 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6271 XSRETURN(argvi);
6272 fail:
6273
6274 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6275 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6276 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6277 SWIG_croak_null();
6278 }
6279 }
6280
6281
6282 XS(_wrap_librdf_new_storage_from_storage) {
6283 {
6284 librdf_storage *arg1 = (librdf_storage *) 0 ;
6285 void *argp1 = 0 ;
6286 int res1 = 0 ;
6287 int argvi = 0;
6288 librdf_storage *result = 0 ;
6289 dXSARGS;
6290
6291 if ((items < 1) || (items > 1)) {
6292 SWIG_croak("Usage: librdf_new_storage_from_storage(old_storage);");
6293 }
6294 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
6295 if (!SWIG_IsOK(res1)) {
6296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_storage_from_storage" "', argument " "1"" of type '" "librdf_storage *""'");
6297 }
6298 arg1 = (librdf_storage *)(argp1);
6299 result = (librdf_storage *)librdf_new_storage_from_storage(arg1);
6300 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_storage_s, SWIG_OWNER | 0); argvi++ ;
6301
6302 XSRETURN(argvi);
6303 fail:
6304
6305 SWIG_croak_null();
6306 }
6307 }
6308
6309
6310 XS(_wrap_librdf_free_storage) {
6311 {
6312 librdf_storage *arg1 = (librdf_storage *) 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int argvi = 0;
6316 dXSARGS;
6317
6318 if ((items < 1) || (items > 1)) {
6319 SWIG_croak("Usage: librdf_free_storage(storage);");
6320 }
6321 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_storage_s, 0 | 0 );
6322 if (!SWIG_IsOK(res1)) {
6323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_storage" "', argument " "1"" of type '" "librdf_storage *""'");
6324 }
6325 arg1 = (librdf_storage *)(argp1);
6326 librdf_free_storage(arg1);
6327 ST(argvi) = sv_newmortal();
6328
6329 XSRETURN(argvi);
6330 fail:
6331
6332 SWIG_croak_null();
6333 }
6334 }
6335
6336
6337 XS(_wrap_librdf_parser_check_name) {
6338 {
6339 librdf_world *arg1 = (librdf_world *) 0 ;
6340 char *arg2 = (char *) 0 ;
6341 void *argp1 = 0 ;
6342 int res1 = 0 ;
6343 int res2 ;
6344 char *buf2 = 0 ;
6345 int alloc2 = 0 ;
6346 int argvi = 0;
6347 int result;
6348 dXSARGS;
6349
6350 if ((items < 2) || (items > 2)) {
6351 SWIG_croak("Usage: librdf_parser_check_name(world,name);");
6352 }
6353 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6354 if (!SWIG_IsOK(res1)) {
6355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_check_name" "', argument " "1"" of type '" "librdf_world *""'");
6356 }
6357 arg1 = (librdf_world *)(argp1);
6358 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6359 if (!SWIG_IsOK(res2)) {
6360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_check_name" "', argument " "2"" of type '" "char const *""'");
6361 }
6362 arg2 = (char *)(buf2);
6363 result = (int)librdf_parser_check_name(arg1,(char const *)arg2);
6364 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6365
6366 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6367 XSRETURN(argvi);
6368 fail:
6369
6370 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6371 SWIG_croak_null();
6372 }
6373 }
6374
6375
6376 XS(_wrap_librdf_new_parser) {
6377 {
6378 librdf_world *arg1 = (librdf_world *) 0 ;
6379 char *arg2 = (char *) 0 ;
6380 char *arg3 = (char *) 0 ;
6381 librdf_uri *arg4 = (librdf_uri *) 0 ;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 int res2 ;
6385 char *buf2 = 0 ;
6386 int alloc2 = 0 ;
6387 int res3 ;
6388 char *buf3 = 0 ;
6389 int alloc3 = 0 ;
6390 void *argp4 = 0 ;
6391 int res4 = 0 ;
6392 int argvi = 0;
6393 librdf_parser *result = 0 ;
6394 dXSARGS;
6395
6396 if ((items < 4) || (items > 4)) {
6397 SWIG_croak("Usage: librdf_new_parser(world,name,mime_type,type_uri);");
6398 }
6399 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_parser" "', argument " "1"" of type '" "librdf_world *""'");
6402 }
6403 arg1 = (librdf_world *)(argp1);
6404 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6405 if (!SWIG_IsOK(res2)) {
6406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_parser" "', argument " "2"" of type '" "char const *""'");
6407 }
6408 arg2 = (char *)(buf2);
6409 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
6410 if (!SWIG_IsOK(res3)) {
6411 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_parser" "', argument " "3"" of type '" "char const *""'");
6412 }
6413 arg3 = (char *)(buf3);
6414 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6415 if (!SWIG_IsOK(res4)) {
6416 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_parser" "', argument " "4"" of type '" "librdf_uri *""'");
6417 }
6418 arg4 = (librdf_uri *)(argp4);
6419 result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4);
6420 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_parser_s, SWIG_OWNER | 0); argvi++ ;
6421
6422 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6423 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6424
6425 XSRETURN(argvi);
6426 fail:
6427
6428 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6429 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6430
6431 SWIG_croak_null();
6432 }
6433 }
6434
6435
6436 XS(_wrap_librdf_free_parser) {
6437 {
6438 librdf_parser *arg1 = (librdf_parser *) 0 ;
6439 void *argp1 = 0 ;
6440 int res1 = 0 ;
6441 int argvi = 0;
6442 dXSARGS;
6443
6444 if ((items < 1) || (items > 1)) {
6445 SWIG_croak("Usage: librdf_free_parser(parser);");
6446 }
6447 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6448 if (!SWIG_IsOK(res1)) {
6449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_parser" "', argument " "1"" of type '" "librdf_parser *""'");
6450 }
6451 arg1 = (librdf_parser *)(argp1);
6452 librdf_free_parser(arg1);
6453 ST(argvi) = sv_newmortal();
6454
6455 XSRETURN(argvi);
6456 fail:
6457
6458 SWIG_croak_null();
6459 }
6460 }
6461
6462
6463 XS(_wrap_librdf_parser_parse_as_stream) {
6464 {
6465 librdf_parser *arg1 = (librdf_parser *) 0 ;
6466 librdf_uri *arg2 = (librdf_uri *) 0 ;
6467 librdf_uri *arg3 = (librdf_uri *) NULL ;
6468 void *argp1 = 0 ;
6469 int res1 = 0 ;
6470 void *argp2 = 0 ;
6471 int res2 = 0 ;
6472 void *argp3 = 0 ;
6473 int res3 = 0 ;
6474 int argvi = 0;
6475 librdf_stream *result = 0 ;
6476 dXSARGS;
6477
6478 if ((items < 2) || (items > 3)) {
6479 SWIG_croak("Usage: librdf_parser_parse_as_stream(parser,uri,inUriorNull);");
6480 }
6481 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6482 if (!SWIG_IsOK(res1)) {
6483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
6484 }
6485 arg1 = (librdf_parser *)(argp1);
6486 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6487 if (!SWIG_IsOK(res2)) {
6488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_as_stream" "', argument " "2"" of type '" "librdf_uri *""'");
6489 }
6490 arg2 = (librdf_uri *)(argp2);
6491 if (items > 2) {
6492 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6493 if (!SWIG_IsOK(res3)) {
6494 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_as_stream" "', argument " "3"" of type '" "librdf_uri *""'");
6495 }
6496 arg3 = (librdf_uri *)(argp3);
6497 }
6498 result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3);
6499 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
6500
6501
6502
6503 XSRETURN(argvi);
6504 fail:
6505
6506
6507
6508 SWIG_croak_null();
6509 }
6510 }
6511
6512
6513 XS(_wrap_librdf_parser_parse_into_model) {
6514 {
6515 librdf_parser *arg1 = (librdf_parser *) 0 ;
6516 librdf_uri *arg2 = (librdf_uri *) 0 ;
6517 librdf_uri *arg3 = (librdf_uri *) 0 ;
6518 librdf_model *arg4 = (librdf_model *) 0 ;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 void *argp2 = 0 ;
6522 int res2 = 0 ;
6523 void *argp3 = 0 ;
6524 int res3 = 0 ;
6525 void *argp4 = 0 ;
6526 int res4 = 0 ;
6527 int argvi = 0;
6528 int result;
6529 dXSARGS;
6530
6531 if ((items < 4) || (items > 4)) {
6532 SWIG_croak("Usage: librdf_parser_parse_into_model(parser,uri,inUriOrNull,model);");
6533 }
6534 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6535 if (!SWIG_IsOK(res1)) {
6536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
6537 }
6538 arg1 = (librdf_parser *)(argp1);
6539 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6540 if (!SWIG_IsOK(res2)) {
6541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_into_model" "', argument " "2"" of type '" "librdf_uri *""'");
6542 }
6543 arg2 = (librdf_uri *)(argp2);
6544 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6545 if (!SWIG_IsOK(res3)) {
6546 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_into_model" "', argument " "3"" of type '" "librdf_uri *""'");
6547 }
6548 arg3 = (librdf_uri *)(argp3);
6549 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6550 if (!SWIG_IsOK(res4)) {
6551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_into_model" "', argument " "4"" of type '" "librdf_model *""'");
6552 }
6553 arg4 = (librdf_model *)(argp4);
6554 result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4);
6555 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6556
6557
6558
6559
6560 XSRETURN(argvi);
6561 fail:
6562
6563
6564
6565
6566 SWIG_croak_null();
6567 }
6568 }
6569
6570
6571 XS(_wrap_librdf_parser_parse_string_as_stream) {
6572 {
6573 librdf_parser *arg1 = (librdf_parser *) 0 ;
6574 char *arg2 = (char *) 0 ;
6575 librdf_uri *arg3 = (librdf_uri *) 0 ;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 int res2 ;
6579 char *buf2 = 0 ;
6580 int alloc2 = 0 ;
6581 void *argp3 = 0 ;
6582 int res3 = 0 ;
6583 int argvi = 0;
6584 librdf_stream *result = 0 ;
6585 dXSARGS;
6586
6587 if ((items < 3) || (items > 3)) {
6588 SWIG_croak("Usage: librdf_parser_parse_string_as_stream(parser,string,base_uri);");
6589 }
6590 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6591 if (!SWIG_IsOK(res1)) {
6592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
6593 }
6594 arg1 = (librdf_parser *)(argp1);
6595 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6596 if (!SWIG_IsOK(res2)) {
6597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "2"" of type '" "char const *""'");
6598 }
6599 arg2 = (char *)(buf2);
6600 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6601 if (!SWIG_IsOK(res3)) {
6602 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_as_stream" "', argument " "3"" of type '" "librdf_uri *""'");
6603 }
6604 arg3 = (librdf_uri *)(argp3);
6605 result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3);
6606 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
6607
6608 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6609
6610 XSRETURN(argvi);
6611 fail:
6612
6613 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6614
6615 SWIG_croak_null();
6616 }
6617 }
6618
6619
6620 XS(_wrap_librdf_parser_parse_string_into_model) {
6621 {
6622 librdf_parser *arg1 = (librdf_parser *) 0 ;
6623 char *arg2 = (char *) 0 ;
6624 librdf_uri *arg3 = (librdf_uri *) 0 ;
6625 librdf_model *arg4 = (librdf_model *) 0 ;
6626 void *argp1 = 0 ;
6627 int res1 = 0 ;
6628 int res2 ;
6629 char *buf2 = 0 ;
6630 int alloc2 = 0 ;
6631 void *argp3 = 0 ;
6632 int res3 = 0 ;
6633 void *argp4 = 0 ;
6634 int res4 = 0 ;
6635 int argvi = 0;
6636 int result;
6637 dXSARGS;
6638
6639 if ((items < 4) || (items > 4)) {
6640 SWIG_croak("Usage: librdf_parser_parse_string_into_model(parser,string,base_uri,model);");
6641 }
6642 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6643 if (!SWIG_IsOK(res1)) {
6644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
6645 }
6646 arg1 = (librdf_parser *)(argp1);
6647 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6648 if (!SWIG_IsOK(res2)) {
6649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_string_into_model" "', argument " "2"" of type '" "char const *""'");
6650 }
6651 arg2 = (char *)(buf2);
6652 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6653 if (!SWIG_IsOK(res3)) {
6654 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_parse_string_into_model" "', argument " "3"" of type '" "librdf_uri *""'");
6655 }
6656 arg3 = (librdf_uri *)(argp3);
6657 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6658 if (!SWIG_IsOK(res4)) {
6659 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_string_into_model" "', argument " "4"" of type '" "librdf_model *""'");
6660 }
6661 arg4 = (librdf_model *)(argp4);
6662 result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4);
6663 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6664
6665 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6666
6667
6668 XSRETURN(argvi);
6669 fail:
6670
6671 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6672
6673
6674 SWIG_croak_null();
6675 }
6676 }
6677
6678
6679 XS(_wrap_librdf_parser_parse_counted_string_as_stream) {
6680 {
6681 librdf_parser *arg1 = (librdf_parser *) 0 ;
6682 char *arg2 = (char *) 0 ;
6683 size_t arg3 ;
6684 librdf_uri *arg4 = (librdf_uri *) 0 ;
6685 void *argp1 = 0 ;
6686 int res1 = 0 ;
6687 int res2 ;
6688 char *buf2 = 0 ;
6689 int alloc2 = 0 ;
6690 size_t val3 ;
6691 int ecode3 = 0 ;
6692 void *argp4 = 0 ;
6693 int res4 = 0 ;
6694 int argvi = 0;
6695 librdf_stream *result = 0 ;
6696 dXSARGS;
6697
6698 if ((items < 4) || (items > 4)) {
6699 SWIG_croak("Usage: librdf_parser_parse_counted_string_as_stream(parser,string,length,base_uri);");
6700 }
6701 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6702 if (!SWIG_IsOK(res1)) {
6703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "1"" of type '" "librdf_parser *""'");
6704 }
6705 arg1 = (librdf_parser *)(argp1);
6706 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6707 if (!SWIG_IsOK(res2)) {
6708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "2"" of type '" "char const *""'");
6709 }
6710 arg2 = (char *)(buf2);
6711 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6712 if (!SWIG_IsOK(ecode3)) {
6713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "3"" of type '" "size_t""'");
6714 }
6715 arg3 = (size_t)(val3);
6716 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6717 if (!SWIG_IsOK(res4)) {
6718 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_as_stream" "', argument " "4"" of type '" "librdf_uri *""'");
6719 }
6720 arg4 = (librdf_uri *)(argp4);
6721 result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4);
6722 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, 0 | 0); argvi++ ;
6723
6724 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6725
6726
6727 XSRETURN(argvi);
6728 fail:
6729
6730 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6731
6732
6733 SWIG_croak_null();
6734 }
6735 }
6736
6737
6738 XS(_wrap_librdf_parser_parse_counted_string_into_model) {
6739 {
6740 librdf_parser *arg1 = (librdf_parser *) 0 ;
6741 char *arg2 = (char *) 0 ;
6742 size_t arg3 ;
6743 librdf_uri *arg4 = (librdf_uri *) 0 ;
6744 librdf_model *arg5 = (librdf_model *) 0 ;
6745 void *argp1 = 0 ;
6746 int res1 = 0 ;
6747 int res2 ;
6748 char *buf2 = 0 ;
6749 int alloc2 = 0 ;
6750 size_t val3 ;
6751 int ecode3 = 0 ;
6752 void *argp4 = 0 ;
6753 int res4 = 0 ;
6754 void *argp5 = 0 ;
6755 int res5 = 0 ;
6756 int argvi = 0;
6757 int result;
6758 dXSARGS;
6759
6760 if ((items < 5) || (items > 5)) {
6761 SWIG_croak("Usage: librdf_parser_parse_counted_string_into_model(parser,string,length,base_uri,model);");
6762 }
6763 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6764 if (!SWIG_IsOK(res1)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "1"" of type '" "librdf_parser *""'");
6766 }
6767 arg1 = (librdf_parser *)(argp1);
6768 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6769 if (!SWIG_IsOK(res2)) {
6770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "2"" of type '" "char const *""'");
6771 }
6772 arg2 = (char *)(buf2);
6773 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6774 if (!SWIG_IsOK(ecode3)) {
6775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "3"" of type '" "size_t""'");
6776 }
6777 arg3 = (size_t)(val3);
6778 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6779 if (!SWIG_IsOK(res4)) {
6780 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "4"" of type '" "librdf_uri *""'");
6781 }
6782 arg4 = (librdf_uri *)(argp4);
6783 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_model_s, 0 | 0 );
6784 if (!SWIG_IsOK(res5)) {
6785 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_parser_parse_counted_string_into_model" "', argument " "5"" of type '" "librdf_model *""'");
6786 }
6787 arg5 = (librdf_model *)(argp5);
6788 result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5);
6789 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6790
6791 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6792
6793
6794
6795 XSRETURN(argvi);
6796 fail:
6797
6798 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6799
6800
6801
6802 SWIG_croak_null();
6803 }
6804 }
6805
6806
6807 XS(_wrap_librdf_parser_get_feature) {
6808 {
6809 librdf_parser *arg1 = (librdf_parser *) 0 ;
6810 librdf_uri *arg2 = (librdf_uri *) 0 ;
6811 void *argp1 = 0 ;
6812 int res1 = 0 ;
6813 void *argp2 = 0 ;
6814 int res2 = 0 ;
6815 int argvi = 0;
6816 librdf_node *result = 0 ;
6817 dXSARGS;
6818
6819 if ((items < 2) || (items > 2)) {
6820 SWIG_croak("Usage: librdf_parser_get_feature(parser,feature);");
6821 }
6822 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6823 if (!SWIG_IsOK(res1)) {
6824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_feature" "', argument " "1"" of type '" "librdf_parser *""'");
6825 }
6826 arg1 = (librdf_parser *)(argp1);
6827 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6828 if (!SWIG_IsOK(res2)) {
6829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
6830 }
6831 arg2 = (librdf_uri *)(argp2);
6832 result = (librdf_node *)librdf_parser_get_feature(arg1,arg2);
6833 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
6834
6835
6836 XSRETURN(argvi);
6837 fail:
6838
6839
6840 SWIG_croak_null();
6841 }
6842 }
6843
6844
6845 XS(_wrap_librdf_parser_set_feature) {
6846 {
6847 librdf_parser *arg1 = (librdf_parser *) 0 ;
6848 librdf_uri *arg2 = (librdf_uri *) 0 ;
6849 librdf_node *arg3 = (librdf_node *) 0 ;
6850 void *argp1 = 0 ;
6851 int res1 = 0 ;
6852 void *argp2 = 0 ;
6853 int res2 = 0 ;
6854 void *argp3 = 0 ;
6855 int res3 = 0 ;
6856 int argvi = 0;
6857 int result;
6858 dXSARGS;
6859
6860 if ((items < 3) || (items > 3)) {
6861 SWIG_croak("Usage: librdf_parser_set_feature(parser,feature,value);");
6862 }
6863 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
6864 if (!SWIG_IsOK(res1)) {
6865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_set_feature" "', argument " "1"" of type '" "librdf_parser *""'");
6866 }
6867 arg1 = (librdf_parser *)(argp1);
6868 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
6869 if (!SWIG_IsOK(res2)) {
6870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
6871 }
6872 arg2 = (librdf_uri *)(argp2);
6873 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
6874 if (!SWIG_IsOK(res3)) {
6875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
6876 }
6877 arg3 = (librdf_node *)(argp3);
6878 result = (int)librdf_parser_set_feature(arg1,arg2,arg3);
6879 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
6880
6881
6882
6883 XSRETURN(argvi);
6884 fail:
6885
6886
6887
6888 SWIG_croak_null();
6889 }
6890 }
6891
6892
6893 XS(_wrap_librdf_parser_guess_name) {
6894 {
6895 char *arg1 = (char *) 0 ;
6896 char *arg2 = (char *) 0 ;
6897 char *arg3 = (char *) 0 ;
6898 int res1 ;
6899 char *buf1 = 0 ;
6900 int alloc1 = 0 ;
6901 int res2 ;
6902 char *buf2 = 0 ;
6903 int alloc2 = 0 ;
6904 int res3 ;
6905 char *buf3 = 0 ;
6906 int alloc3 = 0 ;
6907 int argvi = 0;
6908 char *result = 0 ;
6909 dXSARGS;
6910
6911 if ((items < 3) || (items > 3)) {
6912 SWIG_croak("Usage: librdf_parser_guess_name(mime_type,buffer,identifier);");
6913 }
6914 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
6915 if (!SWIG_IsOK(res1)) {
6916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name" "', argument " "1"" of type '" "char const *""'");
6917 }
6918 arg1 = (char *)(buf1);
6919 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6920 if (!SWIG_IsOK(res2)) {
6921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name" "', argument " "2"" of type '" "char const *""'");
6922 }
6923 arg2 = (char *)(buf2);
6924 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
6925 if (!SWIG_IsOK(res3)) {
6926 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name" "', argument " "3"" of type '" "char const *""'");
6927 }
6928 arg3 = (char *)(buf3);
6929 result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3);
6930 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
6931 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6932 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6933 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6934 XSRETURN(argvi);
6935 fail:
6936 if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6937 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6938 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6939 SWIG_croak_null();
6940 }
6941 }
6942
6943
6944 XS(_wrap_librdf_parser_guess_name2) {
6945 {
6946 librdf_world *arg1 = (librdf_world *) 0 ;
6947 char *arg2 = (char *) 0 ;
6948 char *arg3 = (char *) 0 ;
6949 char *arg4 = (char *) 0 ;
6950 void *argp1 = 0 ;
6951 int res1 = 0 ;
6952 int res2 ;
6953 char *buf2 = 0 ;
6954 int alloc2 = 0 ;
6955 int res3 ;
6956 char *buf3 = 0 ;
6957 int alloc3 = 0 ;
6958 int res4 ;
6959 char *buf4 = 0 ;
6960 int alloc4 = 0 ;
6961 int argvi = 0;
6962 char *result = 0 ;
6963 dXSARGS;
6964
6965 if ((items < 4) || (items > 4)) {
6966 SWIG_croak("Usage: librdf_parser_guess_name2(world,mime_type,buffer,identifier);");
6967 }
6968 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
6969 if (!SWIG_IsOK(res1)) {
6970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_guess_name2" "', argument " "1"" of type '" "librdf_world *""'");
6971 }
6972 arg1 = (librdf_world *)(argp1);
6973 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
6974 if (!SWIG_IsOK(res2)) {
6975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_parser_guess_name2" "', argument " "2"" of type '" "char const *""'");
6976 }
6977 arg2 = (char *)(buf2);
6978 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
6979 if (!SWIG_IsOK(res3)) {
6980 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_parser_guess_name2" "', argument " "3"" of type '" "char const *""'");
6981 }
6982 arg3 = (char *)(buf3);
6983 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
6984 if (!SWIG_IsOK(res4)) {
6985 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_parser_guess_name2" "', argument " "4"" of type '" "char const *""'");
6986 }
6987 arg4 = (char *)(buf4);
6988 result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
6989 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
6990
6991 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6992 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6993 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
6994 XSRETURN(argvi);
6995 fail:
6996
6997 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6998 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
6999 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
7000 SWIG_croak_null();
7001 }
7002 }
7003
7004
7005 XS(_wrap_librdf_parser_get_namespaces_seen_prefix) {
7006 {
7007 librdf_parser *arg1 = (librdf_parser *) 0 ;
7008 int arg2 ;
7009 void *argp1 = 0 ;
7010 int res1 = 0 ;
7011 int val2 ;
7012 int ecode2 = 0 ;
7013 int argvi = 0;
7014 char *result = 0 ;
7015 dXSARGS;
7016
7017 if ((items < 2) || (items > 2)) {
7018 SWIG_croak("Usage: librdf_parser_get_namespaces_seen_prefix(parser,offset);");
7019 }
7020 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
7021 if (!SWIG_IsOK(res1)) {
7022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "1"" of type '" "librdf_parser *""'");
7023 }
7024 arg1 = (librdf_parser *)(argp1);
7025 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7026 if (!SWIG_IsOK(ecode2)) {
7027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_prefix" "', argument " "2"" of type '" "int""'");
7028 }
7029 arg2 = (int)(val2);
7030 result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2);
7031 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
7032
7033
7034 XSRETURN(argvi);
7035 fail:
7036
7037
7038 SWIG_croak_null();
7039 }
7040 }
7041
7042
7043 XS(_wrap_librdf_parser_get_namespaces_seen_uri) {
7044 {
7045 librdf_parser *arg1 = (librdf_parser *) 0 ;
7046 int arg2 ;
7047 void *argp1 = 0 ;
7048 int res1 = 0 ;
7049 int val2 ;
7050 int ecode2 = 0 ;
7051 int argvi = 0;
7052 librdf_uri *result = 0 ;
7053 dXSARGS;
7054
7055 if ((items < 2) || (items > 2)) {
7056 SWIG_croak("Usage: librdf_parser_get_namespaces_seen_uri(parser,offset);");
7057 }
7058 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
7059 if (!SWIG_IsOK(res1)) {
7060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "1"" of type '" "librdf_parser *""'");
7061 }
7062 arg1 = (librdf_parser *)(argp1);
7063 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7064 if (!SWIG_IsOK(ecode2)) {
7065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_parser_get_namespaces_seen_uri" "', argument " "2"" of type '" "int""'");
7066 }
7067 arg2 = (int)(val2);
7068 result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2);
7069 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_uri_s, 0 | 0); argvi++ ;
7070
7071
7072 XSRETURN(argvi);
7073 fail:
7074
7075
7076 SWIG_croak_null();
7077 }
7078 }
7079
7080
7081 XS(_wrap_librdf_parser_get_namespaces_seen_count) {
7082 {
7083 librdf_parser *arg1 = (librdf_parser *) 0 ;
7084 void *argp1 = 0 ;
7085 int res1 = 0 ;
7086 int argvi = 0;
7087 int result;
7088 dXSARGS;
7089
7090 if ((items < 1) || (items > 1)) {
7091 SWIG_croak("Usage: librdf_parser_get_namespaces_seen_count(parser);");
7092 }
7093 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_parser_s, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_parser_get_namespaces_seen_count" "', argument " "1"" of type '" "librdf_parser *""'");
7096 }
7097 arg1 = (librdf_parser *)(argp1);
7098 result = (int)librdf_parser_get_namespaces_seen_count(arg1);
7099 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7100
7101 XSRETURN(argvi);
7102 fail:
7103
7104 SWIG_croak_null();
7105 }
7106 }
7107
7108
7109 XS(_wrap_librdf_new_query) {
7110 {
7111 librdf_world *arg1 = (librdf_world *) 0 ;
7112 char *arg2 = (char *) 0 ;
7113 librdf_uri *arg3 = (librdf_uri *) 0 ;
7114 char *arg4 = (char *) 0 ;
7115 librdf_uri *arg5 = (librdf_uri *) 0 ;
7116 void *argp1 = 0 ;
7117 int res1 = 0 ;
7118 int res2 ;
7119 char *buf2 = 0 ;
7120 int alloc2 = 0 ;
7121 void *argp3 = 0 ;
7122 int res3 = 0 ;
7123 int res4 ;
7124 char *buf4 = 0 ;
7125 int alloc4 = 0 ;
7126 void *argp5 = 0 ;
7127 int res5 = 0 ;
7128 int argvi = 0;
7129 librdf_query *result = 0 ;
7130 dXSARGS;
7131
7132 if ((items < 5) || (items > 5)) {
7133 SWIG_croak("Usage: librdf_new_query(world,name,inUriOrNull,query_string,inUriOrNull);");
7134 }
7135 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query" "', argument " "1"" of type '" "librdf_world *""'");
7138 }
7139 arg1 = (librdf_world *)(argp1);
7140 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
7141 if (!SWIG_IsOK(res2)) {
7142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_query" "', argument " "2"" of type '" "char const *""'");
7143 }
7144 arg2 = (char *)(buf2);
7145 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7146 if (!SWIG_IsOK(res3)) {
7147 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_query" "', argument " "3"" of type '" "librdf_uri *""'");
7148 }
7149 arg3 = (librdf_uri *)(argp3);
7150 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
7151 if (!SWIG_IsOK(res4)) {
7152 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_query" "', argument " "4"" of type '" "char const *""'");
7153 }
7154 arg4 = (char *)(buf4);
7155 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7156 if (!SWIG_IsOK(res5)) {
7157 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_new_query" "', argument " "5"" of type '" "librdf_uri *""'");
7158 }
7159 arg5 = (librdf_uri *)(argp5);
7160 result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5);
7161 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_OWNER | 0); argvi++ ;
7162
7163 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7164
7165 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
7166
7167 XSRETURN(argvi);
7168 fail:
7169
7170 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7171
7172 if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
7173
7174 SWIG_croak_null();
7175 }
7176 }
7177
7178
7179 XS(_wrap_librdf_new_query_from_query) {
7180 {
7181 librdf_query *arg1 = (librdf_query *) 0 ;
7182 void *argp1 = 0 ;
7183 int res1 = 0 ;
7184 int argvi = 0;
7185 librdf_query *result = 0 ;
7186 dXSARGS;
7187
7188 if ((items < 1) || (items > 1)) {
7189 SWIG_croak("Usage: librdf_new_query_from_query(old_query);");
7190 }
7191 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7192 if (!SWIG_IsOK(res1)) {
7193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_query_from_query" "', argument " "1"" of type '" "librdf_query *""'");
7194 }
7195 arg1 = (librdf_query *)(argp1);
7196 result = (librdf_query *)librdf_new_query_from_query(arg1);
7197 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query, SWIG_OWNER | 0); argvi++ ;
7198
7199 XSRETURN(argvi);
7200 fail:
7201
7202 SWIG_croak_null();
7203 }
7204 }
7205
7206
7207 XS(_wrap_librdf_free_query) {
7208 {
7209 librdf_query *arg1 = (librdf_query *) 0 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int argvi = 0;
7213 dXSARGS;
7214
7215 if ((items < 1) || (items > 1)) {
7216 SWIG_croak("Usage: librdf_free_query(query);");
7217 }
7218 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7219 if (!SWIG_IsOK(res1)) {
7220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query" "', argument " "1"" of type '" "librdf_query *""'");
7221 }
7222 arg1 = (librdf_query *)(argp1);
7223 librdf_free_query(arg1);
7224 ST(argvi) = sv_newmortal();
7225
7226 XSRETURN(argvi);
7227 fail:
7228
7229 SWIG_croak_null();
7230 }
7231 }
7232
7233
7234 XS(_wrap_librdf_query_execute) {
7235 {
7236 librdf_query *arg1 = (librdf_query *) 0 ;
7237 librdf_model *arg2 = (librdf_model *) 0 ;
7238 void *argp1 = 0 ;
7239 int res1 = 0 ;
7240 void *argp2 = 0 ;
7241 int res2 = 0 ;
7242 int argvi = 0;
7243 librdf_query_results *result = 0 ;
7244 dXSARGS;
7245
7246 if ((items < 2) || (items > 2)) {
7247 SWIG_croak("Usage: librdf_query_execute(query,model);");
7248 }
7249 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7250 if (!SWIG_IsOK(res1)) {
7251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_execute" "', argument " "1"" of type '" "librdf_query *""'");
7252 }
7253 arg1 = (librdf_query *)(argp1);
7254 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_model_s, 0 | 0 );
7255 if (!SWIG_IsOK(res2)) {
7256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_execute" "', argument " "2"" of type '" "librdf_model *""'");
7257 }
7258 arg2 = (librdf_model *)(argp2);
7259 result = (librdf_query_results *)librdf_query_execute(arg1,arg2);
7260 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_query_results, SWIG_OWNER | 0); argvi++ ;
7261
7262
7263 XSRETURN(argvi);
7264 fail:
7265
7266
7267 SWIG_croak_null();
7268 }
7269 }
7270
7271
7272 XS(_wrap_librdf_query_get_limit) {
7273 {
7274 librdf_query *arg1 = (librdf_query *) 0 ;
7275 void *argp1 = 0 ;
7276 int res1 = 0 ;
7277 int argvi = 0;
7278 int result;
7279 dXSARGS;
7280
7281 if ((items < 1) || (items > 1)) {
7282 SWIG_croak("Usage: librdf_query_get_limit(query);");
7283 }
7284 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_limit" "', argument " "1"" of type '" "librdf_query *""'");
7287 }
7288 arg1 = (librdf_query *)(argp1);
7289 result = (int)librdf_query_get_limit(arg1);
7290 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7291
7292 XSRETURN(argvi);
7293 fail:
7294
7295 SWIG_croak_null();
7296 }
7297 }
7298
7299
7300 XS(_wrap_librdf_query_set_limit) {
7301 {
7302 librdf_query *arg1 = (librdf_query *) 0 ;
7303 int arg2 ;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 int val2 ;
7307 int ecode2 = 0 ;
7308 int argvi = 0;
7309 int result;
7310 dXSARGS;
7311
7312 if ((items < 2) || (items > 2)) {
7313 SWIG_croak("Usage: librdf_query_set_limit(query,limit);");
7314 }
7315 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_limit" "', argument " "1"" of type '" "librdf_query *""'");
7318 }
7319 arg1 = (librdf_query *)(argp1);
7320 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7321 if (!SWIG_IsOK(ecode2)) {
7322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_limit" "', argument " "2"" of type '" "int""'");
7323 }
7324 arg2 = (int)(val2);
7325 result = (int)librdf_query_set_limit(arg1,arg2);
7326 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7327
7328
7329 XSRETURN(argvi);
7330 fail:
7331
7332
7333 SWIG_croak_null();
7334 }
7335 }
7336
7337
7338 XS(_wrap_librdf_query_get_offset) {
7339 {
7340 librdf_query *arg1 = (librdf_query *) 0 ;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 int argvi = 0;
7344 int result;
7345 dXSARGS;
7346
7347 if ((items < 1) || (items > 1)) {
7348 SWIG_croak("Usage: librdf_query_get_offset(query);");
7349 }
7350 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7351 if (!SWIG_IsOK(res1)) {
7352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_get_offset" "', argument " "1"" of type '" "librdf_query *""'");
7353 }
7354 arg1 = (librdf_query *)(argp1);
7355 result = (int)librdf_query_get_offset(arg1);
7356 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7357
7358 XSRETURN(argvi);
7359 fail:
7360
7361 SWIG_croak_null();
7362 }
7363 }
7364
7365
7366 XS(_wrap_librdf_query_set_offset) {
7367 {
7368 librdf_query *arg1 = (librdf_query *) 0 ;
7369 int arg2 ;
7370 void *argp1 = 0 ;
7371 int res1 = 0 ;
7372 int val2 ;
7373 int ecode2 = 0 ;
7374 int argvi = 0;
7375 int result;
7376 dXSARGS;
7377
7378 if ((items < 2) || (items > 2)) {
7379 SWIG_croak("Usage: librdf_query_set_offset(query,offset);");
7380 }
7381 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query, 0 | 0 );
7382 if (!SWIG_IsOK(res1)) {
7383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_set_offset" "', argument " "1"" of type '" "librdf_query *""'");
7384 }
7385 arg1 = (librdf_query *)(argp1);
7386 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7387 if (!SWIG_IsOK(ecode2)) {
7388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_set_offset" "', argument " "2"" of type '" "int""'");
7389 }
7390 arg2 = (int)(val2);
7391 result = (int)librdf_query_set_offset(arg1,arg2);
7392 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7393
7394
7395 XSRETURN(argvi);
7396 fail:
7397
7398
7399 SWIG_croak_null();
7400 }
7401 }
7402
7403
7404 XS(_wrap_librdf_query_results_as_stream) {
7405 {
7406 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7407 void *argp1 = 0 ;
7408 int res1 = 0 ;
7409 int argvi = 0;
7410 librdf_stream *result = 0 ;
7411 dXSARGS;
7412
7413 if ((items < 1) || (items > 1)) {
7414 SWIG_croak("Usage: librdf_query_results_as_stream(query_results);");
7415 }
7416 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7417 if (!SWIG_IsOK(res1)) {
7418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_as_stream" "', argument " "1"" of type '" "librdf_query_results *""'");
7419 }
7420 arg1 = (librdf_query_results *)(argp1);
7421 result = (librdf_stream *)librdf_query_results_as_stream(arg1);
7422 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_stream_s, SWIG_OWNER | 0); argvi++ ;
7423
7424 XSRETURN(argvi);
7425 fail:
7426
7427 SWIG_croak_null();
7428 }
7429 }
7430
7431
7432 XS(_wrap_librdf_query_results_get_count) {
7433 {
7434 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7435 void *argp1 = 0 ;
7436 int res1 = 0 ;
7437 int argvi = 0;
7438 int result;
7439 dXSARGS;
7440
7441 if ((items < 1) || (items > 1)) {
7442 SWIG_croak("Usage: librdf_query_results_get_count(query_results);");
7443 }
7444 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7445 if (!SWIG_IsOK(res1)) {
7446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_count" "', argument " "1"" of type '" "librdf_query_results *""'");
7447 }
7448 arg1 = (librdf_query_results *)(argp1);
7449 result = (int)librdf_query_results_get_count(arg1);
7450 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7451
7452 XSRETURN(argvi);
7453 fail:
7454
7455 SWIG_croak_null();
7456 }
7457 }
7458
7459
7460 XS(_wrap_librdf_query_results_next) {
7461 {
7462 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7463 void *argp1 = 0 ;
7464 int res1 = 0 ;
7465 int argvi = 0;
7466 int result;
7467 dXSARGS;
7468
7469 if ((items < 1) || (items > 1)) {
7470 SWIG_croak("Usage: librdf_query_results_next(query_results);");
7471 }
7472 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_next" "', argument " "1"" of type '" "librdf_query_results *""'");
7475 }
7476 arg1 = (librdf_query_results *)(argp1);
7477 result = (int)librdf_query_results_next(arg1);
7478 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7479
7480 XSRETURN(argvi);
7481 fail:
7482
7483 SWIG_croak_null();
7484 }
7485 }
7486
7487
7488 XS(_wrap_librdf_query_results_finished) {
7489 {
7490 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7491 void *argp1 = 0 ;
7492 int res1 = 0 ;
7493 int argvi = 0;
7494 int result;
7495 dXSARGS;
7496
7497 if ((items < 1) || (items > 1)) {
7498 SWIG_croak("Usage: librdf_query_results_finished(query_results);");
7499 }
7500 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7501 if (!SWIG_IsOK(res1)) {
7502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_finished" "', argument " "1"" of type '" "librdf_query_results *""'");
7503 }
7504 arg1 = (librdf_query_results *)(argp1);
7505 result = (int)librdf_query_results_finished(arg1);
7506 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7507
7508 XSRETURN(argvi);
7509 fail:
7510
7511 SWIG_croak_null();
7512 }
7513 }
7514
7515
7516 XS(_wrap_librdf_query_results_get_binding_value) {
7517 {
7518 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7519 int arg2 ;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 int val2 ;
7523 int ecode2 = 0 ;
7524 int argvi = 0;
7525 librdf_node *result = 0 ;
7526 dXSARGS;
7527
7528 if ((items < 2) || (items > 2)) {
7529 SWIG_croak("Usage: librdf_query_results_get_binding_value(query_results,offset);");
7530 }
7531 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value" "', argument " "1"" of type '" "librdf_query_results *""'");
7534 }
7535 arg1 = (librdf_query_results *)(argp1);
7536 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7537 if (!SWIG_IsOK(ecode2)) {
7538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_value" "', argument " "2"" of type '" "int""'");
7539 }
7540 arg2 = (int)(val2);
7541 result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2);
7542 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
7543
7544
7545 XSRETURN(argvi);
7546 fail:
7547
7548
7549 SWIG_croak_null();
7550 }
7551 }
7552
7553
7554 XS(_wrap_librdf_query_results_get_binding_name) {
7555 {
7556 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7557 int arg2 ;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 int val2 ;
7561 int ecode2 = 0 ;
7562 int argvi = 0;
7563 char *result = 0 ;
7564 dXSARGS;
7565
7566 if ((items < 2) || (items > 2)) {
7567 SWIG_croak("Usage: librdf_query_results_get_binding_name(query_results,offset);");
7568 }
7569 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7570 if (!SWIG_IsOK(res1)) {
7571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_name" "', argument " "1"" of type '" "librdf_query_results *""'");
7572 }
7573 arg1 = (librdf_query_results *)(argp1);
7574 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7575 if (!SWIG_IsOK(ecode2)) {
7576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "librdf_query_results_get_binding_name" "', argument " "2"" of type '" "int""'");
7577 }
7578 arg2 = (int)(val2);
7579 result = (char *)librdf_query_results_get_binding_name(arg1,arg2);
7580 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
7581
7582
7583 XSRETURN(argvi);
7584 fail:
7585
7586
7587 SWIG_croak_null();
7588 }
7589 }
7590
7591
7592 XS(_wrap_librdf_query_results_get_binding_value_by_name) {
7593 {
7594 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7595 char *arg2 = (char *) 0 ;
7596 void *argp1 = 0 ;
7597 int res1 = 0 ;
7598 int res2 ;
7599 char *buf2 = 0 ;
7600 int alloc2 = 0 ;
7601 int argvi = 0;
7602 librdf_node *result = 0 ;
7603 dXSARGS;
7604
7605 if ((items < 2) || (items > 2)) {
7606 SWIG_croak("Usage: librdf_query_results_get_binding_value_by_name(query_results,name);");
7607 }
7608 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "1"" of type '" "librdf_query_results *""'");
7611 }
7612 arg1 = (librdf_query_results *)(argp1);
7613 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_get_binding_value_by_name" "', argument " "2"" of type '" "char const *""'");
7616 }
7617 arg2 = (char *)(buf2);
7618 result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2);
7619 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, SWIG_OWNER | 0); argvi++ ;
7620
7621 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7622 XSRETURN(argvi);
7623 fail:
7624
7625 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7626 SWIG_croak_null();
7627 }
7628 }
7629
7630
7631 XS(_wrap_librdf_query_results_get_bindings_count) {
7632 {
7633 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636 int argvi = 0;
7637 int result;
7638 dXSARGS;
7639
7640 if ((items < 1) || (items > 1)) {
7641 SWIG_croak("Usage: librdf_query_results_get_bindings_count(query_results);");
7642 }
7643 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7644 if (!SWIG_IsOK(res1)) {
7645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_bindings_count" "', argument " "1"" of type '" "librdf_query_results *""'");
7646 }
7647 arg1 = (librdf_query_results *)(argp1);
7648 result = (int)librdf_query_results_get_bindings_count(arg1);
7649 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7650
7651 XSRETURN(argvi);
7652 fail:
7653
7654 SWIG_croak_null();
7655 }
7656 }
7657
7658
7659 XS(_wrap_librdf_query_results_to_file) {
7660 {
7661 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7662 char *arg2 = (char *) 0 ;
7663 librdf_uri *arg3 = (librdf_uri *) 0 ;
7664 librdf_uri *arg4 = (librdf_uri *) 0 ;
7665 void *argp1 = 0 ;
7666 int res1 = 0 ;
7667 int res2 ;
7668 char *buf2 = 0 ;
7669 int alloc2 = 0 ;
7670 void *argp3 = 0 ;
7671 int res3 = 0 ;
7672 void *argp4 = 0 ;
7673 int res4 = 0 ;
7674 int argvi = 0;
7675 int result;
7676 dXSARGS;
7677
7678 if ((items < 4) || (items > 4)) {
7679 SWIG_croak("Usage: librdf_query_results_to_file(query_results,name,format_uri,base_uri);");
7680 }
7681 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7682 if (!SWIG_IsOK(res1)) {
7683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file" "', argument " "1"" of type '" "librdf_query_results *""'");
7684 }
7685 arg1 = (librdf_query_results *)(argp1);
7686 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
7687 if (!SWIG_IsOK(res2)) {
7688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file" "', argument " "2"" of type '" "char const *""'");
7689 }
7690 arg2 = (char *)(buf2);
7691 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7692 if (!SWIG_IsOK(res3)) {
7693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
7694 }
7695 arg3 = (librdf_uri *)(argp3);
7696 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7697 if (!SWIG_IsOK(res4)) {
7698 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file" "', argument " "4"" of type '" "librdf_uri *""'");
7699 }
7700 arg4 = (librdf_uri *)(argp4);
7701 result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4);
7702 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7703
7704 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7705
7706
7707 XSRETURN(argvi);
7708 fail:
7709
7710 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7711
7712
7713 SWIG_croak_null();
7714 }
7715 }
7716
7717
7718 XS(_wrap_librdf_query_results_to_file2) {
7719 {
7720 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7721 char *arg2 = (char *) 0 ;
7722 char *arg3 = (char *) 0 ;
7723 librdf_uri *arg4 = (librdf_uri *) 0 ;
7724 librdf_uri *arg5 = (librdf_uri *) 0 ;
7725 void *argp1 = 0 ;
7726 int res1 = 0 ;
7727 int res2 ;
7728 char *buf2 = 0 ;
7729 int alloc2 = 0 ;
7730 int res3 ;
7731 char *buf3 = 0 ;
7732 int alloc3 = 0 ;
7733 void *argp4 = 0 ;
7734 int res4 = 0 ;
7735 void *argp5 = 0 ;
7736 int res5 = 0 ;
7737 int argvi = 0;
7738 int result;
7739 dXSARGS;
7740
7741 if ((items < 5) || (items > 5)) {
7742 SWIG_croak("Usage: librdf_query_results_to_file2(query_results,name,mime_type,format_uri,base_uri);");
7743 }
7744 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7745 if (!SWIG_IsOK(res1)) {
7746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_file2" "', argument " "1"" of type '" "librdf_query_results *""'");
7747 }
7748 arg1 = (librdf_query_results *)(argp1);
7749 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
7750 if (!SWIG_IsOK(res2)) {
7751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_file2" "', argument " "2"" of type '" "char const *""'");
7752 }
7753 arg2 = (char *)(buf2);
7754 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
7755 if (!SWIG_IsOK(res3)) {
7756 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_file2" "', argument " "3"" of type '" "char const *""'");
7757 }
7758 arg3 = (char *)(buf3);
7759 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7760 if (!SWIG_IsOK(res4)) {
7761 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_file2" "', argument " "4"" of type '" "librdf_uri *""'");
7762 }
7763 arg4 = (librdf_uri *)(argp4);
7764 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7765 if (!SWIG_IsOK(res5)) {
7766 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_file2" "', argument " "5"" of type '" "librdf_uri *""'");
7767 }
7768 arg5 = (librdf_uri *)(argp5);
7769 result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
7770 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7771
7772 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7773 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7774
7775
7776 XSRETURN(argvi);
7777 fail:
7778
7779 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7780 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7781
7782
7783 SWIG_croak_null();
7784 }
7785 }
7786
7787
7788 XS(_wrap_librdf_query_results_to_string) {
7789 {
7790 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7791 librdf_uri *arg2 = (librdf_uri *) 0 ;
7792 librdf_uri *arg3 = (librdf_uri *) 0 ;
7793 void *argp1 = 0 ;
7794 int res1 = 0 ;
7795 void *argp2 = 0 ;
7796 int res2 = 0 ;
7797 void *argp3 = 0 ;
7798 int res3 = 0 ;
7799 int argvi = 0;
7800 char *result = 0 ;
7801 dXSARGS;
7802
7803 if ((items < 3) || (items > 3)) {
7804 SWIG_croak("Usage: librdf_query_results_to_string(query_results,format_uri,base_uri);");
7805 }
7806 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7807 if (!SWIG_IsOK(res1)) {
7808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string" "', argument " "1"" of type '" "librdf_query_results *""'");
7809 }
7810 arg1 = (librdf_query_results *)(argp1);
7811 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7812 if (!SWIG_IsOK(res2)) {
7813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
7814 }
7815 arg2 = (librdf_uri *)(argp2);
7816 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7817 if (!SWIG_IsOK(res3)) {
7818 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string" "', argument " "3"" of type '" "librdf_uri *""'");
7819 }
7820 arg3 = (librdf_uri *)(argp3);
7821 result = (char *)librdf_query_results_to_string(arg1,arg2,arg3);
7822 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
7823
7824
7825
7826 free((char*)result);
7827 XSRETURN(argvi);
7828 fail:
7829
7830
7831
7832 SWIG_croak_null();
7833 }
7834 }
7835
7836
7837 XS(_wrap_librdf_query_results_to_string2) {
7838 {
7839 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7840 char *arg2 = (char *) 0 ;
7841 char *arg3 = (char *) 0 ;
7842 librdf_uri *arg4 = (librdf_uri *) 0 ;
7843 librdf_uri *arg5 = (librdf_uri *) 0 ;
7844 void *argp1 = 0 ;
7845 int res1 = 0 ;
7846 int res2 ;
7847 char *buf2 = 0 ;
7848 int alloc2 = 0 ;
7849 int res3 ;
7850 char *buf3 = 0 ;
7851 int alloc3 = 0 ;
7852 void *argp4 = 0 ;
7853 int res4 = 0 ;
7854 void *argp5 = 0 ;
7855 int res5 = 0 ;
7856 int argvi = 0;
7857 char *result = 0 ;
7858 dXSARGS;
7859
7860 if ((items < 5) || (items > 5)) {
7861 SWIG_croak("Usage: librdf_query_results_to_string2(query_results,name,mime_type,format_uri,base_uri);");
7862 }
7863 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7864 if (!SWIG_IsOK(res1)) {
7865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_to_string2" "', argument " "1"" of type '" "librdf_query_results *""'");
7866 }
7867 arg1 = (librdf_query_results *)(argp1);
7868 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
7869 if (!SWIG_IsOK(res2)) {
7870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_query_results_to_string2" "', argument " "2"" of type '" "char const *""'");
7871 }
7872 arg2 = (char *)(buf2);
7873 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
7874 if (!SWIG_IsOK(res3)) {
7875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_query_results_to_string2" "', argument " "3"" of type '" "char const *""'");
7876 }
7877 arg3 = (char *)(buf3);
7878 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7879 if (!SWIG_IsOK(res4)) {
7880 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_query_results_to_string2" "', argument " "4"" of type '" "librdf_uri *""'");
7881 }
7882 arg4 = (librdf_uri *)(argp4);
7883 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
7884 if (!SWIG_IsOK(res5)) {
7885 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "librdf_query_results_to_string2" "', argument " "5"" of type '" "librdf_uri *""'");
7886 }
7887 arg5 = (librdf_uri *)(argp5);
7888 result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
7889 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
7890
7891 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7892 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7893
7894
7895 free((char*)result);
7896 XSRETURN(argvi);
7897 fail:
7898
7899 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7900 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7901
7902
7903 SWIG_croak_null();
7904 }
7905 }
7906
7907
7908 XS(_wrap_librdf_free_query_results) {
7909 {
7910 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 int argvi = 0;
7914 dXSARGS;
7915
7916 if ((items < 1) || (items > 1)) {
7917 SWIG_croak("Usage: librdf_free_query_results(query_results);");
7918 }
7919 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_query_results" "', argument " "1"" of type '" "librdf_query_results *""'");
7922 }
7923 arg1 = (librdf_query_results *)(argp1);
7924 librdf_free_query_results(arg1);
7925 ST(argvi) = sv_newmortal();
7926
7927 XSRETURN(argvi);
7928 fail:
7929
7930 SWIG_croak_null();
7931 }
7932 }
7933
7934
7935 XS(_wrap_librdf_query_results_is_bindings) {
7936 {
7937 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7938 void *argp1 = 0 ;
7939 int res1 = 0 ;
7940 int argvi = 0;
7941 int result;
7942 dXSARGS;
7943
7944 if ((items < 1) || (items > 1)) {
7945 SWIG_croak("Usage: librdf_query_results_is_bindings(query_results);");
7946 }
7947 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_bindings" "', argument " "1"" of type '" "librdf_query_results *""'");
7950 }
7951 arg1 = (librdf_query_results *)(argp1);
7952 result = (int)librdf_query_results_is_bindings(arg1);
7953 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7954
7955 XSRETURN(argvi);
7956 fail:
7957
7958 SWIG_croak_null();
7959 }
7960 }
7961
7962
7963 XS(_wrap_librdf_query_results_is_boolean) {
7964 {
7965 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7966 void *argp1 = 0 ;
7967 int res1 = 0 ;
7968 int argvi = 0;
7969 int result;
7970 dXSARGS;
7971
7972 if ((items < 1) || (items > 1)) {
7973 SWIG_croak("Usage: librdf_query_results_is_boolean(query_results);");
7974 }
7975 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
7976 if (!SWIG_IsOK(res1)) {
7977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_boolean" "', argument " "1"" of type '" "librdf_query_results *""'");
7978 }
7979 arg1 = (librdf_query_results *)(argp1);
7980 result = (int)librdf_query_results_is_boolean(arg1);
7981 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7982
7983 XSRETURN(argvi);
7984 fail:
7985
7986 SWIG_croak_null();
7987 }
7988 }
7989
7990
7991 XS(_wrap_librdf_query_results_is_graph) {
7992 {
7993 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 int argvi = 0;
7997 int result;
7998 dXSARGS;
7999
8000 if ((items < 1) || (items > 1)) {
8001 SWIG_croak("Usage: librdf_query_results_is_graph(query_results);");
8002 }
8003 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
8004 if (!SWIG_IsOK(res1)) {
8005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_graph" "', argument " "1"" of type '" "librdf_query_results *""'");
8006 }
8007 arg1 = (librdf_query_results *)(argp1);
8008 result = (int)librdf_query_results_is_graph(arg1);
8009 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8010
8011 XSRETURN(argvi);
8012 fail:
8013
8014 SWIG_croak_null();
8015 }
8016 }
8017
8018
8019 XS(_wrap_librdf_query_results_is_syntax) {
8020 {
8021 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
8022 void *argp1 = 0 ;
8023 int res1 = 0 ;
8024 int argvi = 0;
8025 int result;
8026 dXSARGS;
8027
8028 if ((items < 1) || (items > 1)) {
8029 SWIG_croak("Usage: librdf_query_results_is_syntax(query_results);");
8030 }
8031 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
8032 if (!SWIG_IsOK(res1)) {
8033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_is_syntax" "', argument " "1"" of type '" "librdf_query_results *""'");
8034 }
8035 arg1 = (librdf_query_results *)(argp1);
8036 result = (int)librdf_query_results_is_syntax(arg1);
8037 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8038
8039 XSRETURN(argvi);
8040 fail:
8041
8042 SWIG_croak_null();
8043 }
8044 }
8045
8046
8047 XS(_wrap_librdf_query_results_get_boolean) {
8048 {
8049 librdf_query_results *arg1 = (librdf_query_results *) 0 ;
8050 void *argp1 = 0 ;
8051 int res1 = 0 ;
8052 int argvi = 0;
8053 int result;
8054 dXSARGS;
8055
8056 if ((items < 1) || (items > 1)) {
8057 SWIG_croak("Usage: librdf_query_results_get_boolean(query_results);");
8058 }
8059 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_query_results, 0 | 0 );
8060 if (!SWIG_IsOK(res1)) {
8061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_query_results_get_boolean" "', argument " "1"" of type '" "librdf_query_results *""'");
8062 }
8063 arg1 = (librdf_query_results *)(argp1);
8064 result = (int)librdf_query_results_get_boolean(arg1);
8065 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8066
8067 XSRETURN(argvi);
8068 fail:
8069
8070 SWIG_croak_null();
8071 }
8072 }
8073
8074
8075 XS(_wrap_librdf_serializer_check_name) {
8076 {
8077 librdf_world *arg1 = (librdf_world *) 0 ;
8078 char *arg2 = (char *) 0 ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 int res2 ;
8082 char *buf2 = 0 ;
8083 int alloc2 = 0 ;
8084 int argvi = 0;
8085 int result;
8086 dXSARGS;
8087
8088 if ((items < 2) || (items > 2)) {
8089 SWIG_croak("Usage: librdf_serializer_check_name(world,name);");
8090 }
8091 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8092 if (!SWIG_IsOK(res1)) {
8093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_check_name" "', argument " "1"" of type '" "librdf_world *""'");
8094 }
8095 arg1 = (librdf_world *)(argp1);
8096 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
8097 if (!SWIG_IsOK(res2)) {
8098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_check_name" "', argument " "2"" of type '" "char const *""'");
8099 }
8100 arg2 = (char *)(buf2);
8101 result = (int)librdf_serializer_check_name(arg1,(char const *)arg2);
8102 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8103
8104 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8105 XSRETURN(argvi);
8106 fail:
8107
8108 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8109 SWIG_croak_null();
8110 }
8111 }
8112
8113
8114 XS(_wrap_librdf_new_serializer) {
8115 {
8116 librdf_world *arg1 = (librdf_world *) 0 ;
8117 char *arg2 = (char *) 0 ;
8118 char *arg3 = (char *) 0 ;
8119 librdf_uri *arg4 = (librdf_uri *) 0 ;
8120 void *argp1 = 0 ;
8121 int res1 = 0 ;
8122 int res2 ;
8123 char *buf2 = 0 ;
8124 int alloc2 = 0 ;
8125 int res3 ;
8126 char *buf3 = 0 ;
8127 int alloc3 = 0 ;
8128 void *argp4 = 0 ;
8129 int res4 = 0 ;
8130 int argvi = 0;
8131 librdf_serializer *result = 0 ;
8132 dXSARGS;
8133
8134 if ((items < 4) || (items > 4)) {
8135 SWIG_croak("Usage: librdf_new_serializer(world,name,mime_type,type_uri);");
8136 }
8137 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8138 if (!SWIG_IsOK(res1)) {
8139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_new_serializer" "', argument " "1"" of type '" "librdf_world *""'");
8140 }
8141 arg1 = (librdf_world *)(argp1);
8142 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
8143 if (!SWIG_IsOK(res2)) {
8144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_new_serializer" "', argument " "2"" of type '" "char const *""'");
8145 }
8146 arg2 = (char *)(buf2);
8147 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
8148 if (!SWIG_IsOK(res3)) {
8149 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_new_serializer" "', argument " "3"" of type '" "char const *""'");
8150 }
8151 arg3 = (char *)(buf3);
8152 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8153 if (!SWIG_IsOK(res4)) {
8154 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_new_serializer" "', argument " "4"" of type '" "librdf_uri *""'");
8155 }
8156 arg4 = (librdf_uri *)(argp4);
8157 result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4);
8158 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_serializer_s, SWIG_OWNER | 0); argvi++ ;
8159
8160 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8161 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8162
8163 XSRETURN(argvi);
8164 fail:
8165
8166 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8167 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8168
8169 SWIG_croak_null();
8170 }
8171 }
8172
8173
8174 XS(_wrap_librdf_free_serializer) {
8175 {
8176 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8177 void *argp1 = 0 ;
8178 int res1 = 0 ;
8179 int argvi = 0;
8180 dXSARGS;
8181
8182 if ((items < 1) || (items > 1)) {
8183 SWIG_croak("Usage: librdf_free_serializer(serializer);");
8184 }
8185 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_serializer" "', argument " "1"" of type '" "librdf_serializer *""'");
8188 }
8189 arg1 = (librdf_serializer *)(argp1);
8190 librdf_free_serializer(arg1);
8191 ST(argvi) = sv_newmortal();
8192
8193 XSRETURN(argvi);
8194 fail:
8195
8196 SWIG_croak_null();
8197 }
8198 }
8199
8200
8201 XS(_wrap_librdf_serializer_serialize_stream_to_file) {
8202 {
8203 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8204 char *arg2 = (char *) 0 ;
8205 librdf_uri *arg3 = (librdf_uri *) 0 ;
8206 librdf_stream *arg4 = (librdf_stream *) 0 ;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 int res2 ;
8210 char *buf2 = 0 ;
8211 int alloc2 = 0 ;
8212 void *argp3 = 0 ;
8213 int res3 = 0 ;
8214 void *argp4 = 0 ;
8215 int res4 = 0 ;
8216 int argvi = 0;
8217 int result;
8218 dXSARGS;
8219
8220 if ((items < 4) || (items > 4)) {
8221 SWIG_croak("Usage: librdf_serializer_serialize_stream_to_file(serializer,name,base_uri,stream);");
8222 }
8223 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8224 if (!SWIG_IsOK(res1)) {
8225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "1"" of type '" "librdf_serializer *""'");
8226 }
8227 arg1 = (librdf_serializer *)(argp1);
8228 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
8229 if (!SWIG_IsOK(res2)) {
8230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "2"" of type '" "char const *""'");
8231 }
8232 arg2 = (char *)(buf2);
8233 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8234 if (!SWIG_IsOK(res3)) {
8235 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
8236 }
8237 arg3 = (librdf_uri *)(argp3);
8238 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8239 if (!SWIG_IsOK(res4)) {
8240 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_stream_to_file" "', argument " "4"" of type '" "librdf_stream *""'");
8241 }
8242 arg4 = (librdf_stream *)(argp4);
8243 result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4);
8244 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8245
8246 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8247
8248
8249 XSRETURN(argvi);
8250 fail:
8251
8252 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8253
8254
8255 SWIG_croak_null();
8256 }
8257 }
8258
8259
8260 XS(_wrap_librdf_serializer_serialize_model_to_file) {
8261 {
8262 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8263 char *arg2 = (char *) 0 ;
8264 librdf_uri *arg3 = (librdf_uri *) 0 ;
8265 librdf_model *arg4 = (librdf_model *) 0 ;
8266 void *argp1 = 0 ;
8267 int res1 = 0 ;
8268 int res2 ;
8269 char *buf2 = 0 ;
8270 int alloc2 = 0 ;
8271 void *argp3 = 0 ;
8272 int res3 = 0 ;
8273 void *argp4 = 0 ;
8274 int res4 = 0 ;
8275 int argvi = 0;
8276 int result;
8277 dXSARGS;
8278
8279 if ((items < 4) || (items > 4)) {
8280 SWIG_croak("Usage: librdf_serializer_serialize_model_to_file(serializer,name,inUriOrNull,model);");
8281 }
8282 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8283 if (!SWIG_IsOK(res1)) {
8284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "1"" of type '" "librdf_serializer *""'");
8285 }
8286 arg1 = (librdf_serializer *)(argp1);
8287 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
8288 if (!SWIG_IsOK(res2)) {
8289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "2"" of type '" "char const *""'");
8290 }
8291 arg2 = (char *)(buf2);
8292 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8293 if (!SWIG_IsOK(res3)) {
8294 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "3"" of type '" "librdf_uri *""'");
8295 }
8296 arg3 = (librdf_uri *)(argp3);
8297 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8298 if (!SWIG_IsOK(res4)) {
8299 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "librdf_serializer_serialize_model_to_file" "', argument " "4"" of type '" "librdf_model *""'");
8300 }
8301 arg4 = (librdf_model *)(argp4);
8302 result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4);
8303 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8304
8305 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8306
8307
8308 XSRETURN(argvi);
8309 fail:
8310
8311 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8312
8313
8314 SWIG_croak_null();
8315 }
8316 }
8317
8318
8319 XS(_wrap_librdf_serializer_serialize_stream_to_string) {
8320 {
8321 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8322 librdf_uri *arg2 = (librdf_uri *) 0 ;
8323 librdf_stream *arg3 = (librdf_stream *) 0 ;
8324 void *argp1 = 0 ;
8325 int res1 = 0 ;
8326 void *argp2 = 0 ;
8327 int res2 = 0 ;
8328 void *argp3 = 0 ;
8329 int res3 = 0 ;
8330 int argvi = 0;
8331 char *result = 0 ;
8332 dXSARGS;
8333
8334 if ((items < 3) || (items > 3)) {
8335 SWIG_croak("Usage: librdf_serializer_serialize_stream_to_string(serializer,base_uri,stream);");
8336 }
8337 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8338 if (!SWIG_IsOK(res1)) {
8339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "1"" of type '" "librdf_serializer *""'");
8340 }
8341 arg1 = (librdf_serializer *)(argp1);
8342 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8343 if (!SWIG_IsOK(res2)) {
8344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
8345 }
8346 arg2 = (librdf_uri *)(argp2);
8347 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8348 if (!SWIG_IsOK(res3)) {
8349 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_stream_to_string" "', argument " "3"" of type '" "librdf_stream *""'");
8350 }
8351 arg3 = (librdf_stream *)(argp3);
8352 result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3);
8353 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
8354
8355
8356
8357 free((char*)result);
8358 XSRETURN(argvi);
8359 fail:
8360
8361
8362
8363 SWIG_croak_null();
8364 }
8365 }
8366
8367
8368 XS(_wrap_librdf_serializer_serialize_model_to_string) {
8369 {
8370 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8371 librdf_uri *arg2 = (librdf_uri *) 0 ;
8372 librdf_model *arg3 = (librdf_model *) 0 ;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 void *argp2 = 0 ;
8376 int res2 = 0 ;
8377 void *argp3 = 0 ;
8378 int res3 = 0 ;
8379 int argvi = 0;
8380 char *result = 0 ;
8381 dXSARGS;
8382
8383 if ((items < 3) || (items > 3)) {
8384 SWIG_croak("Usage: librdf_serializer_serialize_model_to_string(serializer,inUriOrNull,model);");
8385 }
8386 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8387 if (!SWIG_IsOK(res1)) {
8388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "1"" of type '" "librdf_serializer *""'");
8389 }
8390 arg1 = (librdf_serializer *)(argp1);
8391 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8392 if (!SWIG_IsOK(res2)) {
8393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "2"" of type '" "librdf_uri *""'");
8394 }
8395 arg2 = (librdf_uri *)(argp2);
8396 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_model_s, 0 | 0 );
8397 if (!SWIG_IsOK(res3)) {
8398 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_serialize_model_to_string" "', argument " "3"" of type '" "librdf_model *""'");
8399 }
8400 arg3 = (librdf_model *)(argp3);
8401 result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3);
8402 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
8403
8404
8405
8406 free((char*)result);
8407 XSRETURN(argvi);
8408 fail:
8409
8410
8411
8412 SWIG_croak_null();
8413 }
8414 }
8415
8416
8417 XS(_wrap_librdf_serializer_get_feature) {
8418 {
8419 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8420 librdf_uri *arg2 = (librdf_uri *) 0 ;
8421 void *argp1 = 0 ;
8422 int res1 = 0 ;
8423 void *argp2 = 0 ;
8424 int res2 = 0 ;
8425 int argvi = 0;
8426 librdf_node *result = 0 ;
8427 dXSARGS;
8428
8429 if ((items < 2) || (items > 2)) {
8430 SWIG_croak("Usage: librdf_serializer_get_feature(serializer,feature);");
8431 }
8432 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8433 if (!SWIG_IsOK(res1)) {
8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_get_feature" "', argument " "1"" of type '" "librdf_serializer *""'");
8435 }
8436 arg1 = (librdf_serializer *)(argp1);
8437 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8438 if (!SWIG_IsOK(res2)) {
8439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_get_feature" "', argument " "2"" of type '" "librdf_uri *""'");
8440 }
8441 arg2 = (librdf_uri *)(argp2);
8442 result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2);
8443 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
8444
8445
8446 XSRETURN(argvi);
8447 fail:
8448
8449
8450 SWIG_croak_null();
8451 }
8452 }
8453
8454
8455 XS(_wrap_librdf_serializer_set_feature) {
8456 {
8457 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8458 librdf_uri *arg2 = (librdf_uri *) 0 ;
8459 librdf_node *arg3 = (librdf_node *) 0 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462 void *argp2 = 0 ;
8463 int res2 = 0 ;
8464 void *argp3 = 0 ;
8465 int res3 = 0 ;
8466 int argvi = 0;
8467 int result;
8468 dXSARGS;
8469
8470 if ((items < 3) || (items > 3)) {
8471 SWIG_croak("Usage: librdf_serializer_set_feature(serializer,feature,value);");
8472 }
8473 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8474 if (!SWIG_IsOK(res1)) {
8475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_feature" "', argument " "1"" of type '" "librdf_serializer *""'");
8476 }
8477 arg1 = (librdf_serializer *)(argp1);
8478 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8479 if (!SWIG_IsOK(res2)) {
8480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_feature" "', argument " "2"" of type '" "librdf_uri *""'");
8481 }
8482 arg2 = (librdf_uri *)(argp2);
8483 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_librdf_node_s, 0 | 0 );
8484 if (!SWIG_IsOK(res3)) {
8485 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_feature" "', argument " "3"" of type '" "librdf_node *""'");
8486 }
8487 arg3 = (librdf_node *)(argp3);
8488 result = (int)librdf_serializer_set_feature(arg1,arg2,arg3);
8489 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8490
8491
8492
8493 XSRETURN(argvi);
8494 fail:
8495
8496
8497
8498 SWIG_croak_null();
8499 }
8500 }
8501
8502
8503 XS(_wrap_librdf_serializer_set_namespace) {
8504 {
8505 librdf_serializer *arg1 = (librdf_serializer *) 0 ;
8506 librdf_uri *arg2 = (librdf_uri *) 0 ;
8507 char *arg3 = (char *) 0 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 void *argp2 = 0 ;
8511 int res2 = 0 ;
8512 int res3 ;
8513 char *buf3 = 0 ;
8514 int alloc3 = 0 ;
8515 int argvi = 0;
8516 int result;
8517 dXSARGS;
8518
8519 if ((items < 3) || (items > 3)) {
8520 SWIG_croak("Usage: librdf_serializer_set_namespace(serializer,nspace,prefix);");
8521 }
8522 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_serializer_s, 0 | 0 );
8523 if (!SWIG_IsOK(res1)) {
8524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_serializer_set_namespace" "', argument " "1"" of type '" "librdf_serializer *""'");
8525 }
8526 arg1 = (librdf_serializer *)(argp1);
8527 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_librdf_uri_s, 0 | 0 );
8528 if (!SWIG_IsOK(res2)) {
8529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "librdf_serializer_set_namespace" "', argument " "2"" of type '" "librdf_uri *""'");
8530 }
8531 arg2 = (librdf_uri *)(argp2);
8532 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
8533 if (!SWIG_IsOK(res3)) {
8534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "librdf_serializer_set_namespace" "', argument " "3"" of type '" "char const *""'");
8535 }
8536 arg3 = (char *)(buf3);
8537 result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3);
8538 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8539
8540
8541 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8542 XSRETURN(argvi);
8543 fail:
8544
8545
8546 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
8547 SWIG_croak_null();
8548 }
8549 }
8550
8551
8552 XS(_wrap_librdf_free_stream) {
8553 {
8554 librdf_stream *arg1 = (librdf_stream *) 0 ;
8555 void *argp1 = 0 ;
8556 int res1 = 0 ;
8557 int argvi = 0;
8558 dXSARGS;
8559
8560 if ((items < 1) || (items > 1)) {
8561 SWIG_croak("Usage: librdf_free_stream(stream);");
8562 }
8563 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8564 if (!SWIG_IsOK(res1)) {
8565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_free_stream" "', argument " "1"" of type '" "librdf_stream *""'");
8566 }
8567 arg1 = (librdf_stream *)(argp1);
8568 librdf_free_stream(arg1);
8569 ST(argvi) = sv_newmortal();
8570
8571 XSRETURN(argvi);
8572 fail:
8573
8574 SWIG_croak_null();
8575 }
8576 }
8577
8578
8579 XS(_wrap_librdf_stream_end) {
8580 {
8581 librdf_stream *arg1 = (librdf_stream *) 0 ;
8582 void *argp1 = 0 ;
8583 int res1 = 0 ;
8584 int argvi = 0;
8585 int result;
8586 dXSARGS;
8587
8588 if ((items < 1) || (items > 1)) {
8589 SWIG_croak("Usage: librdf_stream_end(stream);");
8590 }
8591 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8592 if (!SWIG_IsOK(res1)) {
8593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_end" "', argument " "1"" of type '" "librdf_stream *""'");
8594 }
8595 arg1 = (librdf_stream *)(argp1);
8596 result = (int)librdf_stream_end(arg1);
8597 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8598
8599 XSRETURN(argvi);
8600 fail:
8601
8602 SWIG_croak_null();
8603 }
8604 }
8605
8606
8607 XS(_wrap_librdf_stream_next) {
8608 {
8609 librdf_stream *arg1 = (librdf_stream *) 0 ;
8610 void *argp1 = 0 ;
8611 int res1 = 0 ;
8612 int argvi = 0;
8613 int result;
8614 dXSARGS;
8615
8616 if ((items < 1) || (items > 1)) {
8617 SWIG_croak("Usage: librdf_stream_next(stream);");
8618 }
8619 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_next" "', argument " "1"" of type '" "librdf_stream *""'");
8622 }
8623 arg1 = (librdf_stream *)(argp1);
8624 result = (int)librdf_stream_next(arg1);
8625 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8626
8627 XSRETURN(argvi);
8628 fail:
8629
8630 SWIG_croak_null();
8631 }
8632 }
8633
8634
8635 XS(_wrap_librdf_stream_get_object) {
8636 {
8637 librdf_stream *arg1 = (librdf_stream *) 0 ;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 int argvi = 0;
8641 librdf_statement *result = 0 ;
8642 dXSARGS;
8643
8644 if ((items < 1) || (items > 1)) {
8645 SWIG_croak("Usage: librdf_stream_get_object(stream);");
8646 }
8647 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8648 if (!SWIG_IsOK(res1)) {
8649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_object" "', argument " "1"" of type '" "librdf_stream *""'");
8650 }
8651 arg1 = (librdf_stream *)(argp1);
8652 result = (librdf_statement *)librdf_stream_get_object(arg1);
8653 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_statement_s, 0 | 0); argvi++ ;
8654
8655 XSRETURN(argvi);
8656 fail:
8657
8658 SWIG_croak_null();
8659 }
8660 }
8661
8662
8663 XS(_wrap_librdf_stream_get_context) {
8664 {
8665 librdf_stream *arg1 = (librdf_stream *) 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 int argvi = 0;
8669 librdf_node *result = 0 ;
8670 dXSARGS;
8671
8672 if ((items < 1) || (items > 1)) {
8673 SWIG_croak("Usage: librdf_stream_get_context(stream);");
8674 }
8675 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_stream_s, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_stream_get_context" "', argument " "1"" of type '" "librdf_stream *""'");
8678 }
8679 arg1 = (librdf_stream *)(argp1);
8680 result = (librdf_node *)librdf_stream_get_context(arg1);
8681 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_librdf_node_s, 0 | 0); argvi++ ;
8682
8683 XSRETURN(argvi);
8684 fail:
8685
8686 SWIG_croak_null();
8687 }
8688 }
8689
8690
8691 XS(_wrap_librdf_log_message_code) {
8692 {
8693 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
8694 void *argp1 = 0 ;
8695 int res1 = 0 ;
8696 int argvi = 0;
8697 int result;
8698 dXSARGS;
8699
8700 if ((items < 1) || (items > 1)) {
8701 SWIG_croak("Usage: librdf_log_message_code(message);");
8702 }
8703 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
8704 if (!SWIG_IsOK(res1)) {
8705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_code" "', argument " "1"" of type '" "librdf_log_message *""'");
8706 }
8707 arg1 = (librdf_log_message *)(argp1);
8708 result = (int)librdf_log_message_code(arg1);
8709 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8710
8711 XSRETURN(argvi);
8712 fail:
8713
8714 SWIG_croak_null();
8715 }
8716 }
8717
8718
8719 XS(_wrap_librdf_log_message_level) {
8720 {
8721 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
8722 void *argp1 = 0 ;
8723 int res1 = 0 ;
8724 int argvi = 0;
8725 int result;
8726 dXSARGS;
8727
8728 if ((items < 1) || (items > 1)) {
8729 SWIG_croak("Usage: librdf_log_message_level(message);");
8730 }
8731 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
8732 if (!SWIG_IsOK(res1)) {
8733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_level" "', argument " "1"" of type '" "librdf_log_message *""'");
8734 }
8735 arg1 = (librdf_log_message *)(argp1);
8736 result = (int)librdf_log_message_level(arg1);
8737 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8738
8739 XSRETURN(argvi);
8740 fail:
8741
8742 SWIG_croak_null();
8743 }
8744 }
8745
8746
8747 XS(_wrap_librdf_log_message_facility) {
8748 {
8749 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
8750 void *argp1 = 0 ;
8751 int res1 = 0 ;
8752 int argvi = 0;
8753 int result;
8754 dXSARGS;
8755
8756 if ((items < 1) || (items > 1)) {
8757 SWIG_croak("Usage: librdf_log_message_facility(message);");
8758 }
8759 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
8760 if (!SWIG_IsOK(res1)) {
8761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_facility" "', argument " "1"" of type '" "librdf_log_message *""'");
8762 }
8763 arg1 = (librdf_log_message *)(argp1);
8764 result = (int)librdf_log_message_facility(arg1);
8765 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8766
8767 XSRETURN(argvi);
8768 fail:
8769
8770 SWIG_croak_null();
8771 }
8772 }
8773
8774
8775 XS(_wrap_librdf_log_message_message) {
8776 {
8777 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
8778 void *argp1 = 0 ;
8779 int res1 = 0 ;
8780 int argvi = 0;
8781 char *result = 0 ;
8782 dXSARGS;
8783
8784 if ((items < 1) || (items > 1)) {
8785 SWIG_croak("Usage: librdf_log_message_message(message);");
8786 }
8787 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
8788 if (!SWIG_IsOK(res1)) {
8789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_message" "', argument " "1"" of type '" "librdf_log_message *""'");
8790 }
8791 arg1 = (librdf_log_message *)(argp1);
8792 result = (char *)librdf_log_message_message(arg1);
8793 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
8794
8795 XSRETURN(argvi);
8796 fail:
8797
8798 SWIG_croak_null();
8799 }
8800 }
8801
8802
8803 XS(_wrap_librdf_log_message_locator) {
8804 {
8805 librdf_log_message *arg1 = (librdf_log_message *) 0 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 int argvi = 0;
8809 raptor_locator *result = 0 ;
8810 dXSARGS;
8811
8812 if ((items < 1) || (items > 1)) {
8813 SWIG_croak("Usage: librdf_log_message_locator(message);");
8814 }
8815 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_log_message, 0 | 0 );
8816 if (!SWIG_IsOK(res1)) {
8817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_log_message_locator" "', argument " "1"" of type '" "librdf_log_message *""'");
8818 }
8819 arg1 = (librdf_log_message *)(argp1);
8820 result = (raptor_locator *)librdf_log_message_locator(arg1);
8821 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_raptor_locator, 0 | 0); argvi++ ;
8822
8823 XSRETURN(argvi);
8824 fail:
8825
8826 SWIG_croak_null();
8827 }
8828 }
8829
8830
8831 XS(_wrap_raptor_locator_line) {
8832 {
8833 raptor_locator *arg1 = (raptor_locator *) 0 ;
8834 void *argp1 = 0 ;
8835 int res1 = 0 ;
8836 int argvi = 0;
8837 int result;
8838 dXSARGS;
8839
8840 if ((items < 1) || (items > 1)) {
8841 SWIG_croak("Usage: raptor_locator_line(locator);");
8842 }
8843 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
8844 if (!SWIG_IsOK(res1)) {
8845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_line" "', argument " "1"" of type '" "raptor_locator *""'");
8846 }
8847 arg1 = (raptor_locator *)(argp1);
8848 result = (int)raptor_locator_line(arg1);
8849 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8850
8851 XSRETURN(argvi);
8852 fail:
8853
8854 SWIG_croak_null();
8855 }
8856 }
8857
8858
8859 XS(_wrap_raptor_locator_column) {
8860 {
8861 raptor_locator *arg1 = (raptor_locator *) 0 ;
8862 void *argp1 = 0 ;
8863 int res1 = 0 ;
8864 int argvi = 0;
8865 int result;
8866 dXSARGS;
8867
8868 if ((items < 1) || (items > 1)) {
8869 SWIG_croak("Usage: raptor_locator_column(locator);");
8870 }
8871 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
8872 if (!SWIG_IsOK(res1)) {
8873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_column" "', argument " "1"" of type '" "raptor_locator *""'");
8874 }
8875 arg1 = (raptor_locator *)(argp1);
8876 result = (int)raptor_locator_column(arg1);
8877 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8878
8879 XSRETURN(argvi);
8880 fail:
8881
8882 SWIG_croak_null();
8883 }
8884 }
8885
8886
8887 XS(_wrap_raptor_locator_byte) {
8888 {
8889 raptor_locator *arg1 = (raptor_locator *) 0 ;
8890 void *argp1 = 0 ;
8891 int res1 = 0 ;
8892 int argvi = 0;
8893 int result;
8894 dXSARGS;
8895
8896 if ((items < 1) || (items > 1)) {
8897 SWIG_croak("Usage: raptor_locator_byte(locator);");
8898 }
8899 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
8900 if (!SWIG_IsOK(res1)) {
8901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_byte" "', argument " "1"" of type '" "raptor_locator *""'");
8902 }
8903 arg1 = (raptor_locator *)(argp1);
8904 result = (int)raptor_locator_byte(arg1);
8905 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
8906
8907 XSRETURN(argvi);
8908 fail:
8909
8910 SWIG_croak_null();
8911 }
8912 }
8913
8914
8915 XS(_wrap_raptor_locator_file) {
8916 {
8917 raptor_locator *arg1 = (raptor_locator *) 0 ;
8918 void *argp1 = 0 ;
8919 int res1 = 0 ;
8920 int argvi = 0;
8921 char *result = 0 ;
8922 dXSARGS;
8923
8924 if ((items < 1) || (items > 1)) {
8925 SWIG_croak("Usage: raptor_locator_file(locator);");
8926 }
8927 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
8928 if (!SWIG_IsOK(res1)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_file" "', argument " "1"" of type '" "raptor_locator *""'");
8930 }
8931 arg1 = (raptor_locator *)(argp1);
8932 result = (char *)raptor_locator_file(arg1);
8933 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
8934
8935 XSRETURN(argvi);
8936 fail:
8937
8938 SWIG_croak_null();
8939 }
8940 }
8941
8942
8943 XS(_wrap_raptor_locator_uri) {
8944 {
8945 raptor_locator *arg1 = (raptor_locator *) 0 ;
8946 void *argp1 = 0 ;
8947 int res1 = 0 ;
8948 int argvi = 0;
8949 char *result = 0 ;
8950 dXSARGS;
8951
8952 if ((items < 1) || (items > 1)) {
8953 SWIG_croak("Usage: raptor_locator_uri(locator);");
8954 }
8955 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_raptor_locator, 0 | 0 );
8956 if (!SWIG_IsOK(res1)) {
8957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "raptor_locator_uri" "', argument " "1"" of type '" "raptor_locator *""'");
8958 }
8959 arg1 = (raptor_locator *)(argp1);
8960 result = (char *)raptor_locator_uri(arg1);
8961 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
8962
8963 XSRETURN(argvi);
8964 fail:
8965
8966 SWIG_croak_null();
8967 }
8968 }
8969
8970
8971 XS(_wrap_librdf_internal_test_error) {
8972 {
8973 librdf_world *arg1 = (librdf_world *) 0 ;
8974 void *argp1 = 0 ;
8975 int res1 = 0 ;
8976 int argvi = 0;
8977 dXSARGS;
8978
8979 if ((items < 1) || (items > 1)) {
8980 SWIG_croak("Usage: librdf_internal_test_error(world);");
8981 }
8982 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
8983 if (!SWIG_IsOK(res1)) {
8984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_error" "', argument " "1"" of type '" "librdf_world *""'");
8985 }
8986 arg1 = (librdf_world *)(argp1);
8987 librdf_internal_test_error(arg1);
8988 ST(argvi) = sv_newmortal();
8989
8990 XSRETURN(argvi);
8991 fail:
8992
8993 SWIG_croak_null();
8994 }
8995 }
8996
8997
8998 XS(_wrap_librdf_internal_test_warning) {
8999 {
9000 librdf_world *arg1 = (librdf_world *) 0 ;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 int argvi = 0;
9004 dXSARGS;
9005
9006 if ((items < 1) || (items > 1)) {
9007 SWIG_croak("Usage: librdf_internal_test_warning(world);");
9008 }
9009 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
9010 if (!SWIG_IsOK(res1)) {
9011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_internal_test_warning" "', argument " "1"" of type '" "librdf_world *""'");
9012 }
9013 arg1 = (librdf_world *)(argp1);
9014 librdf_internal_test_warning(arg1);
9015 ST(argvi) = sv_newmortal();
9016
9017 XSRETURN(argvi);
9018 fail:
9019
9020 SWIG_croak_null();
9021 }
9022 }
9023
9024
9025 XS(_wrap_librdf_perl_world_init) {
9026 {
9027 librdf_world *arg1 = (librdf_world *) 0 ;
9028 void *argp1 = 0 ;
9029 int res1 = 0 ;
9030 int argvi = 0;
9031 dXSARGS;
9032
9033 if ((items < 1) || (items > 1)) {
9034 SWIG_croak("Usage: librdf_perl_world_init(world);");
9035 }
9036 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_librdf_world_s, 0 | 0 );
9037 if (!SWIG_IsOK(res1)) {
9038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "librdf_perl_world_init" "', argument " "1"" of type '" "librdf_world *""'");
9039 }
9040 arg1 = (librdf_world *)(argp1);
9041 librdf_perl_world_init(arg1);
9042 ST(argvi) = sv_newmortal();
9043
9044 XSRETURN(argvi);
9045 fail:
9046
9047 SWIG_croak_null();
9048 }
9049 }
9050
9051
9052 XS(_wrap_librdf_perl_world_finish) {
9053 {
9054 int argvi = 0;
9055 dXSARGS;
9056
9057 if ((items < 0) || (items > 0)) {
9058 SWIG_croak("Usage: librdf_perl_world_finish();");
9059 }
9060 librdf_perl_world_finish();
9061 ST(argvi) = sv_newmortal();
9062 XSRETURN(argvi);
9063 fail:
9064 SWIG_croak_null();
9065 }
9066 }
9067
9068
9069
9070 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
9071
9072 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
9073 static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0};
9074 static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0};
9075 static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0};
9076 static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0};
9077 static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0};
9078 static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0};
9079 static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0};
9080 static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0};
9081 static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0};
9082 static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0};
9083 static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0};
9084 static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0};
9085 static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0};
9086 static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0};
9087 static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0};
9088 static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0};
9089 static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
9090 static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0};
9091
9092 static swig_type_info *swig_type_initial[] = {
9093 &_swigt__p_char,
9094 &_swigt__p_librdf_digest_s,
9095 &_swigt__p_librdf_hash_s,
9096 &_swigt__p_librdf_iterator_s,
9097 &_swigt__p_librdf_log_func,
9098 &_swigt__p_librdf_log_message,
9099 &_swigt__p_librdf_model_s,
9100 &_swigt__p_librdf_node_s,
9101 &_swigt__p_librdf_parser_s,
9102 &_swigt__p_librdf_query,
9103 &_swigt__p_librdf_query_results,
9104 &_swigt__p_librdf_serializer_s,
9105 &_swigt__p_librdf_statement_s,
9106 &_swigt__p_librdf_storage_s,
9107 &_swigt__p_librdf_stream_s,
9108 &_swigt__p_librdf_uri_s,
9109 &_swigt__p_librdf_world_s,
9110 &_swigt__p_p_char,
9111 &_swigt__p_raptor_locator,
9112 };
9113
9114 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
9115 static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}};
9116 static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}};
9117 static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}};
9118 static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}};
9119 static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}};
9120 static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}};
9121 static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}};
9122 static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}};
9123 static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}};
9124 static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}};
9125 static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}};
9126 static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}};
9127 static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}};
9128 static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}};
9129 static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}};
9130 static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}};
9131 static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
9132 static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}};
9133
9134 static swig_cast_info *swig_cast_initial[] = {
9135 _swigc__p_char,
9136 _swigc__p_librdf_digest_s,
9137 _swigc__p_librdf_hash_s,
9138 _swigc__p_librdf_iterator_s,
9139 _swigc__p_librdf_log_func,
9140 _swigc__p_librdf_log_message,
9141 _swigc__p_librdf_model_s,
9142 _swigc__p_librdf_node_s,
9143 _swigc__p_librdf_parser_s,
9144 _swigc__p_librdf_query,
9145 _swigc__p_librdf_query_results,
9146 _swigc__p_librdf_serializer_s,
9147 _swigc__p_librdf_statement_s,
9148 _swigc__p_librdf_storage_s,
9149 _swigc__p_librdf_stream_s,
9150 _swigc__p_librdf_uri_s,
9151 _swigc__p_librdf_world_s,
9152 _swigc__p_p_char,
9153 _swigc__p_raptor_locator,
9154 };
9155
9156
9157 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9158
9159 static swig_constant_info swig_constants[] = {
9160 {0,0,0,0,0,0}
9161 };
9162 #ifdef __cplusplus
9163 }
9164 #endif
9165 static swig_variable_info swig_variables[] = {
9166 { "RDF::Redland::COREc::librdf_short_copyright_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_short_copyright_string_get,0 },
9167 { "RDF::Redland::COREc::librdf_copyright_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_copyright_string_get,0 },
9168 { "RDF::Redland::COREc::librdf_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_string_get,0 },
9169 { "RDF::Redland::COREc::librdf_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_major_get,0 },
9170 { "RDF::Redland::COREc::librdf_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_minor_get,0 },
9171 { "RDF::Redland::COREc::librdf_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_release_get,0 },
9172 { "RDF::Redland::COREc::librdf_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_librdf_version_decimal_get,0 },
9173 { "RDF::Redland::COREc::raptor_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_string_get,0 },
9174 { "RDF::Redland::COREc::raptor_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_major_get,0 },
9175 { "RDF::Redland::COREc::raptor_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_minor_get,0 },
9176 { "RDF::Redland::COREc::raptor_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_release_get,0 },
9177 { "RDF::Redland::COREc::raptor_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_raptor_version_decimal_get,0 },
9178 { "RDF::Redland::COREc::rasqal_version_string", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_string_get,0 },
9179 { "RDF::Redland::COREc::rasqal_version_major", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_major_get,0 },
9180 { "RDF::Redland::COREc::rasqal_version_minor", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_minor_get,0 },
9181 { "RDF::Redland::COREc::rasqal_version_release", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_release_get,0 },
9182 { "RDF::Redland::COREc::rasqal_version_decimal", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_rasqal_version_decimal_get,0 },
9183 {0,0,0,0}
9184 };
9185 static swig_command_info swig_commands[] = {
9186 {"RDF::Redland::COREc::librdf_new_digest", _wrap_librdf_new_digest},
9187 {"RDF::Redland::COREc::librdf_free_digest", _wrap_librdf_free_digest},
9188 {"RDF::Redland::COREc::librdf_digest_init", _wrap_librdf_digest_init},
9189 {"RDF::Redland::COREc::librdf_digest_update", _wrap_librdf_digest_update},
9190 {"RDF::Redland::COREc::librdf_digest_update_string", _wrap_librdf_digest_update_string},
9191 {"RDF::Redland::COREc::librdf_digest_final", _wrap_librdf_digest_final},
9192 {"RDF::Redland::COREc::librdf_digest_to_string", _wrap_librdf_digest_to_string},
9193 {"RDF::Redland::COREc::librdf_new_hash", _wrap_librdf_new_hash},
9194 {"RDF::Redland::COREc::librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string},
9195 {"RDF::Redland::COREc::librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings},
9196 {"RDF::Redland::COREc::librdf_hash_to_string", _wrap_librdf_hash_to_string},
9197 {"RDF::Redland::COREc::librdf_free_hash", _wrap_librdf_free_hash},
9198 {"RDF::Redland::COREc::librdf_new_world", _wrap_librdf_new_world},
9199 {"RDF::Redland::COREc::librdf_free_world", _wrap_librdf_free_world},
9200 {"RDF::Redland::COREc::librdf_world_open", _wrap_librdf_world_open},
9201 {"RDF::Redland::COREc::librdf_world_get_feature", _wrap_librdf_world_get_feature},
9202 {"RDF::Redland::COREc::librdf_world_set_feature", _wrap_librdf_world_set_feature},
9203 {"RDF::Redland::COREc::librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header},
9204 {"RDF::Redland::COREc::librdf_world_set_logger", _wrap_librdf_world_set_logger},
9205 {"RDF::Redland::COREc::librdf_free_iterator", _wrap_librdf_free_iterator},
9206 {"RDF::Redland::COREc::librdf_iterator_end", _wrap_librdf_iterator_end},
9207 {"RDF::Redland::COREc::librdf_iterator_get_object", _wrap_librdf_iterator_get_object},
9208 {"RDF::Redland::COREc::librdf_iterator_get_context", _wrap_librdf_iterator_get_context},
9209 {"RDF::Redland::COREc::librdf_iterator_next", _wrap_librdf_iterator_next},
9210 {"RDF::Redland::COREc::librdf_new_uri", _wrap_librdf_new_uri},
9211 {"RDF::Redland::COREc::librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri},
9212 {"RDF::Redland::COREc::librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename},
9213 {"RDF::Redland::COREc::librdf_free_uri", _wrap_librdf_free_uri},
9214 {"RDF::Redland::COREc::librdf_uri_to_string", _wrap_librdf_uri_to_string},
9215 {"RDF::Redland::COREc::librdf_uri_equals", _wrap_librdf_uri_equals},
9216 {"RDF::Redland::COREc::librdf_uri_compare", _wrap_librdf_uri_compare},
9217 {"RDF::Redland::COREc::librdf_new_node", _wrap_librdf_new_node},
9218 {"RDF::Redland::COREc::librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string},
9219 {"RDF::Redland::COREc::librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri},
9220 {"RDF::Redland::COREc::librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name},
9221 {"RDF::Redland::COREc::librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string},
9222 {"RDF::Redland::COREc::librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal},
9223 {"RDF::Redland::COREc::librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal},
9224 {"RDF::Redland::COREc::librdf_new_node_from_node", _wrap_librdf_new_node_from_node},
9225 {"RDF::Redland::COREc::librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier},
9226 {"RDF::Redland::COREc::librdf_free_node", _wrap_librdf_free_node},
9227 {"RDF::Redland::COREc::librdf_node_get_uri", _wrap_librdf_node_get_uri},
9228 {"RDF::Redland::COREc::librdf_node_get_type", _wrap_librdf_node_get_type},
9229 {"RDF::Redland::COREc::librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value},
9230 {"RDF::Redland::COREc::librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1},
9231 {"RDF::Redland::COREc::librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language},
9232 {"RDF::Redland::COREc::librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri},
9233 {"RDF::Redland::COREc::librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml},
9234 {"RDF::Redland::COREc::librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal},
9235 {"RDF::Redland::COREc::librdf_node_to_string", _wrap_librdf_node_to_string},
9236 {"RDF::Redland::COREc::librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier},
9237 {"RDF::Redland::COREc::librdf_node_is_resource", _wrap_librdf_node_is_resource},
9238 {"RDF::Redland::COREc::librdf_node_is_literal", _wrap_librdf_node_is_literal},
9239 {"RDF::Redland::COREc::librdf_node_is_blank", _wrap_librdf_node_is_blank},
9240 {"RDF::Redland::COREc::librdf_node_equals", _wrap_librdf_node_equals},
9241 {"RDF::Redland::COREc::librdf_new_statement", _wrap_librdf_new_statement},
9242 {"RDF::Redland::COREc::librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement},
9243 {"RDF::Redland::COREc::librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes},
9244 {"RDF::Redland::COREc::librdf_free_statement", _wrap_librdf_free_statement},
9245 {"RDF::Redland::COREc::librdf_statement_get_subject", _wrap_librdf_statement_get_subject},
9246 {"RDF::Redland::COREc::librdf_statement_set_subject", _wrap_librdf_statement_set_subject},
9247 {"RDF::Redland::COREc::librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate},
9248 {"RDF::Redland::COREc::librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate},
9249 {"RDF::Redland::COREc::librdf_statement_get_object", _wrap_librdf_statement_get_object},
9250 {"RDF::Redland::COREc::librdf_statement_set_object", _wrap_librdf_statement_set_object},
9251 {"RDF::Redland::COREc::librdf_statement_equals", _wrap_librdf_statement_equals},
9252 {"RDF::Redland::COREc::librdf_statement_match", _wrap_librdf_statement_match},
9253 {"RDF::Redland::COREc::librdf_statement_to_string", _wrap_librdf_statement_to_string},
9254 {"RDF::Redland::COREc::librdf_statement_is_complete", _wrap_librdf_statement_is_complete},
9255 {"RDF::Redland::COREc::librdf_new_model", _wrap_librdf_new_model},
9256 {"RDF::Redland::COREc::librdf_new_model_with_options", _wrap_librdf_new_model_with_options},
9257 {"RDF::Redland::COREc::librdf_new_model_from_model", _wrap_librdf_new_model_from_model},
9258 {"RDF::Redland::COREc::librdf_free_model", _wrap_librdf_free_model},
9259 {"RDF::Redland::COREc::librdf_model_size", _wrap_librdf_model_size},
9260 {"RDF::Redland::COREc::librdf_model_add", _wrap_librdf_model_add},
9261 {"RDF::Redland::COREc::librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement},
9262 {"RDF::Redland::COREc::librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement},
9263 {"RDF::Redland::COREc::librdf_model_add_statement", _wrap_librdf_model_add_statement},
9264 {"RDF::Redland::COREc::librdf_model_add_statements", _wrap_librdf_model_add_statements},
9265 {"RDF::Redland::COREc::librdf_model_remove_statement", _wrap_librdf_model_remove_statement},
9266 {"RDF::Redland::COREc::librdf_model_contains_statement", _wrap_librdf_model_contains_statement},
9267 {"RDF::Redland::COREc::librdf_model_as_stream", _wrap_librdf_model_as_stream},
9268 {"RDF::Redland::COREc::librdf_model_find_statements", _wrap_librdf_model_find_statements},
9269 {"RDF::Redland::COREc::librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context},
9270 {"RDF::Redland::COREc::librdf_model_get_sources", _wrap_librdf_model_get_sources},
9271 {"RDF::Redland::COREc::librdf_model_get_arcs", _wrap_librdf_model_get_arcs},
9272 {"RDF::Redland::COREc::librdf_model_get_targets", _wrap_librdf_model_get_targets},
9273 {"RDF::Redland::COREc::librdf_model_get_source", _wrap_librdf_model_get_source},
9274 {"RDF::Redland::COREc::librdf_model_get_arc", _wrap_librdf_model_get_arc},
9275 {"RDF::Redland::COREc::librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out},
9276 {"RDF::Redland::COREc::librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in},
9277 {"RDF::Redland::COREc::librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in},
9278 {"RDF::Redland::COREc::librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out},
9279 {"RDF::Redland::COREc::librdf_model_get_target", _wrap_librdf_model_get_target},
9280 {"RDF::Redland::COREc::librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement},
9281 {"RDF::Redland::COREc::librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements},
9282 {"RDF::Redland::COREc::librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement},
9283 {"RDF::Redland::COREc::librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements},
9284 {"RDF::Redland::COREc::librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream},
9285 {"RDF::Redland::COREc::librdf_model_sync", _wrap_librdf_model_sync},
9286 {"RDF::Redland::COREc::librdf_model_get_contexts", _wrap_librdf_model_get_contexts},
9287 {"RDF::Redland::COREc::librdf_model_contains_context", _wrap_librdf_model_contains_context},
9288 {"RDF::Redland::COREc::librdf_model_get_feature", _wrap_librdf_model_get_feature},
9289 {"RDF::Redland::COREc::librdf_model_set_feature", _wrap_librdf_model_set_feature},
9290 {"RDF::Redland::COREc::librdf_model_load", _wrap_librdf_model_load},
9291 {"RDF::Redland::COREc::librdf_model_query_execute", _wrap_librdf_model_query_execute},
9292 {"RDF::Redland::COREc::librdf_model_to_string", _wrap_librdf_model_to_string},
9293 {"RDF::Redland::COREc::librdf_model_transaction_start", _wrap_librdf_model_transaction_start},
9294 {"RDF::Redland::COREc::librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit},
9295 {"RDF::Redland::COREc::librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback},
9296 {"RDF::Redland::COREc::librdf_new_storage", _wrap_librdf_new_storage},
9297 {"RDF::Redland::COREc::librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage},
9298 {"RDF::Redland::COREc::librdf_free_storage", _wrap_librdf_free_storage},
9299 {"RDF::Redland::COREc::librdf_parser_check_name", _wrap_librdf_parser_check_name},
9300 {"RDF::Redland::COREc::librdf_new_parser", _wrap_librdf_new_parser},
9301 {"RDF::Redland::COREc::librdf_free_parser", _wrap_librdf_free_parser},
9302 {"RDF::Redland::COREc::librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream},
9303 {"RDF::Redland::COREc::librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model},
9304 {"RDF::Redland::COREc::librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream},
9305 {"RDF::Redland::COREc::librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model},
9306 {"RDF::Redland::COREc::librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream},
9307 {"RDF::Redland::COREc::librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model},
9308 {"RDF::Redland::COREc::librdf_parser_get_feature", _wrap_librdf_parser_get_feature},
9309 {"RDF::Redland::COREc::librdf_parser_set_feature", _wrap_librdf_parser_set_feature},
9310 {"RDF::Redland::COREc::librdf_parser_guess_name", _wrap_librdf_parser_guess_name},
9311 {"RDF::Redland::COREc::librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2},
9312 {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix},
9313 {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri},
9314 {"RDF::Redland::COREc::librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count},
9315 {"RDF::Redland::COREc::librdf_new_query", _wrap_librdf_new_query},
9316 {"RDF::Redland::COREc::librdf_new_query_from_query", _wrap_librdf_new_query_from_query},
9317 {"RDF::Redland::COREc::librdf_free_query", _wrap_librdf_free_query},
9318 {"RDF::Redland::COREc::librdf_query_execute", _wrap_librdf_query_execute},
9319 {"RDF::Redland::COREc::librdf_query_get_limit", _wrap_librdf_query_get_limit},
9320 {"RDF::Redland::COREc::librdf_query_set_limit", _wrap_librdf_query_set_limit},
9321 {"RDF::Redland::COREc::librdf_query_get_offset", _wrap_librdf_query_get_offset},
9322 {"RDF::Redland::COREc::librdf_query_set_offset", _wrap_librdf_query_set_offset},
9323 {"RDF::Redland::COREc::librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream},
9324 {"RDF::Redland::COREc::librdf_query_results_get_count", _wrap_librdf_query_results_get_count},
9325 {"RDF::Redland::COREc::librdf_query_results_next", _wrap_librdf_query_results_next},
9326 {"RDF::Redland::COREc::librdf_query_results_finished", _wrap_librdf_query_results_finished},
9327 {"RDF::Redland::COREc::librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value},
9328 {"RDF::Redland::COREc::librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name},
9329 {"RDF::Redland::COREc::librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name},
9330 {"RDF::Redland::COREc::librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count},
9331 {"RDF::Redland::COREc::librdf_query_results_to_file", _wrap_librdf_query_results_to_file},
9332 {"RDF::Redland::COREc::librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2},
9333 {"RDF::Redland::COREc::librdf_query_results_to_string", _wrap_librdf_query_results_to_string},
9334 {"RDF::Redland::COREc::librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2},
9335 {"RDF::Redland::COREc::librdf_free_query_results", _wrap_librdf_free_query_results},
9336 {"RDF::Redland::COREc::librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings},
9337 {"RDF::Redland::COREc::librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean},
9338 {"RDF::Redland::COREc::librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph},
9339 {"RDF::Redland::COREc::librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax},
9340 {"RDF::Redland::COREc::librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean},
9341 {"RDF::Redland::COREc::librdf_serializer_check_name", _wrap_librdf_serializer_check_name},
9342 {"RDF::Redland::COREc::librdf_new_serializer", _wrap_librdf_new_serializer},
9343 {"RDF::Redland::COREc::librdf_free_serializer", _wrap_librdf_free_serializer},
9344 {"RDF::Redland::COREc::librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file},
9345 {"RDF::Redland::COREc::librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file},
9346 {"RDF::Redland::COREc::librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string},
9347 {"RDF::Redland::COREc::librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string},
9348 {"RDF::Redland::COREc::librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature},
9349 {"RDF::Redland::COREc::librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature},
9350 {"RDF::Redland::COREc::librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace},
9351 {"RDF::Redland::COREc::librdf_free_stream", _wrap_librdf_free_stream},
9352 {"RDF::Redland::COREc::librdf_stream_end", _wrap_librdf_stream_end},
9353 {"RDF::Redland::COREc::librdf_stream_next", _wrap_librdf_stream_next},
9354 {"RDF::Redland::COREc::librdf_stream_get_object", _wrap_librdf_stream_get_object},
9355 {"RDF::Redland::COREc::librdf_stream_get_context", _wrap_librdf_stream_get_context},
9356 {"RDF::Redland::COREc::librdf_log_message_code", _wrap_librdf_log_message_code},
9357 {"RDF::Redland::COREc::librdf_log_message_level", _wrap_librdf_log_message_level},
9358 {"RDF::Redland::COREc::librdf_log_message_facility", _wrap_librdf_log_message_facility},
9359 {"RDF::Redland::COREc::librdf_log_message_message", _wrap_librdf_log_message_message},
9360 {"RDF::Redland::COREc::librdf_log_message_locator", _wrap_librdf_log_message_locator},
9361 {"RDF::Redland::COREc::raptor_locator_line", _wrap_raptor_locator_line},
9362 {"RDF::Redland::COREc::raptor_locator_column", _wrap_raptor_locator_column},
9363 {"RDF::Redland::COREc::raptor_locator_byte", _wrap_raptor_locator_byte},
9364 {"RDF::Redland::COREc::raptor_locator_file", _wrap_raptor_locator_file},
9365 {"RDF::Redland::COREc::raptor_locator_uri", _wrap_raptor_locator_uri},
9366 {"RDF::Redland::COREc::librdf_internal_test_error", _wrap_librdf_internal_test_error},
9367 {"RDF::Redland::COREc::librdf_internal_test_warning", _wrap_librdf_internal_test_warning},
9368 {"RDF::Redland::COREc::librdf_perl_world_init", _wrap_librdf_perl_world_init},
9369 {"RDF::Redland::COREc::librdf_perl_world_finish", _wrap_librdf_perl_world_finish},
9370 {0,0}
9371 };
9372 /* -----------------------------------------------------------------------------
9373 * Type initialization:
9374 * This problem is tough by the requirement that no dynamic
9375 * memory is used. Also, since swig_type_info structures store pointers to
9376 * swig_cast_info structures and swig_cast_info structures store pointers back
9377 * to swig_type_info structures, we need some lookup code at initialization.
9378 * The idea is that swig generates all the structures that are needed.
9379 * The runtime then collects these partially filled structures.
9380 * The SWIG_InitializeModule function takes these initial arrays out of
9381 * swig_module, and does all the lookup, filling in the swig_module.types
9382 * array with the correct data and linking the correct swig_cast_info
9383 * structures together.
9384 *
9385 * The generated swig_type_info structures are assigned staticly to an initial
9386 * array. We just loop through that array, and handle each type individually.
9387 * First we lookup if this type has been already loaded, and if so, use the
9388 * loaded structure instead of the generated one. Then we have to fill in the
9389 * cast linked list. The cast data is initially stored in something like a
9390 * two-dimensional array. Each row corresponds to a type (there are the same
9391 * number of rows as there are in the swig_type_initial array). Each entry in
9392 * a column is one of the swig_cast_info structures for that type.
9393 * The cast_initial array is actually an array of arrays, because each row has
9394 * a variable number of columns. So to actually build the cast linked list,
9395 * we find the array of casts associated with the type, and loop through it
9396 * adding the casts to the list. The one last trick we need to do is making
9397 * sure the type pointer in the swig_cast_info struct is correct.
9398 *
9399 * First off, we lookup the cast->type name to see if it is already loaded.
9400 * There are three cases to handle:
9401 * 1) If the cast->type has already been loaded AND the type we are adding
9402 * casting info to has not been loaded (it is in this module), THEN we
9403 * replace the cast->type pointer with the type pointer that has already
9404 * been loaded.
9405 * 2) If BOTH types (the one we are adding casting info to, and the
9406 * cast->type) are loaded, THEN the cast info has already been loaded by
9407 * the previous module so we just ignore it.
9408 * 3) Finally, if cast->type has not already been loaded, then we add that
9409 * swig_cast_info to the linked list (because the cast->type) pointer will
9410 * be correct.
9411 * ----------------------------------------------------------------------------- */
9412
9413 #ifdef __cplusplus
9414 extern "C" {
9415 #if 0
9416 } /* c-mode */
9417 #endif
9418 #endif
9419
9420 #if 0
9421 #define SWIGRUNTIME_DEBUG
9422 #endif
9423
9424
9425 SWIGRUNTIME void
9426 SWIG_InitializeModule(void *clientdata) {
9427 size_t i;
9428 swig_module_info *module_head, *iter;
9429 int found, init;
9430
9431 clientdata = clientdata;
9432
9433 /* check to see if the circular list has been setup, if not, set it up */
9434 if (swig_module.next==0) {
9435 /* Initialize the swig_module */
9436 swig_module.type_initial = swig_type_initial;
9437 swig_module.cast_initial = swig_cast_initial;
9438 swig_module.next = &swig_module;
9439 init = 1;
9440 } else {
9441 init = 0;
9442 }
9443
9444 /* Try and load any already created modules */
9445 module_head = SWIG_GetModule(clientdata);
9446 if (!module_head) {
9447 /* This is the first module loaded for this interpreter */
9448 /* so set the swig module into the interpreter */
9449 SWIG_SetModule(clientdata, &swig_module);
9450 module_head = &swig_module;
9451 } else {
9452 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
9453 found=0;
9454 iter=module_head;
9455 do {
9456 if (iter==&swig_module) {
9457 found=1;
9458 break;
9459 }
9460 iter=iter->next;
9461 } while (iter!= module_head);
9462
9463 /* if the is found in the list, then all is done and we may leave */
9464 if (found) return;
9465 /* otherwise we must add out module into the list */
9466 swig_module.next = module_head->next;
9467 module_head->next = &swig_module;
9468 }
9469
9470 /* When multiple interpeters are used, a module could have already been initialized in
9471 a different interpreter, but not yet have a pointer in this interpreter.
9472 In this case, we do not want to continue adding types... everything should be
9473 set up already */
9474 if (init == 0) return;
9475
9476 /* Now work on filling in swig_module.types */
9477 #ifdef SWIGRUNTIME_DEBUG
9478 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
9479 #endif
9480 for (i = 0; i < swig_module.size; ++i) {
9481 swig_type_info *type = 0;
9482 swig_type_info *ret;
9483 swig_cast_info *cast;
9484
9485 #ifdef SWIGRUNTIME_DEBUG
9486 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9487 #endif
9488
9489 /* if there is another module already loaded */
9490 if (swig_module.next != &swig_module) {
9491 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
9492 }
9493 if (type) {
9494 /* Overwrite clientdata field */
9495 #ifdef SWIGRUNTIME_DEBUG
9496 printf("SWIG_InitializeModule: found type %s\n", type->name);
9497 #endif
9498 if (swig_module.type_initial[i]->clientdata) {
9499 type->clientdata = swig_module.type_initial[i]->clientdata;
9500 #ifdef SWIGRUNTIME_DEBUG
9501 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
9502 #endif
9503 }
9504 } else {
9505 type = swig_module.type_initial[i];
9506 }
9507
9508 /* Insert casting types */
9509 cast = swig_module.cast_initial[i];
9510 while (cast->type) {
9511 /* Don't need to add information already in the list */
9512 ret = 0;
9513 #ifdef SWIGRUNTIME_DEBUG
9514 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
9515 #endif
9516 if (swig_module.next != &swig_module) {
9517 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
9518 #ifdef SWIGRUNTIME_DEBUG
9519 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
9520 #endif
9521 }
9522 if (ret) {
9523 if (type == swig_module.type_initial[i]) {
9524 #ifdef SWIGRUNTIME_DEBUG
9525 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
9526 #endif
9527 cast->type = ret;
9528 ret = 0;
9529 } else {
9530 /* Check for casting already in the list */
9531 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
9532 #ifdef SWIGRUNTIME_DEBUG
9533 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
9534 #endif
9535 if (!ocast) ret = 0;
9536 }
9537 }
9538
9539 if (!ret) {
9540 #ifdef SWIGRUNTIME_DEBUG
9541 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
9542 #endif
9543 if (type->cast) {
9544 type->cast->prev = cast;
9545 cast->next = type->cast;
9546 }
9547 type->cast = cast;
9548 }
9549 cast++;
9550 }
9551 /* Set entry in modules->types array equal to the type */
9552 swig_module.types[i] = type;
9553 }
9554 swig_module.types[i] = 0;
9555
9556 #ifdef SWIGRUNTIME_DEBUG
9557 printf("**** SWIG_InitializeModule: Cast List ******\n");
9558 for (i = 0; i < swig_module.size; ++i) {
9559 int j = 0;
9560 swig_cast_info *cast = swig_module.cast_initial[i];
9561 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9562 while (cast->type) {
9563 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
9564 cast++;
9565 ++j;
9566 }
9567 printf("---- Total casts: %d\n",j);
9568 }
9569 printf("**** SWIG_InitializeModule: Cast List ******\n");
9570 #endif
9571 }
9572
9573 /* This function will propagate the clientdata field of type to
9574 * any new swig_type_info structures that have been added into the list
9575 * of equivalent types. It is like calling
9576 * SWIG_TypeClientData(type, clientdata) a second time.
9577 */
9578 SWIGRUNTIME void
9579 SWIG_PropagateClientData(void) {
9580 size_t i;
9581 swig_cast_info *equiv;
9582 static int init_run = 0;
9583
9584 if (init_run) return;
9585 init_run = 1;
9586
9587 for (i = 0; i < swig_module.size; i++) {
9588 if (swig_module.types[i]->clientdata) {
9589 equiv = swig_module.types[i]->cast;
9590 while (equiv) {
9591 if (!equiv->converter) {
9592 if (equiv->type && !equiv->type->clientdata)
9593 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
9594 }
9595 equiv = equiv->next;
9596 }
9597 }
9598 }
9599 }
9600
9601 #ifdef __cplusplus
9602 #if 0
9603 {
9604 /* c-mode */
9605 #endif
9606 }
9607 #endif
9608
9609
9610
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614
9615 XS(SWIG_init) {
9616 dXSARGS;
9617 int i;
9618
9619 SWIG_InitializeModule(0);
9620
9621 /* Install commands */
9622 for (i = 0; swig_commands[i].name; i++) {
9623 // Casts only needed for Perl < 5.10.
9624 #ifdef __cplusplus
9625 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
9626 #else
9627 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
9628 #endif
9629 }
9630
9631 /* Install variables */
9632 for (i = 0; swig_variables[i].name; i++) {
9633 SV *sv;
9634 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
9635 if (swig_variables[i].type) {
9636 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
9637 } else {
9638 sv_setiv(sv,(IV) 0);
9639 }
9640 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
9641 }
9642
9643 /* Install constant */
9644 for (i = 0; swig_constants[i].type; i++) {
9645 SV *sv;
9646 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
9647 switch(swig_constants[i].type) {
9648 case SWIG_INT:
9649 sv_setiv(sv, (IV) swig_constants[i].lvalue);
9650 break;
9651 case SWIG_FLOAT:
9652 sv_setnv(sv, (double) swig_constants[i].dvalue);
9653 break;
9654 case SWIG_STRING:
9655 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
9656 break;
9657 case SWIG_POINTER:
9658 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
9659 break;
9660 case SWIG_BINARY:
9661 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
9662 break;
9663 default:
9664 break;
9665 }
9666 SvREADONLY_on(sv);
9667 }
9668
9669
9670 /* compile-time include (inside a % ... % block) */
9671 #ifdef REDLAND_INIT_I
9672 #include <redland-init.i>
9673 #endif
9674
9675 ST(0) = &PL_sv_yes;
9676 XSRETURN(1);
9677 }
9678