Debian Codegraph @

php/redland_wrap.c

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