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