00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #define SWIGPERL
00012 #define SWIG_CASTRANK_MODE
00013
00014 #ifdef __cplusplus
00015 template<typename T> class SwigValueWrapper {
00016 T *tt;
00017 public:
00018 SwigValueWrapper() : tt(0) { }
00019 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
00020 SwigValueWrapper(const T& t) : tt(new T(t)) { }
00021 ~SwigValueWrapper() { delete tt; }
00022 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
00023 operator T&() const { return *tt; }
00024 T *operator&() { return tt; }
00025 private:
00026 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
00027 };
00028
00029 template <typename T> T SwigValueInit() {
00030 return T();
00031 }
00032 #endif
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef SWIGTEMPLATEDISAMBIGUATOR
00041 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
00042 # define SWIGTEMPLATEDISAMBIGUATOR template
00043 # elif defined(__HP_aCC)
00044
00045
00046 # define SWIGTEMPLATEDISAMBIGUATOR template
00047 # else
00048 # define SWIGTEMPLATEDISAMBIGUATOR
00049 # endif
00050 #endif
00051
00052
00053 #ifndef SWIGINLINE
00054 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
00055 # define SWIGINLINE inline
00056 # else
00057 # define SWIGINLINE
00058 # endif
00059 #endif
00060
00061
00062 #ifndef SWIGUNUSED
00063 # if defined(__GNUC__)
00064 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
00065 # define SWIGUNUSED __attribute__ ((__unused__))
00066 # else
00067 # define SWIGUNUSED
00068 # endif
00069 # elif defined(__ICC)
00070 # define SWIGUNUSED __attribute__ ((__unused__))
00071 # else
00072 # define SWIGUNUSED
00073 # endif
00074 #endif
00075
00076 #ifndef SWIGUNUSEDPARM
00077 # ifdef __cplusplus
00078 # define SWIGUNUSEDPARM(p)
00079 # else
00080 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
00081 # endif
00082 #endif
00083
00084
00085 #ifndef SWIGINTERN
00086 # define SWIGINTERN static SWIGUNUSED
00087 #endif
00088
00089
00090 #ifndef SWIGINTERNINLINE
00091 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
00092 #endif
00093
00094
00095 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
00096 # ifndef GCC_HASCLASSVISIBILITY
00097 # define GCC_HASCLASSVISIBILITY
00098 # endif
00099 #endif
00100
00101 #ifndef SWIGEXPORT
00102 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00103 # if defined(STATIC_LINKED)
00104 # define SWIGEXPORT
00105 # else
00106 # define SWIGEXPORT __declspec(dllexport)
00107 # endif
00108 # else
00109 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
00110 # define SWIGEXPORT __attribute__ ((visibility("default")))
00111 # else
00112 # define SWIGEXPORT
00113 # endif
00114 # endif
00115 #endif
00116
00117
00118 #ifndef SWIGSTDCALL
00119 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00120 # define SWIGSTDCALL __stdcall
00121 # else
00122 # define SWIGSTDCALL
00123 # endif
00124 #endif
00125
00126
00127 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
00128 # define _CRT_SECURE_NO_DEPRECATE
00129 #endif
00130
00131
00132 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
00133 # define _SCL_SECURE_NO_DEPRECATE
00134 #endif
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146 #define SWIG_RUNTIME_VERSION "4"
00147
00148
00149 #ifdef SWIG_TYPE_TABLE
00150 # define SWIG_QUOTE_STRING(x) #x
00151 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
00152 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
00153 #else
00154 # define SWIG_TYPE_TABLE_NAME
00155 #endif
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166 #ifndef SWIGRUNTIME
00167 # define SWIGRUNTIME SWIGINTERN
00168 #endif
00169
00170 #ifndef SWIGRUNTIMEINLINE
00171 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
00172 #endif
00173
00174
00175 #ifndef SWIG_BUFFER_SIZE
00176 # define SWIG_BUFFER_SIZE 1024
00177 #endif
00178
00179
00180 #define SWIG_POINTER_DISOWN 0x1
00181 #define SWIG_CAST_NEW_MEMORY 0x2
00182
00183
00184 #define SWIG_POINTER_OWN 0x1
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267 #define SWIG_OK (0)
00268 #define SWIG_ERROR (-1)
00269 #define SWIG_IsOK(r) (r >= 0)
00270 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
00271
00272
00273 #define SWIG_CASTRANKLIMIT (1 << 8)
00274
00275 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
00276
00277 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
00278
00279 #define SWIG_BADOBJ (SWIG_ERROR)
00280 #define SWIG_OLDOBJ (SWIG_OK)
00281 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
00282 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
00283
00284 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
00285 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
00286 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
00287 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
00288 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
00289 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
00290
00291
00292
00293 #if defined(SWIG_CASTRANK_MODE)
00294 # ifndef SWIG_TypeRank
00295 # define SWIG_TypeRank unsigned long
00296 # endif
00297 # ifndef SWIG_MAXCASTRANK
00298 # define SWIG_MAXCASTRANK (2)
00299 # endif
00300 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
00301 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
00302 SWIGINTERNINLINE int SWIG_AddCast(int r) {
00303 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
00304 }
00305 SWIGINTERNINLINE int SWIG_CheckState(int r) {
00306 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
00307 }
00308 #else
00309 # define SWIG_AddCast
00310 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
00311 #endif
00312
00313
00314
00315
00316 #include <string.h>
00317
00318 #ifdef __cplusplus
00319 extern "C" {
00320 #endif
00321
00322 typedef void *(*swig_converter_func)(void *, int *);
00323 typedef struct swig_type_info *(*swig_dycast_func)(void **);
00324
00325
00326 typedef struct swig_type_info {
00327 const char *name;
00328 const char *str;
00329 swig_dycast_func dcast;
00330 struct swig_cast_info *cast;
00331 void *clientdata;
00332 int owndata;
00333 } swig_type_info;
00334
00335
00336 typedef struct swig_cast_info {
00337 swig_type_info *type;
00338 swig_converter_func converter;
00339 struct swig_cast_info *next;
00340 struct swig_cast_info *prev;
00341 } swig_cast_info;
00342
00343
00344
00345
00346 typedef struct swig_module_info {
00347 swig_type_info **types;
00348 size_t size;
00349 struct swig_module_info *next;
00350 swig_type_info **type_initial;
00351 swig_cast_info **cast_initial;
00352 void *clientdata;
00353 } swig_module_info;
00354
00355
00356
00357
00358
00359
00360
00361
00362 SWIGRUNTIME int
00363 SWIG_TypeNameComp(const char *f1, const char *l1,
00364 const char *f2, const char *l2) {
00365 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
00366 while ((*f1 == ' ') && (f1 != l1)) ++f1;
00367 while ((*f2 == ' ') && (f2 != l2)) ++f2;
00368 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
00369 }
00370 return (int)((l1 - f1) - (l2 - f2));
00371 }
00372
00373
00374
00375
00376
00377 SWIGRUNTIME int
00378 SWIG_TypeEquiv(const char *nb, const char *tb) {
00379 int equiv = 0;
00380 const char* te = tb + strlen(tb);
00381 const char* ne = nb;
00382 while (!equiv && *ne) {
00383 for (nb = ne; *ne; ++ne) {
00384 if (*ne == '|') break;
00385 }
00386 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
00387 if (*ne) ++ne;
00388 }
00389 return equiv;
00390 }
00391
00392
00393
00394
00395
00396 SWIGRUNTIME int
00397 SWIG_TypeCompare(const char *nb, const char *tb) {
00398 int equiv = 0;
00399 const char* te = tb + strlen(tb);
00400 const char* ne = nb;
00401 while (!equiv && *ne) {
00402 for (nb = ne; *ne; ++ne) {
00403 if (*ne == '|') break;
00404 }
00405 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
00406 if (*ne) ++ne;
00407 }
00408 return equiv;
00409 }
00410
00411
00412
00413 #define SWIG_TypeCheck_Template(comparison, ty) \
00414 if (ty) { \
00415 swig_cast_info *iter = ty->cast; \
00416 while (iter) { \
00417 if (comparison) { \
00418 if (iter == ty->cast) return iter; \
00419 \
00420 iter->prev->next = iter->next; \
00421 if (iter->next) \
00422 iter->next->prev = iter->prev; \
00423 iter->next = ty->cast; \
00424 iter->prev = 0; \
00425 if (ty->cast) ty->cast->prev = iter; \
00426 ty->cast = iter; \
00427 return iter; \
00428 } \
00429 iter = iter->next; \
00430 } \
00431 } \
00432 return 0
00433
00434
00435
00436
00437 SWIGRUNTIME swig_cast_info *
00438 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
00439 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
00440 }
00441
00442
00443 SWIGRUNTIME swig_cast_info *
00444 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
00445 SWIG_TypeCheck_Template(iter->type == from, into);
00446 }
00447
00448
00449
00450
00451 SWIGRUNTIMEINLINE void *
00452 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
00453 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
00454 }
00455
00456
00457
00458
00459 SWIGRUNTIME swig_type_info *
00460 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
00461 swig_type_info *lastty = ty;
00462 if (!ty || !ty->dcast) return ty;
00463 while (ty && (ty->dcast)) {
00464 ty = (*ty->dcast)(ptr);
00465 if (ty) lastty = ty;
00466 }
00467 return lastty;
00468 }
00469
00470
00471
00472
00473 SWIGRUNTIMEINLINE const char *
00474 SWIG_TypeName(const swig_type_info *ty) {
00475 return ty->name;
00476 }
00477
00478
00479
00480
00481
00482 SWIGRUNTIME const char *
00483 SWIG_TypePrettyName(const swig_type_info *type) {
00484
00485
00486
00487
00488 if (!type) return NULL;
00489 if (type->str != NULL) {
00490 const char *last_name = type->str;
00491 const char *s;
00492 for (s = type->str; *s; s++)
00493 if (*s == '|') last_name = s+1;
00494 return last_name;
00495 }
00496 else
00497 return type->name;
00498 }
00499
00500
00501
00502
00503 SWIGRUNTIME void
00504 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
00505 swig_cast_info *cast = ti->cast;
00506
00507 ti->clientdata = clientdata;
00508
00509 while (cast) {
00510 if (!cast->converter) {
00511 swig_type_info *tc = cast->type;
00512 if (!tc->clientdata) {
00513 SWIG_TypeClientData(tc, clientdata);
00514 }
00515 }
00516 cast = cast->next;
00517 }
00518 }
00519 SWIGRUNTIME void
00520 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
00521 SWIG_TypeClientData(ti, clientdata);
00522 ti->owndata = 1;
00523 }
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533 SWIGRUNTIME swig_type_info *
00534 SWIG_MangledTypeQueryModule(swig_module_info *start,
00535 swig_module_info *end,
00536 const char *name) {
00537 swig_module_info *iter = start;
00538 do {
00539 if (iter->size) {
00540 register size_t l = 0;
00541 register size_t r = iter->size - 1;
00542 do {
00543
00544 register size_t i = (l + r) >> 1;
00545 const char *iname = iter->types[i]->name;
00546 if (iname) {
00547 register int compare = strcmp(name, iname);
00548 if (compare == 0) {
00549 return iter->types[i];
00550 } else if (compare < 0) {
00551 if (i) {
00552 r = i - 1;
00553 } else {
00554 break;
00555 }
00556 } else if (compare > 0) {
00557 l = i + 1;
00558 }
00559 } else {
00560 break;
00561 }
00562 } while (l <= r);
00563 }
00564 iter = iter->next;
00565 } while (iter != end);
00566 return 0;
00567 }
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00578 SWIGRUNTIME swig_type_info *
00579 SWIG_TypeQueryModule(swig_module_info *start,
00580 swig_module_info *end,
00581 const char *name) {
00582
00583 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
00584 if (ret) {
00585 return ret;
00586 } else {
00587
00588
00589 swig_module_info *iter = start;
00590 do {
00591 register size_t i = 0;
00592 for (; i < iter->size; ++i) {
00593 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
00594 return iter->types[i];
00595 }
00596 iter = iter->next;
00597 } while (iter != end);
00598 }
00599
00600
00601 return 0;
00602 }
00603
00604
00605
00606
00607 SWIGRUNTIME char *
00608 SWIG_PackData(char *c, void *ptr, size_t sz) {
00609 static const char hex[17] = "0123456789abcdef";
00610 register const unsigned char *u = (unsigned char *) ptr;
00611 register const unsigned char *eu = u + sz;
00612 for (; u != eu; ++u) {
00613 register unsigned char uu = *u;
00614 *(c++) = hex[(uu & 0xf0) >> 4];
00615 *(c++) = hex[uu & 0xf];
00616 }
00617 return c;
00618 }
00619
00620
00621
00622
00623 SWIGRUNTIME const char *
00624 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
00625 register unsigned char *u = (unsigned char *) ptr;
00626 register const unsigned char *eu = u + sz;
00627 for (; u != eu; ++u) {
00628 register char d = *(c++);
00629 register unsigned char uu;
00630 if ((d >= '0') && (d <= '9'))
00631 uu = ((d - '0') << 4);
00632 else if ((d >= 'a') && (d <= 'f'))
00633 uu = ((d - ('a'-10)) << 4);
00634 else
00635 return (char *) 0;
00636 d = *(c++);
00637 if ((d >= '0') && (d <= '9'))
00638 uu |= (d - '0');
00639 else if ((d >= 'a') && (d <= 'f'))
00640 uu |= (d - ('a'-10));
00641 else
00642 return (char *) 0;
00643 *u = uu;
00644 }
00645 return c;
00646 }
00647
00648
00649
00650
00651 SWIGRUNTIME char *
00652 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
00653 char *r = buff;
00654 if ((2*sizeof(void *) + 2) > bsz) return 0;
00655 *(r++) = '_';
00656 r = SWIG_PackData(r,&ptr,sizeof(void *));
00657 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
00658 strcpy(r,name);
00659 return buff;
00660 }
00661
00662 SWIGRUNTIME const char *
00663 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
00664 if (*c != '_') {
00665 if (strcmp(c,"NULL") == 0) {
00666 *ptr = (void *) 0;
00667 return name;
00668 } else {
00669 return 0;
00670 }
00671 }
00672 return SWIG_UnpackData(++c,ptr,sizeof(void *));
00673 }
00674
00675 SWIGRUNTIME char *
00676 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
00677 char *r = buff;
00678 size_t lname = (name ? strlen(name) : 0);
00679 if ((2*sz + 2 + lname) > bsz) return 0;
00680 *(r++) = '_';
00681 r = SWIG_PackData(r,ptr,sz);
00682 if (lname) {
00683 strncpy(r,name,lname+1);
00684 } else {
00685 *r = 0;
00686 }
00687 return buff;
00688 }
00689
00690 SWIGRUNTIME const char *
00691 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
00692 if (*c != '_') {
00693 if (strcmp(c,"NULL") == 0) {
00694 memset(ptr,0,sz);
00695 return name;
00696 } else {
00697 return 0;
00698 }
00699 }
00700 return SWIG_UnpackData(++c,ptr,sz);
00701 }
00702
00703 #ifdef __cplusplus
00704 }
00705 #endif
00706
00707
00708 #define SWIG_UnknownError -1
00709 #define SWIG_IOError -2
00710 #define SWIG_RuntimeError -3
00711 #define SWIG_IndexError -4
00712 #define SWIG_TypeError -5
00713 #define SWIG_DivisionByZero -6
00714 #define SWIG_OverflowError -7
00715 #define SWIG_SyntaxError -8
00716 #define SWIG_ValueError -9
00717 #define SWIG_SystemError -10
00718 #define SWIG_AttributeError -11
00719 #define SWIG_MemoryError -12
00720 #define SWIG_NullReferenceError -13
00721
00722
00723
00724 #ifdef __cplusplus
00725
00726 #include <math.h>
00727 #include <stdlib.h>
00728 extern "C" {
00729 #endif
00730 #include "EXTERN.h"
00731 #include "perl.h"
00732 #include "XSUB.h"
00733
00734
00735
00736
00737 #ifndef PERL_REVISION
00738 # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
00739 # define PERL_PATCHLEVEL_H_IMPLICIT
00740 # include <patchlevel.h>
00741 # endif
00742 # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
00743 # include <could_not_find_Perl_patchlevel.h>
00744 # endif
00745 # ifndef PERL_REVISION
00746 # define PERL_REVISION (5)
00747 # define PERL_VERSION PATCHLEVEL
00748 # define PERL_SUBVERSION SUBVERSION
00749 # endif
00750 #endif
00751
00752 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
00753 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
00754 #endif
00755
00756 #ifndef SvIOK_UV
00757 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
00758 #endif
00759
00760 #ifndef SvUOK
00761 # define SvUOK(sv) SvIOK_UV(sv)
00762 #endif
00763
00764 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
00765 # define PL_sv_undef sv_undef
00766 # define PL_na na
00767 # define PL_errgv errgv
00768 # define PL_sv_no sv_no
00769 # define PL_sv_yes sv_yes
00770 # define PL_markstack_ptr markstack_ptr
00771 #endif
00772
00773 #ifndef IVSIZE
00774 # ifdef LONGSIZE
00775 # define IVSIZE LONGSIZE
00776 # else
00777 # define IVSIZE 4
00778 # endif
00779 #endif
00780
00781 #ifndef INT2PTR
00782 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
00783 # define PTRV UV
00784 # define INT2PTR(any,d) (any)(d)
00785 # else
00786 # if PTRSIZE == LONGSIZE
00787 # define PTRV unsigned long
00788 # else
00789 # define PTRV unsigned
00790 # endif
00791 # define INT2PTR(any,d) (any)(PTRV)(d)
00792 # endif
00793
00794 # define NUM2PTR(any,d) (any)(PTRV)(d)
00795 # define PTR2IV(p) INT2PTR(IV,p)
00796 # define PTR2UV(p) INT2PTR(UV,p)
00797 # define PTR2NV(p) NUM2PTR(NV,p)
00798
00799 # if PTRSIZE == LONGSIZE
00800 # define PTR2ul(p) (unsigned long)(p)
00801 # else
00802 # define PTR2ul(p) INT2PTR(unsigned long,p)
00803 # endif
00804 #endif
00805
00806 #ifndef SvPV_nolen
00807 # define SvPV_nolen(x) SvPV(x,PL_na)
00808 #endif
00809
00810 #ifndef get_sv
00811 # define get_sv perl_get_sv
00812 #endif
00813
00814 #ifndef ERRSV
00815 # define ERRSV get_sv("@",FALSE)
#endif
#ifndef pTHX_
#define pTHX_
#endif
#include <string.h>
#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
SWIGINTERN const char*
SWIG_Perl_ErrorType(int code) {
const char* type = 0;
switch(code) {
case SWIG_MemoryError:
type = "MemoryError";
00816 break;
00817 case SWIG_IOError:
00818 type = "IOError";
00819 break;
00820 case SWIG_RuntimeError:
00821 type = "RuntimeError";
00822 break;
00823 case SWIG_IndexError:
00824 type = "IndexError";
00825 break;
00826 case SWIG_TypeError:
00827 type = "TypeError";
00828 break;
00829 case SWIG_DivisionByZero:
00830 type = "ZeroDivisionError";
00831 break;
00832 case SWIG_OverflowError:
00833 type = "OverflowError";
00834 break;
00835 case SWIG_SyntaxError:
00836 type = "SyntaxError";
00837 break;
00838 case SWIG_ValueError:
00839 type = "ValueError";
00840 break;
00841 case SWIG_SystemError:
00842 type = "SystemError";
00843 break;
00844 case SWIG_AttributeError:
00845 type = "AttributeError";
00846 break;
00847 default:
00848 type = "RuntimeError";
00849 }
00850 return type;
00851 }
00852
00853
00854
00855
00856
00857
00858
00859
00860
00861
00862
00863
00864 #ifdef PERL_OBJECT
00865 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
00866 #define SWIG_PERL_OBJECT_CALL pPerl,
00867 #else
00868 #define SWIG_PERL_OBJECT_DECL
00869 #define SWIG_PERL_OBJECT_CALL
00870 #endif
00871
00872
00873
00874
00875 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
00876 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
00877
00878
00879 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
00880 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
00881
00882
00883 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
00884 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
00885
00886
00887 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
00888 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
00889
00890
00891 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
00892 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
00893
00894
00895
00896
00897 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule()
00898 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
00899
00900
00901
00902
00903 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
00904 #define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg)
00905 #define SWIG_fail goto fail
00906
00907
00908
00909 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
00910 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
00911 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
00912
00913
00914 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
00915 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
00916 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
00917 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
00918
00919
00920
00921
00922
00923
00924 #define SWIG_POINTER_EXCEPTION 0
00925
00926 #ifdef __cplusplus
00927 extern "C" {
00928 #endif
00929
00930 #define SWIG_OWNER SWIG_POINTER_OWN
00931 #define SWIG_SHADOW SWIG_OWNER << 1
00932
00933 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
00934
00935
00936
00937
00938 #ifndef XSPROTO
00939 # define XSPROTO(name) void name(pTHX_ CV* cv)
00940 #endif
00941
00942
00943 #ifdef PERL_OBJECT
00944 # define SWIG_CALLXS(_name) _name(cv,pPerl)
00945 #else
00946 # ifndef MULTIPLICITY
00947 # define SWIG_CALLXS(_name) _name(cv)
00948 # else
00949 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
00950 # endif
00951 #endif
00952
00953 #ifdef PERL_OBJECT
00954 #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this;
00955
00956 #ifdef __cplusplus
00957 extern "C" {
00958 #endif
00959 typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
00960 #ifdef __cplusplus
00961 }
00962 #endif
00963
00964 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
00965 #define SWIGCLASS_STATIC
00966
00967 #else
00968
00969 #define MAGIC_PPERL
00970 #define SWIGCLASS_STATIC static SWIGUNUSED
00971
00972 #ifndef MULTIPLICITY
00973 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
00974
00975 #ifdef __cplusplus
00976 extern "C" {
00977 #endif
00978 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
00979 #ifdef __cplusplus
00980 }
00981 #endif
00982
00983 #else
00984
00985 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
00986
00987 #ifdef __cplusplus
00988 extern "C" {
00989 #endif
00990 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
00991 #ifdef __cplusplus
00992 }
00993 #endif
00994
00995 #endif
00996 #endif
00997
00998
00999 #if (PERL_VERSION < 8)
01000 # ifdef PERL_OBJECT
01001 # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
01002 static void SWIG_Perl_croak_null(CPerlObj *pPerl)
01003 # else
01004 static void SWIG_croak_null()
01005 # endif
01006 {
01007 SV *err=ERRSV;
01008 # if (PERL_VERSION < 6)
01009 croak("%_", err);
01010 # else
01011 if (SvOK(err) && !SvROK(err)) croak("%_", err);
01012 croak(Nullch);
01013 # endif
01014 }
01015 #else
01016 # define SWIG_croak_null() croak(Nullch)
01017 #endif
01018
01019
01020
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
01036 # ifndef SWIG_PERL_STRICT_STR2NUM
01037 # define SWIG_PERL_STRICT_STR2NUM
01038 # endif
01039 #endif
01040 #ifdef SWIG_PERL_STRICT_STR2NUM
01041
01042 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
01043 #else
01044
01045 #define SWIG_Str2NumCast(x) x
01046 #endif
01047
01048
01049
01050 #include <stdlib.h>
01051
01052 SWIGRUNTIME const char *
01053 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
01054 if (!type) return NULL;
01055 if (type->clientdata != NULL) {
01056 return (const char*) type->clientdata;
01057 }
01058 else {
01059 return type->name;
01060 }
01061 }
01062
01063 SWIGRUNTIME swig_cast_info *
01064 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
01065 SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0))
01066 || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty);
01067 }
01068
01069
01070
01071
01072 SWIGRUNTIME int
01073 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
01074 swig_cast_info *tc;
01075 void *voidptr = (void *)0;
01076 SV *tsv = 0;
01077
01078 if (SvGMAGICAL(sv))
01079 mg_get(sv);
01080
01081
01082 if (sv_isobject(sv)) {
01083 IV tmp = 0;
01084 tsv = (SV*) SvRV(sv);
01085 if ((SvTYPE(tsv) == SVt_PVHV)) {
01086 MAGIC *mg;
01087 if (SvMAGICAL(tsv)) {
01088 mg = mg_find(tsv,'P');
01089 if (mg) {
01090 sv = mg->mg_obj;
01091 if (sv_isobject(sv)) {
01092 tsv = (SV*)SvRV(sv);
01093 tmp = SvIV(tsv);
01094 }
01095 }
01096 } else {
01097 return SWIG_ERROR;
01098 }
01099 } else {
01100 tmp = SvIV(tsv);
01101 }
01102 voidptr = INT2PTR(void *,tmp);
01103 } else if (! SvOK(sv)) {
01104 *(ptr) = (void *) 0;
01105 return SWIG_OK;
01106 } else if (SvTYPE(sv) == SVt_RV) {
01107 if (!SvROK(sv)) {
01108 *(ptr) = (void *) 0;
01109 return SWIG_OK;
01110 } else {
01111 return SWIG_ERROR;
01112 }
01113 } else {
01114 return SWIG_ERROR;
01115 }
01116 if (_t) {
01117
01118 char *_c = HvNAME(SvSTASH(SvRV(sv)));
01119 tc = SWIG_TypeProxyCheck(_c,_t);
01120 if (!tc) {
01121 return SWIG_ERROR;
01122 }
01123 {
01124 int newmemory = 0;
01125 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
01126 assert(!newmemory);
01127 }
01128 } else {
01129 *ptr = voidptr;
01130 }
01131
01132
01133
01134
01135 if (tsv && (flags & SWIG_POINTER_DISOWN)) {
01136
01137
01138
01139 SV *obj = sv;
01140 HV *stash = SvSTASH(SvRV(obj));
01141 GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE);
01142 if (isGV(gv)) {
01143 HV *hv = GvHVn(gv);
01144
01145
01146
01147
01148 if (hv_exists_ent(hv, obj, 0)) {
01149 hv_delete_ent(hv, obj, 0, 0);
01150 }
01151 }
01152 }
01153 return SWIG_OK;
01154 }
01155
01156 SWIGRUNTIME void
01157 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
01158 if (ptr && (flags & SWIG_SHADOW)) {
01159 SV *self;
01160 SV *obj=newSV(0);
01161 HV *hash=newHV();
01162 HV *stash;
01163 sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr);
01164 stash=SvSTASH(SvRV(obj));
01165 if (flags & SWIG_POINTER_OWN) {
01166 HV *hv;
01167 GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
01168 if (!isGV(gv))
01169 gv_init(gv, stash, "OWNER", 5, FALSE);
01170 hv=GvHVn(gv);
01171 hv_store_ent(hv, obj, newSViv(1), 0);
01172 }
01173 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
01174 SvREFCNT_dec(obj);
01175 self=newRV_noinc((SV *)hash);
01176 sv_setsv(sv, self);
01177 SvREFCNT_dec((SV *)self);
01178 sv_bless(sv, stash);
01179 }
01180 else {
01181 sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr);
01182 }
01183 }
01184
01185 SWIGRUNTIMEINLINE SV *
01186 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
01187 SV *result = sv_newmortal();
01188 SWIG_MakePtr(result, ptr, t, flags);
01189 return result;
01190 }
01191
01192 SWIGRUNTIME void
01193 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
01194 char result[1024];
01195 char *r = result;
01196 if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
01197 *(r++) = '_';
01198 r = SWIG_PackData(r,ptr,sz);
01199 strcpy(r,SWIG_Perl_TypeProxyName(type));
01200 sv_setpv(sv, result);
01201 }
01202
01203 SWIGRUNTIME SV *
01204 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
01205 SV *result = sv_newmortal();
01206 SWIG_Perl_MakePackedObj(result, ptr, sz, type);
01207 return result;
01208 }
01209
01210
01211 SWIGRUNTIME int
01212 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
01213 swig_cast_info *tc;
01214 const char *c = 0;
01215
01216 if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
01217 c = SvPV_nolen(obj);
01218
01219 if (*c != '_') return SWIG_ERROR;
01220 c++;
01221 c = SWIG_UnpackData(c,ptr,sz);
01222 if (ty) {
01223 tc = SWIG_TypeCheck(c,ty);
01224 if (!tc) return SWIG_ERROR;
01225 }
01226 return SWIG_OK;
01227 }
01228
01229
01230
01231 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
01232
01233
01234 typedef XSPROTO(SwigPerlWrapper);
01235 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
01236
01237
01238 typedef struct {
01239 const char *name;
01240 SwigPerlWrapperPtr wrapper;
01241 } swig_command_info;
01242
01243
01244
01245 #define SWIG_INT 1
01246 #define SWIG_FLOAT 2
01247 #define SWIG_STRING 3
01248 #define SWIG_POINTER 4
01249 #define SWIG_BINARY 5
01250
01251
01252 typedef struct swig_constant_info {
01253 int type;
01254 const char *name;
01255 long lvalue;
01256 double dvalue;
01257 void *pvalue;
01258 swig_type_info **ptype;
01259 } swig_constant_info;
01260
01261
01262
01263 typedef struct {
01264 const char *name;
01265 SwigMagicFunc set;
01266 SwigMagicFunc get;
01267 swig_type_info **type;
01268 } swig_variable_info;
01269
01270
01271 #ifndef PERL_OBJECT
01272 #define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
01273 #ifndef MULTIPLICITY
01274 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
01275 #else
01276 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
01277 #endif
01278 #else
01279 # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
01280 SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *))
01281 #endif
01282 {
01283 MAGIC *mg;
01284 sv_magic(sv,sv,'U',(char *) name,strlen(name));
01285 mg = mg_find(sv,'U');
01286 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
01287 mg->mg_virtual->svt_get = (SwigMagicFunc) get;
01288 mg->mg_virtual->svt_set = (SwigMagicFunc) set;
01289 mg->mg_virtual->svt_len = 0;
01290 mg->mg_virtual->svt_clear = 0;
01291 mg->mg_virtual->svt_free = 0;
01292 }
01293
01294
01295 SWIGRUNTIME swig_module_info *
01296 SWIG_Perl_GetModule(void) {
01297 static void *type_pointer = (void *)0;
01298 SV *pointer;
01299
01300
01301 if (!type_pointer) {
01302 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
01303 if (pointer && SvOK(pointer)) {
01304 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
01305 }
01306 }
01307
01308 return (swig_module_info *) type_pointer;
01309 }
01310
01311 SWIGRUNTIME void
01312 SWIG_Perl_SetModule(swig_module_info *module) {
01313 SV *pointer;
01314
01315
01316 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
01317 sv_setiv(pointer, PTR2IV(module));
01318 }
01319
01320 #ifdef __cplusplus
01321 }
01322 #endif
01323
01324
01325
01326
01327 #ifdef do_open
01328 #undef do_open
01329 #endif
01330 #ifdef do_close
01331 #undef do_close
01332 #endif
01333 #ifdef scalar
01334 #undef scalar
01335 #endif
01336 #ifdef list
01337 #undef list
01338 #endif
01339 #ifdef apply
01340 #undef apply
01341 #endif
01342 #ifdef convert
01343 #undef convert
01344 #endif
01345 #ifdef Error
01346 #undef Error
01347 #endif
01348 #ifdef form
01349 #undef form
01350 #endif
01351 #ifdef vform
01352 #undef vform
01353 #endif
01354 #ifdef LABEL
01355 #undef LABEL
01356 #endif
01357 #ifdef METHOD
01358 #undef METHOD
01359 #endif
01360 #ifdef Move
01361 #undef Move
01362 #endif
01363 #ifdef yylex
01364 #undef yylex
01365 #endif
01366 #ifdef yyparse
01367 #undef yyparse
01368 #endif
01369 #ifdef yyerror
01370 #undef yyerror
01371 #endif
01372 #ifdef invert
01373 #undef invert
01374 #endif
01375 #ifdef ref
01376 #undef ref
01377 #endif
01378 #ifdef read
01379 #undef read
01380 #endif
01381 #ifdef write
01382 #undef write
01383 #endif
01384 #ifdef eof
01385 #undef eof
01386 #endif
01387 #ifdef bool
01388 #undef bool
01389 #endif
01390 #ifdef close
01391 #undef close
01392 #endif
01393 #ifdef rewind
01394 #undef rewind
01395 #endif
01396 #ifdef free
01397 #undef free
01398 #endif
01399 #ifdef malloc
01400 #undef malloc
01401 #endif
01402 #ifdef calloc
01403 #undef calloc
01404 #endif
01405 #ifdef Stat
01406 #undef Stat
01407 #endif
01408 #ifdef check
01409 #undef check
01410 #endif
01411 #ifdef seekdir
01412 #undef seekdir
01413 #endif
01414 #ifdef open
01415 #undef open
01416 #endif
01417
01418
01419
01420 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
01421
01422 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
01423
01424
01425
01426
01427
01428 #define SWIGTYPE_p_XDR swig_types[0]
01429 #define SWIGTYPE_p_bool_t swig_types[1]
01430 #define SWIGTYPE_p_char swig_types[2]
01431 #define SWIGTYPE_p_dtn_bundle swig_types[3]
01432 #define SWIGTYPE_p_dtn_bundle_delivery_opts_t swig_types[4]
01433 #define SWIGTYPE_p_dtn_bundle_id swig_types[5]
01434 #define SWIGTYPE_p_dtn_bundle_id_t swig_types[6]
01435 #define SWIGTYPE_p_dtn_bundle_payload_location_t swig_types[7]
01436 #define SWIGTYPE_p_dtn_bundle_payload_t swig_types[8]
01437 #define SWIGTYPE_p_dtn_bundle_payload_t_buf swig_types[9]
01438 #define SWIGTYPE_p_dtn_bundle_payload_t_filename swig_types[10]
01439 #define SWIGTYPE_p_dtn_bundle_priority_t swig_types[11]
01440 #define SWIGTYPE_p_dtn_bundle_spec_t swig_types[12]
01441 #define SWIGTYPE_p_dtn_bundle_spec_t_blocks swig_types[13]
01442 #define SWIGTYPE_p_dtn_bundle_spec_t_metadata swig_types[14]
01443 #define SWIGTYPE_p_dtn_bundle_status_report_t swig_types[15]
01444 #define SWIGTYPE_p_dtn_endpoint_id_t swig_types[16]
01445 #define SWIGTYPE_p_dtn_extension_block_flags_t swig_types[17]
01446 #define SWIGTYPE_p_dtn_extension_block_t swig_types[18]
01447 #define SWIGTYPE_p_dtn_extension_block_t_data swig_types[19]
01448 #define SWIGTYPE_p_dtn_handle_t swig_types[20]
01449 #define SWIGTYPE_p_dtn_reg_flags_t swig_types[21]
01450 #define SWIGTYPE_p_dtn_reg_info_t swig_types[22]
01451 #define SWIGTYPE_p_dtn_reg_info_t_script swig_types[23]
01452 #define SWIGTYPE_p_dtn_sequence_id_t swig_types[24]
01453 #define SWIGTYPE_p_dtn_sequence_id_t_data swig_types[25]
01454 #define SWIGTYPE_p_dtn_service_tag_t swig_types[26]
01455 #define SWIGTYPE_p_dtn_session_info swig_types[27]
01456 #define SWIGTYPE_p_dtn_status_report swig_types[28]
01457 #define SWIGTYPE_p_dtn_status_report_flags_t swig_types[29]
01458 #define SWIGTYPE_p_dtn_status_report_reason_t swig_types[30]
01459 #define SWIGTYPE_p_dtn_timestamp_t swig_types[31]
01460 #define SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t swig_types[32]
01461 #define SWIGTYPE_p_u_int swig_types[33]
01462 static swig_type_info *swig_types[35];
01463 static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
01464 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
01465 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
01466
01467
01468
01469 #define SWIG_init boot_dtnapi
01470
01471 #define SWIG_name "dtnapic::boot_dtnapi"
01472 #define SWIG_prefix "dtnapic::"
01473
01474 #define SWIGVERSION 0x010335
01475 #define SWIG_VERSION SWIGVERSION
01476
01477
01478 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
01479 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
01480
01481
01482 #include <stdexcept>
01483
01484
01485 #ifdef __cplusplus
01486 extern "C"
01487 #endif
01488 #ifndef PERL_OBJECT
01489 #ifndef MULTIPLICITY
01490 SWIGEXPORT void SWIG_init (CV* cv);
01491 #else
01492 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
01493 #endif
01494 #else
01495 SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
01496 #endif
01497
01498
01499 #include <string>
01500
01501
01502
01503 using namespace std;
01504
01505 #include <applib/dtn_types.h>
01506 #include <applib/dtn_api.h>
01507 #include <applib/dtn_api_wrap.cc>
01508
01509
01510 SWIGINTERNINLINE SV *
01511 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
01512 {
01513 SV *obj = sv_newmortal();
01514 sv_setiv(obj, (IV) value);
01515 return obj;
01516 }
01517
01518
01519 SWIGINTERNINLINE SV *
01520 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
01521 {
01522 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
01523 }
01524
01525
01526 SWIGINTERN swig_type_info*
01527 SWIG_pchar_descriptor(void)
01528 {
01529 static int init = 0;
01530 static swig_type_info* info = 0;
01531 if (!init) {
01532 info = SWIG_TypeQuery("_p_char");
01533 init = 1;
01534 }
01535 return info;
01536 }
01537
01538
01539 SWIGINTERN int
01540 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
01541 {
01542 if (SvPOK(obj)) {
01543 STRLEN len = 0;
01544 char *cstr = SvPV(obj, len);
01545 size_t size = len + 1;
01546 if (cptr) {
01547 if (alloc) {
01548 if (*alloc == SWIG_NEWOBJ) {
01549 *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
01550 } else {
01551 *cptr = cstr;
01552 *alloc = SWIG_OLDOBJ;
01553 }
01554 }
01555 }
01556 if (psize) *psize = size;
01557 return SWIG_OK;
01558 } else {
01559 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
01560 if (pchar_descriptor) {
01561 char* vptr = 0;
01562 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
01563 if (cptr) *cptr = vptr;
01564 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
01565 if (alloc) *alloc = SWIG_OLDOBJ;
01566 return SWIG_OK;
01567 }
01568 }
01569 }
01570 return SWIG_TypeError;
01571 }
01572
01573
01574 SWIGINTERN int
01575 SWIG_AsCharArray(SV * obj, char *val, size_t size)
01576 {
01577 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
01578 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
01579 if (SWIG_IsOK(res)) {
01580 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
01581 if (csize <= size) {
01582 if (val) {
01583 if (csize) memcpy(val, cptr, csize*sizeof(char));
01584 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
01585 }
01586 if (alloc == SWIG_NEWOBJ) {
01587 delete[] cptr;
01588 res = SWIG_DelNewMask(res);
01589 }
01590 return res;
01591 }
01592 if (alloc == SWIG_NEWOBJ) delete[] cptr;
01593 }
01594 return SWIG_TypeError;
01595 }
01596
01597
01598 SWIGINTERNINLINE SV *
01599 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
01600 {
01601 SV *obj = sv_newmortal();
01602 if (carray) {
01603 sv_setpvn(obj, carray, size);
01604 } else {
01605 sv_setsv(obj, &PL_sv_undef);
01606 }
01607 return obj;
01608 }
01609
01610
01611 typedef struct {
01612 u_int script_len;
01613 char *script_val;
01614 } dtn_reg_info_t_script;
01615
01616
01617
01618
01619
01620
01621 SWIGINTERNINLINE SV *
01622 SWIG_FromCharPtr(const char *cptr)
01623 {
01624 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
01625 }
01626
01627
01628 typedef struct {
01629 u_int data_len;
01630 char *data_val;
01631 } dtn_extension_block_t_data;
01632
01633
01634
01635 typedef struct {
01636 u_int data_len;
01637 char *data_val;
01638 } dtn_sequence_id_t_data;
01639
01640
01641
01642 #include <limits.h>
01643 #if !defined(SWIG_NO_LLONG_MAX)
01644 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
01645 # define LLONG_MAX __LONG_LONG_MAX__
01646 # define LLONG_MIN (-LLONG_MAX - 1LL)
01647 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
01648 # endif
01649 #endif
01650
01651
01652 SWIGINTERN int
01653 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
01654 {
01655 if (SvNIOK(obj)) {
01656 if (val) *val = SvNV(obj);
01657 return SWIG_OK;
01658 } else if (SvIOK(obj)) {
01659 if (val) *val = (double) SvIV(obj);
01660 return SWIG_AddCast(SWIG_OK);
01661 } else {
01662 const char *nptr = SvPV_nolen(obj);
01663 if (nptr) {
01664 char *endptr;
01665 double v = strtod(nptr, &endptr);
01666 if (errno == ERANGE) {
01667 errno = 0;
01668 return SWIG_OverflowError;
01669 } else {
01670 if (*endptr == '\0') {
01671 if (val) *val = v;
01672 return SWIG_Str2NumCast(SWIG_OK);
01673 }
01674 }
01675 }
01676 }
01677 return SWIG_TypeError;
01678 }
01679
01680
01681 #include <float.h>
01682
01683
01684 #include <math.h>
01685
01686
01687 SWIGINTERNINLINE int
01688 SWIG_CanCastAsInteger(double *d, double min, double max) {
01689 double x = *d;
01690 if ((min <= x && x <= max)) {
01691 double fx = floor(x);
01692 double cx = ceil(x);
01693 double rd = ((x - fx) < 0.5) ? fx : cx;
01694 if ((errno == EDOM) || (errno == ERANGE)) {
01695 errno = 0;
01696 } else {
01697 double summ, reps, diff;
01698 if (rd < x) {
01699 diff = x - rd;
01700 } else if (rd > x) {
01701 diff = rd - x;
01702 } else {
01703 return 1;
01704 }
01705 summ = rd + x;
01706 reps = diff/summ;
01707 if (reps < 8*DBL_EPSILON) {
01708 *d = rd;
01709 return 1;
01710 }
01711 }
01712 }
01713 return 0;
01714 }
01715
01716
01717 SWIGINTERN int
01718 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
01719 {
01720 if (SvIOK(obj)) {
01721 if (val) *val = SvIV(obj);
01722 return SWIG_OK;
01723 } else {
01724 int dispatch = 0;
01725 const char *nptr = SvPV_nolen(obj);
01726 if (nptr) {
01727 char *endptr;
01728 long v;
01729 errno = 0;
01730 v = strtol(nptr, &endptr,0);
01731 if (errno == ERANGE) {
01732 errno = 0;
01733 return SWIG_OverflowError;
01734 } else {
01735 if (*endptr == '\0') {
01736 if (val) *val = v;
01737 return SWIG_Str2NumCast(SWIG_OK);
01738 }
01739 }
01740 }
01741 if (!dispatch) {
01742 double d;
01743 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
01744 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
01745 if (val) *val = (long)(d);
01746 return res;
01747 }
01748 }
01749 }
01750 return SWIG_TypeError;
01751 }
01752
01753
01754 SWIGINTERN int
01755 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
01756 {
01757 long v;
01758 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
01759 if (SWIG_IsOK(res)) {
01760 if ((v < INT_MIN || v > INT_MAX)) {
01761 return SWIG_OverflowError;
01762 } else {
01763 if (val) *val = static_cast< int >(v);
01764 }
01765 }
01766 return res;
01767 }
01768
01769
01770 typedef struct {
01771 u_int metadata_len;
01772 dtn_extension_block_t *metadata_val;
01773 } dtn_bundle_spec_t_metadata;
01774
01775
01776
01777 typedef struct {
01778 u_int blocks_len;
01779 dtn_extension_block_t *blocks_val;
01780 } dtn_bundle_spec_t_blocks;
01781
01782
01783
01784 typedef struct {
01785 u_int buf_len;
01786 char *buf_val;
01787 } dtn_bundle_payload_t_buf;
01788
01789
01790
01791 typedef struct {
01792 u_int filename_len;
01793 char *filename_val;
01794 } dtn_bundle_payload_t_filename;
01795
01796
01797
01798 SWIGINTERN int
01799 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
01800 {
01801 if (SvUOK(obj)) {
01802 if (val) *val = SvUV(obj);
01803 return SWIG_OK;
01804 } else if (SvIOK(obj)) {
01805 long v = SvIV(obj);
01806 if (v >= 0) {
01807 if (val) *val = v;
01808 return SWIG_OK;
01809 } else {
01810 return SWIG_OverflowError;
01811 }
01812 } else {
01813 int dispatch = 0;
01814 const char *nptr = SvPV_nolen(obj);
01815 if (nptr) {
01816 char *endptr;
01817 unsigned long v;
01818 errno = 0;
01819 v = strtoul(nptr, &endptr,0);
01820 if (errno == ERANGE) {
01821 errno = 0;
01822 return SWIG_OverflowError;
01823 } else {
01824 if (*endptr == '\0') {
01825 if (val) *val = v;
01826 return SWIG_Str2NumCast(SWIG_OK);
01827 }
01828 }
01829 }
01830 if (!dispatch) {
01831 double d;
01832 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
01833 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
01834 if (val) *val = (unsigned long)(d);
01835 return res;
01836 }
01837 }
01838 }
01839 return SWIG_TypeError;
01840 }
01841
01842
01843 SWIGINTERN int
01844 SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val)
01845 {
01846 unsigned long v;
01847 int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v);
01848 if (SWIG_IsOK(res)) {
01849 if ((v > UINT_MAX)) {
01850 return SWIG_OverflowError;
01851 } else {
01852 if (val) *val = static_cast< unsigned int >(v);
01853 }
01854 }
01855 return res;
01856 }
01857
01858
01859 SWIGINTERNINLINE SV *
01860 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
01861 {
01862 SV *obj = sv_newmortal();
01863 sv_setuv(obj, (UV) value);
01864 return obj;
01865 }
01866
01867
01868 SWIGINTERNINLINE SV *
01869 SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value)
01870 {
01871 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value);
01872 }
01873
01874
01875 SWIGINTERNINLINE SV *
01876 SWIG_From_std_string SWIG_PERL_DECL_ARGS_1(const std::string& s)
01877 {
01878 if (s.size()) {
01879 return SWIG_FromCharPtrAndSize(s.data(), s.size());
01880 } else {
01881 return SWIG_FromCharPtrAndSize(s.c_str(), 0);
01882 }
01883 }
01884
01885
01886 SWIGINTERN int
01887 SWIG_AsPtr_std_string SWIG_PERL_DECL_ARGS_2(SV * obj, std::string **val)
01888 {
01889 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
01890 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
01891 if (buf) {
01892 if (val) *val = new std::string(buf, size - 1);
01893 if (alloc == SWIG_NEWOBJ) delete[] buf;
01894 return SWIG_NEWOBJ;
01895 } else {
01896 if (val) *val = 0;
01897 return SWIG_OLDOBJ;
01898 }
01899 } else {
01900 static int init = 0;
01901 static swig_type_info* descriptor = 0;
01902 if (!init) {
01903 descriptor = SWIG_TypeQuery("std::string" " *");
01904 init = 1;
01905 }
01906 if (descriptor) {
01907 std::string *vptr;
01908 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
01909 if (SWIG_IsOK(res) && val) *val = vptr;
01910 return res;
01911 }
01912 }
01913 return SWIG_ERROR;
01914 }
01915
01916
01917 SWIGINTERN int
01918 SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val)
01919 {
01920 if (obj == &PL_sv_yes) {
01921 if (val) *val = true;
01922 return SWIG_OK;
01923 } else if (obj == &PL_sv_no) {
01924 if (val) *val = false;
01925 return SWIG_OK;
01926 } else {
01927 if (val) *val = SvTRUE(obj) ? true: false;
01928 return SWIG_AddCast(SWIG_OK);
01929 }
01930 return SWIG_TypeError;
01931 }
01932
01933 #ifdef __cplusplus
01934 extern "C" {
01935 #endif
01936
01937 #ifdef PERL_OBJECT
01938 #define MAGIC_CLASS _wrap_dtnapi_var::
01939 class _wrap_dtnapi_var : public CPerlObj {
01940 public:
01941 #else
01942 #define MAGIC_CLASS
01943 #endif
01944 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
01945 MAGIC_PPERL
01946 croak("Value is read-only.");
01947 return 0;
01948 }
01949 SWIGCLASS_STATIC int _wrap_Handles_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
01950 MAGIC_PPERL
01951 {
01952 void *argp = 0;
01953 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t, 0 );
01954 if (!SWIG_IsOK(res)) {
01955 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""Handles""' of type '""HandleMap""'");
01956 }
01957 if (!argp) {
01958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Handles""' of type '""HandleMap""'");
01959 } else {
01960 Handles = *(reinterpret_cast< HandleMap * >(argp));
01961 }
01962 }
01963 fail:
01964 return 1;
01965 }
01966
01967
01968 SWIGCLASS_STATIC int _wrap_Handles_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
01969 MAGIC_PPERL
01970 sv_setiv(SvRV(sv), PTR2IV(&Handles));
01971 return 1;
01972 }
01973
01974
01975 SWIGCLASS_STATIC int _wrap_HandleID_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
01976 MAGIC_PPERL
01977 {
01978 unsigned int val;
01979 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(sv, &val);
01980 if (!SWIG_IsOK(res)) {
01981 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""HandleID""' of type '""unsigned int""'");
01982 }
01983 HandleID = static_cast< unsigned int >(val);
01984 }
01985 fail:
01986 return 1;
01987 }
01988
01989
01990 SWIGCLASS_STATIC int _wrap_HandleID_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
01991 MAGIC_PPERL
01992 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(HandleID))) ;
01993 return 1;
01994 }
01995
01996
01997
01998
01999 #ifdef PERL_OBJECT
02000 };
02001 #endif
02002
02003 #ifdef __cplusplus
02004 }
02005 #endif
02006
02007 #ifdef __cplusplus
02008 extern "C" {
02009 #endif
02010 XS(_wrap_dtn_endpoint_id_t_uri_set) {
02011 {
02012 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ;
02013 char *arg2 ;
02014 void *argp1 = 0 ;
02015 int res1 = 0 ;
02016 char temp2[256] ;
02017 int res2 ;
02018 int argvi = 0;
02019 dXSARGS;
02020
02021 if ((items < 2) || (items > 2)) {
02022 SWIG_croak("Usage: dtn_endpoint_id_t_uri_set(self,uri);");
02023 }
02024 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
02025 if (!SWIG_IsOK(res1)) {
02026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_endpoint_id_t_uri_set" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'");
02027 }
02028 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1);
02029 res2 = SWIG_AsCharArray(ST(1), temp2, 256);
02030 if (!SWIG_IsOK(res2)) {
02031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_endpoint_id_t_uri_set" "', argument " "2"" of type '" "char [256]""'");
02032 }
02033 arg2 = reinterpret_cast< char * >(temp2);
02034 if (arg2) memcpy(arg1->uri,arg2,256*sizeof(char));
02035 else memset(arg1->uri,0,256*sizeof(char));
02036
02037
02038
02039 XSRETURN(argvi);
02040 fail:
02041
02042
02043 SWIG_croak_null();
02044 }
02045 }
02046
02047
02048 XS(_wrap_dtn_endpoint_id_t_uri_get) {
02049 {
02050 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ;
02051 char *result = 0 ;
02052 void *argp1 = 0 ;
02053 int res1 = 0 ;
02054 int argvi = 0;
02055 dXSARGS;
02056
02057 if ((items < 1) || (items > 1)) {
02058 SWIG_croak("Usage: dtn_endpoint_id_t_uri_get(self);");
02059 }
02060 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
02061 if (!SWIG_IsOK(res1)) {
02062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_endpoint_id_t_uri_get" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'");
02063 }
02064 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1);
02065 result = (char *)(char *) ((arg1)->uri);
02066 {
02067 size_t size = 256;
02068
02069 while (size && (result[size - 1] == '\0')) --size;
02070
02071 ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
02072 }
02073
02074 XSRETURN(argvi);
02075 fail:
02076
02077 SWIG_croak_null();
02078 }
02079 }
02080
02081
02082 XS(_wrap_new_dtn_endpoint_id_t) {
02083 {
02084 dtn_endpoint_id_t *result = 0 ;
02085 int argvi = 0;
02086 dXSARGS;
02087
02088 if ((items < 0) || (items > 0)) {
02089 SWIG_croak("Usage: new_dtn_endpoint_id_t();");
02090 }
02091 result = (dtn_endpoint_id_t *)new dtn_endpoint_id_t();
02092 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
02093 XSRETURN(argvi);
02094 fail:
02095 SWIG_croak_null();
02096 }
02097 }
02098
02099
02100 XS(_wrap_delete_dtn_endpoint_id_t) {
02101 {
02102 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ;
02103 void *argp1 = 0 ;
02104 int res1 = 0 ;
02105 int argvi = 0;
02106 dXSARGS;
02107
02108 if ((items < 1) || (items > 1)) {
02109 SWIG_croak("Usage: delete_dtn_endpoint_id_t(self);");
02110 }
02111 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, SWIG_POINTER_DISOWN | 0 );
02112 if (!SWIG_IsOK(res1)) {
02113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_endpoint_id_t" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'");
02114 }
02115 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1);
02116 delete arg1;
02117
02118
02119
02120 XSRETURN(argvi);
02121 fail:
02122
02123 SWIG_croak_null();
02124 }
02125 }
02126
02127
02128 XS(_wrap_dtn_timestamp_t_secs_set) {
02129 {
02130 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ;
02131 u_int arg2 ;
02132 void *argp1 = 0 ;
02133 int res1 = 0 ;
02134 void *argp2 ;
02135 int res2 = 0 ;
02136 int argvi = 0;
02137 dXSARGS;
02138
02139 if ((items < 2) || (items > 2)) {
02140 SWIG_croak("Usage: dtn_timestamp_t_secs_set(self,secs);");
02141 }
02142 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
02143 if (!SWIG_IsOK(res1)) {
02144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_secs_set" "', argument " "1"" of type '" "dtn_timestamp_t *""'");
02145 }
02146 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1);
02147 {
02148 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02149 if (!SWIG_IsOK(res2)) {
02150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_timestamp_t_secs_set" "', argument " "2"" of type '" "u_int""'");
02151 }
02152 if (!argp2) {
02153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_timestamp_t_secs_set" "', argument " "2"" of type '" "u_int""'");
02154 } else {
02155 arg2 = *(reinterpret_cast< u_int * >(argp2));
02156 }
02157 }
02158 if (arg1) (arg1)->secs = arg2;
02159
02160
02161
02162 XSRETURN(argvi);
02163 fail:
02164
02165 SWIG_croak_null();
02166 }
02167 }
02168
02169
02170 XS(_wrap_dtn_timestamp_t_secs_get) {
02171 {
02172 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ;
02173 u_int result;
02174 void *argp1 = 0 ;
02175 int res1 = 0 ;
02176 int argvi = 0;
02177 dXSARGS;
02178
02179 if ((items < 1) || (items > 1)) {
02180 SWIG_croak("Usage: dtn_timestamp_t_secs_get(self);");
02181 }
02182 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
02183 if (!SWIG_IsOK(res1)) {
02184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_secs_get" "', argument " "1"" of type '" "dtn_timestamp_t *""'");
02185 }
02186 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1);
02187 result = ((arg1)->secs);
02188 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02189
02190 XSRETURN(argvi);
02191 fail:
02192
02193 SWIG_croak_null();
02194 }
02195 }
02196
02197
02198 XS(_wrap_dtn_timestamp_t_seqno_set) {
02199 {
02200 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ;
02201 u_int arg2 ;
02202 void *argp1 = 0 ;
02203 int res1 = 0 ;
02204 void *argp2 ;
02205 int res2 = 0 ;
02206 int argvi = 0;
02207 dXSARGS;
02208
02209 if ((items < 2) || (items > 2)) {
02210 SWIG_croak("Usage: dtn_timestamp_t_seqno_set(self,seqno);");
02211 }
02212 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
02213 if (!SWIG_IsOK(res1)) {
02214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_seqno_set" "', argument " "1"" of type '" "dtn_timestamp_t *""'");
02215 }
02216 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1);
02217 {
02218 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02219 if (!SWIG_IsOK(res2)) {
02220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_timestamp_t_seqno_set" "', argument " "2"" of type '" "u_int""'");
02221 }
02222 if (!argp2) {
02223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_timestamp_t_seqno_set" "', argument " "2"" of type '" "u_int""'");
02224 } else {
02225 arg2 = *(reinterpret_cast< u_int * >(argp2));
02226 }
02227 }
02228 if (arg1) (arg1)->seqno = arg2;
02229
02230
02231
02232 XSRETURN(argvi);
02233 fail:
02234
02235 SWIG_croak_null();
02236 }
02237 }
02238
02239
02240 XS(_wrap_dtn_timestamp_t_seqno_get) {
02241 {
02242 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ;
02243 u_int result;
02244 void *argp1 = 0 ;
02245 int res1 = 0 ;
02246 int argvi = 0;
02247 dXSARGS;
02248
02249 if ((items < 1) || (items > 1)) {
02250 SWIG_croak("Usage: dtn_timestamp_t_seqno_get(self);");
02251 }
02252 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
02253 if (!SWIG_IsOK(res1)) {
02254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_seqno_get" "', argument " "1"" of type '" "dtn_timestamp_t *""'");
02255 }
02256 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1);
02257 result = ((arg1)->seqno);
02258 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02259
02260 XSRETURN(argvi);
02261 fail:
02262
02263 SWIG_croak_null();
02264 }
02265 }
02266
02267
02268 XS(_wrap_new_dtn_timestamp_t) {
02269 {
02270 dtn_timestamp_t *result = 0 ;
02271 int argvi = 0;
02272 dXSARGS;
02273
02274 if ((items < 0) || (items > 0)) {
02275 SWIG_croak("Usage: new_dtn_timestamp_t();");
02276 }
02277 result = (dtn_timestamp_t *)new dtn_timestamp_t();
02278 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
02279 XSRETURN(argvi);
02280 fail:
02281 SWIG_croak_null();
02282 }
02283 }
02284
02285
02286 XS(_wrap_delete_dtn_timestamp_t) {
02287 {
02288 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ;
02289 void *argp1 = 0 ;
02290 int res1 = 0 ;
02291 int argvi = 0;
02292 dXSARGS;
02293
02294 if ((items < 1) || (items > 1)) {
02295 SWIG_croak("Usage: delete_dtn_timestamp_t(self);");
02296 }
02297 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, SWIG_POINTER_DISOWN | 0 );
02298 if (!SWIG_IsOK(res1)) {
02299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_timestamp_t" "', argument " "1"" of type '" "dtn_timestamp_t *""'");
02300 }
02301 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1);
02302 delete arg1;
02303
02304
02305
02306 XSRETURN(argvi);
02307 fail:
02308
02309 SWIG_croak_null();
02310 }
02311 }
02312
02313
02314 XS(_wrap_dtn_service_tag_t_tag_set) {
02315 {
02316 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ;
02317 char *arg2 ;
02318 void *argp1 = 0 ;
02319 int res1 = 0 ;
02320 char temp2[256] ;
02321 int res2 ;
02322 int argvi = 0;
02323 dXSARGS;
02324
02325 if ((items < 2) || (items > 2)) {
02326 SWIG_croak("Usage: dtn_service_tag_t_tag_set(self,tag);");
02327 }
02328 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 );
02329 if (!SWIG_IsOK(res1)) {
02330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_service_tag_t_tag_set" "', argument " "1"" of type '" "dtn_service_tag_t *""'");
02331 }
02332 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1);
02333 res2 = SWIG_AsCharArray(ST(1), temp2, 256);
02334 if (!SWIG_IsOK(res2)) {
02335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_service_tag_t_tag_set" "', argument " "2"" of type '" "char [256]""'");
02336 }
02337 arg2 = reinterpret_cast< char * >(temp2);
02338 if (arg2) memcpy(arg1->tag,arg2,256*sizeof(char));
02339 else memset(arg1->tag,0,256*sizeof(char));
02340
02341
02342
02343 XSRETURN(argvi);
02344 fail:
02345
02346
02347 SWIG_croak_null();
02348 }
02349 }
02350
02351
02352 XS(_wrap_dtn_service_tag_t_tag_get) {
02353 {
02354 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ;
02355 char *result = 0 ;
02356 void *argp1 = 0 ;
02357 int res1 = 0 ;
02358 int argvi = 0;
02359 dXSARGS;
02360
02361 if ((items < 1) || (items > 1)) {
02362 SWIG_croak("Usage: dtn_service_tag_t_tag_get(self);");
02363 }
02364 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 );
02365 if (!SWIG_IsOK(res1)) {
02366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_service_tag_t_tag_get" "', argument " "1"" of type '" "dtn_service_tag_t *""'");
02367 }
02368 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1);
02369 result = (char *)(char *) ((arg1)->tag);
02370 {
02371 size_t size = 256;
02372
02373 while (size && (result[size - 1] == '\0')) --size;
02374
02375 ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ;
02376 }
02377
02378 XSRETURN(argvi);
02379 fail:
02380
02381 SWIG_croak_null();
02382 }
02383 }
02384
02385
02386 XS(_wrap_new_dtn_service_tag_t) {
02387 {
02388 dtn_service_tag_t *result = 0 ;
02389 int argvi = 0;
02390 dXSARGS;
02391
02392 if ((items < 0) || (items > 0)) {
02393 SWIG_croak("Usage: new_dtn_service_tag_t();");
02394 }
02395 result = (dtn_service_tag_t *)new dtn_service_tag_t();
02396 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_service_tag_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
02397 XSRETURN(argvi);
02398 fail:
02399 SWIG_croak_null();
02400 }
02401 }
02402
02403
02404 XS(_wrap_delete_dtn_service_tag_t) {
02405 {
02406 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ;
02407 void *argp1 = 0 ;
02408 int res1 = 0 ;
02409 int argvi = 0;
02410 dXSARGS;
02411
02412 if ((items < 1) || (items > 1)) {
02413 SWIG_croak("Usage: delete_dtn_service_tag_t(self);");
02414 }
02415 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, SWIG_POINTER_DISOWN | 0 );
02416 if (!SWIG_IsOK(res1)) {
02417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_service_tag_t" "', argument " "1"" of type '" "dtn_service_tag_t *""'");
02418 }
02419 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1);
02420 delete arg1;
02421
02422
02423
02424 XSRETURN(argvi);
02425 fail:
02426
02427 SWIG_croak_null();
02428 }
02429 }
02430
02431
02432 XS(_wrap_dtn_reg_info_t_endpoint_set) {
02433 {
02434 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02435 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
02436 void *argp1 = 0 ;
02437 int res1 = 0 ;
02438 void *argp2 = 0 ;
02439 int res2 = 0 ;
02440 int argvi = 0;
02441 dXSARGS;
02442
02443 if ((items < 2) || (items > 2)) {
02444 SWIG_croak("Usage: dtn_reg_info_t_endpoint_set(self,endpoint);");
02445 }
02446 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02447 if (!SWIG_IsOK(res1)) {
02448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_endpoint_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02449 }
02450 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02451 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
02452 if (!SWIG_IsOK(res2)) {
02453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_endpoint_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
02454 }
02455 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
02456 if (arg1) (arg1)->endpoint = *arg2;
02457
02458
02459
02460
02461 XSRETURN(argvi);
02462 fail:
02463
02464
02465 SWIG_croak_null();
02466 }
02467 }
02468
02469
02470 XS(_wrap_dtn_reg_info_t_endpoint_get) {
02471 {
02472 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02473 dtn_endpoint_id_t *result = 0 ;
02474 void *argp1 = 0 ;
02475 int res1 = 0 ;
02476 int argvi = 0;
02477 dXSARGS;
02478
02479 if ((items < 1) || (items > 1)) {
02480 SWIG_croak("Usage: dtn_reg_info_t_endpoint_get(self);");
02481 }
02482 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02483 if (!SWIG_IsOK(res1)) {
02484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_endpoint_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02485 }
02486 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02487 result = (dtn_endpoint_id_t *)& ((arg1)->endpoint);
02488 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ;
02489
02490 XSRETURN(argvi);
02491 fail:
02492
02493 SWIG_croak_null();
02494 }
02495 }
02496
02497
02498 XS(_wrap_dtn_reg_info_t_regid_set) {
02499 {
02500 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02501 dtn_reg_id_t arg2 ;
02502 void *argp1 = 0 ;
02503 int res1 = 0 ;
02504 void *argp2 ;
02505 int res2 = 0 ;
02506 int argvi = 0;
02507 dXSARGS;
02508
02509 if ((items < 2) || (items > 2)) {
02510 SWIG_croak("Usage: dtn_reg_info_t_regid_set(self,regid);");
02511 }
02512 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02513 if (!SWIG_IsOK(res1)) {
02514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_regid_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02515 }
02516 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02517 {
02518 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02519 if (!SWIG_IsOK(res2)) {
02520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'");
02521 }
02522 if (!argp2) {
02523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'");
02524 } else {
02525 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2));
02526 }
02527 }
02528 if (arg1) (arg1)->regid = arg2;
02529
02530
02531
02532 XSRETURN(argvi);
02533 fail:
02534
02535 SWIG_croak_null();
02536 }
02537 }
02538
02539
02540 XS(_wrap_dtn_reg_info_t_regid_get) {
02541 {
02542 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02543 dtn_reg_id_t result;
02544 void *argp1 = 0 ;
02545 int res1 = 0 ;
02546 int argvi = 0;
02547 dXSARGS;
02548
02549 if ((items < 1) || (items > 1)) {
02550 SWIG_croak("Usage: dtn_reg_info_t_regid_get(self);");
02551 }
02552 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02553 if (!SWIG_IsOK(res1)) {
02554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_regid_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02555 }
02556 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02557 result = ((arg1)->regid);
02558 ST(argvi) = SWIG_NewPointerObj((new dtn_reg_id_t(static_cast< const dtn_reg_id_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02559
02560 XSRETURN(argvi);
02561 fail:
02562
02563 SWIG_croak_null();
02564 }
02565 }
02566
02567
02568 XS(_wrap_dtn_reg_info_t_flags_set) {
02569 {
02570 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02571 u_int arg2 ;
02572 void *argp1 = 0 ;
02573 int res1 = 0 ;
02574 void *argp2 ;
02575 int res2 = 0 ;
02576 int argvi = 0;
02577 dXSARGS;
02578
02579 if ((items < 2) || (items > 2)) {
02580 SWIG_croak("Usage: dtn_reg_info_t_flags_set(self,flags);");
02581 }
02582 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02583 if (!SWIG_IsOK(res1)) {
02584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_flags_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02585 }
02586 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02587 {
02588 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02589 if (!SWIG_IsOK(res2)) {
02590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_flags_set" "', argument " "2"" of type '" "u_int""'");
02591 }
02592 if (!argp2) {
02593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_flags_set" "', argument " "2"" of type '" "u_int""'");
02594 } else {
02595 arg2 = *(reinterpret_cast< u_int * >(argp2));
02596 }
02597 }
02598 if (arg1) (arg1)->flags = arg2;
02599
02600
02601
02602 XSRETURN(argvi);
02603 fail:
02604
02605 SWIG_croak_null();
02606 }
02607 }
02608
02609
02610 XS(_wrap_dtn_reg_info_t_flags_get) {
02611 {
02612 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02613 u_int result;
02614 void *argp1 = 0 ;
02615 int res1 = 0 ;
02616 int argvi = 0;
02617 dXSARGS;
02618
02619 if ((items < 1) || (items > 1)) {
02620 SWIG_croak("Usage: dtn_reg_info_t_flags_get(self);");
02621 }
02622 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02623 if (!SWIG_IsOK(res1)) {
02624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_flags_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02625 }
02626 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02627 result = ((arg1)->flags);
02628 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02629
02630 XSRETURN(argvi);
02631 fail:
02632
02633 SWIG_croak_null();
02634 }
02635 }
02636
02637
02638 XS(_wrap_dtn_reg_info_t_expiration_set) {
02639 {
02640 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02641 dtn_timeval_t arg2 ;
02642 void *argp1 = 0 ;
02643 int res1 = 0 ;
02644 void *argp2 ;
02645 int res2 = 0 ;
02646 int argvi = 0;
02647 dXSARGS;
02648
02649 if ((items < 2) || (items > 2)) {
02650 SWIG_croak("Usage: dtn_reg_info_t_expiration_set(self,expiration);");
02651 }
02652 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02653 if (!SWIG_IsOK(res1)) {
02654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_expiration_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02655 }
02656 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02657 {
02658 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02659 if (!SWIG_IsOK(res2)) {
02660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'");
02661 }
02662 if (!argp2) {
02663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'");
02664 } else {
02665 arg2 = *(reinterpret_cast< dtn_timeval_t * >(argp2));
02666 }
02667 }
02668 if (arg1) (arg1)->expiration = arg2;
02669
02670
02671
02672 XSRETURN(argvi);
02673 fail:
02674
02675 SWIG_croak_null();
02676 }
02677 }
02678
02679
02680 XS(_wrap_dtn_reg_info_t_expiration_get) {
02681 {
02682 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02683 dtn_timeval_t result;
02684 void *argp1 = 0 ;
02685 int res1 = 0 ;
02686 int argvi = 0;
02687 dXSARGS;
02688
02689 if ((items < 1) || (items > 1)) {
02690 SWIG_croak("Usage: dtn_reg_info_t_expiration_get(self);");
02691 }
02692 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02693 if (!SWIG_IsOK(res1)) {
02694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_expiration_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02695 }
02696 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02697 result = ((arg1)->expiration);
02698 ST(argvi) = SWIG_NewPointerObj((new dtn_timeval_t(static_cast< const dtn_timeval_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02699
02700 XSRETURN(argvi);
02701 fail:
02702
02703 SWIG_croak_null();
02704 }
02705 }
02706
02707
02708 XS(_wrap_dtn_reg_info_t_init_passive_set) {
02709 {
02710 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02711 bool_t arg2 ;
02712 void *argp1 = 0 ;
02713 int res1 = 0 ;
02714 void *argp2 ;
02715 int res2 = 0 ;
02716 int argvi = 0;
02717 dXSARGS;
02718
02719 if ((items < 2) || (items > 2)) {
02720 SWIG_croak("Usage: dtn_reg_info_t_init_passive_set(self,init_passive);");
02721 }
02722 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02723 if (!SWIG_IsOK(res1)) {
02724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02725 }
02726 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02727 {
02728 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_bool_t, 0 );
02729 if (!SWIG_IsOK(res2)) {
02730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "2"" of type '" "bool_t""'");
02731 }
02732 if (!argp2) {
02733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "2"" of type '" "bool_t""'");
02734 } else {
02735 arg2 = *(reinterpret_cast< bool_t * >(argp2));
02736 }
02737 }
02738 if (arg1) (arg1)->init_passive = arg2;
02739
02740
02741
02742 XSRETURN(argvi);
02743 fail:
02744
02745 SWIG_croak_null();
02746 }
02747 }
02748
02749
02750 XS(_wrap_dtn_reg_info_t_init_passive_get) {
02751 {
02752 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02753 bool_t result;
02754 void *argp1 = 0 ;
02755 int res1 = 0 ;
02756 int argvi = 0;
02757 dXSARGS;
02758
02759 if ((items < 1) || (items > 1)) {
02760 SWIG_croak("Usage: dtn_reg_info_t_init_passive_get(self);");
02761 }
02762 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02763 if (!SWIG_IsOK(res1)) {
02764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_init_passive_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02765 }
02766 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02767 result = ((arg1)->init_passive);
02768 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
02769
02770 XSRETURN(argvi);
02771 fail:
02772
02773 SWIG_croak_null();
02774 }
02775 }
02776
02777
02778 XS(_wrap_dtn_reg_info_t_script_get) {
02779 {
02780 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02781 dtn_reg_info_t_script *result = 0 ;
02782 void *argp1 = 0 ;
02783 int res1 = 0 ;
02784 int argvi = 0;
02785 dXSARGS;
02786
02787 if ((items < 1) || (items > 1)) {
02788 SWIG_croak("Usage: dtn_reg_info_t_script_get(self);");
02789 }
02790 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
02791 if (!SWIG_IsOK(res1)) {
02792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02793 }
02794 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02795 result = (dtn_reg_info_t_script *)& ((arg1)->script);
02796 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t_script, 0 | SWIG_SHADOW); argvi++ ;
02797
02798 XSRETURN(argvi);
02799 fail:
02800
02801 SWIG_croak_null();
02802 }
02803 }
02804
02805
02806 XS(_wrap_new_dtn_reg_info_t) {
02807 {
02808 dtn_reg_info_t *result = 0 ;
02809 int argvi = 0;
02810 dXSARGS;
02811
02812 if ((items < 0) || (items > 0)) {
02813 SWIG_croak("Usage: new_dtn_reg_info_t();");
02814 }
02815 result = (dtn_reg_info_t *)new dtn_reg_info_t();
02816 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
02817 XSRETURN(argvi);
02818 fail:
02819 SWIG_croak_null();
02820 }
02821 }
02822
02823
02824 XS(_wrap_delete_dtn_reg_info_t) {
02825 {
02826 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
02827 void *argp1 = 0 ;
02828 int res1 = 0 ;
02829 int argvi = 0;
02830 dXSARGS;
02831
02832 if ((items < 1) || (items > 1)) {
02833 SWIG_croak("Usage: delete_dtn_reg_info_t(self);");
02834 }
02835 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, SWIG_POINTER_DISOWN | 0 );
02836 if (!SWIG_IsOK(res1)) {
02837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_reg_info_t" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
02838 }
02839 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
02840 delete arg1;
02841
02842
02843
02844 XSRETURN(argvi);
02845 fail:
02846
02847 SWIG_croak_null();
02848 }
02849 }
02850
02851
02852 XS(_wrap_dtn_reg_info_t_script_script_len_set) {
02853 {
02854 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ;
02855 u_int arg2 ;
02856 void *argp1 = 0 ;
02857 int res1 = 0 ;
02858 void *argp2 ;
02859 int res2 = 0 ;
02860 int argvi = 0;
02861 dXSARGS;
02862
02863 if ((items < 2) || (items > 2)) {
02864 SWIG_croak("Usage: dtn_reg_info_t_script_script_len_set(self,script_len);");
02865 }
02866 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 );
02867 if (!SWIG_IsOK(res1)) {
02868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_script_len_set" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'");
02869 }
02870 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1);
02871 {
02872 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
02873 if (!SWIG_IsOK(res2)) {
02874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_script_script_len_set" "', argument " "2"" of type '" "u_int""'");
02875 }
02876 if (!argp2) {
02877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_script_script_len_set" "', argument " "2"" of type '" "u_int""'");
02878 } else {
02879 arg2 = *(reinterpret_cast< u_int * >(argp2));
02880 }
02881 }
02882 if (arg1) (arg1)->script_len = arg2;
02883
02884
02885
02886 XSRETURN(argvi);
02887 fail:
02888
02889 SWIG_croak_null();
02890 }
02891 }
02892
02893
02894 XS(_wrap_dtn_reg_info_t_script_script_len_get) {
02895 {
02896 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ;
02897 u_int result;
02898 void *argp1 = 0 ;
02899 int res1 = 0 ;
02900 int argvi = 0;
02901 dXSARGS;
02902
02903 if ((items < 1) || (items > 1)) {
02904 SWIG_croak("Usage: dtn_reg_info_t_script_script_len_get(self);");
02905 }
02906 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 );
02907 if (!SWIG_IsOK(res1)) {
02908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_script_len_get" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'");
02909 }
02910 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1);
02911 result = ((arg1)->script_len);
02912 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
02913
02914 XSRETURN(argvi);
02915 fail:
02916
02917 SWIG_croak_null();
02918 }
02919 }
02920
02921
02922 XS(_wrap_dtn_reg_info_t_script_script_val_set) {
02923 {
02924 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ;
02925 char *arg2 = (char *) 0 ;
02926 void *argp1 = 0 ;
02927 int res1 = 0 ;
02928 int res2 ;
02929 char *buf2 = 0 ;
02930 int alloc2 = 0 ;
02931 int argvi = 0;
02932 dXSARGS;
02933
02934 if ((items < 2) || (items > 2)) {
02935 SWIG_croak("Usage: dtn_reg_info_t_script_script_val_set(self,script_val);");
02936 }
02937 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 );
02938 if (!SWIG_IsOK(res1)) {
02939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_script_val_set" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'");
02940 }
02941 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1);
02942 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
02943 if (!SWIG_IsOK(res2)) {
02944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_script_script_val_set" "', argument " "2"" of type '" "char *""'");
02945 }
02946 arg2 = reinterpret_cast< char * >(buf2);
02947 if (arg1->script_val) delete[] arg1->script_val;
02948 if (arg2) {
02949 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
02950 arg1->script_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
02951 } else {
02952 arg1->script_val = 0;
02953 }
02954
02955
02956 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
02957 XSRETURN(argvi);
02958 fail:
02959
02960 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
02961 SWIG_croak_null();
02962 }
02963 }
02964
02965
02966 XS(_wrap_dtn_reg_info_t_script_script_val_get) {
02967 {
02968 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ;
02969 char *result = 0 ;
02970 void *argp1 = 0 ;
02971 int res1 = 0 ;
02972 int argvi = 0;
02973 dXSARGS;
02974
02975 if ((items < 1) || (items > 1)) {
02976 SWIG_croak("Usage: dtn_reg_info_t_script_script_val_get(self);");
02977 }
02978 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 );
02979 if (!SWIG_IsOK(res1)) {
02980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_script_val_get" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'");
02981 }
02982 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1);
02983 result = (char *) ((arg1)->script_val);
02984 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
02985
02986 XSRETURN(argvi);
02987 fail:
02988
02989 SWIG_croak_null();
02990 }
02991 }
02992
02993
02994 XS(_wrap_new_dtn_reg_info_t_script) {
02995 {
02996 dtn_reg_info_t_script *result = 0 ;
02997 int argvi = 0;
02998 dXSARGS;
02999
03000 if ((items < 0) || (items > 0)) {
03001 SWIG_croak("Usage: new_dtn_reg_info_t_script();");
03002 }
03003 result = (dtn_reg_info_t_script *)new dtn_reg_info_t_script();
03004 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t_script, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
03005 XSRETURN(argvi);
03006 fail:
03007 SWIG_croak_null();
03008 }
03009 }
03010
03011
03012 XS(_wrap_delete_dtn_reg_info_t_script) {
03013 {
03014 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ;
03015 void *argp1 = 0 ;
03016 int res1 = 0 ;
03017 int argvi = 0;
03018 dXSARGS;
03019
03020 if ((items < 1) || (items > 1)) {
03021 SWIG_croak("Usage: delete_dtn_reg_info_t_script(self);");
03022 }
03023 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, SWIG_POINTER_DISOWN | 0 );
03024 if (!SWIG_IsOK(res1)) {
03025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_reg_info_t_script" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'");
03026 }
03027 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1);
03028 delete arg1;
03029
03030
03031
03032 XSRETURN(argvi);
03033 fail:
03034
03035 SWIG_croak_null();
03036 }
03037 }
03038
03039
03040 XS(_wrap_dtn_extension_block_t_type_set) {
03041 {
03042 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03043 u_int arg2 ;
03044 void *argp1 = 0 ;
03045 int res1 = 0 ;
03046 void *argp2 ;
03047 int res2 = 0 ;
03048 int argvi = 0;
03049 dXSARGS;
03050
03051 if ((items < 2) || (items > 2)) {
03052 SWIG_croak("Usage: dtn_extension_block_t_type_set(self,type);");
03053 }
03054 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
03055 if (!SWIG_IsOK(res1)) {
03056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_type_set" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03057 }
03058 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03059 {
03060 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
03061 if (!SWIG_IsOK(res2)) {
03062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_type_set" "', argument " "2"" of type '" "u_int""'");
03063 }
03064 if (!argp2) {
03065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_type_set" "', argument " "2"" of type '" "u_int""'");
03066 } else {
03067 arg2 = *(reinterpret_cast< u_int * >(argp2));
03068 }
03069 }
03070 if (arg1) (arg1)->type = arg2;
03071
03072
03073
03074 XSRETURN(argvi);
03075 fail:
03076
03077 SWIG_croak_null();
03078 }
03079 }
03080
03081
03082 XS(_wrap_dtn_extension_block_t_type_get) {
03083 {
03084 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03085 u_int result;
03086 void *argp1 = 0 ;
03087 int res1 = 0 ;
03088 int argvi = 0;
03089 dXSARGS;
03090
03091 if ((items < 1) || (items > 1)) {
03092 SWIG_croak("Usage: dtn_extension_block_t_type_get(self);");
03093 }
03094 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
03095 if (!SWIG_IsOK(res1)) {
03096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_type_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03097 }
03098 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03099 result = ((arg1)->type);
03100 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
03101
03102 XSRETURN(argvi);
03103 fail:
03104
03105 SWIG_croak_null();
03106 }
03107 }
03108
03109
03110 XS(_wrap_dtn_extension_block_t_flags_set) {
03111 {
03112 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03113 u_int arg2 ;
03114 void *argp1 = 0 ;
03115 int res1 = 0 ;
03116 void *argp2 ;
03117 int res2 = 0 ;
03118 int argvi = 0;
03119 dXSARGS;
03120
03121 if ((items < 2) || (items > 2)) {
03122 SWIG_croak("Usage: dtn_extension_block_t_flags_set(self,flags);");
03123 }
03124 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
03125 if (!SWIG_IsOK(res1)) {
03126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_flags_set" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03127 }
03128 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03129 {
03130 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
03131 if (!SWIG_IsOK(res2)) {
03132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_flags_set" "', argument " "2"" of type '" "u_int""'");
03133 }
03134 if (!argp2) {
03135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_flags_set" "', argument " "2"" of type '" "u_int""'");
03136 } else {
03137 arg2 = *(reinterpret_cast< u_int * >(argp2));
03138 }
03139 }
03140 if (arg1) (arg1)->flags = arg2;
03141
03142
03143
03144 XSRETURN(argvi);
03145 fail:
03146
03147 SWIG_croak_null();
03148 }
03149 }
03150
03151
03152 XS(_wrap_dtn_extension_block_t_flags_get) {
03153 {
03154 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03155 u_int result;
03156 void *argp1 = 0 ;
03157 int res1 = 0 ;
03158 int argvi = 0;
03159 dXSARGS;
03160
03161 if ((items < 1) || (items > 1)) {
03162 SWIG_croak("Usage: dtn_extension_block_t_flags_get(self);");
03163 }
03164 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
03165 if (!SWIG_IsOK(res1)) {
03166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_flags_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03167 }
03168 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03169 result = ((arg1)->flags);
03170 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
03171
03172 XSRETURN(argvi);
03173 fail:
03174
03175 SWIG_croak_null();
03176 }
03177 }
03178
03179
03180 XS(_wrap_dtn_extension_block_t_data_get) {
03181 {
03182 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03183 dtn_extension_block_t_data *result = 0 ;
03184 void *argp1 = 0 ;
03185 int res1 = 0 ;
03186 int argvi = 0;
03187 dXSARGS;
03188
03189 if ((items < 1) || (items > 1)) {
03190 SWIG_croak("Usage: dtn_extension_block_t_data_get(self);");
03191 }
03192 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
03193 if (!SWIG_IsOK(res1)) {
03194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03195 }
03196 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03197 result = (dtn_extension_block_t_data *)& ((arg1)->data);
03198 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t_data, 0 | SWIG_SHADOW); argvi++ ;
03199
03200 XSRETURN(argvi);
03201 fail:
03202
03203 SWIG_croak_null();
03204 }
03205 }
03206
03207
03208 XS(_wrap_new_dtn_extension_block_t) {
03209 {
03210 dtn_extension_block_t *result = 0 ;
03211 int argvi = 0;
03212 dXSARGS;
03213
03214 if ((items < 0) || (items > 0)) {
03215 SWIG_croak("Usage: new_dtn_extension_block_t();");
03216 }
03217 result = (dtn_extension_block_t *)new dtn_extension_block_t();
03218 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
03219 XSRETURN(argvi);
03220 fail:
03221 SWIG_croak_null();
03222 }
03223 }
03224
03225
03226 XS(_wrap_delete_dtn_extension_block_t) {
03227 {
03228 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ;
03229 void *argp1 = 0 ;
03230 int res1 = 0 ;
03231 int argvi = 0;
03232 dXSARGS;
03233
03234 if ((items < 1) || (items > 1)) {
03235 SWIG_croak("Usage: delete_dtn_extension_block_t(self);");
03236 }
03237 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 );
03238 if (!SWIG_IsOK(res1)) {
03239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_extension_block_t" "', argument " "1"" of type '" "dtn_extension_block_t *""'");
03240 }
03241 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1);
03242 delete arg1;
03243
03244
03245
03246 XSRETURN(argvi);
03247 fail:
03248
03249 SWIG_croak_null();
03250 }
03251 }
03252
03253
03254 XS(_wrap_dtn_extension_block_t_data_data_len_set) {
03255 {
03256 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ;
03257 u_int arg2 ;
03258 void *argp1 = 0 ;
03259 int res1 = 0 ;
03260 void *argp2 ;
03261 int res2 = 0 ;
03262 int argvi = 0;
03263 dXSARGS;
03264
03265 if ((items < 2) || (items > 2)) {
03266 SWIG_croak("Usage: dtn_extension_block_t_data_data_len_set(self,data_len);");
03267 }
03268 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 );
03269 if (!SWIG_IsOK(res1)) {
03270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_data_len_set" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'");
03271 }
03272 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1);
03273 {
03274 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
03275 if (!SWIG_IsOK(res2)) {
03276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'");
03277 }
03278 if (!argp2) {
03279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'");
03280 } else {
03281 arg2 = *(reinterpret_cast< u_int * >(argp2));
03282 }
03283 }
03284 if (arg1) (arg1)->data_len = arg2;
03285
03286
03287
03288 XSRETURN(argvi);
03289 fail:
03290
03291 SWIG_croak_null();
03292 }
03293 }
03294
03295
03296 XS(_wrap_dtn_extension_block_t_data_data_len_get) {
03297 {
03298 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ;
03299 u_int result;
03300 void *argp1 = 0 ;
03301 int res1 = 0 ;
03302 int argvi = 0;
03303 dXSARGS;
03304
03305 if ((items < 1) || (items > 1)) {
03306 SWIG_croak("Usage: dtn_extension_block_t_data_data_len_get(self);");
03307 }
03308 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 );
03309 if (!SWIG_IsOK(res1)) {
03310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_data_len_get" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'");
03311 }
03312 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1);
03313 result = ((arg1)->data_len);
03314 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
03315
03316 XSRETURN(argvi);
03317 fail:
03318
03319 SWIG_croak_null();
03320 }
03321 }
03322
03323
03324 XS(_wrap_dtn_extension_block_t_data_data_val_set) {
03325 {
03326 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ;
03327 char *arg2 = (char *) 0 ;
03328 void *argp1 = 0 ;
03329 int res1 = 0 ;
03330 int res2 ;
03331 char *buf2 = 0 ;
03332 int alloc2 = 0 ;
03333 int argvi = 0;
03334 dXSARGS;
03335
03336 if ((items < 2) || (items > 2)) {
03337 SWIG_croak("Usage: dtn_extension_block_t_data_data_val_set(self,data_val);");
03338 }
03339 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 );
03340 if (!SWIG_IsOK(res1)) {
03341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_data_val_set" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'");
03342 }
03343 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1);
03344 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
03345 if (!SWIG_IsOK(res2)) {
03346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_data_data_val_set" "', argument " "2"" of type '" "char *""'");
03347 }
03348 arg2 = reinterpret_cast< char * >(buf2);
03349 if (arg1->data_val) delete[] arg1->data_val;
03350 if (arg2) {
03351 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
03352 arg1->data_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
03353 } else {
03354 arg1->data_val = 0;
03355 }
03356
03357
03358 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
03359 XSRETURN(argvi);
03360 fail:
03361
03362 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
03363 SWIG_croak_null();
03364 }
03365 }
03366
03367
03368 XS(_wrap_dtn_extension_block_t_data_data_val_get) {
03369 {
03370 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ;
03371 char *result = 0 ;
03372 void *argp1 = 0 ;
03373 int res1 = 0 ;
03374 int argvi = 0;
03375 dXSARGS;
03376
03377 if ((items < 1) || (items > 1)) {
03378 SWIG_croak("Usage: dtn_extension_block_t_data_data_val_get(self);");
03379 }
03380 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 );
03381 if (!SWIG_IsOK(res1)) {
03382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_data_val_get" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'");
03383 }
03384 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1);
03385 result = (char *) ((arg1)->data_val);
03386 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
03387
03388 XSRETURN(argvi);
03389 fail:
03390
03391 SWIG_croak_null();
03392 }
03393 }
03394
03395
03396 XS(_wrap_new_dtn_extension_block_t_data) {
03397 {
03398 dtn_extension_block_t_data *result = 0 ;
03399 int argvi = 0;
03400 dXSARGS;
03401
03402 if ((items < 0) || (items > 0)) {
03403 SWIG_croak("Usage: new_dtn_extension_block_t_data();");
03404 }
03405 result = (dtn_extension_block_t_data *)new dtn_extension_block_t_data();
03406 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t_data, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
03407 XSRETURN(argvi);
03408 fail:
03409 SWIG_croak_null();
03410 }
03411 }
03412
03413
03414 XS(_wrap_delete_dtn_extension_block_t_data) {
03415 {
03416 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ;
03417 void *argp1 = 0 ;
03418 int res1 = 0 ;
03419 int argvi = 0;
03420 dXSARGS;
03421
03422 if ((items < 1) || (items > 1)) {
03423 SWIG_croak("Usage: delete_dtn_extension_block_t_data(self);");
03424 }
03425 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, SWIG_POINTER_DISOWN | 0 );
03426 if (!SWIG_IsOK(res1)) {
03427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_extension_block_t_data" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'");
03428 }
03429 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1);
03430 delete arg1;
03431
03432
03433
03434 XSRETURN(argvi);
03435 fail:
03436
03437 SWIG_croak_null();
03438 }
03439 }
03440
03441
03442 XS(_wrap_dtn_sequence_id_t_data_get) {
03443 {
03444 dtn_sequence_id_t *arg1 = (dtn_sequence_id_t *) 0 ;
03445 dtn_sequence_id_t_data *result = 0 ;
03446 void *argp1 = 0 ;
03447 int res1 = 0 ;
03448 int argvi = 0;
03449 dXSARGS;
03450
03451 if ((items < 1) || (items > 1)) {
03452 SWIG_croak("Usage: dtn_sequence_id_t_data_get(self);");
03453 }
03454 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 );
03455 if (!SWIG_IsOK(res1)) {
03456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_get" "', argument " "1"" of type '" "dtn_sequence_id_t *""'");
03457 }
03458 arg1 = reinterpret_cast< dtn_sequence_id_t * >(argp1);
03459 result = (dtn_sequence_id_t_data *)& ((arg1)->data);
03460 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t_data, 0 | SWIG_SHADOW); argvi++ ;
03461
03462 XSRETURN(argvi);
03463 fail:
03464
03465 SWIG_croak_null();
03466 }
03467 }
03468
03469
03470 XS(_wrap_new_dtn_sequence_id_t) {
03471 {
03472 dtn_sequence_id_t *result = 0 ;
03473 int argvi = 0;
03474 dXSARGS;
03475
03476 if ((items < 0) || (items > 0)) {
03477 SWIG_croak("Usage: new_dtn_sequence_id_t();");
03478 }
03479 result = (dtn_sequence_id_t *)new dtn_sequence_id_t();
03480 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
03481 XSRETURN(argvi);
03482 fail:
03483 SWIG_croak_null();
03484 }
03485 }
03486
03487
03488 XS(_wrap_delete_dtn_sequence_id_t) {
03489 {
03490 dtn_sequence_id_t *arg1 = (dtn_sequence_id_t *) 0 ;
03491 void *argp1 = 0 ;
03492 int res1 = 0 ;
03493 int argvi = 0;
03494 dXSARGS;
03495
03496 if ((items < 1) || (items > 1)) {
03497 SWIG_croak("Usage: delete_dtn_sequence_id_t(self);");
03498 }
03499 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t, SWIG_POINTER_DISOWN | 0 );
03500 if (!SWIG_IsOK(res1)) {
03501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_sequence_id_t" "', argument " "1"" of type '" "dtn_sequence_id_t *""'");
03502 }
03503 arg1 = reinterpret_cast< dtn_sequence_id_t * >(argp1);
03504 delete arg1;
03505
03506
03507
03508 XSRETURN(argvi);
03509 fail:
03510
03511 SWIG_croak_null();
03512 }
03513 }
03514
03515
03516 XS(_wrap_dtn_sequence_id_t_data_data_len_set) {
03517 {
03518 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ;
03519 u_int arg2 ;
03520 void *argp1 = 0 ;
03521 int res1 = 0 ;
03522 void *argp2 ;
03523 int res2 = 0 ;
03524 int argvi = 0;
03525 dXSARGS;
03526
03527 if ((items < 2) || (items > 2)) {
03528 SWIG_croak("Usage: dtn_sequence_id_t_data_data_len_set(self,data_len);");
03529 }
03530 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 );
03531 if (!SWIG_IsOK(res1)) {
03532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_data_len_set" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'");
03533 }
03534 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1);
03535 {
03536 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
03537 if (!SWIG_IsOK(res2)) {
03538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_sequence_id_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'");
03539 }
03540 if (!argp2) {
03541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_sequence_id_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'");
03542 } else {
03543 arg2 = *(reinterpret_cast< u_int * >(argp2));
03544 }
03545 }
03546 if (arg1) (arg1)->data_len = arg2;
03547
03548
03549
03550 XSRETURN(argvi);
03551 fail:
03552
03553 SWIG_croak_null();
03554 }
03555 }
03556
03557
03558 XS(_wrap_dtn_sequence_id_t_data_data_len_get) {
03559 {
03560 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ;
03561 u_int result;
03562 void *argp1 = 0 ;
03563 int res1 = 0 ;
03564 int argvi = 0;
03565 dXSARGS;
03566
03567 if ((items < 1) || (items > 1)) {
03568 SWIG_croak("Usage: dtn_sequence_id_t_data_data_len_get(self);");
03569 }
03570 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 );
03571 if (!SWIG_IsOK(res1)) {
03572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_data_len_get" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'");
03573 }
03574 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1);
03575 result = ((arg1)->data_len);
03576 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
03577
03578 XSRETURN(argvi);
03579 fail:
03580
03581 SWIG_croak_null();
03582 }
03583 }
03584
03585
03586 XS(_wrap_dtn_sequence_id_t_data_data_val_set) {
03587 {
03588 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ;
03589 char *arg2 = (char *) 0 ;
03590 void *argp1 = 0 ;
03591 int res1 = 0 ;
03592 int res2 ;
03593 char *buf2 = 0 ;
03594 int alloc2 = 0 ;
03595 int argvi = 0;
03596 dXSARGS;
03597
03598 if ((items < 2) || (items > 2)) {
03599 SWIG_croak("Usage: dtn_sequence_id_t_data_data_val_set(self,data_val);");
03600 }
03601 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 );
03602 if (!SWIG_IsOK(res1)) {
03603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_data_val_set" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'");
03604 }
03605 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1);
03606 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
03607 if (!SWIG_IsOK(res2)) {
03608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_sequence_id_t_data_data_val_set" "', argument " "2"" of type '" "char *""'");
03609 }
03610 arg2 = reinterpret_cast< char * >(buf2);
03611 if (arg1->data_val) delete[] arg1->data_val;
03612 if (arg2) {
03613 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
03614 arg1->data_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
03615 } else {
03616 arg1->data_val = 0;
03617 }
03618
03619
03620 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
03621 XSRETURN(argvi);
03622 fail:
03623
03624 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
03625 SWIG_croak_null();
03626 }
03627 }
03628
03629
03630 XS(_wrap_dtn_sequence_id_t_data_data_val_get) {
03631 {
03632 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ;
03633 char *result = 0 ;
03634 void *argp1 = 0 ;
03635 int res1 = 0 ;
03636 int argvi = 0;
03637 dXSARGS;
03638
03639 if ((items < 1) || (items > 1)) {
03640 SWIG_croak("Usage: dtn_sequence_id_t_data_data_val_get(self);");
03641 }
03642 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 );
03643 if (!SWIG_IsOK(res1)) {
03644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_data_val_get" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'");
03645 }
03646 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1);
03647 result = (char *) ((arg1)->data_val);
03648 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
03649
03650 XSRETURN(argvi);
03651 fail:
03652
03653 SWIG_croak_null();
03654 }
03655 }
03656
03657
03658 XS(_wrap_new_dtn_sequence_id_t_data) {
03659 {
03660 dtn_sequence_id_t_data *result = 0 ;
03661 int argvi = 0;
03662 dXSARGS;
03663
03664 if ((items < 0) || (items > 0)) {
03665 SWIG_croak("Usage: new_dtn_sequence_id_t_data();");
03666 }
03667 result = (dtn_sequence_id_t_data *)new dtn_sequence_id_t_data();
03668 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t_data, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
03669 XSRETURN(argvi);
03670 fail:
03671 SWIG_croak_null();
03672 }
03673 }
03674
03675
03676 XS(_wrap_delete_dtn_sequence_id_t_data) {
03677 {
03678 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ;
03679 void *argp1 = 0 ;
03680 int res1 = 0 ;
03681 int argvi = 0;
03682 dXSARGS;
03683
03684 if ((items < 1) || (items > 1)) {
03685 SWIG_croak("Usage: delete_dtn_sequence_id_t_data(self);");
03686 }
03687 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, SWIG_POINTER_DISOWN | 0 );
03688 if (!SWIG_IsOK(res1)) {
03689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_sequence_id_t_data" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'");
03690 }
03691 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1);
03692 delete arg1;
03693
03694
03695
03696 XSRETURN(argvi);
03697 fail:
03698
03699 SWIG_croak_null();
03700 }
03701 }
03702
03703
03704 XS(_wrap_dtn_bundle_spec_t_source_set) {
03705 {
03706 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03707 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
03708 void *argp1 = 0 ;
03709 int res1 = 0 ;
03710 void *argp2 = 0 ;
03711 int res2 = 0 ;
03712 int argvi = 0;
03713 dXSARGS;
03714
03715 if ((items < 2) || (items > 2)) {
03716 SWIG_croak("Usage: dtn_bundle_spec_t_source_set(self,source);");
03717 }
03718 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03719 if (!SWIG_IsOK(res1)) {
03720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_source_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03721 }
03722 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03723 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
03724 if (!SWIG_IsOK(res2)) {
03725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_source_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
03726 }
03727 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
03728 if (arg1) (arg1)->source = *arg2;
03729
03730
03731
03732
03733 XSRETURN(argvi);
03734 fail:
03735
03736
03737 SWIG_croak_null();
03738 }
03739 }
03740
03741
03742 XS(_wrap_dtn_bundle_spec_t_source_get) {
03743 {
03744 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03745 dtn_endpoint_id_t *result = 0 ;
03746 void *argp1 = 0 ;
03747 int res1 = 0 ;
03748 int argvi = 0;
03749 dXSARGS;
03750
03751 if ((items < 1) || (items > 1)) {
03752 SWIG_croak("Usage: dtn_bundle_spec_t_source_get(self);");
03753 }
03754 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03755 if (!SWIG_IsOK(res1)) {
03756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_source_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03757 }
03758 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03759 result = (dtn_endpoint_id_t *)& ((arg1)->source);
03760 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ;
03761
03762 XSRETURN(argvi);
03763 fail:
03764
03765 SWIG_croak_null();
03766 }
03767 }
03768
03769
03770 XS(_wrap_dtn_bundle_spec_t_dest_set) {
03771 {
03772 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03773 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
03774 void *argp1 = 0 ;
03775 int res1 = 0 ;
03776 void *argp2 = 0 ;
03777 int res2 = 0 ;
03778 int argvi = 0;
03779 dXSARGS;
03780
03781 if ((items < 2) || (items > 2)) {
03782 SWIG_croak("Usage: dtn_bundle_spec_t_dest_set(self,dest);");
03783 }
03784 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03785 if (!SWIG_IsOK(res1)) {
03786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dest_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03787 }
03788 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03789 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
03790 if (!SWIG_IsOK(res2)) {
03791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_dest_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
03792 }
03793 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
03794 if (arg1) (arg1)->dest = *arg2;
03795
03796
03797
03798
03799 XSRETURN(argvi);
03800 fail:
03801
03802
03803 SWIG_croak_null();
03804 }
03805 }
03806
03807
03808 XS(_wrap_dtn_bundle_spec_t_dest_get) {
03809 {
03810 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03811 dtn_endpoint_id_t *result = 0 ;
03812 void *argp1 = 0 ;
03813 int res1 = 0 ;
03814 int argvi = 0;
03815 dXSARGS;
03816
03817 if ((items < 1) || (items > 1)) {
03818 SWIG_croak("Usage: dtn_bundle_spec_t_dest_get(self);");
03819 }
03820 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03821 if (!SWIG_IsOK(res1)) {
03822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dest_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03823 }
03824 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03825 result = (dtn_endpoint_id_t *)& ((arg1)->dest);
03826 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ;
03827
03828 XSRETURN(argvi);
03829 fail:
03830
03831 SWIG_croak_null();
03832 }
03833 }
03834
03835
03836 XS(_wrap_dtn_bundle_spec_t_replyto_set) {
03837 {
03838 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03839 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
03840 void *argp1 = 0 ;
03841 int res1 = 0 ;
03842 void *argp2 = 0 ;
03843 int res2 = 0 ;
03844 int argvi = 0;
03845 dXSARGS;
03846
03847 if ((items < 2) || (items > 2)) {
03848 SWIG_croak("Usage: dtn_bundle_spec_t_replyto_set(self,replyto);");
03849 }
03850 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03851 if (!SWIG_IsOK(res1)) {
03852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_replyto_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03853 }
03854 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03855 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
03856 if (!SWIG_IsOK(res2)) {
03857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_replyto_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
03858 }
03859 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
03860 if (arg1) (arg1)->replyto = *arg2;
03861
03862
03863
03864
03865 XSRETURN(argvi);
03866 fail:
03867
03868
03869 SWIG_croak_null();
03870 }
03871 }
03872
03873
03874 XS(_wrap_dtn_bundle_spec_t_replyto_get) {
03875 {
03876 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03877 dtn_endpoint_id_t *result = 0 ;
03878 void *argp1 = 0 ;
03879 int res1 = 0 ;
03880 int argvi = 0;
03881 dXSARGS;
03882
03883 if ((items < 1) || (items > 1)) {
03884 SWIG_croak("Usage: dtn_bundle_spec_t_replyto_get(self);");
03885 }
03886 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03887 if (!SWIG_IsOK(res1)) {
03888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_replyto_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03889 }
03890 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03891 result = (dtn_endpoint_id_t *)& ((arg1)->replyto);
03892 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ;
03893
03894 XSRETURN(argvi);
03895 fail:
03896
03897 SWIG_croak_null();
03898 }
03899 }
03900
03901
03902 XS(_wrap_dtn_bundle_spec_t_priority_set) {
03903 {
03904 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03905 dtn_bundle_priority_t arg2 ;
03906 void *argp1 = 0 ;
03907 int res1 = 0 ;
03908 int val2 ;
03909 int ecode2 = 0 ;
03910 int argvi = 0;
03911 dXSARGS;
03912
03913 if ((items < 2) || (items > 2)) {
03914 SWIG_croak("Usage: dtn_bundle_spec_t_priority_set(self,priority);");
03915 }
03916 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03917 if (!SWIG_IsOK(res1)) {
03918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_priority_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03919 }
03920 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03921 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
03922 if (!SWIG_IsOK(ecode2)) {
03923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_spec_t_priority_set" "', argument " "2"" of type '" "dtn_bundle_priority_t""'");
03924 }
03925 arg2 = static_cast< dtn_bundle_priority_t >(val2);
03926 if (arg1) (arg1)->priority = arg2;
03927
03928
03929
03930
03931 XSRETURN(argvi);
03932 fail:
03933
03934
03935 SWIG_croak_null();
03936 }
03937 }
03938
03939
03940 XS(_wrap_dtn_bundle_spec_t_priority_get) {
03941 {
03942 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03943 dtn_bundle_priority_t result;
03944 void *argp1 = 0 ;
03945 int res1 = 0 ;
03946 int argvi = 0;
03947 dXSARGS;
03948
03949 if ((items < 1) || (items > 1)) {
03950 SWIG_croak("Usage: dtn_bundle_spec_t_priority_get(self);");
03951 }
03952 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03953 if (!SWIG_IsOK(res1)) {
03954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_priority_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03955 }
03956 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03957 result = (dtn_bundle_priority_t) ((arg1)->priority);
03958 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
03959
03960 XSRETURN(argvi);
03961 fail:
03962
03963 SWIG_croak_null();
03964 }
03965 }
03966
03967
03968 XS(_wrap_dtn_bundle_spec_t_dopts_set) {
03969 {
03970 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
03971 int arg2 ;
03972 void *argp1 = 0 ;
03973 int res1 = 0 ;
03974 int val2 ;
03975 int ecode2 = 0 ;
03976 int argvi = 0;
03977 dXSARGS;
03978
03979 if ((items < 2) || (items > 2)) {
03980 SWIG_croak("Usage: dtn_bundle_spec_t_dopts_set(self,dopts);");
03981 }
03982 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
03983 if (!SWIG_IsOK(res1)) {
03984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dopts_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
03985 }
03986 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
03987 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
03988 if (!SWIG_IsOK(ecode2)) {
03989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_spec_t_dopts_set" "', argument " "2"" of type '" "int""'");
03990 }
03991 arg2 = static_cast< int >(val2);
03992 if (arg1) (arg1)->dopts = arg2;
03993
03994
03995
03996
03997 XSRETURN(argvi);
03998 fail:
03999
04000
04001 SWIG_croak_null();
04002 }
04003 }
04004
04005
04006 XS(_wrap_dtn_bundle_spec_t_dopts_get) {
04007 {
04008 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04009 int result;
04010 void *argp1 = 0 ;
04011 int res1 = 0 ;
04012 int argvi = 0;
04013 dXSARGS;
04014
04015 if ((items < 1) || (items > 1)) {
04016 SWIG_croak("Usage: dtn_bundle_spec_t_dopts_get(self);");
04017 }
04018 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04019 if (!SWIG_IsOK(res1)) {
04020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dopts_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04021 }
04022 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04023 result = (int) ((arg1)->dopts);
04024 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
04025
04026 XSRETURN(argvi);
04027 fail:
04028
04029 SWIG_croak_null();
04030 }
04031 }
04032
04033
04034 XS(_wrap_dtn_bundle_spec_t_expiration_set) {
04035 {
04036 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04037 dtn_timeval_t arg2 ;
04038 void *argp1 = 0 ;
04039 int res1 = 0 ;
04040 void *argp2 ;
04041 int res2 = 0 ;
04042 int argvi = 0;
04043 dXSARGS;
04044
04045 if ((items < 2) || (items > 2)) {
04046 SWIG_croak("Usage: dtn_bundle_spec_t_expiration_set(self,expiration);");
04047 }
04048 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04049 if (!SWIG_IsOK(res1)) {
04050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04051 }
04052 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04053 {
04054 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
04055 if (!SWIG_IsOK(res2)) {
04056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'");
04057 }
04058 if (!argp2) {
04059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'");
04060 } else {
04061 arg2 = *(reinterpret_cast< dtn_timeval_t * >(argp2));
04062 }
04063 }
04064 if (arg1) (arg1)->expiration = arg2;
04065
04066
04067
04068 XSRETURN(argvi);
04069 fail:
04070
04071 SWIG_croak_null();
04072 }
04073 }
04074
04075
04076 XS(_wrap_dtn_bundle_spec_t_expiration_get) {
04077 {
04078 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04079 dtn_timeval_t result;
04080 void *argp1 = 0 ;
04081 int res1 = 0 ;
04082 int argvi = 0;
04083 dXSARGS;
04084
04085 if ((items < 1) || (items > 1)) {
04086 SWIG_croak("Usage: dtn_bundle_spec_t_expiration_get(self);");
04087 }
04088 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04089 if (!SWIG_IsOK(res1)) {
04090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_expiration_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04091 }
04092 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04093 result = ((arg1)->expiration);
04094 ST(argvi) = SWIG_NewPointerObj((new dtn_timeval_t(static_cast< const dtn_timeval_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
04095
04096 XSRETURN(argvi);
04097 fail:
04098
04099 SWIG_croak_null();
04100 }
04101 }
04102
04103
04104 XS(_wrap_dtn_bundle_spec_t_creation_ts_set) {
04105 {
04106 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04107 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
04108 void *argp1 = 0 ;
04109 int res1 = 0 ;
04110 void *argp2 = 0 ;
04111 int res2 = 0 ;
04112 int argvi = 0;
04113 dXSARGS;
04114
04115 if ((items < 2) || (items > 2)) {
04116 SWIG_croak("Usage: dtn_bundle_spec_t_creation_ts_set(self,creation_ts);");
04117 }
04118 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04119 if (!SWIG_IsOK(res1)) {
04120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_creation_ts_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04121 }
04122 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04123 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
04124 if (!SWIG_IsOK(res2)) {
04125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_creation_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
04126 }
04127 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
04128 if (arg1) (arg1)->creation_ts = *arg2;
04129
04130
04131
04132
04133 XSRETURN(argvi);
04134 fail:
04135
04136
04137 SWIG_croak_null();
04138 }
04139 }
04140
04141
04142 XS(_wrap_dtn_bundle_spec_t_creation_ts_get) {
04143 {
04144 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04145 dtn_timestamp_t *result = 0 ;
04146 void *argp1 = 0 ;
04147 int res1 = 0 ;
04148 int argvi = 0;
04149 dXSARGS;
04150
04151 if ((items < 1) || (items > 1)) {
04152 SWIG_croak("Usage: dtn_bundle_spec_t_creation_ts_get(self);");
04153 }
04154 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04155 if (!SWIG_IsOK(res1)) {
04156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_creation_ts_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04157 }
04158 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04159 result = (dtn_timestamp_t *)& ((arg1)->creation_ts);
04160 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
04161
04162 XSRETURN(argvi);
04163 fail:
04164
04165 SWIG_croak_null();
04166 }
04167 }
04168
04169
04170 XS(_wrap_dtn_bundle_spec_t_delivery_regid_set) {
04171 {
04172 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04173 dtn_reg_id_t arg2 ;
04174 void *argp1 = 0 ;
04175 int res1 = 0 ;
04176 void *argp2 ;
04177 int res2 = 0 ;
04178 int argvi = 0;
04179 dXSARGS;
04180
04181 if ((items < 2) || (items > 2)) {
04182 SWIG_croak("Usage: dtn_bundle_spec_t_delivery_regid_set(self,delivery_regid);");
04183 }
04184 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04185 if (!SWIG_IsOK(res1)) {
04186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_delivery_regid_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04187 }
04188 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04189 {
04190 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
04191 if (!SWIG_IsOK(res2)) {
04192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_delivery_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'");
04193 }
04194 if (!argp2) {
04195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_delivery_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'");
04196 } else {
04197 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2));
04198 }
04199 }
04200 if (arg1) (arg1)->delivery_regid = arg2;
04201
04202
04203
04204 XSRETURN(argvi);
04205 fail:
04206
04207 SWIG_croak_null();
04208 }
04209 }
04210
04211
04212 XS(_wrap_dtn_bundle_spec_t_delivery_regid_get) {
04213 {
04214 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04215 dtn_reg_id_t result;
04216 void *argp1 = 0 ;
04217 int res1 = 0 ;
04218 int argvi = 0;
04219 dXSARGS;
04220
04221 if ((items < 1) || (items > 1)) {
04222 SWIG_croak("Usage: dtn_bundle_spec_t_delivery_regid_get(self);");
04223 }
04224 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04225 if (!SWIG_IsOK(res1)) {
04226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_delivery_regid_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04227 }
04228 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04229 result = ((arg1)->delivery_regid);
04230 ST(argvi) = SWIG_NewPointerObj((new dtn_reg_id_t(static_cast< const dtn_reg_id_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
04231
04232 XSRETURN(argvi);
04233 fail:
04234
04235 SWIG_croak_null();
04236 }
04237 }
04238
04239
04240 XS(_wrap_dtn_bundle_spec_t_sequence_id_set) {
04241 {
04242 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04243 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ;
04244 void *argp1 = 0 ;
04245 int res1 = 0 ;
04246 void *argp2 = 0 ;
04247 int res2 = 0 ;
04248 int argvi = 0;
04249 dXSARGS;
04250
04251 if ((items < 2) || (items > 2)) {
04252 SWIG_croak("Usage: dtn_bundle_spec_t_sequence_id_set(self,sequence_id);");
04253 }
04254 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04255 if (!SWIG_IsOK(res1)) {
04256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_sequence_id_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04257 }
04258 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04259 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 );
04260 if (!SWIG_IsOK(res2)) {
04261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_sequence_id_set" "', argument " "2"" of type '" "dtn_sequence_id_t *""'");
04262 }
04263 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2);
04264 if (arg1) (arg1)->sequence_id = *arg2;
04265
04266
04267
04268
04269 XSRETURN(argvi);
04270 fail:
04271
04272
04273 SWIG_croak_null();
04274 }
04275 }
04276
04277
04278 XS(_wrap_dtn_bundle_spec_t_sequence_id_get) {
04279 {
04280 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04281 dtn_sequence_id_t *result = 0 ;
04282 void *argp1 = 0 ;
04283 int res1 = 0 ;
04284 int argvi = 0;
04285 dXSARGS;
04286
04287 if ((items < 1) || (items > 1)) {
04288 SWIG_croak("Usage: dtn_bundle_spec_t_sequence_id_get(self);");
04289 }
04290 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04291 if (!SWIG_IsOK(res1)) {
04292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_sequence_id_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04293 }
04294 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04295 result = (dtn_sequence_id_t *)& ((arg1)->sequence_id);
04296 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, 0 | SWIG_SHADOW); argvi++ ;
04297
04298 XSRETURN(argvi);
04299 fail:
04300
04301 SWIG_croak_null();
04302 }
04303 }
04304
04305
04306 XS(_wrap_dtn_bundle_spec_t_obsoletes_id_set) {
04307 {
04308 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04309 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ;
04310 void *argp1 = 0 ;
04311 int res1 = 0 ;
04312 void *argp2 = 0 ;
04313 int res2 = 0 ;
04314 int argvi = 0;
04315 dXSARGS;
04316
04317 if ((items < 2) || (items > 2)) {
04318 SWIG_croak("Usage: dtn_bundle_spec_t_obsoletes_id_set(self,obsoletes_id);");
04319 }
04320 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04321 if (!SWIG_IsOK(res1)) {
04322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_obsoletes_id_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04323 }
04324 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04325 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 );
04326 if (!SWIG_IsOK(res2)) {
04327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_obsoletes_id_set" "', argument " "2"" of type '" "dtn_sequence_id_t *""'");
04328 }
04329 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2);
04330 if (arg1) (arg1)->obsoletes_id = *arg2;
04331
04332
04333
04334
04335 XSRETURN(argvi);
04336 fail:
04337
04338
04339 SWIG_croak_null();
04340 }
04341 }
04342
04343
04344 XS(_wrap_dtn_bundle_spec_t_obsoletes_id_get) {
04345 {
04346 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04347 dtn_sequence_id_t *result = 0 ;
04348 void *argp1 = 0 ;
04349 int res1 = 0 ;
04350 int argvi = 0;
04351 dXSARGS;
04352
04353 if ((items < 1) || (items > 1)) {
04354 SWIG_croak("Usage: dtn_bundle_spec_t_obsoletes_id_get(self);");
04355 }
04356 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04357 if (!SWIG_IsOK(res1)) {
04358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_obsoletes_id_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04359 }
04360 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04361 result = (dtn_sequence_id_t *)& ((arg1)->obsoletes_id);
04362 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, 0 | SWIG_SHADOW); argvi++ ;
04363
04364 XSRETURN(argvi);
04365 fail:
04366
04367 SWIG_croak_null();
04368 }
04369 }
04370
04371
04372 XS(_wrap_dtn_bundle_spec_t_metadata_get) {
04373 {
04374 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04375 dtn_bundle_spec_t_metadata *result = 0 ;
04376 void *argp1 = 0 ;
04377 int res1 = 0 ;
04378 int argvi = 0;
04379 dXSARGS;
04380
04381 if ((items < 1) || (items > 1)) {
04382 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_get(self);");
04383 }
04384 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04385 if (!SWIG_IsOK(res1)) {
04386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04387 }
04388 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04389 result = (dtn_bundle_spec_t_metadata *)& ((arg1)->metadata);
04390 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | SWIG_SHADOW); argvi++ ;
04391
04392 XSRETURN(argvi);
04393 fail:
04394
04395 SWIG_croak_null();
04396 }
04397 }
04398
04399
04400 XS(_wrap_dtn_bundle_spec_t_blocks_get) {
04401 {
04402 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04403 dtn_bundle_spec_t_blocks *result = 0 ;
04404 void *argp1 = 0 ;
04405 int res1 = 0 ;
04406 int argvi = 0;
04407 dXSARGS;
04408
04409 if ((items < 1) || (items > 1)) {
04410 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_get(self);");
04411 }
04412 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
04413 if (!SWIG_IsOK(res1)) {
04414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04415 }
04416 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04417 result = (dtn_bundle_spec_t_blocks *)& ((arg1)->blocks);
04418 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | SWIG_SHADOW); argvi++ ;
04419
04420 XSRETURN(argvi);
04421 fail:
04422
04423 SWIG_croak_null();
04424 }
04425 }
04426
04427
04428 XS(_wrap_new_dtn_bundle_spec_t) {
04429 {
04430 dtn_bundle_spec_t *result = 0 ;
04431 int argvi = 0;
04432 dXSARGS;
04433
04434 if ((items < 0) || (items > 0)) {
04435 SWIG_croak("Usage: new_dtn_bundle_spec_t();");
04436 }
04437 result = (dtn_bundle_spec_t *)new dtn_bundle_spec_t();
04438 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
04439 XSRETURN(argvi);
04440 fail:
04441 SWIG_croak_null();
04442 }
04443 }
04444
04445
04446 XS(_wrap_delete_dtn_bundle_spec_t) {
04447 {
04448 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ;
04449 void *argp1 = 0 ;
04450 int res1 = 0 ;
04451 int argvi = 0;
04452 dXSARGS;
04453
04454 if ((items < 1) || (items > 1)) {
04455 SWIG_croak("Usage: delete_dtn_bundle_spec_t(self);");
04456 }
04457 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, SWIG_POINTER_DISOWN | 0 );
04458 if (!SWIG_IsOK(res1)) {
04459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'");
04460 }
04461 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1);
04462 delete arg1;
04463
04464
04465
04466 XSRETURN(argvi);
04467 fail:
04468
04469 SWIG_croak_null();
04470 }
04471 }
04472
04473
04474 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_len_set) {
04475 {
04476 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ;
04477 u_int arg2 ;
04478 void *argp1 = 0 ;
04479 int res1 = 0 ;
04480 void *argp2 ;
04481 int res2 = 0 ;
04482 int argvi = 0;
04483 dXSARGS;
04484
04485 if ((items < 2) || (items > 2)) {
04486 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_len_set(self,metadata_len);");
04487 }
04488 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 );
04489 if (!SWIG_IsOK(res1)) {
04490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_metadata_len_set" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'");
04491 }
04492 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1);
04493 {
04494 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
04495 if (!SWIG_IsOK(res2)) {
04496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_metadata_metadata_len_set" "', argument " "2"" of type '" "u_int""'");
04497 }
04498 if (!argp2) {
04499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_metadata_metadata_len_set" "', argument " "2"" of type '" "u_int""'");
04500 } else {
04501 arg2 = *(reinterpret_cast< u_int * >(argp2));
04502 }
04503 }
04504 if (arg1) (arg1)->metadata_len = arg2;
04505
04506
04507
04508 XSRETURN(argvi);
04509 fail:
04510
04511 SWIG_croak_null();
04512 }
04513 }
04514
04515
04516 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_len_get) {
04517 {
04518 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ;
04519 u_int result;
04520 void *argp1 = 0 ;
04521 int res1 = 0 ;
04522 int argvi = 0;
04523 dXSARGS;
04524
04525 if ((items < 1) || (items > 1)) {
04526 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_len_get(self);");
04527 }
04528 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 );
04529 if (!SWIG_IsOK(res1)) {
04530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_metadata_len_get" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'");
04531 }
04532 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1);
04533 result = ((arg1)->metadata_len);
04534 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
04535
04536 XSRETURN(argvi);
04537 fail:
04538
04539 SWIG_croak_null();
04540 }
04541 }
04542
04543
04544 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_val_set) {
04545 {
04546 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ;
04547 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ;
04548 void *argp1 = 0 ;
04549 int res1 = 0 ;
04550 void *argp2 = 0 ;
04551 int res2 = 0 ;
04552 int argvi = 0;
04553 dXSARGS;
04554
04555 if ((items < 2) || (items > 2)) {
04556 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_val_set(self,metadata_val);");
04557 }
04558 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 );
04559 if (!SWIG_IsOK(res1)) {
04560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_metadata_val_set" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'");
04561 }
04562 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1);
04563 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 );
04564 if (!SWIG_IsOK(res2)) {
04565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_metadata_metadata_val_set" "', argument " "2"" of type '" "dtn_extension_block_t *""'");
04566 }
04567 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2);
04568 if (arg1) (arg1)->metadata_val = arg2;
04569
04570
04571
04572
04573 XSRETURN(argvi);
04574 fail:
04575
04576
04577 SWIG_croak_null();
04578 }
04579 }
04580
04581
04582 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_val_get) {
04583 {
04584 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ;
04585 dtn_extension_block_t *result = 0 ;
04586 void *argp1 = 0 ;
04587 int res1 = 0 ;
04588 int argvi = 0;
04589 dXSARGS;
04590
04591 if ((items < 1) || (items > 1)) {
04592 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_val_get(self);");
04593 }
04594 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 );
04595 if (!SWIG_IsOK(res1)) {
04596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_metadata_val_get" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'");
04597 }
04598 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1);
04599 result = (dtn_extension_block_t *) ((arg1)->metadata_val);
04600 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, 0 | SWIG_SHADOW); argvi++ ;
04601
04602 XSRETURN(argvi);
04603 fail:
04604
04605 SWIG_croak_null();
04606 }
04607 }
04608
04609
04610 XS(_wrap_new_dtn_bundle_spec_t_metadata) {
04611 {
04612 dtn_bundle_spec_t_metadata *result = 0 ;
04613 int argvi = 0;
04614 dXSARGS;
04615
04616 if ((items < 0) || (items > 0)) {
04617 SWIG_croak("Usage: new_dtn_bundle_spec_t_metadata();");
04618 }
04619 result = (dtn_bundle_spec_t_metadata *)new dtn_bundle_spec_t_metadata();
04620 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_metadata, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
04621 XSRETURN(argvi);
04622 fail:
04623 SWIG_croak_null();
04624 }
04625 }
04626
04627
04628 XS(_wrap_delete_dtn_bundle_spec_t_metadata) {
04629 {
04630 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ;
04631 void *argp1 = 0 ;
04632 int res1 = 0 ;
04633 int argvi = 0;
04634 dXSARGS;
04635
04636 if ((items < 1) || (items > 1)) {
04637 SWIG_croak("Usage: delete_dtn_bundle_spec_t_metadata(self);");
04638 }
04639 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, SWIG_POINTER_DISOWN | 0 );
04640 if (!SWIG_IsOK(res1)) {
04641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t_metadata" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'");
04642 }
04643 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1);
04644 delete arg1;
04645
04646
04647
04648 XSRETURN(argvi);
04649 fail:
04650
04651 SWIG_croak_null();
04652 }
04653 }
04654
04655
04656 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_len_set) {
04657 {
04658 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ;
04659 u_int arg2 ;
04660 void *argp1 = 0 ;
04661 int res1 = 0 ;
04662 void *argp2 ;
04663 int res2 = 0 ;
04664 int argvi = 0;
04665 dXSARGS;
04666
04667 if ((items < 2) || (items > 2)) {
04668 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_len_set(self,blocks_len);");
04669 }
04670 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 );
04671 if (!SWIG_IsOK(res1)) {
04672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_blocks_len_set" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'");
04673 }
04674 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1);
04675 {
04676 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
04677 if (!SWIG_IsOK(res2)) {
04678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_blocks_blocks_len_set" "', argument " "2"" of type '" "u_int""'");
04679 }
04680 if (!argp2) {
04681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_blocks_blocks_len_set" "', argument " "2"" of type '" "u_int""'");
04682 } else {
04683 arg2 = *(reinterpret_cast< u_int * >(argp2));
04684 }
04685 }
04686 if (arg1) (arg1)->blocks_len = arg2;
04687
04688
04689
04690 XSRETURN(argvi);
04691 fail:
04692
04693 SWIG_croak_null();
04694 }
04695 }
04696
04697
04698 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_len_get) {
04699 {
04700 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ;
04701 u_int result;
04702 void *argp1 = 0 ;
04703 int res1 = 0 ;
04704 int argvi = 0;
04705 dXSARGS;
04706
04707 if ((items < 1) || (items > 1)) {
04708 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_len_get(self);");
04709 }
04710 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 );
04711 if (!SWIG_IsOK(res1)) {
04712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_blocks_len_get" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'");
04713 }
04714 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1);
04715 result = ((arg1)->blocks_len);
04716 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
04717
04718 XSRETURN(argvi);
04719 fail:
04720
04721 SWIG_croak_null();
04722 }
04723 }
04724
04725
04726 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_val_set) {
04727 {
04728 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ;
04729 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ;
04730 void *argp1 = 0 ;
04731 int res1 = 0 ;
04732 void *argp2 = 0 ;
04733 int res2 = 0 ;
04734 int argvi = 0;
04735 dXSARGS;
04736
04737 if ((items < 2) || (items > 2)) {
04738 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_val_set(self,blocks_val);");
04739 }
04740 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 );
04741 if (!SWIG_IsOK(res1)) {
04742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_blocks_val_set" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'");
04743 }
04744 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1);
04745 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 );
04746 if (!SWIG_IsOK(res2)) {
04747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_blocks_blocks_val_set" "', argument " "2"" of type '" "dtn_extension_block_t *""'");
04748 }
04749 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2);
04750 if (arg1) (arg1)->blocks_val = arg2;
04751
04752
04753
04754
04755 XSRETURN(argvi);
04756 fail:
04757
04758
04759 SWIG_croak_null();
04760 }
04761 }
04762
04763
04764 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_val_get) {
04765 {
04766 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ;
04767 dtn_extension_block_t *result = 0 ;
04768 void *argp1 = 0 ;
04769 int res1 = 0 ;
04770 int argvi = 0;
04771 dXSARGS;
04772
04773 if ((items < 1) || (items > 1)) {
04774 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_val_get(self);");
04775 }
04776 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 );
04777 if (!SWIG_IsOK(res1)) {
04778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_blocks_val_get" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'");
04779 }
04780 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1);
04781 result = (dtn_extension_block_t *) ((arg1)->blocks_val);
04782 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, 0 | SWIG_SHADOW); argvi++ ;
04783
04784 XSRETURN(argvi);
04785 fail:
04786
04787 SWIG_croak_null();
04788 }
04789 }
04790
04791
04792 XS(_wrap_new_dtn_bundle_spec_t_blocks) {
04793 {
04794 dtn_bundle_spec_t_blocks *result = 0 ;
04795 int argvi = 0;
04796 dXSARGS;
04797
04798 if ((items < 0) || (items > 0)) {
04799 SWIG_croak("Usage: new_dtn_bundle_spec_t_blocks();");
04800 }
04801 result = (dtn_bundle_spec_t_blocks *)new dtn_bundle_spec_t_blocks();
04802 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_blocks, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
04803 XSRETURN(argvi);
04804 fail:
04805 SWIG_croak_null();
04806 }
04807 }
04808
04809
04810 XS(_wrap_delete_dtn_bundle_spec_t_blocks) {
04811 {
04812 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ;
04813 void *argp1 = 0 ;
04814 int res1 = 0 ;
04815 int argvi = 0;
04816 dXSARGS;
04817
04818 if ((items < 1) || (items > 1)) {
04819 SWIG_croak("Usage: delete_dtn_bundle_spec_t_blocks(self);");
04820 }
04821 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, SWIG_POINTER_DISOWN | 0 );
04822 if (!SWIG_IsOK(res1)) {
04823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t_blocks" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'");
04824 }
04825 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1);
04826 delete arg1;
04827
04828
04829
04830 XSRETURN(argvi);
04831 fail:
04832
04833 SWIG_croak_null();
04834 }
04835 }
04836
04837
04838 XS(_wrap_dtn_bundle_id_t_source_set) {
04839 {
04840 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
04841 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
04842 void *argp1 = 0 ;
04843 int res1 = 0 ;
04844 void *argp2 = 0 ;
04845 int res2 = 0 ;
04846 int argvi = 0;
04847 dXSARGS;
04848
04849 if ((items < 2) || (items > 2)) {
04850 SWIG_croak("Usage: dtn_bundle_id_t_source_set(self,source);");
04851 }
04852 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
04853 if (!SWIG_IsOK(res1)) {
04854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_source_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
04855 }
04856 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
04857 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
04858 if (!SWIG_IsOK(res2)) {
04859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_source_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
04860 }
04861 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
04862 if (arg1) (arg1)->source = *arg2;
04863
04864
04865
04866
04867 XSRETURN(argvi);
04868 fail:
04869
04870
04871 SWIG_croak_null();
04872 }
04873 }
04874
04875
04876 XS(_wrap_dtn_bundle_id_t_source_get) {
04877 {
04878 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
04879 dtn_endpoint_id_t *result = 0 ;
04880 void *argp1 = 0 ;
04881 int res1 = 0 ;
04882 int argvi = 0;
04883 dXSARGS;
04884
04885 if ((items < 1) || (items > 1)) {
04886 SWIG_croak("Usage: dtn_bundle_id_t_source_get(self);");
04887 }
04888 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
04889 if (!SWIG_IsOK(res1)) {
04890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_source_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
04891 }
04892 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
04893 result = (dtn_endpoint_id_t *)& ((arg1)->source);
04894 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ;
04895
04896 XSRETURN(argvi);
04897 fail:
04898
04899 SWIG_croak_null();
04900 }
04901 }
04902
04903
04904 XS(_wrap_dtn_bundle_id_t_creation_ts_set) {
04905 {
04906 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
04907 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
04908 void *argp1 = 0 ;
04909 int res1 = 0 ;
04910 void *argp2 = 0 ;
04911 int res2 = 0 ;
04912 int argvi = 0;
04913 dXSARGS;
04914
04915 if ((items < 2) || (items > 2)) {
04916 SWIG_croak("Usage: dtn_bundle_id_t_creation_ts_set(self,creation_ts);");
04917 }
04918 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
04919 if (!SWIG_IsOK(res1)) {
04920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_creation_ts_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
04921 }
04922 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
04923 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
04924 if (!SWIG_IsOK(res2)) {
04925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_creation_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
04926 }
04927 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
04928 if (arg1) (arg1)->creation_ts = *arg2;
04929
04930
04931
04932
04933 XSRETURN(argvi);
04934 fail:
04935
04936
04937 SWIG_croak_null();
04938 }
04939 }
04940
04941
04942 XS(_wrap_dtn_bundle_id_t_creation_ts_get) {
04943 {
04944 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
04945 dtn_timestamp_t *result = 0 ;
04946 void *argp1 = 0 ;
04947 int res1 = 0 ;
04948 int argvi = 0;
04949 dXSARGS;
04950
04951 if ((items < 1) || (items > 1)) {
04952 SWIG_croak("Usage: dtn_bundle_id_t_creation_ts_get(self);");
04953 }
04954 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
04955 if (!SWIG_IsOK(res1)) {
04956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_creation_ts_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
04957 }
04958 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
04959 result = (dtn_timestamp_t *)& ((arg1)->creation_ts);
04960 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
04961
04962 XSRETURN(argvi);
04963 fail:
04964
04965 SWIG_croak_null();
04966 }
04967 }
04968
04969
04970 XS(_wrap_dtn_bundle_id_t_frag_offset_set) {
04971 {
04972 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
04973 u_int arg2 ;
04974 void *argp1 = 0 ;
04975 int res1 = 0 ;
04976 void *argp2 ;
04977 int res2 = 0 ;
04978 int argvi = 0;
04979 dXSARGS;
04980
04981 if ((items < 2) || (items > 2)) {
04982 SWIG_croak("Usage: dtn_bundle_id_t_frag_offset_set(self,frag_offset);");
04983 }
04984 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
04985 if (!SWIG_IsOK(res1)) {
04986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
04987 }
04988 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
04989 {
04990 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
04991 if (!SWIG_IsOK(res2)) {
04992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "2"" of type '" "u_int""'");
04993 }
04994 if (!argp2) {
04995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "2"" of type '" "u_int""'");
04996 } else {
04997 arg2 = *(reinterpret_cast< u_int * >(argp2));
04998 }
04999 }
05000 if (arg1) (arg1)->frag_offset = arg2;
05001
05002
05003
05004 XSRETURN(argvi);
05005 fail:
05006
05007 SWIG_croak_null();
05008 }
05009 }
05010
05011
05012 XS(_wrap_dtn_bundle_id_t_frag_offset_get) {
05013 {
05014 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
05015 u_int result;
05016 void *argp1 = 0 ;
05017 int res1 = 0 ;
05018 int argvi = 0;
05019 dXSARGS;
05020
05021 if ((items < 1) || (items > 1)) {
05022 SWIG_croak("Usage: dtn_bundle_id_t_frag_offset_get(self);");
05023 }
05024 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
05025 if (!SWIG_IsOK(res1)) {
05026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_frag_offset_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
05027 }
05028 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
05029 result = ((arg1)->frag_offset);
05030 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
05031
05032 XSRETURN(argvi);
05033 fail:
05034
05035 SWIG_croak_null();
05036 }
05037 }
05038
05039
05040 XS(_wrap_dtn_bundle_id_t_orig_length_set) {
05041 {
05042 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
05043 u_int arg2 ;
05044 void *argp1 = 0 ;
05045 int res1 = 0 ;
05046 void *argp2 ;
05047 int res2 = 0 ;
05048 int argvi = 0;
05049 dXSARGS;
05050
05051 if ((items < 2) || (items > 2)) {
05052 SWIG_croak("Usage: dtn_bundle_id_t_orig_length_set(self,orig_length);");
05053 }
05054 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
05055 if (!SWIG_IsOK(res1)) {
05056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
05057 }
05058 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
05059 {
05060 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
05061 if (!SWIG_IsOK(res2)) {
05062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "2"" of type '" "u_int""'");
05063 }
05064 if (!argp2) {
05065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "2"" of type '" "u_int""'");
05066 } else {
05067 arg2 = *(reinterpret_cast< u_int * >(argp2));
05068 }
05069 }
05070 if (arg1) (arg1)->orig_length = arg2;
05071
05072
05073
05074 XSRETURN(argvi);
05075 fail:
05076
05077 SWIG_croak_null();
05078 }
05079 }
05080
05081
05082 XS(_wrap_dtn_bundle_id_t_orig_length_get) {
05083 {
05084 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
05085 u_int result;
05086 void *argp1 = 0 ;
05087 int res1 = 0 ;
05088 int argvi = 0;
05089 dXSARGS;
05090
05091 if ((items < 1) || (items > 1)) {
05092 SWIG_croak("Usage: dtn_bundle_id_t_orig_length_get(self);");
05093 }
05094 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
05095 if (!SWIG_IsOK(res1)) {
05096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_orig_length_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
05097 }
05098 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
05099 result = ((arg1)->orig_length);
05100 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
05101
05102 XSRETURN(argvi);
05103 fail:
05104
05105 SWIG_croak_null();
05106 }
05107 }
05108
05109
05110 XS(_wrap_new_dtn_bundle_id_t) {
05111 {
05112 dtn_bundle_id_t *result = 0 ;
05113 int argvi = 0;
05114 dXSARGS;
05115
05116 if ((items < 0) || (items > 0)) {
05117 SWIG_croak("Usage: new_dtn_bundle_id_t();");
05118 }
05119 result = (dtn_bundle_id_t *)new dtn_bundle_id_t();
05120 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
05121 XSRETURN(argvi);
05122 fail:
05123 SWIG_croak_null();
05124 }
05125 }
05126
05127
05128 XS(_wrap_delete_dtn_bundle_id_t) {
05129 {
05130 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ;
05131 void *argp1 = 0 ;
05132 int res1 = 0 ;
05133 int argvi = 0;
05134 dXSARGS;
05135
05136 if ((items < 1) || (items > 1)) {
05137 SWIG_croak("Usage: delete_dtn_bundle_id_t(self);");
05138 }
05139 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, SWIG_POINTER_DISOWN | 0 );
05140 if (!SWIG_IsOK(res1)) {
05141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_id_t" "', argument " "1"" of type '" "dtn_bundle_id_t *""'");
05142 }
05143 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1);
05144 delete arg1;
05145
05146
05147
05148 XSRETURN(argvi);
05149 fail:
05150
05151 SWIG_croak_null();
05152 }
05153 }
05154
05155
05156 XS(_wrap_dtn_bundle_status_report_t_bundle_id_set) {
05157 {
05158 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05159 dtn_bundle_id_t *arg2 = (dtn_bundle_id_t *) 0 ;
05160 void *argp1 = 0 ;
05161 int res1 = 0 ;
05162 void *argp2 = 0 ;
05163 int res2 = 0 ;
05164 int argvi = 0;
05165 dXSARGS;
05166
05167 if ((items < 2) || (items > 2)) {
05168 SWIG_croak("Usage: dtn_bundle_status_report_t_bundle_id_set(self,bundle_id);");
05169 }
05170 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05171 if (!SWIG_IsOK(res1)) {
05172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_bundle_id_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05173 }
05174 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05175 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
05176 if (!SWIG_IsOK(res2)) {
05177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_bundle_id_set" "', argument " "2"" of type '" "dtn_bundle_id_t *""'");
05178 }
05179 arg2 = reinterpret_cast< dtn_bundle_id_t * >(argp2);
05180 if (arg1) (arg1)->bundle_id = *arg2;
05181
05182
05183
05184
05185 XSRETURN(argvi);
05186 fail:
05187
05188
05189 SWIG_croak_null();
05190 }
05191 }
05192
05193
05194 XS(_wrap_dtn_bundle_status_report_t_bundle_id_get) {
05195 {
05196 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05197 dtn_bundle_id_t *result = 0 ;
05198 void *argp1 = 0 ;
05199 int res1 = 0 ;
05200 int argvi = 0;
05201 dXSARGS;
05202
05203 if ((items < 1) || (items > 1)) {
05204 SWIG_croak("Usage: dtn_bundle_status_report_t_bundle_id_get(self);");
05205 }
05206 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05207 if (!SWIG_IsOK(res1)) {
05208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_bundle_id_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05209 }
05210 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05211 result = (dtn_bundle_id_t *)& ((arg1)->bundle_id);
05212 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id_t, 0 | SWIG_SHADOW); argvi++ ;
05213
05214 XSRETURN(argvi);
05215 fail:
05216
05217 SWIG_croak_null();
05218 }
05219 }
05220
05221
05222 XS(_wrap_dtn_bundle_status_report_t_reason_set) {
05223 {
05224 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05225 dtn_status_report_reason_t arg2 ;
05226 void *argp1 = 0 ;
05227 int res1 = 0 ;
05228 int val2 ;
05229 int ecode2 = 0 ;
05230 int argvi = 0;
05231 dXSARGS;
05232
05233 if ((items < 2) || (items > 2)) {
05234 SWIG_croak("Usage: dtn_bundle_status_report_t_reason_set(self,reason);");
05235 }
05236 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05237 if (!SWIG_IsOK(res1)) {
05238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_reason_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05239 }
05240 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05241 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
05242 if (!SWIG_IsOK(ecode2)) {
05243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_status_report_t_reason_set" "', argument " "2"" of type '" "dtn_status_report_reason_t""'");
05244 }
05245 arg2 = static_cast< dtn_status_report_reason_t >(val2);
05246 if (arg1) (arg1)->reason = arg2;
05247
05248
05249
05250
05251 XSRETURN(argvi);
05252 fail:
05253
05254
05255 SWIG_croak_null();
05256 }
05257 }
05258
05259
05260 XS(_wrap_dtn_bundle_status_report_t_reason_get) {
05261 {
05262 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05263 dtn_status_report_reason_t result;
05264 void *argp1 = 0 ;
05265 int res1 = 0 ;
05266 int argvi = 0;
05267 dXSARGS;
05268
05269 if ((items < 1) || (items > 1)) {
05270 SWIG_croak("Usage: dtn_bundle_status_report_t_reason_get(self);");
05271 }
05272 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05273 if (!SWIG_IsOK(res1)) {
05274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_reason_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05275 }
05276 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05277 result = (dtn_status_report_reason_t) ((arg1)->reason);
05278 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
05279
05280 XSRETURN(argvi);
05281 fail:
05282
05283 SWIG_croak_null();
05284 }
05285 }
05286
05287
05288 XS(_wrap_dtn_bundle_status_report_t_flags_set) {
05289 {
05290 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05291 dtn_status_report_flags_t arg2 ;
05292 void *argp1 = 0 ;
05293 int res1 = 0 ;
05294 int val2 ;
05295 int ecode2 = 0 ;
05296 int argvi = 0;
05297 dXSARGS;
05298
05299 if ((items < 2) || (items > 2)) {
05300 SWIG_croak("Usage: dtn_bundle_status_report_t_flags_set(self,flags);");
05301 }
05302 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05303 if (!SWIG_IsOK(res1)) {
05304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_flags_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05305 }
05306 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05307 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
05308 if (!SWIG_IsOK(ecode2)) {
05309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_status_report_t_flags_set" "', argument " "2"" of type '" "dtn_status_report_flags_t""'");
05310 }
05311 arg2 = static_cast< dtn_status_report_flags_t >(val2);
05312 if (arg1) (arg1)->flags = arg2;
05313
05314
05315
05316
05317 XSRETURN(argvi);
05318 fail:
05319
05320
05321 SWIG_croak_null();
05322 }
05323 }
05324
05325
05326 XS(_wrap_dtn_bundle_status_report_t_flags_get) {
05327 {
05328 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05329 dtn_status_report_flags_t result;
05330 void *argp1 = 0 ;
05331 int res1 = 0 ;
05332 int argvi = 0;
05333 dXSARGS;
05334
05335 if ((items < 1) || (items > 1)) {
05336 SWIG_croak("Usage: dtn_bundle_status_report_t_flags_get(self);");
05337 }
05338 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05339 if (!SWIG_IsOK(res1)) {
05340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_flags_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05341 }
05342 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05343 result = (dtn_status_report_flags_t) ((arg1)->flags);
05344 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
05345
05346 XSRETURN(argvi);
05347 fail:
05348
05349 SWIG_croak_null();
05350 }
05351 }
05352
05353
05354 XS(_wrap_dtn_bundle_status_report_t_receipt_ts_set) {
05355 {
05356 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05357 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05358 void *argp1 = 0 ;
05359 int res1 = 0 ;
05360 void *argp2 = 0 ;
05361 int res2 = 0 ;
05362 int argvi = 0;
05363 dXSARGS;
05364
05365 if ((items < 2) || (items > 2)) {
05366 SWIG_croak("Usage: dtn_bundle_status_report_t_receipt_ts_set(self,receipt_ts);");
05367 }
05368 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05369 if (!SWIG_IsOK(res1)) {
05370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_receipt_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05371 }
05372 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05373 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05374 if (!SWIG_IsOK(res2)) {
05375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_receipt_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05376 }
05377 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05378 if (arg1) (arg1)->receipt_ts = *arg2;
05379
05380
05381
05382
05383 XSRETURN(argvi);
05384 fail:
05385
05386
05387 SWIG_croak_null();
05388 }
05389 }
05390
05391
05392 XS(_wrap_dtn_bundle_status_report_t_receipt_ts_get) {
05393 {
05394 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05395 dtn_timestamp_t *result = 0 ;
05396 void *argp1 = 0 ;
05397 int res1 = 0 ;
05398 int argvi = 0;
05399 dXSARGS;
05400
05401 if ((items < 1) || (items > 1)) {
05402 SWIG_croak("Usage: dtn_bundle_status_report_t_receipt_ts_get(self);");
05403 }
05404 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05405 if (!SWIG_IsOK(res1)) {
05406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_receipt_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05407 }
05408 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05409 result = (dtn_timestamp_t *)& ((arg1)->receipt_ts);
05410 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05411
05412 XSRETURN(argvi);
05413 fail:
05414
05415 SWIG_croak_null();
05416 }
05417 }
05418
05419
05420 XS(_wrap_dtn_bundle_status_report_t_custody_ts_set) {
05421 {
05422 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05423 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05424 void *argp1 = 0 ;
05425 int res1 = 0 ;
05426 void *argp2 = 0 ;
05427 int res2 = 0 ;
05428 int argvi = 0;
05429 dXSARGS;
05430
05431 if ((items < 2) || (items > 2)) {
05432 SWIG_croak("Usage: dtn_bundle_status_report_t_custody_ts_set(self,custody_ts);");
05433 }
05434 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05435 if (!SWIG_IsOK(res1)) {
05436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_custody_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05437 }
05438 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05439 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05440 if (!SWIG_IsOK(res2)) {
05441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_custody_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05442 }
05443 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05444 if (arg1) (arg1)->custody_ts = *arg2;
05445
05446
05447
05448
05449 XSRETURN(argvi);
05450 fail:
05451
05452
05453 SWIG_croak_null();
05454 }
05455 }
05456
05457
05458 XS(_wrap_dtn_bundle_status_report_t_custody_ts_get) {
05459 {
05460 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05461 dtn_timestamp_t *result = 0 ;
05462 void *argp1 = 0 ;
05463 int res1 = 0 ;
05464 int argvi = 0;
05465 dXSARGS;
05466
05467 if ((items < 1) || (items > 1)) {
05468 SWIG_croak("Usage: dtn_bundle_status_report_t_custody_ts_get(self);");
05469 }
05470 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05471 if (!SWIG_IsOK(res1)) {
05472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_custody_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05473 }
05474 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05475 result = (dtn_timestamp_t *)& ((arg1)->custody_ts);
05476 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05477
05478 XSRETURN(argvi);
05479 fail:
05480
05481 SWIG_croak_null();
05482 }
05483 }
05484
05485
05486 XS(_wrap_dtn_bundle_status_report_t_forwarding_ts_set) {
05487 {
05488 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05489 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05490 void *argp1 = 0 ;
05491 int res1 = 0 ;
05492 void *argp2 = 0 ;
05493 int res2 = 0 ;
05494 int argvi = 0;
05495 dXSARGS;
05496
05497 if ((items < 2) || (items > 2)) {
05498 SWIG_croak("Usage: dtn_bundle_status_report_t_forwarding_ts_set(self,forwarding_ts);");
05499 }
05500 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05501 if (!SWIG_IsOK(res1)) {
05502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_forwarding_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05503 }
05504 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05505 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05506 if (!SWIG_IsOK(res2)) {
05507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_forwarding_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05508 }
05509 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05510 if (arg1) (arg1)->forwarding_ts = *arg2;
05511
05512
05513
05514
05515 XSRETURN(argvi);
05516 fail:
05517
05518
05519 SWIG_croak_null();
05520 }
05521 }
05522
05523
05524 XS(_wrap_dtn_bundle_status_report_t_forwarding_ts_get) {
05525 {
05526 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05527 dtn_timestamp_t *result = 0 ;
05528 void *argp1 = 0 ;
05529 int res1 = 0 ;
05530 int argvi = 0;
05531 dXSARGS;
05532
05533 if ((items < 1) || (items > 1)) {
05534 SWIG_croak("Usage: dtn_bundle_status_report_t_forwarding_ts_get(self);");
05535 }
05536 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05537 if (!SWIG_IsOK(res1)) {
05538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_forwarding_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05539 }
05540 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05541 result = (dtn_timestamp_t *)& ((arg1)->forwarding_ts);
05542 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05543
05544 XSRETURN(argvi);
05545 fail:
05546
05547 SWIG_croak_null();
05548 }
05549 }
05550
05551
05552 XS(_wrap_dtn_bundle_status_report_t_delivery_ts_set) {
05553 {
05554 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05555 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05556 void *argp1 = 0 ;
05557 int res1 = 0 ;
05558 void *argp2 = 0 ;
05559 int res2 = 0 ;
05560 int argvi = 0;
05561 dXSARGS;
05562
05563 if ((items < 2) || (items > 2)) {
05564 SWIG_croak("Usage: dtn_bundle_status_report_t_delivery_ts_set(self,delivery_ts);");
05565 }
05566 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05567 if (!SWIG_IsOK(res1)) {
05568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_delivery_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05569 }
05570 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05571 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05572 if (!SWIG_IsOK(res2)) {
05573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_delivery_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05574 }
05575 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05576 if (arg1) (arg1)->delivery_ts = *arg2;
05577
05578
05579
05580
05581 XSRETURN(argvi);
05582 fail:
05583
05584
05585 SWIG_croak_null();
05586 }
05587 }
05588
05589
05590 XS(_wrap_dtn_bundle_status_report_t_delivery_ts_get) {
05591 {
05592 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05593 dtn_timestamp_t *result = 0 ;
05594 void *argp1 = 0 ;
05595 int res1 = 0 ;
05596 int argvi = 0;
05597 dXSARGS;
05598
05599 if ((items < 1) || (items > 1)) {
05600 SWIG_croak("Usage: dtn_bundle_status_report_t_delivery_ts_get(self);");
05601 }
05602 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05603 if (!SWIG_IsOK(res1)) {
05604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_delivery_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05605 }
05606 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05607 result = (dtn_timestamp_t *)& ((arg1)->delivery_ts);
05608 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05609
05610 XSRETURN(argvi);
05611 fail:
05612
05613 SWIG_croak_null();
05614 }
05615 }
05616
05617
05618 XS(_wrap_dtn_bundle_status_report_t_deletion_ts_set) {
05619 {
05620 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05621 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05622 void *argp1 = 0 ;
05623 int res1 = 0 ;
05624 void *argp2 = 0 ;
05625 int res2 = 0 ;
05626 int argvi = 0;
05627 dXSARGS;
05628
05629 if ((items < 2) || (items > 2)) {
05630 SWIG_croak("Usage: dtn_bundle_status_report_t_deletion_ts_set(self,deletion_ts);");
05631 }
05632 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05633 if (!SWIG_IsOK(res1)) {
05634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_deletion_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05635 }
05636 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05637 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05638 if (!SWIG_IsOK(res2)) {
05639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_deletion_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05640 }
05641 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05642 if (arg1) (arg1)->deletion_ts = *arg2;
05643
05644
05645
05646
05647 XSRETURN(argvi);
05648 fail:
05649
05650
05651 SWIG_croak_null();
05652 }
05653 }
05654
05655
05656 XS(_wrap_dtn_bundle_status_report_t_deletion_ts_get) {
05657 {
05658 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05659 dtn_timestamp_t *result = 0 ;
05660 void *argp1 = 0 ;
05661 int res1 = 0 ;
05662 int argvi = 0;
05663 dXSARGS;
05664
05665 if ((items < 1) || (items > 1)) {
05666 SWIG_croak("Usage: dtn_bundle_status_report_t_deletion_ts_get(self);");
05667 }
05668 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05669 if (!SWIG_IsOK(res1)) {
05670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_deletion_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05671 }
05672 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05673 result = (dtn_timestamp_t *)& ((arg1)->deletion_ts);
05674 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05675
05676 XSRETURN(argvi);
05677 fail:
05678
05679 SWIG_croak_null();
05680 }
05681 }
05682
05683
05684 XS(_wrap_dtn_bundle_status_report_t_ack_by_app_ts_set) {
05685 {
05686 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05687 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
05688 void *argp1 = 0 ;
05689 int res1 = 0 ;
05690 void *argp2 = 0 ;
05691 int res2 = 0 ;
05692 int argvi = 0;
05693 dXSARGS;
05694
05695 if ((items < 2) || (items > 2)) {
05696 SWIG_croak("Usage: dtn_bundle_status_report_t_ack_by_app_ts_set(self,ack_by_app_ts);");
05697 }
05698 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05699 if (!SWIG_IsOK(res1)) {
05700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_ack_by_app_ts_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05701 }
05702 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05703 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
05704 if (!SWIG_IsOK(res2)) {
05705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_ack_by_app_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
05706 }
05707 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
05708 if (arg1) (arg1)->ack_by_app_ts = *arg2;
05709
05710
05711
05712
05713 XSRETURN(argvi);
05714 fail:
05715
05716
05717 SWIG_croak_null();
05718 }
05719 }
05720
05721
05722 XS(_wrap_dtn_bundle_status_report_t_ack_by_app_ts_get) {
05723 {
05724 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05725 dtn_timestamp_t *result = 0 ;
05726 void *argp1 = 0 ;
05727 int res1 = 0 ;
05728 int argvi = 0;
05729 dXSARGS;
05730
05731 if ((items < 1) || (items > 1)) {
05732 SWIG_croak("Usage: dtn_bundle_status_report_t_ack_by_app_ts_get(self);");
05733 }
05734 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
05735 if (!SWIG_IsOK(res1)) {
05736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_ack_by_app_ts_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05737 }
05738 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05739 result = (dtn_timestamp_t *)& ((arg1)->ack_by_app_ts);
05740 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ;
05741
05742 XSRETURN(argvi);
05743 fail:
05744
05745 SWIG_croak_null();
05746 }
05747 }
05748
05749
05750 XS(_wrap_new_dtn_bundle_status_report_t) {
05751 {
05752 dtn_bundle_status_report_t *result = 0 ;
05753 int argvi = 0;
05754 dXSARGS;
05755
05756 if ((items < 0) || (items > 0)) {
05757 SWIG_croak("Usage: new_dtn_bundle_status_report_t();");
05758 }
05759 result = (dtn_bundle_status_report_t *)new dtn_bundle_status_report_t();
05760 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
05761 XSRETURN(argvi);
05762 fail:
05763 SWIG_croak_null();
05764 }
05765 }
05766
05767
05768 XS(_wrap_delete_dtn_bundle_status_report_t) {
05769 {
05770 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ;
05771 void *argp1 = 0 ;
05772 int res1 = 0 ;
05773 int argvi = 0;
05774 dXSARGS;
05775
05776 if ((items < 1) || (items > 1)) {
05777 SWIG_croak("Usage: delete_dtn_bundle_status_report_t(self);");
05778 }
05779 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_POINTER_DISOWN | 0 );
05780 if (!SWIG_IsOK(res1)) {
05781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_status_report_t" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'");
05782 }
05783 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1);
05784 delete arg1;
05785
05786
05787
05788 XSRETURN(argvi);
05789 fail:
05790
05791 SWIG_croak_null();
05792 }
05793 }
05794
05795
05796 XS(_wrap_dtn_bundle_payload_t_location_set) {
05797 {
05798 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05799 dtn_bundle_payload_location_t arg2 ;
05800 void *argp1 = 0 ;
05801 int res1 = 0 ;
05802 int val2 ;
05803 int ecode2 = 0 ;
05804 int argvi = 0;
05805 dXSARGS;
05806
05807 if ((items < 2) || (items > 2)) {
05808 SWIG_croak("Usage: dtn_bundle_payload_t_location_set(self,location);");
05809 }
05810 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05811 if (!SWIG_IsOK(res1)) {
05812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_location_set" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05813 }
05814 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05815 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
05816 if (!SWIG_IsOK(ecode2)) {
05817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_payload_t_location_set" "', argument " "2"" of type '" "dtn_bundle_payload_location_t""'");
05818 }
05819 arg2 = static_cast< dtn_bundle_payload_location_t >(val2);
05820 if (arg1) (arg1)->location = arg2;
05821
05822
05823
05824
05825 XSRETURN(argvi);
05826 fail:
05827
05828
05829 SWIG_croak_null();
05830 }
05831 }
05832
05833
05834 XS(_wrap_dtn_bundle_payload_t_location_get) {
05835 {
05836 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05837 dtn_bundle_payload_location_t result;
05838 void *argp1 = 0 ;
05839 int res1 = 0 ;
05840 int argvi = 0;
05841 dXSARGS;
05842
05843 if ((items < 1) || (items > 1)) {
05844 SWIG_croak("Usage: dtn_bundle_payload_t_location_get(self);");
05845 }
05846 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05847 if (!SWIG_IsOK(res1)) {
05848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_location_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05849 }
05850 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05851 result = (dtn_bundle_payload_location_t) ((arg1)->location);
05852 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
05853
05854 XSRETURN(argvi);
05855 fail:
05856
05857 SWIG_croak_null();
05858 }
05859 }
05860
05861
05862 XS(_wrap_dtn_bundle_payload_t_status_report_set) {
05863 {
05864 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05865 dtn_bundle_status_report_t *arg2 = (dtn_bundle_status_report_t *) 0 ;
05866 void *argp1 = 0 ;
05867 int res1 = 0 ;
05868 void *argp2 = 0 ;
05869 int res2 = 0 ;
05870 int argvi = 0;
05871 dXSARGS;
05872
05873 if ((items < 2) || (items > 2)) {
05874 SWIG_croak("Usage: dtn_bundle_payload_t_status_report_set(self,status_report);");
05875 }
05876 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05877 if (!SWIG_IsOK(res1)) {
05878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_status_report_set" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05879 }
05880 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05881 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_POINTER_DISOWN | 0 );
05882 if (!SWIG_IsOK(res2)) {
05883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_status_report_set" "', argument " "2"" of type '" "dtn_bundle_status_report_t *""'");
05884 }
05885 arg2 = reinterpret_cast< dtn_bundle_status_report_t * >(argp2);
05886 if (arg1) (arg1)->status_report = arg2;
05887
05888
05889
05890
05891 XSRETURN(argvi);
05892 fail:
05893
05894
05895 SWIG_croak_null();
05896 }
05897 }
05898
05899
05900 XS(_wrap_dtn_bundle_payload_t_status_report_get) {
05901 {
05902 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05903 dtn_bundle_status_report_t *result = 0 ;
05904 void *argp1 = 0 ;
05905 int res1 = 0 ;
05906 int argvi = 0;
05907 dXSARGS;
05908
05909 if ((items < 1) || (items > 1)) {
05910 SWIG_croak("Usage: dtn_bundle_payload_t_status_report_get(self);");
05911 }
05912 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05913 if (!SWIG_IsOK(res1)) {
05914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_status_report_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05915 }
05916 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05917 result = (dtn_bundle_status_report_t *) ((arg1)->status_report);
05918 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_status_report_t, 0 | SWIG_SHADOW); argvi++ ;
05919
05920 XSRETURN(argvi);
05921 fail:
05922
05923 SWIG_croak_null();
05924 }
05925 }
05926
05927
05928 XS(_wrap_dtn_bundle_payload_t_buf_get) {
05929 {
05930 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05931 dtn_bundle_payload_t_buf *result = 0 ;
05932 void *argp1 = 0 ;
05933 int res1 = 0 ;
05934 int argvi = 0;
05935 dXSARGS;
05936
05937 if ((items < 1) || (items > 1)) {
05938 SWIG_croak("Usage: dtn_bundle_payload_t_buf_get(self);");
05939 }
05940 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05941 if (!SWIG_IsOK(res1)) {
05942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05943 }
05944 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05945 result = (dtn_bundle_payload_t_buf *)& ((arg1)->buf);
05946 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | SWIG_SHADOW); argvi++ ;
05947
05948 XSRETURN(argvi);
05949 fail:
05950
05951 SWIG_croak_null();
05952 }
05953 }
05954
05955
05956 XS(_wrap_dtn_bundle_payload_t_filename_get) {
05957 {
05958 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
05959 dtn_bundle_payload_t_filename *result = 0 ;
05960 void *argp1 = 0 ;
05961 int res1 = 0 ;
05962 int argvi = 0;
05963 dXSARGS;
05964
05965 if ((items < 1) || (items > 1)) {
05966 SWIG_croak("Usage: dtn_bundle_payload_t_filename_get(self);");
05967 }
05968 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
05969 if (!SWIG_IsOK(res1)) {
05970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
05971 }
05972 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
05973 result = (dtn_bundle_payload_t_filename *)& ((arg1)->filename);
05974 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | SWIG_SHADOW); argvi++ ;
05975
05976 XSRETURN(argvi);
05977 fail:
05978
05979 SWIG_croak_null();
05980 }
05981 }
05982
05983
05984 XS(_wrap_new_dtn_bundle_payload_t) {
05985 {
05986 dtn_bundle_payload_t *result = 0 ;
05987 int argvi = 0;
05988 dXSARGS;
05989
05990 if ((items < 0) || (items > 0)) {
05991 SWIG_croak("Usage: new_dtn_bundle_payload_t();");
05992 }
05993 result = (dtn_bundle_payload_t *)new dtn_bundle_payload_t();
05994 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
05995 XSRETURN(argvi);
05996 fail:
05997 SWIG_croak_null();
05998 }
05999 }
06000
06001
06002 XS(_wrap_delete_dtn_bundle_payload_t) {
06003 {
06004 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ;
06005 void *argp1 = 0 ;
06006 int res1 = 0 ;
06007 int argvi = 0;
06008 dXSARGS;
06009
06010 if ((items < 1) || (items > 1)) {
06011 SWIG_croak("Usage: delete_dtn_bundle_payload_t(self);");
06012 }
06013 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, SWIG_POINTER_DISOWN | 0 );
06014 if (!SWIG_IsOK(res1)) {
06015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'");
06016 }
06017 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1);
06018 delete arg1;
06019
06020
06021
06022 XSRETURN(argvi);
06023 fail:
06024
06025 SWIG_croak_null();
06026 }
06027 }
06028
06029
06030 XS(_wrap_dtn_bundle_payload_t_buf_buf_len_set) {
06031 {
06032 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ;
06033 u_int arg2 ;
06034 void *argp1 = 0 ;
06035 int res1 = 0 ;
06036 void *argp2 ;
06037 int res2 = 0 ;
06038 int argvi = 0;
06039 dXSARGS;
06040
06041 if ((items < 2) || (items > 2)) {
06042 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_len_set(self,buf_len);");
06043 }
06044 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 );
06045 if (!SWIG_IsOK(res1)) {
06046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_buf_len_set" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'");
06047 }
06048 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1);
06049 {
06050 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
06051 if (!SWIG_IsOK(res2)) {
06052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_buf_buf_len_set" "', argument " "2"" of type '" "u_int""'");
06053 }
06054 if (!argp2) {
06055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_t_buf_buf_len_set" "', argument " "2"" of type '" "u_int""'");
06056 } else {
06057 arg2 = *(reinterpret_cast< u_int * >(argp2));
06058 }
06059 }
06060 if (arg1) (arg1)->buf_len = arg2;
06061
06062
06063
06064 XSRETURN(argvi);
06065 fail:
06066
06067 SWIG_croak_null();
06068 }
06069 }
06070
06071
06072 XS(_wrap_dtn_bundle_payload_t_buf_buf_len_get) {
06073 {
06074 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ;
06075 u_int result;
06076 void *argp1 = 0 ;
06077 int res1 = 0 ;
06078 int argvi = 0;
06079 dXSARGS;
06080
06081 if ((items < 1) || (items > 1)) {
06082 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_len_get(self);");
06083 }
06084 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 );
06085 if (!SWIG_IsOK(res1)) {
06086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_buf_len_get" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'");
06087 }
06088 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1);
06089 result = ((arg1)->buf_len);
06090 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
06091
06092 XSRETURN(argvi);
06093 fail:
06094
06095 SWIG_croak_null();
06096 }
06097 }
06098
06099
06100 XS(_wrap_dtn_bundle_payload_t_buf_buf_val_set) {
06101 {
06102 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ;
06103 char *arg2 = (char *) 0 ;
06104 void *argp1 = 0 ;
06105 int res1 = 0 ;
06106 int res2 ;
06107 char *buf2 = 0 ;
06108 int alloc2 = 0 ;
06109 int argvi = 0;
06110 dXSARGS;
06111
06112 if ((items < 2) || (items > 2)) {
06113 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_val_set(self,buf_val);");
06114 }
06115 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 );
06116 if (!SWIG_IsOK(res1)) {
06117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_buf_val_set" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'");
06118 }
06119 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1);
06120 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
06121 if (!SWIG_IsOK(res2)) {
06122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_buf_buf_val_set" "', argument " "2"" of type '" "char *""'");
06123 }
06124 arg2 = reinterpret_cast< char * >(buf2);
06125 if (arg1->buf_val) delete[] arg1->buf_val;
06126 if (arg2) {
06127 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
06128 arg1->buf_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
06129 } else {
06130 arg1->buf_val = 0;
06131 }
06132
06133
06134 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
06135 XSRETURN(argvi);
06136 fail:
06137
06138 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
06139 SWIG_croak_null();
06140 }
06141 }
06142
06143
06144 XS(_wrap_dtn_bundle_payload_t_buf_buf_val_get) {
06145 {
06146 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ;
06147 char *result = 0 ;
06148 void *argp1 = 0 ;
06149 int res1 = 0 ;
06150 int argvi = 0;
06151 dXSARGS;
06152
06153 if ((items < 1) || (items > 1)) {
06154 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_val_get(self);");
06155 }
06156 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 );
06157 if (!SWIG_IsOK(res1)) {
06158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_buf_val_get" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'");
06159 }
06160 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1);
06161 result = (char *) ((arg1)->buf_val);
06162 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
06163
06164 XSRETURN(argvi);
06165 fail:
06166
06167 SWIG_croak_null();
06168 }
06169 }
06170
06171
06172 XS(_wrap_new_dtn_bundle_payload_t_buf) {
06173 {
06174 dtn_bundle_payload_t_buf *result = 0 ;
06175 int argvi = 0;
06176 dXSARGS;
06177
06178 if ((items < 0) || (items > 0)) {
06179 SWIG_croak("Usage: new_dtn_bundle_payload_t_buf();");
06180 }
06181 result = (dtn_bundle_payload_t_buf *)new dtn_bundle_payload_t_buf();
06182 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_buf, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
06183 XSRETURN(argvi);
06184 fail:
06185 SWIG_croak_null();
06186 }
06187 }
06188
06189
06190 XS(_wrap_delete_dtn_bundle_payload_t_buf) {
06191 {
06192 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ;
06193 void *argp1 = 0 ;
06194 int res1 = 0 ;
06195 int argvi = 0;
06196 dXSARGS;
06197
06198 if ((items < 1) || (items > 1)) {
06199 SWIG_croak("Usage: delete_dtn_bundle_payload_t_buf(self);");
06200 }
06201 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, SWIG_POINTER_DISOWN | 0 );
06202 if (!SWIG_IsOK(res1)) {
06203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t_buf" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'");
06204 }
06205 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1);
06206 delete arg1;
06207
06208
06209
06210 XSRETURN(argvi);
06211 fail:
06212
06213 SWIG_croak_null();
06214 }
06215 }
06216
06217
06218 XS(_wrap_dtn_bundle_payload_t_filename_filename_len_set) {
06219 {
06220 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ;
06221 u_int arg2 ;
06222 void *argp1 = 0 ;
06223 int res1 = 0 ;
06224 void *argp2 ;
06225 int res2 = 0 ;
06226 int argvi = 0;
06227 dXSARGS;
06228
06229 if ((items < 2) || (items > 2)) {
06230 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_len_set(self,filename_len);");
06231 }
06232 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 );
06233 if (!SWIG_IsOK(res1)) {
06234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_filename_len_set" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'");
06235 }
06236 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1);
06237 {
06238 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
06239 if (!SWIG_IsOK(res2)) {
06240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_filename_filename_len_set" "', argument " "2"" of type '" "u_int""'");
06241 }
06242 if (!argp2) {
06243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_t_filename_filename_len_set" "', argument " "2"" of type '" "u_int""'");
06244 } else {
06245 arg2 = *(reinterpret_cast< u_int * >(argp2));
06246 }
06247 }
06248 if (arg1) (arg1)->filename_len = arg2;
06249
06250
06251
06252 XSRETURN(argvi);
06253 fail:
06254
06255 SWIG_croak_null();
06256 }
06257 }
06258
06259
06260 XS(_wrap_dtn_bundle_payload_t_filename_filename_len_get) {
06261 {
06262 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ;
06263 u_int result;
06264 void *argp1 = 0 ;
06265 int res1 = 0 ;
06266 int argvi = 0;
06267 dXSARGS;
06268
06269 if ((items < 1) || (items > 1)) {
06270 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_len_get(self);");
06271 }
06272 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 );
06273 if (!SWIG_IsOK(res1)) {
06274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_filename_len_get" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'");
06275 }
06276 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1);
06277 result = ((arg1)->filename_len);
06278 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ;
06279
06280 XSRETURN(argvi);
06281 fail:
06282
06283 SWIG_croak_null();
06284 }
06285 }
06286
06287
06288 XS(_wrap_dtn_bundle_payload_t_filename_filename_val_set) {
06289 {
06290 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ;
06291 char *arg2 = (char *) 0 ;
06292 void *argp1 = 0 ;
06293 int res1 = 0 ;
06294 int res2 ;
06295 char *buf2 = 0 ;
06296 int alloc2 = 0 ;
06297 int argvi = 0;
06298 dXSARGS;
06299
06300 if ((items < 2) || (items > 2)) {
06301 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_val_set(self,filename_val);");
06302 }
06303 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 );
06304 if (!SWIG_IsOK(res1)) {
06305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_filename_val_set" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'");
06306 }
06307 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1);
06308 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
06309 if (!SWIG_IsOK(res2)) {
06310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_filename_filename_val_set" "', argument " "2"" of type '" "char *""'");
06311 }
06312 arg2 = reinterpret_cast< char * >(buf2);
06313 if (arg1->filename_val) delete[] arg1->filename_val;
06314 if (arg2) {
06315 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
06316 arg1->filename_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
06317 } else {
06318 arg1->filename_val = 0;
06319 }
06320
06321
06322 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
06323 XSRETURN(argvi);
06324 fail:
06325
06326 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
06327 SWIG_croak_null();
06328 }
06329 }
06330
06331
06332 XS(_wrap_dtn_bundle_payload_t_filename_filename_val_get) {
06333 {
06334 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ;
06335 char *result = 0 ;
06336 void *argp1 = 0 ;
06337 int res1 = 0 ;
06338 int argvi = 0;
06339 dXSARGS;
06340
06341 if ((items < 1) || (items > 1)) {
06342 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_val_get(self);");
06343 }
06344 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 );
06345 if (!SWIG_IsOK(res1)) {
06346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_filename_val_get" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'");
06347 }
06348 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1);
06349 result = (char *) ((arg1)->filename_val);
06350 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
06351
06352 XSRETURN(argvi);
06353 fail:
06354
06355 SWIG_croak_null();
06356 }
06357 }
06358
06359
06360 XS(_wrap_new_dtn_bundle_payload_t_filename) {
06361 {
06362 dtn_bundle_payload_t_filename *result = 0 ;
06363 int argvi = 0;
06364 dXSARGS;
06365
06366 if ((items < 0) || (items > 0)) {
06367 SWIG_croak("Usage: new_dtn_bundle_payload_t_filename();");
06368 }
06369 result = (dtn_bundle_payload_t_filename *)new dtn_bundle_payload_t_filename();
06370 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_filename, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
06371 XSRETURN(argvi);
06372 fail:
06373 SWIG_croak_null();
06374 }
06375 }
06376
06377
06378 XS(_wrap_delete_dtn_bundle_payload_t_filename) {
06379 {
06380 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ;
06381 void *argp1 = 0 ;
06382 int res1 = 0 ;
06383 int argvi = 0;
06384 dXSARGS;
06385
06386 if ((items < 1) || (items > 1)) {
06387 SWIG_croak("Usage: delete_dtn_bundle_payload_t_filename(self);");
06388 }
06389 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, SWIG_POINTER_DISOWN | 0 );
06390 if (!SWIG_IsOK(res1)) {
06391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t_filename" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'");
06392 }
06393 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1);
06394 delete arg1;
06395
06396
06397
06398 XSRETURN(argvi);
06399 fail:
06400
06401 SWIG_croak_null();
06402 }
06403 }
06404
06405
06406 XS(_wrap_xdr_dtn_endpoint_id_t) {
06407 {
06408 XDR *arg1 = (XDR *) 0 ;
06409 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ;
06410 bool_t result;
06411 void *argp1 = 0 ;
06412 int res1 = 0 ;
06413 void *argp2 = 0 ;
06414 int res2 = 0 ;
06415 int argvi = 0;
06416 dXSARGS;
06417
06418 if ((items < 2) || (items > 2)) {
06419 SWIG_croak("Usage: xdr_dtn_endpoint_id_t(XDR *,dtn_endpoint_id_t *);");
06420 }
06421 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06422 if (!SWIG_IsOK(res1)) {
06423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_endpoint_id_t" "', argument " "1"" of type '" "XDR *""'");
06424 }
06425 arg1 = reinterpret_cast< XDR * >(argp1);
06426 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 );
06427 if (!SWIG_IsOK(res2)) {
06428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_endpoint_id_t" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'");
06429 }
06430 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2);
06431 result = xdr_dtn_endpoint_id_t(arg1,arg2);
06432 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06433
06434
06435 XSRETURN(argvi);
06436 fail:
06437
06438
06439 SWIG_croak_null();
06440 }
06441 }
06442
06443
06444 XS(_wrap_xdr_dtn_reg_id_t) {
06445 {
06446 XDR *arg1 = (XDR *) 0 ;
06447 dtn_reg_id_t *arg2 = (dtn_reg_id_t *) 0 ;
06448 bool_t result;
06449 void *argp1 = 0 ;
06450 int res1 = 0 ;
06451 void *argp2 = 0 ;
06452 int res2 = 0 ;
06453 int argvi = 0;
06454 dXSARGS;
06455
06456 if ((items < 2) || (items > 2)) {
06457 SWIG_croak("Usage: xdr_dtn_reg_id_t(XDR *,dtn_reg_id_t *);");
06458 }
06459 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06460 if (!SWIG_IsOK(res1)) {
06461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_id_t" "', argument " "1"" of type '" "XDR *""'");
06462 }
06463 arg1 = reinterpret_cast< XDR * >(argp1);
06464 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_u_int, 0 | 0 );
06465 if (!SWIG_IsOK(res2)) {
06466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_id_t" "', argument " "2"" of type '" "dtn_reg_id_t *""'");
06467 }
06468 arg2 = reinterpret_cast< dtn_reg_id_t * >(argp2);
06469 result = xdr_dtn_reg_id_t(arg1,arg2);
06470 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06471
06472
06473 XSRETURN(argvi);
06474 fail:
06475
06476
06477 SWIG_croak_null();
06478 }
06479 }
06480
06481
06482 XS(_wrap_xdr_dtn_timeval_t) {
06483 {
06484 XDR *arg1 = (XDR *) 0 ;
06485 dtn_timeval_t *arg2 = (dtn_timeval_t *) 0 ;
06486 bool_t result;
06487 void *argp1 = 0 ;
06488 int res1 = 0 ;
06489 void *argp2 = 0 ;
06490 int res2 = 0 ;
06491 int argvi = 0;
06492 dXSARGS;
06493
06494 if ((items < 2) || (items > 2)) {
06495 SWIG_croak("Usage: xdr_dtn_timeval_t(XDR *,dtn_timeval_t *);");
06496 }
06497 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06498 if (!SWIG_IsOK(res1)) {
06499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_timeval_t" "', argument " "1"" of type '" "XDR *""'");
06500 }
06501 arg1 = reinterpret_cast< XDR * >(argp1);
06502 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_u_int, 0 | 0 );
06503 if (!SWIG_IsOK(res2)) {
06504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_timeval_t" "', argument " "2"" of type '" "dtn_timeval_t *""'");
06505 }
06506 arg2 = reinterpret_cast< dtn_timeval_t * >(argp2);
06507 result = xdr_dtn_timeval_t(arg1,arg2);
06508 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06509
06510
06511 XSRETURN(argvi);
06512 fail:
06513
06514
06515 SWIG_croak_null();
06516 }
06517 }
06518
06519
06520 XS(_wrap_xdr_dtn_timestamp_t) {
06521 {
06522 XDR *arg1 = (XDR *) 0 ;
06523 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ;
06524 bool_t result;
06525 void *argp1 = 0 ;
06526 int res1 = 0 ;
06527 void *argp2 = 0 ;
06528 int res2 = 0 ;
06529 int argvi = 0;
06530 dXSARGS;
06531
06532 if ((items < 2) || (items > 2)) {
06533 SWIG_croak("Usage: xdr_dtn_timestamp_t(XDR *,dtn_timestamp_t *);");
06534 }
06535 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06536 if (!SWIG_IsOK(res1)) {
06537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_timestamp_t" "', argument " "1"" of type '" "XDR *""'");
06538 }
06539 arg1 = reinterpret_cast< XDR * >(argp1);
06540 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 );
06541 if (!SWIG_IsOK(res2)) {
06542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_timestamp_t" "', argument " "2"" of type '" "dtn_timestamp_t *""'");
06543 }
06544 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2);
06545 result = xdr_dtn_timestamp_t(arg1,arg2);
06546 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06547
06548
06549 XSRETURN(argvi);
06550 fail:
06551
06552
06553 SWIG_croak_null();
06554 }
06555 }
06556
06557
06558 XS(_wrap_xdr_dtn_service_tag_t) {
06559 {
06560 XDR *arg1 = (XDR *) 0 ;
06561 dtn_service_tag_t *arg2 = (dtn_service_tag_t *) 0 ;
06562 bool_t result;
06563 void *argp1 = 0 ;
06564 int res1 = 0 ;
06565 void *argp2 = 0 ;
06566 int res2 = 0 ;
06567 int argvi = 0;
06568 dXSARGS;
06569
06570 if ((items < 2) || (items > 2)) {
06571 SWIG_croak("Usage: xdr_dtn_service_tag_t(XDR *,dtn_service_tag_t *);");
06572 }
06573 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06574 if (!SWIG_IsOK(res1)) {
06575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_service_tag_t" "', argument " "1"" of type '" "XDR *""'");
06576 }
06577 arg1 = reinterpret_cast< XDR * >(argp1);
06578 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 );
06579 if (!SWIG_IsOK(res2)) {
06580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_service_tag_t" "', argument " "2"" of type '" "dtn_service_tag_t *""'");
06581 }
06582 arg2 = reinterpret_cast< dtn_service_tag_t * >(argp2);
06583 result = xdr_dtn_service_tag_t(arg1,arg2);
06584 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06585
06586
06587 XSRETURN(argvi);
06588 fail:
06589
06590
06591 SWIG_croak_null();
06592 }
06593 }
06594
06595
06596 XS(_wrap_xdr_dtn_reg_flags_t) {
06597 {
06598 XDR *arg1 = (XDR *) 0 ;
06599 dtn_reg_flags_t *arg2 = (dtn_reg_flags_t *) 0 ;
06600 bool_t result;
06601 void *argp1 = 0 ;
06602 int res1 = 0 ;
06603 void *argp2 = 0 ;
06604 int res2 = 0 ;
06605 int argvi = 0;
06606 dXSARGS;
06607
06608 if ((items < 2) || (items > 2)) {
06609 SWIG_croak("Usage: xdr_dtn_reg_flags_t(XDR *,dtn_reg_flags_t *);");
06610 }
06611 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06612 if (!SWIG_IsOK(res1)) {
06613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_flags_t" "', argument " "1"" of type '" "XDR *""'");
06614 }
06615 arg1 = reinterpret_cast< XDR * >(argp1);
06616 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_reg_flags_t, 0 | 0 );
06617 if (!SWIG_IsOK(res2)) {
06618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_flags_t" "', argument " "2"" of type '" "dtn_reg_flags_t *""'");
06619 }
06620 arg2 = reinterpret_cast< dtn_reg_flags_t * >(argp2);
06621 result = xdr_dtn_reg_flags_t(arg1,arg2);
06622 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06623
06624
06625 XSRETURN(argvi);
06626 fail:
06627
06628
06629 SWIG_croak_null();
06630 }
06631 }
06632
06633
06634 XS(_wrap_xdr_dtn_reg_info_t) {
06635 {
06636 XDR *arg1 = (XDR *) 0 ;
06637 dtn_reg_info_t *arg2 = (dtn_reg_info_t *) 0 ;
06638 bool_t result;
06639 void *argp1 = 0 ;
06640 int res1 = 0 ;
06641 void *argp2 = 0 ;
06642 int res2 = 0 ;
06643 int argvi = 0;
06644 dXSARGS;
06645
06646 if ((items < 2) || (items > 2)) {
06647 SWIG_croak("Usage: xdr_dtn_reg_info_t(XDR *,dtn_reg_info_t *);");
06648 }
06649 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06650 if (!SWIG_IsOK(res1)) {
06651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_info_t" "', argument " "1"" of type '" "XDR *""'");
06652 }
06653 arg1 = reinterpret_cast< XDR * >(argp1);
06654 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
06655 if (!SWIG_IsOK(res2)) {
06656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_info_t" "', argument " "2"" of type '" "dtn_reg_info_t *""'");
06657 }
06658 arg2 = reinterpret_cast< dtn_reg_info_t * >(argp2);
06659 result = xdr_dtn_reg_info_t(arg1,arg2);
06660 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06661
06662
06663 XSRETURN(argvi);
06664 fail:
06665
06666
06667 SWIG_croak_null();
06668 }
06669 }
06670
06671
06672 XS(_wrap_xdr_dtn_bundle_priority_t) {
06673 {
06674 XDR *arg1 = (XDR *) 0 ;
06675 dtn_bundle_priority_t *arg2 = (dtn_bundle_priority_t *) 0 ;
06676 bool_t result;
06677 void *argp1 = 0 ;
06678 int res1 = 0 ;
06679 void *argp2 = 0 ;
06680 int res2 = 0 ;
06681 int argvi = 0;
06682 dXSARGS;
06683
06684 if ((items < 2) || (items > 2)) {
06685 SWIG_croak("Usage: xdr_dtn_bundle_priority_t(XDR *,dtn_bundle_priority_t *);");
06686 }
06687 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06688 if (!SWIG_IsOK(res1)) {
06689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_priority_t" "', argument " "1"" of type '" "XDR *""'");
06690 }
06691 arg1 = reinterpret_cast< XDR * >(argp1);
06692 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_priority_t, 0 | 0 );
06693 if (!SWIG_IsOK(res2)) {
06694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_priority_t" "', argument " "2"" of type '" "dtn_bundle_priority_t *""'");
06695 }
06696 arg2 = reinterpret_cast< dtn_bundle_priority_t * >(argp2);
06697 result = xdr_dtn_bundle_priority_t(arg1,arg2);
06698 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06699
06700
06701 XSRETURN(argvi);
06702 fail:
06703
06704
06705 SWIG_croak_null();
06706 }
06707 }
06708
06709
06710 XS(_wrap_xdr_dtn_bundle_delivery_opts_t) {
06711 {
06712 XDR *arg1 = (XDR *) 0 ;
06713 dtn_bundle_delivery_opts_t *arg2 = (dtn_bundle_delivery_opts_t *) 0 ;
06714 bool_t result;
06715 void *argp1 = 0 ;
06716 int res1 = 0 ;
06717 void *argp2 = 0 ;
06718 int res2 = 0 ;
06719 int argvi = 0;
06720 dXSARGS;
06721
06722 if ((items < 2) || (items > 2)) {
06723 SWIG_croak("Usage: xdr_dtn_bundle_delivery_opts_t(XDR *,dtn_bundle_delivery_opts_t *);");
06724 }
06725 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06726 if (!SWIG_IsOK(res1)) {
06727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_delivery_opts_t" "', argument " "1"" of type '" "XDR *""'");
06728 }
06729 arg1 = reinterpret_cast< XDR * >(argp1);
06730 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_delivery_opts_t, 0 | 0 );
06731 if (!SWIG_IsOK(res2)) {
06732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_delivery_opts_t" "', argument " "2"" of type '" "dtn_bundle_delivery_opts_t *""'");
06733 }
06734 arg2 = reinterpret_cast< dtn_bundle_delivery_opts_t * >(argp2);
06735 result = xdr_dtn_bundle_delivery_opts_t(arg1,arg2);
06736 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06737
06738
06739 XSRETURN(argvi);
06740 fail:
06741
06742
06743 SWIG_croak_null();
06744 }
06745 }
06746
06747
06748 XS(_wrap_xdr_dtn_extension_block_flags_t) {
06749 {
06750 XDR *arg1 = (XDR *) 0 ;
06751 dtn_extension_block_flags_t *arg2 = (dtn_extension_block_flags_t *) 0 ;
06752 bool_t result;
06753 void *argp1 = 0 ;
06754 int res1 = 0 ;
06755 void *argp2 = 0 ;
06756 int res2 = 0 ;
06757 int argvi = 0;
06758 dXSARGS;
06759
06760 if ((items < 2) || (items > 2)) {
06761 SWIG_croak("Usage: xdr_dtn_extension_block_flags_t(XDR *,dtn_extension_block_flags_t *);");
06762 }
06763 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06764 if (!SWIG_IsOK(res1)) {
06765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_extension_block_flags_t" "', argument " "1"" of type '" "XDR *""'");
06766 }
06767 arg1 = reinterpret_cast< XDR * >(argp1);
06768 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_flags_t, 0 | 0 );
06769 if (!SWIG_IsOK(res2)) {
06770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_extension_block_flags_t" "', argument " "2"" of type '" "dtn_extension_block_flags_t *""'");
06771 }
06772 arg2 = reinterpret_cast< dtn_extension_block_flags_t * >(argp2);
06773 result = xdr_dtn_extension_block_flags_t(arg1,arg2);
06774 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06775
06776
06777 XSRETURN(argvi);
06778 fail:
06779
06780
06781 SWIG_croak_null();
06782 }
06783 }
06784
06785
06786 XS(_wrap_xdr_dtn_extension_block_t) {
06787 {
06788 XDR *arg1 = (XDR *) 0 ;
06789 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ;
06790 bool_t result;
06791 void *argp1 = 0 ;
06792 int res1 = 0 ;
06793 void *argp2 = 0 ;
06794 int res2 = 0 ;
06795 int argvi = 0;
06796 dXSARGS;
06797
06798 if ((items < 2) || (items > 2)) {
06799 SWIG_croak("Usage: xdr_dtn_extension_block_t(XDR *,dtn_extension_block_t *);");
06800 }
06801 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06802 if (!SWIG_IsOK(res1)) {
06803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_extension_block_t" "', argument " "1"" of type '" "XDR *""'");
06804 }
06805 arg1 = reinterpret_cast< XDR * >(argp1);
06806 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 );
06807 if (!SWIG_IsOK(res2)) {
06808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_extension_block_t" "', argument " "2"" of type '" "dtn_extension_block_t *""'");
06809 }
06810 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2);
06811 result = xdr_dtn_extension_block_t(arg1,arg2);
06812 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06813
06814
06815 XSRETURN(argvi);
06816 fail:
06817
06818
06819 SWIG_croak_null();
06820 }
06821 }
06822
06823
06824 XS(_wrap_xdr_dtn_sequence_id_t) {
06825 {
06826 XDR *arg1 = (XDR *) 0 ;
06827 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ;
06828 bool_t result;
06829 void *argp1 = 0 ;
06830 int res1 = 0 ;
06831 void *argp2 = 0 ;
06832 int res2 = 0 ;
06833 int argvi = 0;
06834 dXSARGS;
06835
06836 if ((items < 2) || (items > 2)) {
06837 SWIG_croak("Usage: xdr_dtn_sequence_id_t(XDR *,dtn_sequence_id_t *);");
06838 }
06839 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06840 if (!SWIG_IsOK(res1)) {
06841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_sequence_id_t" "', argument " "1"" of type '" "XDR *""'");
06842 }
06843 arg1 = reinterpret_cast< XDR * >(argp1);
06844 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 );
06845 if (!SWIG_IsOK(res2)) {
06846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_sequence_id_t" "', argument " "2"" of type '" "dtn_sequence_id_t *""'");
06847 }
06848 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2);
06849 result = xdr_dtn_sequence_id_t(arg1,arg2);
06850 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06851
06852
06853 XSRETURN(argvi);
06854 fail:
06855
06856
06857 SWIG_croak_null();
06858 }
06859 }
06860
06861
06862 XS(_wrap_xdr_dtn_bundle_spec_t) {
06863 {
06864 XDR *arg1 = (XDR *) 0 ;
06865 dtn_bundle_spec_t *arg2 = (dtn_bundle_spec_t *) 0 ;
06866 bool_t result;
06867 void *argp1 = 0 ;
06868 int res1 = 0 ;
06869 void *argp2 = 0 ;
06870 int res2 = 0 ;
06871 int argvi = 0;
06872 dXSARGS;
06873
06874 if ((items < 2) || (items > 2)) {
06875 SWIG_croak("Usage: xdr_dtn_bundle_spec_t(XDR *,dtn_bundle_spec_t *);");
06876 }
06877 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06878 if (!SWIG_IsOK(res1)) {
06879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_spec_t" "', argument " "1"" of type '" "XDR *""'");
06880 }
06881 arg1 = reinterpret_cast< XDR * >(argp1);
06882 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 );
06883 if (!SWIG_IsOK(res2)) {
06884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_spec_t" "', argument " "2"" of type '" "dtn_bundle_spec_t *""'");
06885 }
06886 arg2 = reinterpret_cast< dtn_bundle_spec_t * >(argp2);
06887 result = xdr_dtn_bundle_spec_t(arg1,arg2);
06888 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06889
06890
06891 XSRETURN(argvi);
06892 fail:
06893
06894
06895 SWIG_croak_null();
06896 }
06897 }
06898
06899
06900 XS(_wrap_xdr_dtn_bundle_id_t) {
06901 {
06902 XDR *arg1 = (XDR *) 0 ;
06903 dtn_bundle_id_t *arg2 = (dtn_bundle_id_t *) 0 ;
06904 bool_t result;
06905 void *argp1 = 0 ;
06906 int res1 = 0 ;
06907 void *argp2 = 0 ;
06908 int res2 = 0 ;
06909 int argvi = 0;
06910 dXSARGS;
06911
06912 if ((items < 2) || (items > 2)) {
06913 SWIG_croak("Usage: xdr_dtn_bundle_id_t(XDR *,dtn_bundle_id_t *);");
06914 }
06915 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06916 if (!SWIG_IsOK(res1)) {
06917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_id_t" "', argument " "1"" of type '" "XDR *""'");
06918 }
06919 arg1 = reinterpret_cast< XDR * >(argp1);
06920 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 );
06921 if (!SWIG_IsOK(res2)) {
06922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_id_t" "', argument " "2"" of type '" "dtn_bundle_id_t *""'");
06923 }
06924 arg2 = reinterpret_cast< dtn_bundle_id_t * >(argp2);
06925 result = xdr_dtn_bundle_id_t(arg1,arg2);
06926 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06927
06928
06929 XSRETURN(argvi);
06930 fail:
06931
06932
06933 SWIG_croak_null();
06934 }
06935 }
06936
06937
06938 XS(_wrap_xdr_dtn_status_report_reason_t) {
06939 {
06940 XDR *arg1 = (XDR *) 0 ;
06941 dtn_status_report_reason_t *arg2 = (dtn_status_report_reason_t *) 0 ;
06942 bool_t result;
06943 void *argp1 = 0 ;
06944 int res1 = 0 ;
06945 void *argp2 = 0 ;
06946 int res2 = 0 ;
06947 int argvi = 0;
06948 dXSARGS;
06949
06950 if ((items < 2) || (items > 2)) {
06951 SWIG_croak("Usage: xdr_dtn_status_report_reason_t(XDR *,dtn_status_report_reason_t *);");
06952 }
06953 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06954 if (!SWIG_IsOK(res1)) {
06955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_status_report_reason_t" "', argument " "1"" of type '" "XDR *""'");
06956 }
06957 arg1 = reinterpret_cast< XDR * >(argp1);
06958 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report_reason_t, 0 | 0 );
06959 if (!SWIG_IsOK(res2)) {
06960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_status_report_reason_t" "', argument " "2"" of type '" "dtn_status_report_reason_t *""'");
06961 }
06962 arg2 = reinterpret_cast< dtn_status_report_reason_t * >(argp2);
06963 result = xdr_dtn_status_report_reason_t(arg1,arg2);
06964 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
06965
06966
06967 XSRETURN(argvi);
06968 fail:
06969
06970
06971 SWIG_croak_null();
06972 }
06973 }
06974
06975
06976 XS(_wrap_xdr_dtn_status_report_flags_t) {
06977 {
06978 XDR *arg1 = (XDR *) 0 ;
06979 dtn_status_report_flags_t *arg2 = (dtn_status_report_flags_t *) 0 ;
06980 bool_t result;
06981 void *argp1 = 0 ;
06982 int res1 = 0 ;
06983 void *argp2 = 0 ;
06984 int res2 = 0 ;
06985 int argvi = 0;
06986 dXSARGS;
06987
06988 if ((items < 2) || (items > 2)) {
06989 SWIG_croak("Usage: xdr_dtn_status_report_flags_t(XDR *,dtn_status_report_flags_t *);");
06990 }
06991 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
06992 if (!SWIG_IsOK(res1)) {
06993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_status_report_flags_t" "', argument " "1"" of type '" "XDR *""'");
06994 }
06995 arg1 = reinterpret_cast< XDR * >(argp1);
06996 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report_flags_t, 0 | 0 );
06997 if (!SWIG_IsOK(res2)) {
06998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_status_report_flags_t" "', argument " "2"" of type '" "dtn_status_report_flags_t *""'");
06999 }
07000 arg2 = reinterpret_cast< dtn_status_report_flags_t * >(argp2);
07001 result = xdr_dtn_status_report_flags_t(arg1,arg2);
07002 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
07003
07004
07005 XSRETURN(argvi);
07006 fail:
07007
07008
07009 SWIG_croak_null();
07010 }
07011 }
07012
07013
07014 XS(_wrap_xdr_dtn_bundle_status_report_t) {
07015 {
07016 XDR *arg1 = (XDR *) 0 ;
07017 dtn_bundle_status_report_t *arg2 = (dtn_bundle_status_report_t *) 0 ;
07018 bool_t result;
07019 void *argp1 = 0 ;
07020 int res1 = 0 ;
07021 void *argp2 = 0 ;
07022 int res2 = 0 ;
07023 int argvi = 0;
07024 dXSARGS;
07025
07026 if ((items < 2) || (items > 2)) {
07027 SWIG_croak("Usage: xdr_dtn_bundle_status_report_t(XDR *,dtn_bundle_status_report_t *);");
07028 }
07029 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
07030 if (!SWIG_IsOK(res1)) {
07031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_status_report_t" "', argument " "1"" of type '" "XDR *""'");
07032 }
07033 arg1 = reinterpret_cast< XDR * >(argp1);
07034 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 );
07035 if (!SWIG_IsOK(res2)) {
07036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_status_report_t" "', argument " "2"" of type '" "dtn_bundle_status_report_t *""'");
07037 }
07038 arg2 = reinterpret_cast< dtn_bundle_status_report_t * >(argp2);
07039 result = xdr_dtn_bundle_status_report_t(arg1,arg2);
07040 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
07041
07042
07043 XSRETURN(argvi);
07044 fail:
07045
07046
07047 SWIG_croak_null();
07048 }
07049 }
07050
07051
07052 XS(_wrap_xdr_dtn_bundle_payload_location_t) {
07053 {
07054 XDR *arg1 = (XDR *) 0 ;
07055 dtn_bundle_payload_location_t *arg2 = (dtn_bundle_payload_location_t *) 0 ;
07056 bool_t result;
07057 void *argp1 = 0 ;
07058 int res1 = 0 ;
07059 void *argp2 = 0 ;
07060 int res2 = 0 ;
07061 int argvi = 0;
07062 dXSARGS;
07063
07064 if ((items < 2) || (items > 2)) {
07065 SWIG_croak("Usage: xdr_dtn_bundle_payload_location_t(XDR *,dtn_bundle_payload_location_t *);");
07066 }
07067 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
07068 if (!SWIG_IsOK(res1)) {
07069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_payload_location_t" "', argument " "1"" of type '" "XDR *""'");
07070 }
07071 arg1 = reinterpret_cast< XDR * >(argp1);
07072 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_payload_location_t, 0 | 0 );
07073 if (!SWIG_IsOK(res2)) {
07074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_payload_location_t" "', argument " "2"" of type '" "dtn_bundle_payload_location_t *""'");
07075 }
07076 arg2 = reinterpret_cast< dtn_bundle_payload_location_t * >(argp2);
07077 result = xdr_dtn_bundle_payload_location_t(arg1,arg2);
07078 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
07079
07080
07081 XSRETURN(argvi);
07082 fail:
07083
07084
07085 SWIG_croak_null();
07086 }
07087 }
07088
07089
07090 XS(_wrap_xdr_dtn_bundle_payload_t) {
07091 {
07092 XDR *arg1 = (XDR *) 0 ;
07093 dtn_bundle_payload_t *arg2 = (dtn_bundle_payload_t *) 0 ;
07094 bool_t result;
07095 void *argp1 = 0 ;
07096 int res1 = 0 ;
07097 void *argp2 = 0 ;
07098 int res2 = 0 ;
07099 int argvi = 0;
07100 dXSARGS;
07101
07102 if ((items < 2) || (items > 2)) {
07103 SWIG_croak("Usage: xdr_dtn_bundle_payload_t(XDR *,dtn_bundle_payload_t *);");
07104 }
07105 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 );
07106 if (!SWIG_IsOK(res1)) {
07107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_payload_t" "', argument " "1"" of type '" "XDR *""'");
07108 }
07109 arg1 = reinterpret_cast< XDR * >(argp1);
07110 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 );
07111 if (!SWIG_IsOK(res2)) {
07112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_payload_t" "', argument " "2"" of type '" "dtn_bundle_payload_t *""'");
07113 }
07114 arg2 = reinterpret_cast< dtn_bundle_payload_t * >(argp2);
07115 result = xdr_dtn_bundle_payload_t(arg1,arg2);
07116 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ;
07117
07118
07119 XSRETURN(argvi);
07120 fail:
07121
07122
07123 SWIG_croak_null();
07124 }
07125 }
07126
07127
07128 XS(_wrap_dtn_strerror) {
07129 {
07130 int arg1 ;
07131 char *result = 0 ;
07132 int val1 ;
07133 int ecode1 = 0 ;
07134 int argvi = 0;
07135 dXSARGS;
07136
07137 if ((items < 1) || (items > 1)) {
07138 SWIG_croak("Usage: dtn_strerror(err);");
07139 }
07140 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07141 if (!SWIG_IsOK(ecode1)) {
07142 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_strerror" "', argument " "1"" of type '" "int""'");
07143 }
07144 arg1 = static_cast< int >(val1);
07145 result = (char *)dtn_strerror(arg1);
07146 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
07147
07148 XSRETURN(argvi);
07149 fail:
07150
07151 SWIG_croak_null();
07152 }
07153 }
07154
07155
07156 XS(_wrap_dtn_open) {
07157 {
07158 int result;
07159 int argvi = 0;
07160 dXSARGS;
07161
07162 if ((items < 0) || (items > 0)) {
07163 SWIG_croak("Usage: dtn_open();");
07164 }
07165 result = (int)dtn_open();
07166 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07167 XSRETURN(argvi);
07168 fail:
07169 SWIG_croak_null();
07170 }
07171 }
07172
07173
07174 XS(_wrap_find_handle) {
07175 {
07176 int arg1 ;
07177 dtn_handle_t result;
07178 int val1 ;
07179 int ecode1 = 0 ;
07180 int argvi = 0;
07181 dXSARGS;
07182
07183 if ((items < 1) || (items > 1)) {
07184 SWIG_croak("Usage: find_handle(i);");
07185 }
07186 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07187 if (!SWIG_IsOK(ecode1)) {
07188 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "find_handle" "', argument " "1"" of type '" "int""'");
07189 }
07190 arg1 = static_cast< int >(val1);
07191 result = find_handle(arg1);
07192 ST(argvi) = SWIG_NewPointerObj((new dtn_handle_t(static_cast< const dtn_handle_t& >(result))), SWIGTYPE_p_dtn_handle_t, SWIG_POINTER_OWN | 0); argvi++ ;
07193
07194 XSRETURN(argvi);
07195 fail:
07196
07197 SWIG_croak_null();
07198 }
07199 }
07200
07201
07202 XS(_wrap_dtn_close) {
07203 {
07204 int arg1 ;
07205 int val1 ;
07206 int ecode1 = 0 ;
07207 int argvi = 0;
07208 dXSARGS;
07209
07210 if ((items < 1) || (items > 1)) {
07211 SWIG_croak("Usage: dtn_close(handle);");
07212 }
07213 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07214 if (!SWIG_IsOK(ecode1)) {
07215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_close" "', argument " "1"" of type '" "int""'");
07216 }
07217 arg1 = static_cast< int >(val1);
07218 dtn_close(arg1);
07219
07220
07221 XSRETURN(argvi);
07222 fail:
07223
07224 SWIG_croak_null();
07225 }
07226 }
07227
07228
07229 XS(_wrap_dtn_errno) {
07230 {
07231 int arg1 ;
07232 int result;
07233 int val1 ;
07234 int ecode1 = 0 ;
07235 int argvi = 0;
07236 dXSARGS;
07237
07238 if ((items < 1) || (items > 1)) {
07239 SWIG_croak("Usage: dtn_errno(handle);");
07240 }
07241 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07242 if (!SWIG_IsOK(ecode1)) {
07243 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_errno" "', argument " "1"" of type '" "int""'");
07244 }
07245 arg1 = static_cast< int >(val1);
07246 result = (int)dtn_errno(arg1);
07247 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07248
07249 XSRETURN(argvi);
07250 fail:
07251
07252 SWIG_croak_null();
07253 }
07254 }
07255
07256
07257 XS(_wrap_dtn_build_local_eid) {
07258 {
07259 int arg1 ;
07260 char *arg2 = (char *) 0 ;
07261 std::string result;
07262 int val1 ;
07263 int ecode1 = 0 ;
07264 int res2 ;
07265 char *buf2 = 0 ;
07266 int alloc2 = 0 ;
07267 int argvi = 0;
07268 dXSARGS;
07269
07270 if ((items < 2) || (items > 2)) {
07271 SWIG_croak("Usage: dtn_build_local_eid(handle,service_tag);");
07272 }
07273 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07274 if (!SWIG_IsOK(ecode1)) {
07275 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_build_local_eid" "', argument " "1"" of type '" "int""'");
07276 }
07277 arg1 = static_cast< int >(val1);
07278 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
07279 if (!SWIG_IsOK(res2)) {
07280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_build_local_eid" "', argument " "2"" of type '" "char const *""'");
07281 }
07282 arg2 = reinterpret_cast< char * >(buf2);
07283 result = dtn_build_local_eid(arg1,(char const *)arg2);
07284 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(result)); argvi++ ;
07285
07286 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
07287 XSRETURN(argvi);
07288 fail:
07289
07290 if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
07291 SWIG_croak_null();
07292 }
07293 }
07294
07295
07296 XS(_wrap_build_reginfo) {
07297 {
07298 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ;
07299 std::string *arg2 = 0 ;
07300 unsigned int arg3 ;
07301 unsigned int arg4 ;
07302 bool arg5 ;
07303 std::string *arg6 = 0 ;
07304 int result;
07305 void *argp1 = 0 ;
07306 int res1 = 0 ;
07307 int res2 = SWIG_OLDOBJ ;
07308 unsigned int val3 ;
07309 int ecode3 = 0 ;
07310 unsigned int val4 ;
07311 int ecode4 = 0 ;
07312 bool val5 ;
07313 int ecode5 = 0 ;
07314 int res6 = SWIG_OLDOBJ ;
07315 int argvi = 0;
07316 dXSARGS;
07317
07318 if ((items < 6) || (items > 6)) {
07319 SWIG_croak("Usage: build_reginfo(reginfo,endpoint,flags,expiration,init_passive,script);");
07320 }
07321 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 );
07322 if (!SWIG_IsOK(res1)) {
07323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "build_reginfo" "', argument " "1"" of type '" "dtn_reg_info_t *""'");
07324 }
07325 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1);
07326 {
07327 std::string *ptr = (std::string *)0;
07328 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
07329 if (!SWIG_IsOK(res2)) {
07330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "build_reginfo" "', argument " "2"" of type '" "std::string const &""'");
07331 }
07332 if (!ptr) {
07333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "build_reginfo" "', argument " "2"" of type '" "std::string const &""'");
07334 }
07335 arg2 = ptr;
07336 }
07337 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
07338 if (!SWIG_IsOK(ecode3)) {
07339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "build_reginfo" "', argument " "3"" of type '" "unsigned int""'");
07340 }
07341 arg3 = static_cast< unsigned int >(val3);
07342 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
07343 if (!SWIG_IsOK(ecode4)) {
07344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "build_reginfo" "', argument " "4"" of type '" "unsigned int""'");
07345 }
07346 arg4 = static_cast< unsigned int >(val4);
07347 ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
07348 if (!SWIG_IsOK(ecode5)) {
07349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "build_reginfo" "', argument " "5"" of type '" "bool""'");
07350 }
07351 arg5 = static_cast< bool >(val5);
07352 {
07353 std::string *ptr = (std::string *)0;
07354 res6 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(5), &ptr);
07355 if (!SWIG_IsOK(res6)) {
07356 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "build_reginfo" "', argument " "6"" of type '" "std::string const &""'");
07357 }
07358 if (!ptr) {
07359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "build_reginfo" "', argument " "6"" of type '" "std::string const &""'");
07360 }
07361 arg6 = ptr;
07362 }
07363 result = (int)build_reginfo(arg1,(std::string const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6);
07364 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07365
07366 if (SWIG_IsNewObj(res2)) delete arg2;
07367
07368
07369
07370 if (SWIG_IsNewObj(res6)) delete arg6;
07371 XSRETURN(argvi);
07372 fail:
07373
07374 if (SWIG_IsNewObj(res2)) delete arg2;
07375
07376
07377
07378 if (SWIG_IsNewObj(res6)) delete arg6;
07379 SWIG_croak_null();
07380 }
07381 }
07382
07383
07384 XS(_wrap_dtn_register) {
07385 {
07386 int arg1 ;
07387 std::string *arg2 = 0 ;
07388 unsigned int arg3 ;
07389 int arg4 ;
07390 bool arg5 ;
07391 std::string *arg6 = 0 ;
07392 int result;
07393 int val1 ;
07394 int ecode1 = 0 ;
07395 int res2 = SWIG_OLDOBJ ;
07396 unsigned int val3 ;
07397 int ecode3 = 0 ;
07398 int val4 ;
07399 int ecode4 = 0 ;
07400 bool val5 ;
07401 int ecode5 = 0 ;
07402 int res6 = SWIG_OLDOBJ ;
07403 int argvi = 0;
07404 dXSARGS;
07405
07406 if ((items < 6) || (items > 6)) {
07407 SWIG_croak("Usage: dtn_register(handle,endpoint,flags,expiration,init_passive,script);");
07408 }
07409 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07410 if (!SWIG_IsOK(ecode1)) {
07411 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_register" "', argument " "1"" of type '" "int""'");
07412 }
07413 arg1 = static_cast< int >(val1);
07414 {
07415 std::string *ptr = (std::string *)0;
07416 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
07417 if (!SWIG_IsOK(res2)) {
07418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_register" "', argument " "2"" of type '" "std::string const &""'");
07419 }
07420 if (!ptr) {
07421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_register" "', argument " "2"" of type '" "std::string const &""'");
07422 }
07423 arg2 = ptr;
07424 }
07425 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
07426 if (!SWIG_IsOK(ecode3)) {
07427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dtn_register" "', argument " "3"" of type '" "unsigned int""'");
07428 }
07429 arg3 = static_cast< unsigned int >(val3);
07430 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
07431 if (!SWIG_IsOK(ecode4)) {
07432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dtn_register" "', argument " "4"" of type '" "int""'");
07433 }
07434 arg4 = static_cast< int >(val4);
07435 ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
07436 if (!SWIG_IsOK(ecode5)) {
07437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dtn_register" "', argument " "5"" of type '" "bool""'");
07438 }
07439 arg5 = static_cast< bool >(val5);
07440 {
07441 std::string *ptr = (std::string *)0;
07442 res6 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(5), &ptr);
07443 if (!SWIG_IsOK(res6)) {
07444 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dtn_register" "', argument " "6"" of type '" "std::string const &""'");
07445 }
07446 if (!ptr) {
07447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_register" "', argument " "6"" of type '" "std::string const &""'");
07448 }
07449 arg6 = ptr;
07450 }
07451 result = (int)dtn_register(arg1,(std::string const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6);
07452 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07453
07454 if (SWIG_IsNewObj(res2)) delete arg2;
07455
07456
07457
07458 if (SWIG_IsNewObj(res6)) delete arg6;
07459 XSRETURN(argvi);
07460 fail:
07461
07462 if (SWIG_IsNewObj(res2)) delete arg2;
07463
07464
07465
07466 if (SWIG_IsNewObj(res6)) delete arg6;
07467 SWIG_croak_null();
07468 }
07469 }
07470
07471
07472 XS(_wrap_dtn_unregister) {
07473 {
07474 int arg1 ;
07475 dtn_reg_id_t arg2 ;
07476 int result;
07477 int val1 ;
07478 int ecode1 = 0 ;
07479 void *argp2 ;
07480 int res2 = 0 ;
07481 int argvi = 0;
07482 dXSARGS;
07483
07484 if ((items < 2) || (items > 2)) {
07485 SWIG_croak("Usage: dtn_unregister(handle,regid);");
07486 }
07487 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07488 if (!SWIG_IsOK(ecode1)) {
07489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_unregister" "', argument " "1"" of type '" "int""'");
07490 }
07491 arg1 = static_cast< int >(val1);
07492 {
07493 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
07494 if (!SWIG_IsOK(res2)) {
07495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_unregister" "', argument " "2"" of type '" "dtn_reg_id_t""'");
07496 }
07497 if (!argp2) {
07498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_unregister" "', argument " "2"" of type '" "dtn_reg_id_t""'");
07499 } else {
07500 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2));
07501 }
07502 }
07503 result = (int)dtn_unregister(arg1,arg2);
07504 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07505
07506 XSRETURN(argvi);
07507 fail:
07508
07509 SWIG_croak_null();
07510 }
07511 }
07512
07513
07514 XS(_wrap_dtn_find_registration) {
07515 {
07516 int arg1 ;
07517 std::string *arg2 = 0 ;
07518 int result;
07519 int val1 ;
07520 int ecode1 = 0 ;
07521 int res2 = SWIG_OLDOBJ ;
07522 int argvi = 0;
07523 dXSARGS;
07524
07525 if ((items < 2) || (items > 2)) {
07526 SWIG_croak("Usage: dtn_find_registration(handle,endpoint);");
07527 }
07528 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07529 if (!SWIG_IsOK(ecode1)) {
07530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_find_registration" "', argument " "1"" of type '" "int""'");
07531 }
07532 arg1 = static_cast< int >(val1);
07533 {
07534 std::string *ptr = (std::string *)0;
07535 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
07536 if (!SWIG_IsOK(res2)) {
07537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_find_registration" "', argument " "2"" of type '" "std::string const &""'");
07538 }
07539 if (!ptr) {
07540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_find_registration" "', argument " "2"" of type '" "std::string const &""'");
07541 }
07542 arg2 = ptr;
07543 }
07544 result = (int)dtn_find_registration(arg1,(std::string const &)*arg2);
07545 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07546
07547 if (SWIG_IsNewObj(res2)) delete arg2;
07548 XSRETURN(argvi);
07549 fail:
07550
07551 if (SWIG_IsNewObj(res2)) delete arg2;
07552 SWIG_croak_null();
07553 }
07554 }
07555
07556
07557 XS(_wrap_dtn_change_registration) {
07558 {
07559 int arg1 ;
07560 dtn_reg_id_t arg2 ;
07561 std::string *arg3 = 0 ;
07562 unsigned int arg4 ;
07563 int arg5 ;
07564 bool arg6 ;
07565 std::string *arg7 = 0 ;
07566 int result;
07567 int val1 ;
07568 int ecode1 = 0 ;
07569 void *argp2 ;
07570 int res2 = 0 ;
07571 int res3 = SWIG_OLDOBJ ;
07572 unsigned int val4 ;
07573 int ecode4 = 0 ;
07574 int val5 ;
07575 int ecode5 = 0 ;
07576 bool val6 ;
07577 int ecode6 = 0 ;
07578 int res7 = SWIG_OLDOBJ ;
07579 int argvi = 0;
07580 dXSARGS;
07581
07582 if ((items < 7) || (items > 7)) {
07583 SWIG_croak("Usage: dtn_change_registration(handle,regid,endpoint,action,expiration,init_passive,script);");
07584 }
07585 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07586 if (!SWIG_IsOK(ecode1)) {
07587 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_change_registration" "', argument " "1"" of type '" "int""'");
07588 }
07589 arg1 = static_cast< int >(val1);
07590 {
07591 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 );
07592 if (!SWIG_IsOK(res2)) {
07593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_change_registration" "', argument " "2"" of type '" "dtn_reg_id_t""'");
07594 }
07595 if (!argp2) {
07596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "2"" of type '" "dtn_reg_id_t""'");
07597 } else {
07598 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2));
07599 }
07600 }
07601 {
07602 std::string *ptr = (std::string *)0;
07603 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr);
07604 if (!SWIG_IsOK(res3)) {
07605 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_change_registration" "', argument " "3"" of type '" "std::string const &""'");
07606 }
07607 if (!ptr) {
07608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "3"" of type '" "std::string const &""'");
07609 }
07610 arg3 = ptr;
07611 }
07612 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
07613 if (!SWIG_IsOK(ecode4)) {
07614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dtn_change_registration" "', argument " "4"" of type '" "unsigned int""'");
07615 }
07616 arg4 = static_cast< unsigned int >(val4);
07617 ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
07618 if (!SWIG_IsOK(ecode5)) {
07619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dtn_change_registration" "', argument " "5"" of type '" "int""'");
07620 }
07621 arg5 = static_cast< int >(val5);
07622 ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
07623 if (!SWIG_IsOK(ecode6)) {
07624 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_change_registration" "', argument " "6"" of type '" "bool""'");
07625 }
07626 arg6 = static_cast< bool >(val6);
07627 {
07628 std::string *ptr = (std::string *)0;
07629 res7 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(6), &ptr);
07630 if (!SWIG_IsOK(res7)) {
07631 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dtn_change_registration" "', argument " "7"" of type '" "std::string const &""'");
07632 }
07633 if (!ptr) {
07634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "7"" of type '" "std::string const &""'");
07635 }
07636 arg7 = ptr;
07637 }
07638 result = (int)dtn_change_registration(arg1,arg2,(std::string const &)*arg3,arg4,arg5,arg6,(std::string const &)*arg7);
07639 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07640
07641 if (SWIG_IsNewObj(res3)) delete arg3;
07642
07643
07644
07645 if (SWIG_IsNewObj(res7)) delete arg7;
07646 XSRETURN(argvi);
07647 fail:
07648
07649 if (SWIG_IsNewObj(res3)) delete arg3;
07650
07651
07652
07653 if (SWIG_IsNewObj(res7)) delete arg7;
07654 SWIG_croak_null();
07655 }
07656 }
07657
07658
07659 XS(_wrap_dtn_bind) {
07660 {
07661 int arg1 ;
07662 int arg2 ;
07663 int result;
07664 int val1 ;
07665 int ecode1 = 0 ;
07666 int val2 ;
07667 int ecode2 = 0 ;
07668 int argvi = 0;
07669 dXSARGS;
07670
07671 if ((items < 2) || (items > 2)) {
07672 SWIG_croak("Usage: dtn_bind(handle,regid);");
07673 }
07674 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07675 if (!SWIG_IsOK(ecode1)) {
07676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_bind" "', argument " "1"" of type '" "int""'");
07677 }
07678 arg1 = static_cast< int >(val1);
07679 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
07680 if (!SWIG_IsOK(ecode2)) {
07681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bind" "', argument " "2"" of type '" "int""'");
07682 }
07683 arg2 = static_cast< int >(val2);
07684 result = (int)dtn_bind(arg1,arg2);
07685 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07686
07687
07688 XSRETURN(argvi);
07689 fail:
07690
07691
07692 SWIG_croak_null();
07693 }
07694 }
07695
07696
07697 XS(_wrap_dtn_unbind) {
07698 {
07699 int arg1 ;
07700 int arg2 ;
07701 int result;
07702 int val1 ;
07703 int ecode1 = 0 ;
07704 int val2 ;
07705 int ecode2 = 0 ;
07706 int argvi = 0;
07707 dXSARGS;
07708
07709 if ((items < 2) || (items > 2)) {
07710 SWIG_croak("Usage: dtn_unbind(handle,regid);");
07711 }
07712 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
07713 if (!SWIG_IsOK(ecode1)) {
07714 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_unbind" "', argument " "1"" of type '" "int""'");
07715 }
07716 arg1 = static_cast< int >(val1);
07717 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
07718 if (!SWIG_IsOK(ecode2)) {
07719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_unbind" "', argument " "2"" of type '" "int""'");
07720 }
07721 arg2 = static_cast< int >(val2);
07722 result = (int)dtn_unbind(arg1,arg2);
07723 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
07724
07725
07726 XSRETURN(argvi);
07727 fail:
07728
07729
07730 SWIG_croak_null();
07731 }
07732 }
07733
07734
07735 XS(_wrap_dtn_bundle_id_source_set) {
07736 {
07737 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07738 std::string *arg2 = 0 ;
07739 void *argp1 = 0 ;
07740 int res1 = 0 ;
07741 int res2 = SWIG_OLDOBJ ;
07742 int argvi = 0;
07743 dXSARGS;
07744
07745 if ((items < 2) || (items > 2)) {
07746 SWIG_croak("Usage: dtn_bundle_id_source_set(self,source);");
07747 }
07748 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07749 if (!SWIG_IsOK(res1)) {
07750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_source_set" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07751 }
07752 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07753 {
07754 std::string *ptr = (std::string *)0;
07755 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
07756 if (!SWIG_IsOK(res2)) {
07757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_source_set" "', argument " "2"" of type '" "std::string const &""'");
07758 }
07759 if (!ptr) {
07760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_source_set" "', argument " "2"" of type '" "std::string const &""'");
07761 }
07762 arg2 = ptr;
07763 }
07764 if (arg1) (arg1)->source = *arg2;
07765
07766
07767
07768 if (SWIG_IsNewObj(res2)) delete arg2;
07769 XSRETURN(argvi);
07770 fail:
07771
07772 if (SWIG_IsNewObj(res2)) delete arg2;
07773 SWIG_croak_null();
07774 }
07775 }
07776
07777
07778 XS(_wrap_dtn_bundle_id_source_get) {
07779 {
07780 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07781 std::string *result = 0 ;
07782 void *argp1 = 0 ;
07783 int res1 = 0 ;
07784 int argvi = 0;
07785 dXSARGS;
07786
07787 if ((items < 1) || (items > 1)) {
07788 SWIG_croak("Usage: dtn_bundle_id_source_get(self);");
07789 }
07790 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07791 if (!SWIG_IsOK(res1)) {
07792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_source_get" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07793 }
07794 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07795 {
07796 std::string const &_result_ref = ((arg1)->source);
07797 result = (std::string *) &_result_ref;
07798 }
07799 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
07800
07801 XSRETURN(argvi);
07802 fail:
07803
07804 SWIG_croak_null();
07805 }
07806 }
07807
07808
07809 XS(_wrap_dtn_bundle_id_creation_secs_set) {
07810 {
07811 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07812 unsigned int arg2 ;
07813 void *argp1 = 0 ;
07814 int res1 = 0 ;
07815 unsigned int val2 ;
07816 int ecode2 = 0 ;
07817 int argvi = 0;
07818 dXSARGS;
07819
07820 if ((items < 2) || (items > 2)) {
07821 SWIG_croak("Usage: dtn_bundle_id_creation_secs_set(self,creation_secs);");
07822 }
07823 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07824 if (!SWIG_IsOK(res1)) {
07825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_secs_set" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07826 }
07827 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07828 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
07829 if (!SWIG_IsOK(ecode2)) {
07830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_id_creation_secs_set" "', argument " "2"" of type '" "unsigned int""'");
07831 }
07832 arg2 = static_cast< unsigned int >(val2);
07833 if (arg1) (arg1)->creation_secs = arg2;
07834
07835
07836
07837
07838 XSRETURN(argvi);
07839 fail:
07840
07841
07842 SWIG_croak_null();
07843 }
07844 }
07845
07846
07847 XS(_wrap_dtn_bundle_id_creation_secs_get) {
07848 {
07849 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07850 unsigned int result;
07851 void *argp1 = 0 ;
07852 int res1 = 0 ;
07853 int argvi = 0;
07854 dXSARGS;
07855
07856 if ((items < 1) || (items > 1)) {
07857 SWIG_croak("Usage: dtn_bundle_id_creation_secs_get(self);");
07858 }
07859 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07860 if (!SWIG_IsOK(res1)) {
07861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_secs_get" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07862 }
07863 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07864 result = (unsigned int) ((arg1)->creation_secs);
07865 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
07866
07867 XSRETURN(argvi);
07868 fail:
07869
07870 SWIG_croak_null();
07871 }
07872 }
07873
07874
07875 XS(_wrap_dtn_bundle_id_creation_seqno_set) {
07876 {
07877 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07878 unsigned int arg2 ;
07879 void *argp1 = 0 ;
07880 int res1 = 0 ;
07881 unsigned int val2 ;
07882 int ecode2 = 0 ;
07883 int argvi = 0;
07884 dXSARGS;
07885
07886 if ((items < 2) || (items > 2)) {
07887 SWIG_croak("Usage: dtn_bundle_id_creation_seqno_set(self,creation_seqno);");
07888 }
07889 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07890 if (!SWIG_IsOK(res1)) {
07891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_seqno_set" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07892 }
07893 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07894 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
07895 if (!SWIG_IsOK(ecode2)) {
07896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_id_creation_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
07897 }
07898 arg2 = static_cast< unsigned int >(val2);
07899 if (arg1) (arg1)->creation_seqno = arg2;
07900
07901
07902
07903
07904 XSRETURN(argvi);
07905 fail:
07906
07907
07908 SWIG_croak_null();
07909 }
07910 }
07911
07912
07913 XS(_wrap_dtn_bundle_id_creation_seqno_get) {
07914 {
07915 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07916 unsigned int result;
07917 void *argp1 = 0 ;
07918 int res1 = 0 ;
07919 int argvi = 0;
07920 dXSARGS;
07921
07922 if ((items < 1) || (items > 1)) {
07923 SWIG_croak("Usage: dtn_bundle_id_creation_seqno_get(self);");
07924 }
07925 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
07926 if (!SWIG_IsOK(res1)) {
07927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_seqno_get" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07928 }
07929 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07930 result = (unsigned int) ((arg1)->creation_seqno);
07931 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
07932
07933 XSRETURN(argvi);
07934 fail:
07935
07936 SWIG_croak_null();
07937 }
07938 }
07939
07940
07941 XS(_wrap_new_dtn_bundle_id) {
07942 {
07943 dtn_bundle_id *result = 0 ;
07944 int argvi = 0;
07945 dXSARGS;
07946
07947 if ((items < 0) || (items > 0)) {
07948 SWIG_croak("Usage: new_dtn_bundle_id();");
07949 }
07950 result = (dtn_bundle_id *)new dtn_bundle_id();
07951 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
07952 XSRETURN(argvi);
07953 fail:
07954 SWIG_croak_null();
07955 }
07956 }
07957
07958
07959 XS(_wrap_delete_dtn_bundle_id) {
07960 {
07961 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ;
07962 void *argp1 = 0 ;
07963 int res1 = 0 ;
07964 int argvi = 0;
07965 dXSARGS;
07966
07967 if ((items < 1) || (items > 1)) {
07968 SWIG_croak("Usage: delete_dtn_bundle_id(self);");
07969 }
07970 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, SWIG_POINTER_DISOWN | 0 );
07971 if (!SWIG_IsOK(res1)) {
07972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_id" "', argument " "1"" of type '" "dtn_bundle_id *""'");
07973 }
07974 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1);
07975 delete arg1;
07976
07977
07978
07979 XSRETURN(argvi);
07980 fail:
07981
07982 SWIG_croak_null();
07983 }
07984 }
07985
07986
07987 XS(_wrap_dtn_send__SWIG_0) {
07988 {
07989 int arg1 ;
07990 int arg2 ;
07991 std::string *arg3 = 0 ;
07992 std::string *arg4 = 0 ;
07993 std::string *arg5 = 0 ;
07994 unsigned int arg6 ;
07995 unsigned int arg7 ;
07996 unsigned int arg8 ;
07997 unsigned int arg9 ;
07998 std::string *arg10 = 0 ;
07999 std::string *arg11 = 0 ;
08000 std::string *arg12 = 0 ;
08001 dtn_bundle_id *result = 0 ;
08002 int val1 ;
08003 int ecode1 = 0 ;
08004 int val2 ;
08005 int ecode2 = 0 ;
08006 int res3 = SWIG_OLDOBJ ;
08007 int res4 = SWIG_OLDOBJ ;
08008 int res5 = SWIG_OLDOBJ ;
08009 unsigned int val6 ;
08010 int ecode6 = 0 ;
08011 unsigned int val7 ;
08012 int ecode7 = 0 ;
08013 unsigned int val8 ;
08014 int ecode8 = 0 ;
08015 unsigned int val9 ;
08016 int ecode9 = 0 ;
08017 int res10 = SWIG_OLDOBJ ;
08018 int res11 = SWIG_OLDOBJ ;
08019 int res12 = SWIG_OLDOBJ ;
08020 int argvi = 0;
08021 dXSARGS;
08022
08023 if ((items < 12) || (items > 12)) {
08024 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data,sequence_id,obsoletes_id);");
08025 }
08026 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
08027 if (!SWIG_IsOK(ecode1)) {
08028 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'");
08029 }
08030 arg1 = static_cast< int >(val1);
08031 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
08032 if (!SWIG_IsOK(ecode2)) {
08033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'");
08034 }
08035 arg2 = static_cast< int >(val2);
08036 {
08037 std::string *ptr = (std::string *)0;
08038 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr);
08039 if (!SWIG_IsOK(res3)) {
08040 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08041 }
08042 if (!ptr) {
08043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08044 }
08045 arg3 = ptr;
08046 }
08047 {
08048 std::string *ptr = (std::string *)0;
08049 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr);
08050 if (!SWIG_IsOK(res4)) {
08051 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08052 }
08053 if (!ptr) {
08054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08055 }
08056 arg4 = ptr;
08057 }
08058 {
08059 std::string *ptr = (std::string *)0;
08060 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr);
08061 if (!SWIG_IsOK(res5)) {
08062 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08063 }
08064 if (!ptr) {
08065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08066 }
08067 arg5 = ptr;
08068 }
08069 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
08070 if (!SWIG_IsOK(ecode6)) {
08071 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'");
08072 }
08073 arg6 = static_cast< unsigned int >(val6);
08074 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
08075 if (!SWIG_IsOK(ecode7)) {
08076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'");
08077 }
08078 arg7 = static_cast< unsigned int >(val7);
08079 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
08080 if (!SWIG_IsOK(ecode8)) {
08081 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'");
08082 }
08083 arg8 = static_cast< unsigned int >(val8);
08084 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9);
08085 if (!SWIG_IsOK(ecode9)) {
08086 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'");
08087 }
08088 arg9 = static_cast< unsigned int >(val9);
08089 {
08090 std::string *ptr = (std::string *)0;
08091 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr);
08092 if (!SWIG_IsOK(res10)) {
08093 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08094 }
08095 if (!ptr) {
08096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08097 }
08098 arg10 = ptr;
08099 }
08100 {
08101 std::string *ptr = (std::string *)0;
08102 res11 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), &ptr);
08103 if (!SWIG_IsOK(res11)) {
08104 SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'");
08105 }
08106 if (!ptr) {
08107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'");
08108 }
08109 arg11 = ptr;
08110 }
08111 {
08112 std::string *ptr = (std::string *)0;
08113 res12 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(11), &ptr);
08114 if (!SWIG_IsOK(res12)) {
08115 SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "dtn_send" "', argument " "12"" of type '" "std::string const &""'");
08116 }
08117 if (!ptr) {
08118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "12"" of type '" "std::string const &""'");
08119 }
08120 arg12 = ptr;
08121 }
08122 result = (dtn_bundle_id *)dtn_send(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,(std::string const &)*arg10,(std::string const &)*arg11,(std::string const &)*arg12);
08123 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ;
08124
08125
08126 if (SWIG_IsNewObj(res3)) delete arg3;
08127 if (SWIG_IsNewObj(res4)) delete arg4;
08128 if (SWIG_IsNewObj(res5)) delete arg5;
08129
08130
08131
08132
08133 if (SWIG_IsNewObj(res10)) delete arg10;
08134 if (SWIG_IsNewObj(res11)) delete arg11;
08135 if (SWIG_IsNewObj(res12)) delete arg12;
08136 XSRETURN(argvi);
08137 fail:
08138
08139
08140 if (SWIG_IsNewObj(res3)) delete arg3;
08141 if (SWIG_IsNewObj(res4)) delete arg4;
08142 if (SWIG_IsNewObj(res5)) delete arg5;
08143
08144
08145
08146
08147 if (SWIG_IsNewObj(res10)) delete arg10;
08148 if (SWIG_IsNewObj(res11)) delete arg11;
08149 if (SWIG_IsNewObj(res12)) delete arg12;
08150 SWIG_croak_null();
08151 }
08152 }
08153
08154
08155 XS(_wrap_dtn_send__SWIG_1) {
08156 {
08157 int arg1 ;
08158 int arg2 ;
08159 std::string *arg3 = 0 ;
08160 std::string *arg4 = 0 ;
08161 std::string *arg5 = 0 ;
08162 unsigned int arg6 ;
08163 unsigned int arg7 ;
08164 unsigned int arg8 ;
08165 unsigned int arg9 ;
08166 std::string *arg10 = 0 ;
08167 std::string *arg11 = 0 ;
08168 dtn_bundle_id *result = 0 ;
08169 int val1 ;
08170 int ecode1 = 0 ;
08171 int val2 ;
08172 int ecode2 = 0 ;
08173 int res3 = SWIG_OLDOBJ ;
08174 int res4 = SWIG_OLDOBJ ;
08175 int res5 = SWIG_OLDOBJ ;
08176 unsigned int val6 ;
08177 int ecode6 = 0 ;
08178 unsigned int val7 ;
08179 int ecode7 = 0 ;
08180 unsigned int val8 ;
08181 int ecode8 = 0 ;
08182 unsigned int val9 ;
08183 int ecode9 = 0 ;
08184 int res10 = SWIG_OLDOBJ ;
08185 int res11 = SWIG_OLDOBJ ;
08186 int argvi = 0;
08187 dXSARGS;
08188
08189 if ((items < 11) || (items > 11)) {
08190 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data,sequence_id);");
08191 }
08192 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
08193 if (!SWIG_IsOK(ecode1)) {
08194 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'");
08195 }
08196 arg1 = static_cast< int >(val1);
08197 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
08198 if (!SWIG_IsOK(ecode2)) {
08199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'");
08200 }
08201 arg2 = static_cast< int >(val2);
08202 {
08203 std::string *ptr = (std::string *)0;
08204 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr);
08205 if (!SWIG_IsOK(res3)) {
08206 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08207 }
08208 if (!ptr) {
08209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08210 }
08211 arg3 = ptr;
08212 }
08213 {
08214 std::string *ptr = (std::string *)0;
08215 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr);
08216 if (!SWIG_IsOK(res4)) {
08217 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08218 }
08219 if (!ptr) {
08220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08221 }
08222 arg4 = ptr;
08223 }
08224 {
08225 std::string *ptr = (std::string *)0;
08226 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr);
08227 if (!SWIG_IsOK(res5)) {
08228 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08229 }
08230 if (!ptr) {
08231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08232 }
08233 arg5 = ptr;
08234 }
08235 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
08236 if (!SWIG_IsOK(ecode6)) {
08237 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'");
08238 }
08239 arg6 = static_cast< unsigned int >(val6);
08240 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
08241 if (!SWIG_IsOK(ecode7)) {
08242 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'");
08243 }
08244 arg7 = static_cast< unsigned int >(val7);
08245 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
08246 if (!SWIG_IsOK(ecode8)) {
08247 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'");
08248 }
08249 arg8 = static_cast< unsigned int >(val8);
08250 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9);
08251 if (!SWIG_IsOK(ecode9)) {
08252 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'");
08253 }
08254 arg9 = static_cast< unsigned int >(val9);
08255 {
08256 std::string *ptr = (std::string *)0;
08257 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr);
08258 if (!SWIG_IsOK(res10)) {
08259 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08260 }
08261 if (!ptr) {
08262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08263 }
08264 arg10 = ptr;
08265 }
08266 {
08267 std::string *ptr = (std::string *)0;
08268 res11 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), &ptr);
08269 if (!SWIG_IsOK(res11)) {
08270 SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'");
08271 }
08272 if (!ptr) {
08273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'");
08274 }
08275 arg11 = ptr;
08276 }
08277 result = (dtn_bundle_id *)dtn_send(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,(std::string const &)*arg10,(std::string const &)*arg11);
08278 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ;
08279
08280
08281 if (SWIG_IsNewObj(res3)) delete arg3;
08282 if (SWIG_IsNewObj(res4)) delete arg4;
08283 if (SWIG_IsNewObj(res5)) delete arg5;
08284
08285
08286
08287
08288 if (SWIG_IsNewObj(res10)) delete arg10;
08289 if (SWIG_IsNewObj(res11)) delete arg11;
08290 XSRETURN(argvi);
08291 fail:
08292
08293
08294 if (SWIG_IsNewObj(res3)) delete arg3;
08295 if (SWIG_IsNewObj(res4)) delete arg4;
08296 if (SWIG_IsNewObj(res5)) delete arg5;
08297
08298
08299
08300
08301 if (SWIG_IsNewObj(res10)) delete arg10;
08302 if (SWIG_IsNewObj(res11)) delete arg11;
08303 SWIG_croak_null();
08304 }
08305 }
08306
08307
08308 XS(_wrap_dtn_send__SWIG_2) {
08309 {
08310 int arg1 ;
08311 int arg2 ;
08312 std::string *arg3 = 0 ;
08313 std::string *arg4 = 0 ;
08314 std::string *arg5 = 0 ;
08315 unsigned int arg6 ;
08316 unsigned int arg7 ;
08317 unsigned int arg8 ;
08318 unsigned int arg9 ;
08319 std::string *arg10 = 0 ;
08320 dtn_bundle_id *result = 0 ;
08321 int val1 ;
08322 int ecode1 = 0 ;
08323 int val2 ;
08324 int ecode2 = 0 ;
08325 int res3 = SWIG_OLDOBJ ;
08326 int res4 = SWIG_OLDOBJ ;
08327 int res5 = SWIG_OLDOBJ ;
08328 unsigned int val6 ;
08329 int ecode6 = 0 ;
08330 unsigned int val7 ;
08331 int ecode7 = 0 ;
08332 unsigned int val8 ;
08333 int ecode8 = 0 ;
08334 unsigned int val9 ;
08335 int ecode9 = 0 ;
08336 int res10 = SWIG_OLDOBJ ;
08337 int argvi = 0;
08338 dXSARGS;
08339
08340 if ((items < 10) || (items > 10)) {
08341 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data);");
08342 }
08343 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
08344 if (!SWIG_IsOK(ecode1)) {
08345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'");
08346 }
08347 arg1 = static_cast< int >(val1);
08348 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
08349 if (!SWIG_IsOK(ecode2)) {
08350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'");
08351 }
08352 arg2 = static_cast< int >(val2);
08353 {
08354 std::string *ptr = (std::string *)0;
08355 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr);
08356 if (!SWIG_IsOK(res3)) {
08357 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08358 }
08359 if (!ptr) {
08360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'");
08361 }
08362 arg3 = ptr;
08363 }
08364 {
08365 std::string *ptr = (std::string *)0;
08366 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr);
08367 if (!SWIG_IsOK(res4)) {
08368 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08369 }
08370 if (!ptr) {
08371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'");
08372 }
08373 arg4 = ptr;
08374 }
08375 {
08376 std::string *ptr = (std::string *)0;
08377 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr);
08378 if (!SWIG_IsOK(res5)) {
08379 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08380 }
08381 if (!ptr) {
08382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'");
08383 }
08384 arg5 = ptr;
08385 }
08386 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
08387 if (!SWIG_IsOK(ecode6)) {
08388 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'");
08389 }
08390 arg6 = static_cast< unsigned int >(val6);
08391 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
08392 if (!SWIG_IsOK(ecode7)) {
08393 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'");
08394 }
08395 arg7 = static_cast< unsigned int >(val7);
08396 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
08397 if (!SWIG_IsOK(ecode8)) {
08398 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'");
08399 }
08400 arg8 = static_cast< unsigned int >(val8);
08401 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9);
08402 if (!SWIG_IsOK(ecode9)) {
08403 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'");
08404 }
08405 arg9 = static_cast< unsigned int >(val9);
08406 {
08407 std::string *ptr = (std::string *)0;
08408 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr);
08409 if (!SWIG_IsOK(res10)) {
08410 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08411 }
08412 if (!ptr) {
08413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'");
08414 }
08415 arg10 = ptr;
08416 }
08417 result = (dtn_bundle_id *)dtn_send(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,(std::string const &)*arg10);
08418 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ;
08419
08420
08421 if (SWIG_IsNewObj(res3)) delete arg3;
08422 if (SWIG_IsNewObj(res4)) delete arg4;
08423 if (SWIG_IsNewObj(res5)) delete arg5;
08424
08425
08426
08427
08428 if (SWIG_IsNewObj(res10)) delete arg10;
08429 XSRETURN(argvi);
08430 fail:
08431
08432
08433 if (SWIG_IsNewObj(res3)) delete arg3;
08434 if (SWIG_IsNewObj(res4)) delete arg4;
08435 if (SWIG_IsNewObj(res5)) delete arg5;
08436
08437
08438
08439
08440 if (SWIG_IsNewObj(res10)) delete arg10;
08441 SWIG_croak_null();
08442 }
08443 }
08444
08445
08446 XS(_wrap_dtn_send) {
08447 dXSARGS;
08448
08449 {
08450 unsigned long _index = 0;
08451 SWIG_TypeRank _rank = 0;
08452 if (items == 10) {
08453 SWIG_TypeRank _ranki = 0;
08454 SWIG_TypeRank _rankm = 0;
08455 SWIG_TypeRank _pi = 1;
08456 int _v = 0;
08457 {
08458 {
08459 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
08460 _v = SWIG_CheckState(res);
08461 }
08462 }
08463 if (!_v) goto check_1;
08464 _ranki += _v*_pi;
08465 _rankm += _pi;
08466 _pi *= SWIG_MAXCASTRANK;
08467 {
08468 {
08469 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
08470 _v = SWIG_CheckState(res);
08471 }
08472 }
08473 if (!_v) goto check_1;
08474 _ranki += _v*_pi;
08475 _rankm += _pi;
08476 _pi *= SWIG_MAXCASTRANK;
08477 {
08478 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0));
08479 _v = SWIG_CheckState(res);
08480 }
08481 if (!_v) goto check_1;
08482 _ranki += _v*_pi;
08483 _rankm += _pi;
08484 _pi *= SWIG_MAXCASTRANK;
08485 {
08486 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0));
08487 _v = SWIG_CheckState(res);
08488 }
08489 if (!_v) goto check_1;
08490 _ranki += _v*_pi;
08491 _rankm += _pi;
08492 _pi *= SWIG_MAXCASTRANK;
08493 {
08494 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0));
08495 _v = SWIG_CheckState(res);
08496 }
08497 if (!_v) goto check_1;
08498 _ranki += _v*_pi;
08499 _rankm += _pi;
08500 _pi *= SWIG_MAXCASTRANK;
08501 {
08502 {
08503 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
08504 _v = SWIG_CheckState(res);
08505 }
08506 }
08507 if (!_v) goto check_1;
08508 _ranki += _v*_pi;
08509 _rankm += _pi;
08510 _pi *= SWIG_MAXCASTRANK;
08511 {
08512 {
08513 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
08514 _v = SWIG_CheckState(res);
08515 }
08516 }
08517 if (!_v) goto check_1;
08518 _ranki += _v*_pi;
08519 _rankm += _pi;
08520 _pi *= SWIG_MAXCASTRANK;
08521 {
08522 {
08523 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
08524 _v = SWIG_CheckState(res);
08525 }
08526 }
08527 if (!_v) goto check_1;
08528 _ranki += _v*_pi;
08529 _rankm += _pi;
08530 _pi *= SWIG_MAXCASTRANK;
08531 {
08532 {
08533 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL);
08534 _v = SWIG_CheckState(res);
08535 }
08536 }
08537 if (!_v) goto check_1;
08538 _ranki += _v*_pi;
08539 _rankm += _pi;
08540 _pi *= SWIG_MAXCASTRANK;
08541 {
08542 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0));
08543 _v = SWIG_CheckState(res);
08544 }
08545 if (!_v) goto check_1;
08546 _ranki += _v*_pi;
08547 _rankm += _pi;
08548 _pi *= SWIG_MAXCASTRANK;
08549 if (!_index || (_ranki < _rank)) {
08550 _rank = _ranki; _index = 1;
08551 if (_rank == _rankm) goto dispatch;
08552 }
08553 }
08554 check_1:
08555
08556 if (items == 11) {
08557 SWIG_TypeRank _ranki = 0;
08558 SWIG_TypeRank _rankm = 0;
08559 SWIG_TypeRank _pi = 1;
08560 int _v = 0;
08561 {
08562 {
08563 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
08564 _v = SWIG_CheckState(res);
08565 }
08566 }
08567 if (!_v) goto check_2;
08568 _ranki += _v*_pi;
08569 _rankm += _pi;
08570 _pi *= SWIG_MAXCASTRANK;
08571 {
08572 {
08573 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
08574 _v = SWIG_CheckState(res);
08575 }
08576 }
08577 if (!_v) goto check_2;
08578 _ranki += _v*_pi;
08579 _rankm += _pi;
08580 _pi *= SWIG_MAXCASTRANK;
08581 {
08582 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0));
08583 _v = SWIG_CheckState(res);
08584 }
08585 if (!_v) goto check_2;
08586 _ranki += _v*_pi;
08587 _rankm += _pi;
08588 _pi *= SWIG_MAXCASTRANK;
08589 {
08590 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0));
08591 _v = SWIG_CheckState(res);
08592 }
08593 if (!_v) goto check_2;
08594 _ranki += _v*_pi;
08595 _rankm += _pi;
08596 _pi *= SWIG_MAXCASTRANK;
08597 {
08598 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0));
08599 _v = SWIG_CheckState(res);
08600 }
08601 if (!_v) goto check_2;
08602 _ranki += _v*_pi;
08603 _rankm += _pi;
08604 _pi *= SWIG_MAXCASTRANK;
08605 {
08606 {
08607 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
08608 _v = SWIG_CheckState(res);
08609 }
08610 }
08611 if (!_v) goto check_2;
08612 _ranki += _v*_pi;
08613 _rankm += _pi;
08614 _pi *= SWIG_MAXCASTRANK;
08615 {
08616 {
08617 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
08618 _v = SWIG_CheckState(res);
08619 }
08620 }
08621 if (!_v) goto check_2;
08622 _ranki += _v*_pi;
08623 _rankm += _pi;
08624 _pi *= SWIG_MAXCASTRANK;
08625 {
08626 {
08627 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
08628 _v = SWIG_CheckState(res);
08629 }
08630 }
08631 if (!_v) goto check_2;
08632 _ranki += _v*_pi;
08633 _rankm += _pi;
08634 _pi *= SWIG_MAXCASTRANK;
08635 {
08636 {
08637 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL);
08638 _v = SWIG_CheckState(res);
08639 }
08640 }
08641 if (!_v) goto check_2;
08642 _ranki += _v*_pi;
08643 _rankm += _pi;
08644 _pi *= SWIG_MAXCASTRANK;
08645 {
08646 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0));
08647 _v = SWIG_CheckState(res);
08648 }
08649 if (!_v) goto check_2;
08650 _ranki += _v*_pi;
08651 _rankm += _pi;
08652 _pi *= SWIG_MAXCASTRANK;
08653 {
08654 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), (std::string**)(0));
08655 _v = SWIG_CheckState(res);
08656 }
08657 if (!_v) goto check_2;
08658 _ranki += _v*_pi;
08659 _rankm += _pi;
08660 _pi *= SWIG_MAXCASTRANK;
08661 if (!_index || (_ranki < _rank)) {
08662 _rank = _ranki; _index = 2;
08663 if (_rank == _rankm) goto dispatch;
08664 }
08665 }
08666 check_2:
08667
08668 if (items == 12) {
08669 SWIG_TypeRank _ranki = 0;
08670 SWIG_TypeRank _rankm = 0;
08671 SWIG_TypeRank _pi = 1;
08672 int _v = 0;
08673 {
08674 {
08675 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
08676 _v = SWIG_CheckState(res);
08677 }
08678 }
08679 if (!_v) goto check_3;
08680 _ranki += _v*_pi;
08681 _rankm += _pi;
08682 _pi *= SWIG_MAXCASTRANK;
08683 {
08684 {
08685 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
08686 _v = SWIG_CheckState(res);
08687 }
08688 }
08689 if (!_v) goto check_3;
08690 _ranki += _v*_pi;
08691 _rankm += _pi;
08692 _pi *= SWIG_MAXCASTRANK;
08693 {
08694 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0));
08695 _v = SWIG_CheckState(res);
08696 }
08697 if (!_v) goto check_3;
08698 _ranki += _v*_pi;
08699 _rankm += _pi;
08700 _pi *= SWIG_MAXCASTRANK;
08701 {
08702 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0));
08703 _v = SWIG_CheckState(res);
08704 }
08705 if (!_v) goto check_3;
08706 _ranki += _v*_pi;
08707 _rankm += _pi;
08708 _pi *= SWIG_MAXCASTRANK;
08709 {
08710 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0));
08711 _v = SWIG_CheckState(res);
08712 }
08713 if (!_v) goto check_3;
08714 _ranki += _v*_pi;
08715 _rankm += _pi;
08716 _pi *= SWIG_MAXCASTRANK;
08717 {
08718 {
08719 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
08720 _v = SWIG_CheckState(res);
08721 }
08722 }
08723 if (!_v) goto check_3;
08724 _ranki += _v*_pi;
08725 _rankm += _pi;
08726 _pi *= SWIG_MAXCASTRANK;
08727 {
08728 {
08729 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
08730 _v = SWIG_CheckState(res);
08731 }
08732 }
08733 if (!_v) goto check_3;
08734 _ranki += _v*_pi;
08735 _rankm += _pi;
08736 _pi *= SWIG_MAXCASTRANK;
08737 {
08738 {
08739 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
08740 _v = SWIG_CheckState(res);
08741 }
08742 }
08743 if (!_v) goto check_3;
08744 _ranki += _v*_pi;
08745 _rankm += _pi;
08746 _pi *= SWIG_MAXCASTRANK;
08747 {
08748 {
08749 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL);
08750 _v = SWIG_CheckState(res);
08751 }
08752 }
08753 if (!_v) goto check_3;
08754 _ranki += _v*_pi;
08755 _rankm += _pi;
08756 _pi *= SWIG_MAXCASTRANK;
08757 {
08758 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0));
08759 _v = SWIG_CheckState(res);
08760 }
08761 if (!_v) goto check_3;
08762 _ranki += _v*_pi;
08763 _rankm += _pi;
08764 _pi *= SWIG_MAXCASTRANK;
08765 {
08766 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), (std::string**)(0));
08767 _v = SWIG_CheckState(res);
08768 }
08769 if (!_v) goto check_3;
08770 _ranki += _v*_pi;
08771 _rankm += _pi;
08772 _pi *= SWIG_MAXCASTRANK;
08773 {
08774 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(11), (std::string**)(0));
08775 _v = SWIG_CheckState(res);
08776 }
08777 if (!_v) goto check_3;
08778 _ranki += _v*_pi;
08779 _rankm += _pi;
08780 _pi *= SWIG_MAXCASTRANK;
08781 if (!_index || (_ranki < _rank)) {
08782 _rank = _ranki; _index = 3;
08783 if (_rank == _rankm) goto dispatch;
08784 }
08785 }
08786 check_3:
08787
08788 dispatch:
08789 switch(_index) {
08790 case 1:
08791 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_2); return;
08792 case 2:
08793 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_1); return;
08794 case 3:
08795 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_0); return;
08796 }
08797 }
08798
08799 croak("No matching function for overloaded 'dtn_send'");
08800 XSRETURN(0);
08801 }
08802
08803
08804 XS(_wrap_dtn_cancel) {
08805 {
08806 int arg1 ;
08807 dtn_bundle_id *arg2 = 0 ;
08808 int result;
08809 int val1 ;
08810 int ecode1 = 0 ;
08811 void *argp2 ;
08812 int res2 = 0 ;
08813 int argvi = 0;
08814 dXSARGS;
08815
08816 if ((items < 2) || (items > 2)) {
08817 SWIG_croak("Usage: dtn_cancel(handle,id);");
08818 }
08819 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
08820 if (!SWIG_IsOK(ecode1)) {
08821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_cancel" "', argument " "1"" of type '" "int""'");
08822 }
08823 arg1 = static_cast< int >(val1);
08824 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_dtn_bundle_id, 0 );
08825 if (!SWIG_IsOK(res2)) {
08826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_cancel" "', argument " "2"" of type '" "dtn_bundle_id const &""'");
08827 }
08828 if (!argp2) {
08829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_cancel" "', argument " "2"" of type '" "dtn_bundle_id const &""'");
08830 }
08831 arg2 = reinterpret_cast< dtn_bundle_id * >(argp2);
08832 result = (int)dtn_cancel(arg1,(dtn_bundle_id const &)*arg2);
08833 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
08834
08835
08836 XSRETURN(argvi);
08837 fail:
08838
08839
08840 SWIG_croak_null();
08841 }
08842 }
08843
08844
08845 XS(_wrap_dtn_status_report_bundle_id_set) {
08846 {
08847 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
08848 dtn_bundle_id *arg2 = (dtn_bundle_id *) 0 ;
08849 void *argp1 = 0 ;
08850 int res1 = 0 ;
08851 void *argp2 = 0 ;
08852 int res2 = 0 ;
08853 int argvi = 0;
08854 dXSARGS;
08855
08856 if ((items < 2) || (items > 2)) {
08857 SWIG_croak("Usage: dtn_status_report_bundle_id_set(self,bundle_id);");
08858 }
08859 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
08860 if (!SWIG_IsOK(res1)) {
08861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_bundle_id_set" "', argument " "1"" of type '" "dtn_status_report *""'");
08862 }
08863 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
08864 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id, 0 | 0 );
08865 if (!SWIG_IsOK(res2)) {
08866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_status_report_bundle_id_set" "', argument " "2"" of type '" "dtn_bundle_id *""'");
08867 }
08868 arg2 = reinterpret_cast< dtn_bundle_id * >(argp2);
08869 if (arg1) (arg1)->bundle_id = *arg2;
08870
08871
08872
08873
08874 XSRETURN(argvi);
08875 fail:
08876
08877
08878 SWIG_croak_null();
08879 }
08880 }
08881
08882
08883 XS(_wrap_dtn_status_report_bundle_id_get) {
08884 {
08885 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
08886 dtn_bundle_id *result = 0 ;
08887 void *argp1 = 0 ;
08888 int res1 = 0 ;
08889 int argvi = 0;
08890 dXSARGS;
08891
08892 if ((items < 1) || (items > 1)) {
08893 SWIG_croak("Usage: dtn_status_report_bundle_id_get(self);");
08894 }
08895 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
08896 if (!SWIG_IsOK(res1)) {
08897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_bundle_id_get" "', argument " "1"" of type '" "dtn_status_report *""'");
08898 }
08899 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
08900 result = (dtn_bundle_id *)& ((arg1)->bundle_id);
08901 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ;
08902
08903 XSRETURN(argvi);
08904 fail:
08905
08906 SWIG_croak_null();
08907 }
08908 }
08909
08910
08911 XS(_wrap_dtn_status_report_reason_set) {
08912 {
08913 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
08914 unsigned int arg2 ;
08915 void *argp1 = 0 ;
08916 int res1 = 0 ;
08917 unsigned int val2 ;
08918 int ecode2 = 0 ;
08919 int argvi = 0;
08920 dXSARGS;
08921
08922 if ((items < 2) || (items > 2)) {
08923 SWIG_croak("Usage: dtn_status_report_reason_set(self,reason);");
08924 }
08925 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
08926 if (!SWIG_IsOK(res1)) {
08927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_reason_set" "', argument " "1"" of type '" "dtn_status_report *""'");
08928 }
08929 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
08930 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
08931 if (!SWIG_IsOK(ecode2)) {
08932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_reason_set" "', argument " "2"" of type '" "unsigned int""'");
08933 }
08934 arg2 = static_cast< unsigned int >(val2);
08935 if (arg1) (arg1)->reason = arg2;
08936
08937
08938
08939
08940 XSRETURN(argvi);
08941 fail:
08942
08943
08944 SWIG_croak_null();
08945 }
08946 }
08947
08948
08949 XS(_wrap_dtn_status_report_reason_get) {
08950 {
08951 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
08952 unsigned int result;
08953 void *argp1 = 0 ;
08954 int res1 = 0 ;
08955 int argvi = 0;
08956 dXSARGS;
08957
08958 if ((items < 1) || (items > 1)) {
08959 SWIG_croak("Usage: dtn_status_report_reason_get(self);");
08960 }
08961 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
08962 if (!SWIG_IsOK(res1)) {
08963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_reason_get" "', argument " "1"" of type '" "dtn_status_report *""'");
08964 }
08965 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
08966 result = (unsigned int) ((arg1)->reason);
08967 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
08968
08969 XSRETURN(argvi);
08970 fail:
08971
08972 SWIG_croak_null();
08973 }
08974 }
08975
08976
08977 XS(_wrap_dtn_status_report_flags_set) {
08978 {
08979 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
08980 unsigned int arg2 ;
08981 void *argp1 = 0 ;
08982 int res1 = 0 ;
08983 unsigned int val2 ;
08984 int ecode2 = 0 ;
08985 int argvi = 0;
08986 dXSARGS;
08987
08988 if ((items < 2) || (items > 2)) {
08989 SWIG_croak("Usage: dtn_status_report_flags_set(self,flags);");
08990 }
08991 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
08992 if (!SWIG_IsOK(res1)) {
08993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_flags_set" "', argument " "1"" of type '" "dtn_status_report *""'");
08994 }
08995 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
08996 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
08997 if (!SWIG_IsOK(ecode2)) {
08998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_flags_set" "', argument " "2"" of type '" "unsigned int""'");
08999 }
09000 arg2 = static_cast< unsigned int >(val2);
09001 if (arg1) (arg1)->flags = arg2;
09002
09003
09004
09005
09006 XSRETURN(argvi);
09007 fail:
09008
09009
09010 SWIG_croak_null();
09011 }
09012 }
09013
09014
09015 XS(_wrap_dtn_status_report_flags_get) {
09016 {
09017 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09018 unsigned int result;
09019 void *argp1 = 0 ;
09020 int res1 = 0 ;
09021 int argvi = 0;
09022 dXSARGS;
09023
09024 if ((items < 1) || (items > 1)) {
09025 SWIG_croak("Usage: dtn_status_report_flags_get(self);");
09026 }
09027 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09028 if (!SWIG_IsOK(res1)) {
09029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_flags_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09030 }
09031 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09032 result = (unsigned int) ((arg1)->flags);
09033 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09034
09035 XSRETURN(argvi);
09036 fail:
09037
09038 SWIG_croak_null();
09039 }
09040 }
09041
09042
09043 XS(_wrap_dtn_status_report_receipt_ts_secs_set) {
09044 {
09045 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09046 unsigned int arg2 ;
09047 void *argp1 = 0 ;
09048 int res1 = 0 ;
09049 unsigned int val2 ;
09050 int ecode2 = 0 ;
09051 int argvi = 0;
09052 dXSARGS;
09053
09054 if ((items < 2) || (items > 2)) {
09055 SWIG_croak("Usage: dtn_status_report_receipt_ts_secs_set(self,receipt_ts_secs);");
09056 }
09057 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09058 if (!SWIG_IsOK(res1)) {
09059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09060 }
09061 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09062 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09063 if (!SWIG_IsOK(ecode2)) {
09064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_receipt_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09065 }
09066 arg2 = static_cast< unsigned int >(val2);
09067 if (arg1) (arg1)->receipt_ts_secs = arg2;
09068
09069
09070
09071
09072 XSRETURN(argvi);
09073 fail:
09074
09075
09076 SWIG_croak_null();
09077 }
09078 }
09079
09080
09081 XS(_wrap_dtn_status_report_receipt_ts_secs_get) {
09082 {
09083 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09084 unsigned int result;
09085 void *argp1 = 0 ;
09086 int res1 = 0 ;
09087 int argvi = 0;
09088 dXSARGS;
09089
09090 if ((items < 1) || (items > 1)) {
09091 SWIG_croak("Usage: dtn_status_report_receipt_ts_secs_get(self);");
09092 }
09093 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09094 if (!SWIG_IsOK(res1)) {
09095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09096 }
09097 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09098 result = (unsigned int) ((arg1)->receipt_ts_secs);
09099 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09100
09101 XSRETURN(argvi);
09102 fail:
09103
09104 SWIG_croak_null();
09105 }
09106 }
09107
09108
09109 XS(_wrap_dtn_status_report_receipt_ts_seqno_set) {
09110 {
09111 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09112 unsigned int arg2 ;
09113 void *argp1 = 0 ;
09114 int res1 = 0 ;
09115 unsigned int val2 ;
09116 int ecode2 = 0 ;
09117 int argvi = 0;
09118 dXSARGS;
09119
09120 if ((items < 2) || (items > 2)) {
09121 SWIG_croak("Usage: dtn_status_report_receipt_ts_seqno_set(self,receipt_ts_seqno);");
09122 }
09123 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09124 if (!SWIG_IsOK(res1)) {
09125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09126 }
09127 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09128 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09129 if (!SWIG_IsOK(ecode2)) {
09130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_receipt_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09131 }
09132 arg2 = static_cast< unsigned int >(val2);
09133 if (arg1) (arg1)->receipt_ts_seqno = arg2;
09134
09135
09136
09137
09138 XSRETURN(argvi);
09139 fail:
09140
09141
09142 SWIG_croak_null();
09143 }
09144 }
09145
09146
09147 XS(_wrap_dtn_status_report_receipt_ts_seqno_get) {
09148 {
09149 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09150 unsigned int result;
09151 void *argp1 = 0 ;
09152 int res1 = 0 ;
09153 int argvi = 0;
09154 dXSARGS;
09155
09156 if ((items < 1) || (items > 1)) {
09157 SWIG_croak("Usage: dtn_status_report_receipt_ts_seqno_get(self);");
09158 }
09159 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09160 if (!SWIG_IsOK(res1)) {
09161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09162 }
09163 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09164 result = (unsigned int) ((arg1)->receipt_ts_seqno);
09165 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09166
09167 XSRETURN(argvi);
09168 fail:
09169
09170 SWIG_croak_null();
09171 }
09172 }
09173
09174
09175 XS(_wrap_dtn_status_report_custody_ts_secs_set) {
09176 {
09177 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09178 unsigned int arg2 ;
09179 void *argp1 = 0 ;
09180 int res1 = 0 ;
09181 unsigned int val2 ;
09182 int ecode2 = 0 ;
09183 int argvi = 0;
09184 dXSARGS;
09185
09186 if ((items < 2) || (items > 2)) {
09187 SWIG_croak("Usage: dtn_status_report_custody_ts_secs_set(self,custody_ts_secs);");
09188 }
09189 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09190 if (!SWIG_IsOK(res1)) {
09191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09192 }
09193 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09194 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09195 if (!SWIG_IsOK(ecode2)) {
09196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_custody_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09197 }
09198 arg2 = static_cast< unsigned int >(val2);
09199 if (arg1) (arg1)->custody_ts_secs = arg2;
09200
09201
09202
09203
09204 XSRETURN(argvi);
09205 fail:
09206
09207
09208 SWIG_croak_null();
09209 }
09210 }
09211
09212
09213 XS(_wrap_dtn_status_report_custody_ts_secs_get) {
09214 {
09215 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09216 unsigned int result;
09217 void *argp1 = 0 ;
09218 int res1 = 0 ;
09219 int argvi = 0;
09220 dXSARGS;
09221
09222 if ((items < 1) || (items > 1)) {
09223 SWIG_croak("Usage: dtn_status_report_custody_ts_secs_get(self);");
09224 }
09225 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09226 if (!SWIG_IsOK(res1)) {
09227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09228 }
09229 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09230 result = (unsigned int) ((arg1)->custody_ts_secs);
09231 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09232
09233 XSRETURN(argvi);
09234 fail:
09235
09236 SWIG_croak_null();
09237 }
09238 }
09239
09240
09241 XS(_wrap_dtn_status_report_custody_ts_seqno_set) {
09242 {
09243 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09244 unsigned int arg2 ;
09245 void *argp1 = 0 ;
09246 int res1 = 0 ;
09247 unsigned int val2 ;
09248 int ecode2 = 0 ;
09249 int argvi = 0;
09250 dXSARGS;
09251
09252 if ((items < 2) || (items > 2)) {
09253 SWIG_croak("Usage: dtn_status_report_custody_ts_seqno_set(self,custody_ts_seqno);");
09254 }
09255 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09256 if (!SWIG_IsOK(res1)) {
09257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09258 }
09259 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09260 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09261 if (!SWIG_IsOK(ecode2)) {
09262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_custody_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09263 }
09264 arg2 = static_cast< unsigned int >(val2);
09265 if (arg1) (arg1)->custody_ts_seqno = arg2;
09266
09267
09268
09269
09270 XSRETURN(argvi);
09271 fail:
09272
09273
09274 SWIG_croak_null();
09275 }
09276 }
09277
09278
09279 XS(_wrap_dtn_status_report_custody_ts_seqno_get) {
09280 {
09281 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09282 unsigned int result;
09283 void *argp1 = 0 ;
09284 int res1 = 0 ;
09285 int argvi = 0;
09286 dXSARGS;
09287
09288 if ((items < 1) || (items > 1)) {
09289 SWIG_croak("Usage: dtn_status_report_custody_ts_seqno_get(self);");
09290 }
09291 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09292 if (!SWIG_IsOK(res1)) {
09293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09294 }
09295 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09296 result = (unsigned int) ((arg1)->custody_ts_seqno);
09297 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09298
09299 XSRETURN(argvi);
09300 fail:
09301
09302 SWIG_croak_null();
09303 }
09304 }
09305
09306
09307 XS(_wrap_dtn_status_report_forwarding_ts_secs_set) {
09308 {
09309 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09310 unsigned int arg2 ;
09311 void *argp1 = 0 ;
09312 int res1 = 0 ;
09313 unsigned int val2 ;
09314 int ecode2 = 0 ;
09315 int argvi = 0;
09316 dXSARGS;
09317
09318 if ((items < 2) || (items > 2)) {
09319 SWIG_croak("Usage: dtn_status_report_forwarding_ts_secs_set(self,forwarding_ts_secs);");
09320 }
09321 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09322 if (!SWIG_IsOK(res1)) {
09323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09324 }
09325 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09326 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09327 if (!SWIG_IsOK(ecode2)) {
09328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_forwarding_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09329 }
09330 arg2 = static_cast< unsigned int >(val2);
09331 if (arg1) (arg1)->forwarding_ts_secs = arg2;
09332
09333
09334
09335
09336 XSRETURN(argvi);
09337 fail:
09338
09339
09340 SWIG_croak_null();
09341 }
09342 }
09343
09344
09345 XS(_wrap_dtn_status_report_forwarding_ts_secs_get) {
09346 {
09347 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09348 unsigned int result;
09349 void *argp1 = 0 ;
09350 int res1 = 0 ;
09351 int argvi = 0;
09352 dXSARGS;
09353
09354 if ((items < 1) || (items > 1)) {
09355 SWIG_croak("Usage: dtn_status_report_forwarding_ts_secs_get(self);");
09356 }
09357 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09358 if (!SWIG_IsOK(res1)) {
09359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09360 }
09361 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09362 result = (unsigned int) ((arg1)->forwarding_ts_secs);
09363 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09364
09365 XSRETURN(argvi);
09366 fail:
09367
09368 SWIG_croak_null();
09369 }
09370 }
09371
09372
09373 XS(_wrap_dtn_status_report_forwarding_ts_seqno_set) {
09374 {
09375 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09376 unsigned int arg2 ;
09377 void *argp1 = 0 ;
09378 int res1 = 0 ;
09379 unsigned int val2 ;
09380 int ecode2 = 0 ;
09381 int argvi = 0;
09382 dXSARGS;
09383
09384 if ((items < 2) || (items > 2)) {
09385 SWIG_croak("Usage: dtn_status_report_forwarding_ts_seqno_set(self,forwarding_ts_seqno);");
09386 }
09387 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09388 if (!SWIG_IsOK(res1)) {
09389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09390 }
09391 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09392 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09393 if (!SWIG_IsOK(ecode2)) {
09394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_forwarding_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09395 }
09396 arg2 = static_cast< unsigned int >(val2);
09397 if (arg1) (arg1)->forwarding_ts_seqno = arg2;
09398
09399
09400
09401
09402 XSRETURN(argvi);
09403 fail:
09404
09405
09406 SWIG_croak_null();
09407 }
09408 }
09409
09410
09411 XS(_wrap_dtn_status_report_forwarding_ts_seqno_get) {
09412 {
09413 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09414 unsigned int result;
09415 void *argp1 = 0 ;
09416 int res1 = 0 ;
09417 int argvi = 0;
09418 dXSARGS;
09419
09420 if ((items < 1) || (items > 1)) {
09421 SWIG_croak("Usage: dtn_status_report_forwarding_ts_seqno_get(self);");
09422 }
09423 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09424 if (!SWIG_IsOK(res1)) {
09425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09426 }
09427 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09428 result = (unsigned int) ((arg1)->forwarding_ts_seqno);
09429 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09430
09431 XSRETURN(argvi);
09432 fail:
09433
09434 SWIG_croak_null();
09435 }
09436 }
09437
09438
09439 XS(_wrap_dtn_status_report_delivery_ts_secs_set) {
09440 {
09441 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09442 unsigned int arg2 ;
09443 void *argp1 = 0 ;
09444 int res1 = 0 ;
09445 unsigned int val2 ;
09446 int ecode2 = 0 ;
09447 int argvi = 0;
09448 dXSARGS;
09449
09450 if ((items < 2) || (items > 2)) {
09451 SWIG_croak("Usage: dtn_status_report_delivery_ts_secs_set(self,delivery_ts_secs);");
09452 }
09453 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09454 if (!SWIG_IsOK(res1)) {
09455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09456 }
09457 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09458 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09459 if (!SWIG_IsOK(ecode2)) {
09460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_delivery_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09461 }
09462 arg2 = static_cast< unsigned int >(val2);
09463 if (arg1) (arg1)->delivery_ts_secs = arg2;
09464
09465
09466
09467
09468 XSRETURN(argvi);
09469 fail:
09470
09471
09472 SWIG_croak_null();
09473 }
09474 }
09475
09476
09477 XS(_wrap_dtn_status_report_delivery_ts_secs_get) {
09478 {
09479 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09480 unsigned int result;
09481 void *argp1 = 0 ;
09482 int res1 = 0 ;
09483 int argvi = 0;
09484 dXSARGS;
09485
09486 if ((items < 1) || (items > 1)) {
09487 SWIG_croak("Usage: dtn_status_report_delivery_ts_secs_get(self);");
09488 }
09489 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09490 if (!SWIG_IsOK(res1)) {
09491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09492 }
09493 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09494 result = (unsigned int) ((arg1)->delivery_ts_secs);
09495 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09496
09497 XSRETURN(argvi);
09498 fail:
09499
09500 SWIG_croak_null();
09501 }
09502 }
09503
09504
09505 XS(_wrap_dtn_status_report_delivery_ts_seqno_set) {
09506 {
09507 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09508 unsigned int arg2 ;
09509 void *argp1 = 0 ;
09510 int res1 = 0 ;
09511 unsigned int val2 ;
09512 int ecode2 = 0 ;
09513 int argvi = 0;
09514 dXSARGS;
09515
09516 if ((items < 2) || (items > 2)) {
09517 SWIG_croak("Usage: dtn_status_report_delivery_ts_seqno_set(self,delivery_ts_seqno);");
09518 }
09519 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09520 if (!SWIG_IsOK(res1)) {
09521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09522 }
09523 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09524 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09525 if (!SWIG_IsOK(ecode2)) {
09526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_delivery_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09527 }
09528 arg2 = static_cast< unsigned int >(val2);
09529 if (arg1) (arg1)->delivery_ts_seqno = arg2;
09530
09531
09532
09533
09534 XSRETURN(argvi);
09535 fail:
09536
09537
09538 SWIG_croak_null();
09539 }
09540 }
09541
09542
09543 XS(_wrap_dtn_status_report_delivery_ts_seqno_get) {
09544 {
09545 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09546 unsigned int result;
09547 void *argp1 = 0 ;
09548 int res1 = 0 ;
09549 int argvi = 0;
09550 dXSARGS;
09551
09552 if ((items < 1) || (items > 1)) {
09553 SWIG_croak("Usage: dtn_status_report_delivery_ts_seqno_get(self);");
09554 }
09555 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09556 if (!SWIG_IsOK(res1)) {
09557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09558 }
09559 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09560 result = (unsigned int) ((arg1)->delivery_ts_seqno);
09561 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09562
09563 XSRETURN(argvi);
09564 fail:
09565
09566 SWIG_croak_null();
09567 }
09568 }
09569
09570
09571 XS(_wrap_dtn_status_report_deletion_ts_secs_set) {
09572 {
09573 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09574 unsigned int arg2 ;
09575 void *argp1 = 0 ;
09576 int res1 = 0 ;
09577 unsigned int val2 ;
09578 int ecode2 = 0 ;
09579 int argvi = 0;
09580 dXSARGS;
09581
09582 if ((items < 2) || (items > 2)) {
09583 SWIG_croak("Usage: dtn_status_report_deletion_ts_secs_set(self,deletion_ts_secs);");
09584 }
09585 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09586 if (!SWIG_IsOK(res1)) {
09587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09588 }
09589 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09590 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09591 if (!SWIG_IsOK(ecode2)) {
09592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_deletion_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09593 }
09594 arg2 = static_cast< unsigned int >(val2);
09595 if (arg1) (arg1)->deletion_ts_secs = arg2;
09596
09597
09598
09599
09600 XSRETURN(argvi);
09601 fail:
09602
09603
09604 SWIG_croak_null();
09605 }
09606 }
09607
09608
09609 XS(_wrap_dtn_status_report_deletion_ts_secs_get) {
09610 {
09611 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09612 unsigned int result;
09613 void *argp1 = 0 ;
09614 int res1 = 0 ;
09615 int argvi = 0;
09616 dXSARGS;
09617
09618 if ((items < 1) || (items > 1)) {
09619 SWIG_croak("Usage: dtn_status_report_deletion_ts_secs_get(self);");
09620 }
09621 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09622 if (!SWIG_IsOK(res1)) {
09623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09624 }
09625 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09626 result = (unsigned int) ((arg1)->deletion_ts_secs);
09627 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09628
09629 XSRETURN(argvi);
09630 fail:
09631
09632 SWIG_croak_null();
09633 }
09634 }
09635
09636
09637 XS(_wrap_dtn_status_report_deletion_ts_seqno_set) {
09638 {
09639 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09640 unsigned int arg2 ;
09641 void *argp1 = 0 ;
09642 int res1 = 0 ;
09643 unsigned int val2 ;
09644 int ecode2 = 0 ;
09645 int argvi = 0;
09646 dXSARGS;
09647
09648 if ((items < 2) || (items > 2)) {
09649 SWIG_croak("Usage: dtn_status_report_deletion_ts_seqno_set(self,deletion_ts_seqno);");
09650 }
09651 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09652 if (!SWIG_IsOK(res1)) {
09653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09654 }
09655 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09656 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09657 if (!SWIG_IsOK(ecode2)) {
09658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_deletion_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09659 }
09660 arg2 = static_cast< unsigned int >(val2);
09661 if (arg1) (arg1)->deletion_ts_seqno = arg2;
09662
09663
09664
09665
09666 XSRETURN(argvi);
09667 fail:
09668
09669
09670 SWIG_croak_null();
09671 }
09672 }
09673
09674
09675 XS(_wrap_dtn_status_report_deletion_ts_seqno_get) {
09676 {
09677 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09678 unsigned int result;
09679 void *argp1 = 0 ;
09680 int res1 = 0 ;
09681 int argvi = 0;
09682 dXSARGS;
09683
09684 if ((items < 1) || (items > 1)) {
09685 SWIG_croak("Usage: dtn_status_report_deletion_ts_seqno_get(self);");
09686 }
09687 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09688 if (!SWIG_IsOK(res1)) {
09689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09690 }
09691 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09692 result = (unsigned int) ((arg1)->deletion_ts_seqno);
09693 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09694
09695 XSRETURN(argvi);
09696 fail:
09697
09698 SWIG_croak_null();
09699 }
09700 }
09701
09702
09703 XS(_wrap_dtn_status_report_ack_by_app_ts_secs_set) {
09704 {
09705 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09706 unsigned int arg2 ;
09707 void *argp1 = 0 ;
09708 int res1 = 0 ;
09709 unsigned int val2 ;
09710 int ecode2 = 0 ;
09711 int argvi = 0;
09712 dXSARGS;
09713
09714 if ((items < 2) || (items > 2)) {
09715 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_secs_set(self,ack_by_app_ts_secs);");
09716 }
09717 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09718 if (!SWIG_IsOK(res1)) {
09719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09720 }
09721 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09722 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09723 if (!SWIG_IsOK(ecode2)) {
09724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_ack_by_app_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'");
09725 }
09726 arg2 = static_cast< unsigned int >(val2);
09727 if (arg1) (arg1)->ack_by_app_ts_secs = arg2;
09728
09729
09730
09731
09732 XSRETURN(argvi);
09733 fail:
09734
09735
09736 SWIG_croak_null();
09737 }
09738 }
09739
09740
09741 XS(_wrap_dtn_status_report_ack_by_app_ts_secs_get) {
09742 {
09743 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09744 unsigned int result;
09745 void *argp1 = 0 ;
09746 int res1 = 0 ;
09747 int argvi = 0;
09748 dXSARGS;
09749
09750 if ((items < 1) || (items > 1)) {
09751 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_secs_get(self);");
09752 }
09753 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09754 if (!SWIG_IsOK(res1)) {
09755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09756 }
09757 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09758 result = (unsigned int) ((arg1)->ack_by_app_ts_secs);
09759 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09760
09761 XSRETURN(argvi);
09762 fail:
09763
09764 SWIG_croak_null();
09765 }
09766 }
09767
09768
09769 XS(_wrap_dtn_status_report_ack_by_app_ts_seqno_set) {
09770 {
09771 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09772 unsigned int arg2 ;
09773 void *argp1 = 0 ;
09774 int res1 = 0 ;
09775 unsigned int val2 ;
09776 int ecode2 = 0 ;
09777 int argvi = 0;
09778 dXSARGS;
09779
09780 if ((items < 2) || (items > 2)) {
09781 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_seqno_set(self,ack_by_app_ts_seqno);");
09782 }
09783 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09784 if (!SWIG_IsOK(res1)) {
09785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'");
09786 }
09787 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09788 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
09789 if (!SWIG_IsOK(ecode2)) {
09790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_ack_by_app_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
09791 }
09792 arg2 = static_cast< unsigned int >(val2);
09793 if (arg1) (arg1)->ack_by_app_ts_seqno = arg2;
09794
09795
09796
09797
09798 XSRETURN(argvi);
09799 fail:
09800
09801
09802 SWIG_croak_null();
09803 }
09804 }
09805
09806
09807 XS(_wrap_dtn_status_report_ack_by_app_ts_seqno_get) {
09808 {
09809 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09810 unsigned int result;
09811 void *argp1 = 0 ;
09812 int res1 = 0 ;
09813 int argvi = 0;
09814 dXSARGS;
09815
09816 if ((items < 1) || (items > 1)) {
09817 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_seqno_get(self);");
09818 }
09819 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 );
09820 if (!SWIG_IsOK(res1)) {
09821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'");
09822 }
09823 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09824 result = (unsigned int) ((arg1)->ack_by_app_ts_seqno);
09825 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
09826
09827 XSRETURN(argvi);
09828 fail:
09829
09830 SWIG_croak_null();
09831 }
09832 }
09833
09834
09835 XS(_wrap_new_dtn_status_report) {
09836 {
09837 dtn_status_report *result = 0 ;
09838 int argvi = 0;
09839 dXSARGS;
09840
09841 if ((items < 0) || (items > 0)) {
09842 SWIG_croak("Usage: new_dtn_status_report();");
09843 }
09844 result = (dtn_status_report *)new dtn_status_report();
09845 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_status_report, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
09846 XSRETURN(argvi);
09847 fail:
09848 SWIG_croak_null();
09849 }
09850 }
09851
09852
09853 XS(_wrap_delete_dtn_status_report) {
09854 {
09855 dtn_status_report *arg1 = (dtn_status_report *) 0 ;
09856 void *argp1 = 0 ;
09857 int res1 = 0 ;
09858 int argvi = 0;
09859 dXSARGS;
09860
09861 if ((items < 1) || (items > 1)) {
09862 SWIG_croak("Usage: delete_dtn_status_report(self);");
09863 }
09864 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, SWIG_POINTER_DISOWN | 0 );
09865 if (!SWIG_IsOK(res1)) {
09866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_status_report" "', argument " "1"" of type '" "dtn_status_report *""'");
09867 }
09868 arg1 = reinterpret_cast< dtn_status_report * >(argp1);
09869 delete arg1;
09870
09871
09872
09873 XSRETURN(argvi);
09874 fail:
09875
09876 SWIG_croak_null();
09877 }
09878 }
09879
09880
09881 XS(_wrap_dtn_status_report_reason_to_str) {
09882 {
09883 unsigned int arg1 ;
09884 std::string result;
09885 unsigned int val1 ;
09886 int ecode1 = 0 ;
09887 int argvi = 0;
09888 dXSARGS;
09889
09890 if ((items < 1) || (items > 1)) {
09891 SWIG_croak("Usage: dtn_status_report_reason_to_str(reason);");
09892 }
09893 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
09894 if (!SWIG_IsOK(ecode1)) {
09895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_status_report_reason_to_str" "', argument " "1"" of type '" "unsigned int""'");
09896 }
09897 arg1 = static_cast< unsigned int >(val1);
09898 result = dtn_status_report_reason_to_str(arg1);
09899 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(result)); argvi++ ;
09900
09901 XSRETURN(argvi);
09902 fail:
09903
09904 SWIG_croak_null();
09905 }
09906 }
09907
09908
09909 XS(_wrap_dtn_bundle_source_set) {
09910 {
09911 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
09912 std::string *arg2 = 0 ;
09913 void *argp1 = 0 ;
09914 int res1 = 0 ;
09915 int res2 = SWIG_OLDOBJ ;
09916 int argvi = 0;
09917 dXSARGS;
09918
09919 if ((items < 2) || (items > 2)) {
09920 SWIG_croak("Usage: dtn_bundle_source_set(self,source);");
09921 }
09922 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
09923 if (!SWIG_IsOK(res1)) {
09924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_source_set" "', argument " "1"" of type '" "dtn_bundle *""'");
09925 }
09926 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
09927 {
09928 std::string *ptr = (std::string *)0;
09929 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
09930 if (!SWIG_IsOK(res2)) {
09931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_source_set" "', argument " "2"" of type '" "std::string const &""'");
09932 }
09933 if (!ptr) {
09934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_source_set" "', argument " "2"" of type '" "std::string const &""'");
09935 }
09936 arg2 = ptr;
09937 }
09938 if (arg1) (arg1)->source = *arg2;
09939
09940
09941
09942 if (SWIG_IsNewObj(res2)) delete arg2;
09943 XSRETURN(argvi);
09944 fail:
09945
09946 if (SWIG_IsNewObj(res2)) delete arg2;
09947 SWIG_croak_null();
09948 }
09949 }
09950
09951
09952 XS(_wrap_dtn_bundle_source_get) {
09953 {
09954 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
09955 std::string *result = 0 ;
09956 void *argp1 = 0 ;
09957 int res1 = 0 ;
09958 int argvi = 0;
09959 dXSARGS;
09960
09961 if ((items < 1) || (items > 1)) {
09962 SWIG_croak("Usage: dtn_bundle_source_get(self);");
09963 }
09964 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
09965 if (!SWIG_IsOK(res1)) {
09966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_source_get" "', argument " "1"" of type '" "dtn_bundle *""'");
09967 }
09968 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
09969 {
09970 std::string const &_result_ref = ((arg1)->source);
09971 result = (std::string *) &_result_ref;
09972 }
09973 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
09974
09975 XSRETURN(argvi);
09976 fail:
09977
09978 SWIG_croak_null();
09979 }
09980 }
09981
09982
09983 XS(_wrap_dtn_bundle_dest_set) {
09984 {
09985 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
09986 std::string *arg2 = 0 ;
09987 void *argp1 = 0 ;
09988 int res1 = 0 ;
09989 int res2 = SWIG_OLDOBJ ;
09990 int argvi = 0;
09991 dXSARGS;
09992
09993 if ((items < 2) || (items > 2)) {
09994 SWIG_croak("Usage: dtn_bundle_dest_set(self,dest);");
09995 }
09996 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
09997 if (!SWIG_IsOK(res1)) {
09998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dest_set" "', argument " "1"" of type '" "dtn_bundle *""'");
09999 }
10000 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10001 {
10002 std::string *ptr = (std::string *)0;
10003 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10004 if (!SWIG_IsOK(res2)) {
10005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_dest_set" "', argument " "2"" of type '" "std::string const &""'");
10006 }
10007 if (!ptr) {
10008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_dest_set" "', argument " "2"" of type '" "std::string const &""'");
10009 }
10010 arg2 = ptr;
10011 }
10012 if (arg1) (arg1)->dest = *arg2;
10013
10014
10015
10016 if (SWIG_IsNewObj(res2)) delete arg2;
10017 XSRETURN(argvi);
10018 fail:
10019
10020 if (SWIG_IsNewObj(res2)) delete arg2;
10021 SWIG_croak_null();
10022 }
10023 }
10024
10025
10026 XS(_wrap_dtn_bundle_dest_get) {
10027 {
10028 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10029 std::string *result = 0 ;
10030 void *argp1 = 0 ;
10031 int res1 = 0 ;
10032 int argvi = 0;
10033 dXSARGS;
10034
10035 if ((items < 1) || (items > 1)) {
10036 SWIG_croak("Usage: dtn_bundle_dest_get(self);");
10037 }
10038 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dest_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10041 }
10042 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10043 {
10044 std::string const &_result_ref = ((arg1)->dest);
10045 result = (std::string *) &_result_ref;
10046 }
10047 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
10048
10049 XSRETURN(argvi);
10050 fail:
10051
10052 SWIG_croak_null();
10053 }
10054 }
10055
10056
10057 XS(_wrap_dtn_bundle_replyto_set) {
10058 {
10059 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10060 std::string *arg2 = 0 ;
10061 void *argp1 = 0 ;
10062 int res1 = 0 ;
10063 int res2 = SWIG_OLDOBJ ;
10064 int argvi = 0;
10065 dXSARGS;
10066
10067 if ((items < 2) || (items > 2)) {
10068 SWIG_croak("Usage: dtn_bundle_replyto_set(self,replyto);");
10069 }
10070 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10071 if (!SWIG_IsOK(res1)) {
10072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_replyto_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10073 }
10074 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10075 {
10076 std::string *ptr = (std::string *)0;
10077 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10078 if (!SWIG_IsOK(res2)) {
10079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_replyto_set" "', argument " "2"" of type '" "std::string const &""'");
10080 }
10081 if (!ptr) {
10082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_replyto_set" "', argument " "2"" of type '" "std::string const &""'");
10083 }
10084 arg2 = ptr;
10085 }
10086 if (arg1) (arg1)->replyto = *arg2;
10087
10088
10089
10090 if (SWIG_IsNewObj(res2)) delete arg2;
10091 XSRETURN(argvi);
10092 fail:
10093
10094 if (SWIG_IsNewObj(res2)) delete arg2;
10095 SWIG_croak_null();
10096 }
10097 }
10098
10099
10100 XS(_wrap_dtn_bundle_replyto_get) {
10101 {
10102 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10103 std::string *result = 0 ;
10104 void *argp1 = 0 ;
10105 int res1 = 0 ;
10106 int argvi = 0;
10107 dXSARGS;
10108
10109 if ((items < 1) || (items > 1)) {
10110 SWIG_croak("Usage: dtn_bundle_replyto_get(self);");
10111 }
10112 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10113 if (!SWIG_IsOK(res1)) {
10114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_replyto_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10115 }
10116 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10117 {
10118 std::string const &_result_ref = ((arg1)->replyto);
10119 result = (std::string *) &_result_ref;
10120 }
10121 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
10122
10123 XSRETURN(argvi);
10124 fail:
10125
10126 SWIG_croak_null();
10127 }
10128 }
10129
10130
10131 XS(_wrap_dtn_bundle_priority_set) {
10132 {
10133 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10134 unsigned int arg2 ;
10135 void *argp1 = 0 ;
10136 int res1 = 0 ;
10137 unsigned int val2 ;
10138 int ecode2 = 0 ;
10139 int argvi = 0;
10140 dXSARGS;
10141
10142 if ((items < 2) || (items > 2)) {
10143 SWIG_croak("Usage: dtn_bundle_priority_set(self,priority);");
10144 }
10145 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10146 if (!SWIG_IsOK(res1)) {
10147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_priority_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10148 }
10149 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10150 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10151 if (!SWIG_IsOK(ecode2)) {
10152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_priority_set" "', argument " "2"" of type '" "unsigned int""'");
10153 }
10154 arg2 = static_cast< unsigned int >(val2);
10155 if (arg1) (arg1)->priority = arg2;
10156
10157
10158
10159
10160 XSRETURN(argvi);
10161 fail:
10162
10163
10164 SWIG_croak_null();
10165 }
10166 }
10167
10168
10169 XS(_wrap_dtn_bundle_priority_get) {
10170 {
10171 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10172 unsigned int result;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 int argvi = 0;
10176 dXSARGS;
10177
10178 if ((items < 1) || (items > 1)) {
10179 SWIG_croak("Usage: dtn_bundle_priority_get(self);");
10180 }
10181 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_priority_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10184 }
10185 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10186 result = (unsigned int) ((arg1)->priority);
10187 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10188
10189 XSRETURN(argvi);
10190 fail:
10191
10192 SWIG_croak_null();
10193 }
10194 }
10195
10196
10197 XS(_wrap_dtn_bundle_dopts_set) {
10198 {
10199 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10200 unsigned int arg2 ;
10201 void *argp1 = 0 ;
10202 int res1 = 0 ;
10203 unsigned int val2 ;
10204 int ecode2 = 0 ;
10205 int argvi = 0;
10206 dXSARGS;
10207
10208 if ((items < 2) || (items > 2)) {
10209 SWIG_croak("Usage: dtn_bundle_dopts_set(self,dopts);");
10210 }
10211 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10212 if (!SWIG_IsOK(res1)) {
10213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dopts_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10214 }
10215 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10216 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10217 if (!SWIG_IsOK(ecode2)) {
10218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_dopts_set" "', argument " "2"" of type '" "unsigned int""'");
10219 }
10220 arg2 = static_cast< unsigned int >(val2);
10221 if (arg1) (arg1)->dopts = arg2;
10222
10223
10224
10225
10226 XSRETURN(argvi);
10227 fail:
10228
10229
10230 SWIG_croak_null();
10231 }
10232 }
10233
10234
10235 XS(_wrap_dtn_bundle_dopts_get) {
10236 {
10237 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10238 unsigned int result;
10239 void *argp1 = 0 ;
10240 int res1 = 0 ;
10241 int argvi = 0;
10242 dXSARGS;
10243
10244 if ((items < 1) || (items > 1)) {
10245 SWIG_croak("Usage: dtn_bundle_dopts_get(self);");
10246 }
10247 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dopts_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10250 }
10251 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10252 result = (unsigned int) ((arg1)->dopts);
10253 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10254
10255 XSRETURN(argvi);
10256 fail:
10257
10258 SWIG_croak_null();
10259 }
10260 }
10261
10262
10263 XS(_wrap_dtn_bundle_expiration_set) {
10264 {
10265 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10266 unsigned int arg2 ;
10267 void *argp1 = 0 ;
10268 int res1 = 0 ;
10269 unsigned int val2 ;
10270 int ecode2 = 0 ;
10271 int argvi = 0;
10272 dXSARGS;
10273
10274 if ((items < 2) || (items > 2)) {
10275 SWIG_croak("Usage: dtn_bundle_expiration_set(self,expiration);");
10276 }
10277 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10278 if (!SWIG_IsOK(res1)) {
10279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_expiration_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10280 }
10281 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10282 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10283 if (!SWIG_IsOK(ecode2)) {
10284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_expiration_set" "', argument " "2"" of type '" "unsigned int""'");
10285 }
10286 arg2 = static_cast< unsigned int >(val2);
10287 if (arg1) (arg1)->expiration = arg2;
10288
10289
10290
10291
10292 XSRETURN(argvi);
10293 fail:
10294
10295
10296 SWIG_croak_null();
10297 }
10298 }
10299
10300
10301 XS(_wrap_dtn_bundle_expiration_get) {
10302 {
10303 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10304 unsigned int result;
10305 void *argp1 = 0 ;
10306 int res1 = 0 ;
10307 int argvi = 0;
10308 dXSARGS;
10309
10310 if ((items < 1) || (items > 1)) {
10311 SWIG_croak("Usage: dtn_bundle_expiration_get(self);");
10312 }
10313 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10314 if (!SWIG_IsOK(res1)) {
10315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_expiration_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10316 }
10317 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10318 result = (unsigned int) ((arg1)->expiration);
10319 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10320
10321 XSRETURN(argvi);
10322 fail:
10323
10324 SWIG_croak_null();
10325 }
10326 }
10327
10328
10329 XS(_wrap_dtn_bundle_creation_secs_set) {
10330 {
10331 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10332 unsigned int arg2 ;
10333 void *argp1 = 0 ;
10334 int res1 = 0 ;
10335 unsigned int val2 ;
10336 int ecode2 = 0 ;
10337 int argvi = 0;
10338 dXSARGS;
10339
10340 if ((items < 2) || (items > 2)) {
10341 SWIG_croak("Usage: dtn_bundle_creation_secs_set(self,creation_secs);");
10342 }
10343 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10344 if (!SWIG_IsOK(res1)) {
10345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_secs_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10346 }
10347 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10348 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10349 if (!SWIG_IsOK(ecode2)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_creation_secs_set" "', argument " "2"" of type '" "unsigned int""'");
10351 }
10352 arg2 = static_cast< unsigned int >(val2);
10353 if (arg1) (arg1)->creation_secs = arg2;
10354
10355
10356
10357
10358 XSRETURN(argvi);
10359 fail:
10360
10361
10362 SWIG_croak_null();
10363 }
10364 }
10365
10366
10367 XS(_wrap_dtn_bundle_creation_secs_get) {
10368 {
10369 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10370 unsigned int result;
10371 void *argp1 = 0 ;
10372 int res1 = 0 ;
10373 int argvi = 0;
10374 dXSARGS;
10375
10376 if ((items < 1) || (items > 1)) {
10377 SWIG_croak("Usage: dtn_bundle_creation_secs_get(self);");
10378 }
10379 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10380 if (!SWIG_IsOK(res1)) {
10381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_secs_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10382 }
10383 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10384 result = (unsigned int) ((arg1)->creation_secs);
10385 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10386
10387 XSRETURN(argvi);
10388 fail:
10389
10390 SWIG_croak_null();
10391 }
10392 }
10393
10394
10395 XS(_wrap_dtn_bundle_creation_seqno_set) {
10396 {
10397 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10398 unsigned int arg2 ;
10399 void *argp1 = 0 ;
10400 int res1 = 0 ;
10401 unsigned int val2 ;
10402 int ecode2 = 0 ;
10403 int argvi = 0;
10404 dXSARGS;
10405
10406 if ((items < 2) || (items > 2)) {
10407 SWIG_croak("Usage: dtn_bundle_creation_seqno_set(self,creation_seqno);");
10408 }
10409 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_seqno_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10412 }
10413 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10414 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10415 if (!SWIG_IsOK(ecode2)) {
10416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_creation_seqno_set" "', argument " "2"" of type '" "unsigned int""'");
10417 }
10418 arg2 = static_cast< unsigned int >(val2);
10419 if (arg1) (arg1)->creation_seqno = arg2;
10420
10421
10422
10423
10424 XSRETURN(argvi);
10425 fail:
10426
10427
10428 SWIG_croak_null();
10429 }
10430 }
10431
10432
10433 XS(_wrap_dtn_bundle_creation_seqno_get) {
10434 {
10435 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10436 unsigned int result;
10437 void *argp1 = 0 ;
10438 int res1 = 0 ;
10439 int argvi = 0;
10440 dXSARGS;
10441
10442 if ((items < 1) || (items > 1)) {
10443 SWIG_croak("Usage: dtn_bundle_creation_seqno_get(self);");
10444 }
10445 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10446 if (!SWIG_IsOK(res1)) {
10447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_seqno_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10448 }
10449 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10450 result = (unsigned int) ((arg1)->creation_seqno);
10451 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10452
10453 XSRETURN(argvi);
10454 fail:
10455
10456 SWIG_croak_null();
10457 }
10458 }
10459
10460
10461 XS(_wrap_dtn_bundle_delivery_regid_set) {
10462 {
10463 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10464 unsigned int arg2 ;
10465 void *argp1 = 0 ;
10466 int res1 = 0 ;
10467 unsigned int val2 ;
10468 int ecode2 = 0 ;
10469 int argvi = 0;
10470 dXSARGS;
10471
10472 if ((items < 2) || (items > 2)) {
10473 SWIG_croak("Usage: dtn_bundle_delivery_regid_set(self,delivery_regid);");
10474 }
10475 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10476 if (!SWIG_IsOK(res1)) {
10477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_delivery_regid_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10478 }
10479 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10480 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10481 if (!SWIG_IsOK(ecode2)) {
10482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_delivery_regid_set" "', argument " "2"" of type '" "unsigned int""'");
10483 }
10484 arg2 = static_cast< unsigned int >(val2);
10485 if (arg1) (arg1)->delivery_regid = arg2;
10486
10487
10488
10489
10490 XSRETURN(argvi);
10491 fail:
10492
10493
10494 SWIG_croak_null();
10495 }
10496 }
10497
10498
10499 XS(_wrap_dtn_bundle_delivery_regid_get) {
10500 {
10501 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10502 unsigned int result;
10503 void *argp1 = 0 ;
10504 int res1 = 0 ;
10505 int argvi = 0;
10506 dXSARGS;
10507
10508 if ((items < 1) || (items > 1)) {
10509 SWIG_croak("Usage: dtn_bundle_delivery_regid_get(self);");
10510 }
10511 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10512 if (!SWIG_IsOK(res1)) {
10513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_delivery_regid_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10514 }
10515 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10516 result = (unsigned int) ((arg1)->delivery_regid);
10517 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10518
10519 XSRETURN(argvi);
10520 fail:
10521
10522 SWIG_croak_null();
10523 }
10524 }
10525
10526
10527 XS(_wrap_dtn_bundle_sequence_id_set) {
10528 {
10529 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10530 std::string *arg2 = 0 ;
10531 void *argp1 = 0 ;
10532 int res1 = 0 ;
10533 int res2 = SWIG_OLDOBJ ;
10534 int argvi = 0;
10535 dXSARGS;
10536
10537 if ((items < 2) || (items > 2)) {
10538 SWIG_croak("Usage: dtn_bundle_sequence_id_set(self,sequence_id);");
10539 }
10540 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10541 if (!SWIG_IsOK(res1)) {
10542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_sequence_id_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10543 }
10544 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10545 {
10546 std::string *ptr = (std::string *)0;
10547 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10548 if (!SWIG_IsOK(res2)) {
10549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_sequence_id_set" "', argument " "2"" of type '" "std::string const &""'");
10550 }
10551 if (!ptr) {
10552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_sequence_id_set" "', argument " "2"" of type '" "std::string const &""'");
10553 }
10554 arg2 = ptr;
10555 }
10556 if (arg1) (arg1)->sequence_id = *arg2;
10557
10558
10559
10560 if (SWIG_IsNewObj(res2)) delete arg2;
10561 XSRETURN(argvi);
10562 fail:
10563
10564 if (SWIG_IsNewObj(res2)) delete arg2;
10565 SWIG_croak_null();
10566 }
10567 }
10568
10569
10570 XS(_wrap_dtn_bundle_sequence_id_get) {
10571 {
10572 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10573 std::string *result = 0 ;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 int argvi = 0;
10577 dXSARGS;
10578
10579 if ((items < 1) || (items > 1)) {
10580 SWIG_croak("Usage: dtn_bundle_sequence_id_get(self);");
10581 }
10582 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10583 if (!SWIG_IsOK(res1)) {
10584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_sequence_id_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10585 }
10586 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10587 {
10588 std::string const &_result_ref = ((arg1)->sequence_id);
10589 result = (std::string *) &_result_ref;
10590 }
10591 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
10592
10593 XSRETURN(argvi);
10594 fail:
10595
10596 SWIG_croak_null();
10597 }
10598 }
10599
10600
10601 XS(_wrap_dtn_bundle_obsoletes_id_set) {
10602 {
10603 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10604 std::string *arg2 = 0 ;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 int res2 = SWIG_OLDOBJ ;
10608 int argvi = 0;
10609 dXSARGS;
10610
10611 if ((items < 2) || (items > 2)) {
10612 SWIG_croak("Usage: dtn_bundle_obsoletes_id_set(self,obsoletes_id);");
10613 }
10614 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10617 }
10618 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10619 {
10620 std::string *ptr = (std::string *)0;
10621 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10622 if (!SWIG_IsOK(res2)) {
10623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "2"" of type '" "std::string const &""'");
10624 }
10625 if (!ptr) {
10626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "2"" of type '" "std::string const &""'");
10627 }
10628 arg2 = ptr;
10629 }
10630 if (arg1) (arg1)->obsoletes_id = *arg2;
10631
10632
10633
10634 if (SWIG_IsNewObj(res2)) delete arg2;
10635 XSRETURN(argvi);
10636 fail:
10637
10638 if (SWIG_IsNewObj(res2)) delete arg2;
10639 SWIG_croak_null();
10640 }
10641 }
10642
10643
10644 XS(_wrap_dtn_bundle_obsoletes_id_get) {
10645 {
10646 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10647 std::string *result = 0 ;
10648 void *argp1 = 0 ;
10649 int res1 = 0 ;
10650 int argvi = 0;
10651 dXSARGS;
10652
10653 if ((items < 1) || (items > 1)) {
10654 SWIG_croak("Usage: dtn_bundle_obsoletes_id_get(self);");
10655 }
10656 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10657 if (!SWIG_IsOK(res1)) {
10658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_obsoletes_id_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10659 }
10660 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10661 {
10662 std::string const &_result_ref = ((arg1)->obsoletes_id);
10663 result = (std::string *) &_result_ref;
10664 }
10665 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
10666
10667 XSRETURN(argvi);
10668 fail:
10669
10670 SWIG_croak_null();
10671 }
10672 }
10673
10674
10675 XS(_wrap_dtn_bundle_payload_set) {
10676 {
10677 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10678 std::string *arg2 = 0 ;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 int res2 = SWIG_OLDOBJ ;
10682 int argvi = 0;
10683 dXSARGS;
10684
10685 if ((items < 2) || (items > 2)) {
10686 SWIG_croak("Usage: dtn_bundle_payload_set(self,payload);");
10687 }
10688 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10689 if (!SWIG_IsOK(res1)) {
10690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10691 }
10692 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10693 {
10694 std::string *ptr = (std::string *)0;
10695 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10696 if (!SWIG_IsOK(res2)) {
10697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_set" "', argument " "2"" of type '" "std::string const &""'");
10698 }
10699 if (!ptr) {
10700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_set" "', argument " "2"" of type '" "std::string const &""'");
10701 }
10702 arg2 = ptr;
10703 }
10704 if (arg1) (arg1)->payload = *arg2;
10705
10706
10707
10708 if (SWIG_IsNewObj(res2)) delete arg2;
10709 XSRETURN(argvi);
10710 fail:
10711
10712 if (SWIG_IsNewObj(res2)) delete arg2;
10713 SWIG_croak_null();
10714 }
10715 }
10716
10717
10718 XS(_wrap_dtn_bundle_payload_get) {
10719 {
10720 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10721 std::string *result = 0 ;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 int argvi = 0;
10725 dXSARGS;
10726
10727 if ((items < 1) || (items > 1)) {
10728 SWIG_croak("Usage: dtn_bundle_payload_get(self);");
10729 }
10730 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10731 if (!SWIG_IsOK(res1)) {
10732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10733 }
10734 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10735 {
10736 std::string const &_result_ref = ((arg1)->payload);
10737 result = (std::string *) &_result_ref;
10738 }
10739 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
10740
10741 XSRETURN(argvi);
10742 fail:
10743
10744 SWIG_croak_null();
10745 }
10746 }
10747
10748
10749 XS(_wrap_dtn_bundle_status_report_set) {
10750 {
10751 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10752 dtn_status_report *arg2 = (dtn_status_report *) 0 ;
10753 void *argp1 = 0 ;
10754 int res1 = 0 ;
10755 void *argp2 = 0 ;
10756 int res2 = 0 ;
10757 int argvi = 0;
10758 dXSARGS;
10759
10760 if ((items < 2) || (items > 2)) {
10761 SWIG_croak("Usage: dtn_bundle_status_report_set(self,status_report);");
10762 }
10763 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10764 if (!SWIG_IsOK(res1)) {
10765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_set" "', argument " "1"" of type '" "dtn_bundle *""'");
10766 }
10767 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10768 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report, SWIG_POINTER_DISOWN | 0 );
10769 if (!SWIG_IsOK(res2)) {
10770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_set" "', argument " "2"" of type '" "dtn_status_report *""'");
10771 }
10772 arg2 = reinterpret_cast< dtn_status_report * >(argp2);
10773 if (arg1) (arg1)->status_report = arg2;
10774
10775
10776
10777
10778 XSRETURN(argvi);
10779 fail:
10780
10781
10782 SWIG_croak_null();
10783 }
10784 }
10785
10786
10787 XS(_wrap_dtn_bundle_status_report_get) {
10788 {
10789 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10790 dtn_status_report *result = 0 ;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 int argvi = 0;
10794 dXSARGS;
10795
10796 if ((items < 1) || (items > 1)) {
10797 SWIG_croak("Usage: dtn_bundle_status_report_get(self);");
10798 }
10799 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 );
10800 if (!SWIG_IsOK(res1)) {
10801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_get" "', argument " "1"" of type '" "dtn_bundle *""'");
10802 }
10803 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10804 result = (dtn_status_report *) ((arg1)->status_report);
10805 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_status_report, 0 | SWIG_SHADOW); argvi++ ;
10806
10807 XSRETURN(argvi);
10808 fail:
10809
10810 SWIG_croak_null();
10811 }
10812 }
10813
10814
10815 XS(_wrap_new_dtn_bundle) {
10816 {
10817 dtn_bundle *result = 0 ;
10818 int argvi = 0;
10819 dXSARGS;
10820
10821 if ((items < 0) || (items > 0)) {
10822 SWIG_croak("Usage: new_dtn_bundle();");
10823 }
10824 result = (dtn_bundle *)new dtn_bundle();
10825 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
10826 XSRETURN(argvi);
10827 fail:
10828 SWIG_croak_null();
10829 }
10830 }
10831
10832
10833 XS(_wrap_delete_dtn_bundle) {
10834 {
10835 dtn_bundle *arg1 = (dtn_bundle *) 0 ;
10836 void *argp1 = 0 ;
10837 int res1 = 0 ;
10838 int argvi = 0;
10839 dXSARGS;
10840
10841 if ((items < 1) || (items > 1)) {
10842 SWIG_croak("Usage: delete_dtn_bundle(self);");
10843 }
10844 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, SWIG_POINTER_DISOWN | 0 );
10845 if (!SWIG_IsOK(res1)) {
10846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle" "', argument " "1"" of type '" "dtn_bundle *""'");
10847 }
10848 arg1 = reinterpret_cast< dtn_bundle * >(argp1);
10849 delete arg1;
10850
10851
10852
10853 XSRETURN(argvi);
10854 fail:
10855
10856 SWIG_croak_null();
10857 }
10858 }
10859
10860
10861 XS(_wrap_dtn_recv) {
10862 {
10863 int arg1 ;
10864 unsigned int arg2 ;
10865 int arg3 ;
10866 dtn_bundle *result = 0 ;
10867 int val1 ;
10868 int ecode1 = 0 ;
10869 unsigned int val2 ;
10870 int ecode2 = 0 ;
10871 int val3 ;
10872 int ecode3 = 0 ;
10873 int argvi = 0;
10874 dXSARGS;
10875
10876 if ((items < 3) || (items > 3)) {
10877 SWIG_croak("Usage: dtn_recv(handle,payload_location,timeout);");
10878 }
10879 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
10880 if (!SWIG_IsOK(ecode1)) {
10881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_recv" "', argument " "1"" of type '" "int""'");
10882 }
10883 arg1 = static_cast< int >(val1);
10884 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10885 if (!SWIG_IsOK(ecode2)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_recv" "', argument " "2"" of type '" "unsigned int""'");
10887 }
10888 arg2 = static_cast< unsigned int >(val2);
10889 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10890 if (!SWIG_IsOK(ecode3)) {
10891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dtn_recv" "', argument " "3"" of type '" "int""'");
10892 }
10893 arg3 = static_cast< int >(val3);
10894 result = (dtn_bundle *)dtn_recv(arg1,arg2,arg3);
10895 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle, 0 | SWIG_SHADOW); argvi++ ;
10896
10897
10898
10899 XSRETURN(argvi);
10900 fail:
10901
10902
10903
10904 SWIG_croak_null();
10905 }
10906 }
10907
10908
10909 XS(_wrap_dtn_session_info_status_set) {
10910 {
10911 dtn_session_info *arg1 = (dtn_session_info *) 0 ;
10912 unsigned int arg2 ;
10913 void *argp1 = 0 ;
10914 int res1 = 0 ;
10915 unsigned int val2 ;
10916 int ecode2 = 0 ;
10917 int argvi = 0;
10918 dXSARGS;
10919
10920 if ((items < 2) || (items > 2)) {
10921 SWIG_croak("Usage: dtn_session_info_status_set(self,status);");
10922 }
10923 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_status_set" "', argument " "1"" of type '" "dtn_session_info *""'");
10926 }
10927 arg1 = reinterpret_cast< dtn_session_info * >(argp1);
10928 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10929 if (!SWIG_IsOK(ecode2)) {
10930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_session_info_status_set" "', argument " "2"" of type '" "unsigned int""'");
10931 }
10932 arg2 = static_cast< unsigned int >(val2);
10933 if (arg1) (arg1)->status = arg2;
10934
10935
10936
10937
10938 XSRETURN(argvi);
10939 fail:
10940
10941
10942 SWIG_croak_null();
10943 }
10944 }
10945
10946
10947 XS(_wrap_dtn_session_info_status_get) {
10948 {
10949 dtn_session_info *arg1 = (dtn_session_info *) 0 ;
10950 unsigned int result;
10951 void *argp1 = 0 ;
10952 int res1 = 0 ;
10953 int argvi = 0;
10954 dXSARGS;
10955
10956 if ((items < 1) || (items > 1)) {
10957 SWIG_croak("Usage: dtn_session_info_status_get(self);");
10958 }
10959 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 );
10960 if (!SWIG_IsOK(res1)) {
10961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_status_get" "', argument " "1"" of type '" "dtn_session_info *""'");
10962 }
10963 arg1 = reinterpret_cast< dtn_session_info * >(argp1);
10964 result = (unsigned int) ((arg1)->status);
10965 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ;
10966
10967 XSRETURN(argvi);
10968 fail:
10969
10970 SWIG_croak_null();
10971 }
10972 }
10973
10974
10975 XS(_wrap_dtn_session_info_session_set) {
10976 {
10977 dtn_session_info *arg1 = (dtn_session_info *) 0 ;
10978 std::string *arg2 = 0 ;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 int res2 = SWIG_OLDOBJ ;
10982 int argvi = 0;
10983 dXSARGS;
10984
10985 if ((items < 2) || (items > 2)) {
10986 SWIG_croak("Usage: dtn_session_info_session_set(self,session);");
10987 }
10988 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 );
10989 if (!SWIG_IsOK(res1)) {
10990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_session_set" "', argument " "1"" of type '" "dtn_session_info *""'");
10991 }
10992 arg1 = reinterpret_cast< dtn_session_info * >(argp1);
10993 {
10994 std::string *ptr = (std::string *)0;
10995 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr);
10996 if (!SWIG_IsOK(res2)) {
10997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_session_info_session_set" "', argument " "2"" of type '" "std::string const &""'");
10998 }
10999 if (!ptr) {
11000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_session_info_session_set" "', argument " "2"" of type '" "std::string const &""'");
11001 }
11002 arg2 = ptr;
11003 }
11004 if (arg1) (arg1)->session = *arg2;
11005
11006
11007
11008 if (SWIG_IsNewObj(res2)) delete arg2;
11009 XSRETURN(argvi);
11010 fail:
11011
11012 if (SWIG_IsNewObj(res2)) delete arg2;
11013 SWIG_croak_null();
11014 }
11015 }
11016
11017
11018 XS(_wrap_dtn_session_info_session_get) {
11019 {
11020 dtn_session_info *arg1 = (dtn_session_info *) 0 ;
11021 std::string *result = 0 ;
11022 void *argp1 = 0 ;
11023 int res1 = 0 ;
11024 int argvi = 0;
11025 dXSARGS;
11026
11027 if ((items < 1) || (items > 1)) {
11028 SWIG_croak("Usage: dtn_session_info_session_get(self);");
11029 }
11030 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 );
11031 if (!SWIG_IsOK(res1)) {
11032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_session_get" "', argument " "1"" of type '" "dtn_session_info *""'");
11033 }
11034 arg1 = reinterpret_cast< dtn_session_info * >(argp1);
11035 {
11036 std::string const &_result_ref = ((arg1)->session);
11037 result = (std::string *) &_result_ref;
11038 }
11039 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ;
11040
11041 XSRETURN(argvi);
11042 fail:
11043
11044 SWIG_croak_null();
11045 }
11046 }
11047
11048
11049 XS(_wrap_new_dtn_session_info) {
11050 {
11051 dtn_session_info *result = 0 ;
11052 int argvi = 0;
11053 dXSARGS;
11054
11055 if ((items < 0) || (items > 0)) {
11056 SWIG_croak("Usage: new_dtn_session_info();");
11057 }
11058 result = (dtn_session_info *)new dtn_session_info();
11059 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_session_info, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
11060 XSRETURN(argvi);
11061 fail:
11062 SWIG_croak_null();
11063 }
11064 }
11065
11066
11067 XS(_wrap_delete_dtn_session_info) {
11068 {
11069 dtn_session_info *arg1 = (dtn_session_info *) 0 ;
11070 void *argp1 = 0 ;
11071 int res1 = 0 ;
11072 int argvi = 0;
11073 dXSARGS;
11074
11075 if ((items < 1) || (items > 1)) {
11076 SWIG_croak("Usage: delete_dtn_session_info(self);");
11077 }
11078 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, SWIG_POINTER_DISOWN | 0 );
11079 if (!SWIG_IsOK(res1)) {
11080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_session_info" "', argument " "1"" of type '" "dtn_session_info *""'");
11081 }
11082 arg1 = reinterpret_cast< dtn_session_info * >(argp1);
11083 delete arg1;
11084
11085
11086
11087 XSRETURN(argvi);
11088 fail:
11089
11090 SWIG_croak_null();
11091 }
11092 }
11093
11094
11095 XS(_wrap_dtn_session_update) {
11096 {
11097 int arg1 ;
11098 int arg2 ;
11099 dtn_session_info *result = 0 ;
11100 int val1 ;
11101 int ecode1 = 0 ;
11102 int val2 ;
11103 int ecode2 = 0 ;
11104 int argvi = 0;
11105 dXSARGS;
11106
11107 if ((items < 2) || (items > 2)) {
11108 SWIG_croak("Usage: dtn_session_update(handle,timeout);");
11109 }
11110 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
11111 if (!SWIG_IsOK(ecode1)) {
11112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_session_update" "', argument " "1"" of type '" "int""'");
11113 }
11114 arg1 = static_cast< int >(val1);
11115 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11116 if (!SWIG_IsOK(ecode2)) {
11117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_session_update" "', argument " "2"" of type '" "int""'");
11118 }
11119 arg2 = static_cast< int >(val2);
11120 result = (dtn_session_info *)dtn_session_update(arg1,arg2);
11121 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_session_info, 0 | SWIG_SHADOW); argvi++ ;
11122
11123
11124 XSRETURN(argvi);
11125 fail:
11126
11127
11128 SWIG_croak_null();
11129 }
11130 }
11131
11132
11133 XS(_wrap_dtn_poll_fd) {
11134 {
11135 int arg1 ;
11136 int result;
11137 int val1 ;
11138 int ecode1 = 0 ;
11139 int argvi = 0;
11140 dXSARGS;
11141
11142 if ((items < 1) || (items > 1)) {
11143 SWIG_croak("Usage: dtn_poll_fd(handle);");
11144 }
11145 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
11146 if (!SWIG_IsOK(ecode1)) {
11147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_poll_fd" "', argument " "1"" of type '" "int""'");
11148 }
11149 arg1 = static_cast< int >(val1);
11150 result = (int)dtn_poll_fd(arg1);
11151 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
11152
11153 XSRETURN(argvi);
11154 fail:
11155
11156 SWIG_croak_null();
11157 }
11158 }
11159
11160
11161 XS(_wrap_dtn_begin_poll) {
11162 {
11163 int arg1 ;
11164 int arg2 ;
11165 int result;
11166 int val1 ;
11167 int ecode1 = 0 ;
11168 int val2 ;
11169 int ecode2 = 0 ;
11170 int argvi = 0;
11171 dXSARGS;
11172
11173 if ((items < 2) || (items > 2)) {
11174 SWIG_croak("Usage: dtn_begin_poll(handle,timeout);");
11175 }
11176 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
11177 if (!SWIG_IsOK(ecode1)) {
11178 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_begin_poll" "', argument " "1"" of type '" "int""'");
11179 }
11180 arg1 = static_cast< int >(val1);
11181 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11182 if (!SWIG_IsOK(ecode2)) {
11183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_begin_poll" "', argument " "2"" of type '" "int""'");
11184 }
11185 arg2 = static_cast< int >(val2);
11186 result = (int)dtn_begin_poll(arg1,arg2);
11187 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
11188
11189
11190 XSRETURN(argvi);
11191 fail:
11192
11193
11194 SWIG_croak_null();
11195 }
11196 }
11197
11198
11199 XS(_wrap_dtn_cancel_poll) {
11200 {
11201 int arg1 ;
11202 int result;
11203 int val1 ;
11204 int ecode1 = 0 ;
11205 int argvi = 0;
11206 dXSARGS;
11207
11208 if ((items < 1) || (items > 1)) {
11209 SWIG_croak("Usage: dtn_cancel_poll(handle);");
11210 }
11211 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
11212 if (!SWIG_IsOK(ecode1)) {
11213 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_cancel_poll" "', argument " "1"" of type '" "int""'");
11214 }
11215 arg1 = static_cast< int >(val1);
11216 result = (int)dtn_cancel_poll(arg1);
11217 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
11218
11219 XSRETURN(argvi);
11220 fail:
11221
11222 SWIG_croak_null();
11223 }
11224 }
11225
11226
11227
11228
11229
11230 static swig_type_info _swigt__p_XDR = {"_p_XDR", "XDR *", 0, 0, (void*)0, 0};
11231 static swig_type_info _swigt__p_bool_t = {"_p_bool_t", "bool_t *", 0, 0, (void*)0, 0};
11232 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
11233 static swig_type_info _swigt__p_dtn_bundle = {"_p_dtn_bundle", "dtn_bundle *", 0, 0, (void*)"dtnapi::dtn_bundle", 0};
11234 static swig_type_info _swigt__p_dtn_bundle_delivery_opts_t = {"_p_dtn_bundle_delivery_opts_t", "enum dtn_bundle_delivery_opts_t *|dtn_bundle_delivery_opts_t *", 0, 0, (void*)0, 0};
11235 static swig_type_info _swigt__p_dtn_bundle_id = {"_p_dtn_bundle_id", "dtn_bundle_id *", 0, 0, (void*)"dtnapi::dtn_bundle_id", 0};
11236 static swig_type_info _swigt__p_dtn_bundle_id_t = {"_p_dtn_bundle_id_t", "dtn_bundle_id_t *", 0, 0, (void*)"dtnapi::dtn_bundle_id_t", 0};
11237 static swig_type_info _swigt__p_dtn_bundle_payload_location_t = {"_p_dtn_bundle_payload_location_t", "enum dtn_bundle_payload_location_t *|dtn_bundle_payload_location_t *", 0, 0, (void*)0, 0};
11238 static swig_type_info _swigt__p_dtn_bundle_payload_t = {"_p_dtn_bundle_payload_t", "dtn_bundle_payload_t *", 0, 0, (void*)"dtnapi::dtn_bundle_payload_t", 0};
11239 static swig_type_info _swigt__p_dtn_bundle_payload_t_buf = {"_p_dtn_bundle_payload_t_buf", "dtn_bundle_payload_t_buf *", 0, 0, (void*)"dtnapi::dtn_bundle_payload_t_buf", 0};
11240 static swig_type_info _swigt__p_dtn_bundle_payload_t_filename = {"_p_dtn_bundle_payload_t_filename", "dtn_bundle_payload_t_filename *", 0, 0, (void*)"dtnapi::dtn_bundle_payload_t_filename", 0};
11241 static swig_type_info _swigt__p_dtn_bundle_priority_t = {"_p_dtn_bundle_priority_t", "enum dtn_bundle_priority_t *|dtn_bundle_priority_t *", 0, 0, (void*)0, 0};
11242 static swig_type_info _swigt__p_dtn_bundle_spec_t = {"_p_dtn_bundle_spec_t", "dtn_bundle_spec_t *", 0, 0, (void*)"dtnapi::dtn_bundle_spec_t", 0};
11243 static swig_type_info _swigt__p_dtn_bundle_spec_t_blocks = {"_p_dtn_bundle_spec_t_blocks", "dtn_bundle_spec_t_blocks *", 0, 0, (void*)"dtnapi::dtn_bundle_spec_t_blocks", 0};
11244 static swig_type_info _swigt__p_dtn_bundle_spec_t_metadata = {"_p_dtn_bundle_spec_t_metadata", "dtn_bundle_spec_t_metadata *", 0, 0, (void*)"dtnapi::dtn_bundle_spec_t_metadata", 0};
11245 static swig_type_info _swigt__p_dtn_bundle_status_report_t = {"_p_dtn_bundle_status_report_t", "dtn_bundle_status_report_t *", 0, 0, (void*)"dtnapi::dtn_bundle_status_report_t", 0};
11246 static swig_type_info _swigt__p_dtn_endpoint_id_t = {"_p_dtn_endpoint_id_t", "dtn_endpoint_id_t *", 0, 0, (void*)"dtnapi::dtn_endpoint_id_t", 0};
11247 static swig_type_info _swigt__p_dtn_extension_block_flags_t = {"_p_dtn_extension_block_flags_t", "enum dtn_extension_block_flags_t *|dtn_extension_block_flags_t *", 0, 0, (void*)0, 0};
11248 static swig_type_info _swigt__p_dtn_extension_block_t = {"_p_dtn_extension_block_t", "dtn_extension_block_t *", 0, 0, (void*)"dtnapi::dtn_extension_block_t", 0};
11249 static swig_type_info _swigt__p_dtn_extension_block_t_data = {"_p_dtn_extension_block_t_data", "dtn_extension_block_t_data *", 0, 0, (void*)"dtnapi::dtn_extension_block_t_data", 0};
11250 static swig_type_info _swigt__p_dtn_handle_t = {"_p_dtn_handle_t", "dtn_handle_t *", 0, 0, (void*)0, 0};
11251 static swig_type_info _swigt__p_dtn_reg_flags_t = {"_p_dtn_reg_flags_t", "enum dtn_reg_flags_t *|dtn_reg_flags_t *", 0, 0, (void*)0, 0};
11252 static swig_type_info _swigt__p_dtn_reg_info_t = {"_p_dtn_reg_info_t", "dtn_reg_info_t *", 0, 0, (void*)"dtnapi::dtn_reg_info_t", 0};
11253 static swig_type_info _swigt__p_dtn_reg_info_t_script = {"_p_dtn_reg_info_t_script", "dtn_reg_info_t_script *", 0, 0, (void*)"dtnapi::dtn_reg_info_t_script", 0};
11254 static swig_type_info _swigt__p_dtn_sequence_id_t = {"_p_dtn_sequence_id_t", "dtn_sequence_id_t *", 0, 0, (void*)"dtnapi::dtn_sequence_id_t", 0};
11255 static swig_type_info _swigt__p_dtn_sequence_id_t_data = {"_p_dtn_sequence_id_t_data", "dtn_sequence_id_t_data *", 0, 0, (void*)"dtnapi::dtn_sequence_id_t_data", 0};
11256 static swig_type_info _swigt__p_dtn_service_tag_t = {"_p_dtn_service_tag_t", "dtn_service_tag_t *", 0, 0, (void*)"dtnapi::dtn_service_tag_t", 0};
11257 static swig_type_info _swigt__p_dtn_session_info = {"_p_dtn_session_info", "dtn_session_info *", 0, 0, (void*)"dtnapi::dtn_session_info", 0};
11258 static swig_type_info _swigt__p_dtn_status_report = {"_p_dtn_status_report", "dtn_status_report *", 0, 0, (void*)"dtnapi::dtn_status_report", 0};
11259 static swig_type_info _swigt__p_dtn_status_report_flags_t = {"_p_dtn_status_report_flags_t", "enum dtn_status_report_flags_t *|dtn_status_report_flags_t *", 0, 0, (void*)0, 0};
11260 static swig_type_info _swigt__p_dtn_status_report_reason_t = {"_p_dtn_status_report_reason_t", "enum dtn_status_report_reason_t *|dtn_status_report_reason_t *", 0, 0, (void*)0, 0};
11261 static swig_type_info _swigt__p_dtn_timestamp_t = {"_p_dtn_timestamp_t", "dtn_timestamp_t *", 0, 0, (void*)"dtnapi::dtn_timestamp_t", 0};
11262 static swig_type_info _swigt__p_mapT_unsigned_int_dtn_handle_t_t = {"_p_mapT_unsigned_int_dtn_handle_t_t", "map< unsigned int,dtn_handle_t > *|HandleMap *", 0, 0, (void*)0, 0};
11263 static swig_type_info _swigt__p_u_int = {"_p_u_int", "dtn_timeval_t *|dtn_reg_id_t *|u_int *", 0, 0, (void*)0, 0};
11264
11265 static swig_type_info *swig_type_initial[] = {
11266 &_swigt__p_XDR,
11267 &_swigt__p_bool_t,
11268 &_swigt__p_char,
11269 &_swigt__p_dtn_bundle,
11270 &_swigt__p_dtn_bundle_delivery_opts_t,
11271 &_swigt__p_dtn_bundle_id,
11272 &_swigt__p_dtn_bundle_id_t,
11273 &_swigt__p_dtn_bundle_payload_location_t,
11274 &_swigt__p_dtn_bundle_payload_t,
11275 &_swigt__p_dtn_bundle_payload_t_buf,
11276 &_swigt__p_dtn_bundle_payload_t_filename,
11277 &_swigt__p_dtn_bundle_priority_t,
11278 &_swigt__p_dtn_bundle_spec_t,
11279 &_swigt__p_dtn_bundle_spec_t_blocks,
11280 &_swigt__p_dtn_bundle_spec_t_metadata,
11281 &_swigt__p_dtn_bundle_status_report_t,
11282 &_swigt__p_dtn_endpoint_id_t,
11283 &_swigt__p_dtn_extension_block_flags_t,
11284 &_swigt__p_dtn_extension_block_t,
11285 &_swigt__p_dtn_extension_block_t_data,
11286 &_swigt__p_dtn_handle_t,
11287 &_swigt__p_dtn_reg_flags_t,
11288 &_swigt__p_dtn_reg_info_t,
11289 &_swigt__p_dtn_reg_info_t_script,
11290 &_swigt__p_dtn_sequence_id_t,
11291 &_swigt__p_dtn_sequence_id_t_data,
11292 &_swigt__p_dtn_service_tag_t,
11293 &_swigt__p_dtn_session_info,
11294 &_swigt__p_dtn_status_report,
11295 &_swigt__p_dtn_status_report_flags_t,
11296 &_swigt__p_dtn_status_report_reason_t,
11297 &_swigt__p_dtn_timestamp_t,
11298 &_swigt__p_mapT_unsigned_int_dtn_handle_t_t,
11299 &_swigt__p_u_int,
11300 };
11301
11302 static swig_cast_info _swigc__p_XDR[] = { {&_swigt__p_XDR, 0, 0, 0},{0, 0, 0, 0}};
11303 static swig_cast_info _swigc__p_bool_t[] = { {&_swigt__p_bool_t, 0, 0, 0},{0, 0, 0, 0}};
11304 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
11305 static swig_cast_info _swigc__p_dtn_bundle[] = { {&_swigt__p_dtn_bundle, 0, 0, 0},{0, 0, 0, 0}};
11306 static swig_cast_info _swigc__p_dtn_bundle_delivery_opts_t[] = { {&_swigt__p_dtn_bundle_delivery_opts_t, 0, 0, 0},{0, 0, 0, 0}};
11307 static swig_cast_info _swigc__p_dtn_bundle_id[] = { {&_swigt__p_dtn_bundle_id, 0, 0, 0},{0, 0, 0, 0}};
11308 static swig_cast_info _swigc__p_dtn_bundle_id_t[] = { {&_swigt__p_dtn_bundle_id_t, 0, 0, 0},{0, 0, 0, 0}};
11309 static swig_cast_info _swigc__p_dtn_bundle_payload_location_t[] = { {&_swigt__p_dtn_bundle_payload_location_t, 0, 0, 0},{0, 0, 0, 0}};
11310 static swig_cast_info _swigc__p_dtn_bundle_payload_t[] = { {&_swigt__p_dtn_bundle_payload_t, 0, 0, 0},{0, 0, 0, 0}};
11311 static swig_cast_info _swigc__p_dtn_bundle_payload_t_buf[] = { {&_swigt__p_dtn_bundle_payload_t_buf, 0, 0, 0},{0, 0, 0, 0}};
11312 static swig_cast_info _swigc__p_dtn_bundle_payload_t_filename[] = { {&_swigt__p_dtn_bundle_payload_t_filename, 0, 0, 0},{0, 0, 0, 0}};
11313 static swig_cast_info _swigc__p_dtn_bundle_priority_t[] = { {&_swigt__p_dtn_bundle_priority_t, 0, 0, 0},{0, 0, 0, 0}};
11314 static swig_cast_info _swigc__p_dtn_bundle_spec_t[] = { {&_swigt__p_dtn_bundle_spec_t, 0, 0, 0},{0, 0, 0, 0}};
11315 static swig_cast_info _swigc__p_dtn_bundle_spec_t_blocks[] = { {&_swigt__p_dtn_bundle_spec_t_blocks, 0, 0, 0},{0, 0, 0, 0}};
11316 static swig_cast_info _swigc__p_dtn_bundle_spec_t_metadata[] = { {&_swigt__p_dtn_bundle_spec_t_metadata, 0, 0, 0},{0, 0, 0, 0}};
11317 static swig_cast_info _swigc__p_dtn_bundle_status_report_t[] = { {&_swigt__p_dtn_bundle_status_report_t, 0, 0, 0},{0, 0, 0, 0}};
11318 static swig_cast_info _swigc__p_dtn_endpoint_id_t[] = { {&_swigt__p_dtn_endpoint_id_t, 0, 0, 0},{0, 0, 0, 0}};
11319 static swig_cast_info _swigc__p_dtn_extension_block_flags_t[] = { {&_swigt__p_dtn_extension_block_flags_t, 0, 0, 0},{0, 0, 0, 0}};
11320 static swig_cast_info _swigc__p_dtn_extension_block_t[] = { {&_swigt__p_dtn_extension_block_t, 0, 0, 0},{0, 0, 0, 0}};
11321 static swig_cast_info _swigc__p_dtn_extension_block_t_data[] = { {&_swigt__p_dtn_extension_block_t_data, 0, 0, 0},{0, 0, 0, 0}};
11322 static swig_cast_info _swigc__p_dtn_handle_t[] = { {&_swigt__p_dtn_handle_t, 0, 0, 0},{0, 0, 0, 0}};
11323 static swig_cast_info _swigc__p_dtn_reg_flags_t[] = { {&_swigt__p_dtn_reg_flags_t, 0, 0, 0},{0, 0, 0, 0}};
11324 static swig_cast_info _swigc__p_dtn_reg_info_t[] = { {&_swigt__p_dtn_reg_info_t, 0, 0, 0},{0, 0, 0, 0}};
11325 static swig_cast_info _swigc__p_dtn_reg_info_t_script[] = { {&_swigt__p_dtn_reg_info_t_script, 0, 0, 0},{0, 0, 0, 0}};
11326 static swig_cast_info _swigc__p_dtn_sequence_id_t[] = { {&_swigt__p_dtn_sequence_id_t, 0, 0, 0},{0, 0, 0, 0}};
11327 static swig_cast_info _swigc__p_dtn_sequence_id_t_data[] = { {&_swigt__p_dtn_sequence_id_t_data, 0, 0, 0},{0, 0, 0, 0}};
11328 static swig_cast_info _swigc__p_dtn_service_tag_t[] = { {&_swigt__p_dtn_service_tag_t, 0, 0, 0},{0, 0, 0, 0}};
11329 static swig_cast_info _swigc__p_dtn_session_info[] = { {&_swigt__p_dtn_session_info, 0, 0, 0},{0, 0, 0, 0}};
11330 static swig_cast_info _swigc__p_dtn_status_report[] = { {&_swigt__p_dtn_status_report, 0, 0, 0},{0, 0, 0, 0}};
11331 static swig_cast_info _swigc__p_dtn_status_report_flags_t[] = { {&_swigt__p_dtn_status_report_flags_t, 0, 0, 0},{0, 0, 0, 0}};
11332 static swig_cast_info _swigc__p_dtn_status_report_reason_t[] = { {&_swigt__p_dtn_status_report_reason_t, 0, 0, 0},{0, 0, 0, 0}};
11333 static swig_cast_info _swigc__p_dtn_timestamp_t[] = { {&_swigt__p_dtn_timestamp_t, 0, 0, 0},{0, 0, 0, 0}};
11334 static swig_cast_info _swigc__p_mapT_unsigned_int_dtn_handle_t_t[] = { {&_swigt__p_mapT_unsigned_int_dtn_handle_t_t, 0, 0, 0},{0, 0, 0, 0}};
11335 static swig_cast_info _swigc__p_u_int[] = { {&_swigt__p_u_int, 0, 0, 0},{0, 0, 0, 0}};
11336
11337 static swig_cast_info *swig_cast_initial[] = {
11338 _swigc__p_XDR,
11339 _swigc__p_bool_t,
11340 _swigc__p_char,
11341 _swigc__p_dtn_bundle,
11342 _swigc__p_dtn_bundle_delivery_opts_t,
11343 _swigc__p_dtn_bundle_id,
11344 _swigc__p_dtn_bundle_id_t,
11345 _swigc__p_dtn_bundle_payload_location_t,
11346 _swigc__p_dtn_bundle_payload_t,
11347 _swigc__p_dtn_bundle_payload_t_buf,
11348 _swigc__p_dtn_bundle_payload_t_filename,
11349 _swigc__p_dtn_bundle_priority_t,
11350 _swigc__p_dtn_bundle_spec_t,
11351 _swigc__p_dtn_bundle_spec_t_blocks,
11352 _swigc__p_dtn_bundle_spec_t_metadata,
11353 _swigc__p_dtn_bundle_status_report_t,
11354 _swigc__p_dtn_endpoint_id_t,
11355 _swigc__p_dtn_extension_block_flags_t,
11356 _swigc__p_dtn_extension_block_t,
11357 _swigc__p_dtn_extension_block_t_data,
11358 _swigc__p_dtn_handle_t,
11359 _swigc__p_dtn_reg_flags_t,
11360 _swigc__p_dtn_reg_info_t,
11361 _swigc__p_dtn_reg_info_t_script,
11362 _swigc__p_dtn_sequence_id_t,
11363 _swigc__p_dtn_sequence_id_t_data,
11364 _swigc__p_dtn_service_tag_t,
11365 _swigc__p_dtn_session_info,
11366 _swigc__p_dtn_status_report,
11367 _swigc__p_dtn_status_report_flags_t,
11368 _swigc__p_dtn_status_report_reason_t,
11369 _swigc__p_dtn_timestamp_t,
11370 _swigc__p_mapT_unsigned_int_dtn_handle_t_t,
11371 _swigc__p_u_int,
11372 };
11373
11374
11375
11376
11377 static swig_constant_info swig_constants[] = {
11378 {0,0,0,0,0,0}
11379 };
11380 #ifdef __cplusplus
11381 }
11382 #endif
11383 static swig_variable_info swig_variables[] = {
11384 { "dtnapic::Handles", MAGIC_CLASS _wrap_Handles_set, MAGIC_CLASS _wrap_Handles_get,&SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t },
11385 { "dtnapic::HandleID", MAGIC_CLASS _wrap_HandleID_set, MAGIC_CLASS _wrap_HandleID_get,0 },
11386 {0,0,0,0}
11387 };
11388 static swig_command_info swig_commands[] = {
11389 {"dtnapic::dtn_endpoint_id_t_uri_set", _wrap_dtn_endpoint_id_t_uri_set},
11390 {"dtnapic::dtn_endpoint_id_t_uri_get", _wrap_dtn_endpoint_id_t_uri_get},
11391 {"dtnapic::new_dtn_endpoint_id_t", _wrap_new_dtn_endpoint_id_t},
11392 {"dtnapic::delete_dtn_endpoint_id_t", _wrap_delete_dtn_endpoint_id_t},
11393 {"dtnapic::dtn_timestamp_t_secs_set", _wrap_dtn_timestamp_t_secs_set},
11394 {"dtnapic::dtn_timestamp_t_secs_get", _wrap_dtn_timestamp_t_secs_get},
11395 {"dtnapic::dtn_timestamp_t_seqno_set", _wrap_dtn_timestamp_t_seqno_set},
11396 {"dtnapic::dtn_timestamp_t_seqno_get", _wrap_dtn_timestamp_t_seqno_get},
11397 {"dtnapic::new_dtn_timestamp_t", _wrap_new_dtn_timestamp_t},
11398 {"dtnapic::delete_dtn_timestamp_t", _wrap_delete_dtn_timestamp_t},
11399 {"dtnapic::dtn_service_tag_t_tag_set", _wrap_dtn_service_tag_t_tag_set},
11400 {"dtnapic::dtn_service_tag_t_tag_get", _wrap_dtn_service_tag_t_tag_get},
11401 {"dtnapic::new_dtn_service_tag_t", _wrap_new_dtn_service_tag_t},
11402 {"dtnapic::delete_dtn_service_tag_t", _wrap_delete_dtn_service_tag_t},
11403 {"dtnapic::dtn_reg_info_t_endpoint_set", _wrap_dtn_reg_info_t_endpoint_set},
11404 {"dtnapic::dtn_reg_info_t_endpoint_get", _wrap_dtn_reg_info_t_endpoint_get},
11405 {"dtnapic::dtn_reg_info_t_regid_set", _wrap_dtn_reg_info_t_regid_set},
11406 {"dtnapic::dtn_reg_info_t_regid_get", _wrap_dtn_reg_info_t_regid_get},
11407 {"dtnapic::dtn_reg_info_t_flags_set", _wrap_dtn_reg_info_t_flags_set},
11408 {"dtnapic::dtn_reg_info_t_flags_get", _wrap_dtn_reg_info_t_flags_get},
11409 {"dtnapic::dtn_reg_info_t_expiration_set", _wrap_dtn_reg_info_t_expiration_set},
11410 {"dtnapic::dtn_reg_info_t_expiration_get", _wrap_dtn_reg_info_t_expiration_get},
11411 {"dtnapic::dtn_reg_info_t_init_passive_set", _wrap_dtn_reg_info_t_init_passive_set},
11412 {"dtnapic::dtn_reg_info_t_init_passive_get", _wrap_dtn_reg_info_t_init_passive_get},
11413 {"dtnapic::dtn_reg_info_t_script_get", _wrap_dtn_reg_info_t_script_get},
11414 {"dtnapic::new_dtn_reg_info_t", _wrap_new_dtn_reg_info_t},
11415 {"dtnapic::delete_dtn_reg_info_t", _wrap_delete_dtn_reg_info_t},
11416 {"dtnapic::dtn_reg_info_t_script_script_len_set", _wrap_dtn_reg_info_t_script_script_len_set},
11417 {"dtnapic::dtn_reg_info_t_script_script_len_get", _wrap_dtn_reg_info_t_script_script_len_get},
11418 {"dtnapic::dtn_reg_info_t_script_script_val_set", _wrap_dtn_reg_info_t_script_script_val_set},
11419 {"dtnapic::dtn_reg_info_t_script_script_val_get", _wrap_dtn_reg_info_t_script_script_val_get},
11420 {"dtnapic::new_dtn_reg_info_t_script", _wrap_new_dtn_reg_info_t_script},
11421 {"dtnapic::delete_dtn_reg_info_t_script", _wrap_delete_dtn_reg_info_t_script},
11422 {"dtnapic::dtn_extension_block_t_type_set", _wrap_dtn_extension_block_t_type_set},
11423 {"dtnapic::dtn_extension_block_t_type_get", _wrap_dtn_extension_block_t_type_get},
11424 {"dtnapic::dtn_extension_block_t_flags_set", _wrap_dtn_extension_block_t_flags_set},
11425 {"dtnapic::dtn_extension_block_t_flags_get", _wrap_dtn_extension_block_t_flags_get},
11426 {"dtnapic::dtn_extension_block_t_data_get", _wrap_dtn_extension_block_t_data_get},
11427 {"dtnapic::new_dtn_extension_block_t", _wrap_new_dtn_extension_block_t},
11428 {"dtnapic::delete_dtn_extension_block_t", _wrap_delete_dtn_extension_block_t},
11429 {"dtnapic::dtn_extension_block_t_data_data_len_set", _wrap_dtn_extension_block_t_data_data_len_set},
11430 {"dtnapic::dtn_extension_block_t_data_data_len_get", _wrap_dtn_extension_block_t_data_data_len_get},
11431 {"dtnapic::dtn_extension_block_t_data_data_val_set", _wrap_dtn_extension_block_t_data_data_val_set},
11432 {"dtnapic::dtn_extension_block_t_data_data_val_get", _wrap_dtn_extension_block_t_data_data_val_get},
11433 {"dtnapic::new_dtn_extension_block_t_data", _wrap_new_dtn_extension_block_t_data},
11434 {"dtnapic::delete_dtn_extension_block_t_data", _wrap_delete_dtn_extension_block_t_data},
11435 {"dtnapic::dtn_sequence_id_t_data_get", _wrap_dtn_sequence_id_t_data_get},
11436 {"dtnapic::new_dtn_sequence_id_t", _wrap_new_dtn_sequence_id_t},
11437 {"dtnapic::delete_dtn_sequence_id_t", _wrap_delete_dtn_sequence_id_t},
11438 {"dtnapic::dtn_sequence_id_t_data_data_len_set", _wrap_dtn_sequence_id_t_data_data_len_set},
11439 {"dtnapic::dtn_sequence_id_t_data_data_len_get", _wrap_dtn_sequence_id_t_data_data_len_get},
11440 {"dtnapic::dtn_sequence_id_t_data_data_val_set", _wrap_dtn_sequence_id_t_data_data_val_set},
11441 {"dtnapic::dtn_sequence_id_t_data_data_val_get", _wrap_dtn_sequence_id_t_data_data_val_get},
11442 {"dtnapic::new_dtn_sequence_id_t_data", _wrap_new_dtn_sequence_id_t_data},
11443 {"dtnapic::delete_dtn_sequence_id_t_data", _wrap_delete_dtn_sequence_id_t_data},
11444 {"dtnapic::dtn_bundle_spec_t_source_set", _wrap_dtn_bundle_spec_t_source_set},
11445 {"dtnapic::dtn_bundle_spec_t_source_get", _wrap_dtn_bundle_spec_t_source_get},
11446 {"dtnapic::dtn_bundle_spec_t_dest_set", _wrap_dtn_bundle_spec_t_dest_set},
11447 {"dtnapic::dtn_bundle_spec_t_dest_get", _wrap_dtn_bundle_spec_t_dest_get},
11448 {"dtnapic::dtn_bundle_spec_t_replyto_set", _wrap_dtn_bundle_spec_t_replyto_set},
11449 {"dtnapic::dtn_bundle_spec_t_replyto_get", _wrap_dtn_bundle_spec_t_replyto_get},
11450 {"dtnapic::dtn_bundle_spec_t_priority_set", _wrap_dtn_bundle_spec_t_priority_set},
11451 {"dtnapic::dtn_bundle_spec_t_priority_get", _wrap_dtn_bundle_spec_t_priority_get},
11452 {"dtnapic::dtn_bundle_spec_t_dopts_set", _wrap_dtn_bundle_spec_t_dopts_set},
11453 {"dtnapic::dtn_bundle_spec_t_dopts_get", _wrap_dtn_bundle_spec_t_dopts_get},
11454 {"dtnapic::dtn_bundle_spec_t_expiration_set", _wrap_dtn_bundle_spec_t_expiration_set},
11455 {"dtnapic::dtn_bundle_spec_t_expiration_get", _wrap_dtn_bundle_spec_t_expiration_get},
11456 {"dtnapic::dtn_bundle_spec_t_creation_ts_set", _wrap_dtn_bundle_spec_t_creation_ts_set},
11457 {"dtnapic::dtn_bundle_spec_t_creation_ts_get", _wrap_dtn_bundle_spec_t_creation_ts_get},
11458 {"dtnapic::dtn_bundle_spec_t_delivery_regid_set", _wrap_dtn_bundle_spec_t_delivery_regid_set},
11459 {"dtnapic::dtn_bundle_spec_t_delivery_regid_get", _wrap_dtn_bundle_spec_t_delivery_regid_get},
11460 {"dtnapic::dtn_bundle_spec_t_sequence_id_set", _wrap_dtn_bundle_spec_t_sequence_id_set},
11461 {"dtnapic::dtn_bundle_spec_t_sequence_id_get", _wrap_dtn_bundle_spec_t_sequence_id_get},
11462 {"dtnapic::dtn_bundle_spec_t_obsoletes_id_set", _wrap_dtn_bundle_spec_t_obsoletes_id_set},
11463 {"dtnapic::dtn_bundle_spec_t_obsoletes_id_get", _wrap_dtn_bundle_spec_t_obsoletes_id_get},
11464 {"dtnapic::dtn_bundle_spec_t_metadata_get", _wrap_dtn_bundle_spec_t_metadata_get},
11465 {"dtnapic::dtn_bundle_spec_t_blocks_get", _wrap_dtn_bundle_spec_t_blocks_get},
11466 {"dtnapic::new_dtn_bundle_spec_t", _wrap_new_dtn_bundle_spec_t},
11467 {"dtnapic::delete_dtn_bundle_spec_t", _wrap_delete_dtn_bundle_spec_t},
11468 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_len_set", _wrap_dtn_bundle_spec_t_metadata_metadata_len_set},
11469 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_len_get", _wrap_dtn_bundle_spec_t_metadata_metadata_len_get},
11470 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_val_set", _wrap_dtn_bundle_spec_t_metadata_metadata_val_set},
11471 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_val_get", _wrap_dtn_bundle_spec_t_metadata_metadata_val_get},
11472 {"dtnapic::new_dtn_bundle_spec_t_metadata", _wrap_new_dtn_bundle_spec_t_metadata},
11473 {"dtnapic::delete_dtn_bundle_spec_t_metadata", _wrap_delete_dtn_bundle_spec_t_metadata},
11474 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_len_set", _wrap_dtn_bundle_spec_t_blocks_blocks_len_set},
11475 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_len_get", _wrap_dtn_bundle_spec_t_blocks_blocks_len_get},
11476 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_val_set", _wrap_dtn_bundle_spec_t_blocks_blocks_val_set},
11477 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_val_get", _wrap_dtn_bundle_spec_t_blocks_blocks_val_get},
11478 {"dtnapic::new_dtn_bundle_spec_t_blocks", _wrap_new_dtn_bundle_spec_t_blocks},
11479 {"dtnapic::delete_dtn_bundle_spec_t_blocks", _wrap_delete_dtn_bundle_spec_t_blocks},
11480 {"dtnapic::dtn_bundle_id_t_source_set", _wrap_dtn_bundle_id_t_source_set},
11481 {"dtnapic::dtn_bundle_id_t_source_get", _wrap_dtn_bundle_id_t_source_get},
11482 {"dtnapic::dtn_bundle_id_t_creation_ts_set", _wrap_dtn_bundle_id_t_creation_ts_set},
11483 {"dtnapic::dtn_bundle_id_t_creation_ts_get", _wrap_dtn_bundle_id_t_creation_ts_get},
11484 {"dtnapic::dtn_bundle_id_t_frag_offset_set", _wrap_dtn_bundle_id_t_frag_offset_set},
11485 {"dtnapic::dtn_bundle_id_t_frag_offset_get", _wrap_dtn_bundle_id_t_frag_offset_get},
11486 {"dtnapic::dtn_bundle_id_t_orig_length_set", _wrap_dtn_bundle_id_t_orig_length_set},
11487 {"dtnapic::dtn_bundle_id_t_orig_length_get", _wrap_dtn_bundle_id_t_orig_length_get},
11488 {"dtnapic::new_dtn_bundle_id_t", _wrap_new_dtn_bundle_id_t},
11489 {"dtnapic::delete_dtn_bundle_id_t", _wrap_delete_dtn_bundle_id_t},
11490 {"dtnapic::dtn_bundle_status_report_t_bundle_id_set", _wrap_dtn_bundle_status_report_t_bundle_id_set},
11491 {"dtnapic::dtn_bundle_status_report_t_bundle_id_get", _wrap_dtn_bundle_status_report_t_bundle_id_get},
11492 {"dtnapic::dtn_bundle_status_report_t_reason_set", _wrap_dtn_bundle_status_report_t_reason_set},
11493 {"dtnapic::dtn_bundle_status_report_t_reason_get", _wrap_dtn_bundle_status_report_t_reason_get},
11494 {"dtnapic::dtn_bundle_status_report_t_flags_set", _wrap_dtn_bundle_status_report_t_flags_set},
11495 {"dtnapic::dtn_bundle_status_report_t_flags_get", _wrap_dtn_bundle_status_report_t_flags_get},
11496 {"dtnapic::dtn_bundle_status_report_t_receipt_ts_set", _wrap_dtn_bundle_status_report_t_receipt_ts_set},
11497 {"dtnapic::dtn_bundle_status_report_t_receipt_ts_get", _wrap_dtn_bundle_status_report_t_receipt_ts_get},
11498 {"dtnapic::dtn_bundle_status_report_t_custody_ts_set", _wrap_dtn_bundle_status_report_t_custody_ts_set},
11499 {"dtnapic::dtn_bundle_status_report_t_custody_ts_get", _wrap_dtn_bundle_status_report_t_custody_ts_get},
11500 {"dtnapic::dtn_bundle_status_report_t_forwarding_ts_set", _wrap_dtn_bundle_status_report_t_forwarding_ts_set},
11501 {"dtnapic::dtn_bundle_status_report_t_forwarding_ts_get", _wrap_dtn_bundle_status_report_t_forwarding_ts_get},
11502 {"dtnapic::dtn_bundle_status_report_t_delivery_ts_set", _wrap_dtn_bundle_status_report_t_delivery_ts_set},
11503 {"dtnapic::dtn_bundle_status_report_t_delivery_ts_get", _wrap_dtn_bundle_status_report_t_delivery_ts_get},
11504 {"dtnapic::dtn_bundle_status_report_t_deletion_ts_set", _wrap_dtn_bundle_status_report_t_deletion_ts_set},
11505 {"dtnapic::dtn_bundle_status_report_t_deletion_ts_get", _wrap_dtn_bundle_status_report_t_deletion_ts_get},
11506 {"dtnapic::dtn_bundle_status_report_t_ack_by_app_ts_set", _wrap_dtn_bundle_status_report_t_ack_by_app_ts_set},
11507 {"dtnapic::dtn_bundle_status_report_t_ack_by_app_ts_get", _wrap_dtn_bundle_status_report_t_ack_by_app_ts_get},
11508 {"dtnapic::new_dtn_bundle_status_report_t", _wrap_new_dtn_bundle_status_report_t},
11509 {"dtnapic::delete_dtn_bundle_status_report_t", _wrap_delete_dtn_bundle_status_report_t},
11510 {"dtnapic::dtn_bundle_payload_t_location_set", _wrap_dtn_bundle_payload_t_location_set},
11511 {"dtnapic::dtn_bundle_payload_t_location_get", _wrap_dtn_bundle_payload_t_location_get},
11512 {"dtnapic::dtn_bundle_payload_t_status_report_set", _wrap_dtn_bundle_payload_t_status_report_set},
11513 {"dtnapic::dtn_bundle_payload_t_status_report_get", _wrap_dtn_bundle_payload_t_status_report_get},
11514 {"dtnapic::dtn_bundle_payload_t_buf_get", _wrap_dtn_bundle_payload_t_buf_get},
11515 {"dtnapic::dtn_bundle_payload_t_filename_get", _wrap_dtn_bundle_payload_t_filename_get},
11516 {"dtnapic::new_dtn_bundle_payload_t", _wrap_new_dtn_bundle_payload_t},
11517 {"dtnapic::delete_dtn_bundle_payload_t", _wrap_delete_dtn_bundle_payload_t},
11518 {"dtnapic::dtn_bundle_payload_t_buf_buf_len_set", _wrap_dtn_bundle_payload_t_buf_buf_len_set},
11519 {"dtnapic::dtn_bundle_payload_t_buf_buf_len_get", _wrap_dtn_bundle_payload_t_buf_buf_len_get},
11520 {"dtnapic::dtn_bundle_payload_t_buf_buf_val_set", _wrap_dtn_bundle_payload_t_buf_buf_val_set},
11521 {"dtnapic::dtn_bundle_payload_t_buf_buf_val_get", _wrap_dtn_bundle_payload_t_buf_buf_val_get},
11522 {"dtnapic::new_dtn_bundle_payload_t_buf", _wrap_new_dtn_bundle_payload_t_buf},
11523 {"dtnapic::delete_dtn_bundle_payload_t_buf", _wrap_delete_dtn_bundle_payload_t_buf},
11524 {"dtnapic::dtn_bundle_payload_t_filename_filename_len_set", _wrap_dtn_bundle_payload_t_filename_filename_len_set},
11525 {"dtnapic::dtn_bundle_payload_t_filename_filename_len_get", _wrap_dtn_bundle_payload_t_filename_filename_len_get},
11526 {"dtnapic::dtn_bundle_payload_t_filename_filename_val_set", _wrap_dtn_bundle_payload_t_filename_filename_val_set},
11527 {"dtnapic::dtn_bundle_payload_t_filename_filename_val_get", _wrap_dtn_bundle_payload_t_filename_filename_val_get},
11528 {"dtnapic::new_dtn_bundle_payload_t_filename", _wrap_new_dtn_bundle_payload_t_filename},
11529 {"dtnapic::delete_dtn_bundle_payload_t_filename", _wrap_delete_dtn_bundle_payload_t_filename},
11530 {"dtnapic::xdr_dtn_endpoint_id_t", _wrap_xdr_dtn_endpoint_id_t},
11531 {"dtnapic::xdr_dtn_reg_id_t", _wrap_xdr_dtn_reg_id_t},
11532 {"dtnapic::xdr_dtn_timeval_t", _wrap_xdr_dtn_timeval_t},
11533 {"dtnapic::xdr_dtn_timestamp_t", _wrap_xdr_dtn_timestamp_t},
11534 {"dtnapic::xdr_dtn_service_tag_t", _wrap_xdr_dtn_service_tag_t},
11535 {"dtnapic::xdr_dtn_reg_flags_t", _wrap_xdr_dtn_reg_flags_t},
11536 {"dtnapic::xdr_dtn_reg_info_t", _wrap_xdr_dtn_reg_info_t},
11537 {"dtnapic::xdr_dtn_bundle_priority_t", _wrap_xdr_dtn_bundle_priority_t},
11538 {"dtnapic::xdr_dtn_bundle_delivery_opts_t", _wrap_xdr_dtn_bundle_delivery_opts_t},
11539 {"dtnapic::xdr_dtn_extension_block_flags_t", _wrap_xdr_dtn_extension_block_flags_t},
11540 {"dtnapic::xdr_dtn_extension_block_t", _wrap_xdr_dtn_extension_block_t},
11541 {"dtnapic::xdr_dtn_sequence_id_t", _wrap_xdr_dtn_sequence_id_t},
11542 {"dtnapic::xdr_dtn_bundle_spec_t", _wrap_xdr_dtn_bundle_spec_t},
11543 {"dtnapic::xdr_dtn_bundle_id_t", _wrap_xdr_dtn_bundle_id_t},
11544 {"dtnapic::xdr_dtn_status_report_reason_t", _wrap_xdr_dtn_status_report_reason_t},
11545 {"dtnapic::xdr_dtn_status_report_flags_t", _wrap_xdr_dtn_status_report_flags_t},
11546 {"dtnapic::xdr_dtn_bundle_status_report_t", _wrap_xdr_dtn_bundle_status_report_t},
11547 {"dtnapic::xdr_dtn_bundle_payload_location_t", _wrap_xdr_dtn_bundle_payload_location_t},
11548 {"dtnapic::xdr_dtn_bundle_payload_t", _wrap_xdr_dtn_bundle_payload_t},
11549 {"dtnapic::dtn_strerror", _wrap_dtn_strerror},
11550 {"dtnapic::dtn_open", _wrap_dtn_open},
11551 {"dtnapic::find_handle", _wrap_find_handle},
11552 {"dtnapic::dtn_close", _wrap_dtn_close},
11553 {"dtnapic::dtn_errno", _wrap_dtn_errno},
11554 {"dtnapic::dtn_build_local_eid", _wrap_dtn_build_local_eid},
11555 {"dtnapic::build_reginfo", _wrap_build_reginfo},
11556 {"dtnapic::dtn_register", _wrap_dtn_register},
11557 {"dtnapic::dtn_unregister", _wrap_dtn_unregister},
11558 {"dtnapic::dtn_find_registration", _wrap_dtn_find_registration},
11559 {"dtnapic::dtn_change_registration", _wrap_dtn_change_registration},
11560 {"dtnapic::dtn_bind", _wrap_dtn_bind},
11561 {"dtnapic::dtn_unbind", _wrap_dtn_unbind},
11562 {"dtnapic::dtn_bundle_id_source_set", _wrap_dtn_bundle_id_source_set},
11563 {"dtnapic::dtn_bundle_id_source_get", _wrap_dtn_bundle_id_source_get},
11564 {"dtnapic::dtn_bundle_id_creation_secs_set", _wrap_dtn_bundle_id_creation_secs_set},
11565 {"dtnapic::dtn_bundle_id_creation_secs_get", _wrap_dtn_bundle_id_creation_secs_get},
11566 {"dtnapic::dtn_bundle_id_creation_seqno_set", _wrap_dtn_bundle_id_creation_seqno_set},
11567 {"dtnapic::dtn_bundle_id_creation_seqno_get", _wrap_dtn_bundle_id_creation_seqno_get},
11568 {"dtnapic::new_dtn_bundle_id", _wrap_new_dtn_bundle_id},
11569 {"dtnapic::delete_dtn_bundle_id", _wrap_delete_dtn_bundle_id},
11570 {"dtnapic::dtn_send", _wrap_dtn_send},
11571 {"dtnapic::dtn_cancel", _wrap_dtn_cancel},
11572 {"dtnapic::dtn_status_report_bundle_id_set", _wrap_dtn_status_report_bundle_id_set},
11573 {"dtnapic::dtn_status_report_bundle_id_get", _wrap_dtn_status_report_bundle_id_get},
11574 {"dtnapic::dtn_status_report_reason_set", _wrap_dtn_status_report_reason_set},
11575 {"dtnapic::dtn_status_report_reason_get", _wrap_dtn_status_report_reason_get},
11576 {"dtnapic::dtn_status_report_flags_set", _wrap_dtn_status_report_flags_set},
11577 {"dtnapic::dtn_status_report_flags_get", _wrap_dtn_status_report_flags_get},
11578 {"dtnapic::dtn_status_report_receipt_ts_secs_set", _wrap_dtn_status_report_receipt_ts_secs_set},
11579 {"dtnapic::dtn_status_report_receipt_ts_secs_get", _wrap_dtn_status_report_receipt_ts_secs_get},
11580 {"dtnapic::dtn_status_report_receipt_ts_seqno_set", _wrap_dtn_status_report_receipt_ts_seqno_set},
11581 {"dtnapic::dtn_status_report_receipt_ts_seqno_get", _wrap_dtn_status_report_receipt_ts_seqno_get},
11582 {"dtnapic::dtn_status_report_custody_ts_secs_set", _wrap_dtn_status_report_custody_ts_secs_set},
11583 {"dtnapic::dtn_status_report_custody_ts_secs_get", _wrap_dtn_status_report_custody_ts_secs_get},
11584 {"dtnapic::dtn_status_report_custody_ts_seqno_set", _wrap_dtn_status_report_custody_ts_seqno_set},
11585 {"dtnapic::dtn_status_report_custody_ts_seqno_get", _wrap_dtn_status_report_custody_ts_seqno_get},
11586 {"dtnapic::dtn_status_report_forwarding_ts_secs_set", _wrap_dtn_status_report_forwarding_ts_secs_set},
11587 {"dtnapic::dtn_status_report_forwarding_ts_secs_get", _wrap_dtn_status_report_forwarding_ts_secs_get},
11588 {"dtnapic::dtn_status_report_forwarding_ts_seqno_set", _wrap_dtn_status_report_forwarding_ts_seqno_set},
11589 {"dtnapic::dtn_status_report_forwarding_ts_seqno_get", _wrap_dtn_status_report_forwarding_ts_seqno_get},
11590 {"dtnapic::dtn_status_report_delivery_ts_secs_set", _wrap_dtn_status_report_delivery_ts_secs_set},
11591 {"dtnapic::dtn_status_report_delivery_ts_secs_get", _wrap_dtn_status_report_delivery_ts_secs_get},
11592 {"dtnapic::dtn_status_report_delivery_ts_seqno_set", _wrap_dtn_status_report_delivery_ts_seqno_set},
11593 {"dtnapic::dtn_status_report_delivery_ts_seqno_get", _wrap_dtn_status_report_delivery_ts_seqno_get},
11594 {"dtnapic::dtn_status_report_deletion_ts_secs_set", _wrap_dtn_status_report_deletion_ts_secs_set},
11595 {"dtnapic::dtn_status_report_deletion_ts_secs_get", _wrap_dtn_status_report_deletion_ts_secs_get},
11596 {"dtnapic::dtn_status_report_deletion_ts_seqno_set", _wrap_dtn_status_report_deletion_ts_seqno_set},
11597 {"dtnapic::dtn_status_report_deletion_ts_seqno_get", _wrap_dtn_status_report_deletion_ts_seqno_get},
11598 {"dtnapic::dtn_status_report_ack_by_app_ts_secs_set", _wrap_dtn_status_report_ack_by_app_ts_secs_set},
11599 {"dtnapic::dtn_status_report_ack_by_app_ts_secs_get", _wrap_dtn_status_report_ack_by_app_ts_secs_get},
11600 {"dtnapic::dtn_status_report_ack_by_app_ts_seqno_set", _wrap_dtn_status_report_ack_by_app_ts_seqno_set},
11601 {"dtnapic::dtn_status_report_ack_by_app_ts_seqno_get", _wrap_dtn_status_report_ack_by_app_ts_seqno_get},
11602 {"dtnapic::new_dtn_status_report", _wrap_new_dtn_status_report},
11603 {"dtnapic::delete_dtn_status_report", _wrap_delete_dtn_status_report},
11604 {"dtnapic::dtn_status_report_reason_to_str", _wrap_dtn_status_report_reason_to_str},
11605 {"dtnapic::dtn_bundle_source_set", _wrap_dtn_bundle_source_set},
11606 {"dtnapic::dtn_bundle_source_get", _wrap_dtn_bundle_source_get},
11607 {"dtnapic::dtn_bundle_dest_set", _wrap_dtn_bundle_dest_set},
11608 {"dtnapic::dtn_bundle_dest_get", _wrap_dtn_bundle_dest_get},
11609 {"dtnapic::dtn_bundle_replyto_set", _wrap_dtn_bundle_replyto_set},
11610 {"dtnapic::dtn_bundle_replyto_get", _wrap_dtn_bundle_replyto_get},
11611 {"dtnapic::dtn_bundle_priority_set", _wrap_dtn_bundle_priority_set},
11612 {"dtnapic::dtn_bundle_priority_get", _wrap_dtn_bundle_priority_get},
11613 {"dtnapic::dtn_bundle_dopts_set", _wrap_dtn_bundle_dopts_set},
11614 {"dtnapic::dtn_bundle_dopts_get", _wrap_dtn_bundle_dopts_get},
11615 {"dtnapic::dtn_bundle_expiration_set", _wrap_dtn_bundle_expiration_set},
11616 {"dtnapic::dtn_bundle_expiration_get", _wrap_dtn_bundle_expiration_get},
11617 {"dtnapic::dtn_bundle_creation_secs_set", _wrap_dtn_bundle_creation_secs_set},
11618 {"dtnapic::dtn_bundle_creation_secs_get", _wrap_dtn_bundle_creation_secs_get},
11619 {"dtnapic::dtn_bundle_creation_seqno_set", _wrap_dtn_bundle_creation_seqno_set},
11620 {"dtnapic::dtn_bundle_creation_seqno_get", _wrap_dtn_bundle_creation_seqno_get},
11621 {"dtnapic::dtn_bundle_delivery_regid_set", _wrap_dtn_bundle_delivery_regid_set},
11622 {"dtnapic::dtn_bundle_delivery_regid_get", _wrap_dtn_bundle_delivery_regid_get},
11623 {"dtnapic::dtn_bundle_sequence_id_set", _wrap_dtn_bundle_sequence_id_set},
11624 {"dtnapic::dtn_bundle_sequence_id_get", _wrap_dtn_bundle_sequence_id_get},
11625 {"dtnapic::dtn_bundle_obsoletes_id_set", _wrap_dtn_bundle_obsoletes_id_set},
11626 {"dtnapic::dtn_bundle_obsoletes_id_get", _wrap_dtn_bundle_obsoletes_id_get},
11627 {"dtnapic::dtn_bundle_payload_set", _wrap_dtn_bundle_payload_set},
11628 {"dtnapic::dtn_bundle_payload_get", _wrap_dtn_bundle_payload_get},
11629 {"dtnapic::dtn_bundle_status_report_set", _wrap_dtn_bundle_status_report_set},
11630 {"dtnapic::dtn_bundle_status_report_get", _wrap_dtn_bundle_status_report_get},
11631 {"dtnapic::new_dtn_bundle", _wrap_new_dtn_bundle},
11632 {"dtnapic::delete_dtn_bundle", _wrap_delete_dtn_bundle},
11633 {"dtnapic::dtn_recv", _wrap_dtn_recv},
11634 {"dtnapic::dtn_session_info_status_set", _wrap_dtn_session_info_status_set},
11635 {"dtnapic::dtn_session_info_status_get", _wrap_dtn_session_info_status_get},
11636 {"dtnapic::dtn_session_info_session_set", _wrap_dtn_session_info_session_set},
11637 {"dtnapic::dtn_session_info_session_get", _wrap_dtn_session_info_session_get},
11638 {"dtnapic::new_dtn_session_info", _wrap_new_dtn_session_info},
11639 {"dtnapic::delete_dtn_session_info", _wrap_delete_dtn_session_info},
11640 {"dtnapic::dtn_session_update", _wrap_dtn_session_update},
11641 {"dtnapic::dtn_poll_fd", _wrap_dtn_poll_fd},
11642 {"dtnapic::dtn_begin_poll", _wrap_dtn_begin_poll},
11643 {"dtnapic::dtn_cancel_poll", _wrap_dtn_cancel_poll},
11644 {0,0}
11645 };
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687 #ifdef __cplusplus
11688 extern "C" {
11689 #if 0
11690 }
11691 #endif
11692 #endif
11693
11694 #if 0
11695 #define SWIGRUNTIME_DEBUG
11696 #endif
11697
11698
11699 SWIGRUNTIME void
11700 SWIG_InitializeModule(void *clientdata) {
11701 size_t i;
11702 swig_module_info *module_head, *iter;
11703 int found, init;
11704
11705 clientdata = clientdata;
11706
11707
11708 if (swig_module.next==0) {
11709
11710 swig_module.type_initial = swig_type_initial;
11711 swig_module.cast_initial = swig_cast_initial;
11712 swig_module.next = &swig_module;
11713 init = 1;
11714 } else {
11715 init = 0;
11716 }
11717
11718
11719 module_head = SWIG_GetModule(clientdata);
11720 if (!module_head) {
11721
11722
11723 SWIG_SetModule(clientdata, &swig_module);
11724 module_head = &swig_module;
11725 } else {
11726
11727 found=0;
11728 iter=module_head;
11729 do {
11730 if (iter==&swig_module) {
11731 found=1;
11732 break;
11733 }
11734 iter=iter->next;
11735 } while (iter!= module_head);
11736
11737
11738 if (found) return;
11739
11740 swig_module.next = module_head->next;
11741 module_head->next = &swig_module;
11742 }
11743
11744
11745
11746
11747
11748 if (init == 0) return;
11749
11750
11751 #ifdef SWIGRUNTIME_DEBUG
11752 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
11753 #endif
11754 for (i = 0; i < swig_module.size; ++i) {
11755 swig_type_info *type = 0;
11756 swig_type_info *ret;
11757 swig_cast_info *cast;
11758
11759 #ifdef SWIGRUNTIME_DEBUG
11760 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
11761 #endif
11762
11763
11764 if (swig_module.next != &swig_module) {
11765 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
11766 }
11767 if (type) {
11768
11769 #ifdef SWIGRUNTIME_DEBUG
11770 printf("SWIG_InitializeModule: found type %s\n", type->name);
11771 #endif
11772 if (swig_module.type_initial[i]->clientdata) {
11773 type->clientdata = swig_module.type_initial[i]->clientdata;
11774 #ifdef SWIGRUNTIME_DEBUG
11775 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
11776 #endif
11777 }
11778 } else {
11779 type = swig_module.type_initial[i];
11780 }
11781
11782
11783 cast = swig_module.cast_initial[i];
11784 while (cast->type) {
11785
11786 ret = 0;
11787 #ifdef SWIGRUNTIME_DEBUG
11788 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
11789 #endif
11790 if (swig_module.next != &swig_module) {
11791 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
11792 #ifdef SWIGRUNTIME_DEBUG
11793 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
11794 #endif
11795 }
11796 if (ret) {
11797 if (type == swig_module.type_initial[i]) {
11798 #ifdef SWIGRUNTIME_DEBUG
11799 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
11800 #endif
11801 cast->type = ret;
11802 ret = 0;
11803 } else {
11804
11805 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
11806 #ifdef SWIGRUNTIME_DEBUG
11807 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
11808 #endif
11809 if (!ocast) ret = 0;
11810 }
11811 }
11812
11813 if (!ret) {
11814 #ifdef SWIGRUNTIME_DEBUG
11815 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
11816 #endif
11817 if (type->cast) {
11818 type->cast->prev = cast;
11819 cast->next = type->cast;
11820 }
11821 type->cast = cast;
11822 }
11823 cast++;
11824 }
11825
11826 swig_module.types[i] = type;
11827 }
11828 swig_module.types[i] = 0;
11829
11830 #ifdef SWIGRUNTIME_DEBUG
11831 printf("**** SWIG_InitializeModule: Cast List ******\n");
11832 for (i = 0; i < swig_module.size; ++i) {
11833 int j = 0;
11834 swig_cast_info *cast = swig_module.cast_initial[i];
11835 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
11836 while (cast->type) {
11837 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
11838 cast++;
11839 ++j;
11840 }
11841 printf("---- Total casts: %d\n",j);
11842 }
11843 printf("**** SWIG_InitializeModule: Cast List ******\n");
11844 #endif
11845 }
11846
11847
11848
11849
11850
11851
11852 SWIGRUNTIME void
11853 SWIG_PropagateClientData(void) {
11854 size_t i;
11855 swig_cast_info *equiv;
11856 static int init_run = 0;
11857
11858 if (init_run) return;
11859 init_run = 1;
11860
11861 for (i = 0; i < swig_module.size; i++) {
11862 if (swig_module.types[i]->clientdata) {
11863 equiv = swig_module.types[i]->cast;
11864 while (equiv) {
11865 if (!equiv->converter) {
11866 if (equiv->type && !equiv->type->clientdata)
11867 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
11868 }
11869 equiv = equiv->next;
11870 }
11871 }
11872 }
11873 }
11874
11875 #ifdef __cplusplus
11876 #if 0
11877 {
11878
11879 #endif
11880 }
11881 #endif
11882
11883
11884
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888
11889 XS(SWIG_init) {
11890 dXSARGS;
11891 int i;
11892
11893 SWIG_InitializeModule(0);
11894
11895
11896 for (i = 0; swig_commands[i].name; i++) {
11897 newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__);
11898 }
11899
11900
11901 for (i = 0; swig_variables[i].name; i++) {
11902 SV *sv;
11903 sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
11904 if (swig_variables[i].type) {
11905 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
11906 } else {
11907 sv_setiv(sv,(IV) 0);
11908 }
11909 swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
11910 }
11911
11912
11913 for (i = 0; swig_constants[i].type; i++) {
11914 SV *sv;
11915 sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
11916 switch(swig_constants[i].type) {
11917 case SWIG_INT:
11918 sv_setiv(sv, (IV) swig_constants[i].lvalue);
11919 break;
11920 case SWIG_FLOAT:
11921 sv_setnv(sv, (double) swig_constants[i].dvalue);
11922 break;
11923 case SWIG_STRING:
11924 sv_setpv(sv, (char *) swig_constants[i].pvalue);
11925 break;
11926 case SWIG_POINTER:
11927 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
11928 break;
11929 case SWIG_BINARY:
11930 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
11931 break;
11932 default:
11933 break;
11934 }
11935 SvREADONLY_on(sv);
11936 }
11937
11938 do {
11939 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_ENDPOINT_ID", TRUE | 0x2 | GV_ADDMULTI);
11940 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(256)));
11941 SvREADONLY_on(sv);
11942 } while(0) ;
11943 do {
11944 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_AUTHDATA", TRUE | 0x2 | GV_ADDMULTI);
11945 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(1024)));
11946 SvREADONLY_on(sv);
11947 } while(0) ;
11948 do {
11949 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_REGION_LEN", TRUE | 0x2 | GV_ADDMULTI);
11950 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(64)));
11951 SvREADONLY_on(sv);
11952 } while(0) ;
11953 do {
11954 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BUNDLE_MEM", TRUE | 0x2 | GV_ADDMULTI);
11955 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(50000)));
11956 SvREADONLY_on(sv);
11957 } while(0) ;
11958 do {
11959 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BLOCK_LEN", TRUE | 0x2 | GV_ADDMULTI);
11960 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(1024)));
11961 SvREADONLY_on(sv);
11962 } while(0) ;
11963 do {
11964 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BLOCKS", TRUE | 0x2 | GV_ADDMULTI);
11965 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(256)));
11966 SvREADONLY_on(sv);
11967 } while(0) ;
11968 SWIG_TypeClientData(SWIGTYPE_p_dtn_endpoint_id_t, (void*) "dtnapi::dtn_endpoint_id_t");
11969 SWIG_TypeClientData(SWIGTYPE_p_dtn_timestamp_t, (void*) "dtnapi::dtn_timestamp_t");
11970 SWIG_TypeClientData(SWIGTYPE_p_dtn_service_tag_t, (void*) "dtnapi::dtn_service_tag_t");
11971 do {
11972 SV *sv = get_sv((char*) SWIG_prefix "DTN_REGID_NONE", TRUE | 0x2 | GV_ADDMULTI);
11973 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(0)));
11974 SvREADONLY_on(sv);
11975 } while(0) ;
11976 do {
11977 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_DROP", TRUE | 0x2 | GV_ADDMULTI);
11978 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_DROP)));
11979 SvREADONLY_on(sv);
11980 } while(0) ;
11981 do {
11982 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_DEFER", TRUE | 0x2 | GV_ADDMULTI);
11983 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_DEFER)));
11984 SvREADONLY_on(sv);
11985 } while(0) ;
11986 do {
11987 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_EXEC", TRUE | 0x2 | GV_ADDMULTI);
11988 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_EXEC)));
11989 SvREADONLY_on(sv);
11990 } while(0) ;
11991 do {
11992 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_CUSTODY", TRUE | 0x2 | GV_ADDMULTI);
11993 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_CUSTODY)));
11994 SvREADONLY_on(sv);
11995 } while(0) ;
11996 do {
11997 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_PUBLISH", TRUE | 0x2 | GV_ADDMULTI);
11998 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_PUBLISH)));
11999 SvREADONLY_on(sv);
12000 } while(0) ;
12001 do {
12002 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_SUBSCRIBE", TRUE | 0x2 | GV_ADDMULTI);
12003 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_SUBSCRIBE)));
12004 SvREADONLY_on(sv);
12005 } while(0) ;
12006 SWIG_TypeClientData(SWIGTYPE_p_dtn_reg_info_t, (void*) "dtnapi::dtn_reg_info_t");
12007 SWIG_TypeClientData(SWIGTYPE_p_dtn_reg_info_t_script, (void*) "dtnapi::dtn_reg_info_t_script");
12008 do {
12009 SV *sv = get_sv((char*) SWIG_prefix "COS_BULK", TRUE | 0x2 | GV_ADDMULTI);
12010 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_BULK)));
12011 SvREADONLY_on(sv);
12012 } while(0) ;
12013 do {
12014 SV *sv = get_sv((char*) SWIG_prefix "COS_NORMAL", TRUE | 0x2 | GV_ADDMULTI);
12015 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_NORMAL)));
12016 SvREADONLY_on(sv);
12017 } while(0) ;
12018 do {
12019 SV *sv = get_sv((char*) SWIG_prefix "COS_EXPEDITED", TRUE | 0x2 | GV_ADDMULTI);
12020 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_EXPEDITED)));
12021 SvREADONLY_on(sv);
12022 } while(0) ;
12023 do {
12024 SV *sv = get_sv((char*) SWIG_prefix "COS_RESERVED", TRUE | 0x2 | GV_ADDMULTI);
12025 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_RESERVED)));
12026 SvREADONLY_on(sv);
12027 } while(0) ;
12028 do {
12029 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_NONE", TRUE | 0x2 | GV_ADDMULTI);
12030 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_NONE)));
12031 SvREADONLY_on(sv);
12032 } while(0) ;
12033 do {
12034 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_CUSTODY", TRUE | 0x2 | GV_ADDMULTI);
12035 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_CUSTODY)));
12036 SvREADONLY_on(sv);
12037 } while(0) ;
12038 do {
12039 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DELIVERY_RCPT", TRUE | 0x2 | GV_ADDMULTI);
12040 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DELIVERY_RCPT)));
12041 SvREADONLY_on(sv);
12042 } while(0) ;
12043 do {
12044 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_RECEIVE_RCPT", TRUE | 0x2 | GV_ADDMULTI);
12045 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_RECEIVE_RCPT)));
12046 SvREADONLY_on(sv);
12047 } while(0) ;
12048 do {
12049 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_FORWARD_RCPT", TRUE | 0x2 | GV_ADDMULTI);
12050 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_FORWARD_RCPT)));
12051 SvREADONLY_on(sv);
12052 } while(0) ;
12053 do {
12054 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_CUSTODY_RCPT", TRUE | 0x2 | GV_ADDMULTI);
12055 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_CUSTODY_RCPT)));
12056 SvREADONLY_on(sv);
12057 } while(0) ;
12058 do {
12059 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DELETE_RCPT", TRUE | 0x2 | GV_ADDMULTI);
12060 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DELETE_RCPT)));
12061 SvREADONLY_on(sv);
12062 } while(0) ;
12063 do {
12064 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_SINGLETON_DEST", TRUE | 0x2 | GV_ADDMULTI);
12065 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_SINGLETON_DEST)));
12066 SvREADONLY_on(sv);
12067 } while(0) ;
12068 do {
12069 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_MULTINODE_DEST", TRUE | 0x2 | GV_ADDMULTI);
12070 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_MULTINODE_DEST)));
12071 SvREADONLY_on(sv);
12072 } while(0) ;
12073 do {
12074 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DO_NOT_FRAGMENT", TRUE | 0x2 | GV_ADDMULTI);
12075 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DO_NOT_FRAGMENT)));
12076 SvREADONLY_on(sv);
12077 } while(0) ;
12078 do {
12079 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_NONE", TRUE | 0x2 | GV_ADDMULTI);
12080 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_NONE)));
12081 SvREADONLY_on(sv);
12082 } while(0) ;
12083 do {
12084 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_REPLICATE", TRUE | 0x2 | GV_ADDMULTI);
12085 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_REPLICATE)));
12086 SvREADONLY_on(sv);
12087 } while(0) ;
12088 do {
12089 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_REPORT", TRUE | 0x2 | GV_ADDMULTI);
12090 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_REPORT)));
12091 SvREADONLY_on(sv);
12092 } while(0) ;
12093 do {
12094 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_DELETE_BUNDLE", TRUE | 0x2 | GV_ADDMULTI);
12095 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_DELETE_BUNDLE)));
12096 SvREADONLY_on(sv);
12097 } while(0) ;
12098 do {
12099 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_LAST", TRUE | 0x2 | GV_ADDMULTI);
12100 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_LAST)));
12101 SvREADONLY_on(sv);
12102 } while(0) ;
12103 do {
12104 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_DISCARD_BLOCK", TRUE | 0x2 | GV_ADDMULTI);
12105 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_DISCARD_BLOCK)));
12106 SvREADONLY_on(sv);
12107 } while(0) ;
12108 do {
12109 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_UNPROCESSED", TRUE | 0x2 | GV_ADDMULTI);
12110 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_UNPROCESSED)));
12111 SvREADONLY_on(sv);
12112 } while(0) ;
12113 SWIG_TypeClientData(SWIGTYPE_p_dtn_extension_block_t, (void*) "dtnapi::dtn_extension_block_t");
12114 SWIG_TypeClientData(SWIGTYPE_p_dtn_extension_block_t_data, (void*) "dtnapi::dtn_extension_block_t_data");
12115 SWIG_TypeClientData(SWIGTYPE_p_dtn_sequence_id_t, (void*) "dtnapi::dtn_sequence_id_t");
12116 SWIG_TypeClientData(SWIGTYPE_p_dtn_sequence_id_t_data, (void*) "dtnapi::dtn_sequence_id_t_data");
12117 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t, (void*) "dtnapi::dtn_bundle_spec_t");
12118 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t_metadata, (void*) "dtnapi::dtn_bundle_spec_t_metadata");
12119 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t_blocks, (void*) "dtnapi::dtn_bundle_spec_t_blocks");
12120 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_id_t, (void*) "dtnapi::dtn_bundle_id_t");
12121 do {
12122 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_ADDTL_INFO", TRUE | 0x2 | GV_ADDMULTI);
12123 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_ADDTL_INFO)));
12124 SvREADONLY_on(sv);
12125 } while(0) ;
12126 do {
12127 SV *sv = get_sv((char*) SWIG_prefix "REASON_LIFETIME_EXPIRED", TRUE | 0x2 | GV_ADDMULTI);
12128 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_LIFETIME_EXPIRED)));
12129 SvREADONLY_on(sv);
12130 } while(0) ;
12131 do {
12132 SV *sv = get_sv((char*) SWIG_prefix "REASON_FORWARDED_UNIDIR_LINK", TRUE | 0x2 | GV_ADDMULTI);
12133 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_FORWARDED_UNIDIR_LINK)));
12134 SvREADONLY_on(sv);
12135 } while(0) ;
12136 do {
12137 SV *sv = get_sv((char*) SWIG_prefix "REASON_TRANSMISSION_CANCELLED", TRUE | 0x2 | GV_ADDMULTI);
12138 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_TRANSMISSION_CANCELLED)));
12139 SvREADONLY_on(sv);
12140 } while(0) ;
12141 do {
12142 SV *sv = get_sv((char*) SWIG_prefix "REASON_DEPLETED_STORAGE", TRUE | 0x2 | GV_ADDMULTI);
12143 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_DEPLETED_STORAGE)));
12144 SvREADONLY_on(sv);
12145 } while(0) ;
12146 do {
12147 SV *sv = get_sv((char*) SWIG_prefix "REASON_ENDPOINT_ID_UNINTELLIGIBLE", TRUE | 0x2 | GV_ADDMULTI);
12148 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_ENDPOINT_ID_UNINTELLIGIBLE)));
12149 SvREADONLY_on(sv);
12150 } while(0) ;
12151 do {
12152 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_ROUTE_TO_DEST", TRUE | 0x2 | GV_ADDMULTI);
12153 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_ROUTE_TO_DEST)));
12154 SvREADONLY_on(sv);
12155 } while(0) ;
12156 do {
12157 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_TIMELY_CONTACT", TRUE | 0x2 | GV_ADDMULTI);
12158 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_TIMELY_CONTACT)));
12159 SvREADONLY_on(sv);
12160 } while(0) ;
12161 do {
12162 SV *sv = get_sv((char*) SWIG_prefix "REASON_BLOCK_UNINTELLIGIBLE", TRUE | 0x2 | GV_ADDMULTI);
12163 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_BLOCK_UNINTELLIGIBLE)));
12164 SvREADONLY_on(sv);
12165 } while(0) ;
12166 do {
12167 SV *sv = get_sv((char*) SWIG_prefix "STATUS_RECEIVED", TRUE | 0x2 | GV_ADDMULTI);
12168 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_RECEIVED)));
12169 SvREADONLY_on(sv);
12170 } while(0) ;
12171 do {
12172 SV *sv = get_sv((char*) SWIG_prefix "STATUS_CUSTODY_ACCEPTED", TRUE | 0x2 | GV_ADDMULTI);
12173 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_CUSTODY_ACCEPTED)));
12174 SvREADONLY_on(sv);
12175 } while(0) ;
12176 do {
12177 SV *sv = get_sv((char*) SWIG_prefix "STATUS_FORWARDED", TRUE | 0x2 | GV_ADDMULTI);
12178 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_FORWARDED)));
12179 SvREADONLY_on(sv);
12180 } while(0) ;
12181 do {
12182 SV *sv = get_sv((char*) SWIG_prefix "STATUS_DELIVERED", TRUE | 0x2 | GV_ADDMULTI);
12183 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_DELIVERED)));
12184 SvREADONLY_on(sv);
12185 } while(0) ;
12186 do {
12187 SV *sv = get_sv((char*) SWIG_prefix "STATUS_DELETED", TRUE | 0x2 | GV_ADDMULTI);
12188 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_DELETED)));
12189 SvREADONLY_on(sv);
12190 } while(0) ;
12191 do {
12192 SV *sv = get_sv((char*) SWIG_prefix "STATUS_ACKED_BY_APP", TRUE | 0x2 | GV_ADDMULTI);
12193 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_ACKED_BY_APP)));
12194 SvREADONLY_on(sv);
12195 } while(0) ;
12196 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_status_report_t, (void*) "dtnapi::dtn_bundle_status_report_t");
12197 do {
12198 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_FILE", TRUE | 0x2 | GV_ADDMULTI);
12199 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_FILE)));
12200 SvREADONLY_on(sv);
12201 } while(0) ;
12202 do {
12203 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_MEM", TRUE | 0x2 | GV_ADDMULTI);
12204 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_MEM)));
12205 SvREADONLY_on(sv);
12206 } while(0) ;
12207 do {
12208 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_TEMP_FILE", TRUE | 0x2 | GV_ADDMULTI);
12209 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_TEMP_FILE)));
12210 SvREADONLY_on(sv);
12211 } while(0) ;
12212 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t, (void*) "dtnapi::dtn_bundle_payload_t");
12213 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t_buf, (void*) "dtnapi::dtn_bundle_payload_t_buf");
12214 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t_filename, (void*) "dtnapi::dtn_bundle_payload_t_filename");
12215 do {
12216 SV *sv = get_sv((char*) SWIG_prefix "DTN_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
12217 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(0)));
12218 SvREADONLY_on(sv);
12219 } while(0) ;
12220 do {
12221 SV *sv = get_sv((char*) SWIG_prefix "DTN_ERRBASE", TRUE | 0x2 | GV_ADDMULTI);
12222 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(128)));
12223 SvREADONLY_on(sv);
12224 } while(0) ;
12225 do {
12226 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
12227 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+1))));
12228 SvREADONLY_on(sv);
12229 } while(0) ;
12230 do {
12231 SV *sv = get_sv((char*) SWIG_prefix "DTN_EXDR", TRUE | 0x2 | GV_ADDMULTI);
12232 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+2))));
12233 SvREADONLY_on(sv);
12234 } while(0) ;
12235 do {
12236 SV *sv = get_sv((char*) SWIG_prefix "DTN_ECOMM", TRUE | 0x2 | GV_ADDMULTI);
12237 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+3))));
12238 SvREADONLY_on(sv);
12239 } while(0) ;
12240 do {
12241 SV *sv = get_sv((char*) SWIG_prefix "DTN_ECONNECT", TRUE | 0x2 | GV_ADDMULTI);
12242 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+4))));
12243 SvREADONLY_on(sv);
12244 } while(0) ;
12245 do {
12246 SV *sv = get_sv((char*) SWIG_prefix "DTN_ETIMEOUT", TRUE | 0x2 | GV_ADDMULTI);
12247 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+5))));
12248 SvREADONLY_on(sv);
12249 } while(0) ;
12250 do {
12251 SV *sv = get_sv((char*) SWIG_prefix "DTN_ESIZE", TRUE | 0x2 | GV_ADDMULTI);
12252 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+6))));
12253 SvREADONLY_on(sv);
12254 } while(0) ;
12255 do {
12256 SV *sv = get_sv((char*) SWIG_prefix "DTN_ENOTFOUND", TRUE | 0x2 | GV_ADDMULTI);
12257 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+7))));
12258 SvREADONLY_on(sv);
12259 } while(0) ;
12260 do {
12261 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINTERNAL", TRUE | 0x2 | GV_ADDMULTI);
12262 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+8))));
12263 SvREADONLY_on(sv);
12264 } while(0) ;
12265 do {
12266 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINPOLL", TRUE | 0x2 | GV_ADDMULTI);
12267 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+9))));
12268 SvREADONLY_on(sv);
12269 } while(0) ;
12270 do {
12271 SV *sv = get_sv((char*) SWIG_prefix "DTN_EBUSY", TRUE | 0x2 | GV_ADDMULTI);
12272 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+10))));
12273 SvREADONLY_on(sv);
12274 } while(0) ;
12275 do {
12276 SV *sv = get_sv((char*) SWIG_prefix "DTN_EVERSION", TRUE | 0x2 | GV_ADDMULTI);
12277 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+11))));
12278 SvREADONLY_on(sv);
12279 } while(0) ;
12280 do {
12281 SV *sv = get_sv((char*) SWIG_prefix "DTN_EMSGTYPE", TRUE | 0x2 | GV_ADDMULTI);
12282 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+12))));
12283 SvREADONLY_on(sv);
12284 } while(0) ;
12285 do {
12286 SV *sv = get_sv((char*) SWIG_prefix "DTN_ENOSPACE", TRUE | 0x2 | GV_ADDMULTI);
12287 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+13))));
12288 SvREADONLY_on(sv);
12289 } while(0) ;
12290 do {
12291 SV *sv = get_sv((char*) SWIG_prefix "DTN_ERRMAX", TRUE | 0x2 | GV_ADDMULTI);
12292 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(255)));
12293 SvREADONLY_on(sv);
12294 } while(0) ;
12295 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_id, (void*) "dtnapi::dtn_bundle_id");
12296 SWIG_TypeClientData(SWIGTYPE_p_dtn_status_report, (void*) "dtnapi::dtn_status_report");
12297 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle, (void*) "dtnapi::dtn_bundle");
12298 SWIG_TypeClientData(SWIGTYPE_p_dtn_session_info, (void*) "dtnapi::dtn_session_info");
12299 ST(0) = &PL_sv_yes;
12300 XSRETURN(1);
12301 }
12302
12303