| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#define SWIGLUA |
| 12 |
#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA |
| 13 |
#define SWIG_LUA_MODULE_GLOBAL |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef SWIGTEMPLATEDISAMBIGUATOR |
| 22 |
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
| 23 |
# define SWIGTEMPLATEDISAMBIGUATOR template |
| 24 |
# elif defined(__HP_aCC) |
| 25 |
|
| 26 |
|
| 27 |
# define SWIGTEMPLATEDISAMBIGUATOR template |
| 28 |
# else |
| 29 |
# define SWIGTEMPLATEDISAMBIGUATOR |
| 30 |
# endif |
| 31 |
#endif |
| 32 |
|
| 33 |
|
| 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 |
|
| 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) |
| 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 |
|
| 72 |
#ifndef SWIGINTERN |
| 73 |
# define SWIGINTERN static SWIGUNUSED |
| 74 |
#endif |
| 75 |
|
| 76 |
|
| 77 |
#ifndef SWIGINTERNINLINE |
| 78 |
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
| 79 |
#endif |
| 80 |
|
| 81 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
#define SWIG_RUNTIME_VERSION "4" |
| 134 |
|
| 135 |
|
| 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 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
#ifndef SWIGRUNTIME |
| 154 |
# define SWIGRUNTIME SWIGINTERN |
| 155 |
#endif |
| 156 |
|
| 157 |
#ifndef SWIGRUNTIMEINLINE |
| 158 |
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
| 159 |
#endif |
| 160 |
|
| 161 |
|
| 162 |
#ifndef SWIG_BUFFER_SIZE |
| 163 |
# define SWIG_BUFFER_SIZE 1024 |
| 164 |
#endif |
| 165 |
|
| 166 |
|
| 167 |
#define SWIG_POINTER_DISOWN 0x1 |
| 168 |
#define SWIG_CAST_NEW_MEMORY 0x2 |
| 169 |
|
| 170 |
|
| 171 |
#define SWIG_POINTER_OWN 0x1 |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 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 |
|
| 259 |
#define SWIG_CASTRANKLIMIT (1 << 8) |
| 260 |
|
| 261 |
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) |
| 262 |
|
| 263 |
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) |
| 264 |
|
| 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 |
|
| 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 |
|
| 278 |
#if defined(SWIG_CASTRANK_MODE) |
| 279 |
# ifndef SWIG_TypeRank |
| 280 |
# define SWIG_TypeRank unsigned long |
| 281 |
# endif |
| 282 |
# ifndef SWIG_MAXCASTRANK |
| 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 |
| 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 |
|
| 309 |
typedef struct swig_type_info { |
| 310 |
const char *name; |
| 311 |
const char *str; |
| 312 |
swig_dycast_func dcast; |
| 313 |
struct swig_cast_info *cast; |
| 314 |
void *clientdata; |
| 315 |
int owndata; |
| 316 |
} swig_type_info; |
| 317 |
|
| 318 |
|
| 319 |
typedef struct swig_cast_info { |
| 320 |
swig_type_info *type; |
| 321 |
swig_converter_func converter; |
| 322 |
struct swig_cast_info *next; |
| 323 |
struct swig_cast_info *prev; |
| 324 |
} swig_cast_info; |
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
typedef struct swig_module_info { |
| 330 |
swig_type_info **types; |
| 331 |
size_t size; |
| 332 |
struct swig_module_info *next; |
| 333 |
swig_type_info **type_initial; |
| 334 |
swig_cast_info **cast_initial; |
| 335 |
void *clientdata; |
| 336 |
} swig_module_info; |
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 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 |
|
| 358 |
|
| 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 |
|
| 377 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 473 |
|
| 474 |
SWIGRUNTIMEINLINE const char * |
| 475 |
SWIG_TypeName(const swig_type_info *ty) { |
| 476 |
return ty->name; |
| 477 |
} |
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
SWIGRUNTIME const char * |
| 484 |
SWIG_TypePrettyName(const swig_type_info *type) { |
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 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 |
|
| 503 |
|
| 504 |
SWIGRUNTIME void |
| 505 |
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
| 506 |
swig_cast_info *cast = ti->cast; |
| 507 |
|
| 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 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
|
| 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 |
|
| 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; |
| 562 |
} |
| 563 |
} while (l <= r); |
| 564 |
} |
| 565 |
iter = iter->next; |
| 566 |
} while (iter != end); |
| 567 |
return 0; |
| 568 |
} |
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
SWIGRUNTIME swig_type_info * |
| 580 |
SWIG_TypeQueryModule(swig_module_info *start, |
| 581 |
swig_module_info *end, |
| 582 |
const char *name) { |
| 583 |
|
| 584 |
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
| 585 |
if (ret) { |
| 586 |
return ret; |
| 587 |
} else { |
| 588 |
|
| 589 |
|
| 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 |
|
| 602 |
return 0; |
| 603 |
} |
| 604 |
|
| 605 |
|
| 606 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
#ifdef __cplusplus |
| 717 |
extern "C" { |
| 718 |
#endif |
| 719 |
|
| 720 |
#include "lua.h" |
| 721 |
#include "lauxlib.h" |
| 722 |
#include <stdlib.h> |
| 723 |
#include <assert.h> |
| 724 |
|
| 725 |
|
| 726 |
|
| 727 |
|
| 728 |
|
| 729 |
#define SWIG_LUA_FLAVOR_LUA 1 |
| 730 |
#define SWIG_LUA_FLAVOR_ELUA 2 |
| 731 |
#define SWIG_LUA_FLAVOR_ELUAC 3 |
| 732 |
|
| 733 |
#if !defined(SWIG_LUA_TARGET) |
| 734 |
# error SWIG_LUA_TARGET not defined |
| 735 |
#endif |
| 736 |
|
| 737 |
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) |
| 738 |
# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) |
| 739 |
# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) |
| 740 |
# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) |
| 741 |
# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) |
| 742 |
#else |
| 743 |
# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 |
| 744 |
# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 |
| 745 |
# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 |
| 746 |
# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 |
| 747 |
#endif |
| 748 |
|
| 749 |
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) |
| 750 |
# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} |
| 751 |
# define LSTRVAL LRO_STRVAL |
| 752 |
#endif |
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
|
| 757 |
|
| 758 |
|
| 759 |
|
| 760 |
|
| 761 |
|
| 762 |
|
| 763 |
|
| 764 |
|
| 765 |
|
| 766 |
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 |
| 767 |
# define lua_rawlen lua_strlen |
| 768 |
#elif LUA_VERSION_NUM == 501 |
| 769 |
# define lua_rawlen lua_objlen |
| 770 |
#endif |
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
|
| 776 |
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 |
| 777 |
# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) |
| 778 |
#endif |
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
|
| 783 |
|
| 784 |
|
| 785 |
#define SWIG_LUA_INT 1 |
| 786 |
#define SWIG_LUA_FLOAT 2 |
| 787 |
#define SWIG_LUA_STRING 3 |
| 788 |
#define SWIG_LUA_POINTER 4 |
| 789 |
#define SWIG_LUA_BINARY 5 |
| 790 |
#define SWIG_LUA_CHAR 6 |
| 791 |
|
| 792 |
|
| 793 |
typedef struct { |
| 794 |
const char *name; |
| 795 |
lua_CFunction get; |
| 796 |
lua_CFunction set; |
| 797 |
} swig_lua_var_info; |
| 798 |
|
| 799 |
|
| 800 |
typedef struct { |
| 801 |
int type; |
| 802 |
char *name; |
| 803 |
long lvalue; |
| 804 |
double dvalue; |
| 805 |
void *pvalue; |
| 806 |
swig_type_info **ptype; |
| 807 |
} swig_lua_const_info; |
| 808 |
|
| 809 |
typedef struct { |
| 810 |
const char *name; |
| 811 |
lua_CFunction method; |
| 812 |
} swig_lua_method; |
| 813 |
|
| 814 |
typedef struct { |
| 815 |
const char *name; |
| 816 |
lua_CFunction getmethod; |
| 817 |
lua_CFunction setmethod; |
| 818 |
} swig_lua_attribute; |
| 819 |
|
| 820 |
typedef struct swig_lua_class { |
| 821 |
const char *name; |
| 822 |
swig_type_info **type; |
| 823 |
lua_CFunction constructor; |
| 824 |
void (*destructor)(void *); |
| 825 |
swig_lua_method *methods; |
| 826 |
swig_lua_attribute *attributes; |
| 827 |
struct swig_lua_class **bases; |
| 828 |
const char **base_names; |
| 829 |
} swig_lua_class; |
| 830 |
|
| 831 |
|
| 832 |
|
| 833 |
typedef struct { |
| 834 |
swig_type_info *type; |
| 835 |
int own; |
| 836 |
void *ptr; |
| 837 |
} swig_lua_userdata; |
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
typedef struct { |
| 845 |
swig_type_info *type; |
| 846 |
int own; |
| 847 |
char data[1]; |
| 848 |
} swig_lua_rawdata; |
| 849 |
|
| 850 |
|
| 851 |
#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner) |
| 852 |
#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags) |
| 853 |
#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname) |
| 854 |
|
| 855 |
#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty) |
| 856 |
#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type) |
| 857 |
|
| 858 |
|
| 859 |
#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata)) |
| 860 |
#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer) |
| 861 |
#define SWIG_MODULE_CLIENTDATA_TYPE lua_State* |
| 862 |
|
| 863 |
|
| 864 |
#define SWIG_contract_assert(expr, msg) \ |
| 865 |
if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else |
| 866 |
|
| 867 |
|
| 868 |
#define SWIG_fail {goto fail;} |
| 869 |
#define SWIG_fail_arg(func_name,argnum,type) \ |
| 870 |
{lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\ |
| 871 |
func_name,argnum,type,SWIG_Lua_typename(L,argnum));\ |
| 872 |
goto fail;} |
| 873 |
#define SWIG_fail_ptr(func_name,argnum,type) \ |
| 874 |
SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*") |
| 875 |
#define SWIG_check_num_args(func_name,a,b) \ |
| 876 |
if (lua_gettop(L)<a || lua_gettop(L)>b) \ |
| 877 |
{lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\ |
| 878 |
goto fail;} |
| 879 |
|
| 880 |
|
| 881 |
#define SWIG_Lua_get_table(L,n) \ |
| 882 |
(lua_pushstring(L, n), lua_rawget(L,-2)) |
| 883 |
|
| 884 |
#define SWIG_Lua_add_function(L,n,f) \ |
| 885 |
(lua_pushstring(L, n), \ |
| 886 |
lua_pushcfunction(L, f), \ |
| 887 |
lua_rawset(L,-3)) |
| 888 |
|
| 889 |
|
| 890 |
#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) |
| 891 |
|
| 892 |
#ifdef __cplusplus |
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
#endif |
| 897 |
|
| 898 |
|
| 899 |
SWIGRUNTIME swig_module_info * |
| 900 |
SWIG_Lua_GetModule(lua_State* L) { |
| 901 |
swig_module_info *ret = 0; |
| 902 |
lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); |
| 903 |
lua_rawget(L,LUA_REGISTRYINDEX); |
| 904 |
if (lua_islightuserdata(L,-1)) |
| 905 |
ret=(swig_module_info*)lua_touserdata(L,-1); |
| 906 |
lua_pop(L,1); |
| 907 |
return ret; |
| 908 |
} |
| 909 |
|
| 910 |
SWIGRUNTIME void |
| 911 |
SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { |
| 912 |
|
| 913 |
lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); |
| 914 |
lua_pushlightuserdata(L,(void*)module); |
| 915 |
lua_rawset(L,LUA_REGISTRYINDEX); |
| 916 |
} |
| 917 |
|
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
|
| 922 |
|
| 923 |
|
| 924 |
|
| 925 |
SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) |
| 926 |
{ |
| 927 |
|
| 928 |
#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE |
| 929 |
lua_pop(L,1); |
| 930 |
lua_pushstring(L,"This variable is immutable"); |
| 931 |
lua_error(L); |
| 932 |
#endif |
| 933 |
return 0; |
| 934 |
} |
| 935 |
|
| 936 |
|
| 937 |
SWIGINTERN int SWIG_Lua_module_get(lua_State* L) |
| 938 |
{ |
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
|
| 946 |
|
| 947 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 948 |
assert(lua_isrotable(L,1)); |
| 949 |
#else |
| 950 |
assert(lua_istable(L,1)); |
| 951 |
#endif |
| 952 |
lua_getmetatable(L,1); |
| 953 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 954 |
assert(lua_isrotable(L,-1)); |
| 955 |
#else |
| 956 |
assert(lua_istable(L,-1)); |
| 957 |
#endif |
| 958 |
SWIG_Lua_get_table(L,".get"); |
| 959 |
lua_remove(L,3); |
| 960 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 961 |
if (lua_isrotable(L,-1)) |
| 962 |
#else |
| 963 |
if (lua_istable(L,-1)) |
| 964 |
#endif |
| 965 |
{ |
| 966 |
|
| 967 |
lua_pushvalue(L,2); |
| 968 |
lua_rawget(L,-2); |
| 969 |
lua_remove(L,3); |
| 970 |
if (lua_iscfunction(L,-1)) |
| 971 |
{ |
| 972 |
lua_call(L,0,1); |
| 973 |
return 1; |
| 974 |
} |
| 975 |
lua_pop(L,1); |
| 976 |
} |
| 977 |
lua_pop(L,1); |
| 978 |
lua_pushnil(L); |
| 979 |
return 1; |
| 980 |
} |
| 981 |
|
| 982 |
|
| 983 |
SWIGINTERN int SWIG_Lua_module_set(lua_State* L) |
| 984 |
{ |
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
|
| 989 |
|
| 990 |
|
| 991 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 992 |
assert(lua_isrotable(L,1)); |
| 993 |
#else |
| 994 |
assert(lua_istable(L,1)); |
| 995 |
#endif |
| 996 |
lua_getmetatable(L,1); |
| 997 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 998 |
assert(lua_isrotable(L,-1)); |
| 999 |
#else |
| 1000 |
assert(lua_istable(L,-1)); |
| 1001 |
#endif |
| 1002 |
SWIG_Lua_get_table(L,".set"); |
| 1003 |
lua_remove(L,4); |
| 1004 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 1005 |
if (lua_isrotable(L,-1)) |
| 1006 |
#else |
| 1007 |
if (lua_istable(L,-1)) |
| 1008 |
#endif |
| 1009 |
{ |
| 1010 |
|
| 1011 |
lua_pushvalue(L,2); |
| 1012 |
lua_rawget(L,-2); |
| 1013 |
lua_remove(L,4); |
| 1014 |
if (lua_iscfunction(L,-1)) |
| 1015 |
{ |
| 1016 |
lua_pushvalue(L,3); |
| 1017 |
lua_call(L,1,0); |
| 1018 |
return 0; |
| 1019 |
} |
| 1020 |
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) |
| 1021 |
else { |
| 1022 |
return 0; |
| 1023 |
} |
| 1024 |
#endif |
| 1025 |
} |
| 1026 |
lua_settop(L,3); |
| 1027 |
|
| 1028 |
lua_rawset(L,1); |
| 1029 |
return 0; |
| 1030 |
} |
| 1031 |
|
| 1032 |
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) |
| 1033 |
|
| 1034 |
SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) |
| 1035 |
{ |
| 1036 |
assert(lua_istable(L,-1)); |
| 1037 |
lua_pushstring(L,name); |
| 1038 |
lua_newtable(L); |
| 1039 |
|
| 1040 |
lua_newtable(L); |
| 1041 |
SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); |
| 1042 |
SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); |
| 1043 |
lua_pushstring(L,".get"); |
| 1044 |
lua_newtable(L); |
| 1045 |
lua_rawset(L,-3); |
| 1046 |
lua_pushstring(L,".set"); |
| 1047 |
lua_newtable(L); |
| 1048 |
lua_rawset(L,-3); |
| 1049 |
lua_setmetatable(L,-2); |
| 1050 |
#ifdef SWIG_LUA_MODULE_GLOBAL |
| 1051 |
|
| 1052 |
lua_rawset(L,-3); |
| 1053 |
SWIG_Lua_get_table(L,name); |
| 1054 |
#else |
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
lua_replace(L,-2); |
| 1059 |
#endif |
| 1060 |
} |
| 1061 |
|
| 1062 |
|
| 1063 |
SWIGINTERN void SWIG_Lua_module_end(lua_State* L) |
| 1064 |
{ |
| 1065 |
lua_pop(L,1); |
| 1066 |
} |
| 1067 |
|
| 1068 |
|
| 1069 |
SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) |
| 1070 |
{ |
| 1071 |
assert(lua_istable(L,-1)); |
| 1072 |
lua_getmetatable(L,-1); |
| 1073 |
assert(lua_istable(L,-1)); |
| 1074 |
SWIG_Lua_get_table(L,".get"); |
| 1075 |
assert(lua_istable(L,-1)); |
| 1076 |
SWIG_Lua_add_function(L,name,getFn); |
| 1077 |
lua_pop(L,1); |
| 1078 |
if (setFn) |
| 1079 |
{ |
| 1080 |
SWIG_Lua_get_table(L,".set"); |
| 1081 |
assert(lua_istable(L,-1)); |
| 1082 |
SWIG_Lua_add_function(L,name,setFn); |
| 1083 |
lua_pop(L,1); |
| 1084 |
} |
| 1085 |
lua_pop(L,1); |
| 1086 |
} |
| 1087 |
#endif |
| 1088 |
|
| 1089 |
|
| 1090 |
SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) |
| 1091 |
{ |
| 1092 |
SWIG_Lua_add_function(L,name,fn); |
| 1093 |
} |
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
SWIGINTERN int SWIG_Lua_class_get(lua_State* L) |
| 1101 |
{ |
| 1102 |
|
| 1103 |
|
| 1104 |
|
| 1105 |
|
| 1106 |
assert(lua_isuserdata(L,-2)); |
| 1107 |
lua_getmetatable(L,-2); |
| 1108 |
assert(lua_istable(L,-1)); |
| 1109 |
SWIG_Lua_get_table(L,".get"); |
| 1110 |
assert(lua_istable(L,-1)); |
| 1111 |
|
| 1112 |
lua_pushvalue(L,2); |
| 1113 |
lua_rawget(L,-2); |
| 1114 |
lua_remove(L,-2); |
| 1115 |
if (lua_iscfunction(L,-1)) |
| 1116 |
{ |
| 1117 |
lua_pushvalue(L,1); |
| 1118 |
lua_call(L,1,1); |
| 1119 |
lua_remove(L,-2); |
| 1120 |
return 1; |
| 1121 |
} |
| 1122 |
lua_pop(L,1); |
| 1123 |
|
| 1124 |
SWIG_Lua_get_table(L,".fn"); |
| 1125 |
assert(lua_istable(L,-1)); |
| 1126 |
lua_pushvalue(L,2); |
| 1127 |
lua_rawget(L,-2); |
| 1128 |
lua_remove(L,-2); |
| 1129 |
if (lua_isfunction(L,-1)) |
| 1130 |
{ |
| 1131 |
lua_remove(L,-2); |
| 1132 |
return 1; |
| 1133 |
} |
| 1134 |
lua_pop(L,1); |
| 1135 |
|
| 1136 |
|
| 1137 |
SWIG_Lua_get_table(L,"__getitem"); |
| 1138 |
if (lua_iscfunction(L,-1)) |
| 1139 |
{ |
| 1140 |
lua_pushvalue(L,1); |
| 1141 |
lua_pushvalue(L,2); |
| 1142 |
lua_call(L,2,1); |
| 1143 |
lua_remove(L,-2); |
| 1144 |
return 1; |
| 1145 |
} |
| 1146 |
return 0; |
| 1147 |
} |
| 1148 |
|
| 1149 |
|
| 1150 |
SWIGINTERN int SWIG_Lua_class_set(lua_State* L) |
| 1151 |
{ |
| 1152 |
|
| 1153 |
|
| 1154 |
|
| 1155 |
|
| 1156 |
|
| 1157 |
|
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
assert(lua_isuserdata(L,1)); |
| 1162 |
lua_getmetatable(L,1); |
| 1163 |
assert(lua_istable(L,-1)); |
| 1164 |
|
| 1165 |
SWIG_Lua_get_table(L,".set"); |
| 1166 |
if (lua_istable(L,-1)) |
| 1167 |
{ |
| 1168 |
|
| 1169 |
lua_pushvalue(L,2); |
| 1170 |
lua_rawget(L,-2); |
| 1171 |
if (lua_iscfunction(L,-1)) |
| 1172 |
{ |
| 1173 |
lua_pushvalue(L,1); |
| 1174 |
lua_pushvalue(L,3); |
| 1175 |
lua_call(L,2,0); |
| 1176 |
return 0; |
| 1177 |
} |
| 1178 |
lua_pop(L,1); |
| 1179 |
} |
| 1180 |
lua_pop(L,1); |
| 1181 |
|
| 1182 |
|
| 1183 |
SWIG_Lua_get_table(L,"__setitem"); |
| 1184 |
if (lua_iscfunction(L,-1)) |
| 1185 |
{ |
| 1186 |
lua_pushvalue(L,1); |
| 1187 |
lua_pushvalue(L,2); |
| 1188 |
lua_pushvalue(L,3); |
| 1189 |
lua_call(L,3,0); |
| 1190 |
lua_remove(L,-2); |
| 1191 |
return 1; |
| 1192 |
} |
| 1193 |
return 0; |
| 1194 |
} |
| 1195 |
|
| 1196 |
|
| 1197 |
SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) |
| 1198 |
{ |
| 1199 |
|
| 1200 |
|
| 1201 |
swig_lua_userdata* usr; |
| 1202 |
swig_lua_class* clss; |
| 1203 |
assert(lua_isuserdata(L,-1)); |
| 1204 |
usr=(swig_lua_userdata*)lua_touserdata(L,-1); |
| 1205 |
|
| 1206 |
if (usr->own) |
| 1207 |
{ |
| 1208 |
clss=(swig_lua_class*)usr->type->clientdata; |
| 1209 |
if (clss && clss->destructor) |
| 1210 |
{ |
| 1211 |
clss->destructor(usr->ptr); |
| 1212 |
} |
| 1213 |
} |
| 1214 |
return 0; |
| 1215 |
} |
| 1216 |
|
| 1217 |
|
| 1218 |
SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) |
| 1219 |
{ |
| 1220 |
|
| 1221 |
|
| 1222 |
assert(lua_isuserdata(L,1)); |
| 1223 |
unsigned long userData = (unsigned long)lua_touserdata(L,1); |
| 1224 |
lua_getmetatable(L,1); |
| 1225 |
assert(lua_istable(L,-1)); |
| 1226 |
|
| 1227 |
lua_getfield(L, -1, ".type"); |
| 1228 |
const char* className = lua_tostring(L, -1); |
| 1229 |
|
| 1230 |
char output[256]; |
| 1231 |
sprintf(output, "<%s userdata: %lX>", className, userData); |
| 1232 |
|
| 1233 |
lua_pushstring(L, (const char*)output); |
| 1234 |
return 1; |
| 1235 |
} |
| 1236 |
|
| 1237 |
|
| 1238 |
SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) |
| 1239 |
{ |
| 1240 |
|
| 1241 |
|
| 1242 |
swig_lua_userdata* usr; |
| 1243 |
assert(lua_isuserdata(L,-1)); |
| 1244 |
usr=(swig_lua_userdata*)lua_touserdata(L,-1); |
| 1245 |
|
| 1246 |
usr->own = 0; |
| 1247 |
return 0; |
| 1248 |
} |
| 1249 |
|
| 1250 |
|
| 1251 |
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) |
| 1252 |
{ |
| 1253 |
|
| 1254 |
lua_pushstring(L,"SWIG"); |
| 1255 |
lua_rawget(L,LUA_REGISTRYINDEX); |
| 1256 |
if (!lua_istable(L,-1)) |
| 1257 |
{ |
| 1258 |
lua_pop(L,1); |
| 1259 |
lua_pushstring(L,"SWIG"); |
| 1260 |
lua_newtable(L); |
| 1261 |
lua_rawset(L,LUA_REGISTRYINDEX); |
| 1262 |
|
| 1263 |
lua_pushstring(L,"SWIG"); |
| 1264 |
lua_rawget(L,LUA_REGISTRYINDEX); |
| 1265 |
} |
| 1266 |
} |
| 1267 |
|
| 1268 |
|
| 1269 |
SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) |
| 1270 |
{ |
| 1271 |
SWIG_Lua_get_class_registry(L); |
| 1272 |
lua_pushstring(L,cname); |
| 1273 |
lua_rawget(L,-2); |
| 1274 |
lua_remove(L,-2); |
| 1275 |
} |
| 1276 |
|
| 1277 |
|
| 1278 |
SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) |
| 1279 |
{ |
| 1280 |
assert(lua_istable(L,-1)); |
| 1281 |
SWIG_Lua_get_table(L,".get"); |
| 1282 |
assert(lua_istable(L,-1)); |
| 1283 |
SWIG_Lua_add_function(L,name,getFn); |
| 1284 |
lua_pop(L,1); |
| 1285 |
if (setFn) |
| 1286 |
{ |
| 1287 |
SWIG_Lua_get_table(L,".set"); |
| 1288 |
assert(lua_istable(L,-1)); |
| 1289 |
SWIG_Lua_add_function(L,name,setFn); |
| 1290 |
lua_pop(L,1); |
| 1291 |
} |
| 1292 |
} |
| 1293 |
|
| 1294 |
|
| 1295 |
SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) |
| 1296 |
{ |
| 1297 |
int i; |
| 1298 |
|
| 1299 |
for(i=0;clss->bases[i];i++) |
| 1300 |
{ |
| 1301 |
SWIG_Lua_add_class_details(L,clss->bases[i]); |
| 1302 |
} |
| 1303 |
|
| 1304 |
for(i=0;clss->attributes[i].name;i++){ |
| 1305 |
SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); |
| 1306 |
} |
| 1307 |
|
| 1308 |
SWIG_Lua_get_table(L,".fn"); |
| 1309 |
assert(lua_istable(L,-1)); |
| 1310 |
for(i=0;clss->methods[i].name;i++){ |
| 1311 |
SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); |
| 1312 |
} |
| 1313 |
lua_pop(L,1); |
| 1314 |
|
| 1315 |
|
| 1316 |
|
| 1317 |
|
| 1318 |
for(i=0;clss->methods[i].name;i++){ |
| 1319 |
if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ |
| 1320 |
SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); |
| 1321 |
} |
| 1322 |
} |
| 1323 |
} |
| 1324 |
|
| 1325 |
|
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
|
| 1330 |
|
| 1331 |
|
| 1332 |
SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) |
| 1333 |
{ |
| 1334 |
int i=0; |
| 1335 |
swig_module_info* module=SWIG_GetModule(L); |
| 1336 |
for(i=0;clss->base_names[i];i++) |
| 1337 |
{ |
| 1338 |
if (clss->bases[i]==0) |
| 1339 |
{ |
| 1340 |
|
| 1341 |
swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); |
| 1342 |
if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; |
| 1343 |
} |
| 1344 |
} |
| 1345 |
} |
| 1346 |
|
| 1347 |
|
| 1348 |
SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) |
| 1349 |
{ |
| 1350 |
|
| 1351 |
|
| 1352 |
|
| 1353 |
|
| 1354 |
if (clss->constructor) |
| 1355 |
SWIG_Lua_add_function(L,clss->name,clss->constructor); |
| 1356 |
|
| 1357 |
SWIG_Lua_get_class_registry(L); |
| 1358 |
lua_pushstring(L,clss->name); |
| 1359 |
lua_newtable(L); |
| 1360 |
|
| 1361 |
lua_pushstring(L,".type"); |
| 1362 |
lua_pushstring(L,clss->name); |
| 1363 |
lua_rawset(L,-3); |
| 1364 |
|
| 1365 |
lua_pushstring(L,".get"); |
| 1366 |
lua_newtable(L); |
| 1367 |
lua_rawset(L,-3); |
| 1368 |
|
| 1369 |
lua_pushstring(L,".set"); |
| 1370 |
lua_newtable(L); |
| 1371 |
lua_rawset(L,-3); |
| 1372 |
|
| 1373 |
lua_pushstring(L,".fn"); |
| 1374 |
lua_newtable(L); |
| 1375 |
|
| 1376 |
SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown); |
| 1377 |
lua_rawset(L,-3); |
| 1378 |
|
| 1379 |
SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); |
| 1380 |
SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); |
| 1381 |
SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); |
| 1382 |
|
| 1383 |
SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); |
| 1384 |
|
| 1385 |
lua_rawset(L,-3); |
| 1386 |
lua_pop(L,1); |
| 1387 |
|
| 1388 |
SWIG_Lua_get_class_metatable(L,clss->name); |
| 1389 |
SWIG_Lua_add_class_details(L,clss); |
| 1390 |
lua_pop(L,1); |
| 1391 |
} |
| 1392 |
|
| 1393 |
|
| 1394 |
|
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) |
| 1399 |
{ |
| 1400 |
if (type->clientdata) |
| 1401 |
{ |
| 1402 |
SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); |
| 1403 |
if (lua_istable(L,-1)) |
| 1404 |
{ |
| 1405 |
lua_setmetatable(L,-2); |
| 1406 |
} |
| 1407 |
else |
| 1408 |
{ |
| 1409 |
lua_pop(L,1); |
| 1410 |
} |
| 1411 |
} |
| 1412 |
} |
| 1413 |
|
| 1414 |
|
| 1415 |
SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) |
| 1416 |
{ |
| 1417 |
swig_lua_userdata* usr; |
| 1418 |
if (!ptr){ |
| 1419 |
lua_pushnil(L); |
| 1420 |
return; |
| 1421 |
} |
| 1422 |
usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata)); |
| 1423 |
usr->ptr=ptr; |
| 1424 |
usr->type=type; |
| 1425 |
usr->own=own; |
| 1426 |
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) |
| 1427 |
_SWIG_Lua_AddMetatable(L,type); |
| 1428 |
#endif |
| 1429 |
} |
| 1430 |
|
| 1431 |
|
| 1432 |
|
| 1433 |
SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) |
| 1434 |
{ |
| 1435 |
swig_lua_userdata* usr; |
| 1436 |
swig_cast_info *cast; |
| 1437 |
if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} |
| 1438 |
usr=(swig_lua_userdata*)lua_touserdata(L,index); |
| 1439 |
if (usr) |
| 1440 |
{ |
| 1441 |
if (flags & SWIG_POINTER_DISOWN) |
| 1442 |
{ |
| 1443 |
usr->own=0; |
| 1444 |
} |
| 1445 |
if (!type) |
| 1446 |
{ |
| 1447 |
*ptr=usr->ptr; |
| 1448 |
return SWIG_OK; |
| 1449 |
} |
| 1450 |
cast=SWIG_TypeCheckStruct(usr->type,type); |
| 1451 |
if (cast) |
| 1452 |
{ |
| 1453 |
int newmemory = 0; |
| 1454 |
*ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory); |
| 1455 |
assert(!newmemory); |
| 1456 |
return SWIG_OK; |
| 1457 |
} |
| 1458 |
} |
| 1459 |
return SWIG_ERROR; |
| 1460 |
} |
| 1461 |
|
| 1462 |
SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, |
| 1463 |
int argnum,const char* func_name){ |
| 1464 |
void* result; |
| 1465 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ |
| 1466 |
lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n", |
| 1467 |
func_name,(type && type->str)?type->str:"void*",argnum); |
| 1468 |
lua_error(L); |
| 1469 |
} |
| 1470 |
return result; |
| 1471 |
} |
| 1472 |
|
| 1473 |
|
| 1474 |
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) |
| 1475 |
{ |
| 1476 |
swig_lua_rawdata* raw; |
| 1477 |
assert(ptr); |
| 1478 |
raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); |
| 1479 |
raw->type=type; |
| 1480 |
raw->own=0; |
| 1481 |
memcpy(raw->data,ptr,size); |
| 1482 |
_SWIG_Lua_AddMetatable(L,type); |
| 1483 |
} |
| 1484 |
|
| 1485 |
|
| 1486 |
SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) |
| 1487 |
{ |
| 1488 |
swig_lua_rawdata* raw; |
| 1489 |
raw=(swig_lua_rawdata*)lua_touserdata(L,index); |
| 1490 |
if (!raw) return SWIG_ERROR; |
| 1491 |
if (type==0 || type==raw->type) |
| 1492 |
{ |
| 1493 |
memcpy(ptr,raw->data,size); |
| 1494 |
return SWIG_OK; |
| 1495 |
} |
| 1496 |
return SWIG_ERROR; |
| 1497 |
} |
| 1498 |
|
| 1499 |
|
| 1500 |
SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) |
| 1501 |
{ |
| 1502 |
swig_lua_userdata* usr; |
| 1503 |
if (lua_isuserdata(L,tp)) |
| 1504 |
{ |
| 1505 |
usr=(swig_lua_userdata*)lua_touserdata(L,tp); |
| 1506 |
if (usr && usr->type && usr->type->str) |
| 1507 |
return usr->type->str; |
| 1508 |
return "userdata (unknown type)"; |
| 1509 |
} |
| 1510 |
return lua_typename(L,lua_type(L,tp)); |
| 1511 |
} |
| 1512 |
|
| 1513 |
|
| 1514 |
SWIGRUNTIME int SWIG_Lua_type(lua_State* L) |
| 1515 |
{ |
| 1516 |
lua_pushstring(L,SWIG_Lua_typename(L,1)); |
| 1517 |
return 1; |
| 1518 |
} |
| 1519 |
|
| 1520 |
|
| 1521 |
|
| 1522 |
|
| 1523 |
SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) |
| 1524 |
{ |
| 1525 |
int result; |
| 1526 |
swig_lua_userdata *usr1,*usr2; |
| 1527 |
if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) |
| 1528 |
return 0; |
| 1529 |
usr1=(swig_lua_userdata*)lua_touserdata(L,1); |
| 1530 |
usr2=(swig_lua_userdata*)lua_touserdata(L,2); |
| 1531 |
|
| 1532 |
result=(usr1->ptr==usr2->ptr); |
| 1533 |
lua_pushboolean(L,result); |
| 1534 |
return 1; |
| 1535 |
} |
| 1536 |
|
| 1537 |
|
| 1538 |
|
| 1539 |
|
| 1540 |
|
| 1541 |
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) |
| 1542 |
|
| 1543 |
SWIGINTERN void |
| 1544 |
SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { |
| 1545 |
int i; |
| 1546 |
for (i = 0; constants[i].type; i++) { |
| 1547 |
switch(constants[i].type) { |
| 1548 |
case SWIG_LUA_INT: |
| 1549 |
lua_pushstring(L,constants[i].name); |
| 1550 |
lua_pushnumber(L,(lua_Number)constants[i].lvalue); |
| 1551 |
lua_rawset(L,-3); |
| 1552 |
break; |
| 1553 |
case SWIG_LUA_FLOAT: |
| 1554 |
lua_pushstring(L,constants[i].name); |
| 1555 |
lua_pushnumber(L,(lua_Number)constants[i].dvalue); |
| 1556 |
lua_rawset(L,-3); |
| 1557 |
break; |
| 1558 |
case SWIG_LUA_CHAR: |
| 1559 |
lua_pushstring(L,constants[i].name); |
| 1560 |
lua_pushfstring(L,"%c",(char)constants[i].lvalue); |
| 1561 |
lua_rawset(L,-3); |
| 1562 |
break; |
| 1563 |
case SWIG_LUA_STRING: |
| 1564 |
lua_pushstring(L,constants[i].name); |
| 1565 |
lua_pushstring(L,(char *) constants[i].pvalue); |
| 1566 |
lua_rawset(L,-3); |
| 1567 |
break; |
| 1568 |
case SWIG_LUA_POINTER: |
| 1569 |
lua_pushstring(L,constants[i].name); |
| 1570 |
SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0); |
| 1571 |
lua_rawset(L,-3); |
| 1572 |
break; |
| 1573 |
case SWIG_LUA_BINARY: |
| 1574 |
lua_pushstring(L,constants[i].name); |
| 1575 |
SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype); |
| 1576 |
lua_rawset(L,-3); |
| 1577 |
break; |
| 1578 |
default: |
| 1579 |
break; |
| 1580 |
} |
| 1581 |
} |
| 1582 |
} |
| 1583 |
#endif |
| 1584 |
|
| 1585 |
|
| 1586 |
|
| 1587 |
|
| 1588 |
|
| 1589 |
#ifndef SWIG_DOSTRING_FAIL |
| 1590 |
#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S) |
| 1591 |
#endif |
| 1592 |
|
| 1593 |
|
| 1594 |
|
| 1595 |
|
| 1596 |
|
| 1597 |
SWIGINTERN int |
| 1598 |
SWIG_Lua_dostring(lua_State *L, const char* str) { |
| 1599 |
int ok,top; |
| 1600 |
if (str==0 || str[0]==0) return 0; |
| 1601 |
top=lua_gettop(L); |
| 1602 |
#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501)) |
| 1603 |
ok=luaL_dostring(L,str); |
| 1604 |
#else |
| 1605 |
ok=lua_dostring(L,str); |
| 1606 |
#endif |
| 1607 |
if (ok!=0) { |
| 1608 |
SWIG_DOSTRING_FAIL(lua_tostring(L,-1)); |
| 1609 |
} |
| 1610 |
lua_settop(L,top); |
| 1611 |
return ok; |
| 1612 |
} |
| 1613 |
|
| 1614 |
#ifdef __cplusplus |
| 1615 |
} |
| 1616 |
#endif |
| 1617 |
|
| 1618 |
|
| 1619 |
|
| 1620 |
|
| 1621 |
|
| 1622 |
|
| 1623 |
#define SWIGTYPE_p_librdf_digest_s swig_types[0] |
| 1624 |
#define SWIGTYPE_p_librdf_hash_s swig_types[1] |
| 1625 |
#define SWIGTYPE_p_librdf_iterator_s swig_types[2] |
| 1626 |
#define SWIGTYPE_p_librdf_log_func swig_types[3] |
| 1627 |
#define SWIGTYPE_p_librdf_log_message swig_types[4] |
| 1628 |
#define SWIGTYPE_p_librdf_model_s swig_types[5] |
| 1629 |
#define SWIGTYPE_p_librdf_node_s swig_types[6] |
| 1630 |
#define SWIGTYPE_p_librdf_parser_s swig_types[7] |
| 1631 |
#define SWIGTYPE_p_librdf_query swig_types[8] |
| 1632 |
#define SWIGTYPE_p_librdf_query_results swig_types[9] |
| 1633 |
#define SWIGTYPE_p_librdf_serializer_s swig_types[10] |
| 1634 |
#define SWIGTYPE_p_librdf_statement_s swig_types[11] |
| 1635 |
#define SWIGTYPE_p_librdf_storage_s swig_types[12] |
| 1636 |
#define SWIGTYPE_p_librdf_stream_s swig_types[13] |
| 1637 |
#define SWIGTYPE_p_librdf_uri_s swig_types[14] |
| 1638 |
#define SWIGTYPE_p_librdf_world_s swig_types[15] |
| 1639 |
#define SWIGTYPE_p_p_char swig_types[16] |
| 1640 |
#define SWIGTYPE_p_raptor_locator swig_types[17] |
| 1641 |
static swig_type_info *swig_types[19]; |
| 1642 |
static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0}; |
| 1643 |
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
| 1644 |
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
| 1645 |
|
| 1646 |
|
| 1647 |
|
| 1648 |
#define SWIG_name "redland" |
| 1649 |
#define SWIG_init luaopen_redland |
| 1650 |
#define SWIG_init_user luaopen_redland_user |
| 1651 |
|
| 1652 |
#define SWIG_LUACODE luaopen_redland_luacode |
| 1653 |
|
| 1654 |
#ifdef __cplusplus |
| 1655 |
#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN] |
| 1656 |
#define SWIG_FREE_ARRAY(PTR) delete[] PTR |
| 1657 |
#else |
| 1658 |
#define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE)) |
| 1659 |
#define SWIG_FREE_ARRAY(PTR) free(PTR) |
| 1660 |
#endif |
| 1661 |
|
| 1662 |
SWIGINTERN int SWIG_itable_size(lua_State* L, int index) |
| 1663 |
{ |
| 1664 |
int n=0; |
| 1665 |
while(1){ |
| 1666 |
lua_rawgeti(L,index,n+1); |
| 1667 |
if (lua_isnil(L,-1))break; |
| 1668 |
++n; |
| 1669 |
lua_pop(L,1); |
| 1670 |
} |
| 1671 |
lua_pop(L,1); |
| 1672 |
return n; |
| 1673 |
} |
| 1674 |
|
| 1675 |
SWIGINTERN int SWIG_table_size(lua_State* L, int index) |
| 1676 |
{ |
| 1677 |
int n=0; |
| 1678 |
lua_pushnil(L); |
| 1679 |
while (lua_next(L, index) != 0) { |
| 1680 |
++n; |
| 1681 |
lua_pop(L, 1); |
| 1682 |
} |
| 1683 |
return n; |
| 1684 |
} |
| 1685 |
|
| 1686 |
|
| 1687 |
#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)\ |
| 1688 |
SWIGINTERN int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\ |
| 1689 |
int i;\ |
| 1690 |
for (i = 0; i < size; i++) {\ |
| 1691 |
lua_rawgeti(L,index,i+1);\ |
| 1692 |
if (lua_isnumber(L,-1)){\ |
| 1693 |
array[i] = (TYPE)lua_tonumber(L,-1);\ |
| 1694 |
} else {\ |
| 1695 |
lua_pop(L,1);\ |
| 1696 |
return 0;\ |
| 1697 |
}\ |
| 1698 |
lua_pop(L,1);\ |
| 1699 |
}\ |
| 1700 |
return 1;\ |
| 1701 |
}\ |
| 1702 |
SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\ |
| 1703 |
TYPE *array;\ |
| 1704 |
if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {\ |
| 1705 |
lua_pushfstring(L,"expected a table of size %d",size);\ |
| 1706 |
return 0;\ |
| 1707 |
}\ |
| 1708 |
array=SWIG_ALLOC_ARRAY(TYPE,size);\ |
| 1709 |
if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\ |
| 1710 |
lua_pushstring(L,"table must contain numbers");\ |
| 1711 |
SWIG_FREE_ARRAY(array);\ |
| 1712 |
return 0;\ |
| 1713 |
}\ |
| 1714 |
return array;\ |
| 1715 |
}\ |
| 1716 |
SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\ |
| 1717 |
{\ |
| 1718 |
TYPE *array;\ |
| 1719 |
if (!lua_istable(L,index)) {\ |
| 1720 |
lua_pushstring(L,"expected a table");\ |
| 1721 |
return 0;\ |
| 1722 |
}\ |
| 1723 |
*size=SWIG_itable_size(L,index);\ |
| 1724 |
if (*size<1){\ |
| 1725 |
lua_pushstring(L,"table appears to be empty");\ |
| 1726 |
return 0;\ |
| 1727 |
}\ |
| 1728 |
array=SWIG_ALLOC_ARRAY(TYPE,*size);\ |
| 1729 |
if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\ |
| 1730 |
lua_pushstring(L,"table must contain numbers");\ |
| 1731 |
SWIG_FREE_ARRAY(array);\ |
| 1732 |
return 0;\ |
| 1733 |
}\ |
| 1734 |
return array;\ |
| 1735 |
}\ |
| 1736 |
SWIGINTERN void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\ |
| 1737 |
int i;\ |
| 1738 |
lua_newtable(L);\ |
| 1739 |
for (i = 0; i < size; i++){\ |
| 1740 |
lua_pushnumber(L,(lua_Number)array[i]);\ |
| 1741 |
lua_rawseti(L,-2,i+1); \ |
| 1742 |
}\ |
| 1743 |
} |
| 1744 |
|
| 1745 |
SWIG_DECLARE_TYPEMAP_ARR_FN(schar,signed char); |
| 1746 |
SWIG_DECLARE_TYPEMAP_ARR_FN(uchar,unsigned char); |
| 1747 |
SWIG_DECLARE_TYPEMAP_ARR_FN(int,int); |
| 1748 |
SWIG_DECLARE_TYPEMAP_ARR_FN(uint,unsigned int); |
| 1749 |
SWIG_DECLARE_TYPEMAP_ARR_FN(short,short); |
| 1750 |
SWIG_DECLARE_TYPEMAP_ARR_FN(ushort,unsigned short); |
| 1751 |
SWIG_DECLARE_TYPEMAP_ARR_FN(long,long); |
| 1752 |
SWIG_DECLARE_TYPEMAP_ARR_FN(ulong,unsigned long); |
| 1753 |
SWIG_DECLARE_TYPEMAP_ARR_FN(float,float); |
| 1754 |
SWIG_DECLARE_TYPEMAP_ARR_FN(double,double); |
| 1755 |
|
| 1756 |
SWIGINTERN int SWIG_read_ptr_array(lua_State* L,int index,void **array,int size,swig_type_info *type){ |
| 1757 |
int i; |
| 1758 |
for (i = 0; i < size; i++) { |
| 1759 |
lua_rawgeti(L,index,i+1); |
| 1760 |
if (!lua_isuserdata(L,-1) || SWIG_ConvertPtr(L,-1,&array[i],type,0)==-1){ |
| 1761 |
lua_pop(L,1); |
| 1762 |
return 0; |
| 1763 |
} |
| 1764 |
lua_pop(L,1); |
| 1765 |
} |
| 1766 |
return 1; |
| 1767 |
} |
| 1768 |
SWIGINTERN void** SWIG_get_ptr_array_fixed(lua_State* L, int index, int size,swig_type_info *type){ |
| 1769 |
void **array; |
| 1770 |
if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) { |
| 1771 |
lua_pushfstring(L,"expected a table of size %d",size); |
| 1772 |
return 0; |
| 1773 |
} |
| 1774 |
array=SWIG_ALLOC_ARRAY(void*,size); |
| 1775 |
if (!SWIG_read_ptr_array(L,index,array,size,type)){ |
| 1776 |
lua_pushfstring(L,"table must contain pointers of type %s",type->name); |
| 1777 |
SWIG_FREE_ARRAY(array); |
| 1778 |
return 0; |
| 1779 |
} |
| 1780 |
return array; |
| 1781 |
} |
| 1782 |
SWIGINTERN void** SWIG_get_ptr_array_var(lua_State* L, int index, int* size,swig_type_info *type){ |
| 1783 |
void **array; |
| 1784 |
if (!lua_istable(L,index)) { |
| 1785 |
lua_pushstring(L,"expected a table"); |
| 1786 |
return 0; |
| 1787 |
} |
| 1788 |
*size=SWIG_itable_size(L,index); |
| 1789 |
if (*size<1){ |
| 1790 |
lua_pushstring(L,"table appears to be empty"); |
| 1791 |
return 0; |
| 1792 |
} |
| 1793 |
array=SWIG_ALLOC_ARRAY(void*,*size); |
| 1794 |
if (!SWIG_read_ptr_array(L,index,array,*size,type)){ |
| 1795 |
lua_pushfstring(L,"table must contain pointers of type %s",type->name); |
| 1796 |
SWIG_FREE_ARRAY(array); |
| 1797 |
return 0; |
| 1798 |
} |
| 1799 |
return array; |
| 1800 |
} |
| 1801 |
SWIGINTERN void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_type_info *type,int own){ |
| 1802 |
int i; |
| 1803 |
lua_newtable(L); |
| 1804 |
for (i = 0; i < size; i++){ |
| 1805 |
SWIG_NewPointerObj(L,array[i],type,own); |
| 1806 |
lua_rawseti(L,-2,i+1); |
| 1807 |
} |
| 1808 |
} |
| 1809 |
|
| 1810 |
|
| 1811 |
|
| 1812 |
|
| 1813 |
#ifdef REDLAND_PRE_I |
| 1814 |
#include <redland-pre.i> |
| 1815 |
#endif |
| 1816 |
|
| 1817 |
#include <redland.h> |
| 1818 |
|
| 1819 |
|
| 1820 |
|
| 1821 |
|
| 1822 |
|
| 1823 |
|
| 1824 |
|
| 1825 |
|
| 1826 |
|
| 1827 |
|
| 1828 |
|
| 1829 |
#ifndef va_copy |
| 1830 |
#ifdef __va_copy |
| 1831 |
#define va_copy(dest,src) __va_copy(dest,src) |
| 1832 |
#else |
| 1833 |
#define va_copy(dest,src) (dest) = (src) |
| 1834 |
#endif |
| 1835 |
#endif |
| 1836 |
|
| 1837 |
|
| 1838 |
#ifdef REDLAND_POST_I |
| 1839 |
#include <redland-post.i> |
| 1840 |
#endif |
| 1841 |
|
| 1842 |
|
| 1843 |
|
| 1844 |
void librdf_internal_test_error(librdf_world *world); |
| 1845 |
void librdf_internal_test_warning(librdf_world *world); |
| 1846 |
|
| 1847 |
|
| 1848 |
|
| 1849 |
void librdf_test_error(librdf_world* world, const char* message); |
| 1850 |
void librdf_test_warning(librdf_world* world, const char* message); |
| 1851 |
|
| 1852 |
|
| 1853 |
void |
| 1854 |
librdf_internal_test_error(librdf_world *world) |
| 1855 |
{ |
| 1856 |
librdf_test_error(world, "test error message number 1."); |
| 1857 |
} |
| 1858 |
|
| 1859 |
void |
| 1860 |
librdf_internal_test_warning(librdf_world *world) |
| 1861 |
{ |
| 1862 |
librdf_test_warning(world, "test warning message number 2."); |
| 1863 |
} |
| 1864 |
|
| 1865 |
|
| 1866 |
|
| 1867 |
SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) { |
| 1868 |
int ret = lua_isstring(L, idx); |
| 1869 |
if (!ret) |
| 1870 |
ret = lua_isnil(L, idx); |
| 1871 |
return ret; |
| 1872 |
} |
| 1873 |
|
| 1874 |
#ifdef __cplusplus |
| 1875 |
extern "C" { |
| 1876 |
#endif |
| 1877 |
static int _wrap_librdf_new_digest(lua_State* L) { |
| 1878 |
int SWIG_arg = 0; |
| 1879 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 1880 |
char *arg2 = (char *) 0 ; |
| 1881 |
librdf_digest *result = 0 ; |
| 1882 |
|
| 1883 |
SWIG_check_num_args("librdf_new_digest",2,2) |
| 1884 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_digest",1,"librdf_world *"); |
| 1885 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_digest",2,"char *"); |
| 1886 |
|
| 1887 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 1888 |
SWIG_fail_ptr("librdf_new_digest",1,SWIGTYPE_p_librdf_world_s); |
| 1889 |
} |
| 1890 |
|
| 1891 |
arg2 = (char *)lua_tostring(L, 2); |
| 1892 |
result = (librdf_digest *)librdf_new_digest(arg1,arg2); |
| 1893 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_digest_s,1); SWIG_arg++; |
| 1894 |
return SWIG_arg; |
| 1895 |
|
| 1896 |
if(0) SWIG_fail; |
| 1897 |
|
| 1898 |
fail: |
| 1899 |
lua_error(L); |
| 1900 |
return SWIG_arg; |
| 1901 |
} |
| 1902 |
|
| 1903 |
|
| 1904 |
static int _wrap_librdf_free_digest(lua_State* L) { |
| 1905 |
int SWIG_arg = 0; |
| 1906 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 1907 |
|
| 1908 |
SWIG_check_num_args("librdf_free_digest",1,1) |
| 1909 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_digest",1,"librdf_digest *"); |
| 1910 |
|
| 1911 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 1912 |
SWIG_fail_ptr("librdf_free_digest",1,SWIGTYPE_p_librdf_digest_s); |
| 1913 |
} |
| 1914 |
|
| 1915 |
librdf_free_digest(arg1); |
| 1916 |
|
| 1917 |
return SWIG_arg; |
| 1918 |
|
| 1919 |
if(0) SWIG_fail; |
| 1920 |
|
| 1921 |
fail: |
| 1922 |
lua_error(L); |
| 1923 |
return SWIG_arg; |
| 1924 |
} |
| 1925 |
|
| 1926 |
|
| 1927 |
static int _wrap_librdf_digest_init(lua_State* L) { |
| 1928 |
int SWIG_arg = 0; |
| 1929 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 1930 |
|
| 1931 |
SWIG_check_num_args("librdf_digest_init",1,1) |
| 1932 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_init",1,"librdf_digest *"); |
| 1933 |
|
| 1934 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 1935 |
SWIG_fail_ptr("librdf_digest_init",1,SWIGTYPE_p_librdf_digest_s); |
| 1936 |
} |
| 1937 |
|
| 1938 |
librdf_digest_init(arg1); |
| 1939 |
|
| 1940 |
return SWIG_arg; |
| 1941 |
|
| 1942 |
if(0) SWIG_fail; |
| 1943 |
|
| 1944 |
fail: |
| 1945 |
lua_error(L); |
| 1946 |
return SWIG_arg; |
| 1947 |
} |
| 1948 |
|
| 1949 |
|
| 1950 |
static int _wrap_librdf_digest_update(lua_State* L) { |
| 1951 |
int SWIG_arg = 0; |
| 1952 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 1953 |
char *arg2 = (char *) 0 ; |
| 1954 |
size_t arg3 ; |
| 1955 |
|
| 1956 |
SWIG_check_num_args("librdf_digest_update",3,3) |
| 1957 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update",1,"librdf_digest *"); |
| 1958 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update",2,"char const *"); |
| 1959 |
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_digest_update",3,"size_t"); |
| 1960 |
|
| 1961 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 1962 |
SWIG_fail_ptr("librdf_digest_update",1,SWIGTYPE_p_librdf_digest_s); |
| 1963 |
} |
| 1964 |
|
| 1965 |
arg2 = (char *)lua_tostring(L, 2); |
| 1966 |
SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") |
| 1967 |
arg3 = (size_t)lua_tonumber(L, 3); |
| 1968 |
librdf_digest_update(arg1,(char const *)arg2,arg3); |
| 1969 |
|
| 1970 |
return SWIG_arg; |
| 1971 |
|
| 1972 |
if(0) SWIG_fail; |
| 1973 |
|
| 1974 |
fail: |
| 1975 |
lua_error(L); |
| 1976 |
return SWIG_arg; |
| 1977 |
} |
| 1978 |
|
| 1979 |
|
| 1980 |
static int _wrap_librdf_digest_update_string(lua_State* L) { |
| 1981 |
int SWIG_arg = 0; |
| 1982 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 1983 |
char *arg2 = (char *) 0 ; |
| 1984 |
|
| 1985 |
SWIG_check_num_args("librdf_digest_update_string",2,2) |
| 1986 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update_string",1,"librdf_digest *"); |
| 1987 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update_string",2,"char const *"); |
| 1988 |
|
| 1989 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 1990 |
SWIG_fail_ptr("librdf_digest_update_string",1,SWIGTYPE_p_librdf_digest_s); |
| 1991 |
} |
| 1992 |
|
| 1993 |
arg2 = (char *)lua_tostring(L, 2); |
| 1994 |
librdf_digest_update_string(arg1,(char const *)arg2); |
| 1995 |
|
| 1996 |
return SWIG_arg; |
| 1997 |
|
| 1998 |
if(0) SWIG_fail; |
| 1999 |
|
| 2000 |
fail: |
| 2001 |
lua_error(L); |
| 2002 |
return SWIG_arg; |
| 2003 |
} |
| 2004 |
|
| 2005 |
|
| 2006 |
static int _wrap_librdf_digest_final(lua_State* L) { |
| 2007 |
int SWIG_arg = 0; |
| 2008 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 2009 |
|
| 2010 |
SWIG_check_num_args("librdf_digest_final",1,1) |
| 2011 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_final",1,"librdf_digest *"); |
| 2012 |
|
| 2013 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 2014 |
SWIG_fail_ptr("librdf_digest_final",1,SWIGTYPE_p_librdf_digest_s); |
| 2015 |
} |
| 2016 |
|
| 2017 |
librdf_digest_final(arg1); |
| 2018 |
|
| 2019 |
return SWIG_arg; |
| 2020 |
|
| 2021 |
if(0) SWIG_fail; |
| 2022 |
|
| 2023 |
fail: |
| 2024 |
lua_error(L); |
| 2025 |
return SWIG_arg; |
| 2026 |
} |
| 2027 |
|
| 2028 |
|
| 2029 |
static int _wrap_librdf_digest_to_string(lua_State* L) { |
| 2030 |
int SWIG_arg = 0; |
| 2031 |
librdf_digest *arg1 = (librdf_digest *) 0 ; |
| 2032 |
char *result = 0 ; |
| 2033 |
|
| 2034 |
SWIG_check_num_args("librdf_digest_to_string",1,1) |
| 2035 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_to_string",1,"librdf_digest *"); |
| 2036 |
|
| 2037 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){ |
| 2038 |
SWIG_fail_ptr("librdf_digest_to_string",1,SWIGTYPE_p_librdf_digest_s); |
| 2039 |
} |
| 2040 |
|
| 2041 |
result = (char *)librdf_digest_to_string(arg1); |
| 2042 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 2043 |
free(result); |
| 2044 |
return SWIG_arg; |
| 2045 |
|
| 2046 |
if(0) SWIG_fail; |
| 2047 |
|
| 2048 |
fail: |
| 2049 |
lua_error(L); |
| 2050 |
return SWIG_arg; |
| 2051 |
} |
| 2052 |
|
| 2053 |
|
| 2054 |
static int _wrap_librdf_new_hash(lua_State* L) { |
| 2055 |
int SWIG_arg = 0; |
| 2056 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2057 |
char *arg2 = (char *) 0 ; |
| 2058 |
librdf_hash *result = 0 ; |
| 2059 |
|
| 2060 |
SWIG_check_num_args("librdf_new_hash",2,2) |
| 2061 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash",1,"librdf_world *"); |
| 2062 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash",2,"char const *"); |
| 2063 |
|
| 2064 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2065 |
SWIG_fail_ptr("librdf_new_hash",1,SWIGTYPE_p_librdf_world_s); |
| 2066 |
} |
| 2067 |
|
| 2068 |
arg2 = (char *)lua_tostring(L, 2); |
| 2069 |
result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2); |
| 2070 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; |
| 2071 |
return SWIG_arg; |
| 2072 |
|
| 2073 |
if(0) SWIG_fail; |
| 2074 |
|
| 2075 |
fail: |
| 2076 |
lua_error(L); |
| 2077 |
return SWIG_arg; |
| 2078 |
} |
| 2079 |
|
| 2080 |
|
| 2081 |
static int _wrap_librdf_new_hash_from_string(lua_State* L) { |
| 2082 |
int SWIG_arg = 0; |
| 2083 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2084 |
char *arg2 = (char *) 0 ; |
| 2085 |
char *arg3 = (char *) 0 ; |
| 2086 |
librdf_hash *result = 0 ; |
| 2087 |
|
| 2088 |
SWIG_check_num_args("librdf_new_hash_from_string",3,3) |
| 2089 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_string",1,"librdf_world *"); |
| 2090 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_string",2,"char const *"); |
| 2091 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_hash_from_string",3,"char const *"); |
| 2092 |
|
| 2093 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2094 |
SWIG_fail_ptr("librdf_new_hash_from_string",1,SWIGTYPE_p_librdf_world_s); |
| 2095 |
} |
| 2096 |
|
| 2097 |
arg2 = (char *)lua_tostring(L, 2); |
| 2098 |
arg3 = (char *)lua_tostring(L, 3); |
| 2099 |
result = (librdf_hash *)librdf_new_hash_from_string(arg1,(char const *)arg2,(char const *)arg3); |
| 2100 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; |
| 2101 |
return SWIG_arg; |
| 2102 |
|
| 2103 |
if(0) SWIG_fail; |
| 2104 |
|
| 2105 |
fail: |
| 2106 |
lua_error(L); |
| 2107 |
return SWIG_arg; |
| 2108 |
} |
| 2109 |
|
| 2110 |
|
| 2111 |
static int _wrap_librdf_new_hash_from_array_of_strings(lua_State* L) { |
| 2112 |
int SWIG_arg = 0; |
| 2113 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2114 |
char *arg2 = (char *) 0 ; |
| 2115 |
char **arg3 = (char **) 0 ; |
| 2116 |
librdf_hash *result = 0 ; |
| 2117 |
|
| 2118 |
SWIG_check_num_args("librdf_new_hash_from_array_of_strings",3,3) |
| 2119 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",1,"librdf_world *"); |
| 2120 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",2,"char const *"); |
| 2121 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",3,"char const **"); |
| 2122 |
|
| 2123 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2124 |
SWIG_fail_ptr("librdf_new_hash_from_array_of_strings",1,SWIGTYPE_p_librdf_world_s); |
| 2125 |
} |
| 2126 |
|
| 2127 |
arg2 = (char *)lua_tostring(L, 2); |
| 2128 |
|
| 2129 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){ |
| 2130 |
SWIG_fail_ptr("librdf_new_hash_from_array_of_strings",3,SWIGTYPE_p_p_char); |
| 2131 |
} |
| 2132 |
|
| 2133 |
result = (librdf_hash *)librdf_new_hash_from_array_of_strings(arg1,(char const *)arg2,(char const **)arg3); |
| 2134 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++; |
| 2135 |
return SWIG_arg; |
| 2136 |
|
| 2137 |
if(0) SWIG_fail; |
| 2138 |
|
| 2139 |
fail: |
| 2140 |
lua_error(L); |
| 2141 |
return SWIG_arg; |
| 2142 |
} |
| 2143 |
|
| 2144 |
|
| 2145 |
static int _wrap_librdf_hash_to_string(lua_State* L) { |
| 2146 |
int SWIG_arg = 0; |
| 2147 |
librdf_hash *arg1 = (librdf_hash *) 0 ; |
| 2148 |
char **arg2 ; |
| 2149 |
char *result = 0 ; |
| 2150 |
|
| 2151 |
SWIG_check_num_args("librdf_hash_to_string",2,2) |
| 2152 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_hash_to_string",1,"librdf_hash *"); |
| 2153 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_hash_to_string",2,"char const *[]"); |
| 2154 |
|
| 2155 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_hash_s,0))){ |
| 2156 |
SWIG_fail_ptr("librdf_hash_to_string",1,SWIGTYPE_p_librdf_hash_s); |
| 2157 |
} |
| 2158 |
|
| 2159 |
|
| 2160 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){ |
| 2161 |
SWIG_fail_ptr("librdf_hash_to_string",2,SWIGTYPE_p_p_char); |
| 2162 |
} |
| 2163 |
|
| 2164 |
result = (char *)librdf_hash_to_string(arg1,(char const *(*))arg2); |
| 2165 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 2166 |
free(result); |
| 2167 |
return SWIG_arg; |
| 2168 |
|
| 2169 |
if(0) SWIG_fail; |
| 2170 |
|
| 2171 |
fail: |
| 2172 |
lua_error(L); |
| 2173 |
return SWIG_arg; |
| 2174 |
} |
| 2175 |
|
| 2176 |
|
| 2177 |
static int _wrap_librdf_free_hash(lua_State* L) { |
| 2178 |
int SWIG_arg = 0; |
| 2179 |
librdf_hash *arg1 = (librdf_hash *) 0 ; |
| 2180 |
|
| 2181 |
SWIG_check_num_args("librdf_free_hash",1,1) |
| 2182 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_hash",1,"librdf_hash *"); |
| 2183 |
|
| 2184 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_hash_s,0))){ |
| 2185 |
SWIG_fail_ptr("librdf_free_hash",1,SWIGTYPE_p_librdf_hash_s); |
| 2186 |
} |
| 2187 |
|
| 2188 |
librdf_free_hash(arg1); |
| 2189 |
|
| 2190 |
return SWIG_arg; |
| 2191 |
|
| 2192 |
if(0) SWIG_fail; |
| 2193 |
|
| 2194 |
fail: |
| 2195 |
lua_error(L); |
| 2196 |
return SWIG_arg; |
| 2197 |
} |
| 2198 |
|
| 2199 |
|
| 2200 |
static int _wrap_librdf_new_world(lua_State* L) { |
| 2201 |
int SWIG_arg = 0; |
| 2202 |
librdf_world *result = 0 ; |
| 2203 |
|
| 2204 |
SWIG_check_num_args("librdf_new_world",0,0) |
| 2205 |
result = (librdf_world *)librdf_new_world(); |
| 2206 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_world_s,1); SWIG_arg++; |
| 2207 |
return SWIG_arg; |
| 2208 |
|
| 2209 |
if(0) SWIG_fail; |
| 2210 |
|
| 2211 |
fail: |
| 2212 |
lua_error(L); |
| 2213 |
return SWIG_arg; |
| 2214 |
} |
| 2215 |
|
| 2216 |
|
| 2217 |
static int _wrap_librdf_free_world(lua_State* L) { |
| 2218 |
int SWIG_arg = 0; |
| 2219 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2220 |
|
| 2221 |
SWIG_check_num_args("librdf_free_world",1,1) |
| 2222 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_world",1,"librdf_world *"); |
| 2223 |
|
| 2224 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2225 |
SWIG_fail_ptr("librdf_free_world",1,SWIGTYPE_p_librdf_world_s); |
| 2226 |
} |
| 2227 |
|
| 2228 |
librdf_free_world(arg1); |
| 2229 |
|
| 2230 |
return SWIG_arg; |
| 2231 |
|
| 2232 |
if(0) SWIG_fail; |
| 2233 |
|
| 2234 |
fail: |
| 2235 |
lua_error(L); |
| 2236 |
return SWIG_arg; |
| 2237 |
} |
| 2238 |
|
| 2239 |
|
| 2240 |
static int _wrap_librdf_world_open(lua_State* L) { |
| 2241 |
int SWIG_arg = 0; |
| 2242 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2243 |
|
| 2244 |
SWIG_check_num_args("librdf_world_open",1,1) |
| 2245 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_open",1,"librdf_world *"); |
| 2246 |
|
| 2247 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2248 |
SWIG_fail_ptr("librdf_world_open",1,SWIGTYPE_p_librdf_world_s); |
| 2249 |
} |
| 2250 |
|
| 2251 |
librdf_world_open(arg1); |
| 2252 |
|
| 2253 |
return SWIG_arg; |
| 2254 |
|
| 2255 |
if(0) SWIG_fail; |
| 2256 |
|
| 2257 |
fail: |
| 2258 |
lua_error(L); |
| 2259 |
return SWIG_arg; |
| 2260 |
} |
| 2261 |
|
| 2262 |
|
| 2263 |
static int _wrap_librdf_world_get_feature(lua_State* L) { |
| 2264 |
int SWIG_arg = 0; |
| 2265 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2266 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2267 |
librdf_node *result = 0 ; |
| 2268 |
|
| 2269 |
SWIG_check_num_args("librdf_world_get_feature",2,2) |
| 2270 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_get_feature",1,"librdf_world *"); |
| 2271 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_get_feature",2,"librdf_uri *"); |
| 2272 |
|
| 2273 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2274 |
SWIG_fail_ptr("librdf_world_get_feature",1,SWIGTYPE_p_librdf_world_s); |
| 2275 |
} |
| 2276 |
|
| 2277 |
|
| 2278 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2279 |
SWIG_fail_ptr("librdf_world_get_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 2280 |
} |
| 2281 |
|
| 2282 |
result = (librdf_node *)librdf_world_get_feature(arg1,arg2); |
| 2283 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2284 |
return SWIG_arg; |
| 2285 |
|
| 2286 |
if(0) SWIG_fail; |
| 2287 |
|
| 2288 |
fail: |
| 2289 |
lua_error(L); |
| 2290 |
return SWIG_arg; |
| 2291 |
} |
| 2292 |
|
| 2293 |
|
| 2294 |
static int _wrap_librdf_world_set_feature(lua_State* L) { |
| 2295 |
int SWIG_arg = 0; |
| 2296 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2297 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2298 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 2299 |
int result; |
| 2300 |
|
| 2301 |
SWIG_check_num_args("librdf_world_set_feature",3,3) |
| 2302 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_set_feature",1,"librdf_world *"); |
| 2303 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_set_feature",2,"librdf_uri *"); |
| 2304 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_world_set_feature",3,"librdf_node *"); |
| 2305 |
|
| 2306 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2307 |
SWIG_fail_ptr("librdf_world_set_feature",1,SWIGTYPE_p_librdf_world_s); |
| 2308 |
} |
| 2309 |
|
| 2310 |
|
| 2311 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2312 |
SWIG_fail_ptr("librdf_world_set_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 2313 |
} |
| 2314 |
|
| 2315 |
|
| 2316 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 2317 |
SWIG_fail_ptr("librdf_world_set_feature",3,SWIGTYPE_p_librdf_node_s); |
| 2318 |
} |
| 2319 |
|
| 2320 |
result = (int)librdf_world_set_feature(arg1,arg2,arg3); |
| 2321 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 2322 |
return SWIG_arg; |
| 2323 |
|
| 2324 |
if(0) SWIG_fail; |
| 2325 |
|
| 2326 |
fail: |
| 2327 |
lua_error(L); |
| 2328 |
return SWIG_arg; |
| 2329 |
} |
| 2330 |
|
| 2331 |
|
| 2332 |
static int _wrap_librdf_parser_get_accept_header(lua_State* L) { |
| 2333 |
int SWIG_arg = 0; |
| 2334 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 2335 |
char *result = 0 ; |
| 2336 |
|
| 2337 |
SWIG_check_num_args("librdf_parser_get_accept_header",1,1) |
| 2338 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_accept_header",1,"librdf_parser *"); |
| 2339 |
|
| 2340 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 2341 |
SWIG_fail_ptr("librdf_parser_get_accept_header",1,SWIGTYPE_p_librdf_parser_s); |
| 2342 |
} |
| 2343 |
|
| 2344 |
result = (char *)librdf_parser_get_accept_header(arg1); |
| 2345 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 2346 |
free(result); |
| 2347 |
return SWIG_arg; |
| 2348 |
|
| 2349 |
if(0) SWIG_fail; |
| 2350 |
|
| 2351 |
fail: |
| 2352 |
lua_error(L); |
| 2353 |
return SWIG_arg; |
| 2354 |
} |
| 2355 |
|
| 2356 |
|
| 2357 |
static int _wrap_librdf_world_set_logger(lua_State* L) { |
| 2358 |
int SWIG_arg = 0; |
| 2359 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2360 |
void *arg2 = (void *) 0 ; |
| 2361 |
librdf_log_func arg3 ; |
| 2362 |
librdf_log_func *argp3 ; |
| 2363 |
|
| 2364 |
SWIG_check_num_args("librdf_world_set_logger",3,3) |
| 2365 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_world_set_logger",1,"librdf_world *"); |
| 2366 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_world_set_logger",2,"void *"); |
| 2367 |
if(!lua_isuserdata(L,3)) SWIG_fail_arg("librdf_world_set_logger",3,"librdf_log_func"); |
| 2368 |
|
| 2369 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2370 |
SWIG_fail_ptr("librdf_world_set_logger",1,SWIGTYPE_p_librdf_world_s); |
| 2371 |
} |
| 2372 |
|
| 2373 |
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"librdf_world_set_logger"); |
| 2374 |
|
| 2375 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_librdf_log_func,0))){ |
| 2376 |
SWIG_fail_ptr("librdf_world_set_logger",3,SWIGTYPE_p_librdf_log_func); |
| 2377 |
} |
| 2378 |
arg3 = *argp3; |
| 2379 |
|
| 2380 |
librdf_world_set_logger(arg1,arg2,arg3); |
| 2381 |
|
| 2382 |
return SWIG_arg; |
| 2383 |
|
| 2384 |
if(0) SWIG_fail; |
| 2385 |
|
| 2386 |
fail: |
| 2387 |
lua_error(L); |
| 2388 |
return SWIG_arg; |
| 2389 |
} |
| 2390 |
|
| 2391 |
|
| 2392 |
static int _wrap_librdf_free_iterator(lua_State* L) { |
| 2393 |
int SWIG_arg = 0; |
| 2394 |
librdf_iterator *arg1 = (librdf_iterator *) 0 ; |
| 2395 |
|
| 2396 |
SWIG_check_num_args("librdf_free_iterator",1,1) |
| 2397 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_iterator",1,"librdf_iterator *"); |
| 2398 |
|
| 2399 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ |
| 2400 |
SWIG_fail_ptr("librdf_free_iterator",1,SWIGTYPE_p_librdf_iterator_s); |
| 2401 |
} |
| 2402 |
|
| 2403 |
librdf_free_iterator(arg1); |
| 2404 |
|
| 2405 |
return SWIG_arg; |
| 2406 |
|
| 2407 |
if(0) SWIG_fail; |
| 2408 |
|
| 2409 |
fail: |
| 2410 |
lua_error(L); |
| 2411 |
return SWIG_arg; |
| 2412 |
} |
| 2413 |
|
| 2414 |
|
| 2415 |
static int _wrap_librdf_iterator_end(lua_State* L) { |
| 2416 |
int SWIG_arg = 0; |
| 2417 |
librdf_iterator *arg1 = (librdf_iterator *) 0 ; |
| 2418 |
int result; |
| 2419 |
|
| 2420 |
SWIG_check_num_args("librdf_iterator_end",1,1) |
| 2421 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_end",1,"librdf_iterator *"); |
| 2422 |
|
| 2423 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ |
| 2424 |
SWIG_fail_ptr("librdf_iterator_end",1,SWIGTYPE_p_librdf_iterator_s); |
| 2425 |
} |
| 2426 |
|
| 2427 |
result = (int)librdf_iterator_end(arg1); |
| 2428 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 2429 |
return SWIG_arg; |
| 2430 |
|
| 2431 |
if(0) SWIG_fail; |
| 2432 |
|
| 2433 |
fail: |
| 2434 |
lua_error(L); |
| 2435 |
return SWIG_arg; |
| 2436 |
} |
| 2437 |
|
| 2438 |
|
| 2439 |
static int _wrap_librdf_iterator_get_object(lua_State* L) { |
| 2440 |
int SWIG_arg = 0; |
| 2441 |
librdf_iterator *arg1 = (librdf_iterator *) 0 ; |
| 2442 |
librdf_node *result = 0 ; |
| 2443 |
|
| 2444 |
SWIG_check_num_args("librdf_iterator_get_object",1,1) |
| 2445 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_get_object",1,"librdf_iterator *"); |
| 2446 |
|
| 2447 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ |
| 2448 |
SWIG_fail_ptr("librdf_iterator_get_object",1,SWIGTYPE_p_librdf_iterator_s); |
| 2449 |
} |
| 2450 |
|
| 2451 |
result = (librdf_node *)librdf_iterator_get_object(arg1); |
| 2452 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 2453 |
return SWIG_arg; |
| 2454 |
|
| 2455 |
if(0) SWIG_fail; |
| 2456 |
|
| 2457 |
fail: |
| 2458 |
lua_error(L); |
| 2459 |
return SWIG_arg; |
| 2460 |
} |
| 2461 |
|
| 2462 |
|
| 2463 |
static int _wrap_librdf_iterator_get_context(lua_State* L) { |
| 2464 |
int SWIG_arg = 0; |
| 2465 |
librdf_iterator *arg1 = (librdf_iterator *) 0 ; |
| 2466 |
librdf_node *result = 0 ; |
| 2467 |
|
| 2468 |
SWIG_check_num_args("librdf_iterator_get_context",1,1) |
| 2469 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_get_context",1,"librdf_iterator *"); |
| 2470 |
|
| 2471 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ |
| 2472 |
SWIG_fail_ptr("librdf_iterator_get_context",1,SWIGTYPE_p_librdf_iterator_s); |
| 2473 |
} |
| 2474 |
|
| 2475 |
result = (librdf_node *)librdf_iterator_get_context(arg1); |
| 2476 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 2477 |
return SWIG_arg; |
| 2478 |
|
| 2479 |
if(0) SWIG_fail; |
| 2480 |
|
| 2481 |
fail: |
| 2482 |
lua_error(L); |
| 2483 |
return SWIG_arg; |
| 2484 |
} |
| 2485 |
|
| 2486 |
|
| 2487 |
static int _wrap_librdf_iterator_next(lua_State* L) { |
| 2488 |
int SWIG_arg = 0; |
| 2489 |
librdf_iterator *arg1 = (librdf_iterator *) 0 ; |
| 2490 |
int result; |
| 2491 |
|
| 2492 |
SWIG_check_num_args("librdf_iterator_next",1,1) |
| 2493 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_iterator_next",1,"librdf_iterator *"); |
| 2494 |
|
| 2495 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_iterator_s,0))){ |
| 2496 |
SWIG_fail_ptr("librdf_iterator_next",1,SWIGTYPE_p_librdf_iterator_s); |
| 2497 |
} |
| 2498 |
|
| 2499 |
result = (int)librdf_iterator_next(arg1); |
| 2500 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 2501 |
return SWIG_arg; |
| 2502 |
|
| 2503 |
if(0) SWIG_fail; |
| 2504 |
|
| 2505 |
fail: |
| 2506 |
lua_error(L); |
| 2507 |
return SWIG_arg; |
| 2508 |
} |
| 2509 |
|
| 2510 |
|
| 2511 |
static int _wrap_librdf_new_uri(lua_State* L) { |
| 2512 |
int SWIG_arg = 0; |
| 2513 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2514 |
char *arg2 = (char *) 0 ; |
| 2515 |
librdf_uri *result = 0 ; |
| 2516 |
|
| 2517 |
SWIG_check_num_args("librdf_new_uri",2,2) |
| 2518 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri",1,"librdf_world *"); |
| 2519 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri",2,"char *"); |
| 2520 |
|
| 2521 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2522 |
SWIG_fail_ptr("librdf_new_uri",1,SWIGTYPE_p_librdf_world_s); |
| 2523 |
} |
| 2524 |
|
| 2525 |
arg2 = (char *)lua_tostring(L, 2); |
| 2526 |
result = (librdf_uri *)librdf_new_uri(arg1,arg2); |
| 2527 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,1); SWIG_arg++; |
| 2528 |
return SWIG_arg; |
| 2529 |
|
| 2530 |
if(0) SWIG_fail; |
| 2531 |
|
| 2532 |
fail: |
| 2533 |
lua_error(L); |
| 2534 |
return SWIG_arg; |
| 2535 |
} |
| 2536 |
|
| 2537 |
|
| 2538 |
static int _wrap_librdf_new_uri_from_uri(lua_State* L) { |
| 2539 |
int SWIG_arg = 0; |
| 2540 |
librdf_uri *arg1 = (librdf_uri *) 0 ; |
| 2541 |
librdf_uri *result = 0 ; |
| 2542 |
|
| 2543 |
SWIG_check_num_args("librdf_new_uri_from_uri",1,1) |
| 2544 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri_from_uri",1,"librdf_uri *"); |
| 2545 |
|
| 2546 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2547 |
SWIG_fail_ptr("librdf_new_uri_from_uri",1,SWIGTYPE_p_librdf_uri_s); |
| 2548 |
} |
| 2549 |
|
| 2550 |
result = (librdf_uri *)librdf_new_uri_from_uri(arg1); |
| 2551 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,1); SWIG_arg++; |
| 2552 |
return SWIG_arg; |
| 2553 |
|
| 2554 |
if(0) SWIG_fail; |
| 2555 |
|
| 2556 |
fail: |
| 2557 |
lua_error(L); |
| 2558 |
return SWIG_arg; |
| 2559 |
} |
| 2560 |
|
| 2561 |
|
| 2562 |
static int _wrap_librdf_new_uri_from_filename(lua_State* L) { |
| 2563 |
int SWIG_arg = 0; |
| 2564 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2565 |
char *arg2 = (char *) 0 ; |
| 2566 |
librdf_uri *result = 0 ; |
| 2567 |
|
| 2568 |
SWIG_check_num_args("librdf_new_uri_from_filename",2,2) |
| 2569 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri_from_filename",1,"librdf_world *"); |
| 2570 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri_from_filename",2,"char const *"); |
| 2571 |
|
| 2572 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2573 |
SWIG_fail_ptr("librdf_new_uri_from_filename",1,SWIGTYPE_p_librdf_world_s); |
| 2574 |
} |
| 2575 |
|
| 2576 |
arg2 = (char *)lua_tostring(L, 2); |
| 2577 |
result = (librdf_uri *)librdf_new_uri_from_filename(arg1,(char const *)arg2); |
| 2578 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; |
| 2579 |
return SWIG_arg; |
| 2580 |
|
| 2581 |
if(0) SWIG_fail; |
| 2582 |
|
| 2583 |
fail: |
| 2584 |
lua_error(L); |
| 2585 |
return SWIG_arg; |
| 2586 |
} |
| 2587 |
|
| 2588 |
|
| 2589 |
static int _wrap_librdf_free_uri(lua_State* L) { |
| 2590 |
int SWIG_arg = 0; |
| 2591 |
librdf_uri *arg1 = (librdf_uri *) 0 ; |
| 2592 |
|
| 2593 |
SWIG_check_num_args("librdf_free_uri",1,1) |
| 2594 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_uri",1,"librdf_uri *"); |
| 2595 |
|
| 2596 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2597 |
SWIG_fail_ptr("librdf_free_uri",1,SWIGTYPE_p_librdf_uri_s); |
| 2598 |
} |
| 2599 |
|
| 2600 |
librdf_free_uri(arg1); |
| 2601 |
|
| 2602 |
return SWIG_arg; |
| 2603 |
|
| 2604 |
if(0) SWIG_fail; |
| 2605 |
|
| 2606 |
fail: |
| 2607 |
lua_error(L); |
| 2608 |
return SWIG_arg; |
| 2609 |
} |
| 2610 |
|
| 2611 |
|
| 2612 |
static int _wrap_librdf_uri_to_string(lua_State* L) { |
| 2613 |
int SWIG_arg = 0; |
| 2614 |
librdf_uri *arg1 = (librdf_uri *) 0 ; |
| 2615 |
char *result = 0 ; |
| 2616 |
|
| 2617 |
SWIG_check_num_args("librdf_uri_to_string",1,1) |
| 2618 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_to_string",1,"librdf_uri *"); |
| 2619 |
|
| 2620 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2621 |
SWIG_fail_ptr("librdf_uri_to_string",1,SWIGTYPE_p_librdf_uri_s); |
| 2622 |
} |
| 2623 |
|
| 2624 |
result = (char *)librdf_uri_to_string(arg1); |
| 2625 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 2626 |
free(result); |
| 2627 |
return SWIG_arg; |
| 2628 |
|
| 2629 |
if(0) SWIG_fail; |
| 2630 |
|
| 2631 |
fail: |
| 2632 |
lua_error(L); |
| 2633 |
return SWIG_arg; |
| 2634 |
} |
| 2635 |
|
| 2636 |
|
| 2637 |
static int _wrap_librdf_uri_equals(lua_State* L) { |
| 2638 |
int SWIG_arg = 0; |
| 2639 |
librdf_uri *arg1 = (librdf_uri *) 0 ; |
| 2640 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2641 |
int result; |
| 2642 |
|
| 2643 |
SWIG_check_num_args("librdf_uri_equals",2,2) |
| 2644 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_equals",1,"librdf_uri *"); |
| 2645 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_uri_equals",2,"librdf_uri *"); |
| 2646 |
|
| 2647 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2648 |
SWIG_fail_ptr("librdf_uri_equals",1,SWIGTYPE_p_librdf_uri_s); |
| 2649 |
} |
| 2650 |
|
| 2651 |
|
| 2652 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2653 |
SWIG_fail_ptr("librdf_uri_equals",2,SWIGTYPE_p_librdf_uri_s); |
| 2654 |
} |
| 2655 |
|
| 2656 |
result = (int)librdf_uri_equals(arg1,arg2); |
| 2657 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 2658 |
return SWIG_arg; |
| 2659 |
|
| 2660 |
if(0) SWIG_fail; |
| 2661 |
|
| 2662 |
fail: |
| 2663 |
lua_error(L); |
| 2664 |
return SWIG_arg; |
| 2665 |
} |
| 2666 |
|
| 2667 |
|
| 2668 |
static int _wrap_librdf_uri_compare(lua_State* L) { |
| 2669 |
int SWIG_arg = 0; |
| 2670 |
librdf_uri *arg1 = (librdf_uri *) 0 ; |
| 2671 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2672 |
int result; |
| 2673 |
|
| 2674 |
SWIG_check_num_args("librdf_uri_compare",2,2) |
| 2675 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_uri_compare",1,"librdf_uri *"); |
| 2676 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_uri_compare",2,"librdf_uri *"); |
| 2677 |
|
| 2678 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2679 |
SWIG_fail_ptr("librdf_uri_compare",1,SWIGTYPE_p_librdf_uri_s); |
| 2680 |
} |
| 2681 |
|
| 2682 |
|
| 2683 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2684 |
SWIG_fail_ptr("librdf_uri_compare",2,SWIGTYPE_p_librdf_uri_s); |
| 2685 |
} |
| 2686 |
|
| 2687 |
result = (int)librdf_uri_compare(arg1,arg2); |
| 2688 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 2689 |
return SWIG_arg; |
| 2690 |
|
| 2691 |
if(0) SWIG_fail; |
| 2692 |
|
| 2693 |
fail: |
| 2694 |
lua_error(L); |
| 2695 |
return SWIG_arg; |
| 2696 |
} |
| 2697 |
|
| 2698 |
|
| 2699 |
static int _wrap_librdf_new_node(lua_State* L) { |
| 2700 |
int SWIG_arg = 0; |
| 2701 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2702 |
librdf_node *result = 0 ; |
| 2703 |
|
| 2704 |
SWIG_check_num_args("librdf_new_node",1,1) |
| 2705 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node",1,"librdf_world *"); |
| 2706 |
|
| 2707 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2708 |
SWIG_fail_ptr("librdf_new_node",1,SWIGTYPE_p_librdf_world_s); |
| 2709 |
} |
| 2710 |
|
| 2711 |
result = (librdf_node *)librdf_new_node(arg1); |
| 2712 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2713 |
return SWIG_arg; |
| 2714 |
|
| 2715 |
if(0) SWIG_fail; |
| 2716 |
|
| 2717 |
fail: |
| 2718 |
lua_error(L); |
| 2719 |
return SWIG_arg; |
| 2720 |
} |
| 2721 |
|
| 2722 |
|
| 2723 |
static int _wrap_librdf_new_node_from_uri_string(lua_State* L) { |
| 2724 |
int SWIG_arg = 0; |
| 2725 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2726 |
char *arg2 = (char *) 0 ; |
| 2727 |
librdf_node *result = 0 ; |
| 2728 |
|
| 2729 |
SWIG_check_num_args("librdf_new_node_from_uri_string",2,2) |
| 2730 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_string",1,"librdf_world *"); |
| 2731 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_string",2,"char const *"); |
| 2732 |
|
| 2733 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2734 |
SWIG_fail_ptr("librdf_new_node_from_uri_string",1,SWIGTYPE_p_librdf_world_s); |
| 2735 |
} |
| 2736 |
|
| 2737 |
arg2 = (char *)lua_tostring(L, 2); |
| 2738 |
result = (librdf_node *)librdf_new_node_from_uri_string(arg1,(char const *)arg2); |
| 2739 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2740 |
return SWIG_arg; |
| 2741 |
|
| 2742 |
if(0) SWIG_fail; |
| 2743 |
|
| 2744 |
fail: |
| 2745 |
lua_error(L); |
| 2746 |
return SWIG_arg; |
| 2747 |
} |
| 2748 |
|
| 2749 |
|
| 2750 |
static int _wrap_librdf_new_node_from_uri(lua_State* L) { |
| 2751 |
int SWIG_arg = 0; |
| 2752 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2753 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2754 |
librdf_node *result = 0 ; |
| 2755 |
|
| 2756 |
SWIG_check_num_args("librdf_new_node_from_uri",2,2) |
| 2757 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri",1,"librdf_world *"); |
| 2758 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_node_from_uri",2,"librdf_uri *"); |
| 2759 |
|
| 2760 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2761 |
SWIG_fail_ptr("librdf_new_node_from_uri",1,SWIGTYPE_p_librdf_world_s); |
| 2762 |
} |
| 2763 |
|
| 2764 |
|
| 2765 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2766 |
SWIG_fail_ptr("librdf_new_node_from_uri",2,SWIGTYPE_p_librdf_uri_s); |
| 2767 |
} |
| 2768 |
|
| 2769 |
result = (librdf_node *)librdf_new_node_from_uri(arg1,arg2); |
| 2770 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2771 |
return SWIG_arg; |
| 2772 |
|
| 2773 |
if(0) SWIG_fail; |
| 2774 |
|
| 2775 |
fail: |
| 2776 |
lua_error(L); |
| 2777 |
return SWIG_arg; |
| 2778 |
} |
| 2779 |
|
| 2780 |
|
| 2781 |
static int _wrap_librdf_new_node_from_uri_local_name(lua_State* L) { |
| 2782 |
int SWIG_arg = 0; |
| 2783 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2784 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 2785 |
char *arg3 = (char *) 0 ; |
| 2786 |
librdf_node *result = 0 ; |
| 2787 |
|
| 2788 |
SWIG_check_num_args("librdf_new_node_from_uri_local_name",3,3) |
| 2789 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",1,"librdf_world *"); |
| 2790 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",2,"librdf_uri *"); |
| 2791 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",3,"char const *"); |
| 2792 |
|
| 2793 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2794 |
SWIG_fail_ptr("librdf_new_node_from_uri_local_name",1,SWIGTYPE_p_librdf_world_s); |
| 2795 |
} |
| 2796 |
|
| 2797 |
|
| 2798 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2799 |
SWIG_fail_ptr("librdf_new_node_from_uri_local_name",2,SWIGTYPE_p_librdf_uri_s); |
| 2800 |
} |
| 2801 |
|
| 2802 |
arg3 = (char *)lua_tostring(L, 3); |
| 2803 |
result = (librdf_node *)librdf_new_node_from_uri_local_name(arg1,arg2,(char const *)arg3); |
| 2804 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2805 |
return SWIG_arg; |
| 2806 |
|
| 2807 |
if(0) SWIG_fail; |
| 2808 |
|
| 2809 |
fail: |
| 2810 |
lua_error(L); |
| 2811 |
return SWIG_arg; |
| 2812 |
} |
| 2813 |
|
| 2814 |
|
| 2815 |
static int _wrap_librdf_new_node_from_normalised_uri_string(lua_State* L) { |
| 2816 |
int SWIG_arg = 0; |
| 2817 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2818 |
char *arg2 = (char *) 0 ; |
| 2819 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 2820 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 2821 |
librdf_node *result = 0 ; |
| 2822 |
|
| 2823 |
SWIG_check_num_args("librdf_new_node_from_normalised_uri_string",4,4) |
| 2824 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",1,"librdf_world *"); |
| 2825 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",2,"char const *"); |
| 2826 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",3,"librdf_uri *"); |
| 2827 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",4,"librdf_uri *"); |
| 2828 |
|
| 2829 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2830 |
SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",1,SWIGTYPE_p_librdf_world_s); |
| 2831 |
} |
| 2832 |
|
| 2833 |
arg2 = (char *)lua_tostring(L, 2); |
| 2834 |
|
| 2835 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2836 |
SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",3,SWIGTYPE_p_librdf_uri_s); |
| 2837 |
} |
| 2838 |
|
| 2839 |
|
| 2840 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2841 |
SWIG_fail_ptr("librdf_new_node_from_normalised_uri_string",4,SWIGTYPE_p_librdf_uri_s); |
| 2842 |
} |
| 2843 |
|
| 2844 |
result = (librdf_node *)librdf_new_node_from_normalised_uri_string(arg1,(char const *)arg2,arg3,arg4); |
| 2845 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2846 |
return SWIG_arg; |
| 2847 |
|
| 2848 |
if(0) SWIG_fail; |
| 2849 |
|
| 2850 |
fail: |
| 2851 |
lua_error(L); |
| 2852 |
return SWIG_arg; |
| 2853 |
} |
| 2854 |
|
| 2855 |
|
| 2856 |
static int _wrap_librdf_new_node_from_literal(lua_State* L) { |
| 2857 |
int SWIG_arg = 0; |
| 2858 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2859 |
char *arg2 = (char *) 0 ; |
| 2860 |
char *arg3 = (char *) NULL ; |
| 2861 |
int arg4 = (int) 0 ; |
| 2862 |
librdf_node *result = 0 ; |
| 2863 |
|
| 2864 |
SWIG_check_num_args("librdf_new_node_from_literal",2,4) |
| 2865 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_literal",1,"librdf_world *"); |
| 2866 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_literal",2,"char const *"); |
| 2867 |
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_literal",3,"char const *"); |
| 2868 |
if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("librdf_new_node_from_literal",4,"int"); |
| 2869 |
|
| 2870 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2871 |
SWIG_fail_ptr("librdf_new_node_from_literal",1,SWIGTYPE_p_librdf_world_s); |
| 2872 |
} |
| 2873 |
|
| 2874 |
arg2 = (char *)lua_tostring(L, 2); |
| 2875 |
if(lua_gettop(L)>=3){ |
| 2876 |
arg3 = (char *)lua_tostring(L, 3); |
| 2877 |
} |
| 2878 |
if(lua_gettop(L)>=4){ |
| 2879 |
arg4 = (int)lua_tonumber(L, 4); |
| 2880 |
} |
| 2881 |
result = (librdf_node *)librdf_new_node_from_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); |
| 2882 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2883 |
return SWIG_arg; |
| 2884 |
|
| 2885 |
if(0) SWIG_fail; |
| 2886 |
|
| 2887 |
fail: |
| 2888 |
lua_error(L); |
| 2889 |
return SWIG_arg; |
| 2890 |
} |
| 2891 |
|
| 2892 |
|
| 2893 |
static int _wrap_librdf_new_node_from_typed_literal(lua_State* L) { |
| 2894 |
int SWIG_arg = 0; |
| 2895 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2896 |
char *arg2 = (char *) 0 ; |
| 2897 |
char *arg3 = (char *) NULL ; |
| 2898 |
librdf_uri *arg4 = (librdf_uri *) NULL ; |
| 2899 |
librdf_node *result = 0 ; |
| 2900 |
|
| 2901 |
SWIG_check_num_args("librdf_new_node_from_typed_literal",2,4) |
| 2902 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_typed_literal",1,"librdf_world *"); |
| 2903 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_typed_literal",2,"char const *"); |
| 2904 |
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_typed_literal",3,"char const *"); |
| 2905 |
if(lua_gettop(L)>=4 && !SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_typed_literal",4,"librdf_uri *"); |
| 2906 |
|
| 2907 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2908 |
SWIG_fail_ptr("librdf_new_node_from_typed_literal",1,SWIGTYPE_p_librdf_world_s); |
| 2909 |
} |
| 2910 |
|
| 2911 |
arg2 = (char *)lua_tostring(L, 2); |
| 2912 |
if(lua_gettop(L)>=3){ |
| 2913 |
arg3 = (char *)lua_tostring(L, 3); |
| 2914 |
} |
| 2915 |
if(lua_gettop(L)>=4){ |
| 2916 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 2917 |
SWIG_fail_ptr("librdf_new_node_from_typed_literal",4,SWIGTYPE_p_librdf_uri_s); |
| 2918 |
} |
| 2919 |
} |
| 2920 |
result = (librdf_node *)librdf_new_node_from_typed_literal(arg1,(char const *)arg2,(char const *)arg3,arg4); |
| 2921 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2922 |
return SWIG_arg; |
| 2923 |
|
| 2924 |
if(0) SWIG_fail; |
| 2925 |
|
| 2926 |
fail: |
| 2927 |
lua_error(L); |
| 2928 |
return SWIG_arg; |
| 2929 |
} |
| 2930 |
|
| 2931 |
|
| 2932 |
static int _wrap_librdf_new_node_from_node(lua_State* L) { |
| 2933 |
int SWIG_arg = 0; |
| 2934 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 2935 |
librdf_node *result = 0 ; |
| 2936 |
|
| 2937 |
SWIG_check_num_args("librdf_new_node_from_node",1,1) |
| 2938 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_node",1,"librdf_node *"); |
| 2939 |
|
| 2940 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 2941 |
SWIG_fail_ptr("librdf_new_node_from_node",1,SWIGTYPE_p_librdf_node_s); |
| 2942 |
} |
| 2943 |
|
| 2944 |
result = (librdf_node *)librdf_new_node_from_node(arg1); |
| 2945 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2946 |
return SWIG_arg; |
| 2947 |
|
| 2948 |
if(0) SWIG_fail; |
| 2949 |
|
| 2950 |
fail: |
| 2951 |
lua_error(L); |
| 2952 |
return SWIG_arg; |
| 2953 |
} |
| 2954 |
|
| 2955 |
|
| 2956 |
static int _wrap_librdf_new_node_from_blank_identifier(lua_State* L) { |
| 2957 |
int SWIG_arg = 0; |
| 2958 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 2959 |
char *arg2 = (char *) NULL ; |
| 2960 |
librdf_node *result = 0 ; |
| 2961 |
|
| 2962 |
SWIG_check_num_args("librdf_new_node_from_blank_identifier",1,2) |
| 2963 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",1,"librdf_world *"); |
| 2964 |
if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",2,"char const *"); |
| 2965 |
|
| 2966 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 2967 |
SWIG_fail_ptr("librdf_new_node_from_blank_identifier",1,SWIGTYPE_p_librdf_world_s); |
| 2968 |
} |
| 2969 |
|
| 2970 |
if(lua_gettop(L)>=2){ |
| 2971 |
arg2 = (char *)lua_tostring(L, 2); |
| 2972 |
} |
| 2973 |
result = (librdf_node *)librdf_new_node_from_blank_identifier(arg1,(char const *)arg2); |
| 2974 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 2975 |
return SWIG_arg; |
| 2976 |
|
| 2977 |
if(0) SWIG_fail; |
| 2978 |
|
| 2979 |
fail: |
| 2980 |
lua_error(L); |
| 2981 |
return SWIG_arg; |
| 2982 |
} |
| 2983 |
|
| 2984 |
|
| 2985 |
static int _wrap_librdf_free_node(lua_State* L) { |
| 2986 |
int SWIG_arg = 0; |
| 2987 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 2988 |
|
| 2989 |
SWIG_check_num_args("librdf_free_node",1,1) |
| 2990 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_node",1,"librdf_node *"); |
| 2991 |
|
| 2992 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 2993 |
SWIG_fail_ptr("librdf_free_node",1,SWIGTYPE_p_librdf_node_s); |
| 2994 |
} |
| 2995 |
|
| 2996 |
librdf_free_node(arg1); |
| 2997 |
|
| 2998 |
return SWIG_arg; |
| 2999 |
|
| 3000 |
if(0) SWIG_fail; |
| 3001 |
|
| 3002 |
fail: |
| 3003 |
lua_error(L); |
| 3004 |
return SWIG_arg; |
| 3005 |
} |
| 3006 |
|
| 3007 |
|
| 3008 |
static int _wrap_librdf_node_get_uri(lua_State* L) { |
| 3009 |
int SWIG_arg = 0; |
| 3010 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3011 |
librdf_uri *result = 0 ; |
| 3012 |
|
| 3013 |
SWIG_check_num_args("librdf_node_get_uri",1,1) |
| 3014 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_uri",1,"librdf_node *"); |
| 3015 |
|
| 3016 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3017 |
SWIG_fail_ptr("librdf_node_get_uri",1,SWIGTYPE_p_librdf_node_s); |
| 3018 |
} |
| 3019 |
|
| 3020 |
result = (librdf_uri *)librdf_node_get_uri(arg1); |
| 3021 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; |
| 3022 |
return SWIG_arg; |
| 3023 |
|
| 3024 |
if(0) SWIG_fail; |
| 3025 |
|
| 3026 |
fail: |
| 3027 |
lua_error(L); |
| 3028 |
return SWIG_arg; |
| 3029 |
} |
| 3030 |
|
| 3031 |
|
| 3032 |
static int _wrap_librdf_node_get_type(lua_State* L) { |
| 3033 |
int SWIG_arg = 0; |
| 3034 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3035 |
int result; |
| 3036 |
|
| 3037 |
SWIG_check_num_args("librdf_node_get_type",1,1) |
| 3038 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_type",1,"librdf_node *"); |
| 3039 |
|
| 3040 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3041 |
SWIG_fail_ptr("librdf_node_get_type",1,SWIGTYPE_p_librdf_node_s); |
| 3042 |
} |
| 3043 |
|
| 3044 |
result = (int)librdf_node_get_type(arg1); |
| 3045 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3046 |
return SWIG_arg; |
| 3047 |
|
| 3048 |
if(0) SWIG_fail; |
| 3049 |
|
| 3050 |
fail: |
| 3051 |
lua_error(L); |
| 3052 |
return SWIG_arg; |
| 3053 |
} |
| 3054 |
|
| 3055 |
|
| 3056 |
static int _wrap_librdf_node_get_literal_value(lua_State* L) { |
| 3057 |
int SWIG_arg = 0; |
| 3058 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3059 |
char *result = 0 ; |
| 3060 |
|
| 3061 |
SWIG_check_num_args("librdf_node_get_literal_value",1,1) |
| 3062 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value",1,"librdf_node *"); |
| 3063 |
|
| 3064 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3065 |
SWIG_fail_ptr("librdf_node_get_literal_value",1,SWIGTYPE_p_librdf_node_s); |
| 3066 |
} |
| 3067 |
|
| 3068 |
result = (char *)librdf_node_get_literal_value(arg1); |
| 3069 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3070 |
return SWIG_arg; |
| 3071 |
|
| 3072 |
if(0) SWIG_fail; |
| 3073 |
|
| 3074 |
fail: |
| 3075 |
lua_error(L); |
| 3076 |
return SWIG_arg; |
| 3077 |
} |
| 3078 |
|
| 3079 |
|
| 3080 |
static int _wrap_librdf_node_get_literal_value_as_latin1(lua_State* L) { |
| 3081 |
int SWIG_arg = 0; |
| 3082 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3083 |
char *result = 0 ; |
| 3084 |
|
| 3085 |
SWIG_check_num_args("librdf_node_get_literal_value_as_latin1",1,1) |
| 3086 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_as_latin1",1,"librdf_node *"); |
| 3087 |
|
| 3088 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3089 |
SWIG_fail_ptr("librdf_node_get_literal_value_as_latin1",1,SWIGTYPE_p_librdf_node_s); |
| 3090 |
} |
| 3091 |
|
| 3092 |
result = (char *)librdf_node_get_literal_value_as_latin1(arg1); |
| 3093 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3094 |
return SWIG_arg; |
| 3095 |
|
| 3096 |
if(0) SWIG_fail; |
| 3097 |
|
| 3098 |
fail: |
| 3099 |
lua_error(L); |
| 3100 |
return SWIG_arg; |
| 3101 |
} |
| 3102 |
|
| 3103 |
|
| 3104 |
static int _wrap_librdf_node_get_literal_value_language(lua_State* L) { |
| 3105 |
int SWIG_arg = 0; |
| 3106 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3107 |
char *result = 0 ; |
| 3108 |
|
| 3109 |
SWIG_check_num_args("librdf_node_get_literal_value_language",1,1) |
| 3110 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_language",1,"librdf_node *"); |
| 3111 |
|
| 3112 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3113 |
SWIG_fail_ptr("librdf_node_get_literal_value_language",1,SWIGTYPE_p_librdf_node_s); |
| 3114 |
} |
| 3115 |
|
| 3116 |
result = (char *)librdf_node_get_literal_value_language(arg1); |
| 3117 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3118 |
return SWIG_arg; |
| 3119 |
|
| 3120 |
if(0) SWIG_fail; |
| 3121 |
|
| 3122 |
fail: |
| 3123 |
lua_error(L); |
| 3124 |
return SWIG_arg; |
| 3125 |
} |
| 3126 |
|
| 3127 |
|
| 3128 |
static int _wrap_librdf_node_get_literal_value_datatype_uri(lua_State* L) { |
| 3129 |
int SWIG_arg = 0; |
| 3130 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3131 |
librdf_uri *result = 0 ; |
| 3132 |
|
| 3133 |
SWIG_check_num_args("librdf_node_get_literal_value_datatype_uri",1,1) |
| 3134 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_datatype_uri",1,"librdf_node *"); |
| 3135 |
|
| 3136 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3137 |
SWIG_fail_ptr("librdf_node_get_literal_value_datatype_uri",1,SWIGTYPE_p_librdf_node_s); |
| 3138 |
} |
| 3139 |
|
| 3140 |
result = (librdf_uri *)librdf_node_get_literal_value_datatype_uri(arg1); |
| 3141 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; |
| 3142 |
return SWIG_arg; |
| 3143 |
|
| 3144 |
if(0) SWIG_fail; |
| 3145 |
|
| 3146 |
fail: |
| 3147 |
lua_error(L); |
| 3148 |
return SWIG_arg; |
| 3149 |
} |
| 3150 |
|
| 3151 |
|
| 3152 |
static int _wrap_librdf_node_get_literal_value_is_wf_xml(lua_State* L) { |
| 3153 |
int SWIG_arg = 0; |
| 3154 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3155 |
int result; |
| 3156 |
|
| 3157 |
SWIG_check_num_args("librdf_node_get_literal_value_is_wf_xml",1,1) |
| 3158 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_literal_value_is_wf_xml",1,"librdf_node *"); |
| 3159 |
|
| 3160 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3161 |
SWIG_fail_ptr("librdf_node_get_literal_value_is_wf_xml",1,SWIGTYPE_p_librdf_node_s); |
| 3162 |
} |
| 3163 |
|
| 3164 |
result = (int)librdf_node_get_literal_value_is_wf_xml(arg1); |
| 3165 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3166 |
return SWIG_arg; |
| 3167 |
|
| 3168 |
if(0) SWIG_fail; |
| 3169 |
|
| 3170 |
fail: |
| 3171 |
lua_error(L); |
| 3172 |
return SWIG_arg; |
| 3173 |
} |
| 3174 |
|
| 3175 |
|
| 3176 |
static int _wrap_librdf_node_get_li_ordinal(lua_State* L) { |
| 3177 |
int SWIG_arg = 0; |
| 3178 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3179 |
int result; |
| 3180 |
|
| 3181 |
SWIG_check_num_args("librdf_node_get_li_ordinal",1,1) |
| 3182 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_li_ordinal",1,"librdf_node *"); |
| 3183 |
|
| 3184 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3185 |
SWIG_fail_ptr("librdf_node_get_li_ordinal",1,SWIGTYPE_p_librdf_node_s); |
| 3186 |
} |
| 3187 |
|
| 3188 |
result = (int)librdf_node_get_li_ordinal(arg1); |
| 3189 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3190 |
return SWIG_arg; |
| 3191 |
|
| 3192 |
if(0) SWIG_fail; |
| 3193 |
|
| 3194 |
fail: |
| 3195 |
lua_error(L); |
| 3196 |
return SWIG_arg; |
| 3197 |
} |
| 3198 |
|
| 3199 |
|
| 3200 |
static int _wrap_librdf_node_to_string(lua_State* L) { |
| 3201 |
int SWIG_arg = 0; |
| 3202 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3203 |
char *result = 0 ; |
| 3204 |
|
| 3205 |
SWIG_check_num_args("librdf_node_to_string",1,1) |
| 3206 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_to_string",1,"librdf_node *"); |
| 3207 |
|
| 3208 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3209 |
SWIG_fail_ptr("librdf_node_to_string",1,SWIGTYPE_p_librdf_node_s); |
| 3210 |
} |
| 3211 |
|
| 3212 |
result = (char *)librdf_node_to_string(arg1); |
| 3213 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3214 |
free(result); |
| 3215 |
return SWIG_arg; |
| 3216 |
|
| 3217 |
if(0) SWIG_fail; |
| 3218 |
|
| 3219 |
fail: |
| 3220 |
lua_error(L); |
| 3221 |
return SWIG_arg; |
| 3222 |
} |
| 3223 |
|
| 3224 |
|
| 3225 |
static int _wrap_librdf_node_get_blank_identifier(lua_State* L) { |
| 3226 |
int SWIG_arg = 0; |
| 3227 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3228 |
char *result = 0 ; |
| 3229 |
|
| 3230 |
SWIG_check_num_args("librdf_node_get_blank_identifier",1,1) |
| 3231 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_get_blank_identifier",1,"librdf_node *"); |
| 3232 |
|
| 3233 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3234 |
SWIG_fail_ptr("librdf_node_get_blank_identifier",1,SWIGTYPE_p_librdf_node_s); |
| 3235 |
} |
| 3236 |
|
| 3237 |
result = (char *)librdf_node_get_blank_identifier(arg1); |
| 3238 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3239 |
return SWIG_arg; |
| 3240 |
|
| 3241 |
if(0) SWIG_fail; |
| 3242 |
|
| 3243 |
fail: |
| 3244 |
lua_error(L); |
| 3245 |
return SWIG_arg; |
| 3246 |
} |
| 3247 |
|
| 3248 |
|
| 3249 |
static int _wrap_librdf_node_is_resource(lua_State* L) { |
| 3250 |
int SWIG_arg = 0; |
| 3251 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3252 |
int result; |
| 3253 |
|
| 3254 |
SWIG_check_num_args("librdf_node_is_resource",1,1) |
| 3255 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_resource",1,"librdf_node *"); |
| 3256 |
|
| 3257 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3258 |
SWIG_fail_ptr("librdf_node_is_resource",1,SWIGTYPE_p_librdf_node_s); |
| 3259 |
} |
| 3260 |
|
| 3261 |
result = (int)librdf_node_is_resource(arg1); |
| 3262 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3263 |
return SWIG_arg; |
| 3264 |
|
| 3265 |
if(0) SWIG_fail; |
| 3266 |
|
| 3267 |
fail: |
| 3268 |
lua_error(L); |
| 3269 |
return SWIG_arg; |
| 3270 |
} |
| 3271 |
|
| 3272 |
|
| 3273 |
static int _wrap_librdf_node_is_literal(lua_State* L) { |
| 3274 |
int SWIG_arg = 0; |
| 3275 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3276 |
int result; |
| 3277 |
|
| 3278 |
SWIG_check_num_args("librdf_node_is_literal",1,1) |
| 3279 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_literal",1,"librdf_node *"); |
| 3280 |
|
| 3281 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3282 |
SWIG_fail_ptr("librdf_node_is_literal",1,SWIGTYPE_p_librdf_node_s); |
| 3283 |
} |
| 3284 |
|
| 3285 |
result = (int)librdf_node_is_literal(arg1); |
| 3286 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3287 |
return SWIG_arg; |
| 3288 |
|
| 3289 |
if(0) SWIG_fail; |
| 3290 |
|
| 3291 |
fail: |
| 3292 |
lua_error(L); |
| 3293 |
return SWIG_arg; |
| 3294 |
} |
| 3295 |
|
| 3296 |
|
| 3297 |
static int _wrap_librdf_node_is_blank(lua_State* L) { |
| 3298 |
int SWIG_arg = 0; |
| 3299 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3300 |
int result; |
| 3301 |
|
| 3302 |
SWIG_check_num_args("librdf_node_is_blank",1,1) |
| 3303 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_is_blank",1,"librdf_node *"); |
| 3304 |
|
| 3305 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3306 |
SWIG_fail_ptr("librdf_node_is_blank",1,SWIGTYPE_p_librdf_node_s); |
| 3307 |
} |
| 3308 |
|
| 3309 |
result = (int)librdf_node_is_blank(arg1); |
| 3310 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3311 |
return SWIG_arg; |
| 3312 |
|
| 3313 |
if(0) SWIG_fail; |
| 3314 |
|
| 3315 |
fail: |
| 3316 |
lua_error(L); |
| 3317 |
return SWIG_arg; |
| 3318 |
} |
| 3319 |
|
| 3320 |
|
| 3321 |
static int _wrap_librdf_node_equals(lua_State* L) { |
| 3322 |
int SWIG_arg = 0; |
| 3323 |
librdf_node *arg1 = (librdf_node *) 0 ; |
| 3324 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3325 |
int result; |
| 3326 |
|
| 3327 |
SWIG_check_num_args("librdf_node_equals",2,2) |
| 3328 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_node_equals",1,"librdf_node *"); |
| 3329 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_node_equals",2,"librdf_node *"); |
| 3330 |
|
| 3331 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_node_s,0))){ |
| 3332 |
SWIG_fail_ptr("librdf_node_equals",1,SWIGTYPE_p_librdf_node_s); |
| 3333 |
} |
| 3334 |
|
| 3335 |
|
| 3336 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3337 |
SWIG_fail_ptr("librdf_node_equals",2,SWIGTYPE_p_librdf_node_s); |
| 3338 |
} |
| 3339 |
|
| 3340 |
result = (int)librdf_node_equals(arg1,arg2); |
| 3341 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3342 |
return SWIG_arg; |
| 3343 |
|
| 3344 |
if(0) SWIG_fail; |
| 3345 |
|
| 3346 |
fail: |
| 3347 |
lua_error(L); |
| 3348 |
return SWIG_arg; |
| 3349 |
} |
| 3350 |
|
| 3351 |
|
| 3352 |
static int _wrap_librdf_new_statement(lua_State* L) { |
| 3353 |
int SWIG_arg = 0; |
| 3354 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 3355 |
librdf_statement *result = 0 ; |
| 3356 |
|
| 3357 |
SWIG_check_num_args("librdf_new_statement",1,1) |
| 3358 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement",1,"librdf_world *"); |
| 3359 |
|
| 3360 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 3361 |
SWIG_fail_ptr("librdf_new_statement",1,SWIGTYPE_p_librdf_world_s); |
| 3362 |
} |
| 3363 |
|
| 3364 |
result = (librdf_statement *)librdf_new_statement(arg1); |
| 3365 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; |
| 3366 |
return SWIG_arg; |
| 3367 |
|
| 3368 |
if(0) SWIG_fail; |
| 3369 |
|
| 3370 |
fail: |
| 3371 |
lua_error(L); |
| 3372 |
return SWIG_arg; |
| 3373 |
} |
| 3374 |
|
| 3375 |
|
| 3376 |
static int _wrap_librdf_new_statement_from_statement(lua_State* L) { |
| 3377 |
int SWIG_arg = 0; |
| 3378 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3379 |
librdf_statement *result = 0 ; |
| 3380 |
|
| 3381 |
SWIG_check_num_args("librdf_new_statement_from_statement",1,1) |
| 3382 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement_from_statement",1,"librdf_statement *"); |
| 3383 |
|
| 3384 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3385 |
SWIG_fail_ptr("librdf_new_statement_from_statement",1,SWIGTYPE_p_librdf_statement_s); |
| 3386 |
} |
| 3387 |
|
| 3388 |
result = (librdf_statement *)librdf_new_statement_from_statement(arg1); |
| 3389 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; |
| 3390 |
return SWIG_arg; |
| 3391 |
|
| 3392 |
if(0) SWIG_fail; |
| 3393 |
|
| 3394 |
fail: |
| 3395 |
lua_error(L); |
| 3396 |
return SWIG_arg; |
| 3397 |
} |
| 3398 |
|
| 3399 |
|
| 3400 |
static int _wrap_librdf_new_statement_from_nodes(lua_State* L) { |
| 3401 |
int SWIG_arg = 0; |
| 3402 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 3403 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3404 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 3405 |
librdf_node *arg4 = (librdf_node *) 0 ; |
| 3406 |
librdf_statement *result = 0 ; |
| 3407 |
|
| 3408 |
SWIG_check_num_args("librdf_new_statement_from_nodes",4,4) |
| 3409 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_statement_from_nodes",1,"librdf_world *"); |
| 3410 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_statement_from_nodes",2,"librdf_node *"); |
| 3411 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_statement_from_nodes",3,"librdf_node *"); |
| 3412 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_statement_from_nodes",4,"librdf_node *"); |
| 3413 |
|
| 3414 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 3415 |
SWIG_fail_ptr("librdf_new_statement_from_nodes",1,SWIGTYPE_p_librdf_world_s); |
| 3416 |
} |
| 3417 |
|
| 3418 |
|
| 3419 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3420 |
SWIG_fail_ptr("librdf_new_statement_from_nodes",2,SWIGTYPE_p_librdf_node_s); |
| 3421 |
} |
| 3422 |
|
| 3423 |
|
| 3424 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 3425 |
SWIG_fail_ptr("librdf_new_statement_from_nodes",3,SWIGTYPE_p_librdf_node_s); |
| 3426 |
} |
| 3427 |
|
| 3428 |
|
| 3429 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_node_s,0))){ |
| 3430 |
SWIG_fail_ptr("librdf_new_statement_from_nodes",4,SWIGTYPE_p_librdf_node_s); |
| 3431 |
} |
| 3432 |
|
| 3433 |
result = (librdf_statement *)librdf_new_statement_from_nodes(arg1,arg2,arg3,arg4); |
| 3434 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,1); SWIG_arg++; |
| 3435 |
return SWIG_arg; |
| 3436 |
|
| 3437 |
if(0) SWIG_fail; |
| 3438 |
|
| 3439 |
fail: |
| 3440 |
lua_error(L); |
| 3441 |
return SWIG_arg; |
| 3442 |
} |
| 3443 |
|
| 3444 |
|
| 3445 |
static int _wrap_librdf_free_statement(lua_State* L) { |
| 3446 |
int SWIG_arg = 0; |
| 3447 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3448 |
|
| 3449 |
SWIG_check_num_args("librdf_free_statement",1,1) |
| 3450 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_statement",1,"librdf_statement *"); |
| 3451 |
|
| 3452 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3453 |
SWIG_fail_ptr("librdf_free_statement",1,SWIGTYPE_p_librdf_statement_s); |
| 3454 |
} |
| 3455 |
|
| 3456 |
librdf_free_statement(arg1); |
| 3457 |
|
| 3458 |
return SWIG_arg; |
| 3459 |
|
| 3460 |
if(0) SWIG_fail; |
| 3461 |
|
| 3462 |
fail: |
| 3463 |
lua_error(L); |
| 3464 |
return SWIG_arg; |
| 3465 |
} |
| 3466 |
|
| 3467 |
|
| 3468 |
static int _wrap_librdf_statement_get_subject(lua_State* L) { |
| 3469 |
int SWIG_arg = 0; |
| 3470 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3471 |
librdf_node *result = 0 ; |
| 3472 |
|
| 3473 |
SWIG_check_num_args("librdf_statement_get_subject",1,1) |
| 3474 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_subject",1,"librdf_statement *"); |
| 3475 |
|
| 3476 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3477 |
SWIG_fail_ptr("librdf_statement_get_subject",1,SWIGTYPE_p_librdf_statement_s); |
| 3478 |
} |
| 3479 |
|
| 3480 |
result = (librdf_node *)librdf_statement_get_subject(arg1); |
| 3481 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 3482 |
return SWIG_arg; |
| 3483 |
|
| 3484 |
if(0) SWIG_fail; |
| 3485 |
|
| 3486 |
fail: |
| 3487 |
lua_error(L); |
| 3488 |
return SWIG_arg; |
| 3489 |
} |
| 3490 |
|
| 3491 |
|
| 3492 |
static int _wrap_librdf_statement_set_subject(lua_State* L) { |
| 3493 |
int SWIG_arg = 0; |
| 3494 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3495 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3496 |
|
| 3497 |
SWIG_check_num_args("librdf_statement_set_subject",2,2) |
| 3498 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_subject",1,"librdf_statement *"); |
| 3499 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_subject",2,"librdf_node *"); |
| 3500 |
|
| 3501 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3502 |
SWIG_fail_ptr("librdf_statement_set_subject",1,SWIGTYPE_p_librdf_statement_s); |
| 3503 |
} |
| 3504 |
|
| 3505 |
|
| 3506 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3507 |
SWIG_fail_ptr("librdf_statement_set_subject",2,SWIGTYPE_p_librdf_node_s); |
| 3508 |
} |
| 3509 |
|
| 3510 |
librdf_statement_set_subject(arg1,arg2); |
| 3511 |
|
| 3512 |
return SWIG_arg; |
| 3513 |
|
| 3514 |
if(0) SWIG_fail; |
| 3515 |
|
| 3516 |
fail: |
| 3517 |
lua_error(L); |
| 3518 |
return SWIG_arg; |
| 3519 |
} |
| 3520 |
|
| 3521 |
|
| 3522 |
static int _wrap_librdf_statement_get_predicate(lua_State* L) { |
| 3523 |
int SWIG_arg = 0; |
| 3524 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3525 |
librdf_node *result = 0 ; |
| 3526 |
|
| 3527 |
SWIG_check_num_args("librdf_statement_get_predicate",1,1) |
| 3528 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_predicate",1,"librdf_statement *"); |
| 3529 |
|
| 3530 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3531 |
SWIG_fail_ptr("librdf_statement_get_predicate",1,SWIGTYPE_p_librdf_statement_s); |
| 3532 |
} |
| 3533 |
|
| 3534 |
result = (librdf_node *)librdf_statement_get_predicate(arg1); |
| 3535 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 3536 |
return SWIG_arg; |
| 3537 |
|
| 3538 |
if(0) SWIG_fail; |
| 3539 |
|
| 3540 |
fail: |
| 3541 |
lua_error(L); |
| 3542 |
return SWIG_arg; |
| 3543 |
} |
| 3544 |
|
| 3545 |
|
| 3546 |
static int _wrap_librdf_statement_set_predicate(lua_State* L) { |
| 3547 |
int SWIG_arg = 0; |
| 3548 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3549 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3550 |
|
| 3551 |
SWIG_check_num_args("librdf_statement_set_predicate",2,2) |
| 3552 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_predicate",1,"librdf_statement *"); |
| 3553 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_predicate",2,"librdf_node *"); |
| 3554 |
|
| 3555 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3556 |
SWIG_fail_ptr("librdf_statement_set_predicate",1,SWIGTYPE_p_librdf_statement_s); |
| 3557 |
} |
| 3558 |
|
| 3559 |
|
| 3560 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3561 |
SWIG_fail_ptr("librdf_statement_set_predicate",2,SWIGTYPE_p_librdf_node_s); |
| 3562 |
} |
| 3563 |
|
| 3564 |
librdf_statement_set_predicate(arg1,arg2); |
| 3565 |
|
| 3566 |
return SWIG_arg; |
| 3567 |
|
| 3568 |
if(0) SWIG_fail; |
| 3569 |
|
| 3570 |
fail: |
| 3571 |
lua_error(L); |
| 3572 |
return SWIG_arg; |
| 3573 |
} |
| 3574 |
|
| 3575 |
|
| 3576 |
static int _wrap_librdf_statement_get_object(lua_State* L) { |
| 3577 |
int SWIG_arg = 0; |
| 3578 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3579 |
librdf_node *result = 0 ; |
| 3580 |
|
| 3581 |
SWIG_check_num_args("librdf_statement_get_object",1,1) |
| 3582 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_get_object",1,"librdf_statement *"); |
| 3583 |
|
| 3584 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3585 |
SWIG_fail_ptr("librdf_statement_get_object",1,SWIGTYPE_p_librdf_statement_s); |
| 3586 |
} |
| 3587 |
|
| 3588 |
result = (librdf_node *)librdf_statement_get_object(arg1); |
| 3589 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 3590 |
return SWIG_arg; |
| 3591 |
|
| 3592 |
if(0) SWIG_fail; |
| 3593 |
|
| 3594 |
fail: |
| 3595 |
lua_error(L); |
| 3596 |
return SWIG_arg; |
| 3597 |
} |
| 3598 |
|
| 3599 |
|
| 3600 |
static int _wrap_librdf_statement_set_object(lua_State* L) { |
| 3601 |
int SWIG_arg = 0; |
| 3602 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3603 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3604 |
|
| 3605 |
SWIG_check_num_args("librdf_statement_set_object",2,2) |
| 3606 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_set_object",1,"librdf_statement *"); |
| 3607 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_set_object",2,"librdf_node *"); |
| 3608 |
|
| 3609 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3610 |
SWIG_fail_ptr("librdf_statement_set_object",1,SWIGTYPE_p_librdf_statement_s); |
| 3611 |
} |
| 3612 |
|
| 3613 |
|
| 3614 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3615 |
SWIG_fail_ptr("librdf_statement_set_object",2,SWIGTYPE_p_librdf_node_s); |
| 3616 |
} |
| 3617 |
|
| 3618 |
librdf_statement_set_object(arg1,arg2); |
| 3619 |
|
| 3620 |
return SWIG_arg; |
| 3621 |
|
| 3622 |
if(0) SWIG_fail; |
| 3623 |
|
| 3624 |
fail: |
| 3625 |
lua_error(L); |
| 3626 |
return SWIG_arg; |
| 3627 |
} |
| 3628 |
|
| 3629 |
|
| 3630 |
static int _wrap_librdf_statement_equals(lua_State* L) { |
| 3631 |
int SWIG_arg = 0; |
| 3632 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3633 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 3634 |
int result; |
| 3635 |
|
| 3636 |
SWIG_check_num_args("librdf_statement_equals",2,2) |
| 3637 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_equals",1,"librdf_statement *"); |
| 3638 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_equals",2,"librdf_statement *"); |
| 3639 |
|
| 3640 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3641 |
SWIG_fail_ptr("librdf_statement_equals",1,SWIGTYPE_p_librdf_statement_s); |
| 3642 |
} |
| 3643 |
|
| 3644 |
|
| 3645 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3646 |
SWIG_fail_ptr("librdf_statement_equals",2,SWIGTYPE_p_librdf_statement_s); |
| 3647 |
} |
| 3648 |
|
| 3649 |
result = (int)librdf_statement_equals(arg1,arg2); |
| 3650 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3651 |
return SWIG_arg; |
| 3652 |
|
| 3653 |
if(0) SWIG_fail; |
| 3654 |
|
| 3655 |
fail: |
| 3656 |
lua_error(L); |
| 3657 |
return SWIG_arg; |
| 3658 |
} |
| 3659 |
|
| 3660 |
|
| 3661 |
static int _wrap_librdf_statement_match(lua_State* L) { |
| 3662 |
int SWIG_arg = 0; |
| 3663 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3664 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 3665 |
int result; |
| 3666 |
|
| 3667 |
SWIG_check_num_args("librdf_statement_match",2,2) |
| 3668 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_match",1,"librdf_statement *"); |
| 3669 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_statement_match",2,"librdf_statement *"); |
| 3670 |
|
| 3671 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3672 |
SWIG_fail_ptr("librdf_statement_match",1,SWIGTYPE_p_librdf_statement_s); |
| 3673 |
} |
| 3674 |
|
| 3675 |
|
| 3676 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3677 |
SWIG_fail_ptr("librdf_statement_match",2,SWIGTYPE_p_librdf_statement_s); |
| 3678 |
} |
| 3679 |
|
| 3680 |
result = (int)librdf_statement_match(arg1,arg2); |
| 3681 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3682 |
return SWIG_arg; |
| 3683 |
|
| 3684 |
if(0) SWIG_fail; |
| 3685 |
|
| 3686 |
fail: |
| 3687 |
lua_error(L); |
| 3688 |
return SWIG_arg; |
| 3689 |
} |
| 3690 |
|
| 3691 |
|
| 3692 |
static int _wrap_librdf_statement_to_string(lua_State* L) { |
| 3693 |
int SWIG_arg = 0; |
| 3694 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3695 |
char *result = 0 ; |
| 3696 |
|
| 3697 |
SWIG_check_num_args("librdf_statement_to_string",1,1) |
| 3698 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_to_string",1,"librdf_statement *"); |
| 3699 |
|
| 3700 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3701 |
SWIG_fail_ptr("librdf_statement_to_string",1,SWIGTYPE_p_librdf_statement_s); |
| 3702 |
} |
| 3703 |
|
| 3704 |
result = (char *)librdf_statement_to_string(arg1); |
| 3705 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 3706 |
free(result); |
| 3707 |
return SWIG_arg; |
| 3708 |
|
| 3709 |
if(0) SWIG_fail; |
| 3710 |
|
| 3711 |
fail: |
| 3712 |
lua_error(L); |
| 3713 |
return SWIG_arg; |
| 3714 |
} |
| 3715 |
|
| 3716 |
|
| 3717 |
static int _wrap_librdf_statement_is_complete(lua_State* L) { |
| 3718 |
int SWIG_arg = 0; |
| 3719 |
librdf_statement *arg1 = (librdf_statement *) 0 ; |
| 3720 |
int result; |
| 3721 |
|
| 3722 |
SWIG_check_num_args("librdf_statement_is_complete",1,1) |
| 3723 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_statement_is_complete",1,"librdf_statement *"); |
| 3724 |
|
| 3725 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_statement_s,0))){ |
| 3726 |
SWIG_fail_ptr("librdf_statement_is_complete",1,SWIGTYPE_p_librdf_statement_s); |
| 3727 |
} |
| 3728 |
|
| 3729 |
result = (int)librdf_statement_is_complete(arg1); |
| 3730 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3731 |
return SWIG_arg; |
| 3732 |
|
| 3733 |
if(0) SWIG_fail; |
| 3734 |
|
| 3735 |
fail: |
| 3736 |
lua_error(L); |
| 3737 |
return SWIG_arg; |
| 3738 |
} |
| 3739 |
|
| 3740 |
|
| 3741 |
static int _wrap_librdf_new_model(lua_State* L) { |
| 3742 |
int SWIG_arg = 0; |
| 3743 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 3744 |
librdf_storage *arg2 = (librdf_storage *) 0 ; |
| 3745 |
char *arg3 = (char *) 0 ; |
| 3746 |
librdf_model *result = 0 ; |
| 3747 |
|
| 3748 |
SWIG_check_num_args("librdf_new_model",3,3) |
| 3749 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model",1,"librdf_world *"); |
| 3750 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_model",2,"librdf_storage *"); |
| 3751 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_model",3,"char *"); |
| 3752 |
|
| 3753 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 3754 |
SWIG_fail_ptr("librdf_new_model",1,SWIGTYPE_p_librdf_world_s); |
| 3755 |
} |
| 3756 |
|
| 3757 |
|
| 3758 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_storage_s,0))){ |
| 3759 |
SWIG_fail_ptr("librdf_new_model",2,SWIGTYPE_p_librdf_storage_s); |
| 3760 |
} |
| 3761 |
|
| 3762 |
arg3 = (char *)lua_tostring(L, 3); |
| 3763 |
result = (librdf_model *)librdf_new_model(arg1,arg2,arg3); |
| 3764 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; |
| 3765 |
return SWIG_arg; |
| 3766 |
|
| 3767 |
if(0) SWIG_fail; |
| 3768 |
|
| 3769 |
fail: |
| 3770 |
lua_error(L); |
| 3771 |
return SWIG_arg; |
| 3772 |
} |
| 3773 |
|
| 3774 |
|
| 3775 |
static int _wrap_librdf_new_model_with_options(lua_State* L) { |
| 3776 |
int SWIG_arg = 0; |
| 3777 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 3778 |
librdf_storage *arg2 = (librdf_storage *) 0 ; |
| 3779 |
librdf_hash *arg3 = (librdf_hash *) 0 ; |
| 3780 |
librdf_model *result = 0 ; |
| 3781 |
|
| 3782 |
SWIG_check_num_args("librdf_new_model_with_options",3,3) |
| 3783 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model_with_options",1,"librdf_world *"); |
| 3784 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_model_with_options",2,"librdf_storage *"); |
| 3785 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_model_with_options",3,"librdf_hash *"); |
| 3786 |
|
| 3787 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 3788 |
SWIG_fail_ptr("librdf_new_model_with_options",1,SWIGTYPE_p_librdf_world_s); |
| 3789 |
} |
| 3790 |
|
| 3791 |
|
| 3792 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_storage_s,0))){ |
| 3793 |
SWIG_fail_ptr("librdf_new_model_with_options",2,SWIGTYPE_p_librdf_storage_s); |
| 3794 |
} |
| 3795 |
|
| 3796 |
|
| 3797 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_hash_s,0))){ |
| 3798 |
SWIG_fail_ptr("librdf_new_model_with_options",3,SWIGTYPE_p_librdf_hash_s); |
| 3799 |
} |
| 3800 |
|
| 3801 |
result = (librdf_model *)librdf_new_model_with_options(arg1,arg2,arg3); |
| 3802 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; |
| 3803 |
return SWIG_arg; |
| 3804 |
|
| 3805 |
if(0) SWIG_fail; |
| 3806 |
|
| 3807 |
fail: |
| 3808 |
lua_error(L); |
| 3809 |
return SWIG_arg; |
| 3810 |
} |
| 3811 |
|
| 3812 |
|
| 3813 |
static int _wrap_librdf_new_model_from_model(lua_State* L) { |
| 3814 |
int SWIG_arg = 0; |
| 3815 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3816 |
librdf_model *result = 0 ; |
| 3817 |
|
| 3818 |
SWIG_check_num_args("librdf_new_model_from_model",1,1) |
| 3819 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model_from_model",1,"librdf_model *"); |
| 3820 |
|
| 3821 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3822 |
SWIG_fail_ptr("librdf_new_model_from_model",1,SWIGTYPE_p_librdf_model_s); |
| 3823 |
} |
| 3824 |
|
| 3825 |
result = (librdf_model *)librdf_new_model_from_model(arg1); |
| 3826 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_model_s,1); SWIG_arg++; |
| 3827 |
return SWIG_arg; |
| 3828 |
|
| 3829 |
if(0) SWIG_fail; |
| 3830 |
|
| 3831 |
fail: |
| 3832 |
lua_error(L); |
| 3833 |
return SWIG_arg; |
| 3834 |
} |
| 3835 |
|
| 3836 |
|
| 3837 |
static int _wrap_librdf_free_model(lua_State* L) { |
| 3838 |
int SWIG_arg = 0; |
| 3839 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3840 |
|
| 3841 |
SWIG_check_num_args("librdf_free_model",1,1) |
| 3842 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_model",1,"librdf_model *"); |
| 3843 |
|
| 3844 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3845 |
SWIG_fail_ptr("librdf_free_model",1,SWIGTYPE_p_librdf_model_s); |
| 3846 |
} |
| 3847 |
|
| 3848 |
librdf_free_model(arg1); |
| 3849 |
|
| 3850 |
return SWIG_arg; |
| 3851 |
|
| 3852 |
if(0) SWIG_fail; |
| 3853 |
|
| 3854 |
fail: |
| 3855 |
lua_error(L); |
| 3856 |
return SWIG_arg; |
| 3857 |
} |
| 3858 |
|
| 3859 |
|
| 3860 |
static int _wrap_librdf_model_size(lua_State* L) { |
| 3861 |
int SWIG_arg = 0; |
| 3862 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3863 |
int result; |
| 3864 |
|
| 3865 |
SWIG_check_num_args("librdf_model_size",1,1) |
| 3866 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_size",1,"librdf_model *"); |
| 3867 |
|
| 3868 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3869 |
SWIG_fail_ptr("librdf_model_size",1,SWIGTYPE_p_librdf_model_s); |
| 3870 |
} |
| 3871 |
|
| 3872 |
result = (int)librdf_model_size(arg1); |
| 3873 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3874 |
return SWIG_arg; |
| 3875 |
|
| 3876 |
if(0) SWIG_fail; |
| 3877 |
|
| 3878 |
fail: |
| 3879 |
lua_error(L); |
| 3880 |
return SWIG_arg; |
| 3881 |
} |
| 3882 |
|
| 3883 |
|
| 3884 |
static int _wrap_librdf_model_add(lua_State* L) { |
| 3885 |
int SWIG_arg = 0; |
| 3886 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3887 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3888 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 3889 |
librdf_node *arg4 = (librdf_node *) 0 ; |
| 3890 |
int result; |
| 3891 |
|
| 3892 |
SWIG_check_num_args("librdf_model_add",4,4) |
| 3893 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add",1,"librdf_model *"); |
| 3894 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add",2,"librdf_node *"); |
| 3895 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add",3,"librdf_node *"); |
| 3896 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_model_add",4,"librdf_node *"); |
| 3897 |
|
| 3898 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3899 |
SWIG_fail_ptr("librdf_model_add",1,SWIGTYPE_p_librdf_model_s); |
| 3900 |
} |
| 3901 |
|
| 3902 |
|
| 3903 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3904 |
SWIG_fail_ptr("librdf_model_add",2,SWIGTYPE_p_librdf_node_s); |
| 3905 |
} |
| 3906 |
|
| 3907 |
|
| 3908 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 3909 |
SWIG_fail_ptr("librdf_model_add",3,SWIGTYPE_p_librdf_node_s); |
| 3910 |
} |
| 3911 |
|
| 3912 |
|
| 3913 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_node_s,0))){ |
| 3914 |
SWIG_fail_ptr("librdf_model_add",4,SWIGTYPE_p_librdf_node_s); |
| 3915 |
} |
| 3916 |
|
| 3917 |
result = (int)librdf_model_add(arg1,arg2,arg3,arg4); |
| 3918 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3919 |
return SWIG_arg; |
| 3920 |
|
| 3921 |
if(0) SWIG_fail; |
| 3922 |
|
| 3923 |
fail: |
| 3924 |
lua_error(L); |
| 3925 |
return SWIG_arg; |
| 3926 |
} |
| 3927 |
|
| 3928 |
|
| 3929 |
static int _wrap_librdf_model_add_string_literal_statement(lua_State* L) { |
| 3930 |
int SWIG_arg = 0; |
| 3931 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3932 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3933 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 3934 |
char *arg4 = (char *) 0 ; |
| 3935 |
char *arg5 = (char *) NULL ; |
| 3936 |
int arg6 = (int) 0 ; |
| 3937 |
int result; |
| 3938 |
|
| 3939 |
SWIG_check_num_args("librdf_model_add_string_literal_statement",4,6) |
| 3940 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_string_literal_statement",1,"librdf_model *"); |
| 3941 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_string_literal_statement",2,"librdf_node *"); |
| 3942 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_string_literal_statement",3,"librdf_node *"); |
| 3943 |
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_string_literal_statement",4,"char const *"); |
| 3944 |
if(lua_gettop(L)>=5 && !SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_string_literal_statement",5,"char const *"); |
| 3945 |
if(lua_gettop(L)>=6 && !lua_isnumber(L,6)) SWIG_fail_arg("librdf_model_add_string_literal_statement",6,"int"); |
| 3946 |
|
| 3947 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3948 |
SWIG_fail_ptr("librdf_model_add_string_literal_statement",1,SWIGTYPE_p_librdf_model_s); |
| 3949 |
} |
| 3950 |
|
| 3951 |
|
| 3952 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 3953 |
SWIG_fail_ptr("librdf_model_add_string_literal_statement",2,SWIGTYPE_p_librdf_node_s); |
| 3954 |
} |
| 3955 |
|
| 3956 |
|
| 3957 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 3958 |
SWIG_fail_ptr("librdf_model_add_string_literal_statement",3,SWIGTYPE_p_librdf_node_s); |
| 3959 |
} |
| 3960 |
|
| 3961 |
arg4 = (char *)lua_tostring(L, 4); |
| 3962 |
if(lua_gettop(L)>=5){ |
| 3963 |
arg5 = (char *)lua_tostring(L, 5); |
| 3964 |
} |
| 3965 |
if(lua_gettop(L)>=6){ |
| 3966 |
arg6 = (int)lua_tonumber(L, 6); |
| 3967 |
} |
| 3968 |
result = (int)librdf_model_add_string_literal_statement(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); |
| 3969 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 3970 |
return SWIG_arg; |
| 3971 |
|
| 3972 |
if(0) SWIG_fail; |
| 3973 |
|
| 3974 |
fail: |
| 3975 |
lua_error(L); |
| 3976 |
return SWIG_arg; |
| 3977 |
} |
| 3978 |
|
| 3979 |
|
| 3980 |
static int _wrap_librdf_model_add_typed_literal_statement(lua_State* L) { |
| 3981 |
int SWIG_arg = 0; |
| 3982 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 3983 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 3984 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 3985 |
char *arg4 = (char *) 0 ; |
| 3986 |
char *arg5 = (char *) 0 ; |
| 3987 |
librdf_uri *arg6 = (librdf_uri *) NULL ; |
| 3988 |
int result; |
| 3989 |
|
| 3990 |
SWIG_check_num_args("librdf_model_add_typed_literal_statement",5,6) |
| 3991 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",1,"librdf_model *"); |
| 3992 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",2,"librdf_node *"); |
| 3993 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",3,"librdf_node *"); |
| 3994 |
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",4,"char *"); |
| 3995 |
if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",5,"char *"); |
| 3996 |
if(lua_gettop(L)>=6 && !SWIG_isptrtype(L,6)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",6,"librdf_uri *"); |
| 3997 |
|
| 3998 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 3999 |
SWIG_fail_ptr("librdf_model_add_typed_literal_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4000 |
} |
| 4001 |
|
| 4002 |
|
| 4003 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4004 |
SWIG_fail_ptr("librdf_model_add_typed_literal_statement",2,SWIGTYPE_p_librdf_node_s); |
| 4005 |
} |
| 4006 |
|
| 4007 |
|
| 4008 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4009 |
SWIG_fail_ptr("librdf_model_add_typed_literal_statement",3,SWIGTYPE_p_librdf_node_s); |
| 4010 |
} |
| 4011 |
|
| 4012 |
arg4 = (char *)lua_tostring(L, 4); |
| 4013 |
arg5 = (char *)lua_tostring(L, 5); |
| 4014 |
if(lua_gettop(L)>=6){ |
| 4015 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_librdf_uri_s,0))){ |
| 4016 |
SWIG_fail_ptr("librdf_model_add_typed_literal_statement",6,SWIGTYPE_p_librdf_uri_s); |
| 4017 |
} |
| 4018 |
} |
| 4019 |
result = (int)librdf_model_add_typed_literal_statement(arg1,arg2,arg3,arg4,arg5,arg6); |
| 4020 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4021 |
return SWIG_arg; |
| 4022 |
|
| 4023 |
if(0) SWIG_fail; |
| 4024 |
|
| 4025 |
fail: |
| 4026 |
lua_error(L); |
| 4027 |
return SWIG_arg; |
| 4028 |
} |
| 4029 |
|
| 4030 |
|
| 4031 |
static int _wrap_librdf_model_add_statement(lua_State* L) { |
| 4032 |
int SWIG_arg = 0; |
| 4033 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4034 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 4035 |
int result; |
| 4036 |
|
| 4037 |
SWIG_check_num_args("librdf_model_add_statement",2,2) |
| 4038 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_statement",1,"librdf_model *"); |
| 4039 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_statement",2,"librdf_statement *"); |
| 4040 |
|
| 4041 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4042 |
SWIG_fail_ptr("librdf_model_add_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4043 |
} |
| 4044 |
|
| 4045 |
|
| 4046 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4047 |
SWIG_fail_ptr("librdf_model_add_statement",2,SWIGTYPE_p_librdf_statement_s); |
| 4048 |
} |
| 4049 |
|
| 4050 |
result = (int)librdf_model_add_statement(arg1,arg2); |
| 4051 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4052 |
return SWIG_arg; |
| 4053 |
|
| 4054 |
if(0) SWIG_fail; |
| 4055 |
|
| 4056 |
fail: |
| 4057 |
lua_error(L); |
| 4058 |
return SWIG_arg; |
| 4059 |
} |
| 4060 |
|
| 4061 |
|
| 4062 |
static int _wrap_librdf_model_add_statements(lua_State* L) { |
| 4063 |
int SWIG_arg = 0; |
| 4064 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4065 |
librdf_stream *arg2 = (librdf_stream *) 0 ; |
| 4066 |
int result; |
| 4067 |
|
| 4068 |
SWIG_check_num_args("librdf_model_add_statements",2,2) |
| 4069 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_statements",1,"librdf_model *"); |
| 4070 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_statements",2,"librdf_stream *"); |
| 4071 |
|
| 4072 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4073 |
SWIG_fail_ptr("librdf_model_add_statements",1,SWIGTYPE_p_librdf_model_s); |
| 4074 |
} |
| 4075 |
|
| 4076 |
|
| 4077 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_stream_s,0))){ |
| 4078 |
SWIG_fail_ptr("librdf_model_add_statements",2,SWIGTYPE_p_librdf_stream_s); |
| 4079 |
} |
| 4080 |
|
| 4081 |
result = (int)librdf_model_add_statements(arg1,arg2); |
| 4082 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4083 |
return SWIG_arg; |
| 4084 |
|
| 4085 |
if(0) SWIG_fail; |
| 4086 |
|
| 4087 |
fail: |
| 4088 |
lua_error(L); |
| 4089 |
return SWIG_arg; |
| 4090 |
} |
| 4091 |
|
| 4092 |
|
| 4093 |
static int _wrap_librdf_model_remove_statement(lua_State* L) { |
| 4094 |
int SWIG_arg = 0; |
| 4095 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4096 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 4097 |
int result; |
| 4098 |
|
| 4099 |
SWIG_check_num_args("librdf_model_remove_statement",2,2) |
| 4100 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_remove_statement",1,"librdf_model *"); |
| 4101 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_remove_statement",2,"librdf_statement *"); |
| 4102 |
|
| 4103 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4104 |
SWIG_fail_ptr("librdf_model_remove_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4105 |
} |
| 4106 |
|
| 4107 |
|
| 4108 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4109 |
SWIG_fail_ptr("librdf_model_remove_statement",2,SWIGTYPE_p_librdf_statement_s); |
| 4110 |
} |
| 4111 |
|
| 4112 |
result = (int)librdf_model_remove_statement(arg1,arg2); |
| 4113 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4114 |
return SWIG_arg; |
| 4115 |
|
| 4116 |
if(0) SWIG_fail; |
| 4117 |
|
| 4118 |
fail: |
| 4119 |
lua_error(L); |
| 4120 |
return SWIG_arg; |
| 4121 |
} |
| 4122 |
|
| 4123 |
|
| 4124 |
static int _wrap_librdf_model_contains_statement(lua_State* L) { |
| 4125 |
int SWIG_arg = 0; |
| 4126 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4127 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 4128 |
int result; |
| 4129 |
|
| 4130 |
SWIG_check_num_args("librdf_model_contains_statement",2,2) |
| 4131 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_contains_statement",1,"librdf_model *"); |
| 4132 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_contains_statement",2,"librdf_statement *"); |
| 4133 |
|
| 4134 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4135 |
SWIG_fail_ptr("librdf_model_contains_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4136 |
} |
| 4137 |
|
| 4138 |
|
| 4139 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4140 |
SWIG_fail_ptr("librdf_model_contains_statement",2,SWIGTYPE_p_librdf_statement_s); |
| 4141 |
} |
| 4142 |
|
| 4143 |
result = (int)librdf_model_contains_statement(arg1,arg2); |
| 4144 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4145 |
return SWIG_arg; |
| 4146 |
|
| 4147 |
if(0) SWIG_fail; |
| 4148 |
|
| 4149 |
fail: |
| 4150 |
lua_error(L); |
| 4151 |
return SWIG_arg; |
| 4152 |
} |
| 4153 |
|
| 4154 |
|
| 4155 |
static int _wrap_librdf_model_as_stream(lua_State* L) { |
| 4156 |
int SWIG_arg = 0; |
| 4157 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4158 |
librdf_stream *result = 0 ; |
| 4159 |
|
| 4160 |
SWIG_check_num_args("librdf_model_as_stream",1,1) |
| 4161 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_as_stream",1,"librdf_model *"); |
| 4162 |
|
| 4163 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4164 |
SWIG_fail_ptr("librdf_model_as_stream",1,SWIGTYPE_p_librdf_model_s); |
| 4165 |
} |
| 4166 |
|
| 4167 |
result = (librdf_stream *)librdf_model_as_stream(arg1); |
| 4168 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 4169 |
return SWIG_arg; |
| 4170 |
|
| 4171 |
if(0) SWIG_fail; |
| 4172 |
|
| 4173 |
fail: |
| 4174 |
lua_error(L); |
| 4175 |
return SWIG_arg; |
| 4176 |
} |
| 4177 |
|
| 4178 |
|
| 4179 |
static int _wrap_librdf_model_find_statements(lua_State* L) { |
| 4180 |
int SWIG_arg = 0; |
| 4181 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4182 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 4183 |
librdf_stream *result = 0 ; |
| 4184 |
|
| 4185 |
SWIG_check_num_args("librdf_model_find_statements",2,2) |
| 4186 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_find_statements",1,"librdf_model *"); |
| 4187 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_find_statements",2,"librdf_statement *"); |
| 4188 |
|
| 4189 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4190 |
SWIG_fail_ptr("librdf_model_find_statements",1,SWIGTYPE_p_librdf_model_s); |
| 4191 |
} |
| 4192 |
|
| 4193 |
|
| 4194 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4195 |
SWIG_fail_ptr("librdf_model_find_statements",2,SWIGTYPE_p_librdf_statement_s); |
| 4196 |
} |
| 4197 |
|
| 4198 |
result = (librdf_stream *)librdf_model_find_statements(arg1,arg2); |
| 4199 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 4200 |
return SWIG_arg; |
| 4201 |
|
| 4202 |
if(0) SWIG_fail; |
| 4203 |
|
| 4204 |
fail: |
| 4205 |
lua_error(L); |
| 4206 |
return SWIG_arg; |
| 4207 |
} |
| 4208 |
|
| 4209 |
|
| 4210 |
static int _wrap_librdf_model_find_statements_in_context(lua_State* L) { |
| 4211 |
int SWIG_arg = 0; |
| 4212 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4213 |
librdf_statement *arg2 = (librdf_statement *) 0 ; |
| 4214 |
librdf_node *arg3 = (librdf_node *) NULL ; |
| 4215 |
librdf_stream *result = 0 ; |
| 4216 |
|
| 4217 |
SWIG_check_num_args("librdf_model_find_statements_in_context",2,3) |
| 4218 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_find_statements_in_context",1,"librdf_model *"); |
| 4219 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_find_statements_in_context",2,"librdf_statement *"); |
| 4220 |
if(lua_gettop(L)>=3 && !SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_find_statements_in_context",3,"librdf_node *"); |
| 4221 |
|
| 4222 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4223 |
SWIG_fail_ptr("librdf_model_find_statements_in_context",1,SWIGTYPE_p_librdf_model_s); |
| 4224 |
} |
| 4225 |
|
| 4226 |
|
| 4227 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4228 |
SWIG_fail_ptr("librdf_model_find_statements_in_context",2,SWIGTYPE_p_librdf_statement_s); |
| 4229 |
} |
| 4230 |
|
| 4231 |
if(lua_gettop(L)>=3){ |
| 4232 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4233 |
SWIG_fail_ptr("librdf_model_find_statements_in_context",3,SWIGTYPE_p_librdf_node_s); |
| 4234 |
} |
| 4235 |
} |
| 4236 |
result = (librdf_stream *)librdf_model_find_statements_in_context(arg1,arg2,arg3); |
| 4237 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 4238 |
return SWIG_arg; |
| 4239 |
|
| 4240 |
if(0) SWIG_fail; |
| 4241 |
|
| 4242 |
fail: |
| 4243 |
lua_error(L); |
| 4244 |
return SWIG_arg; |
| 4245 |
} |
| 4246 |
|
| 4247 |
|
| 4248 |
static int _wrap_librdf_model_get_sources(lua_State* L) { |
| 4249 |
int SWIG_arg = 0; |
| 4250 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4251 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4252 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4253 |
librdf_iterator *result = 0 ; |
| 4254 |
|
| 4255 |
SWIG_check_num_args("librdf_model_get_sources",3,3) |
| 4256 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_sources",1,"librdf_model *"); |
| 4257 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_sources",2,"librdf_node *"); |
| 4258 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_sources",3,"librdf_node *"); |
| 4259 |
|
| 4260 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4261 |
SWIG_fail_ptr("librdf_model_get_sources",1,SWIGTYPE_p_librdf_model_s); |
| 4262 |
} |
| 4263 |
|
| 4264 |
|
| 4265 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4266 |
SWIG_fail_ptr("librdf_model_get_sources",2,SWIGTYPE_p_librdf_node_s); |
| 4267 |
} |
| 4268 |
|
| 4269 |
|
| 4270 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4271 |
SWIG_fail_ptr("librdf_model_get_sources",3,SWIGTYPE_p_librdf_node_s); |
| 4272 |
} |
| 4273 |
|
| 4274 |
result = (librdf_iterator *)librdf_model_get_sources(arg1,arg2,arg3); |
| 4275 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4276 |
return SWIG_arg; |
| 4277 |
|
| 4278 |
if(0) SWIG_fail; |
| 4279 |
|
| 4280 |
fail: |
| 4281 |
lua_error(L); |
| 4282 |
return SWIG_arg; |
| 4283 |
} |
| 4284 |
|
| 4285 |
|
| 4286 |
static int _wrap_librdf_model_get_arcs(lua_State* L) { |
| 4287 |
int SWIG_arg = 0; |
| 4288 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4289 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4290 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4291 |
librdf_iterator *result = 0 ; |
| 4292 |
|
| 4293 |
SWIG_check_num_args("librdf_model_get_arcs",3,3) |
| 4294 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs",1,"librdf_model *"); |
| 4295 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs",2,"librdf_node *"); |
| 4296 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_arcs",3,"librdf_node *"); |
| 4297 |
|
| 4298 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4299 |
SWIG_fail_ptr("librdf_model_get_arcs",1,SWIGTYPE_p_librdf_model_s); |
| 4300 |
} |
| 4301 |
|
| 4302 |
|
| 4303 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4304 |
SWIG_fail_ptr("librdf_model_get_arcs",2,SWIGTYPE_p_librdf_node_s); |
| 4305 |
} |
| 4306 |
|
| 4307 |
|
| 4308 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4309 |
SWIG_fail_ptr("librdf_model_get_arcs",3,SWIGTYPE_p_librdf_node_s); |
| 4310 |
} |
| 4311 |
|
| 4312 |
result = (librdf_iterator *)librdf_model_get_arcs(arg1,arg2,arg3); |
| 4313 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4314 |
return SWIG_arg; |
| 4315 |
|
| 4316 |
if(0) SWIG_fail; |
| 4317 |
|
| 4318 |
fail: |
| 4319 |
lua_error(L); |
| 4320 |
return SWIG_arg; |
| 4321 |
} |
| 4322 |
|
| 4323 |
|
| 4324 |
static int _wrap_librdf_model_get_targets(lua_State* L) { |
| 4325 |
int SWIG_arg = 0; |
| 4326 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4327 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4328 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4329 |
librdf_iterator *result = 0 ; |
| 4330 |
|
| 4331 |
SWIG_check_num_args("librdf_model_get_targets",3,3) |
| 4332 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_targets",1,"librdf_model *"); |
| 4333 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_targets",2,"librdf_node *"); |
| 4334 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_targets",3,"librdf_node *"); |
| 4335 |
|
| 4336 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4337 |
SWIG_fail_ptr("librdf_model_get_targets",1,SWIGTYPE_p_librdf_model_s); |
| 4338 |
} |
| 4339 |
|
| 4340 |
|
| 4341 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4342 |
SWIG_fail_ptr("librdf_model_get_targets",2,SWIGTYPE_p_librdf_node_s); |
| 4343 |
} |
| 4344 |
|
| 4345 |
|
| 4346 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4347 |
SWIG_fail_ptr("librdf_model_get_targets",3,SWIGTYPE_p_librdf_node_s); |
| 4348 |
} |
| 4349 |
|
| 4350 |
result = (librdf_iterator *)librdf_model_get_targets(arg1,arg2,arg3); |
| 4351 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4352 |
return SWIG_arg; |
| 4353 |
|
| 4354 |
if(0) SWIG_fail; |
| 4355 |
|
| 4356 |
fail: |
| 4357 |
lua_error(L); |
| 4358 |
return SWIG_arg; |
| 4359 |
} |
| 4360 |
|
| 4361 |
|
| 4362 |
static int _wrap_librdf_model_get_source(lua_State* L) { |
| 4363 |
int SWIG_arg = 0; |
| 4364 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4365 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4366 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4367 |
librdf_node *result = 0 ; |
| 4368 |
|
| 4369 |
SWIG_check_num_args("librdf_model_get_source",3,3) |
| 4370 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_source",1,"librdf_model *"); |
| 4371 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_source",2,"librdf_node *"); |
| 4372 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_source",3,"librdf_node *"); |
| 4373 |
|
| 4374 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4375 |
SWIG_fail_ptr("librdf_model_get_source",1,SWIGTYPE_p_librdf_model_s); |
| 4376 |
} |
| 4377 |
|
| 4378 |
|
| 4379 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4380 |
SWIG_fail_ptr("librdf_model_get_source",2,SWIGTYPE_p_librdf_node_s); |
| 4381 |
} |
| 4382 |
|
| 4383 |
|
| 4384 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4385 |
SWIG_fail_ptr("librdf_model_get_source",3,SWIGTYPE_p_librdf_node_s); |
| 4386 |
} |
| 4387 |
|
| 4388 |
result = (librdf_node *)librdf_model_get_source(arg1,arg2,arg3); |
| 4389 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 4390 |
return SWIG_arg; |
| 4391 |
|
| 4392 |
if(0) SWIG_fail; |
| 4393 |
|
| 4394 |
fail: |
| 4395 |
lua_error(L); |
| 4396 |
return SWIG_arg; |
| 4397 |
} |
| 4398 |
|
| 4399 |
|
| 4400 |
static int _wrap_librdf_model_get_arc(lua_State* L) { |
| 4401 |
int SWIG_arg = 0; |
| 4402 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4403 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4404 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4405 |
librdf_node *result = 0 ; |
| 4406 |
|
| 4407 |
SWIG_check_num_args("librdf_model_get_arc",3,3) |
| 4408 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arc",1,"librdf_model *"); |
| 4409 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arc",2,"librdf_node *"); |
| 4410 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_arc",3,"librdf_node *"); |
| 4411 |
|
| 4412 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4413 |
SWIG_fail_ptr("librdf_model_get_arc",1,SWIGTYPE_p_librdf_model_s); |
| 4414 |
} |
| 4415 |
|
| 4416 |
|
| 4417 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4418 |
SWIG_fail_ptr("librdf_model_get_arc",2,SWIGTYPE_p_librdf_node_s); |
| 4419 |
} |
| 4420 |
|
| 4421 |
|
| 4422 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4423 |
SWIG_fail_ptr("librdf_model_get_arc",3,SWIGTYPE_p_librdf_node_s); |
| 4424 |
} |
| 4425 |
|
| 4426 |
result = (librdf_node *)librdf_model_get_arc(arg1,arg2,arg3); |
| 4427 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 4428 |
return SWIG_arg; |
| 4429 |
|
| 4430 |
if(0) SWIG_fail; |
| 4431 |
|
| 4432 |
fail: |
| 4433 |
lua_error(L); |
| 4434 |
return SWIG_arg; |
| 4435 |
} |
| 4436 |
|
| 4437 |
|
| 4438 |
static int _wrap_librdf_model_get_arcs_out(lua_State* L) { |
| 4439 |
int SWIG_arg = 0; |
| 4440 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4441 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4442 |
librdf_iterator *result = 0 ; |
| 4443 |
|
| 4444 |
SWIG_check_num_args("librdf_model_get_arcs_out",2,2) |
| 4445 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs_out",1,"librdf_model *"); |
| 4446 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs_out",2,"librdf_node *"); |
| 4447 |
|
| 4448 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4449 |
SWIG_fail_ptr("librdf_model_get_arcs_out",1,SWIGTYPE_p_librdf_model_s); |
| 4450 |
} |
| 4451 |
|
| 4452 |
|
| 4453 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4454 |
SWIG_fail_ptr("librdf_model_get_arcs_out",2,SWIGTYPE_p_librdf_node_s); |
| 4455 |
} |
| 4456 |
|
| 4457 |
result = (librdf_iterator *)librdf_model_get_arcs_out(arg1,arg2); |
| 4458 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4459 |
return SWIG_arg; |
| 4460 |
|
| 4461 |
if(0) SWIG_fail; |
| 4462 |
|
| 4463 |
fail: |
| 4464 |
lua_error(L); |
| 4465 |
return SWIG_arg; |
| 4466 |
} |
| 4467 |
|
| 4468 |
|
| 4469 |
static int _wrap_librdf_model_get_arcs_in(lua_State* L) { |
| 4470 |
int SWIG_arg = 0; |
| 4471 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4472 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4473 |
librdf_iterator *result = 0 ; |
| 4474 |
|
| 4475 |
SWIG_check_num_args("librdf_model_get_arcs_in",2,2) |
| 4476 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_arcs_in",1,"librdf_model *"); |
| 4477 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_arcs_in",2,"librdf_node *"); |
| 4478 |
|
| 4479 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4480 |
SWIG_fail_ptr("librdf_model_get_arcs_in",1,SWIGTYPE_p_librdf_model_s); |
| 4481 |
} |
| 4482 |
|
| 4483 |
|
| 4484 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4485 |
SWIG_fail_ptr("librdf_model_get_arcs_in",2,SWIGTYPE_p_librdf_node_s); |
| 4486 |
} |
| 4487 |
|
| 4488 |
result = (librdf_iterator *)librdf_model_get_arcs_in(arg1,arg2); |
| 4489 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4490 |
return SWIG_arg; |
| 4491 |
|
| 4492 |
if(0) SWIG_fail; |
| 4493 |
|
| 4494 |
fail: |
| 4495 |
lua_error(L); |
| 4496 |
return SWIG_arg; |
| 4497 |
} |
| 4498 |
|
| 4499 |
|
| 4500 |
static int _wrap_librdf_model_has_arc_in(lua_State* L) { |
| 4501 |
int SWIG_arg = 0; |
| 4502 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4503 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4504 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4505 |
int result; |
| 4506 |
|
| 4507 |
SWIG_check_num_args("librdf_model_has_arc_in",3,3) |
| 4508 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_has_arc_in",1,"librdf_model *"); |
| 4509 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_has_arc_in",2,"librdf_node *"); |
| 4510 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_has_arc_in",3,"librdf_node *"); |
| 4511 |
|
| 4512 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4513 |
SWIG_fail_ptr("librdf_model_has_arc_in",1,SWIGTYPE_p_librdf_model_s); |
| 4514 |
} |
| 4515 |
|
| 4516 |
|
| 4517 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4518 |
SWIG_fail_ptr("librdf_model_has_arc_in",2,SWIGTYPE_p_librdf_node_s); |
| 4519 |
} |
| 4520 |
|
| 4521 |
|
| 4522 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4523 |
SWIG_fail_ptr("librdf_model_has_arc_in",3,SWIGTYPE_p_librdf_node_s); |
| 4524 |
} |
| 4525 |
|
| 4526 |
result = (int)librdf_model_has_arc_in(arg1,arg2,arg3); |
| 4527 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4528 |
return SWIG_arg; |
| 4529 |
|
| 4530 |
if(0) SWIG_fail; |
| 4531 |
|
| 4532 |
fail: |
| 4533 |
lua_error(L); |
| 4534 |
return SWIG_arg; |
| 4535 |
} |
| 4536 |
|
| 4537 |
|
| 4538 |
static int _wrap_librdf_model_has_arc_out(lua_State* L) { |
| 4539 |
int SWIG_arg = 0; |
| 4540 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4541 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4542 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4543 |
int result; |
| 4544 |
|
| 4545 |
SWIG_check_num_args("librdf_model_has_arc_out",3,3) |
| 4546 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_has_arc_out",1,"librdf_model *"); |
| 4547 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_has_arc_out",2,"librdf_node *"); |
| 4548 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_has_arc_out",3,"librdf_node *"); |
| 4549 |
|
| 4550 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4551 |
SWIG_fail_ptr("librdf_model_has_arc_out",1,SWIGTYPE_p_librdf_model_s); |
| 4552 |
} |
| 4553 |
|
| 4554 |
|
| 4555 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4556 |
SWIG_fail_ptr("librdf_model_has_arc_out",2,SWIGTYPE_p_librdf_node_s); |
| 4557 |
} |
| 4558 |
|
| 4559 |
|
| 4560 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4561 |
SWIG_fail_ptr("librdf_model_has_arc_out",3,SWIGTYPE_p_librdf_node_s); |
| 4562 |
} |
| 4563 |
|
| 4564 |
result = (int)librdf_model_has_arc_out(arg1,arg2,arg3); |
| 4565 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4566 |
return SWIG_arg; |
| 4567 |
|
| 4568 |
if(0) SWIG_fail; |
| 4569 |
|
| 4570 |
fail: |
| 4571 |
lua_error(L); |
| 4572 |
return SWIG_arg; |
| 4573 |
} |
| 4574 |
|
| 4575 |
|
| 4576 |
static int _wrap_librdf_model_get_target(lua_State* L) { |
| 4577 |
int SWIG_arg = 0; |
| 4578 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4579 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4580 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4581 |
librdf_node *result = 0 ; |
| 4582 |
|
| 4583 |
SWIG_check_num_args("librdf_model_get_target",3,3) |
| 4584 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_target",1,"librdf_model *"); |
| 4585 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_target",2,"librdf_node *"); |
| 4586 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_get_target",3,"librdf_node *"); |
| 4587 |
|
| 4588 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4589 |
SWIG_fail_ptr("librdf_model_get_target",1,SWIGTYPE_p_librdf_model_s); |
| 4590 |
} |
| 4591 |
|
| 4592 |
|
| 4593 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4594 |
SWIG_fail_ptr("librdf_model_get_target",2,SWIGTYPE_p_librdf_node_s); |
| 4595 |
} |
| 4596 |
|
| 4597 |
|
| 4598 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4599 |
SWIG_fail_ptr("librdf_model_get_target",3,SWIGTYPE_p_librdf_node_s); |
| 4600 |
} |
| 4601 |
|
| 4602 |
result = (librdf_node *)librdf_model_get_target(arg1,arg2,arg3); |
| 4603 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 4604 |
return SWIG_arg; |
| 4605 |
|
| 4606 |
if(0) SWIG_fail; |
| 4607 |
|
| 4608 |
fail: |
| 4609 |
lua_error(L); |
| 4610 |
return SWIG_arg; |
| 4611 |
} |
| 4612 |
|
| 4613 |
|
| 4614 |
static int _wrap_librdf_model_context_add_statement(lua_State* L) { |
| 4615 |
int SWIG_arg = 0; |
| 4616 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4617 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4618 |
librdf_statement *arg3 = (librdf_statement *) 0 ; |
| 4619 |
int result; |
| 4620 |
|
| 4621 |
SWIG_check_num_args("librdf_model_context_add_statement",3,3) |
| 4622 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_add_statement",1,"librdf_model *"); |
| 4623 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_add_statement",2,"librdf_node *"); |
| 4624 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_add_statement",3,"librdf_statement *"); |
| 4625 |
|
| 4626 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4627 |
SWIG_fail_ptr("librdf_model_context_add_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4628 |
} |
| 4629 |
|
| 4630 |
|
| 4631 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4632 |
SWIG_fail_ptr("librdf_model_context_add_statement",2,SWIGTYPE_p_librdf_node_s); |
| 4633 |
} |
| 4634 |
|
| 4635 |
|
| 4636 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4637 |
SWIG_fail_ptr("librdf_model_context_add_statement",3,SWIGTYPE_p_librdf_statement_s); |
| 4638 |
} |
| 4639 |
|
| 4640 |
result = (int)librdf_model_context_add_statement(arg1,arg2,arg3); |
| 4641 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4642 |
return SWIG_arg; |
| 4643 |
|
| 4644 |
if(0) SWIG_fail; |
| 4645 |
|
| 4646 |
fail: |
| 4647 |
lua_error(L); |
| 4648 |
return SWIG_arg; |
| 4649 |
} |
| 4650 |
|
| 4651 |
|
| 4652 |
static int _wrap_librdf_model_context_add_statements(lua_State* L) { |
| 4653 |
int SWIG_arg = 0; |
| 4654 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4655 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4656 |
librdf_stream *arg3 = (librdf_stream *) 0 ; |
| 4657 |
int result; |
| 4658 |
|
| 4659 |
SWIG_check_num_args("librdf_model_context_add_statements",3,3) |
| 4660 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_add_statements",1,"librdf_model *"); |
| 4661 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_add_statements",2,"librdf_node *"); |
| 4662 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_add_statements",3,"librdf_stream *"); |
| 4663 |
|
| 4664 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4665 |
SWIG_fail_ptr("librdf_model_context_add_statements",1,SWIGTYPE_p_librdf_model_s); |
| 4666 |
} |
| 4667 |
|
| 4668 |
|
| 4669 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4670 |
SWIG_fail_ptr("librdf_model_context_add_statements",2,SWIGTYPE_p_librdf_node_s); |
| 4671 |
} |
| 4672 |
|
| 4673 |
|
| 4674 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_stream_s,0))){ |
| 4675 |
SWIG_fail_ptr("librdf_model_context_add_statements",3,SWIGTYPE_p_librdf_stream_s); |
| 4676 |
} |
| 4677 |
|
| 4678 |
result = (int)librdf_model_context_add_statements(arg1,arg2,arg3); |
| 4679 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4680 |
return SWIG_arg; |
| 4681 |
|
| 4682 |
if(0) SWIG_fail; |
| 4683 |
|
| 4684 |
fail: |
| 4685 |
lua_error(L); |
| 4686 |
return SWIG_arg; |
| 4687 |
} |
| 4688 |
|
| 4689 |
|
| 4690 |
static int _wrap_librdf_model_context_remove_statement(lua_State* L) { |
| 4691 |
int SWIG_arg = 0; |
| 4692 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4693 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4694 |
librdf_statement *arg3 = (librdf_statement *) 0 ; |
| 4695 |
int result; |
| 4696 |
|
| 4697 |
SWIG_check_num_args("librdf_model_context_remove_statement",3,3) |
| 4698 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_remove_statement",1,"librdf_model *"); |
| 4699 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_remove_statement",2,"librdf_node *"); |
| 4700 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_context_remove_statement",3,"librdf_statement *"); |
| 4701 |
|
| 4702 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4703 |
SWIG_fail_ptr("librdf_model_context_remove_statement",1,SWIGTYPE_p_librdf_model_s); |
| 4704 |
} |
| 4705 |
|
| 4706 |
|
| 4707 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4708 |
SWIG_fail_ptr("librdf_model_context_remove_statement",2,SWIGTYPE_p_librdf_node_s); |
| 4709 |
} |
| 4710 |
|
| 4711 |
|
| 4712 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_statement_s,0))){ |
| 4713 |
SWIG_fail_ptr("librdf_model_context_remove_statement",3,SWIGTYPE_p_librdf_statement_s); |
| 4714 |
} |
| 4715 |
|
| 4716 |
result = (int)librdf_model_context_remove_statement(arg1,arg2,arg3); |
| 4717 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4718 |
return SWIG_arg; |
| 4719 |
|
| 4720 |
if(0) SWIG_fail; |
| 4721 |
|
| 4722 |
fail: |
| 4723 |
lua_error(L); |
| 4724 |
return SWIG_arg; |
| 4725 |
} |
| 4726 |
|
| 4727 |
|
| 4728 |
static int _wrap_librdf_model_context_remove_statements(lua_State* L) { |
| 4729 |
int SWIG_arg = 0; |
| 4730 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4731 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4732 |
int result; |
| 4733 |
|
| 4734 |
SWIG_check_num_args("librdf_model_context_remove_statements",2,2) |
| 4735 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_remove_statements",1,"librdf_model *"); |
| 4736 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_remove_statements",2,"librdf_node *"); |
| 4737 |
|
| 4738 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4739 |
SWIG_fail_ptr("librdf_model_context_remove_statements",1,SWIGTYPE_p_librdf_model_s); |
| 4740 |
} |
| 4741 |
|
| 4742 |
|
| 4743 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4744 |
SWIG_fail_ptr("librdf_model_context_remove_statements",2,SWIGTYPE_p_librdf_node_s); |
| 4745 |
} |
| 4746 |
|
| 4747 |
result = (int)librdf_model_context_remove_statements(arg1,arg2); |
| 4748 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4749 |
return SWIG_arg; |
| 4750 |
|
| 4751 |
if(0) SWIG_fail; |
| 4752 |
|
| 4753 |
fail: |
| 4754 |
lua_error(L); |
| 4755 |
return SWIG_arg; |
| 4756 |
} |
| 4757 |
|
| 4758 |
|
| 4759 |
static int _wrap_librdf_model_context_as_stream(lua_State* L) { |
| 4760 |
int SWIG_arg = 0; |
| 4761 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4762 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4763 |
librdf_stream *result = 0 ; |
| 4764 |
|
| 4765 |
SWIG_check_num_args("librdf_model_context_as_stream",2,2) |
| 4766 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_context_as_stream",1,"librdf_model *"); |
| 4767 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_context_as_stream",2,"librdf_node *"); |
| 4768 |
|
| 4769 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4770 |
SWIG_fail_ptr("librdf_model_context_as_stream",1,SWIGTYPE_p_librdf_model_s); |
| 4771 |
} |
| 4772 |
|
| 4773 |
|
| 4774 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4775 |
SWIG_fail_ptr("librdf_model_context_as_stream",2,SWIGTYPE_p_librdf_node_s); |
| 4776 |
} |
| 4777 |
|
| 4778 |
result = (librdf_stream *)librdf_model_context_as_stream(arg1,arg2); |
| 4779 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 4780 |
return SWIG_arg; |
| 4781 |
|
| 4782 |
if(0) SWIG_fail; |
| 4783 |
|
| 4784 |
fail: |
| 4785 |
lua_error(L); |
| 4786 |
return SWIG_arg; |
| 4787 |
} |
| 4788 |
|
| 4789 |
|
| 4790 |
static int _wrap_librdf_model_sync(lua_State* L) { |
| 4791 |
int SWIG_arg = 0; |
| 4792 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4793 |
|
| 4794 |
SWIG_check_num_args("librdf_model_sync",1,1) |
| 4795 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_sync",1,"librdf_model *"); |
| 4796 |
|
| 4797 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4798 |
SWIG_fail_ptr("librdf_model_sync",1,SWIGTYPE_p_librdf_model_s); |
| 4799 |
} |
| 4800 |
|
| 4801 |
librdf_model_sync(arg1); |
| 4802 |
|
| 4803 |
return SWIG_arg; |
| 4804 |
|
| 4805 |
if(0) SWIG_fail; |
| 4806 |
|
| 4807 |
fail: |
| 4808 |
lua_error(L); |
| 4809 |
return SWIG_arg; |
| 4810 |
} |
| 4811 |
|
| 4812 |
|
| 4813 |
static int _wrap_librdf_model_get_contexts(lua_State* L) { |
| 4814 |
int SWIG_arg = 0; |
| 4815 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4816 |
librdf_iterator *result = 0 ; |
| 4817 |
|
| 4818 |
SWIG_check_num_args("librdf_model_get_contexts",1,1) |
| 4819 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_contexts",1,"librdf_model *"); |
| 4820 |
|
| 4821 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4822 |
SWIG_fail_ptr("librdf_model_get_contexts",1,SWIGTYPE_p_librdf_model_s); |
| 4823 |
} |
| 4824 |
|
| 4825 |
result = (librdf_iterator *)librdf_model_get_contexts(arg1); |
| 4826 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_iterator_s,1); SWIG_arg++; |
| 4827 |
return SWIG_arg; |
| 4828 |
|
| 4829 |
if(0) SWIG_fail; |
| 4830 |
|
| 4831 |
fail: |
| 4832 |
lua_error(L); |
| 4833 |
return SWIG_arg; |
| 4834 |
} |
| 4835 |
|
| 4836 |
|
| 4837 |
static int _wrap_librdf_model_contains_context(lua_State* L) { |
| 4838 |
int SWIG_arg = 0; |
| 4839 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4840 |
librdf_node *arg2 = (librdf_node *) 0 ; |
| 4841 |
int result; |
| 4842 |
|
| 4843 |
SWIG_check_num_args("librdf_model_contains_context",2,2) |
| 4844 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_contains_context",1,"librdf_model *"); |
| 4845 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_contains_context",2,"librdf_node *"); |
| 4846 |
|
| 4847 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4848 |
SWIG_fail_ptr("librdf_model_contains_context",1,SWIGTYPE_p_librdf_model_s); |
| 4849 |
} |
| 4850 |
|
| 4851 |
|
| 4852 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_node_s,0))){ |
| 4853 |
SWIG_fail_ptr("librdf_model_contains_context",2,SWIGTYPE_p_librdf_node_s); |
| 4854 |
} |
| 4855 |
|
| 4856 |
result = (int)librdf_model_contains_context(arg1,arg2); |
| 4857 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4858 |
return SWIG_arg; |
| 4859 |
|
| 4860 |
if(0) SWIG_fail; |
| 4861 |
|
| 4862 |
fail: |
| 4863 |
lua_error(L); |
| 4864 |
return SWIG_arg; |
| 4865 |
} |
| 4866 |
|
| 4867 |
|
| 4868 |
static int _wrap_librdf_model_get_feature(lua_State* L) { |
| 4869 |
int SWIG_arg = 0; |
| 4870 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4871 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 4872 |
librdf_node *result = 0 ; |
| 4873 |
|
| 4874 |
SWIG_check_num_args("librdf_model_get_feature",2,2) |
| 4875 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_get_feature",1,"librdf_model *"); |
| 4876 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_get_feature",2,"librdf_uri *"); |
| 4877 |
|
| 4878 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4879 |
SWIG_fail_ptr("librdf_model_get_feature",1,SWIGTYPE_p_librdf_model_s); |
| 4880 |
} |
| 4881 |
|
| 4882 |
|
| 4883 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 4884 |
SWIG_fail_ptr("librdf_model_get_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 4885 |
} |
| 4886 |
|
| 4887 |
result = (librdf_node *)librdf_model_get_feature(arg1,arg2); |
| 4888 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 4889 |
return SWIG_arg; |
| 4890 |
|
| 4891 |
if(0) SWIG_fail; |
| 4892 |
|
| 4893 |
fail: |
| 4894 |
lua_error(L); |
| 4895 |
return SWIG_arg; |
| 4896 |
} |
| 4897 |
|
| 4898 |
|
| 4899 |
static int _wrap_librdf_model_set_feature(lua_State* L) { |
| 4900 |
int SWIG_arg = 0; |
| 4901 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4902 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 4903 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 4904 |
int result; |
| 4905 |
|
| 4906 |
SWIG_check_num_args("librdf_model_set_feature",3,3) |
| 4907 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_set_feature",1,"librdf_model *"); |
| 4908 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_set_feature",2,"librdf_uri *"); |
| 4909 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_set_feature",3,"librdf_node *"); |
| 4910 |
|
| 4911 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4912 |
SWIG_fail_ptr("librdf_model_set_feature",1,SWIGTYPE_p_librdf_model_s); |
| 4913 |
} |
| 4914 |
|
| 4915 |
|
| 4916 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 4917 |
SWIG_fail_ptr("librdf_model_set_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 4918 |
} |
| 4919 |
|
| 4920 |
|
| 4921 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 4922 |
SWIG_fail_ptr("librdf_model_set_feature",3,SWIGTYPE_p_librdf_node_s); |
| 4923 |
} |
| 4924 |
|
| 4925 |
result = (int)librdf_model_set_feature(arg1,arg2,arg3); |
| 4926 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4927 |
return SWIG_arg; |
| 4928 |
|
| 4929 |
if(0) SWIG_fail; |
| 4930 |
|
| 4931 |
fail: |
| 4932 |
lua_error(L); |
| 4933 |
return SWIG_arg; |
| 4934 |
} |
| 4935 |
|
| 4936 |
|
| 4937 |
static int _wrap_librdf_model_load(lua_State* L) { |
| 4938 |
int SWIG_arg = 0; |
| 4939 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4940 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 4941 |
char *arg3 = (char *) NULL ; |
| 4942 |
char *arg4 = (char *) NULL ; |
| 4943 |
librdf_uri *arg5 = (librdf_uri *) NULL ; |
| 4944 |
int result; |
| 4945 |
|
| 4946 |
SWIG_check_num_args("librdf_model_load",2,5) |
| 4947 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_load",1,"librdf_model *"); |
| 4948 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_load",2,"librdf_uri *"); |
| 4949 |
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_load",3,"char const *"); |
| 4950 |
if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_load",4,"char const *"); |
| 4951 |
if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_load",5,"librdf_uri *"); |
| 4952 |
|
| 4953 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4954 |
SWIG_fail_ptr("librdf_model_load",1,SWIGTYPE_p_librdf_model_s); |
| 4955 |
} |
| 4956 |
|
| 4957 |
|
| 4958 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 4959 |
SWIG_fail_ptr("librdf_model_load",2,SWIGTYPE_p_librdf_uri_s); |
| 4960 |
} |
| 4961 |
|
| 4962 |
if(lua_gettop(L)>=3){ |
| 4963 |
arg3 = (char *)lua_tostring(L, 3); |
| 4964 |
} |
| 4965 |
if(lua_gettop(L)>=4){ |
| 4966 |
arg4 = (char *)lua_tostring(L, 4); |
| 4967 |
} |
| 4968 |
if(lua_gettop(L)>=5){ |
| 4969 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ |
| 4970 |
SWIG_fail_ptr("librdf_model_load",5,SWIGTYPE_p_librdf_uri_s); |
| 4971 |
} |
| 4972 |
} |
| 4973 |
result = (int)librdf_model_load(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); |
| 4974 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 4975 |
return SWIG_arg; |
| 4976 |
|
| 4977 |
if(0) SWIG_fail; |
| 4978 |
|
| 4979 |
fail: |
| 4980 |
lua_error(L); |
| 4981 |
return SWIG_arg; |
| 4982 |
} |
| 4983 |
|
| 4984 |
|
| 4985 |
static int _wrap_librdf_model_query_execute(lua_State* L) { |
| 4986 |
int SWIG_arg = 0; |
| 4987 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 4988 |
librdf_query *arg2 = (librdf_query *) 0 ; |
| 4989 |
librdf_query_results *result = 0 ; |
| 4990 |
|
| 4991 |
SWIG_check_num_args("librdf_model_query_execute",2,2) |
| 4992 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_query_execute",1,"librdf_model *"); |
| 4993 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_query_execute",2,"librdf_query *"); |
| 4994 |
|
| 4995 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 4996 |
SWIG_fail_ptr("librdf_model_query_execute",1,SWIGTYPE_p_librdf_model_s); |
| 4997 |
} |
| 4998 |
|
| 4999 |
|
| 5000 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_query,0))){ |
| 5001 |
SWIG_fail_ptr("librdf_model_query_execute",2,SWIGTYPE_p_librdf_query); |
| 5002 |
} |
| 5003 |
|
| 5004 |
result = (librdf_query_results *)librdf_model_query_execute(arg1,arg2); |
| 5005 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query_results,1); SWIG_arg++; |
| 5006 |
return SWIG_arg; |
| 5007 |
|
| 5008 |
if(0) SWIG_fail; |
| 5009 |
|
| 5010 |
fail: |
| 5011 |
lua_error(L); |
| 5012 |
return SWIG_arg; |
| 5013 |
} |
| 5014 |
|
| 5015 |
|
| 5016 |
static int _wrap_librdf_model_to_string(lua_State* L) { |
| 5017 |
int SWIG_arg = 0; |
| 5018 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 5019 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 5020 |
char *arg3 = (char *) NULL ; |
| 5021 |
char *arg4 = (char *) NULL ; |
| 5022 |
librdf_uri *arg5 = (librdf_uri *) NULL ; |
| 5023 |
char *result = 0 ; |
| 5024 |
|
| 5025 |
SWIG_check_num_args("librdf_model_to_string",2,5) |
| 5026 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_to_string",1,"librdf_model *"); |
| 5027 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_to_string",2,"librdf_uri *"); |
| 5028 |
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_to_string",3,"char const *"); |
| 5029 |
if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_to_string",4,"char const *"); |
| 5030 |
if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_to_string",5,"librdf_uri *"); |
| 5031 |
|
| 5032 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 5033 |
SWIG_fail_ptr("librdf_model_to_string",1,SWIGTYPE_p_librdf_model_s); |
| 5034 |
} |
| 5035 |
|
| 5036 |
|
| 5037 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5038 |
SWIG_fail_ptr("librdf_model_to_string",2,SWIGTYPE_p_librdf_uri_s); |
| 5039 |
} |
| 5040 |
|
| 5041 |
if(lua_gettop(L)>=3){ |
| 5042 |
arg3 = (char *)lua_tostring(L, 3); |
| 5043 |
} |
| 5044 |
if(lua_gettop(L)>=4){ |
| 5045 |
arg4 = (char *)lua_tostring(L, 4); |
| 5046 |
} |
| 5047 |
if(lua_gettop(L)>=5){ |
| 5048 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5049 |
SWIG_fail_ptr("librdf_model_to_string",5,SWIGTYPE_p_librdf_uri_s); |
| 5050 |
} |
| 5051 |
} |
| 5052 |
result = (char *)librdf_model_to_string(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); |
| 5053 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 5054 |
free(result); |
| 5055 |
return SWIG_arg; |
| 5056 |
|
| 5057 |
if(0) SWIG_fail; |
| 5058 |
|
| 5059 |
fail: |
| 5060 |
lua_error(L); |
| 5061 |
return SWIG_arg; |
| 5062 |
} |
| 5063 |
|
| 5064 |
|
| 5065 |
static int _wrap_librdf_model_transaction_start(lua_State* L) { |
| 5066 |
int SWIG_arg = 0; |
| 5067 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 5068 |
int result; |
| 5069 |
|
| 5070 |
SWIG_check_num_args("librdf_model_transaction_start",1,1) |
| 5071 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_start",1,"librdf_model *"); |
| 5072 |
|
| 5073 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 5074 |
SWIG_fail_ptr("librdf_model_transaction_start",1,SWIGTYPE_p_librdf_model_s); |
| 5075 |
} |
| 5076 |
|
| 5077 |
result = (int)librdf_model_transaction_start(arg1); |
| 5078 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5079 |
return SWIG_arg; |
| 5080 |
|
| 5081 |
if(0) SWIG_fail; |
| 5082 |
|
| 5083 |
fail: |
| 5084 |
lua_error(L); |
| 5085 |
return SWIG_arg; |
| 5086 |
} |
| 5087 |
|
| 5088 |
|
| 5089 |
static int _wrap_librdf_model_transaction_commit(lua_State* L) { |
| 5090 |
int SWIG_arg = 0; |
| 5091 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 5092 |
int result; |
| 5093 |
|
| 5094 |
SWIG_check_num_args("librdf_model_transaction_commit",1,1) |
| 5095 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_commit",1,"librdf_model *"); |
| 5096 |
|
| 5097 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 5098 |
SWIG_fail_ptr("librdf_model_transaction_commit",1,SWIGTYPE_p_librdf_model_s); |
| 5099 |
} |
| 5100 |
|
| 5101 |
result = (int)librdf_model_transaction_commit(arg1); |
| 5102 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5103 |
return SWIG_arg; |
| 5104 |
|
| 5105 |
if(0) SWIG_fail; |
| 5106 |
|
| 5107 |
fail: |
| 5108 |
lua_error(L); |
| 5109 |
return SWIG_arg; |
| 5110 |
} |
| 5111 |
|
| 5112 |
|
| 5113 |
static int _wrap_librdf_model_transaction_rollback(lua_State* L) { |
| 5114 |
int SWIG_arg = 0; |
| 5115 |
librdf_model *arg1 = (librdf_model *) 0 ; |
| 5116 |
int result; |
| 5117 |
|
| 5118 |
SWIG_check_num_args("librdf_model_transaction_rollback",1,1) |
| 5119 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_transaction_rollback",1,"librdf_model *"); |
| 5120 |
|
| 5121 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){ |
| 5122 |
SWIG_fail_ptr("librdf_model_transaction_rollback",1,SWIGTYPE_p_librdf_model_s); |
| 5123 |
} |
| 5124 |
|
| 5125 |
result = (int)librdf_model_transaction_rollback(arg1); |
| 5126 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5127 |
return SWIG_arg; |
| 5128 |
|
| 5129 |
if(0) SWIG_fail; |
| 5130 |
|
| 5131 |
fail: |
| 5132 |
lua_error(L); |
| 5133 |
return SWIG_arg; |
| 5134 |
} |
| 5135 |
|
| 5136 |
|
| 5137 |
static int _wrap_librdf_new_storage(lua_State* L) { |
| 5138 |
int SWIG_arg = 0; |
| 5139 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 5140 |
char *arg2 = (char *) 0 ; |
| 5141 |
char *arg3 = (char *) 0 ; |
| 5142 |
char *arg4 = (char *) 0 ; |
| 5143 |
librdf_storage *result = 0 ; |
| 5144 |
|
| 5145 |
SWIG_check_num_args("librdf_new_storage",4,4) |
| 5146 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_storage",1,"librdf_world *"); |
| 5147 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_storage",2,"char *"); |
| 5148 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_storage",3,"char *"); |
| 5149 |
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_storage",4,"char *"); |
| 5150 |
|
| 5151 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 5152 |
SWIG_fail_ptr("librdf_new_storage",1,SWIGTYPE_p_librdf_world_s); |
| 5153 |
} |
| 5154 |
|
| 5155 |
arg2 = (char *)lua_tostring(L, 2); |
| 5156 |
arg3 = (char *)lua_tostring(L, 3); |
| 5157 |
arg4 = (char *)lua_tostring(L, 4); |
| 5158 |
result = (librdf_storage *)librdf_new_storage(arg1,arg2,arg3,arg4); |
| 5159 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_storage_s,1); SWIG_arg++; |
| 5160 |
return SWIG_arg; |
| 5161 |
|
| 5162 |
if(0) SWIG_fail; |
| 5163 |
|
| 5164 |
fail: |
| 5165 |
lua_error(L); |
| 5166 |
return SWIG_arg; |
| 5167 |
} |
| 5168 |
|
| 5169 |
|
| 5170 |
static int _wrap_librdf_new_storage_from_storage(lua_State* L) { |
| 5171 |
int SWIG_arg = 0; |
| 5172 |
librdf_storage *arg1 = (librdf_storage *) 0 ; |
| 5173 |
librdf_storage *result = 0 ; |
| 5174 |
|
| 5175 |
SWIG_check_num_args("librdf_new_storage_from_storage",1,1) |
| 5176 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_storage_from_storage",1,"librdf_storage *"); |
| 5177 |
|
| 5178 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_storage_s,0))){ |
| 5179 |
SWIG_fail_ptr("librdf_new_storage_from_storage",1,SWIGTYPE_p_librdf_storage_s); |
| 5180 |
} |
| 5181 |
|
| 5182 |
result = (librdf_storage *)librdf_new_storage_from_storage(arg1); |
| 5183 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_storage_s,1); SWIG_arg++; |
| 5184 |
return SWIG_arg; |
| 5185 |
|
| 5186 |
if(0) SWIG_fail; |
| 5187 |
|
| 5188 |
fail: |
| 5189 |
lua_error(L); |
| 5190 |
return SWIG_arg; |
| 5191 |
} |
| 5192 |
|
| 5193 |
|
| 5194 |
static int _wrap_librdf_free_storage(lua_State* L) { |
| 5195 |
int SWIG_arg = 0; |
| 5196 |
librdf_storage *arg1 = (librdf_storage *) 0 ; |
| 5197 |
|
| 5198 |
SWIG_check_num_args("librdf_free_storage",1,1) |
| 5199 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_storage",1,"librdf_storage *"); |
| 5200 |
|
| 5201 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_storage_s,0))){ |
| 5202 |
SWIG_fail_ptr("librdf_free_storage",1,SWIGTYPE_p_librdf_storage_s); |
| 5203 |
} |
| 5204 |
|
| 5205 |
librdf_free_storage(arg1); |
| 5206 |
|
| 5207 |
return SWIG_arg; |
| 5208 |
|
| 5209 |
if(0) SWIG_fail; |
| 5210 |
|
| 5211 |
fail: |
| 5212 |
lua_error(L); |
| 5213 |
return SWIG_arg; |
| 5214 |
} |
| 5215 |
|
| 5216 |
|
| 5217 |
static int _wrap_librdf_parser_check_name(lua_State* L) { |
| 5218 |
int SWIG_arg = 0; |
| 5219 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 5220 |
char *arg2 = (char *) 0 ; |
| 5221 |
int result; |
| 5222 |
|
| 5223 |
SWIG_check_num_args("librdf_parser_check_name",2,2) |
| 5224 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_check_name",1,"librdf_world *"); |
| 5225 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_check_name",2,"char const *"); |
| 5226 |
|
| 5227 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 5228 |
SWIG_fail_ptr("librdf_parser_check_name",1,SWIGTYPE_p_librdf_world_s); |
| 5229 |
} |
| 5230 |
|
| 5231 |
arg2 = (char *)lua_tostring(L, 2); |
| 5232 |
result = (int)librdf_parser_check_name(arg1,(char const *)arg2); |
| 5233 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5234 |
return SWIG_arg; |
| 5235 |
|
| 5236 |
if(0) SWIG_fail; |
| 5237 |
|
| 5238 |
fail: |
| 5239 |
lua_error(L); |
| 5240 |
return SWIG_arg; |
| 5241 |
} |
| 5242 |
|
| 5243 |
|
| 5244 |
static int _wrap_librdf_new_parser(lua_State* L) { |
| 5245 |
int SWIG_arg = 0; |
| 5246 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 5247 |
char *arg2 = (char *) 0 ; |
| 5248 |
char *arg3 = (char *) 0 ; |
| 5249 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 5250 |
librdf_parser *result = 0 ; |
| 5251 |
|
| 5252 |
SWIG_check_num_args("librdf_new_parser",4,4) |
| 5253 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_parser",1,"librdf_world *"); |
| 5254 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_parser",2,"char const *"); |
| 5255 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_parser",3,"char const *"); |
| 5256 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_parser",4,"librdf_uri *"); |
| 5257 |
|
| 5258 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 5259 |
SWIG_fail_ptr("librdf_new_parser",1,SWIGTYPE_p_librdf_world_s); |
| 5260 |
} |
| 5261 |
|
| 5262 |
arg2 = (char *)lua_tostring(L, 2); |
| 5263 |
arg3 = (char *)lua_tostring(L, 3); |
| 5264 |
|
| 5265 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5266 |
SWIG_fail_ptr("librdf_new_parser",4,SWIGTYPE_p_librdf_uri_s); |
| 5267 |
} |
| 5268 |
|
| 5269 |
result = (librdf_parser *)librdf_new_parser(arg1,(char const *)arg2,(char const *)arg3,arg4); |
| 5270 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_parser_s,1); SWIG_arg++; |
| 5271 |
return SWIG_arg; |
| 5272 |
|
| 5273 |
if(0) SWIG_fail; |
| 5274 |
|
| 5275 |
fail: |
| 5276 |
lua_error(L); |
| 5277 |
return SWIG_arg; |
| 5278 |
} |
| 5279 |
|
| 5280 |
|
| 5281 |
static int _wrap_librdf_free_parser(lua_State* L) { |
| 5282 |
int SWIG_arg = 0; |
| 5283 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5284 |
|
| 5285 |
SWIG_check_num_args("librdf_free_parser",1,1) |
| 5286 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_parser",1,"librdf_parser *"); |
| 5287 |
|
| 5288 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5289 |
SWIG_fail_ptr("librdf_free_parser",1,SWIGTYPE_p_librdf_parser_s); |
| 5290 |
} |
| 5291 |
|
| 5292 |
librdf_free_parser(arg1); |
| 5293 |
|
| 5294 |
return SWIG_arg; |
| 5295 |
|
| 5296 |
if(0) SWIG_fail; |
| 5297 |
|
| 5298 |
fail: |
| 5299 |
lua_error(L); |
| 5300 |
return SWIG_arg; |
| 5301 |
} |
| 5302 |
|
| 5303 |
|
| 5304 |
static int _wrap_librdf_parser_parse_as_stream(lua_State* L) { |
| 5305 |
int SWIG_arg = 0; |
| 5306 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5307 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 5308 |
librdf_uri *arg3 = (librdf_uri *) NULL ; |
| 5309 |
librdf_stream *result = 0 ; |
| 5310 |
|
| 5311 |
SWIG_check_num_args("librdf_parser_parse_as_stream",2,3) |
| 5312 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_as_stream",1,"librdf_parser *"); |
| 5313 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_parse_as_stream",2,"librdf_uri *"); |
| 5314 |
if(lua_gettop(L)>=3 && !SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_as_stream",3,"librdf_uri *"); |
| 5315 |
|
| 5316 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5317 |
SWIG_fail_ptr("librdf_parser_parse_as_stream",1,SWIGTYPE_p_librdf_parser_s); |
| 5318 |
} |
| 5319 |
|
| 5320 |
|
| 5321 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5322 |
SWIG_fail_ptr("librdf_parser_parse_as_stream",2,SWIGTYPE_p_librdf_uri_s); |
| 5323 |
} |
| 5324 |
|
| 5325 |
if(lua_gettop(L)>=3){ |
| 5326 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5327 |
SWIG_fail_ptr("librdf_parser_parse_as_stream",3,SWIGTYPE_p_librdf_uri_s); |
| 5328 |
} |
| 5329 |
} |
| 5330 |
result = (librdf_stream *)librdf_parser_parse_as_stream(arg1,arg2,arg3); |
| 5331 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 5332 |
return SWIG_arg; |
| 5333 |
|
| 5334 |
if(0) SWIG_fail; |
| 5335 |
|
| 5336 |
fail: |
| 5337 |
lua_error(L); |
| 5338 |
return SWIG_arg; |
| 5339 |
} |
| 5340 |
|
| 5341 |
|
| 5342 |
static int _wrap_librdf_parser_parse_into_model(lua_State* L) { |
| 5343 |
int SWIG_arg = 0; |
| 5344 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5345 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 5346 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 5347 |
librdf_model *arg4 = (librdf_model *) 0 ; |
| 5348 |
int result; |
| 5349 |
|
| 5350 |
SWIG_check_num_args("librdf_parser_parse_into_model",4,4) |
| 5351 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_into_model",1,"librdf_parser *"); |
| 5352 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_parse_into_model",2,"librdf_uri *"); |
| 5353 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_into_model",3,"librdf_uri *"); |
| 5354 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_into_model",4,"librdf_model *"); |
| 5355 |
|
| 5356 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5357 |
SWIG_fail_ptr("librdf_parser_parse_into_model",1,SWIGTYPE_p_librdf_parser_s); |
| 5358 |
} |
| 5359 |
|
| 5360 |
|
| 5361 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5362 |
SWIG_fail_ptr("librdf_parser_parse_into_model",2,SWIGTYPE_p_librdf_uri_s); |
| 5363 |
} |
| 5364 |
|
| 5365 |
|
| 5366 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5367 |
SWIG_fail_ptr("librdf_parser_parse_into_model",3,SWIGTYPE_p_librdf_uri_s); |
| 5368 |
} |
| 5369 |
|
| 5370 |
|
| 5371 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ |
| 5372 |
SWIG_fail_ptr("librdf_parser_parse_into_model",4,SWIGTYPE_p_librdf_model_s); |
| 5373 |
} |
| 5374 |
|
| 5375 |
result = (int)librdf_parser_parse_into_model(arg1,arg2,arg3,arg4); |
| 5376 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5377 |
return SWIG_arg; |
| 5378 |
|
| 5379 |
if(0) SWIG_fail; |
| 5380 |
|
| 5381 |
fail: |
| 5382 |
lua_error(L); |
| 5383 |
return SWIG_arg; |
| 5384 |
} |
| 5385 |
|
| 5386 |
|
| 5387 |
static int _wrap_librdf_parser_parse_string_as_stream(lua_State* L) { |
| 5388 |
int SWIG_arg = 0; |
| 5389 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5390 |
char *arg2 = (char *) 0 ; |
| 5391 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 5392 |
librdf_stream *result = 0 ; |
| 5393 |
|
| 5394 |
SWIG_check_num_args("librdf_parser_parse_string_as_stream",3,3) |
| 5395 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",1,"librdf_parser *"); |
| 5396 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",2,"char const *"); |
| 5397 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",3,"librdf_uri *"); |
| 5398 |
|
| 5399 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5400 |
SWIG_fail_ptr("librdf_parser_parse_string_as_stream",1,SWIGTYPE_p_librdf_parser_s); |
| 5401 |
} |
| 5402 |
|
| 5403 |
arg2 = (char *)lua_tostring(L, 2); |
| 5404 |
|
| 5405 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5406 |
SWIG_fail_ptr("librdf_parser_parse_string_as_stream",3,SWIGTYPE_p_librdf_uri_s); |
| 5407 |
} |
| 5408 |
|
| 5409 |
result = (librdf_stream *)librdf_parser_parse_string_as_stream(arg1,(char const *)arg2,arg3); |
| 5410 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 5411 |
return SWIG_arg; |
| 5412 |
|
| 5413 |
if(0) SWIG_fail; |
| 5414 |
|
| 5415 |
fail: |
| 5416 |
lua_error(L); |
| 5417 |
return SWIG_arg; |
| 5418 |
} |
| 5419 |
|
| 5420 |
|
| 5421 |
static int _wrap_librdf_parser_parse_string_into_model(lua_State* L) { |
| 5422 |
int SWIG_arg = 0; |
| 5423 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5424 |
char *arg2 = (char *) 0 ; |
| 5425 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 5426 |
librdf_model *arg4 = (librdf_model *) 0 ; |
| 5427 |
int result; |
| 5428 |
|
| 5429 |
SWIG_check_num_args("librdf_parser_parse_string_into_model",4,4) |
| 5430 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_into_model",1,"librdf_parser *"); |
| 5431 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_into_model",2,"char const *"); |
| 5432 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_into_model",3,"librdf_uri *"); |
| 5433 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_string_into_model",4,"librdf_model *"); |
| 5434 |
|
| 5435 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5436 |
SWIG_fail_ptr("librdf_parser_parse_string_into_model",1,SWIGTYPE_p_librdf_parser_s); |
| 5437 |
} |
| 5438 |
|
| 5439 |
arg2 = (char *)lua_tostring(L, 2); |
| 5440 |
|
| 5441 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5442 |
SWIG_fail_ptr("librdf_parser_parse_string_into_model",3,SWIGTYPE_p_librdf_uri_s); |
| 5443 |
} |
| 5444 |
|
| 5445 |
|
| 5446 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ |
| 5447 |
SWIG_fail_ptr("librdf_parser_parse_string_into_model",4,SWIGTYPE_p_librdf_model_s); |
| 5448 |
} |
| 5449 |
|
| 5450 |
result = (int)librdf_parser_parse_string_into_model(arg1,(char const *)arg2,arg3,arg4); |
| 5451 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5452 |
return SWIG_arg; |
| 5453 |
|
| 5454 |
if(0) SWIG_fail; |
| 5455 |
|
| 5456 |
fail: |
| 5457 |
lua_error(L); |
| 5458 |
return SWIG_arg; |
| 5459 |
} |
| 5460 |
|
| 5461 |
|
| 5462 |
static int _wrap_librdf_parser_parse_counted_string_as_stream(lua_State* L) { |
| 5463 |
int SWIG_arg = 0; |
| 5464 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5465 |
char *arg2 = (char *) 0 ; |
| 5466 |
size_t arg3 ; |
| 5467 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 5468 |
librdf_stream *result = 0 ; |
| 5469 |
|
| 5470 |
SWIG_check_num_args("librdf_parser_parse_counted_string_as_stream",4,4) |
| 5471 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",1,"librdf_parser *"); |
| 5472 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",2,"char const *"); |
| 5473 |
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",3,"size_t"); |
| 5474 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",4,"librdf_uri *"); |
| 5475 |
|
| 5476 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5477 |
SWIG_fail_ptr("librdf_parser_parse_counted_string_as_stream",1,SWIGTYPE_p_librdf_parser_s); |
| 5478 |
} |
| 5479 |
|
| 5480 |
arg2 = (char *)lua_tostring(L, 2); |
| 5481 |
SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") |
| 5482 |
arg3 = (size_t)lua_tonumber(L, 3); |
| 5483 |
|
| 5484 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5485 |
SWIG_fail_ptr("librdf_parser_parse_counted_string_as_stream",4,SWIGTYPE_p_librdf_uri_s); |
| 5486 |
} |
| 5487 |
|
| 5488 |
result = (librdf_stream *)librdf_parser_parse_counted_string_as_stream(arg1,(char const *)arg2,arg3,arg4); |
| 5489 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,0); SWIG_arg++; |
| 5490 |
return SWIG_arg; |
| 5491 |
|
| 5492 |
if(0) SWIG_fail; |
| 5493 |
|
| 5494 |
fail: |
| 5495 |
lua_error(L); |
| 5496 |
return SWIG_arg; |
| 5497 |
} |
| 5498 |
|
| 5499 |
|
| 5500 |
static int _wrap_librdf_parser_parse_counted_string_into_model(lua_State* L) { |
| 5501 |
int SWIG_arg = 0; |
| 5502 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5503 |
char *arg2 = (char *) 0 ; |
| 5504 |
size_t arg3 ; |
| 5505 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 5506 |
librdf_model *arg5 = (librdf_model *) 0 ; |
| 5507 |
int result; |
| 5508 |
|
| 5509 |
SWIG_check_num_args("librdf_parser_parse_counted_string_into_model",5,5) |
| 5510 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",1,"librdf_parser *"); |
| 5511 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",2,"char const *"); |
| 5512 |
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",3,"size_t"); |
| 5513 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",4,"librdf_uri *"); |
| 5514 |
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",5,"librdf_model *"); |
| 5515 |
|
| 5516 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5517 |
SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",1,SWIGTYPE_p_librdf_parser_s); |
| 5518 |
} |
| 5519 |
|
| 5520 |
arg2 = (char *)lua_tostring(L, 2); |
| 5521 |
SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") |
| 5522 |
arg3 = (size_t)lua_tonumber(L, 3); |
| 5523 |
|
| 5524 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5525 |
SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",4,SWIGTYPE_p_librdf_uri_s); |
| 5526 |
} |
| 5527 |
|
| 5528 |
|
| 5529 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_model_s,0))){ |
| 5530 |
SWIG_fail_ptr("librdf_parser_parse_counted_string_into_model",5,SWIGTYPE_p_librdf_model_s); |
| 5531 |
} |
| 5532 |
|
| 5533 |
result = (int)librdf_parser_parse_counted_string_into_model(arg1,(char const *)arg2,arg3,arg4,arg5); |
| 5534 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5535 |
return SWIG_arg; |
| 5536 |
|
| 5537 |
if(0) SWIG_fail; |
| 5538 |
|
| 5539 |
fail: |
| 5540 |
lua_error(L); |
| 5541 |
return SWIG_arg; |
| 5542 |
} |
| 5543 |
|
| 5544 |
|
| 5545 |
static int _wrap_librdf_parser_get_feature(lua_State* L) { |
| 5546 |
int SWIG_arg = 0; |
| 5547 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5548 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 5549 |
librdf_node *result = 0 ; |
| 5550 |
|
| 5551 |
SWIG_check_num_args("librdf_parser_get_feature",2,2) |
| 5552 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_feature",1,"librdf_parser *"); |
| 5553 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_get_feature",2,"librdf_uri *"); |
| 5554 |
|
| 5555 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5556 |
SWIG_fail_ptr("librdf_parser_get_feature",1,SWIGTYPE_p_librdf_parser_s); |
| 5557 |
} |
| 5558 |
|
| 5559 |
|
| 5560 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5561 |
SWIG_fail_ptr("librdf_parser_get_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 5562 |
} |
| 5563 |
|
| 5564 |
result = (librdf_node *)librdf_parser_get_feature(arg1,arg2); |
| 5565 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 5566 |
return SWIG_arg; |
| 5567 |
|
| 5568 |
if(0) SWIG_fail; |
| 5569 |
|
| 5570 |
fail: |
| 5571 |
lua_error(L); |
| 5572 |
return SWIG_arg; |
| 5573 |
} |
| 5574 |
|
| 5575 |
|
| 5576 |
static int _wrap_librdf_parser_set_feature(lua_State* L) { |
| 5577 |
int SWIG_arg = 0; |
| 5578 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5579 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 5580 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 5581 |
int result; |
| 5582 |
|
| 5583 |
SWIG_check_num_args("librdf_parser_set_feature",3,3) |
| 5584 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_set_feature",1,"librdf_parser *"); |
| 5585 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_parser_set_feature",2,"librdf_uri *"); |
| 5586 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_set_feature",3,"librdf_node *"); |
| 5587 |
|
| 5588 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5589 |
SWIG_fail_ptr("librdf_parser_set_feature",1,SWIGTYPE_p_librdf_parser_s); |
| 5590 |
} |
| 5591 |
|
| 5592 |
|
| 5593 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5594 |
SWIG_fail_ptr("librdf_parser_set_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 5595 |
} |
| 5596 |
|
| 5597 |
|
| 5598 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 5599 |
SWIG_fail_ptr("librdf_parser_set_feature",3,SWIGTYPE_p_librdf_node_s); |
| 5600 |
} |
| 5601 |
|
| 5602 |
result = (int)librdf_parser_set_feature(arg1,arg2,arg3); |
| 5603 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5604 |
return SWIG_arg; |
| 5605 |
|
| 5606 |
if(0) SWIG_fail; |
| 5607 |
|
| 5608 |
fail: |
| 5609 |
lua_error(L); |
| 5610 |
return SWIG_arg; |
| 5611 |
} |
| 5612 |
|
| 5613 |
|
| 5614 |
static int _wrap_librdf_parser_guess_name(lua_State* L) { |
| 5615 |
int SWIG_arg = 0; |
| 5616 |
char *arg1 = (char *) 0 ; |
| 5617 |
char *arg2 = (char *) 0 ; |
| 5618 |
char *arg3 = (char *) 0 ; |
| 5619 |
char *result = 0 ; |
| 5620 |
|
| 5621 |
SWIG_check_num_args("librdf_parser_guess_name",3,3) |
| 5622 |
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("librdf_parser_guess_name",1,"char const *"); |
| 5623 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name",2,"char const *"); |
| 5624 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name",3,"char const *"); |
| 5625 |
arg1 = (char *)lua_tostring(L, 1); |
| 5626 |
arg2 = (char *)lua_tostring(L, 2); |
| 5627 |
arg3 = (char *)lua_tostring(L, 3); |
| 5628 |
result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3); |
| 5629 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 5630 |
return SWIG_arg; |
| 5631 |
|
| 5632 |
if(0) SWIG_fail; |
| 5633 |
|
| 5634 |
fail: |
| 5635 |
lua_error(L); |
| 5636 |
return SWIG_arg; |
| 5637 |
} |
| 5638 |
|
| 5639 |
|
| 5640 |
static int _wrap_librdf_parser_guess_name2(lua_State* L) { |
| 5641 |
int SWIG_arg = 0; |
| 5642 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 5643 |
char *arg2 = (char *) 0 ; |
| 5644 |
char *arg3 = (char *) 0 ; |
| 5645 |
char *arg4 = (char *) 0 ; |
| 5646 |
char *result = 0 ; |
| 5647 |
|
| 5648 |
SWIG_check_num_args("librdf_parser_guess_name2",4,4) |
| 5649 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_guess_name2",1,"librdf_world *"); |
| 5650 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name2",2,"char const *"); |
| 5651 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name2",3,"char const *"); |
| 5652 |
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_parser_guess_name2",4,"char const *"); |
| 5653 |
|
| 5654 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 5655 |
SWIG_fail_ptr("librdf_parser_guess_name2",1,SWIGTYPE_p_librdf_world_s); |
| 5656 |
} |
| 5657 |
|
| 5658 |
arg2 = (char *)lua_tostring(L, 2); |
| 5659 |
arg3 = (char *)lua_tostring(L, 3); |
| 5660 |
arg4 = (char *)lua_tostring(L, 4); |
| 5661 |
result = (char *)librdf_parser_guess_name2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); |
| 5662 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 5663 |
return SWIG_arg; |
| 5664 |
|
| 5665 |
if(0) SWIG_fail; |
| 5666 |
|
| 5667 |
fail: |
| 5668 |
lua_error(L); |
| 5669 |
return SWIG_arg; |
| 5670 |
} |
| 5671 |
|
| 5672 |
|
| 5673 |
static int _wrap_librdf_parser_get_namespaces_seen_prefix(lua_State* L) { |
| 5674 |
int SWIG_arg = 0; |
| 5675 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5676 |
int arg2 ; |
| 5677 |
char *result = 0 ; |
| 5678 |
|
| 5679 |
SWIG_check_num_args("librdf_parser_get_namespaces_seen_prefix",2,2) |
| 5680 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_prefix",1,"librdf_parser *"); |
| 5681 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_prefix",2,"int"); |
| 5682 |
|
| 5683 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5684 |
SWIG_fail_ptr("librdf_parser_get_namespaces_seen_prefix",1,SWIGTYPE_p_librdf_parser_s); |
| 5685 |
} |
| 5686 |
|
| 5687 |
arg2 = (int)lua_tonumber(L, 2); |
| 5688 |
result = (char *)librdf_parser_get_namespaces_seen_prefix(arg1,arg2); |
| 5689 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 5690 |
return SWIG_arg; |
| 5691 |
|
| 5692 |
if(0) SWIG_fail; |
| 5693 |
|
| 5694 |
fail: |
| 5695 |
lua_error(L); |
| 5696 |
return SWIG_arg; |
| 5697 |
} |
| 5698 |
|
| 5699 |
|
| 5700 |
static int _wrap_librdf_parser_get_namespaces_seen_uri(lua_State* L) { |
| 5701 |
int SWIG_arg = 0; |
| 5702 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5703 |
int arg2 ; |
| 5704 |
librdf_uri *result = 0 ; |
| 5705 |
|
| 5706 |
SWIG_check_num_args("librdf_parser_get_namespaces_seen_uri",2,2) |
| 5707 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_uri",1,"librdf_parser *"); |
| 5708 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_uri",2,"int"); |
| 5709 |
|
| 5710 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5711 |
SWIG_fail_ptr("librdf_parser_get_namespaces_seen_uri",1,SWIGTYPE_p_librdf_parser_s); |
| 5712 |
} |
| 5713 |
|
| 5714 |
arg2 = (int)lua_tonumber(L, 2); |
| 5715 |
result = (librdf_uri *)librdf_parser_get_namespaces_seen_uri(arg1,arg2); |
| 5716 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_uri_s,0); SWIG_arg++; |
| 5717 |
return SWIG_arg; |
| 5718 |
|
| 5719 |
if(0) SWIG_fail; |
| 5720 |
|
| 5721 |
fail: |
| 5722 |
lua_error(L); |
| 5723 |
return SWIG_arg; |
| 5724 |
} |
| 5725 |
|
| 5726 |
|
| 5727 |
static int _wrap_librdf_parser_get_namespaces_seen_count(lua_State* L) { |
| 5728 |
int SWIG_arg = 0; |
| 5729 |
librdf_parser *arg1 = (librdf_parser *) 0 ; |
| 5730 |
int result; |
| 5731 |
|
| 5732 |
SWIG_check_num_args("librdf_parser_get_namespaces_seen_count",1,1) |
| 5733 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_get_namespaces_seen_count",1,"librdf_parser *"); |
| 5734 |
|
| 5735 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){ |
| 5736 |
SWIG_fail_ptr("librdf_parser_get_namespaces_seen_count",1,SWIGTYPE_p_librdf_parser_s); |
| 5737 |
} |
| 5738 |
|
| 5739 |
result = (int)librdf_parser_get_namespaces_seen_count(arg1); |
| 5740 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5741 |
return SWIG_arg; |
| 5742 |
|
| 5743 |
if(0) SWIG_fail; |
| 5744 |
|
| 5745 |
fail: |
| 5746 |
lua_error(L); |
| 5747 |
return SWIG_arg; |
| 5748 |
} |
| 5749 |
|
| 5750 |
|
| 5751 |
static int _wrap_librdf_new_query(lua_State* L) { |
| 5752 |
int SWIG_arg = 0; |
| 5753 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 5754 |
char *arg2 = (char *) 0 ; |
| 5755 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 5756 |
char *arg4 = (char *) 0 ; |
| 5757 |
librdf_uri *arg5 = (librdf_uri *) 0 ; |
| 5758 |
librdf_query *result = 0 ; |
| 5759 |
|
| 5760 |
SWIG_check_num_args("librdf_new_query",5,5) |
| 5761 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_query",1,"librdf_world *"); |
| 5762 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_query",2,"char const *"); |
| 5763 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_query",3,"librdf_uri *"); |
| 5764 |
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_query",4,"char const *"); |
| 5765 |
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_new_query",5,"librdf_uri *"); |
| 5766 |
|
| 5767 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 5768 |
SWIG_fail_ptr("librdf_new_query",1,SWIGTYPE_p_librdf_world_s); |
| 5769 |
} |
| 5770 |
|
| 5771 |
arg2 = (char *)lua_tostring(L, 2); |
| 5772 |
|
| 5773 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5774 |
SWIG_fail_ptr("librdf_new_query",3,SWIGTYPE_p_librdf_uri_s); |
| 5775 |
} |
| 5776 |
|
| 5777 |
arg4 = (char *)lua_tostring(L, 4); |
| 5778 |
|
| 5779 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ |
| 5780 |
SWIG_fail_ptr("librdf_new_query",5,SWIGTYPE_p_librdf_uri_s); |
| 5781 |
} |
| 5782 |
|
| 5783 |
result = (librdf_query *)librdf_new_query(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5); |
| 5784 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query,1); SWIG_arg++; |
| 5785 |
return SWIG_arg; |
| 5786 |
|
| 5787 |
if(0) SWIG_fail; |
| 5788 |
|
| 5789 |
fail: |
| 5790 |
lua_error(L); |
| 5791 |
return SWIG_arg; |
| 5792 |
} |
| 5793 |
|
| 5794 |
|
| 5795 |
static int _wrap_librdf_new_query_from_query(lua_State* L) { |
| 5796 |
int SWIG_arg = 0; |
| 5797 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5798 |
librdf_query *result = 0 ; |
| 5799 |
|
| 5800 |
SWIG_check_num_args("librdf_new_query_from_query",1,1) |
| 5801 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_query_from_query",1,"librdf_query *"); |
| 5802 |
|
| 5803 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5804 |
SWIG_fail_ptr("librdf_new_query_from_query",1,SWIGTYPE_p_librdf_query); |
| 5805 |
} |
| 5806 |
|
| 5807 |
result = (librdf_query *)librdf_new_query_from_query(arg1); |
| 5808 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query,1); SWIG_arg++; |
| 5809 |
return SWIG_arg; |
| 5810 |
|
| 5811 |
if(0) SWIG_fail; |
| 5812 |
|
| 5813 |
fail: |
| 5814 |
lua_error(L); |
| 5815 |
return SWIG_arg; |
| 5816 |
} |
| 5817 |
|
| 5818 |
|
| 5819 |
static int _wrap_librdf_free_query(lua_State* L) { |
| 5820 |
int SWIG_arg = 0; |
| 5821 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5822 |
|
| 5823 |
SWIG_check_num_args("librdf_free_query",1,1) |
| 5824 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_query",1,"librdf_query *"); |
| 5825 |
|
| 5826 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5827 |
SWIG_fail_ptr("librdf_free_query",1,SWIGTYPE_p_librdf_query); |
| 5828 |
} |
| 5829 |
|
| 5830 |
librdf_free_query(arg1); |
| 5831 |
|
| 5832 |
return SWIG_arg; |
| 5833 |
|
| 5834 |
if(0) SWIG_fail; |
| 5835 |
|
| 5836 |
fail: |
| 5837 |
lua_error(L); |
| 5838 |
return SWIG_arg; |
| 5839 |
} |
| 5840 |
|
| 5841 |
|
| 5842 |
static int _wrap_librdf_query_execute(lua_State* L) { |
| 5843 |
int SWIG_arg = 0; |
| 5844 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5845 |
librdf_model *arg2 = (librdf_model *) 0 ; |
| 5846 |
librdf_query_results *result = 0 ; |
| 5847 |
|
| 5848 |
SWIG_check_num_args("librdf_query_execute",2,2) |
| 5849 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_execute",1,"librdf_query *"); |
| 5850 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_query_execute",2,"librdf_model *"); |
| 5851 |
|
| 5852 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5853 |
SWIG_fail_ptr("librdf_query_execute",1,SWIGTYPE_p_librdf_query); |
| 5854 |
} |
| 5855 |
|
| 5856 |
|
| 5857 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_model_s,0))){ |
| 5858 |
SWIG_fail_ptr("librdf_query_execute",2,SWIGTYPE_p_librdf_model_s); |
| 5859 |
} |
| 5860 |
|
| 5861 |
result = (librdf_query_results *)librdf_query_execute(arg1,arg2); |
| 5862 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_query_results,1); SWIG_arg++; |
| 5863 |
return SWIG_arg; |
| 5864 |
|
| 5865 |
if(0) SWIG_fail; |
| 5866 |
|
| 5867 |
fail: |
| 5868 |
lua_error(L); |
| 5869 |
return SWIG_arg; |
| 5870 |
} |
| 5871 |
|
| 5872 |
|
| 5873 |
static int _wrap_librdf_query_get_limit(lua_State* L) { |
| 5874 |
int SWIG_arg = 0; |
| 5875 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5876 |
int result; |
| 5877 |
|
| 5878 |
SWIG_check_num_args("librdf_query_get_limit",1,1) |
| 5879 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_get_limit",1,"librdf_query *"); |
| 5880 |
|
| 5881 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5882 |
SWIG_fail_ptr("librdf_query_get_limit",1,SWIGTYPE_p_librdf_query); |
| 5883 |
} |
| 5884 |
|
| 5885 |
result = (int)librdf_query_get_limit(arg1); |
| 5886 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5887 |
return SWIG_arg; |
| 5888 |
|
| 5889 |
if(0) SWIG_fail; |
| 5890 |
|
| 5891 |
fail: |
| 5892 |
lua_error(L); |
| 5893 |
return SWIG_arg; |
| 5894 |
} |
| 5895 |
|
| 5896 |
|
| 5897 |
static int _wrap_librdf_query_set_limit(lua_State* L) { |
| 5898 |
int SWIG_arg = 0; |
| 5899 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5900 |
int arg2 ; |
| 5901 |
int result; |
| 5902 |
|
| 5903 |
SWIG_check_num_args("librdf_query_set_limit",2,2) |
| 5904 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_set_limit",1,"librdf_query *"); |
| 5905 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_set_limit",2,"int"); |
| 5906 |
|
| 5907 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5908 |
SWIG_fail_ptr("librdf_query_set_limit",1,SWIGTYPE_p_librdf_query); |
| 5909 |
} |
| 5910 |
|
| 5911 |
arg2 = (int)lua_tonumber(L, 2); |
| 5912 |
result = (int)librdf_query_set_limit(arg1,arg2); |
| 5913 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5914 |
return SWIG_arg; |
| 5915 |
|
| 5916 |
if(0) SWIG_fail; |
| 5917 |
|
| 5918 |
fail: |
| 5919 |
lua_error(L); |
| 5920 |
return SWIG_arg; |
| 5921 |
} |
| 5922 |
|
| 5923 |
|
| 5924 |
static int _wrap_librdf_query_get_offset(lua_State* L) { |
| 5925 |
int SWIG_arg = 0; |
| 5926 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5927 |
int result; |
| 5928 |
|
| 5929 |
SWIG_check_num_args("librdf_query_get_offset",1,1) |
| 5930 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_get_offset",1,"librdf_query *"); |
| 5931 |
|
| 5932 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5933 |
SWIG_fail_ptr("librdf_query_get_offset",1,SWIGTYPE_p_librdf_query); |
| 5934 |
} |
| 5935 |
|
| 5936 |
result = (int)librdf_query_get_offset(arg1); |
| 5937 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5938 |
return SWIG_arg; |
| 5939 |
|
| 5940 |
if(0) SWIG_fail; |
| 5941 |
|
| 5942 |
fail: |
| 5943 |
lua_error(L); |
| 5944 |
return SWIG_arg; |
| 5945 |
} |
| 5946 |
|
| 5947 |
|
| 5948 |
static int _wrap_librdf_query_set_offset(lua_State* L) { |
| 5949 |
int SWIG_arg = 0; |
| 5950 |
librdf_query *arg1 = (librdf_query *) 0 ; |
| 5951 |
int arg2 ; |
| 5952 |
int result; |
| 5953 |
|
| 5954 |
SWIG_check_num_args("librdf_query_set_offset",2,2) |
| 5955 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_set_offset",1,"librdf_query *"); |
| 5956 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_set_offset",2,"int"); |
| 5957 |
|
| 5958 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query,0))){ |
| 5959 |
SWIG_fail_ptr("librdf_query_set_offset",1,SWIGTYPE_p_librdf_query); |
| 5960 |
} |
| 5961 |
|
| 5962 |
arg2 = (int)lua_tonumber(L, 2); |
| 5963 |
result = (int)librdf_query_set_offset(arg1,arg2); |
| 5964 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 5965 |
return SWIG_arg; |
| 5966 |
|
| 5967 |
if(0) SWIG_fail; |
| 5968 |
|
| 5969 |
fail: |
| 5970 |
lua_error(L); |
| 5971 |
return SWIG_arg; |
| 5972 |
} |
| 5973 |
|
| 5974 |
|
| 5975 |
static int _wrap_librdf_query_results_as_stream(lua_State* L) { |
| 5976 |
int SWIG_arg = 0; |
| 5977 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 5978 |
librdf_stream *result = 0 ; |
| 5979 |
|
| 5980 |
SWIG_check_num_args("librdf_query_results_as_stream",1,1) |
| 5981 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_as_stream",1,"librdf_query_results *"); |
| 5982 |
|
| 5983 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 5984 |
SWIG_fail_ptr("librdf_query_results_as_stream",1,SWIGTYPE_p_librdf_query_results); |
| 5985 |
} |
| 5986 |
|
| 5987 |
result = (librdf_stream *)librdf_query_results_as_stream(arg1); |
| 5988 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_stream_s,1); SWIG_arg++; |
| 5989 |
return SWIG_arg; |
| 5990 |
|
| 5991 |
if(0) SWIG_fail; |
| 5992 |
|
| 5993 |
fail: |
| 5994 |
lua_error(L); |
| 5995 |
return SWIG_arg; |
| 5996 |
} |
| 5997 |
|
| 5998 |
|
| 5999 |
static int _wrap_librdf_query_results_get_count(lua_State* L) { |
| 6000 |
int SWIG_arg = 0; |
| 6001 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6002 |
int result; |
| 6003 |
|
| 6004 |
SWIG_check_num_args("librdf_query_results_get_count",1,1) |
| 6005 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_count",1,"librdf_query_results *"); |
| 6006 |
|
| 6007 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6008 |
SWIG_fail_ptr("librdf_query_results_get_count",1,SWIGTYPE_p_librdf_query_results); |
| 6009 |
} |
| 6010 |
|
| 6011 |
result = (int)librdf_query_results_get_count(arg1); |
| 6012 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6013 |
return SWIG_arg; |
| 6014 |
|
| 6015 |
if(0) SWIG_fail; |
| 6016 |
|
| 6017 |
fail: |
| 6018 |
lua_error(L); |
| 6019 |
return SWIG_arg; |
| 6020 |
} |
| 6021 |
|
| 6022 |
|
| 6023 |
static int _wrap_librdf_query_results_next(lua_State* L) { |
| 6024 |
int SWIG_arg = 0; |
| 6025 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6026 |
int result; |
| 6027 |
|
| 6028 |
SWIG_check_num_args("librdf_query_results_next",1,1) |
| 6029 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_next",1,"librdf_query_results *"); |
| 6030 |
|
| 6031 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6032 |
SWIG_fail_ptr("librdf_query_results_next",1,SWIGTYPE_p_librdf_query_results); |
| 6033 |
} |
| 6034 |
|
| 6035 |
result = (int)librdf_query_results_next(arg1); |
| 6036 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6037 |
return SWIG_arg; |
| 6038 |
|
| 6039 |
if(0) SWIG_fail; |
| 6040 |
|
| 6041 |
fail: |
| 6042 |
lua_error(L); |
| 6043 |
return SWIG_arg; |
| 6044 |
} |
| 6045 |
|
| 6046 |
|
| 6047 |
static int _wrap_librdf_query_results_finished(lua_State* L) { |
| 6048 |
int SWIG_arg = 0; |
| 6049 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6050 |
int result; |
| 6051 |
|
| 6052 |
SWIG_check_num_args("librdf_query_results_finished",1,1) |
| 6053 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_finished",1,"librdf_query_results *"); |
| 6054 |
|
| 6055 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6056 |
SWIG_fail_ptr("librdf_query_results_finished",1,SWIGTYPE_p_librdf_query_results); |
| 6057 |
} |
| 6058 |
|
| 6059 |
result = (int)librdf_query_results_finished(arg1); |
| 6060 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6061 |
return SWIG_arg; |
| 6062 |
|
| 6063 |
if(0) SWIG_fail; |
| 6064 |
|
| 6065 |
fail: |
| 6066 |
lua_error(L); |
| 6067 |
return SWIG_arg; |
| 6068 |
} |
| 6069 |
|
| 6070 |
|
| 6071 |
static int _wrap_librdf_query_results_get_binding_value(lua_State* L) { |
| 6072 |
int SWIG_arg = 0; |
| 6073 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6074 |
int arg2 ; |
| 6075 |
librdf_node *result = 0 ; |
| 6076 |
|
| 6077 |
SWIG_check_num_args("librdf_query_results_get_binding_value",2,2) |
| 6078 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_value",1,"librdf_query_results *"); |
| 6079 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value",2,"int"); |
| 6080 |
|
| 6081 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6082 |
SWIG_fail_ptr("librdf_query_results_get_binding_value",1,SWIGTYPE_p_librdf_query_results); |
| 6083 |
} |
| 6084 |
|
| 6085 |
arg2 = (int)lua_tonumber(L, 2); |
| 6086 |
result = (librdf_node *)librdf_query_results_get_binding_value(arg1,arg2); |
| 6087 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 6088 |
return SWIG_arg; |
| 6089 |
|
| 6090 |
if(0) SWIG_fail; |
| 6091 |
|
| 6092 |
fail: |
| 6093 |
lua_error(L); |
| 6094 |
return SWIG_arg; |
| 6095 |
} |
| 6096 |
|
| 6097 |
|
| 6098 |
static int _wrap_librdf_query_results_get_binding_name(lua_State* L) { |
| 6099 |
int SWIG_arg = 0; |
| 6100 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6101 |
int arg2 ; |
| 6102 |
char *result = 0 ; |
| 6103 |
|
| 6104 |
SWIG_check_num_args("librdf_query_results_get_binding_name",2,2) |
| 6105 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_name",1,"librdf_query_results *"); |
| 6106 |
if(!lua_isnumber(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_name",2,"int"); |
| 6107 |
|
| 6108 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6109 |
SWIG_fail_ptr("librdf_query_results_get_binding_name",1,SWIGTYPE_p_librdf_query_results); |
| 6110 |
} |
| 6111 |
|
| 6112 |
arg2 = (int)lua_tonumber(L, 2); |
| 6113 |
result = (char *)librdf_query_results_get_binding_name(arg1,arg2); |
| 6114 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 6115 |
return SWIG_arg; |
| 6116 |
|
| 6117 |
if(0) SWIG_fail; |
| 6118 |
|
| 6119 |
fail: |
| 6120 |
lua_error(L); |
| 6121 |
return SWIG_arg; |
| 6122 |
} |
| 6123 |
|
| 6124 |
|
| 6125 |
static int _wrap_librdf_query_results_get_binding_value_by_name(lua_State* L) { |
| 6126 |
int SWIG_arg = 0; |
| 6127 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6128 |
char *arg2 = (char *) 0 ; |
| 6129 |
librdf_node *result = 0 ; |
| 6130 |
|
| 6131 |
SWIG_check_num_args("librdf_query_results_get_binding_value_by_name",2,2) |
| 6132 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",1,"librdf_query_results *"); |
| 6133 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",2,"char const *"); |
| 6134 |
|
| 6135 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6136 |
SWIG_fail_ptr("librdf_query_results_get_binding_value_by_name",1,SWIGTYPE_p_librdf_query_results); |
| 6137 |
} |
| 6138 |
|
| 6139 |
arg2 = (char *)lua_tostring(L, 2); |
| 6140 |
result = (librdf_node *)librdf_query_results_get_binding_value_by_name(arg1,(char const *)arg2); |
| 6141 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,1); SWIG_arg++; |
| 6142 |
return SWIG_arg; |
| 6143 |
|
| 6144 |
if(0) SWIG_fail; |
| 6145 |
|
| 6146 |
fail: |
| 6147 |
lua_error(L); |
| 6148 |
return SWIG_arg; |
| 6149 |
} |
| 6150 |
|
| 6151 |
|
| 6152 |
static int _wrap_librdf_query_results_get_bindings_count(lua_State* L) { |
| 6153 |
int SWIG_arg = 0; |
| 6154 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6155 |
int result; |
| 6156 |
|
| 6157 |
SWIG_check_num_args("librdf_query_results_get_bindings_count",1,1) |
| 6158 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_bindings_count",1,"librdf_query_results *"); |
| 6159 |
|
| 6160 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6161 |
SWIG_fail_ptr("librdf_query_results_get_bindings_count",1,SWIGTYPE_p_librdf_query_results); |
| 6162 |
} |
| 6163 |
|
| 6164 |
result = (int)librdf_query_results_get_bindings_count(arg1); |
| 6165 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6166 |
return SWIG_arg; |
| 6167 |
|
| 6168 |
if(0) SWIG_fail; |
| 6169 |
|
| 6170 |
fail: |
| 6171 |
lua_error(L); |
| 6172 |
return SWIG_arg; |
| 6173 |
} |
| 6174 |
|
| 6175 |
|
| 6176 |
static int _wrap_librdf_query_results_to_file(lua_State* L) { |
| 6177 |
int SWIG_arg = 0; |
| 6178 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6179 |
char *arg2 = (char *) 0 ; |
| 6180 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 6181 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 6182 |
int result; |
| 6183 |
|
| 6184 |
SWIG_check_num_args("librdf_query_results_to_file",4,4) |
| 6185 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file",1,"librdf_query_results *"); |
| 6186 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file",2,"char const *"); |
| 6187 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_query_results_to_file",3,"librdf_uri *"); |
| 6188 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file",4,"librdf_uri *"); |
| 6189 |
|
| 6190 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6191 |
SWIG_fail_ptr("librdf_query_results_to_file",1,SWIGTYPE_p_librdf_query_results); |
| 6192 |
} |
| 6193 |
|
| 6194 |
arg2 = (char *)lua_tostring(L, 2); |
| 6195 |
|
| 6196 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6197 |
SWIG_fail_ptr("librdf_query_results_to_file",3,SWIGTYPE_p_librdf_uri_s); |
| 6198 |
} |
| 6199 |
|
| 6200 |
|
| 6201 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6202 |
SWIG_fail_ptr("librdf_query_results_to_file",4,SWIGTYPE_p_librdf_uri_s); |
| 6203 |
} |
| 6204 |
|
| 6205 |
result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4); |
| 6206 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6207 |
return SWIG_arg; |
| 6208 |
|
| 6209 |
if(0) SWIG_fail; |
| 6210 |
|
| 6211 |
fail: |
| 6212 |
lua_error(L); |
| 6213 |
return SWIG_arg; |
| 6214 |
} |
| 6215 |
|
| 6216 |
|
| 6217 |
static int _wrap_librdf_query_results_to_file2(lua_State* L) { |
| 6218 |
int SWIG_arg = 0; |
| 6219 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6220 |
char *arg2 = (char *) 0 ; |
| 6221 |
char *arg3 = (char *) 0 ; |
| 6222 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 6223 |
librdf_uri *arg5 = (librdf_uri *) 0 ; |
| 6224 |
int result; |
| 6225 |
|
| 6226 |
SWIG_check_num_args("librdf_query_results_to_file2",5,5) |
| 6227 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file2",1,"librdf_query_results *"); |
| 6228 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file2",2,"char const *"); |
| 6229 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_file2",3,"char const *"); |
| 6230 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file2",4,"librdf_uri *"); |
| 6231 |
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_file2",5,"librdf_uri *"); |
| 6232 |
|
| 6233 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6234 |
SWIG_fail_ptr("librdf_query_results_to_file2",1,SWIGTYPE_p_librdf_query_results); |
| 6235 |
} |
| 6236 |
|
| 6237 |
arg2 = (char *)lua_tostring(L, 2); |
| 6238 |
arg3 = (char *)lua_tostring(L, 3); |
| 6239 |
|
| 6240 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6241 |
SWIG_fail_ptr("librdf_query_results_to_file2",4,SWIGTYPE_p_librdf_uri_s); |
| 6242 |
} |
| 6243 |
|
| 6244 |
|
| 6245 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6246 |
SWIG_fail_ptr("librdf_query_results_to_file2",5,SWIGTYPE_p_librdf_uri_s); |
| 6247 |
} |
| 6248 |
|
| 6249 |
result = (int)librdf_query_results_to_file2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); |
| 6250 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6251 |
return SWIG_arg; |
| 6252 |
|
| 6253 |
if(0) SWIG_fail; |
| 6254 |
|
| 6255 |
fail: |
| 6256 |
lua_error(L); |
| 6257 |
return SWIG_arg; |
| 6258 |
} |
| 6259 |
|
| 6260 |
|
| 6261 |
static int _wrap_librdf_query_results_to_string(lua_State* L) { |
| 6262 |
int SWIG_arg = 0; |
| 6263 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6264 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6265 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 6266 |
char *result = 0 ; |
| 6267 |
|
| 6268 |
SWIG_check_num_args("librdf_query_results_to_string",3,3) |
| 6269 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_string",1,"librdf_query_results *"); |
| 6270 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_query_results_to_string",2,"librdf_uri *"); |
| 6271 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_query_results_to_string",3,"librdf_uri *"); |
| 6272 |
|
| 6273 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6274 |
SWIG_fail_ptr("librdf_query_results_to_string",1,SWIGTYPE_p_librdf_query_results); |
| 6275 |
} |
| 6276 |
|
| 6277 |
|
| 6278 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6279 |
SWIG_fail_ptr("librdf_query_results_to_string",2,SWIGTYPE_p_librdf_uri_s); |
| 6280 |
} |
| 6281 |
|
| 6282 |
|
| 6283 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6284 |
SWIG_fail_ptr("librdf_query_results_to_string",3,SWIGTYPE_p_librdf_uri_s); |
| 6285 |
} |
| 6286 |
|
| 6287 |
result = (char *)librdf_query_results_to_string(arg1,arg2,arg3); |
| 6288 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 6289 |
free(result); |
| 6290 |
return SWIG_arg; |
| 6291 |
|
| 6292 |
if(0) SWIG_fail; |
| 6293 |
|
| 6294 |
fail: |
| 6295 |
lua_error(L); |
| 6296 |
return SWIG_arg; |
| 6297 |
} |
| 6298 |
|
| 6299 |
|
| 6300 |
static int _wrap_librdf_query_results_to_string2(lua_State* L) { |
| 6301 |
int SWIG_arg = 0; |
| 6302 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6303 |
char *arg2 = (char *) 0 ; |
| 6304 |
char *arg3 = (char *) 0 ; |
| 6305 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 6306 |
librdf_uri *arg5 = (librdf_uri *) 0 ; |
| 6307 |
char *result = 0 ; |
| 6308 |
|
| 6309 |
SWIG_check_num_args("librdf_query_results_to_string2",5,5) |
| 6310 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_string2",1,"librdf_query_results *"); |
| 6311 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_string2",2,"char const *"); |
| 6312 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_string2",3,"char const *"); |
| 6313 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_string2",4,"librdf_uri *"); |
| 6314 |
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_string2",5,"librdf_uri *"); |
| 6315 |
|
| 6316 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6317 |
SWIG_fail_ptr("librdf_query_results_to_string2",1,SWIGTYPE_p_librdf_query_results); |
| 6318 |
} |
| 6319 |
|
| 6320 |
arg2 = (char *)lua_tostring(L, 2); |
| 6321 |
arg3 = (char *)lua_tostring(L, 3); |
| 6322 |
|
| 6323 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6324 |
SWIG_fail_ptr("librdf_query_results_to_string2",4,SWIGTYPE_p_librdf_uri_s); |
| 6325 |
} |
| 6326 |
|
| 6327 |
|
| 6328 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6329 |
SWIG_fail_ptr("librdf_query_results_to_string2",5,SWIGTYPE_p_librdf_uri_s); |
| 6330 |
} |
| 6331 |
|
| 6332 |
result = (char *)librdf_query_results_to_string2(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5); |
| 6333 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 6334 |
free(result); |
| 6335 |
return SWIG_arg; |
| 6336 |
|
| 6337 |
if(0) SWIG_fail; |
| 6338 |
|
| 6339 |
fail: |
| 6340 |
lua_error(L); |
| 6341 |
return SWIG_arg; |
| 6342 |
} |
| 6343 |
|
| 6344 |
|
| 6345 |
static int _wrap_librdf_free_query_results(lua_State* L) { |
| 6346 |
int SWIG_arg = 0; |
| 6347 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6348 |
|
| 6349 |
SWIG_check_num_args("librdf_free_query_results",1,1) |
| 6350 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_query_results",1,"librdf_query_results *"); |
| 6351 |
|
| 6352 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6353 |
SWIG_fail_ptr("librdf_free_query_results",1,SWIGTYPE_p_librdf_query_results); |
| 6354 |
} |
| 6355 |
|
| 6356 |
librdf_free_query_results(arg1); |
| 6357 |
|
| 6358 |
return SWIG_arg; |
| 6359 |
|
| 6360 |
if(0) SWIG_fail; |
| 6361 |
|
| 6362 |
fail: |
| 6363 |
lua_error(L); |
| 6364 |
return SWIG_arg; |
| 6365 |
} |
| 6366 |
|
| 6367 |
|
| 6368 |
static int _wrap_librdf_query_results_is_bindings(lua_State* L) { |
| 6369 |
int SWIG_arg = 0; |
| 6370 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6371 |
int result; |
| 6372 |
|
| 6373 |
SWIG_check_num_args("librdf_query_results_is_bindings",1,1) |
| 6374 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_bindings",1,"librdf_query_results *"); |
| 6375 |
|
| 6376 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6377 |
SWIG_fail_ptr("librdf_query_results_is_bindings",1,SWIGTYPE_p_librdf_query_results); |
| 6378 |
} |
| 6379 |
|
| 6380 |
result = (int)librdf_query_results_is_bindings(arg1); |
| 6381 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6382 |
return SWIG_arg; |
| 6383 |
|
| 6384 |
if(0) SWIG_fail; |
| 6385 |
|
| 6386 |
fail: |
| 6387 |
lua_error(L); |
| 6388 |
return SWIG_arg; |
| 6389 |
} |
| 6390 |
|
| 6391 |
|
| 6392 |
static int _wrap_librdf_query_results_is_boolean(lua_State* L) { |
| 6393 |
int SWIG_arg = 0; |
| 6394 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6395 |
int result; |
| 6396 |
|
| 6397 |
SWIG_check_num_args("librdf_query_results_is_boolean",1,1) |
| 6398 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_boolean",1,"librdf_query_results *"); |
| 6399 |
|
| 6400 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6401 |
SWIG_fail_ptr("librdf_query_results_is_boolean",1,SWIGTYPE_p_librdf_query_results); |
| 6402 |
} |
| 6403 |
|
| 6404 |
result = (int)librdf_query_results_is_boolean(arg1); |
| 6405 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6406 |
return SWIG_arg; |
| 6407 |
|
| 6408 |
if(0) SWIG_fail; |
| 6409 |
|
| 6410 |
fail: |
| 6411 |
lua_error(L); |
| 6412 |
return SWIG_arg; |
| 6413 |
} |
| 6414 |
|
| 6415 |
|
| 6416 |
static int _wrap_librdf_query_results_is_graph(lua_State* L) { |
| 6417 |
int SWIG_arg = 0; |
| 6418 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6419 |
int result; |
| 6420 |
|
| 6421 |
SWIG_check_num_args("librdf_query_results_is_graph",1,1) |
| 6422 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_graph",1,"librdf_query_results *"); |
| 6423 |
|
| 6424 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6425 |
SWIG_fail_ptr("librdf_query_results_is_graph",1,SWIGTYPE_p_librdf_query_results); |
| 6426 |
} |
| 6427 |
|
| 6428 |
result = (int)librdf_query_results_is_graph(arg1); |
| 6429 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6430 |
return SWIG_arg; |
| 6431 |
|
| 6432 |
if(0) SWIG_fail; |
| 6433 |
|
| 6434 |
fail: |
| 6435 |
lua_error(L); |
| 6436 |
return SWIG_arg; |
| 6437 |
} |
| 6438 |
|
| 6439 |
|
| 6440 |
static int _wrap_librdf_query_results_is_syntax(lua_State* L) { |
| 6441 |
int SWIG_arg = 0; |
| 6442 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6443 |
int result; |
| 6444 |
|
| 6445 |
SWIG_check_num_args("librdf_query_results_is_syntax",1,1) |
| 6446 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_is_syntax",1,"librdf_query_results *"); |
| 6447 |
|
| 6448 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6449 |
SWIG_fail_ptr("librdf_query_results_is_syntax",1,SWIGTYPE_p_librdf_query_results); |
| 6450 |
} |
| 6451 |
|
| 6452 |
result = (int)librdf_query_results_is_syntax(arg1); |
| 6453 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6454 |
return SWIG_arg; |
| 6455 |
|
| 6456 |
if(0) SWIG_fail; |
| 6457 |
|
| 6458 |
fail: |
| 6459 |
lua_error(L); |
| 6460 |
return SWIG_arg; |
| 6461 |
} |
| 6462 |
|
| 6463 |
|
| 6464 |
static int _wrap_librdf_query_results_get_boolean(lua_State* L) { |
| 6465 |
int SWIG_arg = 0; |
| 6466 |
librdf_query_results *arg1 = (librdf_query_results *) 0 ; |
| 6467 |
int result; |
| 6468 |
|
| 6469 |
SWIG_check_num_args("librdf_query_results_get_boolean",1,1) |
| 6470 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_boolean",1,"librdf_query_results *"); |
| 6471 |
|
| 6472 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){ |
| 6473 |
SWIG_fail_ptr("librdf_query_results_get_boolean",1,SWIGTYPE_p_librdf_query_results); |
| 6474 |
} |
| 6475 |
|
| 6476 |
result = (int)librdf_query_results_get_boolean(arg1); |
| 6477 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6478 |
return SWIG_arg; |
| 6479 |
|
| 6480 |
if(0) SWIG_fail; |
| 6481 |
|
| 6482 |
fail: |
| 6483 |
lua_error(L); |
| 6484 |
return SWIG_arg; |
| 6485 |
} |
| 6486 |
|
| 6487 |
|
| 6488 |
static int _wrap_librdf_serializer_check_name(lua_State* L) { |
| 6489 |
int SWIG_arg = 0; |
| 6490 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 6491 |
char *arg2 = (char *) 0 ; |
| 6492 |
int result; |
| 6493 |
|
| 6494 |
SWIG_check_num_args("librdf_serializer_check_name",2,2) |
| 6495 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_check_name",1,"librdf_world *"); |
| 6496 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_check_name",2,"char const *"); |
| 6497 |
|
| 6498 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 6499 |
SWIG_fail_ptr("librdf_serializer_check_name",1,SWIGTYPE_p_librdf_world_s); |
| 6500 |
} |
| 6501 |
|
| 6502 |
arg2 = (char *)lua_tostring(L, 2); |
| 6503 |
result = (int)librdf_serializer_check_name(arg1,(char const *)arg2); |
| 6504 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6505 |
return SWIG_arg; |
| 6506 |
|
| 6507 |
if(0) SWIG_fail; |
| 6508 |
|
| 6509 |
fail: |
| 6510 |
lua_error(L); |
| 6511 |
return SWIG_arg; |
| 6512 |
} |
| 6513 |
|
| 6514 |
|
| 6515 |
static int _wrap_librdf_new_serializer(lua_State* L) { |
| 6516 |
int SWIG_arg = 0; |
| 6517 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 6518 |
char *arg2 = (char *) 0 ; |
| 6519 |
char *arg3 = (char *) 0 ; |
| 6520 |
librdf_uri *arg4 = (librdf_uri *) 0 ; |
| 6521 |
librdf_serializer *result = 0 ; |
| 6522 |
|
| 6523 |
SWIG_check_num_args("librdf_new_serializer",4,4) |
| 6524 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_serializer",1,"librdf_world *"); |
| 6525 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_serializer",2,"char const *"); |
| 6526 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_serializer",3,"char const *"); |
| 6527 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_serializer",4,"librdf_uri *"); |
| 6528 |
|
| 6529 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 6530 |
SWIG_fail_ptr("librdf_new_serializer",1,SWIGTYPE_p_librdf_world_s); |
| 6531 |
} |
| 6532 |
|
| 6533 |
arg2 = (char *)lua_tostring(L, 2); |
| 6534 |
arg3 = (char *)lua_tostring(L, 3); |
| 6535 |
|
| 6536 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6537 |
SWIG_fail_ptr("librdf_new_serializer",4,SWIGTYPE_p_librdf_uri_s); |
| 6538 |
} |
| 6539 |
|
| 6540 |
result = (librdf_serializer *)librdf_new_serializer(arg1,(char const *)arg2,(char const *)arg3,arg4); |
| 6541 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_serializer_s,1); SWIG_arg++; |
| 6542 |
return SWIG_arg; |
| 6543 |
|
| 6544 |
if(0) SWIG_fail; |
| 6545 |
|
| 6546 |
fail: |
| 6547 |
lua_error(L); |
| 6548 |
return SWIG_arg; |
| 6549 |
} |
| 6550 |
|
| 6551 |
|
| 6552 |
static int _wrap_librdf_free_serializer(lua_State* L) { |
| 6553 |
int SWIG_arg = 0; |
| 6554 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6555 |
|
| 6556 |
SWIG_check_num_args("librdf_free_serializer",1,1) |
| 6557 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_serializer",1,"librdf_serializer *"); |
| 6558 |
|
| 6559 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6560 |
SWIG_fail_ptr("librdf_free_serializer",1,SWIGTYPE_p_librdf_serializer_s); |
| 6561 |
} |
| 6562 |
|
| 6563 |
librdf_free_serializer(arg1); |
| 6564 |
|
| 6565 |
return SWIG_arg; |
| 6566 |
|
| 6567 |
if(0) SWIG_fail; |
| 6568 |
|
| 6569 |
fail: |
| 6570 |
lua_error(L); |
| 6571 |
return SWIG_arg; |
| 6572 |
} |
| 6573 |
|
| 6574 |
|
| 6575 |
static int _wrap_librdf_serializer_serialize_stream_to_file(lua_State* L) { |
| 6576 |
int SWIG_arg = 0; |
| 6577 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6578 |
char *arg2 = (char *) 0 ; |
| 6579 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 6580 |
librdf_stream *arg4 = (librdf_stream *) 0 ; |
| 6581 |
int result; |
| 6582 |
|
| 6583 |
SWIG_check_num_args("librdf_serializer_serialize_stream_to_file",4,4) |
| 6584 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",1,"librdf_serializer *"); |
| 6585 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",2,"char const *"); |
| 6586 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",3,"librdf_uri *"); |
| 6587 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",4,"librdf_stream *"); |
| 6588 |
|
| 6589 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6590 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",1,SWIGTYPE_p_librdf_serializer_s); |
| 6591 |
} |
| 6592 |
|
| 6593 |
arg2 = (char *)lua_tostring(L, 2); |
| 6594 |
|
| 6595 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6596 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",3,SWIGTYPE_p_librdf_uri_s); |
| 6597 |
} |
| 6598 |
|
| 6599 |
|
| 6600 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6601 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_file",4,SWIGTYPE_p_librdf_stream_s); |
| 6602 |
} |
| 6603 |
|
| 6604 |
result = (int)librdf_serializer_serialize_stream_to_file(arg1,(char const *)arg2,arg3,arg4); |
| 6605 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6606 |
return SWIG_arg; |
| 6607 |
|
| 6608 |
if(0) SWIG_fail; |
| 6609 |
|
| 6610 |
fail: |
| 6611 |
lua_error(L); |
| 6612 |
return SWIG_arg; |
| 6613 |
} |
| 6614 |
|
| 6615 |
|
| 6616 |
static int _wrap_librdf_serializer_serialize_model_to_file(lua_State* L) { |
| 6617 |
int SWIG_arg = 0; |
| 6618 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6619 |
char *arg2 = (char *) 0 ; |
| 6620 |
librdf_uri *arg3 = (librdf_uri *) 0 ; |
| 6621 |
librdf_model *arg4 = (librdf_model *) 0 ; |
| 6622 |
int result; |
| 6623 |
|
| 6624 |
SWIG_check_num_args("librdf_serializer_serialize_model_to_file",4,4) |
| 6625 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",1,"librdf_serializer *"); |
| 6626 |
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",2,"char const *"); |
| 6627 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",3,"librdf_uri *"); |
| 6628 |
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",4,"librdf_model *"); |
| 6629 |
|
| 6630 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6631 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",1,SWIGTYPE_p_librdf_serializer_s); |
| 6632 |
} |
| 6633 |
|
| 6634 |
arg2 = (char *)lua_tostring(L, 2); |
| 6635 |
|
| 6636 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6637 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",3,SWIGTYPE_p_librdf_uri_s); |
| 6638 |
} |
| 6639 |
|
| 6640 |
|
| 6641 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_librdf_model_s,0))){ |
| 6642 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_file",4,SWIGTYPE_p_librdf_model_s); |
| 6643 |
} |
| 6644 |
|
| 6645 |
result = (int)librdf_serializer_serialize_model_to_file(arg1,(char const *)arg2,arg3,arg4); |
| 6646 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6647 |
return SWIG_arg; |
| 6648 |
|
| 6649 |
if(0) SWIG_fail; |
| 6650 |
|
| 6651 |
fail: |
| 6652 |
lua_error(L); |
| 6653 |
return SWIG_arg; |
| 6654 |
} |
| 6655 |
|
| 6656 |
|
| 6657 |
static int _wrap_librdf_serializer_serialize_stream_to_string(lua_State* L) { |
| 6658 |
int SWIG_arg = 0; |
| 6659 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6660 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6661 |
librdf_stream *arg3 = (librdf_stream *) 0 ; |
| 6662 |
char *result = 0 ; |
| 6663 |
|
| 6664 |
SWIG_check_num_args("librdf_serializer_serialize_stream_to_string",3,3) |
| 6665 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",1,"librdf_serializer *"); |
| 6666 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",2,"librdf_uri *"); |
| 6667 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_string",3,"librdf_stream *"); |
| 6668 |
|
| 6669 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6670 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",1,SWIGTYPE_p_librdf_serializer_s); |
| 6671 |
} |
| 6672 |
|
| 6673 |
|
| 6674 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6675 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",2,SWIGTYPE_p_librdf_uri_s); |
| 6676 |
} |
| 6677 |
|
| 6678 |
|
| 6679 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6680 |
SWIG_fail_ptr("librdf_serializer_serialize_stream_to_string",3,SWIGTYPE_p_librdf_stream_s); |
| 6681 |
} |
| 6682 |
|
| 6683 |
result = (char *)librdf_serializer_serialize_stream_to_string(arg1,arg2,arg3); |
| 6684 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 6685 |
free(result); |
| 6686 |
return SWIG_arg; |
| 6687 |
|
| 6688 |
if(0) SWIG_fail; |
| 6689 |
|
| 6690 |
fail: |
| 6691 |
lua_error(L); |
| 6692 |
return SWIG_arg; |
| 6693 |
} |
| 6694 |
|
| 6695 |
|
| 6696 |
static int _wrap_librdf_serializer_serialize_model_to_string(lua_State* L) { |
| 6697 |
int SWIG_arg = 0; |
| 6698 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6699 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6700 |
librdf_model *arg3 = (librdf_model *) 0 ; |
| 6701 |
char *result = 0 ; |
| 6702 |
|
| 6703 |
SWIG_check_num_args("librdf_serializer_serialize_model_to_string",3,3) |
| 6704 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",1,"librdf_serializer *"); |
| 6705 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",2,"librdf_uri *"); |
| 6706 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_model_to_string",3,"librdf_model *"); |
| 6707 |
|
| 6708 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6709 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",1,SWIGTYPE_p_librdf_serializer_s); |
| 6710 |
} |
| 6711 |
|
| 6712 |
|
| 6713 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6714 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",2,SWIGTYPE_p_librdf_uri_s); |
| 6715 |
} |
| 6716 |
|
| 6717 |
|
| 6718 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_model_s,0))){ |
| 6719 |
SWIG_fail_ptr("librdf_serializer_serialize_model_to_string",3,SWIGTYPE_p_librdf_model_s); |
| 6720 |
} |
| 6721 |
|
| 6722 |
result = (char *)librdf_serializer_serialize_model_to_string(arg1,arg2,arg3); |
| 6723 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 6724 |
free(result); |
| 6725 |
return SWIG_arg; |
| 6726 |
|
| 6727 |
if(0) SWIG_fail; |
| 6728 |
|
| 6729 |
fail: |
| 6730 |
lua_error(L); |
| 6731 |
return SWIG_arg; |
| 6732 |
} |
| 6733 |
|
| 6734 |
|
| 6735 |
static int _wrap_librdf_serializer_get_feature(lua_State* L) { |
| 6736 |
int SWIG_arg = 0; |
| 6737 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6738 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6739 |
librdf_node *result = 0 ; |
| 6740 |
|
| 6741 |
SWIG_check_num_args("librdf_serializer_get_feature",2,2) |
| 6742 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_get_feature",1,"librdf_serializer *"); |
| 6743 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_get_feature",2,"librdf_uri *"); |
| 6744 |
|
| 6745 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6746 |
SWIG_fail_ptr("librdf_serializer_get_feature",1,SWIGTYPE_p_librdf_serializer_s); |
| 6747 |
} |
| 6748 |
|
| 6749 |
|
| 6750 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6751 |
SWIG_fail_ptr("librdf_serializer_get_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 6752 |
} |
| 6753 |
|
| 6754 |
result = (librdf_node *)librdf_serializer_get_feature(arg1,arg2); |
| 6755 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 6756 |
return SWIG_arg; |
| 6757 |
|
| 6758 |
if(0) SWIG_fail; |
| 6759 |
|
| 6760 |
fail: |
| 6761 |
lua_error(L); |
| 6762 |
return SWIG_arg; |
| 6763 |
} |
| 6764 |
|
| 6765 |
|
| 6766 |
static int _wrap_librdf_serializer_set_feature(lua_State* L) { |
| 6767 |
int SWIG_arg = 0; |
| 6768 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6769 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6770 |
librdf_node *arg3 = (librdf_node *) 0 ; |
| 6771 |
int result; |
| 6772 |
|
| 6773 |
SWIG_check_num_args("librdf_serializer_set_feature",3,3) |
| 6774 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_set_feature",1,"librdf_serializer *"); |
| 6775 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_set_feature",2,"librdf_uri *"); |
| 6776 |
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_set_feature",3,"librdf_node *"); |
| 6777 |
|
| 6778 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6779 |
SWIG_fail_ptr("librdf_serializer_set_feature",1,SWIGTYPE_p_librdf_serializer_s); |
| 6780 |
} |
| 6781 |
|
| 6782 |
|
| 6783 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6784 |
SWIG_fail_ptr("librdf_serializer_set_feature",2,SWIGTYPE_p_librdf_uri_s); |
| 6785 |
} |
| 6786 |
|
| 6787 |
|
| 6788 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_librdf_node_s,0))){ |
| 6789 |
SWIG_fail_ptr("librdf_serializer_set_feature",3,SWIGTYPE_p_librdf_node_s); |
| 6790 |
} |
| 6791 |
|
| 6792 |
result = (int)librdf_serializer_set_feature(arg1,arg2,arg3); |
| 6793 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6794 |
return SWIG_arg; |
| 6795 |
|
| 6796 |
if(0) SWIG_fail; |
| 6797 |
|
| 6798 |
fail: |
| 6799 |
lua_error(L); |
| 6800 |
return SWIG_arg; |
| 6801 |
} |
| 6802 |
|
| 6803 |
|
| 6804 |
static int _wrap_librdf_serializer_set_namespace(lua_State* L) { |
| 6805 |
int SWIG_arg = 0; |
| 6806 |
librdf_serializer *arg1 = (librdf_serializer *) 0 ; |
| 6807 |
librdf_uri *arg2 = (librdf_uri *) 0 ; |
| 6808 |
char *arg3 = (char *) 0 ; |
| 6809 |
int result; |
| 6810 |
|
| 6811 |
SWIG_check_num_args("librdf_serializer_set_namespace",3,3) |
| 6812 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_set_namespace",1,"librdf_serializer *"); |
| 6813 |
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_set_namespace",2,"librdf_uri *"); |
| 6814 |
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_serializer_set_namespace",3,"char const *"); |
| 6815 |
|
| 6816 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){ |
| 6817 |
SWIG_fail_ptr("librdf_serializer_set_namespace",1,SWIGTYPE_p_librdf_serializer_s); |
| 6818 |
} |
| 6819 |
|
| 6820 |
|
| 6821 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_librdf_uri_s,0))){ |
| 6822 |
SWIG_fail_ptr("librdf_serializer_set_namespace",2,SWIGTYPE_p_librdf_uri_s); |
| 6823 |
} |
| 6824 |
|
| 6825 |
arg3 = (char *)lua_tostring(L, 3); |
| 6826 |
result = (int)librdf_serializer_set_namespace(arg1,arg2,(char const *)arg3); |
| 6827 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6828 |
return SWIG_arg; |
| 6829 |
|
| 6830 |
if(0) SWIG_fail; |
| 6831 |
|
| 6832 |
fail: |
| 6833 |
lua_error(L); |
| 6834 |
return SWIG_arg; |
| 6835 |
} |
| 6836 |
|
| 6837 |
|
| 6838 |
static int _wrap_librdf_free_stream(lua_State* L) { |
| 6839 |
int SWIG_arg = 0; |
| 6840 |
librdf_stream *arg1 = (librdf_stream *) 0 ; |
| 6841 |
|
| 6842 |
SWIG_check_num_args("librdf_free_stream",1,1) |
| 6843 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_free_stream",1,"librdf_stream *"); |
| 6844 |
|
| 6845 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6846 |
SWIG_fail_ptr("librdf_free_stream",1,SWIGTYPE_p_librdf_stream_s); |
| 6847 |
} |
| 6848 |
|
| 6849 |
librdf_free_stream(arg1); |
| 6850 |
|
| 6851 |
return SWIG_arg; |
| 6852 |
|
| 6853 |
if(0) SWIG_fail; |
| 6854 |
|
| 6855 |
fail: |
| 6856 |
lua_error(L); |
| 6857 |
return SWIG_arg; |
| 6858 |
} |
| 6859 |
|
| 6860 |
|
| 6861 |
static int _wrap_librdf_stream_end(lua_State* L) { |
| 6862 |
int SWIG_arg = 0; |
| 6863 |
librdf_stream *arg1 = (librdf_stream *) 0 ; |
| 6864 |
int result; |
| 6865 |
|
| 6866 |
SWIG_check_num_args("librdf_stream_end",1,1) |
| 6867 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_end",1,"librdf_stream *"); |
| 6868 |
|
| 6869 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6870 |
SWIG_fail_ptr("librdf_stream_end",1,SWIGTYPE_p_librdf_stream_s); |
| 6871 |
} |
| 6872 |
|
| 6873 |
result = (int)librdf_stream_end(arg1); |
| 6874 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6875 |
return SWIG_arg; |
| 6876 |
|
| 6877 |
if(0) SWIG_fail; |
| 6878 |
|
| 6879 |
fail: |
| 6880 |
lua_error(L); |
| 6881 |
return SWIG_arg; |
| 6882 |
} |
| 6883 |
|
| 6884 |
|
| 6885 |
static int _wrap_librdf_stream_next(lua_State* L) { |
| 6886 |
int SWIG_arg = 0; |
| 6887 |
librdf_stream *arg1 = (librdf_stream *) 0 ; |
| 6888 |
int result; |
| 6889 |
|
| 6890 |
SWIG_check_num_args("librdf_stream_next",1,1) |
| 6891 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_next",1,"librdf_stream *"); |
| 6892 |
|
| 6893 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6894 |
SWIG_fail_ptr("librdf_stream_next",1,SWIGTYPE_p_librdf_stream_s); |
| 6895 |
} |
| 6896 |
|
| 6897 |
result = (int)librdf_stream_next(arg1); |
| 6898 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6899 |
return SWIG_arg; |
| 6900 |
|
| 6901 |
if(0) SWIG_fail; |
| 6902 |
|
| 6903 |
fail: |
| 6904 |
lua_error(L); |
| 6905 |
return SWIG_arg; |
| 6906 |
} |
| 6907 |
|
| 6908 |
|
| 6909 |
static int _wrap_librdf_stream_get_object(lua_State* L) { |
| 6910 |
int SWIG_arg = 0; |
| 6911 |
librdf_stream *arg1 = (librdf_stream *) 0 ; |
| 6912 |
librdf_statement *result = 0 ; |
| 6913 |
|
| 6914 |
SWIG_check_num_args("librdf_stream_get_object",1,1) |
| 6915 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_get_object",1,"librdf_stream *"); |
| 6916 |
|
| 6917 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6918 |
SWIG_fail_ptr("librdf_stream_get_object",1,SWIGTYPE_p_librdf_stream_s); |
| 6919 |
} |
| 6920 |
|
| 6921 |
result = (librdf_statement *)librdf_stream_get_object(arg1); |
| 6922 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_statement_s,0); SWIG_arg++; |
| 6923 |
return SWIG_arg; |
| 6924 |
|
| 6925 |
if(0) SWIG_fail; |
| 6926 |
|
| 6927 |
fail: |
| 6928 |
lua_error(L); |
| 6929 |
return SWIG_arg; |
| 6930 |
} |
| 6931 |
|
| 6932 |
|
| 6933 |
static int _wrap_librdf_stream_get_context(lua_State* L) { |
| 6934 |
int SWIG_arg = 0; |
| 6935 |
librdf_stream *arg1 = (librdf_stream *) 0 ; |
| 6936 |
librdf_node *result = 0 ; |
| 6937 |
|
| 6938 |
SWIG_check_num_args("librdf_stream_get_context",1,1) |
| 6939 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_stream_get_context",1,"librdf_stream *"); |
| 6940 |
|
| 6941 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_stream_s,0))){ |
| 6942 |
SWIG_fail_ptr("librdf_stream_get_context",1,SWIGTYPE_p_librdf_stream_s); |
| 6943 |
} |
| 6944 |
|
| 6945 |
result = (librdf_node *)librdf_stream_get_context(arg1); |
| 6946 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_node_s,0); SWIG_arg++; |
| 6947 |
return SWIG_arg; |
| 6948 |
|
| 6949 |
if(0) SWIG_fail; |
| 6950 |
|
| 6951 |
fail: |
| 6952 |
lua_error(L); |
| 6953 |
return SWIG_arg; |
| 6954 |
} |
| 6955 |
|
| 6956 |
|
| 6957 |
static int _wrap_librdf_log_message_code(lua_State* L) { |
| 6958 |
int SWIG_arg = 0; |
| 6959 |
librdf_log_message *arg1 = (librdf_log_message *) 0 ; |
| 6960 |
int result; |
| 6961 |
|
| 6962 |
SWIG_check_num_args("librdf_log_message_code",1,1) |
| 6963 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_code",1,"librdf_log_message *"); |
| 6964 |
|
| 6965 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ |
| 6966 |
SWIG_fail_ptr("librdf_log_message_code",1,SWIGTYPE_p_librdf_log_message); |
| 6967 |
} |
| 6968 |
|
| 6969 |
result = (int)librdf_log_message_code(arg1); |
| 6970 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6971 |
return SWIG_arg; |
| 6972 |
|
| 6973 |
if(0) SWIG_fail; |
| 6974 |
|
| 6975 |
fail: |
| 6976 |
lua_error(L); |
| 6977 |
return SWIG_arg; |
| 6978 |
} |
| 6979 |
|
| 6980 |
|
| 6981 |
static int _wrap_librdf_log_message_level(lua_State* L) { |
| 6982 |
int SWIG_arg = 0; |
| 6983 |
librdf_log_message *arg1 = (librdf_log_message *) 0 ; |
| 6984 |
int result; |
| 6985 |
|
| 6986 |
SWIG_check_num_args("librdf_log_message_level",1,1) |
| 6987 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_level",1,"librdf_log_message *"); |
| 6988 |
|
| 6989 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ |
| 6990 |
SWIG_fail_ptr("librdf_log_message_level",1,SWIGTYPE_p_librdf_log_message); |
| 6991 |
} |
| 6992 |
|
| 6993 |
result = (int)librdf_log_message_level(arg1); |
| 6994 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 6995 |
return SWIG_arg; |
| 6996 |
|
| 6997 |
if(0) SWIG_fail; |
| 6998 |
|
| 6999 |
fail: |
| 7000 |
lua_error(L); |
| 7001 |
return SWIG_arg; |
| 7002 |
} |
| 7003 |
|
| 7004 |
|
| 7005 |
static int _wrap_librdf_log_message_facility(lua_State* L) { |
| 7006 |
int SWIG_arg = 0; |
| 7007 |
librdf_log_message *arg1 = (librdf_log_message *) 0 ; |
| 7008 |
int result; |
| 7009 |
|
| 7010 |
SWIG_check_num_args("librdf_log_message_facility",1,1) |
| 7011 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_facility",1,"librdf_log_message *"); |
| 7012 |
|
| 7013 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ |
| 7014 |
SWIG_fail_ptr("librdf_log_message_facility",1,SWIGTYPE_p_librdf_log_message); |
| 7015 |
} |
| 7016 |
|
| 7017 |
result = (int)librdf_log_message_facility(arg1); |
| 7018 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7019 |
return SWIG_arg; |
| 7020 |
|
| 7021 |
if(0) SWIG_fail; |
| 7022 |
|
| 7023 |
fail: |
| 7024 |
lua_error(L); |
| 7025 |
return SWIG_arg; |
| 7026 |
} |
| 7027 |
|
| 7028 |
|
| 7029 |
static int _wrap_librdf_log_message_message(lua_State* L) { |
| 7030 |
int SWIG_arg = 0; |
| 7031 |
librdf_log_message *arg1 = (librdf_log_message *) 0 ; |
| 7032 |
char *result = 0 ; |
| 7033 |
|
| 7034 |
SWIG_check_num_args("librdf_log_message_message",1,1) |
| 7035 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_message",1,"librdf_log_message *"); |
| 7036 |
|
| 7037 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ |
| 7038 |
SWIG_fail_ptr("librdf_log_message_message",1,SWIGTYPE_p_librdf_log_message); |
| 7039 |
} |
| 7040 |
|
| 7041 |
result = (char *)librdf_log_message_message(arg1); |
| 7042 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7043 |
return SWIG_arg; |
| 7044 |
|
| 7045 |
if(0) SWIG_fail; |
| 7046 |
|
| 7047 |
fail: |
| 7048 |
lua_error(L); |
| 7049 |
return SWIG_arg; |
| 7050 |
} |
| 7051 |
|
| 7052 |
|
| 7053 |
static int _wrap_librdf_log_message_locator(lua_State* L) { |
| 7054 |
int SWIG_arg = 0; |
| 7055 |
librdf_log_message *arg1 = (librdf_log_message *) 0 ; |
| 7056 |
raptor_locator *result = 0 ; |
| 7057 |
|
| 7058 |
SWIG_check_num_args("librdf_log_message_locator",1,1) |
| 7059 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_log_message_locator",1,"librdf_log_message *"); |
| 7060 |
|
| 7061 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_log_message,0))){ |
| 7062 |
SWIG_fail_ptr("librdf_log_message_locator",1,SWIGTYPE_p_librdf_log_message); |
| 7063 |
} |
| 7064 |
|
| 7065 |
result = (raptor_locator *)librdf_log_message_locator(arg1); |
| 7066 |
SWIG_NewPointerObj(L,result,SWIGTYPE_p_raptor_locator,0); SWIG_arg++; |
| 7067 |
return SWIG_arg; |
| 7068 |
|
| 7069 |
if(0) SWIG_fail; |
| 7070 |
|
| 7071 |
fail: |
| 7072 |
lua_error(L); |
| 7073 |
return SWIG_arg; |
| 7074 |
} |
| 7075 |
|
| 7076 |
|
| 7077 |
static int _wrap_raptor_locator_line(lua_State* L) { |
| 7078 |
int SWIG_arg = 0; |
| 7079 |
raptor_locator *arg1 = (raptor_locator *) 0 ; |
| 7080 |
int result; |
| 7081 |
|
| 7082 |
SWIG_check_num_args("raptor_locator_line",1,1) |
| 7083 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_line",1,"raptor_locator *"); |
| 7084 |
|
| 7085 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ |
| 7086 |
SWIG_fail_ptr("raptor_locator_line",1,SWIGTYPE_p_raptor_locator); |
| 7087 |
} |
| 7088 |
|
| 7089 |
result = (int)raptor_locator_line(arg1); |
| 7090 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7091 |
return SWIG_arg; |
| 7092 |
|
| 7093 |
if(0) SWIG_fail; |
| 7094 |
|
| 7095 |
fail: |
| 7096 |
lua_error(L); |
| 7097 |
return SWIG_arg; |
| 7098 |
} |
| 7099 |
|
| 7100 |
|
| 7101 |
static int _wrap_raptor_locator_column(lua_State* L) { |
| 7102 |
int SWIG_arg = 0; |
| 7103 |
raptor_locator *arg1 = (raptor_locator *) 0 ; |
| 7104 |
int result; |
| 7105 |
|
| 7106 |
SWIG_check_num_args("raptor_locator_column",1,1) |
| 7107 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_column",1,"raptor_locator *"); |
| 7108 |
|
| 7109 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ |
| 7110 |
SWIG_fail_ptr("raptor_locator_column",1,SWIGTYPE_p_raptor_locator); |
| 7111 |
} |
| 7112 |
|
| 7113 |
result = (int)raptor_locator_column(arg1); |
| 7114 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7115 |
return SWIG_arg; |
| 7116 |
|
| 7117 |
if(0) SWIG_fail; |
| 7118 |
|
| 7119 |
fail: |
| 7120 |
lua_error(L); |
| 7121 |
return SWIG_arg; |
| 7122 |
} |
| 7123 |
|
| 7124 |
|
| 7125 |
static int _wrap_raptor_locator_byte(lua_State* L) { |
| 7126 |
int SWIG_arg = 0; |
| 7127 |
raptor_locator *arg1 = (raptor_locator *) 0 ; |
| 7128 |
int result; |
| 7129 |
|
| 7130 |
SWIG_check_num_args("raptor_locator_byte",1,1) |
| 7131 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_byte",1,"raptor_locator *"); |
| 7132 |
|
| 7133 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ |
| 7134 |
SWIG_fail_ptr("raptor_locator_byte",1,SWIGTYPE_p_raptor_locator); |
| 7135 |
} |
| 7136 |
|
| 7137 |
result = (int)raptor_locator_byte(arg1); |
| 7138 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7139 |
return SWIG_arg; |
| 7140 |
|
| 7141 |
if(0) SWIG_fail; |
| 7142 |
|
| 7143 |
fail: |
| 7144 |
lua_error(L); |
| 7145 |
return SWIG_arg; |
| 7146 |
} |
| 7147 |
|
| 7148 |
|
| 7149 |
static int _wrap_raptor_locator_file(lua_State* L) { |
| 7150 |
int SWIG_arg = 0; |
| 7151 |
raptor_locator *arg1 = (raptor_locator *) 0 ; |
| 7152 |
char *result = 0 ; |
| 7153 |
|
| 7154 |
SWIG_check_num_args("raptor_locator_file",1,1) |
| 7155 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_file",1,"raptor_locator *"); |
| 7156 |
|
| 7157 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ |
| 7158 |
SWIG_fail_ptr("raptor_locator_file",1,SWIGTYPE_p_raptor_locator); |
| 7159 |
} |
| 7160 |
|
| 7161 |
result = (char *)raptor_locator_file(arg1); |
| 7162 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7163 |
return SWIG_arg; |
| 7164 |
|
| 7165 |
if(0) SWIG_fail; |
| 7166 |
|
| 7167 |
fail: |
| 7168 |
lua_error(L); |
| 7169 |
return SWIG_arg; |
| 7170 |
} |
| 7171 |
|
| 7172 |
|
| 7173 |
static int _wrap_raptor_locator_uri(lua_State* L) { |
| 7174 |
int SWIG_arg = 0; |
| 7175 |
raptor_locator *arg1 = (raptor_locator *) 0 ; |
| 7176 |
char *result = 0 ; |
| 7177 |
|
| 7178 |
SWIG_check_num_args("raptor_locator_uri",1,1) |
| 7179 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raptor_locator_uri",1,"raptor_locator *"); |
| 7180 |
|
| 7181 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_raptor_locator,0))){ |
| 7182 |
SWIG_fail_ptr("raptor_locator_uri",1,SWIGTYPE_p_raptor_locator); |
| 7183 |
} |
| 7184 |
|
| 7185 |
result = (char *)raptor_locator_uri(arg1); |
| 7186 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7187 |
return SWIG_arg; |
| 7188 |
|
| 7189 |
if(0) SWIG_fail; |
| 7190 |
|
| 7191 |
fail: |
| 7192 |
lua_error(L); |
| 7193 |
return SWIG_arg; |
| 7194 |
} |
| 7195 |
|
| 7196 |
|
| 7197 |
static int _wrap_librdf_internal_test_error(lua_State* L) { |
| 7198 |
int SWIG_arg = 0; |
| 7199 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 7200 |
|
| 7201 |
SWIG_check_num_args("librdf_internal_test_error",1,1) |
| 7202 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_internal_test_error",1,"librdf_world *"); |
| 7203 |
|
| 7204 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 7205 |
SWIG_fail_ptr("librdf_internal_test_error",1,SWIGTYPE_p_librdf_world_s); |
| 7206 |
} |
| 7207 |
|
| 7208 |
librdf_internal_test_error(arg1); |
| 7209 |
|
| 7210 |
return SWIG_arg; |
| 7211 |
|
| 7212 |
if(0) SWIG_fail; |
| 7213 |
|
| 7214 |
fail: |
| 7215 |
lua_error(L); |
| 7216 |
return SWIG_arg; |
| 7217 |
} |
| 7218 |
|
| 7219 |
|
| 7220 |
static int _wrap_librdf_internal_test_warning(lua_State* L) { |
| 7221 |
int SWIG_arg = 0; |
| 7222 |
librdf_world *arg1 = (librdf_world *) 0 ; |
| 7223 |
|
| 7224 |
SWIG_check_num_args("librdf_internal_test_warning",1,1) |
| 7225 |
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_internal_test_warning",1,"librdf_world *"); |
| 7226 |
|
| 7227 |
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){ |
| 7228 |
SWIG_fail_ptr("librdf_internal_test_warning",1,SWIGTYPE_p_librdf_world_s); |
| 7229 |
} |
| 7230 |
|
| 7231 |
librdf_internal_test_warning(arg1); |
| 7232 |
|
| 7233 |
return SWIG_arg; |
| 7234 |
|
| 7235 |
if(0) SWIG_fail; |
| 7236 |
|
| 7237 |
fail: |
| 7238 |
lua_error(L); |
| 7239 |
return SWIG_arg; |
| 7240 |
} |
| 7241 |
|
| 7242 |
|
| 7243 |
static int _wrap_librdf_short_copyright_string_get(lua_State* L) { |
| 7244 |
int SWIG_arg = 0; |
| 7245 |
char *result = 0 ; |
| 7246 |
|
| 7247 |
SWIG_check_num_args("librdf_short_copyright_string",0,0) |
| 7248 |
result = (char *)(char *)librdf_short_copyright_string; |
| 7249 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7250 |
return SWIG_arg; |
| 7251 |
|
| 7252 |
if(0) SWIG_fail; |
| 7253 |
|
| 7254 |
fail: |
| 7255 |
lua_error(L); |
| 7256 |
return SWIG_arg; |
| 7257 |
} |
| 7258 |
|
| 7259 |
|
| 7260 |
static int _wrap_librdf_copyright_string_get(lua_State* L) { |
| 7261 |
int SWIG_arg = 0; |
| 7262 |
char *result = 0 ; |
| 7263 |
|
| 7264 |
SWIG_check_num_args("librdf_copyright_string",0,0) |
| 7265 |
result = (char *)(char *)librdf_copyright_string; |
| 7266 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7267 |
return SWIG_arg; |
| 7268 |
|
| 7269 |
if(0) SWIG_fail; |
| 7270 |
|
| 7271 |
fail: |
| 7272 |
lua_error(L); |
| 7273 |
return SWIG_arg; |
| 7274 |
} |
| 7275 |
|
| 7276 |
|
| 7277 |
static int _wrap_librdf_version_string_get(lua_State* L) { |
| 7278 |
int SWIG_arg = 0; |
| 7279 |
char *result = 0 ; |
| 7280 |
|
| 7281 |
SWIG_check_num_args("librdf_version_string",0,0) |
| 7282 |
result = (char *)(char *)librdf_version_string; |
| 7283 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7284 |
return SWIG_arg; |
| 7285 |
|
| 7286 |
if(0) SWIG_fail; |
| 7287 |
|
| 7288 |
fail: |
| 7289 |
lua_error(L); |
| 7290 |
return SWIG_arg; |
| 7291 |
} |
| 7292 |
|
| 7293 |
|
| 7294 |
static int _wrap_librdf_version_major_get(lua_State* L) { |
| 7295 |
int SWIG_arg = 0; |
| 7296 |
unsigned int result; |
| 7297 |
|
| 7298 |
SWIG_check_num_args("librdf_version_major",0,0) |
| 7299 |
result = (unsigned int)(unsigned int)librdf_version_major; |
| 7300 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7301 |
return SWIG_arg; |
| 7302 |
|
| 7303 |
if(0) SWIG_fail; |
| 7304 |
|
| 7305 |
fail: |
| 7306 |
lua_error(L); |
| 7307 |
return SWIG_arg; |
| 7308 |
} |
| 7309 |
|
| 7310 |
|
| 7311 |
static int _wrap_librdf_version_minor_get(lua_State* L) { |
| 7312 |
int SWIG_arg = 0; |
| 7313 |
unsigned int result; |
| 7314 |
|
| 7315 |
SWIG_check_num_args("librdf_version_minor",0,0) |
| 7316 |
result = (unsigned int)(unsigned int)librdf_version_minor; |
| 7317 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7318 |
return SWIG_arg; |
| 7319 |
|
| 7320 |
if(0) SWIG_fail; |
| 7321 |
|
| 7322 |
fail: |
| 7323 |
lua_error(L); |
| 7324 |
return SWIG_arg; |
| 7325 |
} |
| 7326 |
|
| 7327 |
|
| 7328 |
static int _wrap_librdf_version_release_get(lua_State* L) { |
| 7329 |
int SWIG_arg = 0; |
| 7330 |
unsigned int result; |
| 7331 |
|
| 7332 |
SWIG_check_num_args("librdf_version_release",0,0) |
| 7333 |
result = (unsigned int)(unsigned int)librdf_version_release; |
| 7334 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7335 |
return SWIG_arg; |
| 7336 |
|
| 7337 |
if(0) SWIG_fail; |
| 7338 |
|
| 7339 |
fail: |
| 7340 |
lua_error(L); |
| 7341 |
return SWIG_arg; |
| 7342 |
} |
| 7343 |
|
| 7344 |
|
| 7345 |
static int _wrap_librdf_version_decimal_get(lua_State* L) { |
| 7346 |
int SWIG_arg = 0; |
| 7347 |
unsigned int result; |
| 7348 |
|
| 7349 |
SWIG_check_num_args("librdf_version_decimal",0,0) |
| 7350 |
result = (unsigned int)(unsigned int)librdf_version_decimal; |
| 7351 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7352 |
return SWIG_arg; |
| 7353 |
|
| 7354 |
if(0) SWIG_fail; |
| 7355 |
|
| 7356 |
fail: |
| 7357 |
lua_error(L); |
| 7358 |
return SWIG_arg; |
| 7359 |
} |
| 7360 |
|
| 7361 |
|
| 7362 |
static int _wrap_raptor_version_string_get(lua_State* L) { |
| 7363 |
int SWIG_arg = 0; |
| 7364 |
char *result = 0 ; |
| 7365 |
|
| 7366 |
SWIG_check_num_args("raptor_version_string",0,0) |
| 7367 |
result = (char *)(char *)raptor_version_string; |
| 7368 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7369 |
return SWIG_arg; |
| 7370 |
|
| 7371 |
if(0) SWIG_fail; |
| 7372 |
|
| 7373 |
fail: |
| 7374 |
lua_error(L); |
| 7375 |
return SWIG_arg; |
| 7376 |
} |
| 7377 |
|
| 7378 |
|
| 7379 |
static int _wrap_raptor_version_major_get(lua_State* L) { |
| 7380 |
int SWIG_arg = 0; |
| 7381 |
unsigned int result; |
| 7382 |
|
| 7383 |
SWIG_check_num_args("raptor_version_major",0,0) |
| 7384 |
result = (unsigned int)(unsigned int)raptor_version_major; |
| 7385 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7386 |
return SWIG_arg; |
| 7387 |
|
| 7388 |
if(0) SWIG_fail; |
| 7389 |
|
| 7390 |
fail: |
| 7391 |
lua_error(L); |
| 7392 |
return SWIG_arg; |
| 7393 |
} |
| 7394 |
|
| 7395 |
|
| 7396 |
static int _wrap_raptor_version_minor_get(lua_State* L) { |
| 7397 |
int SWIG_arg = 0; |
| 7398 |
unsigned int result; |
| 7399 |
|
| 7400 |
SWIG_check_num_args("raptor_version_minor",0,0) |
| 7401 |
result = (unsigned int)(unsigned int)raptor_version_minor; |
| 7402 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7403 |
return SWIG_arg; |
| 7404 |
|
| 7405 |
if(0) SWIG_fail; |
| 7406 |
|
| 7407 |
fail: |
| 7408 |
lua_error(L); |
| 7409 |
return SWIG_arg; |
| 7410 |
} |
| 7411 |
|
| 7412 |
|
| 7413 |
static int _wrap_raptor_version_release_get(lua_State* L) { |
| 7414 |
int SWIG_arg = 0; |
| 7415 |
unsigned int result; |
| 7416 |
|
| 7417 |
SWIG_check_num_args("raptor_version_release",0,0) |
| 7418 |
result = (unsigned int)(unsigned int)raptor_version_release; |
| 7419 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7420 |
return SWIG_arg; |
| 7421 |
|
| 7422 |
if(0) SWIG_fail; |
| 7423 |
|
| 7424 |
fail: |
| 7425 |
lua_error(L); |
| 7426 |
return SWIG_arg; |
| 7427 |
} |
| 7428 |
|
| 7429 |
|
| 7430 |
static int _wrap_raptor_version_decimal_get(lua_State* L) { |
| 7431 |
int SWIG_arg = 0; |
| 7432 |
unsigned int result; |
| 7433 |
|
| 7434 |
SWIG_check_num_args("raptor_version_decimal",0,0) |
| 7435 |
result = (unsigned int)(unsigned int)raptor_version_decimal; |
| 7436 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7437 |
return SWIG_arg; |
| 7438 |
|
| 7439 |
if(0) SWIG_fail; |
| 7440 |
|
| 7441 |
fail: |
| 7442 |
lua_error(L); |
| 7443 |
return SWIG_arg; |
| 7444 |
} |
| 7445 |
|
| 7446 |
|
| 7447 |
static int _wrap_rasqal_version_string_get(lua_State* L) { |
| 7448 |
int SWIG_arg = 0; |
| 7449 |
char *result = 0 ; |
| 7450 |
|
| 7451 |
SWIG_check_num_args("rasqal_version_string",0,0) |
| 7452 |
result = (char *)(char *)rasqal_version_string; |
| 7453 |
lua_pushstring(L,(const char *)result); SWIG_arg++; |
| 7454 |
return SWIG_arg; |
| 7455 |
|
| 7456 |
if(0) SWIG_fail; |
| 7457 |
|
| 7458 |
fail: |
| 7459 |
lua_error(L); |
| 7460 |
return SWIG_arg; |
| 7461 |
} |
| 7462 |
|
| 7463 |
|
| 7464 |
static int _wrap_rasqal_version_major_get(lua_State* L) { |
| 7465 |
int SWIG_arg = 0; |
| 7466 |
unsigned int result; |
| 7467 |
|
| 7468 |
SWIG_check_num_args("rasqal_version_major",0,0) |
| 7469 |
result = (unsigned int)(unsigned int)rasqal_version_major; |
| 7470 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7471 |
return SWIG_arg; |
| 7472 |
|
| 7473 |
if(0) SWIG_fail; |
| 7474 |
|
| 7475 |
fail: |
| 7476 |
lua_error(L); |
| 7477 |
return SWIG_arg; |
| 7478 |
} |
| 7479 |
|
| 7480 |
|
| 7481 |
static int _wrap_rasqal_version_minor_get(lua_State* L) { |
| 7482 |
int SWIG_arg = 0; |
| 7483 |
unsigned int result; |
| 7484 |
|
| 7485 |
SWIG_check_num_args("rasqal_version_minor",0,0) |
| 7486 |
result = (unsigned int)(unsigned int)rasqal_version_minor; |
| 7487 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7488 |
return SWIG_arg; |
| 7489 |
|
| 7490 |
if(0) SWIG_fail; |
| 7491 |
|
| 7492 |
fail: |
| 7493 |
lua_error(L); |
| 7494 |
return SWIG_arg; |
| 7495 |
} |
| 7496 |
|
| 7497 |
|
| 7498 |
static int _wrap_rasqal_version_release_get(lua_State* L) { |
| 7499 |
int SWIG_arg = 0; |
| 7500 |
unsigned int result; |
| 7501 |
|
| 7502 |
SWIG_check_num_args("rasqal_version_release",0,0) |
| 7503 |
result = (unsigned int)(unsigned int)rasqal_version_release; |
| 7504 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7505 |
return SWIG_arg; |
| 7506 |
|
| 7507 |
if(0) SWIG_fail; |
| 7508 |
|
| 7509 |
fail: |
| 7510 |
lua_error(L); |
| 7511 |
return SWIG_arg; |
| 7512 |
} |
| 7513 |
|
| 7514 |
|
| 7515 |
static int _wrap_rasqal_version_decimal_get(lua_State* L) { |
| 7516 |
int SWIG_arg = 0; |
| 7517 |
unsigned int result; |
| 7518 |
|
| 7519 |
SWIG_check_num_args("rasqal_version_decimal",0,0) |
| 7520 |
result = (unsigned int)(unsigned int)rasqal_version_decimal; |
| 7521 |
lua_pushnumber(L, (lua_Number) result); SWIG_arg++; |
| 7522 |
return SWIG_arg; |
| 7523 |
|
| 7524 |
if(0) SWIG_fail; |
| 7525 |
|
| 7526 |
fail: |
| 7527 |
lua_error(L); |
| 7528 |
return SWIG_arg; |
| 7529 |
} |
| 7530 |
|
| 7531 |
|
| 7532 |
#ifdef __cplusplus |
| 7533 |
} |
| 7534 |
#endif |
| 7535 |
|
| 7536 |
static const struct luaL_Reg swig_commands[] = { |
| 7537 |
{ "librdf_new_digest", _wrap_librdf_new_digest}, |
| 7538 |
{ "librdf_free_digest", _wrap_librdf_free_digest}, |
| 7539 |
{ "librdf_digest_init", _wrap_librdf_digest_init}, |
| 7540 |
{ "librdf_digest_update", _wrap_librdf_digest_update}, |
| 7541 |
{ "librdf_digest_update_string", _wrap_librdf_digest_update_string}, |
| 7542 |
{ "librdf_digest_final", _wrap_librdf_digest_final}, |
| 7543 |
{ "librdf_digest_to_string", _wrap_librdf_digest_to_string}, |
| 7544 |
{ "librdf_new_hash", _wrap_librdf_new_hash}, |
| 7545 |
{ "librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string}, |
| 7546 |
{ "librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings}, |
| 7547 |
{ "librdf_hash_to_string", _wrap_librdf_hash_to_string}, |
| 7548 |
{ "librdf_free_hash", _wrap_librdf_free_hash}, |
| 7549 |
{ "librdf_new_world", _wrap_librdf_new_world}, |
| 7550 |
{ "librdf_free_world", _wrap_librdf_free_world}, |
| 7551 |
{ "librdf_world_open", _wrap_librdf_world_open}, |
| 7552 |
{ "librdf_world_get_feature", _wrap_librdf_world_get_feature}, |
| 7553 |
{ "librdf_world_set_feature", _wrap_librdf_world_set_feature}, |
| 7554 |
{ "librdf_parser_get_accept_header", _wrap_librdf_parser_get_accept_header}, |
| 7555 |
{ "librdf_world_set_logger", _wrap_librdf_world_set_logger}, |
| 7556 |
{ "librdf_free_iterator", _wrap_librdf_free_iterator}, |
| 7557 |
{ "librdf_iterator_end", _wrap_librdf_iterator_end}, |
| 7558 |
{ "librdf_iterator_get_object", _wrap_librdf_iterator_get_object}, |
| 7559 |
{ "librdf_iterator_get_context", _wrap_librdf_iterator_get_context}, |
| 7560 |
{ "librdf_iterator_next", _wrap_librdf_iterator_next}, |
| 7561 |
{ "librdf_new_uri", _wrap_librdf_new_uri}, |
| 7562 |
{ "librdf_new_uri_from_uri", _wrap_librdf_new_uri_from_uri}, |
| 7563 |
{ "librdf_new_uri_from_filename", _wrap_librdf_new_uri_from_filename}, |
| 7564 |
{ "librdf_free_uri", _wrap_librdf_free_uri}, |
| 7565 |
{ "librdf_uri_to_string", _wrap_librdf_uri_to_string}, |
| 7566 |
{ "librdf_uri_equals", _wrap_librdf_uri_equals}, |
| 7567 |
{ "librdf_uri_compare", _wrap_librdf_uri_compare}, |
| 7568 |
{ "librdf_new_node", _wrap_librdf_new_node}, |
| 7569 |
{ "librdf_new_node_from_uri_string", _wrap_librdf_new_node_from_uri_string}, |
| 7570 |
{ "librdf_new_node_from_uri", _wrap_librdf_new_node_from_uri}, |
| 7571 |
{ "librdf_new_node_from_uri_local_name", _wrap_librdf_new_node_from_uri_local_name}, |
| 7572 |
{ "librdf_new_node_from_normalised_uri_string", _wrap_librdf_new_node_from_normalised_uri_string}, |
| 7573 |
{ "librdf_new_node_from_literal", _wrap_librdf_new_node_from_literal}, |
| 7574 |
{ "librdf_new_node_from_typed_literal", _wrap_librdf_new_node_from_typed_literal}, |
| 7575 |
{ "librdf_new_node_from_node", _wrap_librdf_new_node_from_node}, |
| 7576 |
{ "librdf_new_node_from_blank_identifier", _wrap_librdf_new_node_from_blank_identifier}, |
| 7577 |
{ "librdf_free_node", _wrap_librdf_free_node}, |
| 7578 |
{ "librdf_node_get_uri", _wrap_librdf_node_get_uri}, |
| 7579 |
{ "librdf_node_get_type", _wrap_librdf_node_get_type}, |
| 7580 |
{ "librdf_node_get_literal_value", _wrap_librdf_node_get_literal_value}, |
| 7581 |
{ "librdf_node_get_literal_value_as_latin1", _wrap_librdf_node_get_literal_value_as_latin1}, |
| 7582 |
{ "librdf_node_get_literal_value_language", _wrap_librdf_node_get_literal_value_language}, |
| 7583 |
{ "librdf_node_get_literal_value_datatype_uri", _wrap_librdf_node_get_literal_value_datatype_uri}, |
| 7584 |
{ "librdf_node_get_literal_value_is_wf_xml", _wrap_librdf_node_get_literal_value_is_wf_xml}, |
| 7585 |
{ "librdf_node_get_li_ordinal", _wrap_librdf_node_get_li_ordinal}, |
| 7586 |
{ "librdf_node_to_string", _wrap_librdf_node_to_string}, |
| 7587 |
{ "librdf_node_get_blank_identifier", _wrap_librdf_node_get_blank_identifier}, |
| 7588 |
{ "librdf_node_is_resource", _wrap_librdf_node_is_resource}, |
| 7589 |
{ "librdf_node_is_literal", _wrap_librdf_node_is_literal}, |
| 7590 |
{ "librdf_node_is_blank", _wrap_librdf_node_is_blank}, |
| 7591 |
{ "librdf_node_equals", _wrap_librdf_node_equals}, |
| 7592 |
{ "librdf_new_statement", _wrap_librdf_new_statement}, |
| 7593 |
{ "librdf_new_statement_from_statement", _wrap_librdf_new_statement_from_statement}, |
| 7594 |
{ "librdf_new_statement_from_nodes", _wrap_librdf_new_statement_from_nodes}, |
| 7595 |
{ "librdf_free_statement", _wrap_librdf_free_statement}, |
| 7596 |
{ "librdf_statement_get_subject", _wrap_librdf_statement_get_subject}, |
| 7597 |
{ "librdf_statement_set_subject", _wrap_librdf_statement_set_subject}, |
| 7598 |
{ "librdf_statement_get_predicate", _wrap_librdf_statement_get_predicate}, |
| 7599 |
{ "librdf_statement_set_predicate", _wrap_librdf_statement_set_predicate}, |
| 7600 |
{ "librdf_statement_get_object", _wrap_librdf_statement_get_object}, |
| 7601 |
{ "librdf_statement_set_object", _wrap_librdf_statement_set_object}, |
| 7602 |
{ "librdf_statement_equals", _wrap_librdf_statement_equals}, |
| 7603 |
{ "librdf_statement_match", _wrap_librdf_statement_match}, |
| 7604 |
{ "librdf_statement_to_string", _wrap_librdf_statement_to_string}, |
| 7605 |
{ "librdf_statement_is_complete", _wrap_librdf_statement_is_complete}, |
| 7606 |
{ "librdf_new_model", _wrap_librdf_new_model}, |
| 7607 |
{ "librdf_new_model_with_options", _wrap_librdf_new_model_with_options}, |
| 7608 |
{ "librdf_new_model_from_model", _wrap_librdf_new_model_from_model}, |
| 7609 |
{ "librdf_free_model", _wrap_librdf_free_model}, |
| 7610 |
{ "librdf_model_size", _wrap_librdf_model_size}, |
| 7611 |
{ "librdf_model_add", _wrap_librdf_model_add}, |
| 7612 |
{ "librdf_model_add_string_literal_statement", _wrap_librdf_model_add_string_literal_statement}, |
| 7613 |
{ "librdf_model_add_typed_literal_statement", _wrap_librdf_model_add_typed_literal_statement}, |
| 7614 |
{ "librdf_model_add_statement", _wrap_librdf_model_add_statement}, |
| 7615 |
{ "librdf_model_add_statements", _wrap_librdf_model_add_statements}, |
| 7616 |
{ "librdf_model_remove_statement", _wrap_librdf_model_remove_statement}, |
| 7617 |
{ "librdf_model_contains_statement", _wrap_librdf_model_contains_statement}, |
| 7618 |
{ "librdf_model_as_stream", _wrap_librdf_model_as_stream}, |
| 7619 |
{ "librdf_model_find_statements", _wrap_librdf_model_find_statements}, |
| 7620 |
{ "librdf_model_find_statements_in_context", _wrap_librdf_model_find_statements_in_context}, |
| 7621 |
{ "librdf_model_get_sources", _wrap_librdf_model_get_sources}, |
| 7622 |
{ "librdf_model_get_arcs", _wrap_librdf_model_get_arcs}, |
| 7623 |
{ "librdf_model_get_targets", _wrap_librdf_model_get_targets}, |
| 7624 |
{ "librdf_model_get_source", _wrap_librdf_model_get_source}, |
| 7625 |
{ "librdf_model_get_arc", _wrap_librdf_model_get_arc}, |
| 7626 |
{ "librdf_model_get_arcs_out", _wrap_librdf_model_get_arcs_out}, |
| 7627 |
{ "librdf_model_get_arcs_in", _wrap_librdf_model_get_arcs_in}, |
| 7628 |
{ "librdf_model_has_arc_in", _wrap_librdf_model_has_arc_in}, |
| 7629 |
{ "librdf_model_has_arc_out", _wrap_librdf_model_has_arc_out}, |
| 7630 |
{ "librdf_model_get_target", _wrap_librdf_model_get_target}, |
| 7631 |
{ "librdf_model_context_add_statement", _wrap_librdf_model_context_add_statement}, |
| 7632 |
{ "librdf_model_context_add_statements", _wrap_librdf_model_context_add_statements}, |
| 7633 |
{ "librdf_model_context_remove_statement", _wrap_librdf_model_context_remove_statement}, |
| 7634 |
{ "librdf_model_context_remove_statements", _wrap_librdf_model_context_remove_statements}, |
| 7635 |
{ "librdf_model_context_as_stream", _wrap_librdf_model_context_as_stream}, |
| 7636 |
{ "librdf_model_sync", _wrap_librdf_model_sync}, |
| 7637 |
{ "librdf_model_get_contexts", _wrap_librdf_model_get_contexts}, |
| 7638 |
{ "librdf_model_contains_context", _wrap_librdf_model_contains_context}, |
| 7639 |
{ "librdf_model_get_feature", _wrap_librdf_model_get_feature}, |
| 7640 |
{ "librdf_model_set_feature", _wrap_librdf_model_set_feature}, |
| 7641 |
{ "librdf_model_load", _wrap_librdf_model_load}, |
| 7642 |
{ "librdf_model_query_execute", _wrap_librdf_model_query_execute}, |
| 7643 |
{ "librdf_model_to_string", _wrap_librdf_model_to_string}, |
| 7644 |
{ "librdf_model_transaction_start", _wrap_librdf_model_transaction_start}, |
| 7645 |
{ "librdf_model_transaction_commit", _wrap_librdf_model_transaction_commit}, |
| 7646 |
{ "librdf_model_transaction_rollback", _wrap_librdf_model_transaction_rollback}, |
| 7647 |
{ "librdf_new_storage", _wrap_librdf_new_storage}, |
| 7648 |
{ "librdf_new_storage_from_storage", _wrap_librdf_new_storage_from_storage}, |
| 7649 |
{ "librdf_free_storage", _wrap_librdf_free_storage}, |
| 7650 |
{ "librdf_parser_check_name", _wrap_librdf_parser_check_name}, |
| 7651 |
{ "librdf_new_parser", _wrap_librdf_new_parser}, |
| 7652 |
{ "librdf_free_parser", _wrap_librdf_free_parser}, |
| 7653 |
{ "librdf_parser_parse_as_stream", _wrap_librdf_parser_parse_as_stream}, |
| 7654 |
{ "librdf_parser_parse_into_model", _wrap_librdf_parser_parse_into_model}, |
| 7655 |
{ "librdf_parser_parse_string_as_stream", _wrap_librdf_parser_parse_string_as_stream}, |
| 7656 |
{ "librdf_parser_parse_string_into_model", _wrap_librdf_parser_parse_string_into_model}, |
| 7657 |
{ "librdf_parser_parse_counted_string_as_stream", _wrap_librdf_parser_parse_counted_string_as_stream}, |
| 7658 |
{ "librdf_parser_parse_counted_string_into_model", _wrap_librdf_parser_parse_counted_string_into_model}, |
| 7659 |
{ "librdf_parser_get_feature", _wrap_librdf_parser_get_feature}, |
| 7660 |
{ "librdf_parser_set_feature", _wrap_librdf_parser_set_feature}, |
| 7661 |
{ "librdf_parser_guess_name", _wrap_librdf_parser_guess_name}, |
| 7662 |
{ "librdf_parser_guess_name2", _wrap_librdf_parser_guess_name2}, |
| 7663 |
{ "librdf_parser_get_namespaces_seen_prefix", _wrap_librdf_parser_get_namespaces_seen_prefix}, |
| 7664 |
{ "librdf_parser_get_namespaces_seen_uri", _wrap_librdf_parser_get_namespaces_seen_uri}, |
| 7665 |
{ "librdf_parser_get_namespaces_seen_count", _wrap_librdf_parser_get_namespaces_seen_count}, |
| 7666 |
{ "librdf_new_query", _wrap_librdf_new_query}, |
| 7667 |
{ "librdf_new_query_from_query", _wrap_librdf_new_query_from_query}, |
| 7668 |
{ "librdf_free_query", _wrap_librdf_free_query}, |
| 7669 |
{ "librdf_query_execute", _wrap_librdf_query_execute}, |
| 7670 |
{ "librdf_query_get_limit", _wrap_librdf_query_get_limit}, |
| 7671 |
{ "librdf_query_set_limit", _wrap_librdf_query_set_limit}, |
| 7672 |
{ "librdf_query_get_offset", _wrap_librdf_query_get_offset}, |
| 7673 |
{ "librdf_query_set_offset", _wrap_librdf_query_set_offset}, |
| 7674 |
{ "librdf_query_results_as_stream", _wrap_librdf_query_results_as_stream}, |
| 7675 |
{ "librdf_query_results_get_count", _wrap_librdf_query_results_get_count}, |
| 7676 |
{ "librdf_query_results_next", _wrap_librdf_query_results_next}, |
| 7677 |
{ "librdf_query_results_finished", _wrap_librdf_query_results_finished}, |
| 7678 |
{ "librdf_query_results_get_binding_value", _wrap_librdf_query_results_get_binding_value}, |
| 7679 |
{ "librdf_query_results_get_binding_name", _wrap_librdf_query_results_get_binding_name}, |
| 7680 |
{ "librdf_query_results_get_binding_value_by_name", _wrap_librdf_query_results_get_binding_value_by_name}, |
| 7681 |
{ "librdf_query_results_get_bindings_count", _wrap_librdf_query_results_get_bindings_count}, |
| 7682 |
{ "librdf_query_results_to_file", _wrap_librdf_query_results_to_file}, |
| 7683 |
{ "librdf_query_results_to_file2", _wrap_librdf_query_results_to_file2}, |
| 7684 |
{ "librdf_query_results_to_string", _wrap_librdf_query_results_to_string}, |
| 7685 |
{ "librdf_query_results_to_string2", _wrap_librdf_query_results_to_string2}, |
| 7686 |
{ "librdf_free_query_results", _wrap_librdf_free_query_results}, |
| 7687 |
{ "librdf_query_results_is_bindings", _wrap_librdf_query_results_is_bindings}, |
| 7688 |
{ "librdf_query_results_is_boolean", _wrap_librdf_query_results_is_boolean}, |
| 7689 |
{ "librdf_query_results_is_graph", _wrap_librdf_query_results_is_graph}, |
| 7690 |
{ "librdf_query_results_is_syntax", _wrap_librdf_query_results_is_syntax}, |
| 7691 |
{ "librdf_query_results_get_boolean", _wrap_librdf_query_results_get_boolean}, |
| 7692 |
{ "librdf_serializer_check_name", _wrap_librdf_serializer_check_name}, |
| 7693 |
{ "librdf_new_serializer", _wrap_librdf_new_serializer}, |
| 7694 |
{ "librdf_free_serializer", _wrap_librdf_free_serializer}, |
| 7695 |
{ "librdf_serializer_serialize_stream_to_file", _wrap_librdf_serializer_serialize_stream_to_file}, |
| 7696 |
{ "librdf_serializer_serialize_model_to_file", _wrap_librdf_serializer_serialize_model_to_file}, |
| 7697 |
{ "librdf_serializer_serialize_stream_to_string", _wrap_librdf_serializer_serialize_stream_to_string}, |
| 7698 |
{ "librdf_serializer_serialize_model_to_string", _wrap_librdf_serializer_serialize_model_to_string}, |
| 7699 |
{ "librdf_serializer_get_feature", _wrap_librdf_serializer_get_feature}, |
| 7700 |
{ "librdf_serializer_set_feature", _wrap_librdf_serializer_set_feature}, |
| 7701 |
{ "librdf_serializer_set_namespace", _wrap_librdf_serializer_set_namespace}, |
| 7702 |
{ "librdf_free_stream", _wrap_librdf_free_stream}, |
| 7703 |
{ "librdf_stream_end", _wrap_librdf_stream_end}, |
| 7704 |
{ "librdf_stream_next", _wrap_librdf_stream_next}, |
| 7705 |
{ "librdf_stream_get_object", _wrap_librdf_stream_get_object}, |
| 7706 |
{ "librdf_stream_get_context", _wrap_librdf_stream_get_context}, |
| 7707 |
{ "librdf_log_message_code", _wrap_librdf_log_message_code}, |
| 7708 |
{ "librdf_log_message_level", _wrap_librdf_log_message_level}, |
| 7709 |
{ "librdf_log_message_facility", _wrap_librdf_log_message_facility}, |
| 7710 |
{ "librdf_log_message_message", _wrap_librdf_log_message_message}, |
| 7711 |
{ "librdf_log_message_locator", _wrap_librdf_log_message_locator}, |
| 7712 |
{ "raptor_locator_line", _wrap_raptor_locator_line}, |
| 7713 |
{ "raptor_locator_column", _wrap_raptor_locator_column}, |
| 7714 |
{ "raptor_locator_byte", _wrap_raptor_locator_byte}, |
| 7715 |
{ "raptor_locator_file", _wrap_raptor_locator_file}, |
| 7716 |
{ "raptor_locator_uri", _wrap_raptor_locator_uri}, |
| 7717 |
{ "librdf_internal_test_error", _wrap_librdf_internal_test_error}, |
| 7718 |
{ "librdf_internal_test_warning", _wrap_librdf_internal_test_warning}, |
| 7719 |
{0,0} |
| 7720 |
}; |
| 7721 |
|
| 7722 |
static swig_lua_var_info swig_variables[] = { |
| 7723 |
{ "librdf_short_copyright_string", _wrap_librdf_short_copyright_string_get, SWIG_Lua_set_immutable }, |
| 7724 |
{ "librdf_copyright_string", _wrap_librdf_copyright_string_get, SWIG_Lua_set_immutable }, |
| 7725 |
{ "librdf_version_string", _wrap_librdf_version_string_get, SWIG_Lua_set_immutable }, |
| 7726 |
{ "librdf_version_major", _wrap_librdf_version_major_get, SWIG_Lua_set_immutable }, |
| 7727 |
{ "librdf_version_minor", _wrap_librdf_version_minor_get, SWIG_Lua_set_immutable }, |
| 7728 |
{ "librdf_version_release", _wrap_librdf_version_release_get, SWIG_Lua_set_immutable }, |
| 7729 |
{ "librdf_version_decimal", _wrap_librdf_version_decimal_get, SWIG_Lua_set_immutable }, |
| 7730 |
{ "raptor_version_string", _wrap_raptor_version_string_get, SWIG_Lua_set_immutable }, |
| 7731 |
{ "raptor_version_major", _wrap_raptor_version_major_get, SWIG_Lua_set_immutable }, |
| 7732 |
{ "raptor_version_minor", _wrap_raptor_version_minor_get, SWIG_Lua_set_immutable }, |
| 7733 |
{ "raptor_version_release", _wrap_raptor_version_release_get, SWIG_Lua_set_immutable }, |
| 7734 |
{ "raptor_version_decimal", _wrap_raptor_version_decimal_get, SWIG_Lua_set_immutable }, |
| 7735 |
{ "rasqal_version_string", _wrap_rasqal_version_string_get, SWIG_Lua_set_immutable }, |
| 7736 |
{ "rasqal_version_major", _wrap_rasqal_version_major_get, SWIG_Lua_set_immutable }, |
| 7737 |
{ "rasqal_version_minor", _wrap_rasqal_version_minor_get, SWIG_Lua_set_immutable }, |
| 7738 |
{ "rasqal_version_release", _wrap_rasqal_version_release_get, SWIG_Lua_set_immutable }, |
| 7739 |
{ "rasqal_version_decimal", _wrap_rasqal_version_decimal_get, SWIG_Lua_set_immutable }, |
| 7740 |
{0,0,0} |
| 7741 |
}; |
| 7742 |
|
| 7743 |
static swig_lua_const_info swig_constants[] = { |
| 7744 |
{0,0,0,0,0,0} |
| 7745 |
}; |
| 7746 |
|
| 7747 |
|
| 7748 |
|
| 7749 |
static swig_type_info _swigt__p_librdf_digest_s = {"_p_librdf_digest_s", "struct librdf_digest_s *|librdf_digest *", 0, 0, (void*)0, 0}; |
| 7750 |
static swig_type_info _swigt__p_librdf_hash_s = {"_p_librdf_hash_s", "librdf_hash *|struct librdf_hash_s *", 0, 0, (void*)0, 0}; |
| 7751 |
static swig_type_info _swigt__p_librdf_iterator_s = {"_p_librdf_iterator_s", "struct librdf_iterator_s *|librdf_iterator *", 0, 0, (void*)0, 0}; |
| 7752 |
static swig_type_info _swigt__p_librdf_log_func = {"_p_librdf_log_func", "librdf_log_func *", 0, 0, (void*)0, 0}; |
| 7753 |
static swig_type_info _swigt__p_librdf_log_message = {"_p_librdf_log_message", "librdf_log_message *", 0, 0, (void*)0, 0}; |
| 7754 |
static swig_type_info _swigt__p_librdf_model_s = {"_p_librdf_model_s", "struct librdf_model_s *|librdf_model *", 0, 0, (void*)0, 0}; |
| 7755 |
static swig_type_info _swigt__p_librdf_node_s = {"_p_librdf_node_s", "struct librdf_node_s *|librdf_node *", 0, 0, (void*)0, 0}; |
| 7756 |
static swig_type_info _swigt__p_librdf_parser_s = {"_p_librdf_parser_s", "librdf_parser *|struct librdf_parser_s *", 0, 0, (void*)0, 0}; |
| 7757 |
static swig_type_info _swigt__p_librdf_query = {"_p_librdf_query", "librdf_query *", 0, 0, (void*)0, 0}; |
| 7758 |
static swig_type_info _swigt__p_librdf_query_results = {"_p_librdf_query_results", "librdf_query_results *", 0, 0, (void*)0, 0}; |
| 7759 |
static swig_type_info _swigt__p_librdf_serializer_s = {"_p_librdf_serializer_s", "struct librdf_serializer_s *|librdf_serializer *", 0, 0, (void*)0, 0}; |
| 7760 |
static swig_type_info _swigt__p_librdf_statement_s = {"_p_librdf_statement_s", "struct librdf_statement_s *|librdf_statement *", 0, 0, (void*)0, 0}; |
| 7761 |
static swig_type_info _swigt__p_librdf_storage_s = {"_p_librdf_storage_s", "struct librdf_storage_s *|librdf_storage *", 0, 0, (void*)0, 0}; |
| 7762 |
static swig_type_info _swigt__p_librdf_stream_s = {"_p_librdf_stream_s", "struct librdf_stream_s *|librdf_stream *", 0, 0, (void*)0, 0}; |
| 7763 |
static swig_type_info _swigt__p_librdf_uri_s = {"_p_librdf_uri_s", "librdf_uri *|struct librdf_uri_s *", 0, 0, (void*)0, 0}; |
| 7764 |
static swig_type_info _swigt__p_librdf_world_s = {"_p_librdf_world_s", "struct librdf_world_s *|librdf_world *", 0, 0, (void*)0, 0}; |
| 7765 |
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; |
| 7766 |
static swig_type_info _swigt__p_raptor_locator = {"_p_raptor_locator", "raptor_locator *", 0, 0, (void*)0, 0}; |
| 7767 |
|
| 7768 |
static swig_type_info *swig_type_initial[] = { |
| 7769 |
&_swigt__p_librdf_digest_s, |
| 7770 |
&_swigt__p_librdf_hash_s, |
| 7771 |
&_swigt__p_librdf_iterator_s, |
| 7772 |
&_swigt__p_librdf_log_func, |
| 7773 |
&_swigt__p_librdf_log_message, |
| 7774 |
&_swigt__p_librdf_model_s, |
| 7775 |
&_swigt__p_librdf_node_s, |
| 7776 |
&_swigt__p_librdf_parser_s, |
| 7777 |
&_swigt__p_librdf_query, |
| 7778 |
&_swigt__p_librdf_query_results, |
| 7779 |
&_swigt__p_librdf_serializer_s, |
| 7780 |
&_swigt__p_librdf_statement_s, |
| 7781 |
&_swigt__p_librdf_storage_s, |
| 7782 |
&_swigt__p_librdf_stream_s, |
| 7783 |
&_swigt__p_librdf_uri_s, |
| 7784 |
&_swigt__p_librdf_world_s, |
| 7785 |
&_swigt__p_p_char, |
| 7786 |
&_swigt__p_raptor_locator, |
| 7787 |
}; |
| 7788 |
|
| 7789 |
static swig_cast_info _swigc__p_librdf_digest_s[] = { {&_swigt__p_librdf_digest_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7790 |
static swig_cast_info _swigc__p_librdf_hash_s[] = { {&_swigt__p_librdf_hash_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7791 |
static swig_cast_info _swigc__p_librdf_iterator_s[] = { {&_swigt__p_librdf_iterator_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7792 |
static swig_cast_info _swigc__p_librdf_log_func[] = { {&_swigt__p_librdf_log_func, 0, 0, 0},{0, 0, 0, 0}}; |
| 7793 |
static swig_cast_info _swigc__p_librdf_log_message[] = { {&_swigt__p_librdf_log_message, 0, 0, 0},{0, 0, 0, 0}}; |
| 7794 |
static swig_cast_info _swigc__p_librdf_model_s[] = { {&_swigt__p_librdf_model_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7795 |
static swig_cast_info _swigc__p_librdf_node_s[] = { {&_swigt__p_librdf_node_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7796 |
static swig_cast_info _swigc__p_librdf_parser_s[] = { {&_swigt__p_librdf_parser_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7797 |
static swig_cast_info _swigc__p_librdf_query[] = { {&_swigt__p_librdf_query, 0, 0, 0},{0, 0, 0, 0}}; |
| 7798 |
static swig_cast_info _swigc__p_librdf_query_results[] = { {&_swigt__p_librdf_query_results, 0, 0, 0},{0, 0, 0, 0}}; |
| 7799 |
static swig_cast_info _swigc__p_librdf_serializer_s[] = { {&_swigt__p_librdf_serializer_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7800 |
static swig_cast_info _swigc__p_librdf_statement_s[] = { {&_swigt__p_librdf_statement_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7801 |
static swig_cast_info _swigc__p_librdf_storage_s[] = { {&_swigt__p_librdf_storage_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7802 |
static swig_cast_info _swigc__p_librdf_stream_s[] = { {&_swigt__p_librdf_stream_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7803 |
static swig_cast_info _swigc__p_librdf_uri_s[] = { {&_swigt__p_librdf_uri_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7804 |
static swig_cast_info _swigc__p_librdf_world_s[] = { {&_swigt__p_librdf_world_s, 0, 0, 0},{0, 0, 0, 0}}; |
| 7805 |
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; |
| 7806 |
static swig_cast_info _swigc__p_raptor_locator[] = { {&_swigt__p_raptor_locator, 0, 0, 0},{0, 0, 0, 0}}; |
| 7807 |
|
| 7808 |
static swig_cast_info *swig_cast_initial[] = { |
| 7809 |
_swigc__p_librdf_digest_s, |
| 7810 |
_swigc__p_librdf_hash_s, |
| 7811 |
_swigc__p_librdf_iterator_s, |
| 7812 |
_swigc__p_librdf_log_func, |
| 7813 |
_swigc__p_librdf_log_message, |
| 7814 |
_swigc__p_librdf_model_s, |
| 7815 |
_swigc__p_librdf_node_s, |
| 7816 |
_swigc__p_librdf_parser_s, |
| 7817 |
_swigc__p_librdf_query, |
| 7818 |
_swigc__p_librdf_query_results, |
| 7819 |
_swigc__p_librdf_serializer_s, |
| 7820 |
_swigc__p_librdf_statement_s, |
| 7821 |
_swigc__p_librdf_storage_s, |
| 7822 |
_swigc__p_librdf_stream_s, |
| 7823 |
_swigc__p_librdf_uri_s, |
| 7824 |
_swigc__p_librdf_world_s, |
| 7825 |
_swigc__p_p_char, |
| 7826 |
_swigc__p_raptor_locator, |
| 7827 |
}; |
| 7828 |
|
| 7829 |
|
| 7830 |
|
| 7831 |
|
| 7832 |
|
| 7833 |
|
| 7834 |
|
| 7835 |
|
| 7836 |
|
| 7837 |
|
| 7838 |
|
| 7839 |
|
| 7840 |
|
| 7841 |
|
| 7842 |
|
| 7843 |
|
| 7844 |
|
| 7845 |
|
| 7846 |
|
| 7847 |
|
| 7848 |
|
| 7849 |
|
| 7850 |
|
| 7851 |
|
| 7852 |
|
| 7853 |
|
| 7854 |
|
| 7855 |
|
| 7856 |
|
| 7857 |
|
| 7858 |
|
| 7859 |
|
| 7860 |
|
| 7861 |
|
| 7862 |
|
| 7863 |
|
| 7864 |
|
| 7865 |
|
| 7866 |
|
| 7867 |
|
| 7868 |
|
| 7869 |
|
| 7870 |
|
| 7871 |
|
| 7872 |
|
| 7873 |
#ifdef __cplusplus |
| 7874 |
extern "C" { |
| 7875 |
#if 0 |
| 7876 |
} |
| 7877 |
#endif |
| 7878 |
#endif |
| 7879 |
|
| 7880 |
#if 0 |
| 7881 |
#define SWIGRUNTIME_DEBUG |
| 7882 |
#endif |
| 7883 |
|
| 7884 |
|
| 7885 |
SWIGRUNTIME void |
| 7886 |
SWIG_InitializeModule(void *clientdata) { |
| 7887 |
size_t i; |
| 7888 |
swig_module_info *module_head, *iter; |
| 7889 |
int found, init; |
| 7890 |
|
| 7891 |
clientdata = clientdata; |
| 7892 |
|
| 7893 |
|
| 7894 |
if (swig_module.next==0) { |
| 7895 |
|
| 7896 |
swig_module.type_initial = swig_type_initial; |
| 7897 |
swig_module.cast_initial = swig_cast_initial; |
| 7898 |
swig_module.next = &swig_module; |
| 7899 |
init = 1; |
| 7900 |
} else { |
| 7901 |
init = 0; |
| 7902 |
} |
| 7903 |
|
| 7904 |
|
| 7905 |
module_head = SWIG_GetModule(clientdata); |
| 7906 |
if (!module_head) { |
| 7907 |
|
| 7908 |
|
| 7909 |
SWIG_SetModule(clientdata, &swig_module); |
| 7910 |
module_head = &swig_module; |
| 7911 |
} else { |
| 7912 |
|
| 7913 |
found=0; |
| 7914 |
iter=module_head; |
| 7915 |
do { |
| 7916 |
if (iter==&swig_module) { |
| 7917 |
found=1; |
| 7918 |
break; |
| 7919 |
} |
| 7920 |
iter=iter->next; |
| 7921 |
} while (iter!= module_head); |
| 7922 |
|
| 7923 |
|
| 7924 |
if (found) return; |
| 7925 |
|
| 7926 |
swig_module.next = module_head->next; |
| 7927 |
module_head->next = &swig_module; |
| 7928 |
} |
| 7929 |
|
| 7930 |
|
| 7931 |
|
| 7932 |
|
| 7933 |
|
| 7934 |
if (init == 0) return; |
| 7935 |
|
| 7936 |
|
| 7937 |
#ifdef SWIGRUNTIME_DEBUG |
| 7938 |
printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
| 7939 |
#endif |
| 7940 |
for (i = 0; i < swig_module.size; ++i) { |
| 7941 |
swig_type_info *type = 0; |
| 7942 |
swig_type_info *ret; |
| 7943 |
swig_cast_info *cast; |
| 7944 |
|
| 7945 |
#ifdef SWIGRUNTIME_DEBUG |
| 7946 |
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
| 7947 |
#endif |
| 7948 |
|
| 7949 |
|
| 7950 |
if (swig_module.next != &swig_module) { |
| 7951 |
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
| 7952 |
} |
| 7953 |
if (type) { |
| 7954 |
|
| 7955 |
#ifdef SWIGRUNTIME_DEBUG |
| 7956 |
printf("SWIG_InitializeModule: found type %s\n", type->name); |
| 7957 |
#endif |
| 7958 |
if (swig_module.type_initial[i]->clientdata) { |
| 7959 |
type->clientdata = swig_module.type_initial[i]->clientdata; |
| 7960 |
#ifdef SWIGRUNTIME_DEBUG |
| 7961 |
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
| 7962 |
#endif |
| 7963 |
} |
| 7964 |
} else { |
| 7965 |
type = swig_module.type_initial[i]; |
| 7966 |
} |
| 7967 |
|
| 7968 |
|
| 7969 |
cast = swig_module.cast_initial[i]; |
| 7970 |
while (cast->type) { |
| 7971 |
|
| 7972 |
|
| 7973 |
ret = 0; |
| 7974 |
#ifdef SWIGRUNTIME_DEBUG |
| 7975 |
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
| 7976 |
#endif |
| 7977 |
if (swig_module.next != &swig_module) { |
| 7978 |
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
| 7979 |
#ifdef SWIGRUNTIME_DEBUG |
| 7980 |
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
| 7981 |
#endif |
| 7982 |
} |
| 7983 |
if (ret) { |
| 7984 |
if (type == swig_module.type_initial[i]) { |
| 7985 |
#ifdef SWIGRUNTIME_DEBUG |
| 7986 |
printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
| 7987 |
#endif |
| 7988 |
cast->type = ret; |
| 7989 |
ret = 0; |
| 7990 |
} else { |
| 7991 |
|
| 7992 |
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
| 7993 |
#ifdef SWIGRUNTIME_DEBUG |
| 7994 |
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
| 7995 |
#endif |
| 7996 |
if (!ocast) ret = 0; |
| 7997 |
} |
| 7998 |
} |
| 7999 |
|
| 8000 |
if (!ret) { |
| 8001 |
#ifdef SWIGRUNTIME_DEBUG |
| 8002 |
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
| 8003 |
#endif |
| 8004 |
if (type->cast) { |
| 8005 |
type->cast->prev = cast; |
| 8006 |
cast->next = type->cast; |
| 8007 |
} |
| 8008 |
type->cast = cast; |
| 8009 |
} |
| 8010 |
cast++; |
| 8011 |
} |
| 8012 |
|
| 8013 |
swig_module.types[i] = type; |
| 8014 |
} |
| 8015 |
swig_module.types[i] = 0; |
| 8016 |
|
| 8017 |
#ifdef SWIGRUNTIME_DEBUG |
| 8018 |
printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 8019 |
for (i = 0; i < swig_module.size; ++i) { |
| 8020 |
int j = 0; |
| 8021 |
swig_cast_info *cast = swig_module.cast_initial[i]; |
| 8022 |
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
| 8023 |
while (cast->type) { |
| 8024 |
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
| 8025 |
cast++; |
| 8026 |
++j; |
| 8027 |
} |
| 8028 |
printf("---- Total casts: %d\n",j); |
| 8029 |
} |
| 8030 |
printf("**** SWIG_InitializeModule: Cast List ******\n"); |
| 8031 |
#endif |
| 8032 |
} |
| 8033 |
|
| 8034 |
|
| 8035 |
|
| 8036 |
|
| 8037 |
|
| 8038 |
|
| 8039 |
SWIGRUNTIME void |
| 8040 |
SWIG_PropagateClientData(void) { |
| 8041 |
size_t i; |
| 8042 |
swig_cast_info *equiv; |
| 8043 |
static int init_run = 0; |
| 8044 |
|
| 8045 |
if (init_run) return; |
| 8046 |
init_run = 1; |
| 8047 |
|
| 8048 |
for (i = 0; i < swig_module.size; i++) { |
| 8049 |
if (swig_module.types[i]->clientdata) { |
| 8050 |
equiv = swig_module.types[i]->cast; |
| 8051 |
while (equiv) { |
| 8052 |
if (!equiv->converter) { |
| 8053 |
if (equiv->type && !equiv->type->clientdata) |
| 8054 |
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
| 8055 |
} |
| 8056 |
equiv = equiv->next; |
| 8057 |
} |
| 8058 |
} |
| 8059 |
} |
| 8060 |
} |
| 8061 |
|
| 8062 |
#ifdef __cplusplus |
| 8063 |
#if 0 |
| 8064 |
{ |
| 8065 |
#endif |
| 8066 |
} |
| 8067 |
#endif |
| 8068 |
|
| 8069 |
|
| 8070 |
|
| 8071 |
|
| 8072 |
void SWIG_init_user(lua_State* L ); |
| 8073 |
|
| 8074 |
#ifdef __cplusplus |
| 8075 |
extern "C" { |
| 8076 |
#endif |
| 8077 |
|
| 8078 |
|
| 8079 |
|
| 8080 |
|
| 8081 |
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) |
| 8082 |
LUALIB_API int SWIG_init(lua_State* L) |
| 8083 |
#else |
| 8084 |
SWIGEXPORT int SWIG_init(lua_State* L) |
| 8085 |
#endif |
| 8086 |
{ |
| 8087 |
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) |
| 8088 |
int i; |
| 8089 |
|
| 8090 |
lua_pushglobaltable (L); |
| 8091 |
|
| 8092 |
SWIG_InitializeModule((void*)L); |
| 8093 |
SWIG_PropagateClientData(); |
| 8094 |
#endif |
| 8095 |
|
| 8096 |
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) |
| 8097 |
|
| 8098 |
SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); |
| 8099 |
SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); |
| 8100 |
|
| 8101 |
SWIG_Lua_module_begin(L,SWIG_name); |
| 8102 |
|
| 8103 |
for (i = 0; swig_commands[i].name; i++){ |
| 8104 |
SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); |
| 8105 |
} |
| 8106 |
|
| 8107 |
for (i = 0; swig_variables[i].name; i++){ |
| 8108 |
SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); |
| 8109 |
} |
| 8110 |
#endif |
| 8111 |
|
| 8112 |
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) |
| 8113 |
|
| 8114 |
for (i = 0; swig_types[i]; i++){ |
| 8115 |
if (swig_types[i]->clientdata){ |
| 8116 |
SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); |
| 8117 |
} |
| 8118 |
} |
| 8119 |
|
| 8120 |
for (i = 0; swig_types[i]; i++){ |
| 8121 |
if (swig_types[i]->clientdata){ |
| 8122 |
SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); |
| 8123 |
} |
| 8124 |
} |
| 8125 |
#endif |
| 8126 |
|
| 8127 |
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) |
| 8128 |
|
| 8129 |
SWIG_Lua_InstallConstants(L,swig_constants); |
| 8130 |
#endif |
| 8131 |
|
| 8132 |
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) |
| 8133 |
|
| 8134 |
SWIG_init_user(L); |
| 8135 |
|
| 8136 |
|
| 8137 |
|
| 8138 |
|
| 8139 |
return 1; |
| 8140 |
#else |
| 8141 |
return 0; |
| 8142 |
#endif |
| 8143 |
} |
| 8144 |
|
| 8145 |
#ifdef __cplusplus |
| 8146 |
} |
| 8147 |
#endif |
| 8148 |
|
| 8149 |
|
| 8150 |
const char* SWIG_LUACODE= |
| 8151 |
""; |
| 8152 |
|
| 8153 |
void SWIG_init_user(lua_State* L) |
| 8154 |
{ |
| 8155 |
|
| 8156 |
#ifdef REDLAND_INIT_I |
| 8157 |
#include <redland-init.i> |
| 8158 |
#endif |
| 8159 |
|
| 8160 |
|
| 8161 |
SWIG_Lua_dostring(L,SWIG_LUACODE); |
| 8162 |
} |
| 8163 |
|