|
1 /* ---------------------------------------------------------------------------- |
|
2 * This file was automatically generated by SWIG (http://www.swig.org). |
|
3 * Version 1.3.35 |
|
4 * |
|
5 * This file is not intended to be easily readable and contains a number of |
|
6 * coding conventions designed to improve portability and efficiency. Do not make |
|
7 * changes to this file unless you know what you are doing--modify the SWIG |
|
8 * interface file instead. |
|
9 * ----------------------------------------------------------------------------- */ |
|
10 |
|
11 #define SWIGPERL |
|
12 #define SWIG_CASTRANK_MODE |
|
13 |
|
14 #ifdef __cplusplus |
|
15 template<typename T> class SwigValueWrapper { |
|
16 T *tt; |
|
17 public: |
|
18 SwigValueWrapper() : tt(0) { } |
|
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } |
|
20 SwigValueWrapper(const T& t) : tt(new T(t)) { } |
|
21 ~SwigValueWrapper() { delete tt; } |
|
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } |
|
23 operator T&() const { return *tt; } |
|
24 T *operator&() { return tt; } |
|
25 private: |
|
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); |
|
27 }; |
|
28 |
|
29 template <typename T> T SwigValueInit() { |
|
30 return T(); |
|
31 } |
|
32 #endif |
|
33 |
|
34 /* ----------------------------------------------------------------------------- |
|
35 * This section contains generic SWIG labels for method/variable |
|
36 * declarations/attributes, and other compiler dependent labels. |
|
37 * ----------------------------------------------------------------------------- */ |
|
38 |
|
39 /* template workaround for compilers that cannot correctly implement the C++ standard */ |
|
40 #ifndef SWIGTEMPLATEDISAMBIGUATOR |
|
41 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
|
42 # define SWIGTEMPLATEDISAMBIGUATOR template |
|
43 # elif defined(__HP_aCC) |
|
44 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
|
45 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
|
46 # define SWIGTEMPLATEDISAMBIGUATOR template |
|
47 # else |
|
48 # define SWIGTEMPLATEDISAMBIGUATOR |
|
49 # endif |
|
50 #endif |
|
51 |
|
52 /* inline attribute */ |
|
53 #ifndef SWIGINLINE |
|
54 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) |
|
55 # define SWIGINLINE inline |
|
56 # else |
|
57 # define SWIGINLINE |
|
58 # endif |
|
59 #endif |
|
60 |
|
61 /* attribute recognised by some compilers to avoid 'unused' warnings */ |
|
62 #ifndef SWIGUNUSED |
|
63 # if defined(__GNUC__) |
|
64 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) |
|
65 # define SWIGUNUSED __attribute__ ((__unused__)) |
|
66 # else |
|
67 # define SWIGUNUSED |
|
68 # endif |
|
69 # elif defined(__ICC) |
|
70 # define SWIGUNUSED __attribute__ ((__unused__)) |
|
71 # else |
|
72 # define SWIGUNUSED |
|
73 # endif |
|
74 #endif |
|
75 |
|
76 #ifndef SWIGUNUSEDPARM |
|
77 # ifdef __cplusplus |
|
78 # define SWIGUNUSEDPARM(p) |
|
79 # else |
|
80 # define SWIGUNUSEDPARM(p) p SWIGUNUSED |
|
81 # endif |
|
82 #endif |
|
83 |
|
84 /* internal SWIG method */ |
|
85 #ifndef SWIGINTERN |
|
86 # define SWIGINTERN static SWIGUNUSED |
|
87 #endif |
|
88 |
|
89 /* internal inline SWIG method */ |
|
90 #ifndef SWIGINTERNINLINE |
|
91 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE |
|
92 #endif |
|
93 |
|
94 /* exporting methods */ |
|
95 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) |
|
96 # ifndef GCC_HASCLASSVISIBILITY |
|
97 # define GCC_HASCLASSVISIBILITY |
|
98 # endif |
|
99 #endif |
|
100 |
|
101 #ifndef SWIGEXPORT |
|
102 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
|
103 # if defined(STATIC_LINKED) |
|
104 # define SWIGEXPORT |
|
105 # else |
|
106 # define SWIGEXPORT __declspec(dllexport) |
|
107 # endif |
|
108 # else |
|
109 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
|
110 # define SWIGEXPORT __attribute__ ((visibility("default"))) |
|
111 # else |
|
112 # define SWIGEXPORT |
|
113 # endif |
|
114 # endif |
|
115 #endif |
|
116 |
|
117 /* calling conventions for Windows */ |
|
118 #ifndef SWIGSTDCALL |
|
119 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
|
120 # define SWIGSTDCALL __stdcall |
|
121 # else |
|
122 # define SWIGSTDCALL |
|
123 # endif |
|
124 #endif |
|
125 |
|
126 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
|
127 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
|
128 # define _CRT_SECURE_NO_DEPRECATE |
|
129 #endif |
|
130 |
|
131 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
|
132 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
|
133 # define _SCL_SECURE_NO_DEPRECATE |
|
134 #endif |
|
135 |
|
136 |
|
137 /* ----------------------------------------------------------------------------- |
|
138 * swigrun.swg |
|
139 * |
|
140 * This file contains generic CAPI SWIG runtime support for pointer |
|
141 * type checking. |
|
142 * ----------------------------------------------------------------------------- */ |
|
143 |
|
144 /* This should only be incremented when either the layout of swig_type_info changes, |
|
145 or for whatever reason, the runtime changes incompatibly */ |
|
146 #define SWIG_RUNTIME_VERSION "4" |
|
147 |
|
148 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
|
149 #ifdef SWIG_TYPE_TABLE |
|
150 # define SWIG_QUOTE_STRING(x) #x |
|
151 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
|
152 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
|
153 #else |
|
154 # define SWIG_TYPE_TABLE_NAME |
|
155 #endif |
|
156 |
|
157 /* |
|
158 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
|
159 creating a static or dynamic library from the swig runtime code. |
|
160 In 99.9% of the cases, swig just needs to declare them as 'static'. |
|
161 |
|
162 But only do this if is strictly necessary, ie, if you have problems |
|
163 with your compiler or so. |
|
164 */ |
|
165 |
|
166 #ifndef SWIGRUNTIME |
|
167 # define SWIGRUNTIME SWIGINTERN |
|
168 #endif |
|
169 |
|
170 #ifndef SWIGRUNTIMEINLINE |
|
171 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
|
172 #endif |
|
173 |
|
174 /* Generic buffer size */ |
|
175 #ifndef SWIG_BUFFER_SIZE |
|
176 # define SWIG_BUFFER_SIZE 1024 |
|
177 #endif |
|
178 |
|
179 /* Flags for pointer conversions */ |
|
180 #define SWIG_POINTER_DISOWN 0x1 |
|
181 #define SWIG_CAST_NEW_MEMORY 0x2 |
|
182 |
|
183 /* Flags for new pointer objects */ |
|
184 #define SWIG_POINTER_OWN 0x1 |
|
185 |
|
186 |
|
187 /* |
|
188 Flags/methods for returning states. |
|
189 |
|
190 The swig conversion methods, as ConvertPtr, return and integer |
|
191 that tells if the conversion was successful or not. And if not, |
|
192 an error code can be returned (see swigerrors.swg for the codes). |
|
193 |
|
194 Use the following macros/flags to set or process the returning |
|
195 states. |
|
196 |
|
197 In old swig versions, you usually write code as: |
|
198 |
|
199 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
|
200 // success code |
|
201 } else { |
|
202 //fail code |
|
203 } |
|
204 |
|
205 Now you can be more explicit as: |
|
206 |
|
207 int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
|
208 if (SWIG_IsOK(res)) { |
|
209 // success code |
|
210 } else { |
|
211 // fail code |
|
212 } |
|
213 |
|
214 that seems to be the same, but now you can also do |
|
215 |
|
216 Type *ptr; |
|
217 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
|
218 if (SWIG_IsOK(res)) { |
|
219 // success code |
|
220 if (SWIG_IsNewObj(res) { |
|
221 ... |
|
222 delete *ptr; |
|
223 } else { |
|
224 ... |
|
225 } |
|
226 } else { |
|
227 // fail code |
|
228 } |
|
229 |
|
230 I.e., now SWIG_ConvertPtr can return new objects and you can |
|
231 identify the case and take care of the deallocation. Of course that |
|
232 requires also to SWIG_ConvertPtr to return new result values, as |
|
233 |
|
234 int SWIG_ConvertPtr(obj, ptr,...) { |
|
235 if (<obj is ok>) { |
|
236 if (<need new object>) { |
|
237 *ptr = <ptr to new allocated object>; |
|
238 return SWIG_NEWOBJ; |
|
239 } else { |
|
240 *ptr = <ptr to old object>; |
|
241 return SWIG_OLDOBJ; |
|
242 } |
|
243 } else { |
|
244 return SWIG_BADOBJ; |
|
245 } |
|
246 } |
|
247 |
|
248 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
|
249 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
|
250 swig errors code. |
|
251 |
|
252 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
|
253 allows to return the 'cast rank', for example, if you have this |
|
254 |
|
255 int food(double) |
|
256 int fooi(int); |
|
257 |
|
258 and you call |
|
259 |
|
260 food(1) // cast rank '1' (1 -> 1.0) |
|
261 fooi(1) // cast rank '0' |
|
262 |
|
263 just use the SWIG_AddCast()/SWIG_CheckState() |
|
264 |
|
265 |
|
266 */ |
|
267 #define SWIG_OK (0) |
|
268 #define SWIG_ERROR (-1) |
|
269 #define SWIG_IsOK(r) (r >= 0) |
|
270 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) |
|
271 |
|
272 /* The CastRankLimit says how many bits are used for the cast rank */ |
|
273 #define SWIG_CASTRANKLIMIT (1 << 8) |
|
274 /* The NewMask denotes the object was created (using new/malloc) */ |
|
275 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) |
|
276 /* The TmpMask is for in/out typemaps that use temporal objects */ |
|
277 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) |
|
278 /* Simple returning values */ |
|
279 #define SWIG_BADOBJ (SWIG_ERROR) |
|
280 #define SWIG_OLDOBJ (SWIG_OK) |
|
281 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) |
|
282 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) |
|
283 /* Check, add and del mask methods */ |
|
284 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) |
|
285 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) |
|
286 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) |
|
287 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) |
|
288 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) |
|
289 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) |
|
290 |
|
291 |
|
292 /* Cast-Rank Mode */ |
|
293 #if defined(SWIG_CASTRANK_MODE) |
|
294 # ifndef SWIG_TypeRank |
|
295 # define SWIG_TypeRank unsigned long |
|
296 # endif |
|
297 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
|
298 # define SWIG_MAXCASTRANK (2) |
|
299 # endif |
|
300 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) |
|
301 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
|
302 SWIGINTERNINLINE int SWIG_AddCast(int r) { |
|
303 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
|
304 } |
|
305 SWIGINTERNINLINE int SWIG_CheckState(int r) { |
|
306 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; |
|
307 } |
|
308 #else /* no cast-rank mode */ |
|
309 # define SWIG_AddCast |
|
310 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) |
|
311 #endif |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 #include <string.h> |
|
317 |
|
318 #ifdef __cplusplus |
|
319 extern "C" { |
|
320 #endif |
|
321 |
|
322 typedef void *(*swig_converter_func)(void *, int *); |
|
323 typedef struct swig_type_info *(*swig_dycast_func)(void **); |
|
324 |
|
325 /* Structure to store information on one type */ |
|
326 typedef struct swig_type_info { |
|
327 const char *name; /* mangled name of this type */ |
|
328 const char *str; /* human readable name of this type */ |
|
329 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
|
330 struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
|
331 void *clientdata; /* language specific type data */ |
|
332 int owndata; /* flag if the structure owns the clientdata */ |
|
333 } swig_type_info; |
|
334 |
|
335 /* Structure to store a type and conversion function used for casting */ |
|
336 typedef struct swig_cast_info { |
|
337 swig_type_info *type; /* pointer to type that is equivalent to this type */ |
|
338 swig_converter_func converter; /* function to cast the void pointers */ |
|
339 struct swig_cast_info *next; /* pointer to next cast in linked list */ |
|
340 struct swig_cast_info *prev; /* pointer to the previous cast */ |
|
341 } swig_cast_info; |
|
342 |
|
343 /* Structure used to store module information |
|
344 * Each module generates one structure like this, and the runtime collects |
|
345 * all of these structures and stores them in a circularly linked list.*/ |
|
346 typedef struct swig_module_info { |
|
347 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
|
348 size_t size; /* Number of types in this module */ |
|
349 struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
|
350 swig_type_info **type_initial; /* Array of initially generated type structures */ |
|
351 swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
|
352 void *clientdata; /* Language specific module data */ |
|
353 } swig_module_info; |
|
354 |
|
355 /* |
|
356 Compare two type names skipping the space characters, therefore |
|
357 "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
|
358 |
|
359 Return 0 when the two name types are equivalent, as in |
|
360 strncmp, but skipping ' '. |
|
361 */ |
|
362 SWIGRUNTIME int |
|
363 SWIG_TypeNameComp(const char *f1, const char *l1, |
|
364 const char *f2, const char *l2) { |
|
365 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
|
366 while ((*f1 == ' ') && (f1 != l1)) ++f1; |
|
367 while ((*f2 == ' ') && (f2 != l2)) ++f2; |
|
368 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
|
369 } |
|
370 return (int)((l1 - f1) - (l2 - f2)); |
|
371 } |
|
372 |
|
373 /* |
|
374 Check type equivalence in a name list like <name1>|<name2>|... |
|
375 Return 0 if not equal, 1 if equal |
|
376 */ |
|
377 SWIGRUNTIME int |
|
378 SWIG_TypeEquiv(const char *nb, const char *tb) { |
|
379 int equiv = 0; |
|
380 const char* te = tb + strlen(tb); |
|
381 const char* ne = nb; |
|
382 while (!equiv && *ne) { |
|
383 for (nb = ne; *ne; ++ne) { |
|
384 if (*ne == '|') break; |
|
385 } |
|
386 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
|
387 if (*ne) ++ne; |
|
388 } |
|
389 return equiv; |
|
390 } |
|
391 |
|
392 /* |
|
393 Check type equivalence in a name list like <name1>|<name2>|... |
|
394 Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
|
395 */ |
|
396 SWIGRUNTIME int |
|
397 SWIG_TypeCompare(const char *nb, const char *tb) { |
|
398 int equiv = 0; |
|
399 const char* te = tb + strlen(tb); |
|
400 const char* ne = nb; |
|
401 while (!equiv && *ne) { |
|
402 for (nb = ne; *ne; ++ne) { |
|
403 if (*ne == '|') break; |
|
404 } |
|
405 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
|
406 if (*ne) ++ne; |
|
407 } |
|
408 return equiv; |
|
409 } |
|
410 |
|
411 |
|
412 /* think of this as a c++ template<> or a scheme macro */ |
|
413 #define SWIG_TypeCheck_Template(comparison, ty) \ |
|
414 if (ty) { \ |
|
415 swig_cast_info *iter = ty->cast; \ |
|
416 while (iter) { \ |
|
417 if (comparison) { \ |
|
418 if (iter == ty->cast) return iter; \ |
|
419 /* Move iter to the top of the linked list */ \ |
|
420 iter->prev->next = iter->next; \ |
|
421 if (iter->next) \ |
|
422 iter->next->prev = iter->prev; \ |
|
423 iter->next = ty->cast; \ |
|
424 iter->prev = 0; \ |
|
425 if (ty->cast) ty->cast->prev = iter; \ |
|
426 ty->cast = iter; \ |
|
427 return iter; \ |
|
428 } \ |
|
429 iter = iter->next; \ |
|
430 } \ |
|
431 } \ |
|
432 return 0 |
|
433 |
|
434 /* |
|
435 Check the typename |
|
436 */ |
|
437 SWIGRUNTIME swig_cast_info * |
|
438 SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
|
439 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
|
440 } |
|
441 |
|
442 /* Same as previous function, except strcmp is replaced with a pointer comparison */ |
|
443 SWIGRUNTIME swig_cast_info * |
|
444 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { |
|
445 SWIG_TypeCheck_Template(iter->type == from, into); |
|
446 } |
|
447 |
|
448 /* |
|
449 Cast a pointer up an inheritance hierarchy |
|
450 */ |
|
451 SWIGRUNTIMEINLINE void * |
|
452 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
|
453 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
|
454 } |
|
455 |
|
456 /* |
|
457 Dynamic pointer casting. Down an inheritance hierarchy |
|
458 */ |
|
459 SWIGRUNTIME swig_type_info * |
|
460 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
|
461 swig_type_info *lastty = ty; |
|
462 if (!ty || !ty->dcast) return ty; |
|
463 while (ty && (ty->dcast)) { |
|
464 ty = (*ty->dcast)(ptr); |
|
465 if (ty) lastty = ty; |
|
466 } |
|
467 return lastty; |
|
468 } |
|
469 |
|
470 /* |
|
471 Return the name associated with this type |
|
472 */ |
|
473 SWIGRUNTIMEINLINE const char * |
|
474 SWIG_TypeName(const swig_type_info *ty) { |
|
475 return ty->name; |
|
476 } |
|
477 |
|
478 /* |
|
479 Return the pretty name associated with this type, |
|
480 that is an unmangled type name in a form presentable to the user. |
|
481 */ |
|
482 SWIGRUNTIME const char * |
|
483 SWIG_TypePrettyName(const swig_type_info *type) { |
|
484 /* The "str" field contains the equivalent pretty names of the |
|
485 type, separated by vertical-bar characters. We choose |
|
486 to print the last name, as it is often (?) the most |
|
487 specific. */ |
|
488 if (!type) return NULL; |
|
489 if (type->str != NULL) { |
|
490 const char *last_name = type->str; |
|
491 const char *s; |
|
492 for (s = type->str; *s; s++) |
|
493 if (*s == '|') last_name = s+1; |
|
494 return last_name; |
|
495 } |
|
496 else |
|
497 return type->name; |
|
498 } |
|
499 |
|
500 /* |
|
501 Set the clientdata field for a type |
|
502 */ |
|
503 SWIGRUNTIME void |
|
504 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
|
505 swig_cast_info *cast = ti->cast; |
|
506 /* if (ti->clientdata == clientdata) return; */ |
|
507 ti->clientdata = clientdata; |
|
508 |
|
509 while (cast) { |
|
510 if (!cast->converter) { |
|
511 swig_type_info *tc = cast->type; |
|
512 if (!tc->clientdata) { |
|
513 SWIG_TypeClientData(tc, clientdata); |
|
514 } |
|
515 } |
|
516 cast = cast->next; |
|
517 } |
|
518 } |
|
519 SWIGRUNTIME void |
|
520 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
|
521 SWIG_TypeClientData(ti, clientdata); |
|
522 ti->owndata = 1; |
|
523 } |
|
524 |
|
525 /* |
|
526 Search for a swig_type_info structure only by mangled name |
|
527 Search is a O(log #types) |
|
528 |
|
529 We start searching at module start, and finish searching when start == end. |
|
530 Note: if start == end at the beginning of the function, we go all the way around |
|
531 the circular list. |
|
532 */ |
|
533 SWIGRUNTIME swig_type_info * |
|
534 SWIG_MangledTypeQueryModule(swig_module_info *start, |
|
535 swig_module_info *end, |
|
536 const char *name) { |
|
537 swig_module_info *iter = start; |
|
538 do { |
|
539 if (iter->size) { |
|
540 register size_t l = 0; |
|
541 register size_t r = iter->size - 1; |
|
542 do { |
|
543 /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
|
544 register size_t i = (l + r) >> 1; |
|
545 const char *iname = iter->types[i]->name; |
|
546 if (iname) { |
|
547 register int compare = strcmp(name, iname); |
|
548 if (compare == 0) { |
|
549 return iter->types[i]; |
|
550 } else if (compare < 0) { |
|
551 if (i) { |
|
552 r = i - 1; |
|
553 } else { |
|
554 break; |
|
555 } |
|
556 } else if (compare > 0) { |
|
557 l = i + 1; |
|
558 } |
|
559 } else { |
|
560 break; /* should never happen */ |
|
561 } |
|
562 } while (l <= r); |
|
563 } |
|
564 iter = iter->next; |
|
565 } while (iter != end); |
|
566 return 0; |
|
567 } |
|
568 |
|
569 /* |
|
570 Search for a swig_type_info structure for either a mangled name or a human readable name. |
|
571 It first searches the mangled names of the types, which is a O(log #types) |
|
572 If a type is not found it then searches the human readable names, which is O(#types). |
|
573 |
|
574 We start searching at module start, and finish searching when start == end. |
|
575 Note: if start == end at the beginning of the function, we go all the way around |
|
576 the circular list. |
|
577 */ |
|
578 SWIGRUNTIME swig_type_info * |
|
579 SWIG_TypeQueryModule(swig_module_info *start, |
|
580 swig_module_info *end, |
|
581 const char *name) { |
|
582 /* STEP 1: Search the name field using binary search */ |
|
583 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
|
584 if (ret) { |
|
585 return ret; |
|
586 } else { |
|
587 /* STEP 2: If the type hasn't been found, do a complete search |
|
588 of the str field (the human readable name) */ |
|
589 swig_module_info *iter = start; |
|
590 do { |
|
591 register size_t i = 0; |
|
592 for (; i < iter->size; ++i) { |
|
593 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
|
594 return iter->types[i]; |
|
595 } |
|
596 iter = iter->next; |
|
597 } while (iter != end); |
|
598 } |
|
599 |
|
600 /* neither found a match */ |
|
601 return 0; |
|
602 } |
|
603 |
|
604 /* |
|
605 Pack binary data into a string |
|
606 */ |
|
607 SWIGRUNTIME char * |
|
608 SWIG_PackData(char *c, void *ptr, size_t sz) { |
|
609 static const char hex[17] = "0123456789abcdef"; |
|
610 register const unsigned char *u = (unsigned char *) ptr; |
|
611 register const unsigned char *eu = u + sz; |
|
612 for (; u != eu; ++u) { |
|
613 register unsigned char uu = *u; |
|
614 *(c++) = hex[(uu & 0xf0) >> 4]; |
|
615 *(c++) = hex[uu & 0xf]; |
|
616 } |
|
617 return c; |
|
618 } |
|
619 |
|
620 /* |
|
621 Unpack binary data from a string |
|
622 */ |
|
623 SWIGRUNTIME const char * |
|
624 SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
|
625 register unsigned char *u = (unsigned char *) ptr; |
|
626 register const unsigned char *eu = u + sz; |
|
627 for (; u != eu; ++u) { |
|
628 register char d = *(c++); |
|
629 register unsigned char uu; |
|
630 if ((d >= '0') && (d <= '9')) |
|
631 uu = ((d - '0') << 4); |
|
632 else if ((d >= 'a') && (d <= 'f')) |
|
633 uu = ((d - ('a'-10)) << 4); |
|
634 else |
|
635 return (char *) 0; |
|
636 d = *(c++); |
|
637 if ((d >= '0') && (d <= '9')) |
|
638 uu |= (d - '0'); |
|
639 else if ((d >= 'a') && (d <= 'f')) |
|
640 uu |= (d - ('a'-10)); |
|
641 else |
|
642 return (char *) 0; |
|
643 *u = uu; |
|
644 } |
|
645 return c; |
|
646 } |
|
647 |
|
648 /* |
|
649 Pack 'void *' into a string buffer. |
|
650 */ |
|
651 SWIGRUNTIME char * |
|
652 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
|
653 char *r = buff; |
|
654 if ((2*sizeof(void *) + 2) > bsz) return 0; |
|
655 *(r++) = '_'; |
|
656 r = SWIG_PackData(r,&ptr,sizeof(void *)); |
|
657 if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
|
658 strcpy(r,name); |
|
659 return buff; |
|
660 } |
|
661 |
|
662 SWIGRUNTIME const char * |
|
663 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
|
664 if (*c != '_') { |
|
665 if (strcmp(c,"NULL") == 0) { |
|
666 *ptr = (void *) 0; |
|
667 return name; |
|
668 } else { |
|
669 return 0; |
|
670 } |
|
671 } |
|
672 return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
|
673 } |
|
674 |
|
675 SWIGRUNTIME char * |
|
676 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
|
677 char *r = buff; |
|
678 size_t lname = (name ? strlen(name) : 0); |
|
679 if ((2*sz + 2 + lname) > bsz) return 0; |
|
680 *(r++) = '_'; |
|
681 r = SWIG_PackData(r,ptr,sz); |
|
682 if (lname) { |
|
683 strncpy(r,name,lname+1); |
|
684 } else { |
|
685 *r = 0; |
|
686 } |
|
687 return buff; |
|
688 } |
|
689 |
|
690 SWIGRUNTIME const char * |
|
691 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
|
692 if (*c != '_') { |
|
693 if (strcmp(c,"NULL") == 0) { |
|
694 memset(ptr,0,sz); |
|
695 return name; |
|
696 } else { |
|
697 return 0; |
|
698 } |
|
699 } |
|
700 return SWIG_UnpackData(++c,ptr,sz); |
|
701 } |
|
702 |
|
703 #ifdef __cplusplus |
|
704 } |
|
705 #endif |
|
706 |
|
707 /* Errors in SWIG */ |
|
708 #define SWIG_UnknownError -1 |
|
709 #define SWIG_IOError -2 |
|
710 #define SWIG_RuntimeError -3 |
|
711 #define SWIG_IndexError -4 |
|
712 #define SWIG_TypeError -5 |
|
713 #define SWIG_DivisionByZero -6 |
|
714 #define SWIG_OverflowError -7 |
|
715 #define SWIG_SyntaxError -8 |
|
716 #define SWIG_ValueError -9 |
|
717 #define SWIG_SystemError -10 |
|
718 #define SWIG_AttributeError -11 |
|
719 #define SWIG_MemoryError -12 |
|
720 #define SWIG_NullReferenceError -13 |
|
721 |
|
722 |
|
723 |
|
724 #ifdef __cplusplus |
|
725 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ |
|
726 #include <math.h> |
|
727 #include <stdlib.h> |
|
728 extern "C" { |
|
729 #endif |
|
730 #include "EXTERN.h" |
|
731 #include "perl.h" |
|
732 #include "XSUB.h" |
|
733 |
|
734 /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ |
|
735 |
|
736 /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ |
|
737 #ifndef PERL_REVISION |
|
738 # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) |
|
739 # define PERL_PATCHLEVEL_H_IMPLICIT |
|
740 # include <patchlevel.h> |
|
741 # endif |
|
742 # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) |
|
743 # include <could_not_find_Perl_patchlevel.h> |
|
744 # endif |
|
745 # ifndef PERL_REVISION |
|
746 # define PERL_REVISION (5) |
|
747 # define PERL_VERSION PATCHLEVEL |
|
748 # define PERL_SUBVERSION SUBVERSION |
|
749 # endif |
|
750 #endif |
|
751 |
|
752 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) |
|
753 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) |
|
754 #endif |
|
755 |
|
756 #ifndef SvIOK_UV |
|
757 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) |
|
758 #endif |
|
759 |
|
760 #ifndef SvUOK |
|
761 # define SvUOK(sv) SvIOK_UV(sv) |
|
762 #endif |
|
763 |
|
764 #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) |
|
765 # define PL_sv_undef sv_undef |
|
766 # define PL_na na |
|
767 # define PL_errgv errgv |
|
768 # define PL_sv_no sv_no |
|
769 # define PL_sv_yes sv_yes |
|
770 # define PL_markstack_ptr markstack_ptr |
|
771 #endif |
|
772 |
|
773 #ifndef IVSIZE |
|
774 # ifdef LONGSIZE |
|
775 # define IVSIZE LONGSIZE |
|
776 # else |
|
777 # define IVSIZE 4 /* A bold guess, but the best we can make. */ |
|
778 # endif |
|
779 #endif |
|
780 |
|
781 #ifndef INT2PTR |
|
782 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) |
|
783 # define PTRV UV |
|
784 # define INT2PTR(any,d) (any)(d) |
|
785 # else |
|
786 # if PTRSIZE == LONGSIZE |
|
787 # define PTRV unsigned long |
|
788 # else |
|
789 # define PTRV unsigned |
|
790 # endif |
|
791 # define INT2PTR(any,d) (any)(PTRV)(d) |
|
792 # endif |
|
793 |
|
794 # define NUM2PTR(any,d) (any)(PTRV)(d) |
|
795 # define PTR2IV(p) INT2PTR(IV,p) |
|
796 # define PTR2UV(p) INT2PTR(UV,p) |
|
797 # define PTR2NV(p) NUM2PTR(NV,p) |
|
798 |
|
799 # if PTRSIZE == LONGSIZE |
|
800 # define PTR2ul(p) (unsigned long)(p) |
|
801 # else |
|
802 # define PTR2ul(p) INT2PTR(unsigned long,p) |
|
803 # endif |
|
804 #endif /* !INT2PTR */ |
|
805 |
|
806 #ifndef SvPV_nolen |
|
807 # define SvPV_nolen(x) SvPV(x,PL_na) |
|
808 #endif |
|
809 |
|
810 #ifndef get_sv |
|
811 # define get_sv perl_get_sv |
|
812 #endif |
|
813 |
|
814 #ifndef ERRSV |
|
815 # define ERRSV get_sv("@",FALSE) |
|
816 #endif |
|
817 |
|
818 #ifndef pTHX_ |
|
819 #define pTHX_ |
|
820 #endif |
|
821 |
|
822 #include <string.h> |
|
823 #ifdef __cplusplus |
|
824 } |
|
825 #endif |
|
826 |
|
827 /* ----------------------------------------------------------------------------- |
|
828 * error manipulation |
|
829 * ----------------------------------------------------------------------------- */ |
|
830 |
|
831 SWIGINTERN const char* |
|
832 SWIG_Perl_ErrorType(int code) { |
|
833 const char* type = 0; |
|
834 switch(code) { |
|
835 case SWIG_MemoryError: |
|
836 type = "MemoryError"; |
|
837 break; |
|
838 case SWIG_IOError: |
|
839 type = "IOError"; |
|
840 break; |
|
841 case SWIG_RuntimeError: |
|
842 type = "RuntimeError"; |
|
843 break; |
|
844 case SWIG_IndexError: |
|
845 type = "IndexError"; |
|
846 break; |
|
847 case SWIG_TypeError: |
|
848 type = "TypeError"; |
|
849 break; |
|
850 case SWIG_DivisionByZero: |
|
851 type = "ZeroDivisionError"; |
|
852 break; |
|
853 case SWIG_OverflowError: |
|
854 type = "OverflowError"; |
|
855 break; |
|
856 case SWIG_SyntaxError: |
|
857 type = "SyntaxError"; |
|
858 break; |
|
859 case SWIG_ValueError: |
|
860 type = "ValueError"; |
|
861 break; |
|
862 case SWIG_SystemError: |
|
863 type = "SystemError"; |
|
864 break; |
|
865 case SWIG_AttributeError: |
|
866 type = "AttributeError"; |
|
867 break; |
|
868 default: |
|
869 type = "RuntimeError"; |
|
870 } |
|
871 return type; |
|
872 } |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 /* ----------------------------------------------------------------------------- |
|
878 * perlrun.swg |
|
879 * |
|
880 * This file contains the runtime support for Perl modules |
|
881 * and includes code for managing global variables and pointer |
|
882 * type checking. |
|
883 * ----------------------------------------------------------------------------- */ |
|
884 |
|
885 #ifdef PERL_OBJECT |
|
886 #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), |
|
887 #define SWIG_PERL_OBJECT_CALL pPerl, |
|
888 #else |
|
889 #define SWIG_PERL_OBJECT_DECL |
|
890 #define SWIG_PERL_OBJECT_CALL |
|
891 #endif |
|
892 |
|
893 /* Common SWIG API */ |
|
894 |
|
895 /* for raw pointers */ |
|
896 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) |
|
897 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) |
|
898 |
|
899 /* for raw packed data */ |
|
900 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) |
|
901 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) |
|
902 |
|
903 /* for class or struct pointers */ |
|
904 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) |
|
905 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) |
|
906 |
|
907 /* for C or C++ function pointers */ |
|
908 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) |
|
909 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) |
|
910 |
|
911 /* for C++ member pointers, ie, member methods */ |
|
912 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) |
|
913 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) |
|
914 |
|
915 |
|
916 /* Runtime API */ |
|
917 |
|
918 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule() |
|
919 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) |
|
920 |
|
921 |
|
922 /* Error manipulation */ |
|
923 |
|
924 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) |
|
925 #define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg) |
|
926 #define SWIG_fail goto fail |
|
927 |
|
928 /* Perl-specific SWIG API */ |
|
929 |
|
930 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) |
|
931 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) |
|
932 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) |
|
933 |
|
934 |
|
935 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) |
|
936 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) |
|
937 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) |
|
938 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) |
|
939 |
|
940 /* ----------------------------------------------------------------------------- |
|
941 * pointers/data manipulation |
|
942 * ----------------------------------------------------------------------------- */ |
|
943 |
|
944 /* For backward compatibility only */ |
|
945 #define SWIG_POINTER_EXCEPTION 0 |
|
946 |
|
947 #ifdef __cplusplus |
|
948 extern "C" { |
|
949 #endif |
|
950 |
|
951 #define SWIG_OWNER SWIG_POINTER_OWN |
|
952 #define SWIG_SHADOW SWIG_OWNER << 1 |
|
953 |
|
954 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL |
|
955 |
|
956 /* SWIG Perl macros */ |
|
957 |
|
958 /* Macro to declare an XS function */ |
|
959 #ifndef XSPROTO |
|
960 # define XSPROTO(name) void name(pTHX_ CV* cv) |
|
961 #endif |
|
962 |
|
963 /* Macro to call an XS function */ |
|
964 #ifdef PERL_OBJECT |
|
965 # define SWIG_CALLXS(_name) _name(cv,pPerl) |
|
966 #else |
|
967 # ifndef MULTIPLICITY |
|
968 # define SWIG_CALLXS(_name) _name(cv) |
|
969 # else |
|
970 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) |
|
971 # endif |
|
972 #endif |
|
973 |
|
974 #ifdef PERL_OBJECT |
|
975 #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; |
|
976 |
|
977 #ifdef __cplusplus |
|
978 extern "C" { |
|
979 #endif |
|
980 typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); |
|
981 #ifdef __cplusplus |
|
982 } |
|
983 #endif |
|
984 |
|
985 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
|
986 #define SWIGCLASS_STATIC |
|
987 |
|
988 #else /* PERL_OBJECT */ |
|
989 |
|
990 #define MAGIC_PPERL |
|
991 #define SWIGCLASS_STATIC static SWIGUNUSED |
|
992 |
|
993 #ifndef MULTIPLICITY |
|
994 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) |
|
995 |
|
996 #ifdef __cplusplus |
|
997 extern "C" { |
|
998 #endif |
|
999 typedef int (*SwigMagicFunc)(SV *, MAGIC *); |
|
1000 #ifdef __cplusplus |
|
1001 } |
|
1002 #endif |
|
1003 |
|
1004 #else /* MULTIPLICITY */ |
|
1005 |
|
1006 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) |
|
1007 |
|
1008 #ifdef __cplusplus |
|
1009 extern "C" { |
|
1010 #endif |
|
1011 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); |
|
1012 #ifdef __cplusplus |
|
1013 } |
|
1014 #endif |
|
1015 |
|
1016 #endif /* MULTIPLICITY */ |
|
1017 #endif /* PERL_OBJECT */ |
|
1018 |
|
1019 /* Workaround for bug in perl 5.6.x croak and earlier */ |
|
1020 #if (PERL_VERSION < 8) |
|
1021 # ifdef PERL_OBJECT |
|
1022 # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) |
|
1023 static void SWIG_Perl_croak_null(CPerlObj *pPerl) |
|
1024 # else |
|
1025 static void SWIG_croak_null() |
|
1026 # endif |
|
1027 { |
|
1028 SV *err=ERRSV; |
|
1029 # if (PERL_VERSION < 6) |
|
1030 croak("%_", err); |
|
1031 # else |
|
1032 if (SvOK(err) && !SvROK(err)) croak("%_", err); |
|
1033 croak(Nullch); |
|
1034 # endif |
|
1035 } |
|
1036 #else |
|
1037 # define SWIG_croak_null() croak(Nullch) |
|
1038 #endif |
|
1039 |
|
1040 |
|
1041 /* |
|
1042 Define how strict is the cast between strings and integers/doubles |
|
1043 when overloading between these types occurs. |
|
1044 |
|
1045 The default is making it as strict as possible by using SWIG_AddCast |
|
1046 when needed. |
|
1047 |
|
1048 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to |
|
1049 disable the SWIG_AddCast, making the casting between string and |
|
1050 numbers less strict. |
|
1051 |
|
1052 In the end, we try to solve the overloading between strings and |
|
1053 numerical types in the more natural way, but if you can avoid it, |
|
1054 well, avoid it using %rename, for example. |
|
1055 */ |
|
1056 #ifndef SWIG_PERL_NO_STRICT_STR2NUM |
|
1057 # ifndef SWIG_PERL_STRICT_STR2NUM |
|
1058 # define SWIG_PERL_STRICT_STR2NUM |
|
1059 # endif |
|
1060 #endif |
|
1061 #ifdef SWIG_PERL_STRICT_STR2NUM |
|
1062 /* string takes precedence */ |
|
1063 #define SWIG_Str2NumCast(x) SWIG_AddCast(x) |
|
1064 #else |
|
1065 /* number takes precedence */ |
|
1066 #define SWIG_Str2NumCast(x) x |
|
1067 #endif |
|
1068 |
|
1069 |
|
1070 |
|
1071 #include <stdlib.h> |
|
1072 |
|
1073 SWIGRUNTIME const char * |
|
1074 SWIG_Perl_TypeProxyName(const swig_type_info *type) { |
|
1075 if (!type) return NULL; |
|
1076 if (type->clientdata != NULL) { |
|
1077 return (const char*) type->clientdata; |
|
1078 } |
|
1079 else { |
|
1080 return type->name; |
|
1081 } |
|
1082 } |
|
1083 |
|
1084 SWIGRUNTIME swig_cast_info * |
|
1085 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { |
|
1086 SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) |
|
1087 || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty); |
|
1088 } |
|
1089 |
|
1090 |
|
1091 /* Function for getting a pointer value */ |
|
1092 |
|
1093 SWIGRUNTIME int |
|
1094 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { |
|
1095 swig_cast_info *tc; |
|
1096 void *voidptr = (void *)0; |
|
1097 SV *tsv = 0; |
|
1098 /* If magical, apply more magic */ |
|
1099 if (SvGMAGICAL(sv)) |
|
1100 mg_get(sv); |
|
1101 |
|
1102 /* Check to see if this is an object */ |
|
1103 if (sv_isobject(sv)) { |
|
1104 IV tmp = 0; |
|
1105 tsv = (SV*) SvRV(sv); |
|
1106 if ((SvTYPE(tsv) == SVt_PVHV)) { |
|
1107 MAGIC *mg; |
|
1108 if (SvMAGICAL(tsv)) { |
|
1109 mg = mg_find(tsv,'P'); |
|
1110 if (mg) { |
|
1111 sv = mg->mg_obj; |
|
1112 if (sv_isobject(sv)) { |
|
1113 tsv = (SV*)SvRV(sv); |
|
1114 tmp = SvIV(tsv); |
|
1115 } |
|
1116 } |
|
1117 } else { |
|
1118 return SWIG_ERROR; |
|
1119 } |
|
1120 } else { |
|
1121 tmp = SvIV(tsv); |
|
1122 } |
|
1123 voidptr = INT2PTR(void *,tmp); |
|
1124 } else if (! SvOK(sv)) { /* Check for undef */ |
|
1125 *(ptr) = (void *) 0; |
|
1126 return SWIG_OK; |
|
1127 } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
|
1128 if (!SvROK(sv)) { |
|
1129 *(ptr) = (void *) 0; |
|
1130 return SWIG_OK; |
|
1131 } else { |
|
1132 return SWIG_ERROR; |
|
1133 } |
|
1134 } else { /* Don't know what it is */ |
|
1135 return SWIG_ERROR; |
|
1136 } |
|
1137 if (_t) { |
|
1138 /* Now see if the types match */ |
|
1139 char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
1140 tc = SWIG_TypeProxyCheck(_c,_t); |
|
1141 if (!tc) { |
|
1142 return SWIG_ERROR; |
|
1143 } |
|
1144 { |
|
1145 int newmemory = 0; |
|
1146 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); |
|
1147 assert(!newmemory); /* newmemory handling not yet implemented */ |
|
1148 } |
|
1149 } else { |
|
1150 *ptr = voidptr; |
|
1151 } |
|
1152 |
|
1153 /* |
|
1154 * DISOWN implementation: we need a perl guru to check this one. |
|
1155 */ |
|
1156 if (tsv && (flags & SWIG_POINTER_DISOWN)) { |
|
1157 /* |
|
1158 * almost copy paste code from below SWIG_POINTER_OWN setting |
|
1159 */ |
|
1160 SV *obj = sv; |
|
1161 HV *stash = SvSTASH(SvRV(obj)); |
|
1162 GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE); |
|
1163 if (isGV(gv)) { |
|
1164 HV *hv = GvHVn(gv); |
|
1165 /* |
|
1166 * To set ownership (see below), a newSViv(1) entry is added. |
|
1167 * Hence, to remove ownership, we delete the entry. |
|
1168 */ |
|
1169 if (hv_exists_ent(hv, obj, 0)) { |
|
1170 hv_delete_ent(hv, obj, 0, 0); |
|
1171 } |
|
1172 } |
|
1173 } |
|
1174 return SWIG_OK; |
|
1175 } |
|
1176 |
|
1177 SWIGRUNTIME void |
|
1178 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { |
|
1179 if (ptr && (flags & SWIG_SHADOW)) { |
|
1180 SV *self; |
|
1181 SV *obj=newSV(0); |
|
1182 HV *hash=newHV(); |
|
1183 HV *stash; |
|
1184 sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr); |
|
1185 stash=SvSTASH(SvRV(obj)); |
|
1186 if (flags & SWIG_POINTER_OWN) { |
|
1187 HV *hv; |
|
1188 GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE); |
|
1189 if (!isGV(gv)) |
|
1190 gv_init(gv, stash, "OWNER", 5, FALSE); |
|
1191 hv=GvHVn(gv); |
|
1192 hv_store_ent(hv, obj, newSViv(1), 0); |
|
1193 } |
|
1194 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); |
|
1195 SvREFCNT_dec(obj); |
|
1196 self=newRV_noinc((SV *)hash); |
|
1197 sv_setsv(sv, self); |
|
1198 SvREFCNT_dec((SV *)self); |
|
1199 sv_bless(sv, stash); |
|
1200 } |
|
1201 else { |
|
1202 sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr); |
|
1203 } |
|
1204 } |
|
1205 |
|
1206 SWIGRUNTIMEINLINE SV * |
|
1207 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { |
|
1208 SV *result = sv_newmortal(); |
|
1209 SWIG_MakePtr(result, ptr, t, flags); |
|
1210 return result; |
|
1211 } |
|
1212 |
|
1213 SWIGRUNTIME void |
|
1214 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { |
|
1215 char result[1024]; |
|
1216 char *r = result; |
|
1217 if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
|
1218 *(r++) = '_'; |
|
1219 r = SWIG_PackData(r,ptr,sz); |
|
1220 strcpy(r,SWIG_Perl_TypeProxyName(type)); |
|
1221 sv_setpv(sv, result); |
|
1222 } |
|
1223 |
|
1224 SWIGRUNTIME SV * |
|
1225 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { |
|
1226 SV *result = sv_newmortal(); |
|
1227 SWIG_Perl_MakePackedObj(result, ptr, sz, type); |
|
1228 return result; |
|
1229 } |
|
1230 |
|
1231 /* Convert a packed value value */ |
|
1232 SWIGRUNTIME int |
|
1233 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { |
|
1234 swig_cast_info *tc; |
|
1235 const char *c = 0; |
|
1236 |
|
1237 if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
|
1238 c = SvPV_nolen(obj); |
|
1239 /* Pointer values must start with leading underscore */ |
|
1240 if (*c != '_') return SWIG_ERROR; |
|
1241 c++; |
|
1242 c = SWIG_UnpackData(c,ptr,sz); |
|
1243 if (ty) { |
|
1244 tc = SWIG_TypeCheck(c,ty); |
|
1245 if (!tc) return SWIG_ERROR; |
|
1246 } |
|
1247 return SWIG_OK; |
|
1248 } |
|
1249 |
|
1250 |
|
1251 /* Macros for low-level exception handling */ |
|
1252 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } |
|
1253 |
|
1254 |
|
1255 typedef XSPROTO(SwigPerlWrapper); |
|
1256 typedef SwigPerlWrapper *SwigPerlWrapperPtr; |
|
1257 |
|
1258 /* Structure for command table */ |
|
1259 typedef struct { |
|
1260 const char *name; |
|
1261 SwigPerlWrapperPtr wrapper; |
|
1262 } swig_command_info; |
|
1263 |
|
1264 /* Information for constant table */ |
|
1265 |
|
1266 #define SWIG_INT 1 |
|
1267 #define SWIG_FLOAT 2 |
|
1268 #define SWIG_STRING 3 |
|
1269 #define SWIG_POINTER 4 |
|
1270 #define SWIG_BINARY 5 |
|
1271 |
|
1272 /* Constant information structure */ |
|
1273 typedef struct swig_constant_info { |
|
1274 int type; |
|
1275 const char *name; |
|
1276 long lvalue; |
|
1277 double dvalue; |
|
1278 void *pvalue; |
|
1279 swig_type_info **ptype; |
|
1280 } swig_constant_info; |
|
1281 |
|
1282 |
|
1283 /* Structure for variable table */ |
|
1284 typedef struct { |
|
1285 const char *name; |
|
1286 SwigMagicFunc set; |
|
1287 SwigMagicFunc get; |
|
1288 swig_type_info **type; |
|
1289 } swig_variable_info; |
|
1290 |
|
1291 /* Magic variable code */ |
|
1292 #ifndef PERL_OBJECT |
|
1293 #define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c) |
|
1294 #ifndef MULTIPLICITY |
|
1295 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) |
|
1296 #else |
|
1297 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) |
|
1298 #endif |
|
1299 #else |
|
1300 # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) |
|
1301 SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) |
|
1302 #endif |
|
1303 { |
|
1304 MAGIC *mg; |
|
1305 sv_magic(sv,sv,'U',(char *) name,strlen(name)); |
|
1306 mg = mg_find(sv,'U'); |
|
1307 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); |
|
1308 mg->mg_virtual->svt_get = (SwigMagicFunc) get; |
|
1309 mg->mg_virtual->svt_set = (SwigMagicFunc) set; |
|
1310 mg->mg_virtual->svt_len = 0; |
|
1311 mg->mg_virtual->svt_clear = 0; |
|
1312 mg->mg_virtual->svt_free = 0; |
|
1313 } |
|
1314 |
|
1315 |
|
1316 SWIGRUNTIME swig_module_info * |
|
1317 SWIG_Perl_GetModule(void) { |
|
1318 static void *type_pointer = (void *)0; |
|
1319 SV *pointer; |
|
1320 |
|
1321 /* first check if pointer already created */ |
|
1322 if (!type_pointer) { |
|
1323 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); |
|
1324 if (pointer && SvOK(pointer)) { |
|
1325 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); |
|
1326 } |
|
1327 } |
|
1328 |
|
1329 return (swig_module_info *) type_pointer; |
|
1330 } |
|
1331 |
|
1332 SWIGRUNTIME void |
|
1333 SWIG_Perl_SetModule(swig_module_info *module) { |
|
1334 SV *pointer; |
|
1335 |
|
1336 /* create a new pointer */ |
|
1337 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); |
|
1338 sv_setiv(pointer, PTR2IV(module)); |
|
1339 } |
|
1340 |
|
1341 #ifdef __cplusplus |
|
1342 } |
|
1343 #endif |
|
1344 |
|
1345 /* Workaround perl5 global namespace pollution. Note that undefining library |
|
1346 * functions like fopen will not solve the problem on all platforms as fopen |
|
1347 * might be a macro on Windows but not necessarily on other operating systems. */ |
|
1348 #ifdef do_open |
|
1349 #undef do_open |
|
1350 #endif |
|
1351 #ifdef do_close |
|
1352 #undef do_close |
|
1353 #endif |
|
1354 #ifdef scalar |
|
1355 #undef scalar |
|
1356 #endif |
|
1357 #ifdef list |
|
1358 #undef list |
|
1359 #endif |
|
1360 #ifdef apply |
|
1361 #undef apply |
|
1362 #endif |
|
1363 #ifdef convert |
|
1364 #undef convert |
|
1365 #endif |
|
1366 #ifdef Error |
|
1367 #undef Error |
|
1368 #endif |
|
1369 #ifdef form |
|
1370 #undef form |
|
1371 #endif |
|
1372 #ifdef vform |
|
1373 #undef vform |
|
1374 #endif |
|
1375 #ifdef LABEL |
|
1376 #undef LABEL |
|
1377 #endif |
|
1378 #ifdef METHOD |
|
1379 #undef METHOD |
|
1380 #endif |
|
1381 #ifdef Move |
|
1382 #undef Move |
|
1383 #endif |
|
1384 #ifdef yylex |
|
1385 #undef yylex |
|
1386 #endif |
|
1387 #ifdef yyparse |
|
1388 #undef yyparse |
|
1389 #endif |
|
1390 #ifdef yyerror |
|
1391 #undef yyerror |
|
1392 #endif |
|
1393 #ifdef invert |
|
1394 #undef invert |
|
1395 #endif |
|
1396 #ifdef ref |
|
1397 #undef ref |
|
1398 #endif |
|
1399 #ifdef read |
|
1400 #undef read |
|
1401 #endif |
|
1402 #ifdef write |
|
1403 #undef write |
|
1404 #endif |
|
1405 #ifdef eof |
|
1406 #undef eof |
|
1407 #endif |
|
1408 #ifdef bool |
|
1409 #undef bool |
|
1410 #endif |
|
1411 #ifdef close |
|
1412 #undef close |
|
1413 #endif |
|
1414 #ifdef rewind |
|
1415 #undef rewind |
|
1416 #endif |
|
1417 #ifdef free |
|
1418 #undef free |
|
1419 #endif |
|
1420 #ifdef malloc |
|
1421 #undef malloc |
|
1422 #endif |
|
1423 #ifdef calloc |
|
1424 #undef calloc |
|
1425 #endif |
|
1426 #ifdef Stat |
|
1427 #undef Stat |
|
1428 #endif |
|
1429 #ifdef check |
|
1430 #undef check |
|
1431 #endif |
|
1432 #ifdef seekdir |
|
1433 #undef seekdir |
|
1434 #endif |
|
1435 #ifdef open |
|
1436 #undef open |
|
1437 #endif |
|
1438 |
|
1439 |
|
1440 |
|
1441 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) |
|
1442 |
|
1443 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else |
|
1444 |
|
1445 |
|
1446 |
|
1447 /* -------- TYPES TABLE (BEGIN) -------- */ |
|
1448 |
|
1449 #define SWIGTYPE_p_XDR swig_types[0] |
|
1450 #define SWIGTYPE_p_bool_t swig_types[1] |
|
1451 #define SWIGTYPE_p_char swig_types[2] |
|
1452 #define SWIGTYPE_p_dtn_bundle swig_types[3] |
|
1453 #define SWIGTYPE_p_dtn_bundle_delivery_opts_t swig_types[4] |
|
1454 #define SWIGTYPE_p_dtn_bundle_id swig_types[5] |
|
1455 #define SWIGTYPE_p_dtn_bundle_id_t swig_types[6] |
|
1456 #define SWIGTYPE_p_dtn_bundle_payload_location_t swig_types[7] |
|
1457 #define SWIGTYPE_p_dtn_bundle_payload_t swig_types[8] |
|
1458 #define SWIGTYPE_p_dtn_bundle_payload_t_buf swig_types[9] |
|
1459 #define SWIGTYPE_p_dtn_bundle_payload_t_filename swig_types[10] |
|
1460 #define SWIGTYPE_p_dtn_bundle_priority_t swig_types[11] |
|
1461 #define SWIGTYPE_p_dtn_bundle_spec_t swig_types[12] |
|
1462 #define SWIGTYPE_p_dtn_bundle_spec_t_blocks swig_types[13] |
|
1463 #define SWIGTYPE_p_dtn_bundle_spec_t_metadata swig_types[14] |
|
1464 #define SWIGTYPE_p_dtn_bundle_status_report_t swig_types[15] |
|
1465 #define SWIGTYPE_p_dtn_endpoint_id_t swig_types[16] |
|
1466 #define SWIGTYPE_p_dtn_extension_block_flags_t swig_types[17] |
|
1467 #define SWIGTYPE_p_dtn_extension_block_t swig_types[18] |
|
1468 #define SWIGTYPE_p_dtn_extension_block_t_data swig_types[19] |
|
1469 #define SWIGTYPE_p_dtn_handle_t swig_types[20] |
|
1470 #define SWIGTYPE_p_dtn_reg_flags_t swig_types[21] |
|
1471 #define SWIGTYPE_p_dtn_reg_info_t swig_types[22] |
|
1472 #define SWIGTYPE_p_dtn_reg_info_t_script swig_types[23] |
|
1473 #define SWIGTYPE_p_dtn_sequence_id_t swig_types[24] |
|
1474 #define SWIGTYPE_p_dtn_sequence_id_t_data swig_types[25] |
|
1475 #define SWIGTYPE_p_dtn_service_tag_t swig_types[26] |
|
1476 #define SWIGTYPE_p_dtn_session_info swig_types[27] |
|
1477 #define SWIGTYPE_p_dtn_status_report swig_types[28] |
|
1478 #define SWIGTYPE_p_dtn_status_report_flags_t swig_types[29] |
|
1479 #define SWIGTYPE_p_dtn_status_report_reason_t swig_types[30] |
|
1480 #define SWIGTYPE_p_dtn_timestamp_t swig_types[31] |
|
1481 #define SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t swig_types[32] |
|
1482 #define SWIGTYPE_p_u_int swig_types[33] |
|
1483 static swig_type_info *swig_types[35]; |
|
1484 static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0}; |
|
1485 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
|
1486 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
|
1487 |
|
1488 /* -------- TYPES TABLE (END) -------- */ |
|
1489 |
|
1490 #define SWIG_init boot_dtnapi |
|
1491 |
|
1492 #define SWIG_name "dtnapic::boot_dtnapi" |
|
1493 #define SWIG_prefix "dtnapic::" |
|
1494 |
|
1495 #define SWIGVERSION 0x010335 |
|
1496 #define SWIG_VERSION SWIGVERSION |
|
1497 |
|
1498 |
|
1499 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
|
1500 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) |
|
1501 |
|
1502 |
|
1503 #include <stdexcept> |
|
1504 |
|
1505 |
|
1506 #ifdef __cplusplus |
|
1507 extern "C" |
|
1508 #endif |
|
1509 #ifndef PERL_OBJECT |
|
1510 #ifndef MULTIPLICITY |
|
1511 SWIGEXPORT void SWIG_init (CV* cv); |
|
1512 #else |
|
1513 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); |
|
1514 #endif |
|
1515 #else |
|
1516 SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); |
|
1517 #endif |
|
1518 |
|
1519 |
|
1520 #include <string> |
|
1521 |
|
1522 |
|
1523 /* Include files needed to build the wrapper code */ |
|
1524 using namespace std; |
|
1525 |
|
1526 #include <applib/dtn_types.h> |
|
1527 #include <applib/dtn_api.h> |
|
1528 #include <applib/dtn_api_wrap.cc> |
|
1529 |
|
1530 |
|
1531 SWIGINTERNINLINE SV * |
|
1532 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) |
|
1533 { |
|
1534 SV *obj = sv_newmortal(); |
|
1535 sv_setiv(obj, (IV) value); |
|
1536 return obj; |
|
1537 } |
|
1538 |
|
1539 |
|
1540 SWIGINTERNINLINE SV * |
|
1541 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) |
|
1542 { |
|
1543 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); |
|
1544 } |
|
1545 |
|
1546 |
|
1547 SWIGINTERN swig_type_info* |
|
1548 SWIG_pchar_descriptor(void) |
|
1549 { |
|
1550 static int init = 0; |
|
1551 static swig_type_info* info = 0; |
|
1552 if (!init) { |
|
1553 info = SWIG_TypeQuery("_p_char"); |
|
1554 init = 1; |
|
1555 } |
|
1556 return info; |
|
1557 } |
|
1558 |
|
1559 |
|
1560 SWIGINTERN int |
|
1561 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) |
|
1562 { |
|
1563 if (SvPOK(obj)) { |
|
1564 STRLEN len = 0; |
|
1565 char *cstr = SvPV(obj, len); |
|
1566 size_t size = len + 1; |
|
1567 if (cptr) { |
|
1568 if (alloc) { |
|
1569 if (*alloc == SWIG_NEWOBJ) { |
|
1570 *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); |
|
1571 } else { |
|
1572 *cptr = cstr; |
|
1573 *alloc = SWIG_OLDOBJ; |
|
1574 } |
|
1575 } |
|
1576 } |
|
1577 if (psize) *psize = size; |
|
1578 return SWIG_OK; |
|
1579 } else { |
|
1580 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
|
1581 if (pchar_descriptor) { |
|
1582 char* vptr = 0; |
|
1583 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
|
1584 if (cptr) *cptr = vptr; |
|
1585 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
|
1586 if (alloc) *alloc = SWIG_OLDOBJ; |
|
1587 return SWIG_OK; |
|
1588 } |
|
1589 } |
|
1590 } |
|
1591 return SWIG_TypeError; |
|
1592 } |
|
1593 |
|
1594 |
|
1595 SWIGINTERN int |
|
1596 SWIG_AsCharArray(SV * obj, char *val, size_t size) |
|
1597 { |
|
1598 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; |
|
1599 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); |
|
1600 if (SWIG_IsOK(res)) { |
|
1601 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; |
|
1602 if (csize <= size) { |
|
1603 if (val) { |
|
1604 if (csize) memcpy(val, cptr, csize*sizeof(char)); |
|
1605 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); |
|
1606 } |
|
1607 if (alloc == SWIG_NEWOBJ) { |
|
1608 delete[] cptr; |
|
1609 res = SWIG_DelNewMask(res); |
|
1610 } |
|
1611 return res; |
|
1612 } |
|
1613 if (alloc == SWIG_NEWOBJ) delete[] cptr; |
|
1614 } |
|
1615 return SWIG_TypeError; |
|
1616 } |
|
1617 |
|
1618 |
|
1619 SWIGINTERNINLINE SV * |
|
1620 SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
|
1621 { |
|
1622 SV *obj = sv_newmortal(); |
|
1623 if (carray) { |
|
1624 sv_setpvn(obj, carray, size); |
|
1625 } else { |
|
1626 sv_setsv(obj, &PL_sv_undef); |
|
1627 } |
|
1628 return obj; |
|
1629 } |
|
1630 |
|
1631 |
|
1632 typedef struct { |
|
1633 u_int script_len; |
|
1634 char *script_val; |
|
1635 } dtn_reg_info_t_script; |
|
1636 |
|
1637 |
|
1638 |
|
1639 |
|
1640 |
|
1641 |
|
1642 SWIGINTERNINLINE SV * |
|
1643 SWIG_FromCharPtr(const char *cptr) |
|
1644 { |
|
1645 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
|
1646 } |
|
1647 |
|
1648 |
|
1649 typedef struct { |
|
1650 u_int data_len; |
|
1651 char *data_val; |
|
1652 } dtn_extension_block_t_data; |
|
1653 |
|
1654 |
|
1655 |
|
1656 typedef struct { |
|
1657 u_int data_len; |
|
1658 char *data_val; |
|
1659 } dtn_sequence_id_t_data; |
|
1660 |
|
1661 |
|
1662 |
|
1663 #include <limits.h> |
|
1664 #if !defined(SWIG_NO_LLONG_MAX) |
|
1665 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) |
|
1666 # define LLONG_MAX __LONG_LONG_MAX__ |
|
1667 # define LLONG_MIN (-LLONG_MAX - 1LL) |
|
1668 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) |
|
1669 # endif |
|
1670 #endif |
|
1671 |
|
1672 |
|
1673 SWIGINTERN int |
|
1674 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) |
|
1675 { |
|
1676 if (SvNIOK(obj)) { |
|
1677 if (val) *val = SvNV(obj); |
|
1678 return SWIG_OK; |
|
1679 } else if (SvIOK(obj)) { |
|
1680 if (val) *val = (double) SvIV(obj); |
|
1681 return SWIG_AddCast(SWIG_OK); |
|
1682 } else { |
|
1683 const char *nptr = SvPV_nolen(obj); |
|
1684 if (nptr) { |
|
1685 char *endptr; |
|
1686 double v = strtod(nptr, &endptr); |
|
1687 if (errno == ERANGE) { |
|
1688 errno = 0; |
|
1689 return SWIG_OverflowError; |
|
1690 } else { |
|
1691 if (*endptr == '\0') { |
|
1692 if (val) *val = v; |
|
1693 return SWIG_Str2NumCast(SWIG_OK); |
|
1694 } |
|
1695 } |
|
1696 } |
|
1697 } |
|
1698 return SWIG_TypeError; |
|
1699 } |
|
1700 |
|
1701 |
|
1702 #include <float.h> |
|
1703 |
|
1704 |
|
1705 #include <math.h> |
|
1706 |
|
1707 |
|
1708 SWIGINTERNINLINE int |
|
1709 SWIG_CanCastAsInteger(double *d, double min, double max) { |
|
1710 double x = *d; |
|
1711 if ((min <= x && x <= max)) { |
|
1712 double fx = floor(x); |
|
1713 double cx = ceil(x); |
|
1714 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
|
1715 if ((errno == EDOM) || (errno == ERANGE)) { |
|
1716 errno = 0; |
|
1717 } else { |
|
1718 double summ, reps, diff; |
|
1719 if (rd < x) { |
|
1720 diff = x - rd; |
|
1721 } else if (rd > x) { |
|
1722 diff = rd - x; |
|
1723 } else { |
|
1724 return 1; |
|
1725 } |
|
1726 summ = rd + x; |
|
1727 reps = diff/summ; |
|
1728 if (reps < 8*DBL_EPSILON) { |
|
1729 *d = rd; |
|
1730 return 1; |
|
1731 } |
|
1732 } |
|
1733 } |
|
1734 return 0; |
|
1735 } |
|
1736 |
|
1737 |
|
1738 SWIGINTERN int |
|
1739 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) |
|
1740 { |
|
1741 if (SvIOK(obj)) { |
|
1742 if (val) *val = SvIV(obj); |
|
1743 return SWIG_OK; |
|
1744 } else { |
|
1745 int dispatch = 0; |
|
1746 const char *nptr = SvPV_nolen(obj); |
|
1747 if (nptr) { |
|
1748 char *endptr; |
|
1749 long v; |
|
1750 errno = 0; |
|
1751 v = strtol(nptr, &endptr,0); |
|
1752 if (errno == ERANGE) { |
|
1753 errno = 0; |
|
1754 return SWIG_OverflowError; |
|
1755 } else { |
|
1756 if (*endptr == '\0') { |
|
1757 if (val) *val = v; |
|
1758 return SWIG_Str2NumCast(SWIG_OK); |
|
1759 } |
|
1760 } |
|
1761 } |
|
1762 if (!dispatch) { |
|
1763 double d; |
|
1764 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
|
1765 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { |
|
1766 if (val) *val = (long)(d); |
|
1767 return res; |
|
1768 } |
|
1769 } |
|
1770 } |
|
1771 return SWIG_TypeError; |
|
1772 } |
|
1773 |
|
1774 |
|
1775 SWIGINTERN int |
|
1776 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) |
|
1777 { |
|
1778 long v; |
|
1779 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); |
|
1780 if (SWIG_IsOK(res)) { |
|
1781 if ((v < INT_MIN || v > INT_MAX)) { |
|
1782 return SWIG_OverflowError; |
|
1783 } else { |
|
1784 if (val) *val = static_cast< int >(v); |
|
1785 } |
|
1786 } |
|
1787 return res; |
|
1788 } |
|
1789 |
|
1790 |
|
1791 typedef struct { |
|
1792 u_int metadata_len; |
|
1793 dtn_extension_block_t *metadata_val; |
|
1794 } dtn_bundle_spec_t_metadata; |
|
1795 |
|
1796 |
|
1797 |
|
1798 typedef struct { |
|
1799 u_int blocks_len; |
|
1800 dtn_extension_block_t *blocks_val; |
|
1801 } dtn_bundle_spec_t_blocks; |
|
1802 |
|
1803 |
|
1804 |
|
1805 typedef struct { |
|
1806 u_int buf_len; |
|
1807 char *buf_val; |
|
1808 } dtn_bundle_payload_t_buf; |
|
1809 |
|
1810 |
|
1811 |
|
1812 typedef struct { |
|
1813 u_int filename_len; |
|
1814 char *filename_val; |
|
1815 } dtn_bundle_payload_t_filename; |
|
1816 |
|
1817 |
|
1818 |
|
1819 SWIGINTERN int |
|
1820 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) |
|
1821 { |
|
1822 if (SvUOK(obj)) { |
|
1823 if (val) *val = SvUV(obj); |
|
1824 return SWIG_OK; |
|
1825 } else if (SvIOK(obj)) { |
|
1826 long v = SvIV(obj); |
|
1827 if (v >= 0) { |
|
1828 if (val) *val = v; |
|
1829 return SWIG_OK; |
|
1830 } else { |
|
1831 return SWIG_OverflowError; |
|
1832 } |
|
1833 } else { |
|
1834 int dispatch = 0; |
|
1835 const char *nptr = SvPV_nolen(obj); |
|
1836 if (nptr) { |
|
1837 char *endptr; |
|
1838 unsigned long v; |
|
1839 errno = 0; |
|
1840 v = strtoul(nptr, &endptr,0); |
|
1841 if (errno == ERANGE) { |
|
1842 errno = 0; |
|
1843 return SWIG_OverflowError; |
|
1844 } else { |
|
1845 if (*endptr == '\0') { |
|
1846 if (val) *val = v; |
|
1847 return SWIG_Str2NumCast(SWIG_OK); |
|
1848 } |
|
1849 } |
|
1850 } |
|
1851 if (!dispatch) { |
|
1852 double d; |
|
1853 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); |
|
1854 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
|
1855 if (val) *val = (unsigned long)(d); |
|
1856 return res; |
|
1857 } |
|
1858 } |
|
1859 } |
|
1860 return SWIG_TypeError; |
|
1861 } |
|
1862 |
|
1863 |
|
1864 SWIGINTERN int |
|
1865 SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) |
|
1866 { |
|
1867 unsigned long v; |
|
1868 int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); |
|
1869 if (SWIG_IsOK(res)) { |
|
1870 if ((v > UINT_MAX)) { |
|
1871 return SWIG_OverflowError; |
|
1872 } else { |
|
1873 if (val) *val = static_cast< unsigned int >(v); |
|
1874 } |
|
1875 } |
|
1876 return res; |
|
1877 } |
|
1878 |
|
1879 |
|
1880 SWIGINTERNINLINE SV * |
|
1881 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) |
|
1882 { |
|
1883 SV *obj = sv_newmortal(); |
|
1884 sv_setuv(obj, (UV) value); |
|
1885 return obj; |
|
1886 } |
|
1887 |
|
1888 |
|
1889 SWIGINTERNINLINE SV * |
|
1890 SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value) |
|
1891 { |
|
1892 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); |
|
1893 } |
|
1894 |
|
1895 |
|
1896 SWIGINTERNINLINE SV * |
|
1897 SWIG_From_std_string SWIG_PERL_DECL_ARGS_1(const std::string& s) |
|
1898 { |
|
1899 if (s.size()) { |
|
1900 return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
|
1901 } else { |
|
1902 return SWIG_FromCharPtrAndSize(s.c_str(), 0); |
|
1903 } |
|
1904 } |
|
1905 |
|
1906 |
|
1907 SWIGINTERN int |
|
1908 SWIG_AsPtr_std_string SWIG_PERL_DECL_ARGS_2(SV * obj, std::string **val) |
|
1909 { |
|
1910 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; |
|
1911 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { |
|
1912 if (buf) { |
|
1913 if (val) *val = new std::string(buf, size - 1); |
|
1914 if (alloc == SWIG_NEWOBJ) delete[] buf; |
|
1915 return SWIG_NEWOBJ; |
|
1916 } else { |
|
1917 if (val) *val = 0; |
|
1918 return SWIG_OLDOBJ; |
|
1919 } |
|
1920 } else { |
|
1921 static int init = 0; |
|
1922 static swig_type_info* descriptor = 0; |
|
1923 if (!init) { |
|
1924 descriptor = SWIG_TypeQuery("std::string" " *"); |
|
1925 init = 1; |
|
1926 } |
|
1927 if (descriptor) { |
|
1928 std::string *vptr; |
|
1929 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); |
|
1930 if (SWIG_IsOK(res) && val) *val = vptr; |
|
1931 return res; |
|
1932 } |
|
1933 } |
|
1934 return SWIG_ERROR; |
|
1935 } |
|
1936 |
|
1937 |
|
1938 SWIGINTERN int |
|
1939 SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) |
|
1940 { |
|
1941 if (obj == &PL_sv_yes) { |
|
1942 if (val) *val = true; |
|
1943 return SWIG_OK; |
|
1944 } else if (obj == &PL_sv_no) { |
|
1945 if (val) *val = false; |
|
1946 return SWIG_OK; |
|
1947 } else { |
|
1948 if (val) *val = SvTRUE(obj) ? true: false; |
|
1949 return SWIG_AddCast(SWIG_OK); |
|
1950 } |
|
1951 return SWIG_TypeError; |
|
1952 } |
|
1953 |
|
1954 #ifdef __cplusplus |
|
1955 extern "C" { |
|
1956 #endif |
|
1957 |
|
1958 #ifdef PERL_OBJECT |
|
1959 #define MAGIC_CLASS _wrap_dtnapi_var:: |
|
1960 class _wrap_dtnapi_var : public CPerlObj { |
|
1961 public: |
|
1962 #else |
|
1963 #define MAGIC_CLASS |
|
1964 #endif |
|
1965 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { |
|
1966 MAGIC_PPERL |
|
1967 croak("Value is read-only."); |
|
1968 return 0; |
|
1969 } |
|
1970 SWIGCLASS_STATIC int _wrap_Handles_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
|
1971 MAGIC_PPERL |
|
1972 { |
|
1973 void *argp = 0; |
|
1974 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t, 0 ); |
|
1975 if (!SWIG_IsOK(res)) { |
|
1976 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""Handles""' of type '""HandleMap""'"); |
|
1977 } |
|
1978 if (!argp) { |
|
1979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Handles""' of type '""HandleMap""'"); |
|
1980 } else { |
|
1981 Handles = *(reinterpret_cast< HandleMap * >(argp)); |
|
1982 } |
|
1983 } |
|
1984 fail: |
|
1985 return 1; |
|
1986 } |
|
1987 |
|
1988 |
|
1989 SWIGCLASS_STATIC int _wrap_Handles_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
|
1990 MAGIC_PPERL |
|
1991 sv_setiv(SvRV(sv), PTR2IV(&Handles)); |
|
1992 return 1; |
|
1993 } |
|
1994 |
|
1995 |
|
1996 SWIGCLASS_STATIC int _wrap_HandleID_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { |
|
1997 MAGIC_PPERL |
|
1998 { |
|
1999 unsigned int val; |
|
2000 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(sv, &val); |
|
2001 if (!SWIG_IsOK(res)) { |
|
2002 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""HandleID""' of type '""unsigned int""'"); |
|
2003 } |
|
2004 HandleID = static_cast< unsigned int >(val); |
|
2005 } |
|
2006 fail: |
|
2007 return 1; |
|
2008 } |
|
2009 |
|
2010 |
|
2011 SWIGCLASS_STATIC int _wrap_HandleID_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { |
|
2012 MAGIC_PPERL |
|
2013 sv_setsv(sv,SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(HandleID))) ; |
|
2014 return 1; |
|
2015 } |
|
2016 |
|
2017 |
|
2018 |
|
2019 |
|
2020 #ifdef PERL_OBJECT |
|
2021 }; |
|
2022 #endif |
|
2023 |
|
2024 #ifdef __cplusplus |
|
2025 } |
|
2026 #endif |
|
2027 |
|
2028 #ifdef __cplusplus |
|
2029 extern "C" { |
|
2030 #endif |
|
2031 XS(_wrap_dtn_endpoint_id_t_uri_set) { |
|
2032 { |
|
2033 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ; |
|
2034 char *arg2 ; |
|
2035 void *argp1 = 0 ; |
|
2036 int res1 = 0 ; |
|
2037 char temp2[256] ; |
|
2038 int res2 ; |
|
2039 int argvi = 0; |
|
2040 dXSARGS; |
|
2041 |
|
2042 if ((items < 2) || (items > 2)) { |
|
2043 SWIG_croak("Usage: dtn_endpoint_id_t_uri_set(self,uri);"); |
|
2044 } |
|
2045 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
2046 if (!SWIG_IsOK(res1)) { |
|
2047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_endpoint_id_t_uri_set" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'"); |
|
2048 } |
|
2049 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1); |
|
2050 res2 = SWIG_AsCharArray(ST(1), temp2, 256); |
|
2051 if (!SWIG_IsOK(res2)) { |
|
2052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_endpoint_id_t_uri_set" "', argument " "2"" of type '" "char [256]""'"); |
|
2053 } |
|
2054 arg2 = reinterpret_cast< char * >(temp2); |
|
2055 if (arg2) memcpy(arg1->uri,arg2,256*sizeof(char)); |
|
2056 else memset(arg1->uri,0,256*sizeof(char)); |
|
2057 |
|
2058 |
|
2059 |
|
2060 XSRETURN(argvi); |
|
2061 fail: |
|
2062 |
|
2063 |
|
2064 SWIG_croak_null(); |
|
2065 } |
|
2066 } |
|
2067 |
|
2068 |
|
2069 XS(_wrap_dtn_endpoint_id_t_uri_get) { |
|
2070 { |
|
2071 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ; |
|
2072 char *result = 0 ; |
|
2073 void *argp1 = 0 ; |
|
2074 int res1 = 0 ; |
|
2075 int argvi = 0; |
|
2076 dXSARGS; |
|
2077 |
|
2078 if ((items < 1) || (items > 1)) { |
|
2079 SWIG_croak("Usage: dtn_endpoint_id_t_uri_get(self);"); |
|
2080 } |
|
2081 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
2082 if (!SWIG_IsOK(res1)) { |
|
2083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_endpoint_id_t_uri_get" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'"); |
|
2084 } |
|
2085 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1); |
|
2086 result = (char *)(char *) ((arg1)->uri); |
|
2087 { |
|
2088 size_t size = 256; |
|
2089 |
|
2090 while (size && (result[size - 1] == '\0')) --size; |
|
2091 |
|
2092 ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; |
|
2093 } |
|
2094 |
|
2095 XSRETURN(argvi); |
|
2096 fail: |
|
2097 |
|
2098 SWIG_croak_null(); |
|
2099 } |
|
2100 } |
|
2101 |
|
2102 |
|
2103 XS(_wrap_new_dtn_endpoint_id_t) { |
|
2104 { |
|
2105 dtn_endpoint_id_t *result = 0 ; |
|
2106 int argvi = 0; |
|
2107 dXSARGS; |
|
2108 |
|
2109 if ((items < 0) || (items > 0)) { |
|
2110 SWIG_croak("Usage: new_dtn_endpoint_id_t();"); |
|
2111 } |
|
2112 result = (dtn_endpoint_id_t *)new dtn_endpoint_id_t(); |
|
2113 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
2114 XSRETURN(argvi); |
|
2115 fail: |
|
2116 SWIG_croak_null(); |
|
2117 } |
|
2118 } |
|
2119 |
|
2120 |
|
2121 XS(_wrap_delete_dtn_endpoint_id_t) { |
|
2122 { |
|
2123 dtn_endpoint_id_t *arg1 = (dtn_endpoint_id_t *) 0 ; |
|
2124 void *argp1 = 0 ; |
|
2125 int res1 = 0 ; |
|
2126 int argvi = 0; |
|
2127 dXSARGS; |
|
2128 |
|
2129 if ((items < 1) || (items > 1)) { |
|
2130 SWIG_croak("Usage: delete_dtn_endpoint_id_t(self);"); |
|
2131 } |
|
2132 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_endpoint_id_t, SWIG_POINTER_DISOWN | 0 ); |
|
2133 if (!SWIG_IsOK(res1)) { |
|
2134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_endpoint_id_t" "', argument " "1"" of type '" "dtn_endpoint_id_t *""'"); |
|
2135 } |
|
2136 arg1 = reinterpret_cast< dtn_endpoint_id_t * >(argp1); |
|
2137 delete arg1; |
|
2138 |
|
2139 |
|
2140 |
|
2141 XSRETURN(argvi); |
|
2142 fail: |
|
2143 |
|
2144 SWIG_croak_null(); |
|
2145 } |
|
2146 } |
|
2147 |
|
2148 |
|
2149 XS(_wrap_dtn_timestamp_t_secs_set) { |
|
2150 { |
|
2151 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ; |
|
2152 u_int arg2 ; |
|
2153 void *argp1 = 0 ; |
|
2154 int res1 = 0 ; |
|
2155 void *argp2 ; |
|
2156 int res2 = 0 ; |
|
2157 int argvi = 0; |
|
2158 dXSARGS; |
|
2159 |
|
2160 if ((items < 2) || (items > 2)) { |
|
2161 SWIG_croak("Usage: dtn_timestamp_t_secs_set(self,secs);"); |
|
2162 } |
|
2163 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
2164 if (!SWIG_IsOK(res1)) { |
|
2165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_secs_set" "', argument " "1"" of type '" "dtn_timestamp_t *""'"); |
|
2166 } |
|
2167 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1); |
|
2168 { |
|
2169 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2170 if (!SWIG_IsOK(res2)) { |
|
2171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_timestamp_t_secs_set" "', argument " "2"" of type '" "u_int""'"); |
|
2172 } |
|
2173 if (!argp2) { |
|
2174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_timestamp_t_secs_set" "', argument " "2"" of type '" "u_int""'"); |
|
2175 } else { |
|
2176 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
2177 } |
|
2178 } |
|
2179 if (arg1) (arg1)->secs = arg2; |
|
2180 |
|
2181 |
|
2182 |
|
2183 XSRETURN(argvi); |
|
2184 fail: |
|
2185 |
|
2186 SWIG_croak_null(); |
|
2187 } |
|
2188 } |
|
2189 |
|
2190 |
|
2191 XS(_wrap_dtn_timestamp_t_secs_get) { |
|
2192 { |
|
2193 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ; |
|
2194 u_int result; |
|
2195 void *argp1 = 0 ; |
|
2196 int res1 = 0 ; |
|
2197 int argvi = 0; |
|
2198 dXSARGS; |
|
2199 |
|
2200 if ((items < 1) || (items > 1)) { |
|
2201 SWIG_croak("Usage: dtn_timestamp_t_secs_get(self);"); |
|
2202 } |
|
2203 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
2204 if (!SWIG_IsOK(res1)) { |
|
2205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_secs_get" "', argument " "1"" of type '" "dtn_timestamp_t *""'"); |
|
2206 } |
|
2207 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1); |
|
2208 result = ((arg1)->secs); |
|
2209 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2210 |
|
2211 XSRETURN(argvi); |
|
2212 fail: |
|
2213 |
|
2214 SWIG_croak_null(); |
|
2215 } |
|
2216 } |
|
2217 |
|
2218 |
|
2219 XS(_wrap_dtn_timestamp_t_seqno_set) { |
|
2220 { |
|
2221 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ; |
|
2222 u_int arg2 ; |
|
2223 void *argp1 = 0 ; |
|
2224 int res1 = 0 ; |
|
2225 void *argp2 ; |
|
2226 int res2 = 0 ; |
|
2227 int argvi = 0; |
|
2228 dXSARGS; |
|
2229 |
|
2230 if ((items < 2) || (items > 2)) { |
|
2231 SWIG_croak("Usage: dtn_timestamp_t_seqno_set(self,seqno);"); |
|
2232 } |
|
2233 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
2234 if (!SWIG_IsOK(res1)) { |
|
2235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_seqno_set" "', argument " "1"" of type '" "dtn_timestamp_t *""'"); |
|
2236 } |
|
2237 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1); |
|
2238 { |
|
2239 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2240 if (!SWIG_IsOK(res2)) { |
|
2241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_timestamp_t_seqno_set" "', argument " "2"" of type '" "u_int""'"); |
|
2242 } |
|
2243 if (!argp2) { |
|
2244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_timestamp_t_seqno_set" "', argument " "2"" of type '" "u_int""'"); |
|
2245 } else { |
|
2246 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
2247 } |
|
2248 } |
|
2249 if (arg1) (arg1)->seqno = arg2; |
|
2250 |
|
2251 |
|
2252 |
|
2253 XSRETURN(argvi); |
|
2254 fail: |
|
2255 |
|
2256 SWIG_croak_null(); |
|
2257 } |
|
2258 } |
|
2259 |
|
2260 |
|
2261 XS(_wrap_dtn_timestamp_t_seqno_get) { |
|
2262 { |
|
2263 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ; |
|
2264 u_int result; |
|
2265 void *argp1 = 0 ; |
|
2266 int res1 = 0 ; |
|
2267 int argvi = 0; |
|
2268 dXSARGS; |
|
2269 |
|
2270 if ((items < 1) || (items > 1)) { |
|
2271 SWIG_croak("Usage: dtn_timestamp_t_seqno_get(self);"); |
|
2272 } |
|
2273 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
2274 if (!SWIG_IsOK(res1)) { |
|
2275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_timestamp_t_seqno_get" "', argument " "1"" of type '" "dtn_timestamp_t *""'"); |
|
2276 } |
|
2277 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1); |
|
2278 result = ((arg1)->seqno); |
|
2279 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2280 |
|
2281 XSRETURN(argvi); |
|
2282 fail: |
|
2283 |
|
2284 SWIG_croak_null(); |
|
2285 } |
|
2286 } |
|
2287 |
|
2288 |
|
2289 XS(_wrap_new_dtn_timestamp_t) { |
|
2290 { |
|
2291 dtn_timestamp_t *result = 0 ; |
|
2292 int argvi = 0; |
|
2293 dXSARGS; |
|
2294 |
|
2295 if ((items < 0) || (items > 0)) { |
|
2296 SWIG_croak("Usage: new_dtn_timestamp_t();"); |
|
2297 } |
|
2298 result = (dtn_timestamp_t *)new dtn_timestamp_t(); |
|
2299 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
2300 XSRETURN(argvi); |
|
2301 fail: |
|
2302 SWIG_croak_null(); |
|
2303 } |
|
2304 } |
|
2305 |
|
2306 |
|
2307 XS(_wrap_delete_dtn_timestamp_t) { |
|
2308 { |
|
2309 dtn_timestamp_t *arg1 = (dtn_timestamp_t *) 0 ; |
|
2310 void *argp1 = 0 ; |
|
2311 int res1 = 0 ; |
|
2312 int argvi = 0; |
|
2313 dXSARGS; |
|
2314 |
|
2315 if ((items < 1) || (items > 1)) { |
|
2316 SWIG_croak("Usage: delete_dtn_timestamp_t(self);"); |
|
2317 } |
|
2318 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_timestamp_t, SWIG_POINTER_DISOWN | 0 ); |
|
2319 if (!SWIG_IsOK(res1)) { |
|
2320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_timestamp_t" "', argument " "1"" of type '" "dtn_timestamp_t *""'"); |
|
2321 } |
|
2322 arg1 = reinterpret_cast< dtn_timestamp_t * >(argp1); |
|
2323 delete arg1; |
|
2324 |
|
2325 |
|
2326 |
|
2327 XSRETURN(argvi); |
|
2328 fail: |
|
2329 |
|
2330 SWIG_croak_null(); |
|
2331 } |
|
2332 } |
|
2333 |
|
2334 |
|
2335 XS(_wrap_dtn_service_tag_t_tag_set) { |
|
2336 { |
|
2337 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ; |
|
2338 char *arg2 ; |
|
2339 void *argp1 = 0 ; |
|
2340 int res1 = 0 ; |
|
2341 char temp2[256] ; |
|
2342 int res2 ; |
|
2343 int argvi = 0; |
|
2344 dXSARGS; |
|
2345 |
|
2346 if ((items < 2) || (items > 2)) { |
|
2347 SWIG_croak("Usage: dtn_service_tag_t_tag_set(self,tag);"); |
|
2348 } |
|
2349 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 ); |
|
2350 if (!SWIG_IsOK(res1)) { |
|
2351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_service_tag_t_tag_set" "', argument " "1"" of type '" "dtn_service_tag_t *""'"); |
|
2352 } |
|
2353 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1); |
|
2354 res2 = SWIG_AsCharArray(ST(1), temp2, 256); |
|
2355 if (!SWIG_IsOK(res2)) { |
|
2356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_service_tag_t_tag_set" "', argument " "2"" of type '" "char [256]""'"); |
|
2357 } |
|
2358 arg2 = reinterpret_cast< char * >(temp2); |
|
2359 if (arg2) memcpy(arg1->tag,arg2,256*sizeof(char)); |
|
2360 else memset(arg1->tag,0,256*sizeof(char)); |
|
2361 |
|
2362 |
|
2363 |
|
2364 XSRETURN(argvi); |
|
2365 fail: |
|
2366 |
|
2367 |
|
2368 SWIG_croak_null(); |
|
2369 } |
|
2370 } |
|
2371 |
|
2372 |
|
2373 XS(_wrap_dtn_service_tag_t_tag_get) { |
|
2374 { |
|
2375 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ; |
|
2376 char *result = 0 ; |
|
2377 void *argp1 = 0 ; |
|
2378 int res1 = 0 ; |
|
2379 int argvi = 0; |
|
2380 dXSARGS; |
|
2381 |
|
2382 if ((items < 1) || (items > 1)) { |
|
2383 SWIG_croak("Usage: dtn_service_tag_t_tag_get(self);"); |
|
2384 } |
|
2385 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 ); |
|
2386 if (!SWIG_IsOK(res1)) { |
|
2387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_service_tag_t_tag_get" "', argument " "1"" of type '" "dtn_service_tag_t *""'"); |
|
2388 } |
|
2389 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1); |
|
2390 result = (char *)(char *) ((arg1)->tag); |
|
2391 { |
|
2392 size_t size = 256; |
|
2393 |
|
2394 while (size && (result[size - 1] == '\0')) --size; |
|
2395 |
|
2396 ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; |
|
2397 } |
|
2398 |
|
2399 XSRETURN(argvi); |
|
2400 fail: |
|
2401 |
|
2402 SWIG_croak_null(); |
|
2403 } |
|
2404 } |
|
2405 |
|
2406 |
|
2407 XS(_wrap_new_dtn_service_tag_t) { |
|
2408 { |
|
2409 dtn_service_tag_t *result = 0 ; |
|
2410 int argvi = 0; |
|
2411 dXSARGS; |
|
2412 |
|
2413 if ((items < 0) || (items > 0)) { |
|
2414 SWIG_croak("Usage: new_dtn_service_tag_t();"); |
|
2415 } |
|
2416 result = (dtn_service_tag_t *)new dtn_service_tag_t(); |
|
2417 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_service_tag_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
2418 XSRETURN(argvi); |
|
2419 fail: |
|
2420 SWIG_croak_null(); |
|
2421 } |
|
2422 } |
|
2423 |
|
2424 |
|
2425 XS(_wrap_delete_dtn_service_tag_t) { |
|
2426 { |
|
2427 dtn_service_tag_t *arg1 = (dtn_service_tag_t *) 0 ; |
|
2428 void *argp1 = 0 ; |
|
2429 int res1 = 0 ; |
|
2430 int argvi = 0; |
|
2431 dXSARGS; |
|
2432 |
|
2433 if ((items < 1) || (items > 1)) { |
|
2434 SWIG_croak("Usage: delete_dtn_service_tag_t(self);"); |
|
2435 } |
|
2436 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_service_tag_t, SWIG_POINTER_DISOWN | 0 ); |
|
2437 if (!SWIG_IsOK(res1)) { |
|
2438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_service_tag_t" "', argument " "1"" of type '" "dtn_service_tag_t *""'"); |
|
2439 } |
|
2440 arg1 = reinterpret_cast< dtn_service_tag_t * >(argp1); |
|
2441 delete arg1; |
|
2442 |
|
2443 |
|
2444 |
|
2445 XSRETURN(argvi); |
|
2446 fail: |
|
2447 |
|
2448 SWIG_croak_null(); |
|
2449 } |
|
2450 } |
|
2451 |
|
2452 |
|
2453 XS(_wrap_dtn_reg_info_t_endpoint_set) { |
|
2454 { |
|
2455 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2456 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
2457 void *argp1 = 0 ; |
|
2458 int res1 = 0 ; |
|
2459 void *argp2 = 0 ; |
|
2460 int res2 = 0 ; |
|
2461 int argvi = 0; |
|
2462 dXSARGS; |
|
2463 |
|
2464 if ((items < 2) || (items > 2)) { |
|
2465 SWIG_croak("Usage: dtn_reg_info_t_endpoint_set(self,endpoint);"); |
|
2466 } |
|
2467 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2468 if (!SWIG_IsOK(res1)) { |
|
2469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_endpoint_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2470 } |
|
2471 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2472 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
2473 if (!SWIG_IsOK(res2)) { |
|
2474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_endpoint_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
2475 } |
|
2476 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
2477 if (arg1) (arg1)->endpoint = *arg2; |
|
2478 |
|
2479 |
|
2480 |
|
2481 |
|
2482 XSRETURN(argvi); |
|
2483 fail: |
|
2484 |
|
2485 |
|
2486 SWIG_croak_null(); |
|
2487 } |
|
2488 } |
|
2489 |
|
2490 |
|
2491 XS(_wrap_dtn_reg_info_t_endpoint_get) { |
|
2492 { |
|
2493 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2494 dtn_endpoint_id_t *result = 0 ; |
|
2495 void *argp1 = 0 ; |
|
2496 int res1 = 0 ; |
|
2497 int argvi = 0; |
|
2498 dXSARGS; |
|
2499 |
|
2500 if ((items < 1) || (items > 1)) { |
|
2501 SWIG_croak("Usage: dtn_reg_info_t_endpoint_get(self);"); |
|
2502 } |
|
2503 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2504 if (!SWIG_IsOK(res1)) { |
|
2505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_endpoint_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2506 } |
|
2507 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2508 result = (dtn_endpoint_id_t *)& ((arg1)->endpoint); |
|
2509 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
2510 |
|
2511 XSRETURN(argvi); |
|
2512 fail: |
|
2513 |
|
2514 SWIG_croak_null(); |
|
2515 } |
|
2516 } |
|
2517 |
|
2518 |
|
2519 XS(_wrap_dtn_reg_info_t_regid_set) { |
|
2520 { |
|
2521 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2522 dtn_reg_id_t arg2 ; |
|
2523 void *argp1 = 0 ; |
|
2524 int res1 = 0 ; |
|
2525 void *argp2 ; |
|
2526 int res2 = 0 ; |
|
2527 int argvi = 0; |
|
2528 dXSARGS; |
|
2529 |
|
2530 if ((items < 2) || (items > 2)) { |
|
2531 SWIG_croak("Usage: dtn_reg_info_t_regid_set(self,regid);"); |
|
2532 } |
|
2533 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2534 if (!SWIG_IsOK(res1)) { |
|
2535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_regid_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2536 } |
|
2537 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2538 { |
|
2539 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2540 if (!SWIG_IsOK(res2)) { |
|
2541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
2542 } |
|
2543 if (!argp2) { |
|
2544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
2545 } else { |
|
2546 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2)); |
|
2547 } |
|
2548 } |
|
2549 if (arg1) (arg1)->regid = arg2; |
|
2550 |
|
2551 |
|
2552 |
|
2553 XSRETURN(argvi); |
|
2554 fail: |
|
2555 |
|
2556 SWIG_croak_null(); |
|
2557 } |
|
2558 } |
|
2559 |
|
2560 |
|
2561 XS(_wrap_dtn_reg_info_t_regid_get) { |
|
2562 { |
|
2563 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2564 dtn_reg_id_t result; |
|
2565 void *argp1 = 0 ; |
|
2566 int res1 = 0 ; |
|
2567 int argvi = 0; |
|
2568 dXSARGS; |
|
2569 |
|
2570 if ((items < 1) || (items > 1)) { |
|
2571 SWIG_croak("Usage: dtn_reg_info_t_regid_get(self);"); |
|
2572 } |
|
2573 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2574 if (!SWIG_IsOK(res1)) { |
|
2575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_regid_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2576 } |
|
2577 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2578 result = ((arg1)->regid); |
|
2579 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++ ; |
|
2580 |
|
2581 XSRETURN(argvi); |
|
2582 fail: |
|
2583 |
|
2584 SWIG_croak_null(); |
|
2585 } |
|
2586 } |
|
2587 |
|
2588 |
|
2589 XS(_wrap_dtn_reg_info_t_flags_set) { |
|
2590 { |
|
2591 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2592 u_int arg2 ; |
|
2593 void *argp1 = 0 ; |
|
2594 int res1 = 0 ; |
|
2595 void *argp2 ; |
|
2596 int res2 = 0 ; |
|
2597 int argvi = 0; |
|
2598 dXSARGS; |
|
2599 |
|
2600 if ((items < 2) || (items > 2)) { |
|
2601 SWIG_croak("Usage: dtn_reg_info_t_flags_set(self,flags);"); |
|
2602 } |
|
2603 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2604 if (!SWIG_IsOK(res1)) { |
|
2605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_flags_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2606 } |
|
2607 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2608 { |
|
2609 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2610 if (!SWIG_IsOK(res2)) { |
|
2611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_flags_set" "', argument " "2"" of type '" "u_int""'"); |
|
2612 } |
|
2613 if (!argp2) { |
|
2614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_flags_set" "', argument " "2"" of type '" "u_int""'"); |
|
2615 } else { |
|
2616 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
2617 } |
|
2618 } |
|
2619 if (arg1) (arg1)->flags = arg2; |
|
2620 |
|
2621 |
|
2622 |
|
2623 XSRETURN(argvi); |
|
2624 fail: |
|
2625 |
|
2626 SWIG_croak_null(); |
|
2627 } |
|
2628 } |
|
2629 |
|
2630 |
|
2631 XS(_wrap_dtn_reg_info_t_flags_get) { |
|
2632 { |
|
2633 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2634 u_int result; |
|
2635 void *argp1 = 0 ; |
|
2636 int res1 = 0 ; |
|
2637 int argvi = 0; |
|
2638 dXSARGS; |
|
2639 |
|
2640 if ((items < 1) || (items > 1)) { |
|
2641 SWIG_croak("Usage: dtn_reg_info_t_flags_get(self);"); |
|
2642 } |
|
2643 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2644 if (!SWIG_IsOK(res1)) { |
|
2645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_flags_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2646 } |
|
2647 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2648 result = ((arg1)->flags); |
|
2649 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2650 |
|
2651 XSRETURN(argvi); |
|
2652 fail: |
|
2653 |
|
2654 SWIG_croak_null(); |
|
2655 } |
|
2656 } |
|
2657 |
|
2658 |
|
2659 XS(_wrap_dtn_reg_info_t_expiration_set) { |
|
2660 { |
|
2661 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2662 dtn_timeval_t arg2 ; |
|
2663 void *argp1 = 0 ; |
|
2664 int res1 = 0 ; |
|
2665 void *argp2 ; |
|
2666 int res2 = 0 ; |
|
2667 int argvi = 0; |
|
2668 dXSARGS; |
|
2669 |
|
2670 if ((items < 2) || (items > 2)) { |
|
2671 SWIG_croak("Usage: dtn_reg_info_t_expiration_set(self,expiration);"); |
|
2672 } |
|
2673 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2674 if (!SWIG_IsOK(res1)) { |
|
2675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_expiration_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2676 } |
|
2677 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2678 { |
|
2679 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2680 if (!SWIG_IsOK(res2)) { |
|
2681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'"); |
|
2682 } |
|
2683 if (!argp2) { |
|
2684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'"); |
|
2685 } else { |
|
2686 arg2 = *(reinterpret_cast< dtn_timeval_t * >(argp2)); |
|
2687 } |
|
2688 } |
|
2689 if (arg1) (arg1)->expiration = arg2; |
|
2690 |
|
2691 |
|
2692 |
|
2693 XSRETURN(argvi); |
|
2694 fail: |
|
2695 |
|
2696 SWIG_croak_null(); |
|
2697 } |
|
2698 } |
|
2699 |
|
2700 |
|
2701 XS(_wrap_dtn_reg_info_t_expiration_get) { |
|
2702 { |
|
2703 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2704 dtn_timeval_t result; |
|
2705 void *argp1 = 0 ; |
|
2706 int res1 = 0 ; |
|
2707 int argvi = 0; |
|
2708 dXSARGS; |
|
2709 |
|
2710 if ((items < 1) || (items > 1)) { |
|
2711 SWIG_croak("Usage: dtn_reg_info_t_expiration_get(self);"); |
|
2712 } |
|
2713 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2714 if (!SWIG_IsOK(res1)) { |
|
2715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_expiration_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2716 } |
|
2717 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2718 result = ((arg1)->expiration); |
|
2719 ST(argvi) = SWIG_NewPointerObj((new dtn_timeval_t(static_cast< const dtn_timeval_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2720 |
|
2721 XSRETURN(argvi); |
|
2722 fail: |
|
2723 |
|
2724 SWIG_croak_null(); |
|
2725 } |
|
2726 } |
|
2727 |
|
2728 |
|
2729 XS(_wrap_dtn_reg_info_t_init_passive_set) { |
|
2730 { |
|
2731 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2732 bool_t arg2 ; |
|
2733 void *argp1 = 0 ; |
|
2734 int res1 = 0 ; |
|
2735 void *argp2 ; |
|
2736 int res2 = 0 ; |
|
2737 int argvi = 0; |
|
2738 dXSARGS; |
|
2739 |
|
2740 if ((items < 2) || (items > 2)) { |
|
2741 SWIG_croak("Usage: dtn_reg_info_t_init_passive_set(self,init_passive);"); |
|
2742 } |
|
2743 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2744 if (!SWIG_IsOK(res1)) { |
|
2745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2746 } |
|
2747 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2748 { |
|
2749 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_bool_t, 0 ); |
|
2750 if (!SWIG_IsOK(res2)) { |
|
2751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "2"" of type '" "bool_t""'"); |
|
2752 } |
|
2753 if (!argp2) { |
|
2754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_init_passive_set" "', argument " "2"" of type '" "bool_t""'"); |
|
2755 } else { |
|
2756 arg2 = *(reinterpret_cast< bool_t * >(argp2)); |
|
2757 } |
|
2758 } |
|
2759 if (arg1) (arg1)->init_passive = arg2; |
|
2760 |
|
2761 |
|
2762 |
|
2763 XSRETURN(argvi); |
|
2764 fail: |
|
2765 |
|
2766 SWIG_croak_null(); |
|
2767 } |
|
2768 } |
|
2769 |
|
2770 |
|
2771 XS(_wrap_dtn_reg_info_t_init_passive_get) { |
|
2772 { |
|
2773 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2774 bool_t result; |
|
2775 void *argp1 = 0 ; |
|
2776 int res1 = 0 ; |
|
2777 int argvi = 0; |
|
2778 dXSARGS; |
|
2779 |
|
2780 if ((items < 1) || (items > 1)) { |
|
2781 SWIG_croak("Usage: dtn_reg_info_t_init_passive_get(self);"); |
|
2782 } |
|
2783 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2784 if (!SWIG_IsOK(res1)) { |
|
2785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_init_passive_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2786 } |
|
2787 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2788 result = ((arg1)->init_passive); |
|
2789 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2790 |
|
2791 XSRETURN(argvi); |
|
2792 fail: |
|
2793 |
|
2794 SWIG_croak_null(); |
|
2795 } |
|
2796 } |
|
2797 |
|
2798 |
|
2799 XS(_wrap_dtn_reg_info_t_script_get) { |
|
2800 { |
|
2801 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2802 dtn_reg_info_t_script *result = 0 ; |
|
2803 void *argp1 = 0 ; |
|
2804 int res1 = 0 ; |
|
2805 int argvi = 0; |
|
2806 dXSARGS; |
|
2807 |
|
2808 if ((items < 1) || (items > 1)) { |
|
2809 SWIG_croak("Usage: dtn_reg_info_t_script_get(self);"); |
|
2810 } |
|
2811 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
2812 if (!SWIG_IsOK(res1)) { |
|
2813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_reg_info_t_script_get" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2814 } |
|
2815 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2816 result = (dtn_reg_info_t_script *)& ((arg1)->script); |
|
2817 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t_script, 0 | SWIG_SHADOW); argvi++ ; |
|
2818 |
|
2819 XSRETURN(argvi); |
|
2820 fail: |
|
2821 |
|
2822 SWIG_croak_null(); |
|
2823 } |
|
2824 } |
|
2825 |
|
2826 |
|
2827 XS(_wrap_new_dtn_reg_info_t) { |
|
2828 { |
|
2829 dtn_reg_info_t *result = 0 ; |
|
2830 int argvi = 0; |
|
2831 dXSARGS; |
|
2832 |
|
2833 if ((items < 0) || (items > 0)) { |
|
2834 SWIG_croak("Usage: new_dtn_reg_info_t();"); |
|
2835 } |
|
2836 result = (dtn_reg_info_t *)new dtn_reg_info_t(); |
|
2837 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
2838 XSRETURN(argvi); |
|
2839 fail: |
|
2840 SWIG_croak_null(); |
|
2841 } |
|
2842 } |
|
2843 |
|
2844 |
|
2845 XS(_wrap_delete_dtn_reg_info_t) { |
|
2846 { |
|
2847 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
2848 void *argp1 = 0 ; |
|
2849 int res1 = 0 ; |
|
2850 int argvi = 0; |
|
2851 dXSARGS; |
|
2852 |
|
2853 if ((items < 1) || (items > 1)) { |
|
2854 SWIG_croak("Usage: delete_dtn_reg_info_t(self);"); |
|
2855 } |
|
2856 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, SWIG_POINTER_DISOWN | 0 ); |
|
2857 if (!SWIG_IsOK(res1)) { |
|
2858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_reg_info_t" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
2859 } |
|
2860 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
2861 delete arg1; |
|
2862 |
|
2863 |
|
2864 |
|
2865 XSRETURN(argvi); |
|
2866 fail: |
|
2867 |
|
2868 SWIG_croak_null(); |
|
2869 } |
|
2870 } |
|
2871 |
|
2872 |
|
2873 XS(_wrap_dtn_reg_info_t_script_script_len_set) { |
|
2874 { |
|
2875 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ; |
|
2876 u_int arg2 ; |
|
2877 void *argp1 = 0 ; |
|
2878 int res1 = 0 ; |
|
2879 void *argp2 ; |
|
2880 int res2 = 0 ; |
|
2881 int argvi = 0; |
|
2882 dXSARGS; |
|
2883 |
|
2884 if ((items < 2) || (items > 2)) { |
|
2885 SWIG_croak("Usage: dtn_reg_info_t_script_script_len_set(self,script_len);"); |
|
2886 } |
|
2887 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 ); |
|
2888 if (!SWIG_IsOK(res1)) { |
|
2889 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 *""'"); |
|
2890 } |
|
2891 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1); |
|
2892 { |
|
2893 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
2894 if (!SWIG_IsOK(res2)) { |
|
2895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_script_script_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
2896 } |
|
2897 if (!argp2) { |
|
2898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_reg_info_t_script_script_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
2899 } else { |
|
2900 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
2901 } |
|
2902 } |
|
2903 if (arg1) (arg1)->script_len = arg2; |
|
2904 |
|
2905 |
|
2906 |
|
2907 XSRETURN(argvi); |
|
2908 fail: |
|
2909 |
|
2910 SWIG_croak_null(); |
|
2911 } |
|
2912 } |
|
2913 |
|
2914 |
|
2915 XS(_wrap_dtn_reg_info_t_script_script_len_get) { |
|
2916 { |
|
2917 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ; |
|
2918 u_int result; |
|
2919 void *argp1 = 0 ; |
|
2920 int res1 = 0 ; |
|
2921 int argvi = 0; |
|
2922 dXSARGS; |
|
2923 |
|
2924 if ((items < 1) || (items > 1)) { |
|
2925 SWIG_croak("Usage: dtn_reg_info_t_script_script_len_get(self);"); |
|
2926 } |
|
2927 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 ); |
|
2928 if (!SWIG_IsOK(res1)) { |
|
2929 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 *""'"); |
|
2930 } |
|
2931 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1); |
|
2932 result = ((arg1)->script_len); |
|
2933 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
2934 |
|
2935 XSRETURN(argvi); |
|
2936 fail: |
|
2937 |
|
2938 SWIG_croak_null(); |
|
2939 } |
|
2940 } |
|
2941 |
|
2942 |
|
2943 XS(_wrap_dtn_reg_info_t_script_script_val_set) { |
|
2944 { |
|
2945 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ; |
|
2946 char *arg2 = (char *) 0 ; |
|
2947 void *argp1 = 0 ; |
|
2948 int res1 = 0 ; |
|
2949 int res2 ; |
|
2950 char *buf2 = 0 ; |
|
2951 int alloc2 = 0 ; |
|
2952 int argvi = 0; |
|
2953 dXSARGS; |
|
2954 |
|
2955 if ((items < 2) || (items > 2)) { |
|
2956 SWIG_croak("Usage: dtn_reg_info_t_script_script_val_set(self,script_val);"); |
|
2957 } |
|
2958 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 ); |
|
2959 if (!SWIG_IsOK(res1)) { |
|
2960 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 *""'"); |
|
2961 } |
|
2962 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1); |
|
2963 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
2964 if (!SWIG_IsOK(res2)) { |
|
2965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_reg_info_t_script_script_val_set" "', argument " "2"" of type '" "char *""'"); |
|
2966 } |
|
2967 arg2 = reinterpret_cast< char * >(buf2); |
|
2968 if (arg1->script_val) delete[] arg1->script_val; |
|
2969 if (arg2) { |
|
2970 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; |
|
2971 arg1->script_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); |
|
2972 } else { |
|
2973 arg1->script_val = 0; |
|
2974 } |
|
2975 |
|
2976 |
|
2977 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
2978 XSRETURN(argvi); |
|
2979 fail: |
|
2980 |
|
2981 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
2982 SWIG_croak_null(); |
|
2983 } |
|
2984 } |
|
2985 |
|
2986 |
|
2987 XS(_wrap_dtn_reg_info_t_script_script_val_get) { |
|
2988 { |
|
2989 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ; |
|
2990 char *result = 0 ; |
|
2991 void *argp1 = 0 ; |
|
2992 int res1 = 0 ; |
|
2993 int argvi = 0; |
|
2994 dXSARGS; |
|
2995 |
|
2996 if ((items < 1) || (items > 1)) { |
|
2997 SWIG_croak("Usage: dtn_reg_info_t_script_script_val_get(self);"); |
|
2998 } |
|
2999 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, 0 | 0 ); |
|
3000 if (!SWIG_IsOK(res1)) { |
|
3001 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 *""'"); |
|
3002 } |
|
3003 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1); |
|
3004 result = (char *) ((arg1)->script_val); |
|
3005 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
3006 |
|
3007 XSRETURN(argvi); |
|
3008 fail: |
|
3009 |
|
3010 SWIG_croak_null(); |
|
3011 } |
|
3012 } |
|
3013 |
|
3014 |
|
3015 XS(_wrap_new_dtn_reg_info_t_script) { |
|
3016 { |
|
3017 dtn_reg_info_t_script *result = 0 ; |
|
3018 int argvi = 0; |
|
3019 dXSARGS; |
|
3020 |
|
3021 if ((items < 0) || (items > 0)) { |
|
3022 SWIG_croak("Usage: new_dtn_reg_info_t_script();"); |
|
3023 } |
|
3024 result = (dtn_reg_info_t_script *)new dtn_reg_info_t_script(); |
|
3025 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_reg_info_t_script, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
3026 XSRETURN(argvi); |
|
3027 fail: |
|
3028 SWIG_croak_null(); |
|
3029 } |
|
3030 } |
|
3031 |
|
3032 |
|
3033 XS(_wrap_delete_dtn_reg_info_t_script) { |
|
3034 { |
|
3035 dtn_reg_info_t_script *arg1 = (dtn_reg_info_t_script *) 0 ; |
|
3036 void *argp1 = 0 ; |
|
3037 int res1 = 0 ; |
|
3038 int argvi = 0; |
|
3039 dXSARGS; |
|
3040 |
|
3041 if ((items < 1) || (items > 1)) { |
|
3042 SWIG_croak("Usage: delete_dtn_reg_info_t_script(self);"); |
|
3043 } |
|
3044 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t_script, SWIG_POINTER_DISOWN | 0 ); |
|
3045 if (!SWIG_IsOK(res1)) { |
|
3046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_reg_info_t_script" "', argument " "1"" of type '" "dtn_reg_info_t_script *""'"); |
|
3047 } |
|
3048 arg1 = reinterpret_cast< dtn_reg_info_t_script * >(argp1); |
|
3049 delete arg1; |
|
3050 |
|
3051 |
|
3052 |
|
3053 XSRETURN(argvi); |
|
3054 fail: |
|
3055 |
|
3056 SWIG_croak_null(); |
|
3057 } |
|
3058 } |
|
3059 |
|
3060 |
|
3061 XS(_wrap_dtn_extension_block_t_type_set) { |
|
3062 { |
|
3063 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3064 u_int arg2 ; |
|
3065 void *argp1 = 0 ; |
|
3066 int res1 = 0 ; |
|
3067 void *argp2 ; |
|
3068 int res2 = 0 ; |
|
3069 int argvi = 0; |
|
3070 dXSARGS; |
|
3071 |
|
3072 if ((items < 2) || (items > 2)) { |
|
3073 SWIG_croak("Usage: dtn_extension_block_t_type_set(self,type);"); |
|
3074 } |
|
3075 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
3076 if (!SWIG_IsOK(res1)) { |
|
3077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_type_set" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3078 } |
|
3079 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3080 { |
|
3081 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
3082 if (!SWIG_IsOK(res2)) { |
|
3083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_type_set" "', argument " "2"" of type '" "u_int""'"); |
|
3084 } |
|
3085 if (!argp2) { |
|
3086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_type_set" "', argument " "2"" of type '" "u_int""'"); |
|
3087 } else { |
|
3088 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
3089 } |
|
3090 } |
|
3091 if (arg1) (arg1)->type = arg2; |
|
3092 |
|
3093 |
|
3094 |
|
3095 XSRETURN(argvi); |
|
3096 fail: |
|
3097 |
|
3098 SWIG_croak_null(); |
|
3099 } |
|
3100 } |
|
3101 |
|
3102 |
|
3103 XS(_wrap_dtn_extension_block_t_type_get) { |
|
3104 { |
|
3105 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3106 u_int result; |
|
3107 void *argp1 = 0 ; |
|
3108 int res1 = 0 ; |
|
3109 int argvi = 0; |
|
3110 dXSARGS; |
|
3111 |
|
3112 if ((items < 1) || (items > 1)) { |
|
3113 SWIG_croak("Usage: dtn_extension_block_t_type_get(self);"); |
|
3114 } |
|
3115 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
3116 if (!SWIG_IsOK(res1)) { |
|
3117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_type_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3118 } |
|
3119 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3120 result = ((arg1)->type); |
|
3121 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
3122 |
|
3123 XSRETURN(argvi); |
|
3124 fail: |
|
3125 |
|
3126 SWIG_croak_null(); |
|
3127 } |
|
3128 } |
|
3129 |
|
3130 |
|
3131 XS(_wrap_dtn_extension_block_t_flags_set) { |
|
3132 { |
|
3133 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3134 u_int arg2 ; |
|
3135 void *argp1 = 0 ; |
|
3136 int res1 = 0 ; |
|
3137 void *argp2 ; |
|
3138 int res2 = 0 ; |
|
3139 int argvi = 0; |
|
3140 dXSARGS; |
|
3141 |
|
3142 if ((items < 2) || (items > 2)) { |
|
3143 SWIG_croak("Usage: dtn_extension_block_t_flags_set(self,flags);"); |
|
3144 } |
|
3145 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
3146 if (!SWIG_IsOK(res1)) { |
|
3147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_flags_set" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3148 } |
|
3149 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3150 { |
|
3151 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
3152 if (!SWIG_IsOK(res2)) { |
|
3153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_flags_set" "', argument " "2"" of type '" "u_int""'"); |
|
3154 } |
|
3155 if (!argp2) { |
|
3156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_flags_set" "', argument " "2"" of type '" "u_int""'"); |
|
3157 } else { |
|
3158 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
3159 } |
|
3160 } |
|
3161 if (arg1) (arg1)->flags = arg2; |
|
3162 |
|
3163 |
|
3164 |
|
3165 XSRETURN(argvi); |
|
3166 fail: |
|
3167 |
|
3168 SWIG_croak_null(); |
|
3169 } |
|
3170 } |
|
3171 |
|
3172 |
|
3173 XS(_wrap_dtn_extension_block_t_flags_get) { |
|
3174 { |
|
3175 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3176 u_int result; |
|
3177 void *argp1 = 0 ; |
|
3178 int res1 = 0 ; |
|
3179 int argvi = 0; |
|
3180 dXSARGS; |
|
3181 |
|
3182 if ((items < 1) || (items > 1)) { |
|
3183 SWIG_croak("Usage: dtn_extension_block_t_flags_get(self);"); |
|
3184 } |
|
3185 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
3186 if (!SWIG_IsOK(res1)) { |
|
3187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_flags_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3188 } |
|
3189 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3190 result = ((arg1)->flags); |
|
3191 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
3192 |
|
3193 XSRETURN(argvi); |
|
3194 fail: |
|
3195 |
|
3196 SWIG_croak_null(); |
|
3197 } |
|
3198 } |
|
3199 |
|
3200 |
|
3201 XS(_wrap_dtn_extension_block_t_data_get) { |
|
3202 { |
|
3203 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3204 dtn_extension_block_t_data *result = 0 ; |
|
3205 void *argp1 = 0 ; |
|
3206 int res1 = 0 ; |
|
3207 int argvi = 0; |
|
3208 dXSARGS; |
|
3209 |
|
3210 if ((items < 1) || (items > 1)) { |
|
3211 SWIG_croak("Usage: dtn_extension_block_t_data_get(self);"); |
|
3212 } |
|
3213 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
3214 if (!SWIG_IsOK(res1)) { |
|
3215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_extension_block_t_data_get" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3216 } |
|
3217 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3218 result = (dtn_extension_block_t_data *)& ((arg1)->data); |
|
3219 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t_data, 0 | SWIG_SHADOW); argvi++ ; |
|
3220 |
|
3221 XSRETURN(argvi); |
|
3222 fail: |
|
3223 |
|
3224 SWIG_croak_null(); |
|
3225 } |
|
3226 } |
|
3227 |
|
3228 |
|
3229 XS(_wrap_new_dtn_extension_block_t) { |
|
3230 { |
|
3231 dtn_extension_block_t *result = 0 ; |
|
3232 int argvi = 0; |
|
3233 dXSARGS; |
|
3234 |
|
3235 if ((items < 0) || (items > 0)) { |
|
3236 SWIG_croak("Usage: new_dtn_extension_block_t();"); |
|
3237 } |
|
3238 result = (dtn_extension_block_t *)new dtn_extension_block_t(); |
|
3239 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
3240 XSRETURN(argvi); |
|
3241 fail: |
|
3242 SWIG_croak_null(); |
|
3243 } |
|
3244 } |
|
3245 |
|
3246 |
|
3247 XS(_wrap_delete_dtn_extension_block_t) { |
|
3248 { |
|
3249 dtn_extension_block_t *arg1 = (dtn_extension_block_t *) 0 ; |
|
3250 void *argp1 = 0 ; |
|
3251 int res1 = 0 ; |
|
3252 int argvi = 0; |
|
3253 dXSARGS; |
|
3254 |
|
3255 if ((items < 1) || (items > 1)) { |
|
3256 SWIG_croak("Usage: delete_dtn_extension_block_t(self);"); |
|
3257 } |
|
3258 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 ); |
|
3259 if (!SWIG_IsOK(res1)) { |
|
3260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_extension_block_t" "', argument " "1"" of type '" "dtn_extension_block_t *""'"); |
|
3261 } |
|
3262 arg1 = reinterpret_cast< dtn_extension_block_t * >(argp1); |
|
3263 delete arg1; |
|
3264 |
|
3265 |
|
3266 |
|
3267 XSRETURN(argvi); |
|
3268 fail: |
|
3269 |
|
3270 SWIG_croak_null(); |
|
3271 } |
|
3272 } |
|
3273 |
|
3274 |
|
3275 XS(_wrap_dtn_extension_block_t_data_data_len_set) { |
|
3276 { |
|
3277 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ; |
|
3278 u_int arg2 ; |
|
3279 void *argp1 = 0 ; |
|
3280 int res1 = 0 ; |
|
3281 void *argp2 ; |
|
3282 int res2 = 0 ; |
|
3283 int argvi = 0; |
|
3284 dXSARGS; |
|
3285 |
|
3286 if ((items < 2) || (items > 2)) { |
|
3287 SWIG_croak("Usage: dtn_extension_block_t_data_data_len_set(self,data_len);"); |
|
3288 } |
|
3289 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 ); |
|
3290 if (!SWIG_IsOK(res1)) { |
|
3291 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 *""'"); |
|
3292 } |
|
3293 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1); |
|
3294 { |
|
3295 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
3296 if (!SWIG_IsOK(res2)) { |
|
3297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
3298 } |
|
3299 if (!argp2) { |
|
3300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_extension_block_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
3301 } else { |
|
3302 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
3303 } |
|
3304 } |
|
3305 if (arg1) (arg1)->data_len = arg2; |
|
3306 |
|
3307 |
|
3308 |
|
3309 XSRETURN(argvi); |
|
3310 fail: |
|
3311 |
|
3312 SWIG_croak_null(); |
|
3313 } |
|
3314 } |
|
3315 |
|
3316 |
|
3317 XS(_wrap_dtn_extension_block_t_data_data_len_get) { |
|
3318 { |
|
3319 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ; |
|
3320 u_int result; |
|
3321 void *argp1 = 0 ; |
|
3322 int res1 = 0 ; |
|
3323 int argvi = 0; |
|
3324 dXSARGS; |
|
3325 |
|
3326 if ((items < 1) || (items > 1)) { |
|
3327 SWIG_croak("Usage: dtn_extension_block_t_data_data_len_get(self);"); |
|
3328 } |
|
3329 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 ); |
|
3330 if (!SWIG_IsOK(res1)) { |
|
3331 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 *""'"); |
|
3332 } |
|
3333 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1); |
|
3334 result = ((arg1)->data_len); |
|
3335 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
3336 |
|
3337 XSRETURN(argvi); |
|
3338 fail: |
|
3339 |
|
3340 SWIG_croak_null(); |
|
3341 } |
|
3342 } |
|
3343 |
|
3344 |
|
3345 XS(_wrap_dtn_extension_block_t_data_data_val_set) { |
|
3346 { |
|
3347 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ; |
|
3348 char *arg2 = (char *) 0 ; |
|
3349 void *argp1 = 0 ; |
|
3350 int res1 = 0 ; |
|
3351 int res2 ; |
|
3352 char *buf2 = 0 ; |
|
3353 int alloc2 = 0 ; |
|
3354 int argvi = 0; |
|
3355 dXSARGS; |
|
3356 |
|
3357 if ((items < 2) || (items > 2)) { |
|
3358 SWIG_croak("Usage: dtn_extension_block_t_data_data_val_set(self,data_val);"); |
|
3359 } |
|
3360 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 ); |
|
3361 if (!SWIG_IsOK(res1)) { |
|
3362 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 *""'"); |
|
3363 } |
|
3364 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1); |
|
3365 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
3366 if (!SWIG_IsOK(res2)) { |
|
3367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_extension_block_t_data_data_val_set" "', argument " "2"" of type '" "char *""'"); |
|
3368 } |
|
3369 arg2 = reinterpret_cast< char * >(buf2); |
|
3370 if (arg1->data_val) delete[] arg1->data_val; |
|
3371 if (arg2) { |
|
3372 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; |
|
3373 arg1->data_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); |
|
3374 } else { |
|
3375 arg1->data_val = 0; |
|
3376 } |
|
3377 |
|
3378 |
|
3379 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
3380 XSRETURN(argvi); |
|
3381 fail: |
|
3382 |
|
3383 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
3384 SWIG_croak_null(); |
|
3385 } |
|
3386 } |
|
3387 |
|
3388 |
|
3389 XS(_wrap_dtn_extension_block_t_data_data_val_get) { |
|
3390 { |
|
3391 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ; |
|
3392 char *result = 0 ; |
|
3393 void *argp1 = 0 ; |
|
3394 int res1 = 0 ; |
|
3395 int argvi = 0; |
|
3396 dXSARGS; |
|
3397 |
|
3398 if ((items < 1) || (items > 1)) { |
|
3399 SWIG_croak("Usage: dtn_extension_block_t_data_data_val_get(self);"); |
|
3400 } |
|
3401 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, 0 | 0 ); |
|
3402 if (!SWIG_IsOK(res1)) { |
|
3403 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 *""'"); |
|
3404 } |
|
3405 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1); |
|
3406 result = (char *) ((arg1)->data_val); |
|
3407 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
3408 |
|
3409 XSRETURN(argvi); |
|
3410 fail: |
|
3411 |
|
3412 SWIG_croak_null(); |
|
3413 } |
|
3414 } |
|
3415 |
|
3416 |
|
3417 XS(_wrap_new_dtn_extension_block_t_data) { |
|
3418 { |
|
3419 dtn_extension_block_t_data *result = 0 ; |
|
3420 int argvi = 0; |
|
3421 dXSARGS; |
|
3422 |
|
3423 if ((items < 0) || (items > 0)) { |
|
3424 SWIG_croak("Usage: new_dtn_extension_block_t_data();"); |
|
3425 } |
|
3426 result = (dtn_extension_block_t_data *)new dtn_extension_block_t_data(); |
|
3427 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t_data, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
3428 XSRETURN(argvi); |
|
3429 fail: |
|
3430 SWIG_croak_null(); |
|
3431 } |
|
3432 } |
|
3433 |
|
3434 |
|
3435 XS(_wrap_delete_dtn_extension_block_t_data) { |
|
3436 { |
|
3437 dtn_extension_block_t_data *arg1 = (dtn_extension_block_t_data *) 0 ; |
|
3438 void *argp1 = 0 ; |
|
3439 int res1 = 0 ; |
|
3440 int argvi = 0; |
|
3441 dXSARGS; |
|
3442 |
|
3443 if ((items < 1) || (items > 1)) { |
|
3444 SWIG_croak("Usage: delete_dtn_extension_block_t_data(self);"); |
|
3445 } |
|
3446 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_extension_block_t_data, SWIG_POINTER_DISOWN | 0 ); |
|
3447 if (!SWIG_IsOK(res1)) { |
|
3448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_extension_block_t_data" "', argument " "1"" of type '" "dtn_extension_block_t_data *""'"); |
|
3449 } |
|
3450 arg1 = reinterpret_cast< dtn_extension_block_t_data * >(argp1); |
|
3451 delete arg1; |
|
3452 |
|
3453 |
|
3454 |
|
3455 XSRETURN(argvi); |
|
3456 fail: |
|
3457 |
|
3458 SWIG_croak_null(); |
|
3459 } |
|
3460 } |
|
3461 |
|
3462 |
|
3463 XS(_wrap_dtn_sequence_id_t_data_get) { |
|
3464 { |
|
3465 dtn_sequence_id_t *arg1 = (dtn_sequence_id_t *) 0 ; |
|
3466 dtn_sequence_id_t_data *result = 0 ; |
|
3467 void *argp1 = 0 ; |
|
3468 int res1 = 0 ; |
|
3469 int argvi = 0; |
|
3470 dXSARGS; |
|
3471 |
|
3472 if ((items < 1) || (items > 1)) { |
|
3473 SWIG_croak("Usage: dtn_sequence_id_t_data_get(self);"); |
|
3474 } |
|
3475 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 ); |
|
3476 if (!SWIG_IsOK(res1)) { |
|
3477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_sequence_id_t_data_get" "', argument " "1"" of type '" "dtn_sequence_id_t *""'"); |
|
3478 } |
|
3479 arg1 = reinterpret_cast< dtn_sequence_id_t * >(argp1); |
|
3480 result = (dtn_sequence_id_t_data *)& ((arg1)->data); |
|
3481 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t_data, 0 | SWIG_SHADOW); argvi++ ; |
|
3482 |
|
3483 XSRETURN(argvi); |
|
3484 fail: |
|
3485 |
|
3486 SWIG_croak_null(); |
|
3487 } |
|
3488 } |
|
3489 |
|
3490 |
|
3491 XS(_wrap_new_dtn_sequence_id_t) { |
|
3492 { |
|
3493 dtn_sequence_id_t *result = 0 ; |
|
3494 int argvi = 0; |
|
3495 dXSARGS; |
|
3496 |
|
3497 if ((items < 0) || (items > 0)) { |
|
3498 SWIG_croak("Usage: new_dtn_sequence_id_t();"); |
|
3499 } |
|
3500 result = (dtn_sequence_id_t *)new dtn_sequence_id_t(); |
|
3501 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
3502 XSRETURN(argvi); |
|
3503 fail: |
|
3504 SWIG_croak_null(); |
|
3505 } |
|
3506 } |
|
3507 |
|
3508 |
|
3509 XS(_wrap_delete_dtn_sequence_id_t) { |
|
3510 { |
|
3511 dtn_sequence_id_t *arg1 = (dtn_sequence_id_t *) 0 ; |
|
3512 void *argp1 = 0 ; |
|
3513 int res1 = 0 ; |
|
3514 int argvi = 0; |
|
3515 dXSARGS; |
|
3516 |
|
3517 if ((items < 1) || (items > 1)) { |
|
3518 SWIG_croak("Usage: delete_dtn_sequence_id_t(self);"); |
|
3519 } |
|
3520 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t, SWIG_POINTER_DISOWN | 0 ); |
|
3521 if (!SWIG_IsOK(res1)) { |
|
3522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_sequence_id_t" "', argument " "1"" of type '" "dtn_sequence_id_t *""'"); |
|
3523 } |
|
3524 arg1 = reinterpret_cast< dtn_sequence_id_t * >(argp1); |
|
3525 delete arg1; |
|
3526 |
|
3527 |
|
3528 |
|
3529 XSRETURN(argvi); |
|
3530 fail: |
|
3531 |
|
3532 SWIG_croak_null(); |
|
3533 } |
|
3534 } |
|
3535 |
|
3536 |
|
3537 XS(_wrap_dtn_sequence_id_t_data_data_len_set) { |
|
3538 { |
|
3539 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ; |
|
3540 u_int arg2 ; |
|
3541 void *argp1 = 0 ; |
|
3542 int res1 = 0 ; |
|
3543 void *argp2 ; |
|
3544 int res2 = 0 ; |
|
3545 int argvi = 0; |
|
3546 dXSARGS; |
|
3547 |
|
3548 if ((items < 2) || (items > 2)) { |
|
3549 SWIG_croak("Usage: dtn_sequence_id_t_data_data_len_set(self,data_len);"); |
|
3550 } |
|
3551 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 ); |
|
3552 if (!SWIG_IsOK(res1)) { |
|
3553 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 *""'"); |
|
3554 } |
|
3555 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1); |
|
3556 { |
|
3557 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
3558 if (!SWIG_IsOK(res2)) { |
|
3559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_sequence_id_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
3560 } |
|
3561 if (!argp2) { |
|
3562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_sequence_id_t_data_data_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
3563 } else { |
|
3564 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
3565 } |
|
3566 } |
|
3567 if (arg1) (arg1)->data_len = arg2; |
|
3568 |
|
3569 |
|
3570 |
|
3571 XSRETURN(argvi); |
|
3572 fail: |
|
3573 |
|
3574 SWIG_croak_null(); |
|
3575 } |
|
3576 } |
|
3577 |
|
3578 |
|
3579 XS(_wrap_dtn_sequence_id_t_data_data_len_get) { |
|
3580 { |
|
3581 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ; |
|
3582 u_int result; |
|
3583 void *argp1 = 0 ; |
|
3584 int res1 = 0 ; |
|
3585 int argvi = 0; |
|
3586 dXSARGS; |
|
3587 |
|
3588 if ((items < 1) || (items > 1)) { |
|
3589 SWIG_croak("Usage: dtn_sequence_id_t_data_data_len_get(self);"); |
|
3590 } |
|
3591 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 ); |
|
3592 if (!SWIG_IsOK(res1)) { |
|
3593 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 *""'"); |
|
3594 } |
|
3595 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1); |
|
3596 result = ((arg1)->data_len); |
|
3597 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
3598 |
|
3599 XSRETURN(argvi); |
|
3600 fail: |
|
3601 |
|
3602 SWIG_croak_null(); |
|
3603 } |
|
3604 } |
|
3605 |
|
3606 |
|
3607 XS(_wrap_dtn_sequence_id_t_data_data_val_set) { |
|
3608 { |
|
3609 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ; |
|
3610 char *arg2 = (char *) 0 ; |
|
3611 void *argp1 = 0 ; |
|
3612 int res1 = 0 ; |
|
3613 int res2 ; |
|
3614 char *buf2 = 0 ; |
|
3615 int alloc2 = 0 ; |
|
3616 int argvi = 0; |
|
3617 dXSARGS; |
|
3618 |
|
3619 if ((items < 2) || (items > 2)) { |
|
3620 SWIG_croak("Usage: dtn_sequence_id_t_data_data_val_set(self,data_val);"); |
|
3621 } |
|
3622 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 ); |
|
3623 if (!SWIG_IsOK(res1)) { |
|
3624 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 *""'"); |
|
3625 } |
|
3626 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1); |
|
3627 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
3628 if (!SWIG_IsOK(res2)) { |
|
3629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_sequence_id_t_data_data_val_set" "', argument " "2"" of type '" "char *""'"); |
|
3630 } |
|
3631 arg2 = reinterpret_cast< char * >(buf2); |
|
3632 if (arg1->data_val) delete[] arg1->data_val; |
|
3633 if (arg2) { |
|
3634 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; |
|
3635 arg1->data_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); |
|
3636 } else { |
|
3637 arg1->data_val = 0; |
|
3638 } |
|
3639 |
|
3640 |
|
3641 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
3642 XSRETURN(argvi); |
|
3643 fail: |
|
3644 |
|
3645 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
3646 SWIG_croak_null(); |
|
3647 } |
|
3648 } |
|
3649 |
|
3650 |
|
3651 XS(_wrap_dtn_sequence_id_t_data_data_val_get) { |
|
3652 { |
|
3653 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ; |
|
3654 char *result = 0 ; |
|
3655 void *argp1 = 0 ; |
|
3656 int res1 = 0 ; |
|
3657 int argvi = 0; |
|
3658 dXSARGS; |
|
3659 |
|
3660 if ((items < 1) || (items > 1)) { |
|
3661 SWIG_croak("Usage: dtn_sequence_id_t_data_data_val_get(self);"); |
|
3662 } |
|
3663 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, 0 | 0 ); |
|
3664 if (!SWIG_IsOK(res1)) { |
|
3665 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 *""'"); |
|
3666 } |
|
3667 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1); |
|
3668 result = (char *) ((arg1)->data_val); |
|
3669 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
3670 |
|
3671 XSRETURN(argvi); |
|
3672 fail: |
|
3673 |
|
3674 SWIG_croak_null(); |
|
3675 } |
|
3676 } |
|
3677 |
|
3678 |
|
3679 XS(_wrap_new_dtn_sequence_id_t_data) { |
|
3680 { |
|
3681 dtn_sequence_id_t_data *result = 0 ; |
|
3682 int argvi = 0; |
|
3683 dXSARGS; |
|
3684 |
|
3685 if ((items < 0) || (items > 0)) { |
|
3686 SWIG_croak("Usage: new_dtn_sequence_id_t_data();"); |
|
3687 } |
|
3688 result = (dtn_sequence_id_t_data *)new dtn_sequence_id_t_data(); |
|
3689 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t_data, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
3690 XSRETURN(argvi); |
|
3691 fail: |
|
3692 SWIG_croak_null(); |
|
3693 } |
|
3694 } |
|
3695 |
|
3696 |
|
3697 XS(_wrap_delete_dtn_sequence_id_t_data) { |
|
3698 { |
|
3699 dtn_sequence_id_t_data *arg1 = (dtn_sequence_id_t_data *) 0 ; |
|
3700 void *argp1 = 0 ; |
|
3701 int res1 = 0 ; |
|
3702 int argvi = 0; |
|
3703 dXSARGS; |
|
3704 |
|
3705 if ((items < 1) || (items > 1)) { |
|
3706 SWIG_croak("Usage: delete_dtn_sequence_id_t_data(self);"); |
|
3707 } |
|
3708 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_sequence_id_t_data, SWIG_POINTER_DISOWN | 0 ); |
|
3709 if (!SWIG_IsOK(res1)) { |
|
3710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_sequence_id_t_data" "', argument " "1"" of type '" "dtn_sequence_id_t_data *""'"); |
|
3711 } |
|
3712 arg1 = reinterpret_cast< dtn_sequence_id_t_data * >(argp1); |
|
3713 delete arg1; |
|
3714 |
|
3715 |
|
3716 |
|
3717 XSRETURN(argvi); |
|
3718 fail: |
|
3719 |
|
3720 SWIG_croak_null(); |
|
3721 } |
|
3722 } |
|
3723 |
|
3724 |
|
3725 XS(_wrap_dtn_bundle_spec_t_source_set) { |
|
3726 { |
|
3727 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3728 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
3729 void *argp1 = 0 ; |
|
3730 int res1 = 0 ; |
|
3731 void *argp2 = 0 ; |
|
3732 int res2 = 0 ; |
|
3733 int argvi = 0; |
|
3734 dXSARGS; |
|
3735 |
|
3736 if ((items < 2) || (items > 2)) { |
|
3737 SWIG_croak("Usage: dtn_bundle_spec_t_source_set(self,source);"); |
|
3738 } |
|
3739 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3740 if (!SWIG_IsOK(res1)) { |
|
3741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_source_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3742 } |
|
3743 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3744 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
3745 if (!SWIG_IsOK(res2)) { |
|
3746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_source_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
3747 } |
|
3748 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
3749 if (arg1) (arg1)->source = *arg2; |
|
3750 |
|
3751 |
|
3752 |
|
3753 |
|
3754 XSRETURN(argvi); |
|
3755 fail: |
|
3756 |
|
3757 |
|
3758 SWIG_croak_null(); |
|
3759 } |
|
3760 } |
|
3761 |
|
3762 |
|
3763 XS(_wrap_dtn_bundle_spec_t_source_get) { |
|
3764 { |
|
3765 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3766 dtn_endpoint_id_t *result = 0 ; |
|
3767 void *argp1 = 0 ; |
|
3768 int res1 = 0 ; |
|
3769 int argvi = 0; |
|
3770 dXSARGS; |
|
3771 |
|
3772 if ((items < 1) || (items > 1)) { |
|
3773 SWIG_croak("Usage: dtn_bundle_spec_t_source_get(self);"); |
|
3774 } |
|
3775 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3776 if (!SWIG_IsOK(res1)) { |
|
3777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_source_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3778 } |
|
3779 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3780 result = (dtn_endpoint_id_t *)& ((arg1)->source); |
|
3781 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
3782 |
|
3783 XSRETURN(argvi); |
|
3784 fail: |
|
3785 |
|
3786 SWIG_croak_null(); |
|
3787 } |
|
3788 } |
|
3789 |
|
3790 |
|
3791 XS(_wrap_dtn_bundle_spec_t_dest_set) { |
|
3792 { |
|
3793 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3794 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
3795 void *argp1 = 0 ; |
|
3796 int res1 = 0 ; |
|
3797 void *argp2 = 0 ; |
|
3798 int res2 = 0 ; |
|
3799 int argvi = 0; |
|
3800 dXSARGS; |
|
3801 |
|
3802 if ((items < 2) || (items > 2)) { |
|
3803 SWIG_croak("Usage: dtn_bundle_spec_t_dest_set(self,dest);"); |
|
3804 } |
|
3805 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3806 if (!SWIG_IsOK(res1)) { |
|
3807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dest_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3808 } |
|
3809 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3810 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
3811 if (!SWIG_IsOK(res2)) { |
|
3812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_dest_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
3813 } |
|
3814 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
3815 if (arg1) (arg1)->dest = *arg2; |
|
3816 |
|
3817 |
|
3818 |
|
3819 |
|
3820 XSRETURN(argvi); |
|
3821 fail: |
|
3822 |
|
3823 |
|
3824 SWIG_croak_null(); |
|
3825 } |
|
3826 } |
|
3827 |
|
3828 |
|
3829 XS(_wrap_dtn_bundle_spec_t_dest_get) { |
|
3830 { |
|
3831 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3832 dtn_endpoint_id_t *result = 0 ; |
|
3833 void *argp1 = 0 ; |
|
3834 int res1 = 0 ; |
|
3835 int argvi = 0; |
|
3836 dXSARGS; |
|
3837 |
|
3838 if ((items < 1) || (items > 1)) { |
|
3839 SWIG_croak("Usage: dtn_bundle_spec_t_dest_get(self);"); |
|
3840 } |
|
3841 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3842 if (!SWIG_IsOK(res1)) { |
|
3843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dest_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3844 } |
|
3845 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3846 result = (dtn_endpoint_id_t *)& ((arg1)->dest); |
|
3847 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
3848 |
|
3849 XSRETURN(argvi); |
|
3850 fail: |
|
3851 |
|
3852 SWIG_croak_null(); |
|
3853 } |
|
3854 } |
|
3855 |
|
3856 |
|
3857 XS(_wrap_dtn_bundle_spec_t_replyto_set) { |
|
3858 { |
|
3859 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3860 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
3861 void *argp1 = 0 ; |
|
3862 int res1 = 0 ; |
|
3863 void *argp2 = 0 ; |
|
3864 int res2 = 0 ; |
|
3865 int argvi = 0; |
|
3866 dXSARGS; |
|
3867 |
|
3868 if ((items < 2) || (items > 2)) { |
|
3869 SWIG_croak("Usage: dtn_bundle_spec_t_replyto_set(self,replyto);"); |
|
3870 } |
|
3871 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3872 if (!SWIG_IsOK(res1)) { |
|
3873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_replyto_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3874 } |
|
3875 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3876 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
3877 if (!SWIG_IsOK(res2)) { |
|
3878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_replyto_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
3879 } |
|
3880 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
3881 if (arg1) (arg1)->replyto = *arg2; |
|
3882 |
|
3883 |
|
3884 |
|
3885 |
|
3886 XSRETURN(argvi); |
|
3887 fail: |
|
3888 |
|
3889 |
|
3890 SWIG_croak_null(); |
|
3891 } |
|
3892 } |
|
3893 |
|
3894 |
|
3895 XS(_wrap_dtn_bundle_spec_t_replyto_get) { |
|
3896 { |
|
3897 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3898 dtn_endpoint_id_t *result = 0 ; |
|
3899 void *argp1 = 0 ; |
|
3900 int res1 = 0 ; |
|
3901 int argvi = 0; |
|
3902 dXSARGS; |
|
3903 |
|
3904 if ((items < 1) || (items > 1)) { |
|
3905 SWIG_croak("Usage: dtn_bundle_spec_t_replyto_get(self);"); |
|
3906 } |
|
3907 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3908 if (!SWIG_IsOK(res1)) { |
|
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_replyto_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3910 } |
|
3911 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3912 result = (dtn_endpoint_id_t *)& ((arg1)->replyto); |
|
3913 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
3914 |
|
3915 XSRETURN(argvi); |
|
3916 fail: |
|
3917 |
|
3918 SWIG_croak_null(); |
|
3919 } |
|
3920 } |
|
3921 |
|
3922 |
|
3923 XS(_wrap_dtn_bundle_spec_t_priority_set) { |
|
3924 { |
|
3925 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3926 dtn_bundle_priority_t arg2 ; |
|
3927 void *argp1 = 0 ; |
|
3928 int res1 = 0 ; |
|
3929 int val2 ; |
|
3930 int ecode2 = 0 ; |
|
3931 int argvi = 0; |
|
3932 dXSARGS; |
|
3933 |
|
3934 if ((items < 2) || (items > 2)) { |
|
3935 SWIG_croak("Usage: dtn_bundle_spec_t_priority_set(self,priority);"); |
|
3936 } |
|
3937 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3938 if (!SWIG_IsOK(res1)) { |
|
3939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_priority_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3940 } |
|
3941 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3942 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
3943 if (!SWIG_IsOK(ecode2)) { |
|
3944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_spec_t_priority_set" "', argument " "2"" of type '" "dtn_bundle_priority_t""'"); |
|
3945 } |
|
3946 arg2 = static_cast< dtn_bundle_priority_t >(val2); |
|
3947 if (arg1) (arg1)->priority = arg2; |
|
3948 |
|
3949 |
|
3950 |
|
3951 |
|
3952 XSRETURN(argvi); |
|
3953 fail: |
|
3954 |
|
3955 |
|
3956 SWIG_croak_null(); |
|
3957 } |
|
3958 } |
|
3959 |
|
3960 |
|
3961 XS(_wrap_dtn_bundle_spec_t_priority_get) { |
|
3962 { |
|
3963 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3964 dtn_bundle_priority_t result; |
|
3965 void *argp1 = 0 ; |
|
3966 int res1 = 0 ; |
|
3967 int argvi = 0; |
|
3968 dXSARGS; |
|
3969 |
|
3970 if ((items < 1) || (items > 1)) { |
|
3971 SWIG_croak("Usage: dtn_bundle_spec_t_priority_get(self);"); |
|
3972 } |
|
3973 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
3974 if (!SWIG_IsOK(res1)) { |
|
3975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_priority_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
3976 } |
|
3977 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
3978 result = (dtn_bundle_priority_t) ((arg1)->priority); |
|
3979 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
3980 |
|
3981 XSRETURN(argvi); |
|
3982 fail: |
|
3983 |
|
3984 SWIG_croak_null(); |
|
3985 } |
|
3986 } |
|
3987 |
|
3988 |
|
3989 XS(_wrap_dtn_bundle_spec_t_dopts_set) { |
|
3990 { |
|
3991 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
3992 int arg2 ; |
|
3993 void *argp1 = 0 ; |
|
3994 int res1 = 0 ; |
|
3995 int val2 ; |
|
3996 int ecode2 = 0 ; |
|
3997 int argvi = 0; |
|
3998 dXSARGS; |
|
3999 |
|
4000 if ((items < 2) || (items > 2)) { |
|
4001 SWIG_croak("Usage: dtn_bundle_spec_t_dopts_set(self,dopts);"); |
|
4002 } |
|
4003 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4004 if (!SWIG_IsOK(res1)) { |
|
4005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dopts_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4006 } |
|
4007 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4008 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
4009 if (!SWIG_IsOK(ecode2)) { |
|
4010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_spec_t_dopts_set" "', argument " "2"" of type '" "int""'"); |
|
4011 } |
|
4012 arg2 = static_cast< int >(val2); |
|
4013 if (arg1) (arg1)->dopts = arg2; |
|
4014 |
|
4015 |
|
4016 |
|
4017 |
|
4018 XSRETURN(argvi); |
|
4019 fail: |
|
4020 |
|
4021 |
|
4022 SWIG_croak_null(); |
|
4023 } |
|
4024 } |
|
4025 |
|
4026 |
|
4027 XS(_wrap_dtn_bundle_spec_t_dopts_get) { |
|
4028 { |
|
4029 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4030 int result; |
|
4031 void *argp1 = 0 ; |
|
4032 int res1 = 0 ; |
|
4033 int argvi = 0; |
|
4034 dXSARGS; |
|
4035 |
|
4036 if ((items < 1) || (items > 1)) { |
|
4037 SWIG_croak("Usage: dtn_bundle_spec_t_dopts_get(self);"); |
|
4038 } |
|
4039 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4040 if (!SWIG_IsOK(res1)) { |
|
4041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_dopts_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4042 } |
|
4043 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4044 result = (int) ((arg1)->dopts); |
|
4045 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
4046 |
|
4047 XSRETURN(argvi); |
|
4048 fail: |
|
4049 |
|
4050 SWIG_croak_null(); |
|
4051 } |
|
4052 } |
|
4053 |
|
4054 |
|
4055 XS(_wrap_dtn_bundle_spec_t_expiration_set) { |
|
4056 { |
|
4057 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4058 dtn_timeval_t arg2 ; |
|
4059 void *argp1 = 0 ; |
|
4060 int res1 = 0 ; |
|
4061 void *argp2 ; |
|
4062 int res2 = 0 ; |
|
4063 int argvi = 0; |
|
4064 dXSARGS; |
|
4065 |
|
4066 if ((items < 2) || (items > 2)) { |
|
4067 SWIG_croak("Usage: dtn_bundle_spec_t_expiration_set(self,expiration);"); |
|
4068 } |
|
4069 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4070 if (!SWIG_IsOK(res1)) { |
|
4071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4072 } |
|
4073 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4074 { |
|
4075 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
4076 if (!SWIG_IsOK(res2)) { |
|
4077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'"); |
|
4078 } |
|
4079 if (!argp2) { |
|
4080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_expiration_set" "', argument " "2"" of type '" "dtn_timeval_t""'"); |
|
4081 } else { |
|
4082 arg2 = *(reinterpret_cast< dtn_timeval_t * >(argp2)); |
|
4083 } |
|
4084 } |
|
4085 if (arg1) (arg1)->expiration = arg2; |
|
4086 |
|
4087 |
|
4088 |
|
4089 XSRETURN(argvi); |
|
4090 fail: |
|
4091 |
|
4092 SWIG_croak_null(); |
|
4093 } |
|
4094 } |
|
4095 |
|
4096 |
|
4097 XS(_wrap_dtn_bundle_spec_t_expiration_get) { |
|
4098 { |
|
4099 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4100 dtn_timeval_t result; |
|
4101 void *argp1 = 0 ; |
|
4102 int res1 = 0 ; |
|
4103 int argvi = 0; |
|
4104 dXSARGS; |
|
4105 |
|
4106 if ((items < 1) || (items > 1)) { |
|
4107 SWIG_croak("Usage: dtn_bundle_spec_t_expiration_get(self);"); |
|
4108 } |
|
4109 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4110 if (!SWIG_IsOK(res1)) { |
|
4111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_expiration_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4112 } |
|
4113 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4114 result = ((arg1)->expiration); |
|
4115 ST(argvi) = SWIG_NewPointerObj((new dtn_timeval_t(static_cast< const dtn_timeval_t& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
4116 |
|
4117 XSRETURN(argvi); |
|
4118 fail: |
|
4119 |
|
4120 SWIG_croak_null(); |
|
4121 } |
|
4122 } |
|
4123 |
|
4124 |
|
4125 XS(_wrap_dtn_bundle_spec_t_creation_ts_set) { |
|
4126 { |
|
4127 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4128 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
4129 void *argp1 = 0 ; |
|
4130 int res1 = 0 ; |
|
4131 void *argp2 = 0 ; |
|
4132 int res2 = 0 ; |
|
4133 int argvi = 0; |
|
4134 dXSARGS; |
|
4135 |
|
4136 if ((items < 2) || (items > 2)) { |
|
4137 SWIG_croak("Usage: dtn_bundle_spec_t_creation_ts_set(self,creation_ts);"); |
|
4138 } |
|
4139 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4140 if (!SWIG_IsOK(res1)) { |
|
4141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_creation_ts_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4142 } |
|
4143 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4144 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
4145 if (!SWIG_IsOK(res2)) { |
|
4146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_creation_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
4147 } |
|
4148 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
4149 if (arg1) (arg1)->creation_ts = *arg2; |
|
4150 |
|
4151 |
|
4152 |
|
4153 |
|
4154 XSRETURN(argvi); |
|
4155 fail: |
|
4156 |
|
4157 |
|
4158 SWIG_croak_null(); |
|
4159 } |
|
4160 } |
|
4161 |
|
4162 |
|
4163 XS(_wrap_dtn_bundle_spec_t_creation_ts_get) { |
|
4164 { |
|
4165 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4166 dtn_timestamp_t *result = 0 ; |
|
4167 void *argp1 = 0 ; |
|
4168 int res1 = 0 ; |
|
4169 int argvi = 0; |
|
4170 dXSARGS; |
|
4171 |
|
4172 if ((items < 1) || (items > 1)) { |
|
4173 SWIG_croak("Usage: dtn_bundle_spec_t_creation_ts_get(self);"); |
|
4174 } |
|
4175 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4176 if (!SWIG_IsOK(res1)) { |
|
4177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_creation_ts_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4178 } |
|
4179 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4180 result = (dtn_timestamp_t *)& ((arg1)->creation_ts); |
|
4181 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4182 |
|
4183 XSRETURN(argvi); |
|
4184 fail: |
|
4185 |
|
4186 SWIG_croak_null(); |
|
4187 } |
|
4188 } |
|
4189 |
|
4190 |
|
4191 XS(_wrap_dtn_bundle_spec_t_delivery_regid_set) { |
|
4192 { |
|
4193 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4194 dtn_reg_id_t arg2 ; |
|
4195 void *argp1 = 0 ; |
|
4196 int res1 = 0 ; |
|
4197 void *argp2 ; |
|
4198 int res2 = 0 ; |
|
4199 int argvi = 0; |
|
4200 dXSARGS; |
|
4201 |
|
4202 if ((items < 2) || (items > 2)) { |
|
4203 SWIG_croak("Usage: dtn_bundle_spec_t_delivery_regid_set(self,delivery_regid);"); |
|
4204 } |
|
4205 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4206 if (!SWIG_IsOK(res1)) { |
|
4207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_delivery_regid_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4208 } |
|
4209 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4210 { |
|
4211 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
4212 if (!SWIG_IsOK(res2)) { |
|
4213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_delivery_regid_set" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
4214 } |
|
4215 if (!argp2) { |
|
4216 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""'"); |
|
4217 } else { |
|
4218 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2)); |
|
4219 } |
|
4220 } |
|
4221 if (arg1) (arg1)->delivery_regid = arg2; |
|
4222 |
|
4223 |
|
4224 |
|
4225 XSRETURN(argvi); |
|
4226 fail: |
|
4227 |
|
4228 SWIG_croak_null(); |
|
4229 } |
|
4230 } |
|
4231 |
|
4232 |
|
4233 XS(_wrap_dtn_bundle_spec_t_delivery_regid_get) { |
|
4234 { |
|
4235 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4236 dtn_reg_id_t result; |
|
4237 void *argp1 = 0 ; |
|
4238 int res1 = 0 ; |
|
4239 int argvi = 0; |
|
4240 dXSARGS; |
|
4241 |
|
4242 if ((items < 1) || (items > 1)) { |
|
4243 SWIG_croak("Usage: dtn_bundle_spec_t_delivery_regid_get(self);"); |
|
4244 } |
|
4245 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4246 if (!SWIG_IsOK(res1)) { |
|
4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_delivery_regid_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4248 } |
|
4249 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4250 result = ((arg1)->delivery_regid); |
|
4251 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++ ; |
|
4252 |
|
4253 XSRETURN(argvi); |
|
4254 fail: |
|
4255 |
|
4256 SWIG_croak_null(); |
|
4257 } |
|
4258 } |
|
4259 |
|
4260 |
|
4261 XS(_wrap_dtn_bundle_spec_t_sequence_id_set) { |
|
4262 { |
|
4263 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4264 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ; |
|
4265 void *argp1 = 0 ; |
|
4266 int res1 = 0 ; |
|
4267 void *argp2 = 0 ; |
|
4268 int res2 = 0 ; |
|
4269 int argvi = 0; |
|
4270 dXSARGS; |
|
4271 |
|
4272 if ((items < 2) || (items > 2)) { |
|
4273 SWIG_croak("Usage: dtn_bundle_spec_t_sequence_id_set(self,sequence_id);"); |
|
4274 } |
|
4275 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4276 if (!SWIG_IsOK(res1)) { |
|
4277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_sequence_id_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4278 } |
|
4279 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4280 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 ); |
|
4281 if (!SWIG_IsOK(res2)) { |
|
4282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_sequence_id_set" "', argument " "2"" of type '" "dtn_sequence_id_t *""'"); |
|
4283 } |
|
4284 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2); |
|
4285 if (arg1) (arg1)->sequence_id = *arg2; |
|
4286 |
|
4287 |
|
4288 |
|
4289 |
|
4290 XSRETURN(argvi); |
|
4291 fail: |
|
4292 |
|
4293 |
|
4294 SWIG_croak_null(); |
|
4295 } |
|
4296 } |
|
4297 |
|
4298 |
|
4299 XS(_wrap_dtn_bundle_spec_t_sequence_id_get) { |
|
4300 { |
|
4301 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4302 dtn_sequence_id_t *result = 0 ; |
|
4303 void *argp1 = 0 ; |
|
4304 int res1 = 0 ; |
|
4305 int argvi = 0; |
|
4306 dXSARGS; |
|
4307 |
|
4308 if ((items < 1) || (items > 1)) { |
|
4309 SWIG_croak("Usage: dtn_bundle_spec_t_sequence_id_get(self);"); |
|
4310 } |
|
4311 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4312 if (!SWIG_IsOK(res1)) { |
|
4313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_sequence_id_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4314 } |
|
4315 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4316 result = (dtn_sequence_id_t *)& ((arg1)->sequence_id); |
|
4317 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4318 |
|
4319 XSRETURN(argvi); |
|
4320 fail: |
|
4321 |
|
4322 SWIG_croak_null(); |
|
4323 } |
|
4324 } |
|
4325 |
|
4326 |
|
4327 XS(_wrap_dtn_bundle_spec_t_obsoletes_id_set) { |
|
4328 { |
|
4329 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4330 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ; |
|
4331 void *argp1 = 0 ; |
|
4332 int res1 = 0 ; |
|
4333 void *argp2 = 0 ; |
|
4334 int res2 = 0 ; |
|
4335 int argvi = 0; |
|
4336 dXSARGS; |
|
4337 |
|
4338 if ((items < 2) || (items > 2)) { |
|
4339 SWIG_croak("Usage: dtn_bundle_spec_t_obsoletes_id_set(self,obsoletes_id);"); |
|
4340 } |
|
4341 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4342 if (!SWIG_IsOK(res1)) { |
|
4343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_obsoletes_id_set" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4344 } |
|
4345 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4346 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 ); |
|
4347 if (!SWIG_IsOK(res2)) { |
|
4348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_obsoletes_id_set" "', argument " "2"" of type '" "dtn_sequence_id_t *""'"); |
|
4349 } |
|
4350 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2); |
|
4351 if (arg1) (arg1)->obsoletes_id = *arg2; |
|
4352 |
|
4353 |
|
4354 |
|
4355 |
|
4356 XSRETURN(argvi); |
|
4357 fail: |
|
4358 |
|
4359 |
|
4360 SWIG_croak_null(); |
|
4361 } |
|
4362 } |
|
4363 |
|
4364 |
|
4365 XS(_wrap_dtn_bundle_spec_t_obsoletes_id_get) { |
|
4366 { |
|
4367 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4368 dtn_sequence_id_t *result = 0 ; |
|
4369 void *argp1 = 0 ; |
|
4370 int res1 = 0 ; |
|
4371 int argvi = 0; |
|
4372 dXSARGS; |
|
4373 |
|
4374 if ((items < 1) || (items > 1)) { |
|
4375 SWIG_croak("Usage: dtn_bundle_spec_t_obsoletes_id_get(self);"); |
|
4376 } |
|
4377 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4378 if (!SWIG_IsOK(res1)) { |
|
4379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_obsoletes_id_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4380 } |
|
4381 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4382 result = (dtn_sequence_id_t *)& ((arg1)->obsoletes_id); |
|
4383 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_sequence_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4384 |
|
4385 XSRETURN(argvi); |
|
4386 fail: |
|
4387 |
|
4388 SWIG_croak_null(); |
|
4389 } |
|
4390 } |
|
4391 |
|
4392 |
|
4393 XS(_wrap_dtn_bundle_spec_t_metadata_get) { |
|
4394 { |
|
4395 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4396 dtn_bundle_spec_t_metadata *result = 0 ; |
|
4397 void *argp1 = 0 ; |
|
4398 int res1 = 0 ; |
|
4399 int argvi = 0; |
|
4400 dXSARGS; |
|
4401 |
|
4402 if ((items < 1) || (items > 1)) { |
|
4403 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_get(self);"); |
|
4404 } |
|
4405 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4406 if (!SWIG_IsOK(res1)) { |
|
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_metadata_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4408 } |
|
4409 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4410 result = (dtn_bundle_spec_t_metadata *)& ((arg1)->metadata); |
|
4411 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | SWIG_SHADOW); argvi++ ; |
|
4412 |
|
4413 XSRETURN(argvi); |
|
4414 fail: |
|
4415 |
|
4416 SWIG_croak_null(); |
|
4417 } |
|
4418 } |
|
4419 |
|
4420 |
|
4421 XS(_wrap_dtn_bundle_spec_t_blocks_get) { |
|
4422 { |
|
4423 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4424 dtn_bundle_spec_t_blocks *result = 0 ; |
|
4425 void *argp1 = 0 ; |
|
4426 int res1 = 0 ; |
|
4427 int argvi = 0; |
|
4428 dXSARGS; |
|
4429 |
|
4430 if ((items < 1) || (items > 1)) { |
|
4431 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_get(self);"); |
|
4432 } |
|
4433 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
4434 if (!SWIG_IsOK(res1)) { |
|
4435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_spec_t_blocks_get" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4436 } |
|
4437 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4438 result = (dtn_bundle_spec_t_blocks *)& ((arg1)->blocks); |
|
4439 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | SWIG_SHADOW); argvi++ ; |
|
4440 |
|
4441 XSRETURN(argvi); |
|
4442 fail: |
|
4443 |
|
4444 SWIG_croak_null(); |
|
4445 } |
|
4446 } |
|
4447 |
|
4448 |
|
4449 XS(_wrap_new_dtn_bundle_spec_t) { |
|
4450 { |
|
4451 dtn_bundle_spec_t *result = 0 ; |
|
4452 int argvi = 0; |
|
4453 dXSARGS; |
|
4454 |
|
4455 if ((items < 0) || (items > 0)) { |
|
4456 SWIG_croak("Usage: new_dtn_bundle_spec_t();"); |
|
4457 } |
|
4458 result = (dtn_bundle_spec_t *)new dtn_bundle_spec_t(); |
|
4459 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
4460 XSRETURN(argvi); |
|
4461 fail: |
|
4462 SWIG_croak_null(); |
|
4463 } |
|
4464 } |
|
4465 |
|
4466 |
|
4467 XS(_wrap_delete_dtn_bundle_spec_t) { |
|
4468 { |
|
4469 dtn_bundle_spec_t *arg1 = (dtn_bundle_spec_t *) 0 ; |
|
4470 void *argp1 = 0 ; |
|
4471 int res1 = 0 ; |
|
4472 int argvi = 0; |
|
4473 dXSARGS; |
|
4474 |
|
4475 if ((items < 1) || (items > 1)) { |
|
4476 SWIG_croak("Usage: delete_dtn_bundle_spec_t(self);"); |
|
4477 } |
|
4478 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t, SWIG_POINTER_DISOWN | 0 ); |
|
4479 if (!SWIG_IsOK(res1)) { |
|
4480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t" "', argument " "1"" of type '" "dtn_bundle_spec_t *""'"); |
|
4481 } |
|
4482 arg1 = reinterpret_cast< dtn_bundle_spec_t * >(argp1); |
|
4483 delete arg1; |
|
4484 |
|
4485 |
|
4486 |
|
4487 XSRETURN(argvi); |
|
4488 fail: |
|
4489 |
|
4490 SWIG_croak_null(); |
|
4491 } |
|
4492 } |
|
4493 |
|
4494 |
|
4495 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_len_set) { |
|
4496 { |
|
4497 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ; |
|
4498 u_int arg2 ; |
|
4499 void *argp1 = 0 ; |
|
4500 int res1 = 0 ; |
|
4501 void *argp2 ; |
|
4502 int res2 = 0 ; |
|
4503 int argvi = 0; |
|
4504 dXSARGS; |
|
4505 |
|
4506 if ((items < 2) || (items > 2)) { |
|
4507 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_len_set(self,metadata_len);"); |
|
4508 } |
|
4509 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 ); |
|
4510 if (!SWIG_IsOK(res1)) { |
|
4511 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 *""'"); |
|
4512 } |
|
4513 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1); |
|
4514 { |
|
4515 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
4516 if (!SWIG_IsOK(res2)) { |
|
4517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_metadata_metadata_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
4518 } |
|
4519 if (!argp2) { |
|
4520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_metadata_metadata_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
4521 } else { |
|
4522 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
4523 } |
|
4524 } |
|
4525 if (arg1) (arg1)->metadata_len = arg2; |
|
4526 |
|
4527 |
|
4528 |
|
4529 XSRETURN(argvi); |
|
4530 fail: |
|
4531 |
|
4532 SWIG_croak_null(); |
|
4533 } |
|
4534 } |
|
4535 |
|
4536 |
|
4537 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_len_get) { |
|
4538 { |
|
4539 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ; |
|
4540 u_int result; |
|
4541 void *argp1 = 0 ; |
|
4542 int res1 = 0 ; |
|
4543 int argvi = 0; |
|
4544 dXSARGS; |
|
4545 |
|
4546 if ((items < 1) || (items > 1)) { |
|
4547 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_len_get(self);"); |
|
4548 } |
|
4549 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 ); |
|
4550 if (!SWIG_IsOK(res1)) { |
|
4551 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 *""'"); |
|
4552 } |
|
4553 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1); |
|
4554 result = ((arg1)->metadata_len); |
|
4555 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
4556 |
|
4557 XSRETURN(argvi); |
|
4558 fail: |
|
4559 |
|
4560 SWIG_croak_null(); |
|
4561 } |
|
4562 } |
|
4563 |
|
4564 |
|
4565 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_val_set) { |
|
4566 { |
|
4567 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ; |
|
4568 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ; |
|
4569 void *argp1 = 0 ; |
|
4570 int res1 = 0 ; |
|
4571 void *argp2 = 0 ; |
|
4572 int res2 = 0 ; |
|
4573 int argvi = 0; |
|
4574 dXSARGS; |
|
4575 |
|
4576 if ((items < 2) || (items > 2)) { |
|
4577 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_val_set(self,metadata_val);"); |
|
4578 } |
|
4579 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 ); |
|
4580 if (!SWIG_IsOK(res1)) { |
|
4581 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 *""'"); |
|
4582 } |
|
4583 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1); |
|
4584 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 ); |
|
4585 if (!SWIG_IsOK(res2)) { |
|
4586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_metadata_metadata_val_set" "', argument " "2"" of type '" "dtn_extension_block_t *""'"); |
|
4587 } |
|
4588 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2); |
|
4589 if (arg1) (arg1)->metadata_val = arg2; |
|
4590 |
|
4591 |
|
4592 |
|
4593 |
|
4594 XSRETURN(argvi); |
|
4595 fail: |
|
4596 |
|
4597 |
|
4598 SWIG_croak_null(); |
|
4599 } |
|
4600 } |
|
4601 |
|
4602 |
|
4603 XS(_wrap_dtn_bundle_spec_t_metadata_metadata_val_get) { |
|
4604 { |
|
4605 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ; |
|
4606 dtn_extension_block_t *result = 0 ; |
|
4607 void *argp1 = 0 ; |
|
4608 int res1 = 0 ; |
|
4609 int argvi = 0; |
|
4610 dXSARGS; |
|
4611 |
|
4612 if ((items < 1) || (items > 1)) { |
|
4613 SWIG_croak("Usage: dtn_bundle_spec_t_metadata_metadata_val_get(self);"); |
|
4614 } |
|
4615 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, 0 | 0 ); |
|
4616 if (!SWIG_IsOK(res1)) { |
|
4617 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 *""'"); |
|
4618 } |
|
4619 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1); |
|
4620 result = (dtn_extension_block_t *) ((arg1)->metadata_val); |
|
4621 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4622 |
|
4623 XSRETURN(argvi); |
|
4624 fail: |
|
4625 |
|
4626 SWIG_croak_null(); |
|
4627 } |
|
4628 } |
|
4629 |
|
4630 |
|
4631 XS(_wrap_new_dtn_bundle_spec_t_metadata) { |
|
4632 { |
|
4633 dtn_bundle_spec_t_metadata *result = 0 ; |
|
4634 int argvi = 0; |
|
4635 dXSARGS; |
|
4636 |
|
4637 if ((items < 0) || (items > 0)) { |
|
4638 SWIG_croak("Usage: new_dtn_bundle_spec_t_metadata();"); |
|
4639 } |
|
4640 result = (dtn_bundle_spec_t_metadata *)new dtn_bundle_spec_t_metadata(); |
|
4641 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_metadata, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
4642 XSRETURN(argvi); |
|
4643 fail: |
|
4644 SWIG_croak_null(); |
|
4645 } |
|
4646 } |
|
4647 |
|
4648 |
|
4649 XS(_wrap_delete_dtn_bundle_spec_t_metadata) { |
|
4650 { |
|
4651 dtn_bundle_spec_t_metadata *arg1 = (dtn_bundle_spec_t_metadata *) 0 ; |
|
4652 void *argp1 = 0 ; |
|
4653 int res1 = 0 ; |
|
4654 int argvi = 0; |
|
4655 dXSARGS; |
|
4656 |
|
4657 if ((items < 1) || (items > 1)) { |
|
4658 SWIG_croak("Usage: delete_dtn_bundle_spec_t_metadata(self);"); |
|
4659 } |
|
4660 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_metadata, SWIG_POINTER_DISOWN | 0 ); |
|
4661 if (!SWIG_IsOK(res1)) { |
|
4662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t_metadata" "', argument " "1"" of type '" "dtn_bundle_spec_t_metadata *""'"); |
|
4663 } |
|
4664 arg1 = reinterpret_cast< dtn_bundle_spec_t_metadata * >(argp1); |
|
4665 delete arg1; |
|
4666 |
|
4667 |
|
4668 |
|
4669 XSRETURN(argvi); |
|
4670 fail: |
|
4671 |
|
4672 SWIG_croak_null(); |
|
4673 } |
|
4674 } |
|
4675 |
|
4676 |
|
4677 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_len_set) { |
|
4678 { |
|
4679 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ; |
|
4680 u_int arg2 ; |
|
4681 void *argp1 = 0 ; |
|
4682 int res1 = 0 ; |
|
4683 void *argp2 ; |
|
4684 int res2 = 0 ; |
|
4685 int argvi = 0; |
|
4686 dXSARGS; |
|
4687 |
|
4688 if ((items < 2) || (items > 2)) { |
|
4689 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_len_set(self,blocks_len);"); |
|
4690 } |
|
4691 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 ); |
|
4692 if (!SWIG_IsOK(res1)) { |
|
4693 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 *""'"); |
|
4694 } |
|
4695 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1); |
|
4696 { |
|
4697 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
4698 if (!SWIG_IsOK(res2)) { |
|
4699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_blocks_blocks_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
4700 } |
|
4701 if (!argp2) { |
|
4702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_spec_t_blocks_blocks_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
4703 } else { |
|
4704 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
4705 } |
|
4706 } |
|
4707 if (arg1) (arg1)->blocks_len = arg2; |
|
4708 |
|
4709 |
|
4710 |
|
4711 XSRETURN(argvi); |
|
4712 fail: |
|
4713 |
|
4714 SWIG_croak_null(); |
|
4715 } |
|
4716 } |
|
4717 |
|
4718 |
|
4719 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_len_get) { |
|
4720 { |
|
4721 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ; |
|
4722 u_int result; |
|
4723 void *argp1 = 0 ; |
|
4724 int res1 = 0 ; |
|
4725 int argvi = 0; |
|
4726 dXSARGS; |
|
4727 |
|
4728 if ((items < 1) || (items > 1)) { |
|
4729 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_len_get(self);"); |
|
4730 } |
|
4731 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 ); |
|
4732 if (!SWIG_IsOK(res1)) { |
|
4733 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 *""'"); |
|
4734 } |
|
4735 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1); |
|
4736 result = ((arg1)->blocks_len); |
|
4737 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
4738 |
|
4739 XSRETURN(argvi); |
|
4740 fail: |
|
4741 |
|
4742 SWIG_croak_null(); |
|
4743 } |
|
4744 } |
|
4745 |
|
4746 |
|
4747 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_val_set) { |
|
4748 { |
|
4749 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ; |
|
4750 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ; |
|
4751 void *argp1 = 0 ; |
|
4752 int res1 = 0 ; |
|
4753 void *argp2 = 0 ; |
|
4754 int res2 = 0 ; |
|
4755 int argvi = 0; |
|
4756 dXSARGS; |
|
4757 |
|
4758 if ((items < 2) || (items > 2)) { |
|
4759 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_val_set(self,blocks_val);"); |
|
4760 } |
|
4761 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 ); |
|
4762 if (!SWIG_IsOK(res1)) { |
|
4763 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 *""'"); |
|
4764 } |
|
4765 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1); |
|
4766 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, SWIG_POINTER_DISOWN | 0 ); |
|
4767 if (!SWIG_IsOK(res2)) { |
|
4768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_spec_t_blocks_blocks_val_set" "', argument " "2"" of type '" "dtn_extension_block_t *""'"); |
|
4769 } |
|
4770 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2); |
|
4771 if (arg1) (arg1)->blocks_val = arg2; |
|
4772 |
|
4773 |
|
4774 |
|
4775 |
|
4776 XSRETURN(argvi); |
|
4777 fail: |
|
4778 |
|
4779 |
|
4780 SWIG_croak_null(); |
|
4781 } |
|
4782 } |
|
4783 |
|
4784 |
|
4785 XS(_wrap_dtn_bundle_spec_t_blocks_blocks_val_get) { |
|
4786 { |
|
4787 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ; |
|
4788 dtn_extension_block_t *result = 0 ; |
|
4789 void *argp1 = 0 ; |
|
4790 int res1 = 0 ; |
|
4791 int argvi = 0; |
|
4792 dXSARGS; |
|
4793 |
|
4794 if ((items < 1) || (items > 1)) { |
|
4795 SWIG_croak("Usage: dtn_bundle_spec_t_blocks_blocks_val_get(self);"); |
|
4796 } |
|
4797 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, 0 | 0 ); |
|
4798 if (!SWIG_IsOK(res1)) { |
|
4799 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 *""'"); |
|
4800 } |
|
4801 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1); |
|
4802 result = (dtn_extension_block_t *) ((arg1)->blocks_val); |
|
4803 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_extension_block_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4804 |
|
4805 XSRETURN(argvi); |
|
4806 fail: |
|
4807 |
|
4808 SWIG_croak_null(); |
|
4809 } |
|
4810 } |
|
4811 |
|
4812 |
|
4813 XS(_wrap_new_dtn_bundle_spec_t_blocks) { |
|
4814 { |
|
4815 dtn_bundle_spec_t_blocks *result = 0 ; |
|
4816 int argvi = 0; |
|
4817 dXSARGS; |
|
4818 |
|
4819 if ((items < 0) || (items > 0)) { |
|
4820 SWIG_croak("Usage: new_dtn_bundle_spec_t_blocks();"); |
|
4821 } |
|
4822 result = (dtn_bundle_spec_t_blocks *)new dtn_bundle_spec_t_blocks(); |
|
4823 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_spec_t_blocks, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
4824 XSRETURN(argvi); |
|
4825 fail: |
|
4826 SWIG_croak_null(); |
|
4827 } |
|
4828 } |
|
4829 |
|
4830 |
|
4831 XS(_wrap_delete_dtn_bundle_spec_t_blocks) { |
|
4832 { |
|
4833 dtn_bundle_spec_t_blocks *arg1 = (dtn_bundle_spec_t_blocks *) 0 ; |
|
4834 void *argp1 = 0 ; |
|
4835 int res1 = 0 ; |
|
4836 int argvi = 0; |
|
4837 dXSARGS; |
|
4838 |
|
4839 if ((items < 1) || (items > 1)) { |
|
4840 SWIG_croak("Usage: delete_dtn_bundle_spec_t_blocks(self);"); |
|
4841 } |
|
4842 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_spec_t_blocks, SWIG_POINTER_DISOWN | 0 ); |
|
4843 if (!SWIG_IsOK(res1)) { |
|
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_spec_t_blocks" "', argument " "1"" of type '" "dtn_bundle_spec_t_blocks *""'"); |
|
4845 } |
|
4846 arg1 = reinterpret_cast< dtn_bundle_spec_t_blocks * >(argp1); |
|
4847 delete arg1; |
|
4848 |
|
4849 |
|
4850 |
|
4851 XSRETURN(argvi); |
|
4852 fail: |
|
4853 |
|
4854 SWIG_croak_null(); |
|
4855 } |
|
4856 } |
|
4857 |
|
4858 |
|
4859 XS(_wrap_dtn_bundle_id_t_source_set) { |
|
4860 { |
|
4861 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
4862 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
4863 void *argp1 = 0 ; |
|
4864 int res1 = 0 ; |
|
4865 void *argp2 = 0 ; |
|
4866 int res2 = 0 ; |
|
4867 int argvi = 0; |
|
4868 dXSARGS; |
|
4869 |
|
4870 if ((items < 2) || (items > 2)) { |
|
4871 SWIG_croak("Usage: dtn_bundle_id_t_source_set(self,source);"); |
|
4872 } |
|
4873 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
4874 if (!SWIG_IsOK(res1)) { |
|
4875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_source_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
4876 } |
|
4877 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
4878 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
4879 if (!SWIG_IsOK(res2)) { |
|
4880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_source_set" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
4881 } |
|
4882 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
4883 if (arg1) (arg1)->source = *arg2; |
|
4884 |
|
4885 |
|
4886 |
|
4887 |
|
4888 XSRETURN(argvi); |
|
4889 fail: |
|
4890 |
|
4891 |
|
4892 SWIG_croak_null(); |
|
4893 } |
|
4894 } |
|
4895 |
|
4896 |
|
4897 XS(_wrap_dtn_bundle_id_t_source_get) { |
|
4898 { |
|
4899 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
4900 dtn_endpoint_id_t *result = 0 ; |
|
4901 void *argp1 = 0 ; |
|
4902 int res1 = 0 ; |
|
4903 int argvi = 0; |
|
4904 dXSARGS; |
|
4905 |
|
4906 if ((items < 1) || (items > 1)) { |
|
4907 SWIG_croak("Usage: dtn_bundle_id_t_source_get(self);"); |
|
4908 } |
|
4909 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
4910 if (!SWIG_IsOK(res1)) { |
|
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_source_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
4912 } |
|
4913 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
4914 result = (dtn_endpoint_id_t *)& ((arg1)->source); |
|
4915 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_endpoint_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4916 |
|
4917 XSRETURN(argvi); |
|
4918 fail: |
|
4919 |
|
4920 SWIG_croak_null(); |
|
4921 } |
|
4922 } |
|
4923 |
|
4924 |
|
4925 XS(_wrap_dtn_bundle_id_t_creation_ts_set) { |
|
4926 { |
|
4927 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
4928 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
4929 void *argp1 = 0 ; |
|
4930 int res1 = 0 ; |
|
4931 void *argp2 = 0 ; |
|
4932 int res2 = 0 ; |
|
4933 int argvi = 0; |
|
4934 dXSARGS; |
|
4935 |
|
4936 if ((items < 2) || (items > 2)) { |
|
4937 SWIG_croak("Usage: dtn_bundle_id_t_creation_ts_set(self,creation_ts);"); |
|
4938 } |
|
4939 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
4940 if (!SWIG_IsOK(res1)) { |
|
4941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_creation_ts_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
4942 } |
|
4943 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
4944 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
4945 if (!SWIG_IsOK(res2)) { |
|
4946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_creation_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
4947 } |
|
4948 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
4949 if (arg1) (arg1)->creation_ts = *arg2; |
|
4950 |
|
4951 |
|
4952 |
|
4953 |
|
4954 XSRETURN(argvi); |
|
4955 fail: |
|
4956 |
|
4957 |
|
4958 SWIG_croak_null(); |
|
4959 } |
|
4960 } |
|
4961 |
|
4962 |
|
4963 XS(_wrap_dtn_bundle_id_t_creation_ts_get) { |
|
4964 { |
|
4965 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
4966 dtn_timestamp_t *result = 0 ; |
|
4967 void *argp1 = 0 ; |
|
4968 int res1 = 0 ; |
|
4969 int argvi = 0; |
|
4970 dXSARGS; |
|
4971 |
|
4972 if ((items < 1) || (items > 1)) { |
|
4973 SWIG_croak("Usage: dtn_bundle_id_t_creation_ts_get(self);"); |
|
4974 } |
|
4975 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
4976 if (!SWIG_IsOK(res1)) { |
|
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_creation_ts_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
4978 } |
|
4979 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
4980 result = (dtn_timestamp_t *)& ((arg1)->creation_ts); |
|
4981 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
4982 |
|
4983 XSRETURN(argvi); |
|
4984 fail: |
|
4985 |
|
4986 SWIG_croak_null(); |
|
4987 } |
|
4988 } |
|
4989 |
|
4990 |
|
4991 XS(_wrap_dtn_bundle_id_t_frag_offset_set) { |
|
4992 { |
|
4993 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
4994 u_int arg2 ; |
|
4995 void *argp1 = 0 ; |
|
4996 int res1 = 0 ; |
|
4997 void *argp2 ; |
|
4998 int res2 = 0 ; |
|
4999 int argvi = 0; |
|
5000 dXSARGS; |
|
5001 |
|
5002 if ((items < 2) || (items > 2)) { |
|
5003 SWIG_croak("Usage: dtn_bundle_id_t_frag_offset_set(self,frag_offset);"); |
|
5004 } |
|
5005 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
5006 if (!SWIG_IsOK(res1)) { |
|
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
5008 } |
|
5009 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
5010 { |
|
5011 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
5012 if (!SWIG_IsOK(res2)) { |
|
5013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "2"" of type '" "u_int""'"); |
|
5014 } |
|
5015 if (!argp2) { |
|
5016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_t_frag_offset_set" "', argument " "2"" of type '" "u_int""'"); |
|
5017 } else { |
|
5018 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
5019 } |
|
5020 } |
|
5021 if (arg1) (arg1)->frag_offset = arg2; |
|
5022 |
|
5023 |
|
5024 |
|
5025 XSRETURN(argvi); |
|
5026 fail: |
|
5027 |
|
5028 SWIG_croak_null(); |
|
5029 } |
|
5030 } |
|
5031 |
|
5032 |
|
5033 XS(_wrap_dtn_bundle_id_t_frag_offset_get) { |
|
5034 { |
|
5035 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
5036 u_int result; |
|
5037 void *argp1 = 0 ; |
|
5038 int res1 = 0 ; |
|
5039 int argvi = 0; |
|
5040 dXSARGS; |
|
5041 |
|
5042 if ((items < 1) || (items > 1)) { |
|
5043 SWIG_croak("Usage: dtn_bundle_id_t_frag_offset_get(self);"); |
|
5044 } |
|
5045 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
5046 if (!SWIG_IsOK(res1)) { |
|
5047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_frag_offset_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
5048 } |
|
5049 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
5050 result = ((arg1)->frag_offset); |
|
5051 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
5052 |
|
5053 XSRETURN(argvi); |
|
5054 fail: |
|
5055 |
|
5056 SWIG_croak_null(); |
|
5057 } |
|
5058 } |
|
5059 |
|
5060 |
|
5061 XS(_wrap_dtn_bundle_id_t_orig_length_set) { |
|
5062 { |
|
5063 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
5064 u_int arg2 ; |
|
5065 void *argp1 = 0 ; |
|
5066 int res1 = 0 ; |
|
5067 void *argp2 ; |
|
5068 int res2 = 0 ; |
|
5069 int argvi = 0; |
|
5070 dXSARGS; |
|
5071 |
|
5072 if ((items < 2) || (items > 2)) { |
|
5073 SWIG_croak("Usage: dtn_bundle_id_t_orig_length_set(self,orig_length);"); |
|
5074 } |
|
5075 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
5076 if (!SWIG_IsOK(res1)) { |
|
5077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
5078 } |
|
5079 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
5080 { |
|
5081 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
5082 if (!SWIG_IsOK(res2)) { |
|
5083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "2"" of type '" "u_int""'"); |
|
5084 } |
|
5085 if (!argp2) { |
|
5086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_t_orig_length_set" "', argument " "2"" of type '" "u_int""'"); |
|
5087 } else { |
|
5088 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
5089 } |
|
5090 } |
|
5091 if (arg1) (arg1)->orig_length = arg2; |
|
5092 |
|
5093 |
|
5094 |
|
5095 XSRETURN(argvi); |
|
5096 fail: |
|
5097 |
|
5098 SWIG_croak_null(); |
|
5099 } |
|
5100 } |
|
5101 |
|
5102 |
|
5103 XS(_wrap_dtn_bundle_id_t_orig_length_get) { |
|
5104 { |
|
5105 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
5106 u_int result; |
|
5107 void *argp1 = 0 ; |
|
5108 int res1 = 0 ; |
|
5109 int argvi = 0; |
|
5110 dXSARGS; |
|
5111 |
|
5112 if ((items < 1) || (items > 1)) { |
|
5113 SWIG_croak("Usage: dtn_bundle_id_t_orig_length_get(self);"); |
|
5114 } |
|
5115 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
5116 if (!SWIG_IsOK(res1)) { |
|
5117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_t_orig_length_get" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
5118 } |
|
5119 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
5120 result = ((arg1)->orig_length); |
|
5121 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
5122 |
|
5123 XSRETURN(argvi); |
|
5124 fail: |
|
5125 |
|
5126 SWIG_croak_null(); |
|
5127 } |
|
5128 } |
|
5129 |
|
5130 |
|
5131 XS(_wrap_new_dtn_bundle_id_t) { |
|
5132 { |
|
5133 dtn_bundle_id_t *result = 0 ; |
|
5134 int argvi = 0; |
|
5135 dXSARGS; |
|
5136 |
|
5137 if ((items < 0) || (items > 0)) { |
|
5138 SWIG_croak("Usage: new_dtn_bundle_id_t();"); |
|
5139 } |
|
5140 result = (dtn_bundle_id_t *)new dtn_bundle_id_t(); |
|
5141 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
5142 XSRETURN(argvi); |
|
5143 fail: |
|
5144 SWIG_croak_null(); |
|
5145 } |
|
5146 } |
|
5147 |
|
5148 |
|
5149 XS(_wrap_delete_dtn_bundle_id_t) { |
|
5150 { |
|
5151 dtn_bundle_id_t *arg1 = (dtn_bundle_id_t *) 0 ; |
|
5152 void *argp1 = 0 ; |
|
5153 int res1 = 0 ; |
|
5154 int argvi = 0; |
|
5155 dXSARGS; |
|
5156 |
|
5157 if ((items < 1) || (items > 1)) { |
|
5158 SWIG_croak("Usage: delete_dtn_bundle_id_t(self);"); |
|
5159 } |
|
5160 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id_t, SWIG_POINTER_DISOWN | 0 ); |
|
5161 if (!SWIG_IsOK(res1)) { |
|
5162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_id_t" "', argument " "1"" of type '" "dtn_bundle_id_t *""'"); |
|
5163 } |
|
5164 arg1 = reinterpret_cast< dtn_bundle_id_t * >(argp1); |
|
5165 delete arg1; |
|
5166 |
|
5167 |
|
5168 |
|
5169 XSRETURN(argvi); |
|
5170 fail: |
|
5171 |
|
5172 SWIG_croak_null(); |
|
5173 } |
|
5174 } |
|
5175 |
|
5176 |
|
5177 XS(_wrap_dtn_bundle_status_report_t_bundle_id_set) { |
|
5178 { |
|
5179 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5180 dtn_bundle_id_t *arg2 = (dtn_bundle_id_t *) 0 ; |
|
5181 void *argp1 = 0 ; |
|
5182 int res1 = 0 ; |
|
5183 void *argp2 = 0 ; |
|
5184 int res2 = 0 ; |
|
5185 int argvi = 0; |
|
5186 dXSARGS; |
|
5187 |
|
5188 if ((items < 2) || (items > 2)) { |
|
5189 SWIG_croak("Usage: dtn_bundle_status_report_t_bundle_id_set(self,bundle_id);"); |
|
5190 } |
|
5191 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5192 if (!SWIG_IsOK(res1)) { |
|
5193 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 *""'"); |
|
5194 } |
|
5195 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5196 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
5197 if (!SWIG_IsOK(res2)) { |
|
5198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_bundle_id_set" "', argument " "2"" of type '" "dtn_bundle_id_t *""'"); |
|
5199 } |
|
5200 arg2 = reinterpret_cast< dtn_bundle_id_t * >(argp2); |
|
5201 if (arg1) (arg1)->bundle_id = *arg2; |
|
5202 |
|
5203 |
|
5204 |
|
5205 |
|
5206 XSRETURN(argvi); |
|
5207 fail: |
|
5208 |
|
5209 |
|
5210 SWIG_croak_null(); |
|
5211 } |
|
5212 } |
|
5213 |
|
5214 |
|
5215 XS(_wrap_dtn_bundle_status_report_t_bundle_id_get) { |
|
5216 { |
|
5217 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5218 dtn_bundle_id_t *result = 0 ; |
|
5219 void *argp1 = 0 ; |
|
5220 int res1 = 0 ; |
|
5221 int argvi = 0; |
|
5222 dXSARGS; |
|
5223 |
|
5224 if ((items < 1) || (items > 1)) { |
|
5225 SWIG_croak("Usage: dtn_bundle_status_report_t_bundle_id_get(self);"); |
|
5226 } |
|
5227 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5228 if (!SWIG_IsOK(res1)) { |
|
5229 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 *""'"); |
|
5230 } |
|
5231 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5232 result = (dtn_bundle_id_t *)& ((arg1)->bundle_id); |
|
5233 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5234 |
|
5235 XSRETURN(argvi); |
|
5236 fail: |
|
5237 |
|
5238 SWIG_croak_null(); |
|
5239 } |
|
5240 } |
|
5241 |
|
5242 |
|
5243 XS(_wrap_dtn_bundle_status_report_t_reason_set) { |
|
5244 { |
|
5245 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5246 dtn_status_report_reason_t arg2 ; |
|
5247 void *argp1 = 0 ; |
|
5248 int res1 = 0 ; |
|
5249 int val2 ; |
|
5250 int ecode2 = 0 ; |
|
5251 int argvi = 0; |
|
5252 dXSARGS; |
|
5253 |
|
5254 if ((items < 2) || (items > 2)) { |
|
5255 SWIG_croak("Usage: dtn_bundle_status_report_t_reason_set(self,reason);"); |
|
5256 } |
|
5257 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5258 if (!SWIG_IsOK(res1)) { |
|
5259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_reason_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5260 } |
|
5261 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5262 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
5263 if (!SWIG_IsOK(ecode2)) { |
|
5264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_status_report_t_reason_set" "', argument " "2"" of type '" "dtn_status_report_reason_t""'"); |
|
5265 } |
|
5266 arg2 = static_cast< dtn_status_report_reason_t >(val2); |
|
5267 if (arg1) (arg1)->reason = arg2; |
|
5268 |
|
5269 |
|
5270 |
|
5271 |
|
5272 XSRETURN(argvi); |
|
5273 fail: |
|
5274 |
|
5275 |
|
5276 SWIG_croak_null(); |
|
5277 } |
|
5278 } |
|
5279 |
|
5280 |
|
5281 XS(_wrap_dtn_bundle_status_report_t_reason_get) { |
|
5282 { |
|
5283 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5284 dtn_status_report_reason_t result; |
|
5285 void *argp1 = 0 ; |
|
5286 int res1 = 0 ; |
|
5287 int argvi = 0; |
|
5288 dXSARGS; |
|
5289 |
|
5290 if ((items < 1) || (items > 1)) { |
|
5291 SWIG_croak("Usage: dtn_bundle_status_report_t_reason_get(self);"); |
|
5292 } |
|
5293 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5294 if (!SWIG_IsOK(res1)) { |
|
5295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_reason_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5296 } |
|
5297 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5298 result = (dtn_status_report_reason_t) ((arg1)->reason); |
|
5299 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
5300 |
|
5301 XSRETURN(argvi); |
|
5302 fail: |
|
5303 |
|
5304 SWIG_croak_null(); |
|
5305 } |
|
5306 } |
|
5307 |
|
5308 |
|
5309 XS(_wrap_dtn_bundle_status_report_t_flags_set) { |
|
5310 { |
|
5311 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5312 dtn_status_report_flags_t arg2 ; |
|
5313 void *argp1 = 0 ; |
|
5314 int res1 = 0 ; |
|
5315 int val2 ; |
|
5316 int ecode2 = 0 ; |
|
5317 int argvi = 0; |
|
5318 dXSARGS; |
|
5319 |
|
5320 if ((items < 2) || (items > 2)) { |
|
5321 SWIG_croak("Usage: dtn_bundle_status_report_t_flags_set(self,flags);"); |
|
5322 } |
|
5323 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5324 if (!SWIG_IsOK(res1)) { |
|
5325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_flags_set" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5326 } |
|
5327 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5328 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
5329 if (!SWIG_IsOK(ecode2)) { |
|
5330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_status_report_t_flags_set" "', argument " "2"" of type '" "dtn_status_report_flags_t""'"); |
|
5331 } |
|
5332 arg2 = static_cast< dtn_status_report_flags_t >(val2); |
|
5333 if (arg1) (arg1)->flags = arg2; |
|
5334 |
|
5335 |
|
5336 |
|
5337 |
|
5338 XSRETURN(argvi); |
|
5339 fail: |
|
5340 |
|
5341 |
|
5342 SWIG_croak_null(); |
|
5343 } |
|
5344 } |
|
5345 |
|
5346 |
|
5347 XS(_wrap_dtn_bundle_status_report_t_flags_get) { |
|
5348 { |
|
5349 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5350 dtn_status_report_flags_t result; |
|
5351 void *argp1 = 0 ; |
|
5352 int res1 = 0 ; |
|
5353 int argvi = 0; |
|
5354 dXSARGS; |
|
5355 |
|
5356 if ((items < 1) || (items > 1)) { |
|
5357 SWIG_croak("Usage: dtn_bundle_status_report_t_flags_get(self);"); |
|
5358 } |
|
5359 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5360 if (!SWIG_IsOK(res1)) { |
|
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_t_flags_get" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5362 } |
|
5363 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5364 result = (dtn_status_report_flags_t) ((arg1)->flags); |
|
5365 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
5366 |
|
5367 XSRETURN(argvi); |
|
5368 fail: |
|
5369 |
|
5370 SWIG_croak_null(); |
|
5371 } |
|
5372 } |
|
5373 |
|
5374 |
|
5375 XS(_wrap_dtn_bundle_status_report_t_receipt_ts_set) { |
|
5376 { |
|
5377 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5378 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5379 void *argp1 = 0 ; |
|
5380 int res1 = 0 ; |
|
5381 void *argp2 = 0 ; |
|
5382 int res2 = 0 ; |
|
5383 int argvi = 0; |
|
5384 dXSARGS; |
|
5385 |
|
5386 if ((items < 2) || (items > 2)) { |
|
5387 SWIG_croak("Usage: dtn_bundle_status_report_t_receipt_ts_set(self,receipt_ts);"); |
|
5388 } |
|
5389 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5390 if (!SWIG_IsOK(res1)) { |
|
5391 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 *""'"); |
|
5392 } |
|
5393 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5394 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5395 if (!SWIG_IsOK(res2)) { |
|
5396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_receipt_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
5397 } |
|
5398 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5399 if (arg1) (arg1)->receipt_ts = *arg2; |
|
5400 |
|
5401 |
|
5402 |
|
5403 |
|
5404 XSRETURN(argvi); |
|
5405 fail: |
|
5406 |
|
5407 |
|
5408 SWIG_croak_null(); |
|
5409 } |
|
5410 } |
|
5411 |
|
5412 |
|
5413 XS(_wrap_dtn_bundle_status_report_t_receipt_ts_get) { |
|
5414 { |
|
5415 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5416 dtn_timestamp_t *result = 0 ; |
|
5417 void *argp1 = 0 ; |
|
5418 int res1 = 0 ; |
|
5419 int argvi = 0; |
|
5420 dXSARGS; |
|
5421 |
|
5422 if ((items < 1) || (items > 1)) { |
|
5423 SWIG_croak("Usage: dtn_bundle_status_report_t_receipt_ts_get(self);"); |
|
5424 } |
|
5425 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5426 if (!SWIG_IsOK(res1)) { |
|
5427 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 *""'"); |
|
5428 } |
|
5429 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5430 result = (dtn_timestamp_t *)& ((arg1)->receipt_ts); |
|
5431 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5432 |
|
5433 XSRETURN(argvi); |
|
5434 fail: |
|
5435 |
|
5436 SWIG_croak_null(); |
|
5437 } |
|
5438 } |
|
5439 |
|
5440 |
|
5441 XS(_wrap_dtn_bundle_status_report_t_custody_ts_set) { |
|
5442 { |
|
5443 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5444 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5445 void *argp1 = 0 ; |
|
5446 int res1 = 0 ; |
|
5447 void *argp2 = 0 ; |
|
5448 int res2 = 0 ; |
|
5449 int argvi = 0; |
|
5450 dXSARGS; |
|
5451 |
|
5452 if ((items < 2) || (items > 2)) { |
|
5453 SWIG_croak("Usage: dtn_bundle_status_report_t_custody_ts_set(self,custody_ts);"); |
|
5454 } |
|
5455 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5456 if (!SWIG_IsOK(res1)) { |
|
5457 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 *""'"); |
|
5458 } |
|
5459 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5460 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5461 if (!SWIG_IsOK(res2)) { |
|
5462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_custody_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
5463 } |
|
5464 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5465 if (arg1) (arg1)->custody_ts = *arg2; |
|
5466 |
|
5467 |
|
5468 |
|
5469 |
|
5470 XSRETURN(argvi); |
|
5471 fail: |
|
5472 |
|
5473 |
|
5474 SWIG_croak_null(); |
|
5475 } |
|
5476 } |
|
5477 |
|
5478 |
|
5479 XS(_wrap_dtn_bundle_status_report_t_custody_ts_get) { |
|
5480 { |
|
5481 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5482 dtn_timestamp_t *result = 0 ; |
|
5483 void *argp1 = 0 ; |
|
5484 int res1 = 0 ; |
|
5485 int argvi = 0; |
|
5486 dXSARGS; |
|
5487 |
|
5488 if ((items < 1) || (items > 1)) { |
|
5489 SWIG_croak("Usage: dtn_bundle_status_report_t_custody_ts_get(self);"); |
|
5490 } |
|
5491 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5492 if (!SWIG_IsOK(res1)) { |
|
5493 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 *""'"); |
|
5494 } |
|
5495 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5496 result = (dtn_timestamp_t *)& ((arg1)->custody_ts); |
|
5497 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5498 |
|
5499 XSRETURN(argvi); |
|
5500 fail: |
|
5501 |
|
5502 SWIG_croak_null(); |
|
5503 } |
|
5504 } |
|
5505 |
|
5506 |
|
5507 XS(_wrap_dtn_bundle_status_report_t_forwarding_ts_set) { |
|
5508 { |
|
5509 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5510 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5511 void *argp1 = 0 ; |
|
5512 int res1 = 0 ; |
|
5513 void *argp2 = 0 ; |
|
5514 int res2 = 0 ; |
|
5515 int argvi = 0; |
|
5516 dXSARGS; |
|
5517 |
|
5518 if ((items < 2) || (items > 2)) { |
|
5519 SWIG_croak("Usage: dtn_bundle_status_report_t_forwarding_ts_set(self,forwarding_ts);"); |
|
5520 } |
|
5521 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5522 if (!SWIG_IsOK(res1)) { |
|
5523 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 *""'"); |
|
5524 } |
|
5525 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5526 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5527 if (!SWIG_IsOK(res2)) { |
|
5528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_forwarding_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
5529 } |
|
5530 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5531 if (arg1) (arg1)->forwarding_ts = *arg2; |
|
5532 |
|
5533 |
|
5534 |
|
5535 |
|
5536 XSRETURN(argvi); |
|
5537 fail: |
|
5538 |
|
5539 |
|
5540 SWIG_croak_null(); |
|
5541 } |
|
5542 } |
|
5543 |
|
5544 |
|
5545 XS(_wrap_dtn_bundle_status_report_t_forwarding_ts_get) { |
|
5546 { |
|
5547 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5548 dtn_timestamp_t *result = 0 ; |
|
5549 void *argp1 = 0 ; |
|
5550 int res1 = 0 ; |
|
5551 int argvi = 0; |
|
5552 dXSARGS; |
|
5553 |
|
5554 if ((items < 1) || (items > 1)) { |
|
5555 SWIG_croak("Usage: dtn_bundle_status_report_t_forwarding_ts_get(self);"); |
|
5556 } |
|
5557 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5558 if (!SWIG_IsOK(res1)) { |
|
5559 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 *""'"); |
|
5560 } |
|
5561 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5562 result = (dtn_timestamp_t *)& ((arg1)->forwarding_ts); |
|
5563 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5564 |
|
5565 XSRETURN(argvi); |
|
5566 fail: |
|
5567 |
|
5568 SWIG_croak_null(); |
|
5569 } |
|
5570 } |
|
5571 |
|
5572 |
|
5573 XS(_wrap_dtn_bundle_status_report_t_delivery_ts_set) { |
|
5574 { |
|
5575 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5576 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5577 void *argp1 = 0 ; |
|
5578 int res1 = 0 ; |
|
5579 void *argp2 = 0 ; |
|
5580 int res2 = 0 ; |
|
5581 int argvi = 0; |
|
5582 dXSARGS; |
|
5583 |
|
5584 if ((items < 2) || (items > 2)) { |
|
5585 SWIG_croak("Usage: dtn_bundle_status_report_t_delivery_ts_set(self,delivery_ts);"); |
|
5586 } |
|
5587 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5588 if (!SWIG_IsOK(res1)) { |
|
5589 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 *""'"); |
|
5590 } |
|
5591 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5592 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5593 if (!SWIG_IsOK(res2)) { |
|
5594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_delivery_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
5595 } |
|
5596 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5597 if (arg1) (arg1)->delivery_ts = *arg2; |
|
5598 |
|
5599 |
|
5600 |
|
5601 |
|
5602 XSRETURN(argvi); |
|
5603 fail: |
|
5604 |
|
5605 |
|
5606 SWIG_croak_null(); |
|
5607 } |
|
5608 } |
|
5609 |
|
5610 |
|
5611 XS(_wrap_dtn_bundle_status_report_t_delivery_ts_get) { |
|
5612 { |
|
5613 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5614 dtn_timestamp_t *result = 0 ; |
|
5615 void *argp1 = 0 ; |
|
5616 int res1 = 0 ; |
|
5617 int argvi = 0; |
|
5618 dXSARGS; |
|
5619 |
|
5620 if ((items < 1) || (items > 1)) { |
|
5621 SWIG_croak("Usage: dtn_bundle_status_report_t_delivery_ts_get(self);"); |
|
5622 } |
|
5623 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5624 if (!SWIG_IsOK(res1)) { |
|
5625 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 *""'"); |
|
5626 } |
|
5627 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5628 result = (dtn_timestamp_t *)& ((arg1)->delivery_ts); |
|
5629 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5630 |
|
5631 XSRETURN(argvi); |
|
5632 fail: |
|
5633 |
|
5634 SWIG_croak_null(); |
|
5635 } |
|
5636 } |
|
5637 |
|
5638 |
|
5639 XS(_wrap_dtn_bundle_status_report_t_deletion_ts_set) { |
|
5640 { |
|
5641 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5642 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5643 void *argp1 = 0 ; |
|
5644 int res1 = 0 ; |
|
5645 void *argp2 = 0 ; |
|
5646 int res2 = 0 ; |
|
5647 int argvi = 0; |
|
5648 dXSARGS; |
|
5649 |
|
5650 if ((items < 2) || (items > 2)) { |
|
5651 SWIG_croak("Usage: dtn_bundle_status_report_t_deletion_ts_set(self,deletion_ts);"); |
|
5652 } |
|
5653 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5654 if (!SWIG_IsOK(res1)) { |
|
5655 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 *""'"); |
|
5656 } |
|
5657 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5658 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5659 if (!SWIG_IsOK(res2)) { |
|
5660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_t_deletion_ts_set" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
5661 } |
|
5662 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5663 if (arg1) (arg1)->deletion_ts = *arg2; |
|
5664 |
|
5665 |
|
5666 |
|
5667 |
|
5668 XSRETURN(argvi); |
|
5669 fail: |
|
5670 |
|
5671 |
|
5672 SWIG_croak_null(); |
|
5673 } |
|
5674 } |
|
5675 |
|
5676 |
|
5677 XS(_wrap_dtn_bundle_status_report_t_deletion_ts_get) { |
|
5678 { |
|
5679 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5680 dtn_timestamp_t *result = 0 ; |
|
5681 void *argp1 = 0 ; |
|
5682 int res1 = 0 ; |
|
5683 int argvi = 0; |
|
5684 dXSARGS; |
|
5685 |
|
5686 if ((items < 1) || (items > 1)) { |
|
5687 SWIG_croak("Usage: dtn_bundle_status_report_t_deletion_ts_get(self);"); |
|
5688 } |
|
5689 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5690 if (!SWIG_IsOK(res1)) { |
|
5691 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 *""'"); |
|
5692 } |
|
5693 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5694 result = (dtn_timestamp_t *)& ((arg1)->deletion_ts); |
|
5695 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5696 |
|
5697 XSRETURN(argvi); |
|
5698 fail: |
|
5699 |
|
5700 SWIG_croak_null(); |
|
5701 } |
|
5702 } |
|
5703 |
|
5704 |
|
5705 XS(_wrap_dtn_bundle_status_report_t_ack_by_app_ts_set) { |
|
5706 { |
|
5707 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5708 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
5709 void *argp1 = 0 ; |
|
5710 int res1 = 0 ; |
|
5711 void *argp2 = 0 ; |
|
5712 int res2 = 0 ; |
|
5713 int argvi = 0; |
|
5714 dXSARGS; |
|
5715 |
|
5716 if ((items < 2) || (items > 2)) { |
|
5717 SWIG_croak("Usage: dtn_bundle_status_report_t_ack_by_app_ts_set(self,ack_by_app_ts);"); |
|
5718 } |
|
5719 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5720 if (!SWIG_IsOK(res1)) { |
|
5721 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 *""'"); |
|
5722 } |
|
5723 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5724 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
5725 if (!SWIG_IsOK(res2)) { |
|
5726 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 *""'"); |
|
5727 } |
|
5728 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
5729 if (arg1) (arg1)->ack_by_app_ts = *arg2; |
|
5730 |
|
5731 |
|
5732 |
|
5733 |
|
5734 XSRETURN(argvi); |
|
5735 fail: |
|
5736 |
|
5737 |
|
5738 SWIG_croak_null(); |
|
5739 } |
|
5740 } |
|
5741 |
|
5742 |
|
5743 XS(_wrap_dtn_bundle_status_report_t_ack_by_app_ts_get) { |
|
5744 { |
|
5745 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5746 dtn_timestamp_t *result = 0 ; |
|
5747 void *argp1 = 0 ; |
|
5748 int res1 = 0 ; |
|
5749 int argvi = 0; |
|
5750 dXSARGS; |
|
5751 |
|
5752 if ((items < 1) || (items > 1)) { |
|
5753 SWIG_croak("Usage: dtn_bundle_status_report_t_ack_by_app_ts_get(self);"); |
|
5754 } |
|
5755 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
5756 if (!SWIG_IsOK(res1)) { |
|
5757 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 *""'"); |
|
5758 } |
|
5759 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5760 result = (dtn_timestamp_t *)& ((arg1)->ack_by_app_ts); |
|
5761 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_timestamp_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5762 |
|
5763 XSRETURN(argvi); |
|
5764 fail: |
|
5765 |
|
5766 SWIG_croak_null(); |
|
5767 } |
|
5768 } |
|
5769 |
|
5770 |
|
5771 XS(_wrap_new_dtn_bundle_status_report_t) { |
|
5772 { |
|
5773 dtn_bundle_status_report_t *result = 0 ; |
|
5774 int argvi = 0; |
|
5775 dXSARGS; |
|
5776 |
|
5777 if ((items < 0) || (items > 0)) { |
|
5778 SWIG_croak("Usage: new_dtn_bundle_status_report_t();"); |
|
5779 } |
|
5780 result = (dtn_bundle_status_report_t *)new dtn_bundle_status_report_t(); |
|
5781 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
5782 XSRETURN(argvi); |
|
5783 fail: |
|
5784 SWIG_croak_null(); |
|
5785 } |
|
5786 } |
|
5787 |
|
5788 |
|
5789 XS(_wrap_delete_dtn_bundle_status_report_t) { |
|
5790 { |
|
5791 dtn_bundle_status_report_t *arg1 = (dtn_bundle_status_report_t *) 0 ; |
|
5792 void *argp1 = 0 ; |
|
5793 int res1 = 0 ; |
|
5794 int argvi = 0; |
|
5795 dXSARGS; |
|
5796 |
|
5797 if ((items < 1) || (items > 1)) { |
|
5798 SWIG_croak("Usage: delete_dtn_bundle_status_report_t(self);"); |
|
5799 } |
|
5800 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_POINTER_DISOWN | 0 ); |
|
5801 if (!SWIG_IsOK(res1)) { |
|
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_status_report_t" "', argument " "1"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5803 } |
|
5804 arg1 = reinterpret_cast< dtn_bundle_status_report_t * >(argp1); |
|
5805 delete arg1; |
|
5806 |
|
5807 |
|
5808 |
|
5809 XSRETURN(argvi); |
|
5810 fail: |
|
5811 |
|
5812 SWIG_croak_null(); |
|
5813 } |
|
5814 } |
|
5815 |
|
5816 |
|
5817 XS(_wrap_dtn_bundle_payload_t_location_set) { |
|
5818 { |
|
5819 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5820 dtn_bundle_payload_location_t arg2 ; |
|
5821 void *argp1 = 0 ; |
|
5822 int res1 = 0 ; |
|
5823 int val2 ; |
|
5824 int ecode2 = 0 ; |
|
5825 int argvi = 0; |
|
5826 dXSARGS; |
|
5827 |
|
5828 if ((items < 2) || (items > 2)) { |
|
5829 SWIG_croak("Usage: dtn_bundle_payload_t_location_set(self,location);"); |
|
5830 } |
|
5831 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5832 if (!SWIG_IsOK(res1)) { |
|
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_location_set" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5834 } |
|
5835 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5836 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
5837 if (!SWIG_IsOK(ecode2)) { |
|
5838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_payload_t_location_set" "', argument " "2"" of type '" "dtn_bundle_payload_location_t""'"); |
|
5839 } |
|
5840 arg2 = static_cast< dtn_bundle_payload_location_t >(val2); |
|
5841 if (arg1) (arg1)->location = arg2; |
|
5842 |
|
5843 |
|
5844 |
|
5845 |
|
5846 XSRETURN(argvi); |
|
5847 fail: |
|
5848 |
|
5849 |
|
5850 SWIG_croak_null(); |
|
5851 } |
|
5852 } |
|
5853 |
|
5854 |
|
5855 XS(_wrap_dtn_bundle_payload_t_location_get) { |
|
5856 { |
|
5857 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5858 dtn_bundle_payload_location_t result; |
|
5859 void *argp1 = 0 ; |
|
5860 int res1 = 0 ; |
|
5861 int argvi = 0; |
|
5862 dXSARGS; |
|
5863 |
|
5864 if ((items < 1) || (items > 1)) { |
|
5865 SWIG_croak("Usage: dtn_bundle_payload_t_location_get(self);"); |
|
5866 } |
|
5867 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5868 if (!SWIG_IsOK(res1)) { |
|
5869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_location_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5870 } |
|
5871 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5872 result = (dtn_bundle_payload_location_t) ((arg1)->location); |
|
5873 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
5874 |
|
5875 XSRETURN(argvi); |
|
5876 fail: |
|
5877 |
|
5878 SWIG_croak_null(); |
|
5879 } |
|
5880 } |
|
5881 |
|
5882 |
|
5883 XS(_wrap_dtn_bundle_payload_t_status_report_set) { |
|
5884 { |
|
5885 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5886 dtn_bundle_status_report_t *arg2 = (dtn_bundle_status_report_t *) 0 ; |
|
5887 void *argp1 = 0 ; |
|
5888 int res1 = 0 ; |
|
5889 void *argp2 = 0 ; |
|
5890 int res2 = 0 ; |
|
5891 int argvi = 0; |
|
5892 dXSARGS; |
|
5893 |
|
5894 if ((items < 2) || (items > 2)) { |
|
5895 SWIG_croak("Usage: dtn_bundle_payload_t_status_report_set(self,status_report);"); |
|
5896 } |
|
5897 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5898 if (!SWIG_IsOK(res1)) { |
|
5899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_status_report_set" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5900 } |
|
5901 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5902 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_status_report_t, SWIG_POINTER_DISOWN | 0 ); |
|
5903 if (!SWIG_IsOK(res2)) { |
|
5904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_status_report_set" "', argument " "2"" of type '" "dtn_bundle_status_report_t *""'"); |
|
5905 } |
|
5906 arg2 = reinterpret_cast< dtn_bundle_status_report_t * >(argp2); |
|
5907 if (arg1) (arg1)->status_report = arg2; |
|
5908 |
|
5909 |
|
5910 |
|
5911 |
|
5912 XSRETURN(argvi); |
|
5913 fail: |
|
5914 |
|
5915 |
|
5916 SWIG_croak_null(); |
|
5917 } |
|
5918 } |
|
5919 |
|
5920 |
|
5921 XS(_wrap_dtn_bundle_payload_t_status_report_get) { |
|
5922 { |
|
5923 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5924 dtn_bundle_status_report_t *result = 0 ; |
|
5925 void *argp1 = 0 ; |
|
5926 int res1 = 0 ; |
|
5927 int argvi = 0; |
|
5928 dXSARGS; |
|
5929 |
|
5930 if ((items < 1) || (items > 1)) { |
|
5931 SWIG_croak("Usage: dtn_bundle_payload_t_status_report_get(self);"); |
|
5932 } |
|
5933 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5934 if (!SWIG_IsOK(res1)) { |
|
5935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_status_report_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5936 } |
|
5937 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5938 result = (dtn_bundle_status_report_t *) ((arg1)->status_report); |
|
5939 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_status_report_t, 0 | SWIG_SHADOW); argvi++ ; |
|
5940 |
|
5941 XSRETURN(argvi); |
|
5942 fail: |
|
5943 |
|
5944 SWIG_croak_null(); |
|
5945 } |
|
5946 } |
|
5947 |
|
5948 |
|
5949 XS(_wrap_dtn_bundle_payload_t_buf_get) { |
|
5950 { |
|
5951 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5952 dtn_bundle_payload_t_buf *result = 0 ; |
|
5953 void *argp1 = 0 ; |
|
5954 int res1 = 0 ; |
|
5955 int argvi = 0; |
|
5956 dXSARGS; |
|
5957 |
|
5958 if ((items < 1) || (items > 1)) { |
|
5959 SWIG_croak("Usage: dtn_bundle_payload_t_buf_get(self);"); |
|
5960 } |
|
5961 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5962 if (!SWIG_IsOK(res1)) { |
|
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_buf_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5964 } |
|
5965 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5966 result = (dtn_bundle_payload_t_buf *)& ((arg1)->buf); |
|
5967 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | SWIG_SHADOW); argvi++ ; |
|
5968 |
|
5969 XSRETURN(argvi); |
|
5970 fail: |
|
5971 |
|
5972 SWIG_croak_null(); |
|
5973 } |
|
5974 } |
|
5975 |
|
5976 |
|
5977 XS(_wrap_dtn_bundle_payload_t_filename_get) { |
|
5978 { |
|
5979 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
5980 dtn_bundle_payload_t_filename *result = 0 ; |
|
5981 void *argp1 = 0 ; |
|
5982 int res1 = 0 ; |
|
5983 int argvi = 0; |
|
5984 dXSARGS; |
|
5985 |
|
5986 if ((items < 1) || (items > 1)) { |
|
5987 SWIG_croak("Usage: dtn_bundle_payload_t_filename_get(self);"); |
|
5988 } |
|
5989 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
5990 if (!SWIG_IsOK(res1)) { |
|
5991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_t_filename_get" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
5992 } |
|
5993 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
5994 result = (dtn_bundle_payload_t_filename *)& ((arg1)->filename); |
|
5995 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | SWIG_SHADOW); argvi++ ; |
|
5996 |
|
5997 XSRETURN(argvi); |
|
5998 fail: |
|
5999 |
|
6000 SWIG_croak_null(); |
|
6001 } |
|
6002 } |
|
6003 |
|
6004 |
|
6005 XS(_wrap_new_dtn_bundle_payload_t) { |
|
6006 { |
|
6007 dtn_bundle_payload_t *result = 0 ; |
|
6008 int argvi = 0; |
|
6009 dXSARGS; |
|
6010 |
|
6011 if ((items < 0) || (items > 0)) { |
|
6012 SWIG_croak("Usage: new_dtn_bundle_payload_t();"); |
|
6013 } |
|
6014 result = (dtn_bundle_payload_t *)new dtn_bundle_payload_t(); |
|
6015 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
6016 XSRETURN(argvi); |
|
6017 fail: |
|
6018 SWIG_croak_null(); |
|
6019 } |
|
6020 } |
|
6021 |
|
6022 |
|
6023 XS(_wrap_delete_dtn_bundle_payload_t) { |
|
6024 { |
|
6025 dtn_bundle_payload_t *arg1 = (dtn_bundle_payload_t *) 0 ; |
|
6026 void *argp1 = 0 ; |
|
6027 int res1 = 0 ; |
|
6028 int argvi = 0; |
|
6029 dXSARGS; |
|
6030 |
|
6031 if ((items < 1) || (items > 1)) { |
|
6032 SWIG_croak("Usage: delete_dtn_bundle_payload_t(self);"); |
|
6033 } |
|
6034 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t, SWIG_POINTER_DISOWN | 0 ); |
|
6035 if (!SWIG_IsOK(res1)) { |
|
6036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t" "', argument " "1"" of type '" "dtn_bundle_payload_t *""'"); |
|
6037 } |
|
6038 arg1 = reinterpret_cast< dtn_bundle_payload_t * >(argp1); |
|
6039 delete arg1; |
|
6040 |
|
6041 |
|
6042 |
|
6043 XSRETURN(argvi); |
|
6044 fail: |
|
6045 |
|
6046 SWIG_croak_null(); |
|
6047 } |
|
6048 } |
|
6049 |
|
6050 |
|
6051 XS(_wrap_dtn_bundle_payload_t_buf_buf_len_set) { |
|
6052 { |
|
6053 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ; |
|
6054 u_int arg2 ; |
|
6055 void *argp1 = 0 ; |
|
6056 int res1 = 0 ; |
|
6057 void *argp2 ; |
|
6058 int res2 = 0 ; |
|
6059 int argvi = 0; |
|
6060 dXSARGS; |
|
6061 |
|
6062 if ((items < 2) || (items > 2)) { |
|
6063 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_len_set(self,buf_len);"); |
|
6064 } |
|
6065 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 ); |
|
6066 if (!SWIG_IsOK(res1)) { |
|
6067 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 *""'"); |
|
6068 } |
|
6069 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1); |
|
6070 { |
|
6071 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
6072 if (!SWIG_IsOK(res2)) { |
|
6073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_buf_buf_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
6074 } |
|
6075 if (!argp2) { |
|
6076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_t_buf_buf_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
6077 } else { |
|
6078 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
6079 } |
|
6080 } |
|
6081 if (arg1) (arg1)->buf_len = arg2; |
|
6082 |
|
6083 |
|
6084 |
|
6085 XSRETURN(argvi); |
|
6086 fail: |
|
6087 |
|
6088 SWIG_croak_null(); |
|
6089 } |
|
6090 } |
|
6091 |
|
6092 |
|
6093 XS(_wrap_dtn_bundle_payload_t_buf_buf_len_get) { |
|
6094 { |
|
6095 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ; |
|
6096 u_int result; |
|
6097 void *argp1 = 0 ; |
|
6098 int res1 = 0 ; |
|
6099 int argvi = 0; |
|
6100 dXSARGS; |
|
6101 |
|
6102 if ((items < 1) || (items > 1)) { |
|
6103 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_len_get(self);"); |
|
6104 } |
|
6105 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 ); |
|
6106 if (!SWIG_IsOK(res1)) { |
|
6107 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 *""'"); |
|
6108 } |
|
6109 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1); |
|
6110 result = ((arg1)->buf_len); |
|
6111 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6112 |
|
6113 XSRETURN(argvi); |
|
6114 fail: |
|
6115 |
|
6116 SWIG_croak_null(); |
|
6117 } |
|
6118 } |
|
6119 |
|
6120 |
|
6121 XS(_wrap_dtn_bundle_payload_t_buf_buf_val_set) { |
|
6122 { |
|
6123 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ; |
|
6124 char *arg2 = (char *) 0 ; |
|
6125 void *argp1 = 0 ; |
|
6126 int res1 = 0 ; |
|
6127 int res2 ; |
|
6128 char *buf2 = 0 ; |
|
6129 int alloc2 = 0 ; |
|
6130 int argvi = 0; |
|
6131 dXSARGS; |
|
6132 |
|
6133 if ((items < 2) || (items > 2)) { |
|
6134 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_val_set(self,buf_val);"); |
|
6135 } |
|
6136 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 ); |
|
6137 if (!SWIG_IsOK(res1)) { |
|
6138 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 *""'"); |
|
6139 } |
|
6140 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1); |
|
6141 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
6142 if (!SWIG_IsOK(res2)) { |
|
6143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_buf_buf_val_set" "', argument " "2"" of type '" "char *""'"); |
|
6144 } |
|
6145 arg2 = reinterpret_cast< char * >(buf2); |
|
6146 if (arg1->buf_val) delete[] arg1->buf_val; |
|
6147 if (arg2) { |
|
6148 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; |
|
6149 arg1->buf_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); |
|
6150 } else { |
|
6151 arg1->buf_val = 0; |
|
6152 } |
|
6153 |
|
6154 |
|
6155 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
6156 XSRETURN(argvi); |
|
6157 fail: |
|
6158 |
|
6159 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
6160 SWIG_croak_null(); |
|
6161 } |
|
6162 } |
|
6163 |
|
6164 |
|
6165 XS(_wrap_dtn_bundle_payload_t_buf_buf_val_get) { |
|
6166 { |
|
6167 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ; |
|
6168 char *result = 0 ; |
|
6169 void *argp1 = 0 ; |
|
6170 int res1 = 0 ; |
|
6171 int argvi = 0; |
|
6172 dXSARGS; |
|
6173 |
|
6174 if ((items < 1) || (items > 1)) { |
|
6175 SWIG_croak("Usage: dtn_bundle_payload_t_buf_buf_val_get(self);"); |
|
6176 } |
|
6177 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, 0 | 0 ); |
|
6178 if (!SWIG_IsOK(res1)) { |
|
6179 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 *""'"); |
|
6180 } |
|
6181 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1); |
|
6182 result = (char *) ((arg1)->buf_val); |
|
6183 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
6184 |
|
6185 XSRETURN(argvi); |
|
6186 fail: |
|
6187 |
|
6188 SWIG_croak_null(); |
|
6189 } |
|
6190 } |
|
6191 |
|
6192 |
|
6193 XS(_wrap_new_dtn_bundle_payload_t_buf) { |
|
6194 { |
|
6195 dtn_bundle_payload_t_buf *result = 0 ; |
|
6196 int argvi = 0; |
|
6197 dXSARGS; |
|
6198 |
|
6199 if ((items < 0) || (items > 0)) { |
|
6200 SWIG_croak("Usage: new_dtn_bundle_payload_t_buf();"); |
|
6201 } |
|
6202 result = (dtn_bundle_payload_t_buf *)new dtn_bundle_payload_t_buf(); |
|
6203 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_buf, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
6204 XSRETURN(argvi); |
|
6205 fail: |
|
6206 SWIG_croak_null(); |
|
6207 } |
|
6208 } |
|
6209 |
|
6210 |
|
6211 XS(_wrap_delete_dtn_bundle_payload_t_buf) { |
|
6212 { |
|
6213 dtn_bundle_payload_t_buf *arg1 = (dtn_bundle_payload_t_buf *) 0 ; |
|
6214 void *argp1 = 0 ; |
|
6215 int res1 = 0 ; |
|
6216 int argvi = 0; |
|
6217 dXSARGS; |
|
6218 |
|
6219 if ((items < 1) || (items > 1)) { |
|
6220 SWIG_croak("Usage: delete_dtn_bundle_payload_t_buf(self);"); |
|
6221 } |
|
6222 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_buf, SWIG_POINTER_DISOWN | 0 ); |
|
6223 if (!SWIG_IsOK(res1)) { |
|
6224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t_buf" "', argument " "1"" of type '" "dtn_bundle_payload_t_buf *""'"); |
|
6225 } |
|
6226 arg1 = reinterpret_cast< dtn_bundle_payload_t_buf * >(argp1); |
|
6227 delete arg1; |
|
6228 |
|
6229 |
|
6230 |
|
6231 XSRETURN(argvi); |
|
6232 fail: |
|
6233 |
|
6234 SWIG_croak_null(); |
|
6235 } |
|
6236 } |
|
6237 |
|
6238 |
|
6239 XS(_wrap_dtn_bundle_payload_t_filename_filename_len_set) { |
|
6240 { |
|
6241 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ; |
|
6242 u_int arg2 ; |
|
6243 void *argp1 = 0 ; |
|
6244 int res1 = 0 ; |
|
6245 void *argp2 ; |
|
6246 int res2 = 0 ; |
|
6247 int argvi = 0; |
|
6248 dXSARGS; |
|
6249 |
|
6250 if ((items < 2) || (items > 2)) { |
|
6251 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_len_set(self,filename_len);"); |
|
6252 } |
|
6253 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 ); |
|
6254 if (!SWIG_IsOK(res1)) { |
|
6255 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 *""'"); |
|
6256 } |
|
6257 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1); |
|
6258 { |
|
6259 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
6260 if (!SWIG_IsOK(res2)) { |
|
6261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_filename_filename_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
6262 } |
|
6263 if (!argp2) { |
|
6264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_t_filename_filename_len_set" "', argument " "2"" of type '" "u_int""'"); |
|
6265 } else { |
|
6266 arg2 = *(reinterpret_cast< u_int * >(argp2)); |
|
6267 } |
|
6268 } |
|
6269 if (arg1) (arg1)->filename_len = arg2; |
|
6270 |
|
6271 |
|
6272 |
|
6273 XSRETURN(argvi); |
|
6274 fail: |
|
6275 |
|
6276 SWIG_croak_null(); |
|
6277 } |
|
6278 } |
|
6279 |
|
6280 |
|
6281 XS(_wrap_dtn_bundle_payload_t_filename_filename_len_get) { |
|
6282 { |
|
6283 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ; |
|
6284 u_int result; |
|
6285 void *argp1 = 0 ; |
|
6286 int res1 = 0 ; |
|
6287 int argvi = 0; |
|
6288 dXSARGS; |
|
6289 |
|
6290 if ((items < 1) || (items > 1)) { |
|
6291 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_len_get(self);"); |
|
6292 } |
|
6293 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 ); |
|
6294 if (!SWIG_IsOK(res1)) { |
|
6295 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 *""'"); |
|
6296 } |
|
6297 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1); |
|
6298 result = ((arg1)->filename_len); |
|
6299 ST(argvi) = SWIG_NewPointerObj((new u_int(static_cast< const u_int& >(result))), SWIGTYPE_p_u_int, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6300 |
|
6301 XSRETURN(argvi); |
|
6302 fail: |
|
6303 |
|
6304 SWIG_croak_null(); |
|
6305 } |
|
6306 } |
|
6307 |
|
6308 |
|
6309 XS(_wrap_dtn_bundle_payload_t_filename_filename_val_set) { |
|
6310 { |
|
6311 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ; |
|
6312 char *arg2 = (char *) 0 ; |
|
6313 void *argp1 = 0 ; |
|
6314 int res1 = 0 ; |
|
6315 int res2 ; |
|
6316 char *buf2 = 0 ; |
|
6317 int alloc2 = 0 ; |
|
6318 int argvi = 0; |
|
6319 dXSARGS; |
|
6320 |
|
6321 if ((items < 2) || (items > 2)) { |
|
6322 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_val_set(self,filename_val);"); |
|
6323 } |
|
6324 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 ); |
|
6325 if (!SWIG_IsOK(res1)) { |
|
6326 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 *""'"); |
|
6327 } |
|
6328 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1); |
|
6329 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
6330 if (!SWIG_IsOK(res2)) { |
|
6331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_t_filename_filename_val_set" "', argument " "2"" of type '" "char *""'"); |
|
6332 } |
|
6333 arg2 = reinterpret_cast< char * >(buf2); |
|
6334 if (arg1->filename_val) delete[] arg1->filename_val; |
|
6335 if (arg2) { |
|
6336 size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; |
|
6337 arg1->filename_val = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); |
|
6338 } else { |
|
6339 arg1->filename_val = 0; |
|
6340 } |
|
6341 |
|
6342 |
|
6343 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
6344 XSRETURN(argvi); |
|
6345 fail: |
|
6346 |
|
6347 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
6348 SWIG_croak_null(); |
|
6349 } |
|
6350 } |
|
6351 |
|
6352 |
|
6353 XS(_wrap_dtn_bundle_payload_t_filename_filename_val_get) { |
|
6354 { |
|
6355 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ; |
|
6356 char *result = 0 ; |
|
6357 void *argp1 = 0 ; |
|
6358 int res1 = 0 ; |
|
6359 int argvi = 0; |
|
6360 dXSARGS; |
|
6361 |
|
6362 if ((items < 1) || (items > 1)) { |
|
6363 SWIG_croak("Usage: dtn_bundle_payload_t_filename_filename_val_get(self);"); |
|
6364 } |
|
6365 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, 0 | 0 ); |
|
6366 if (!SWIG_IsOK(res1)) { |
|
6367 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 *""'"); |
|
6368 } |
|
6369 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1); |
|
6370 result = (char *) ((arg1)->filename_val); |
|
6371 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
6372 |
|
6373 XSRETURN(argvi); |
|
6374 fail: |
|
6375 |
|
6376 SWIG_croak_null(); |
|
6377 } |
|
6378 } |
|
6379 |
|
6380 |
|
6381 XS(_wrap_new_dtn_bundle_payload_t_filename) { |
|
6382 { |
|
6383 dtn_bundle_payload_t_filename *result = 0 ; |
|
6384 int argvi = 0; |
|
6385 dXSARGS; |
|
6386 |
|
6387 if ((items < 0) || (items > 0)) { |
|
6388 SWIG_croak("Usage: new_dtn_bundle_payload_t_filename();"); |
|
6389 } |
|
6390 result = (dtn_bundle_payload_t_filename *)new dtn_bundle_payload_t_filename(); |
|
6391 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_payload_t_filename, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
6392 XSRETURN(argvi); |
|
6393 fail: |
|
6394 SWIG_croak_null(); |
|
6395 } |
|
6396 } |
|
6397 |
|
6398 |
|
6399 XS(_wrap_delete_dtn_bundle_payload_t_filename) { |
|
6400 { |
|
6401 dtn_bundle_payload_t_filename *arg1 = (dtn_bundle_payload_t_filename *) 0 ; |
|
6402 void *argp1 = 0 ; |
|
6403 int res1 = 0 ; |
|
6404 int argvi = 0; |
|
6405 dXSARGS; |
|
6406 |
|
6407 if ((items < 1) || (items > 1)) { |
|
6408 SWIG_croak("Usage: delete_dtn_bundle_payload_t_filename(self);"); |
|
6409 } |
|
6410 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_payload_t_filename, SWIG_POINTER_DISOWN | 0 ); |
|
6411 if (!SWIG_IsOK(res1)) { |
|
6412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_payload_t_filename" "', argument " "1"" of type '" "dtn_bundle_payload_t_filename *""'"); |
|
6413 } |
|
6414 arg1 = reinterpret_cast< dtn_bundle_payload_t_filename * >(argp1); |
|
6415 delete arg1; |
|
6416 |
|
6417 |
|
6418 |
|
6419 XSRETURN(argvi); |
|
6420 fail: |
|
6421 |
|
6422 SWIG_croak_null(); |
|
6423 } |
|
6424 } |
|
6425 |
|
6426 |
|
6427 XS(_wrap_xdr_dtn_endpoint_id_t) { |
|
6428 { |
|
6429 XDR *arg1 = (XDR *) 0 ; |
|
6430 dtn_endpoint_id_t *arg2 = (dtn_endpoint_id_t *) 0 ; |
|
6431 bool_t result; |
|
6432 void *argp1 = 0 ; |
|
6433 int res1 = 0 ; |
|
6434 void *argp2 = 0 ; |
|
6435 int res2 = 0 ; |
|
6436 int argvi = 0; |
|
6437 dXSARGS; |
|
6438 |
|
6439 if ((items < 2) || (items > 2)) { |
|
6440 SWIG_croak("Usage: xdr_dtn_endpoint_id_t(XDR *,dtn_endpoint_id_t *);"); |
|
6441 } |
|
6442 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6443 if (!SWIG_IsOK(res1)) { |
|
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_endpoint_id_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6445 } |
|
6446 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6447 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_endpoint_id_t, 0 | 0 ); |
|
6448 if (!SWIG_IsOK(res2)) { |
|
6449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_endpoint_id_t" "', argument " "2"" of type '" "dtn_endpoint_id_t *""'"); |
|
6450 } |
|
6451 arg2 = reinterpret_cast< dtn_endpoint_id_t * >(argp2); |
|
6452 result = xdr_dtn_endpoint_id_t(arg1,arg2); |
|
6453 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6454 |
|
6455 |
|
6456 XSRETURN(argvi); |
|
6457 fail: |
|
6458 |
|
6459 |
|
6460 SWIG_croak_null(); |
|
6461 } |
|
6462 } |
|
6463 |
|
6464 |
|
6465 XS(_wrap_xdr_dtn_reg_id_t) { |
|
6466 { |
|
6467 XDR *arg1 = (XDR *) 0 ; |
|
6468 dtn_reg_id_t *arg2 = (dtn_reg_id_t *) 0 ; |
|
6469 bool_t result; |
|
6470 void *argp1 = 0 ; |
|
6471 int res1 = 0 ; |
|
6472 void *argp2 = 0 ; |
|
6473 int res2 = 0 ; |
|
6474 int argvi = 0; |
|
6475 dXSARGS; |
|
6476 |
|
6477 if ((items < 2) || (items > 2)) { |
|
6478 SWIG_croak("Usage: xdr_dtn_reg_id_t(XDR *,dtn_reg_id_t *);"); |
|
6479 } |
|
6480 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6481 if (!SWIG_IsOK(res1)) { |
|
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_id_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6483 } |
|
6484 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6485 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_u_int, 0 | 0 ); |
|
6486 if (!SWIG_IsOK(res2)) { |
|
6487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_id_t" "', argument " "2"" of type '" "dtn_reg_id_t *""'"); |
|
6488 } |
|
6489 arg2 = reinterpret_cast< dtn_reg_id_t * >(argp2); |
|
6490 result = xdr_dtn_reg_id_t(arg1,arg2); |
|
6491 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6492 |
|
6493 |
|
6494 XSRETURN(argvi); |
|
6495 fail: |
|
6496 |
|
6497 |
|
6498 SWIG_croak_null(); |
|
6499 } |
|
6500 } |
|
6501 |
|
6502 |
|
6503 XS(_wrap_xdr_dtn_timeval_t) { |
|
6504 { |
|
6505 XDR *arg1 = (XDR *) 0 ; |
|
6506 dtn_timeval_t *arg2 = (dtn_timeval_t *) 0 ; |
|
6507 bool_t result; |
|
6508 void *argp1 = 0 ; |
|
6509 int res1 = 0 ; |
|
6510 void *argp2 = 0 ; |
|
6511 int res2 = 0 ; |
|
6512 int argvi = 0; |
|
6513 dXSARGS; |
|
6514 |
|
6515 if ((items < 2) || (items > 2)) { |
|
6516 SWIG_croak("Usage: xdr_dtn_timeval_t(XDR *,dtn_timeval_t *);"); |
|
6517 } |
|
6518 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6519 if (!SWIG_IsOK(res1)) { |
|
6520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_timeval_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6521 } |
|
6522 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6523 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_u_int, 0 | 0 ); |
|
6524 if (!SWIG_IsOK(res2)) { |
|
6525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_timeval_t" "', argument " "2"" of type '" "dtn_timeval_t *""'"); |
|
6526 } |
|
6527 arg2 = reinterpret_cast< dtn_timeval_t * >(argp2); |
|
6528 result = xdr_dtn_timeval_t(arg1,arg2); |
|
6529 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6530 |
|
6531 |
|
6532 XSRETURN(argvi); |
|
6533 fail: |
|
6534 |
|
6535 |
|
6536 SWIG_croak_null(); |
|
6537 } |
|
6538 } |
|
6539 |
|
6540 |
|
6541 XS(_wrap_xdr_dtn_timestamp_t) { |
|
6542 { |
|
6543 XDR *arg1 = (XDR *) 0 ; |
|
6544 dtn_timestamp_t *arg2 = (dtn_timestamp_t *) 0 ; |
|
6545 bool_t result; |
|
6546 void *argp1 = 0 ; |
|
6547 int res1 = 0 ; |
|
6548 void *argp2 = 0 ; |
|
6549 int res2 = 0 ; |
|
6550 int argvi = 0; |
|
6551 dXSARGS; |
|
6552 |
|
6553 if ((items < 2) || (items > 2)) { |
|
6554 SWIG_croak("Usage: xdr_dtn_timestamp_t(XDR *,dtn_timestamp_t *);"); |
|
6555 } |
|
6556 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6557 if (!SWIG_IsOK(res1)) { |
|
6558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_timestamp_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6559 } |
|
6560 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6561 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_timestamp_t, 0 | 0 ); |
|
6562 if (!SWIG_IsOK(res2)) { |
|
6563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_timestamp_t" "', argument " "2"" of type '" "dtn_timestamp_t *""'"); |
|
6564 } |
|
6565 arg2 = reinterpret_cast< dtn_timestamp_t * >(argp2); |
|
6566 result = xdr_dtn_timestamp_t(arg1,arg2); |
|
6567 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6568 |
|
6569 |
|
6570 XSRETURN(argvi); |
|
6571 fail: |
|
6572 |
|
6573 |
|
6574 SWIG_croak_null(); |
|
6575 } |
|
6576 } |
|
6577 |
|
6578 |
|
6579 XS(_wrap_xdr_dtn_service_tag_t) { |
|
6580 { |
|
6581 XDR *arg1 = (XDR *) 0 ; |
|
6582 dtn_service_tag_t *arg2 = (dtn_service_tag_t *) 0 ; |
|
6583 bool_t result; |
|
6584 void *argp1 = 0 ; |
|
6585 int res1 = 0 ; |
|
6586 void *argp2 = 0 ; |
|
6587 int res2 = 0 ; |
|
6588 int argvi = 0; |
|
6589 dXSARGS; |
|
6590 |
|
6591 if ((items < 2) || (items > 2)) { |
|
6592 SWIG_croak("Usage: xdr_dtn_service_tag_t(XDR *,dtn_service_tag_t *);"); |
|
6593 } |
|
6594 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6595 if (!SWIG_IsOK(res1)) { |
|
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_service_tag_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6597 } |
|
6598 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6599 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_service_tag_t, 0 | 0 ); |
|
6600 if (!SWIG_IsOK(res2)) { |
|
6601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_service_tag_t" "', argument " "2"" of type '" "dtn_service_tag_t *""'"); |
|
6602 } |
|
6603 arg2 = reinterpret_cast< dtn_service_tag_t * >(argp2); |
|
6604 result = xdr_dtn_service_tag_t(arg1,arg2); |
|
6605 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6606 |
|
6607 |
|
6608 XSRETURN(argvi); |
|
6609 fail: |
|
6610 |
|
6611 |
|
6612 SWIG_croak_null(); |
|
6613 } |
|
6614 } |
|
6615 |
|
6616 |
|
6617 XS(_wrap_xdr_dtn_reg_flags_t) { |
|
6618 { |
|
6619 XDR *arg1 = (XDR *) 0 ; |
|
6620 dtn_reg_flags_t *arg2 = (dtn_reg_flags_t *) 0 ; |
|
6621 bool_t result; |
|
6622 void *argp1 = 0 ; |
|
6623 int res1 = 0 ; |
|
6624 void *argp2 = 0 ; |
|
6625 int res2 = 0 ; |
|
6626 int argvi = 0; |
|
6627 dXSARGS; |
|
6628 |
|
6629 if ((items < 2) || (items > 2)) { |
|
6630 SWIG_croak("Usage: xdr_dtn_reg_flags_t(XDR *,dtn_reg_flags_t *);"); |
|
6631 } |
|
6632 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6633 if (!SWIG_IsOK(res1)) { |
|
6634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_flags_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6635 } |
|
6636 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6637 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_reg_flags_t, 0 | 0 ); |
|
6638 if (!SWIG_IsOK(res2)) { |
|
6639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_flags_t" "', argument " "2"" of type '" "dtn_reg_flags_t *""'"); |
|
6640 } |
|
6641 arg2 = reinterpret_cast< dtn_reg_flags_t * >(argp2); |
|
6642 result = xdr_dtn_reg_flags_t(arg1,arg2); |
|
6643 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6644 |
|
6645 |
|
6646 XSRETURN(argvi); |
|
6647 fail: |
|
6648 |
|
6649 |
|
6650 SWIG_croak_null(); |
|
6651 } |
|
6652 } |
|
6653 |
|
6654 |
|
6655 XS(_wrap_xdr_dtn_reg_info_t) { |
|
6656 { |
|
6657 XDR *arg1 = (XDR *) 0 ; |
|
6658 dtn_reg_info_t *arg2 = (dtn_reg_info_t *) 0 ; |
|
6659 bool_t result; |
|
6660 void *argp1 = 0 ; |
|
6661 int res1 = 0 ; |
|
6662 void *argp2 = 0 ; |
|
6663 int res2 = 0 ; |
|
6664 int argvi = 0; |
|
6665 dXSARGS; |
|
6666 |
|
6667 if ((items < 2) || (items > 2)) { |
|
6668 SWIG_croak("Usage: xdr_dtn_reg_info_t(XDR *,dtn_reg_info_t *);"); |
|
6669 } |
|
6670 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6671 if (!SWIG_IsOK(res1)) { |
|
6672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_reg_info_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6673 } |
|
6674 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6675 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
6676 if (!SWIG_IsOK(res2)) { |
|
6677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_reg_info_t" "', argument " "2"" of type '" "dtn_reg_info_t *""'"); |
|
6678 } |
|
6679 arg2 = reinterpret_cast< dtn_reg_info_t * >(argp2); |
|
6680 result = xdr_dtn_reg_info_t(arg1,arg2); |
|
6681 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6682 |
|
6683 |
|
6684 XSRETURN(argvi); |
|
6685 fail: |
|
6686 |
|
6687 |
|
6688 SWIG_croak_null(); |
|
6689 } |
|
6690 } |
|
6691 |
|
6692 |
|
6693 XS(_wrap_xdr_dtn_bundle_priority_t) { |
|
6694 { |
|
6695 XDR *arg1 = (XDR *) 0 ; |
|
6696 dtn_bundle_priority_t *arg2 = (dtn_bundle_priority_t *) 0 ; |
|
6697 bool_t result; |
|
6698 void *argp1 = 0 ; |
|
6699 int res1 = 0 ; |
|
6700 void *argp2 = 0 ; |
|
6701 int res2 = 0 ; |
|
6702 int argvi = 0; |
|
6703 dXSARGS; |
|
6704 |
|
6705 if ((items < 2) || (items > 2)) { |
|
6706 SWIG_croak("Usage: xdr_dtn_bundle_priority_t(XDR *,dtn_bundle_priority_t *);"); |
|
6707 } |
|
6708 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6709 if (!SWIG_IsOK(res1)) { |
|
6710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_priority_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6711 } |
|
6712 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6713 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_priority_t, 0 | 0 ); |
|
6714 if (!SWIG_IsOK(res2)) { |
|
6715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_priority_t" "', argument " "2"" of type '" "dtn_bundle_priority_t *""'"); |
|
6716 } |
|
6717 arg2 = reinterpret_cast< dtn_bundle_priority_t * >(argp2); |
|
6718 result = xdr_dtn_bundle_priority_t(arg1,arg2); |
|
6719 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6720 |
|
6721 |
|
6722 XSRETURN(argvi); |
|
6723 fail: |
|
6724 |
|
6725 |
|
6726 SWIG_croak_null(); |
|
6727 } |
|
6728 } |
|
6729 |
|
6730 |
|
6731 XS(_wrap_xdr_dtn_bundle_delivery_opts_t) { |
|
6732 { |
|
6733 XDR *arg1 = (XDR *) 0 ; |
|
6734 dtn_bundle_delivery_opts_t *arg2 = (dtn_bundle_delivery_opts_t *) 0 ; |
|
6735 bool_t result; |
|
6736 void *argp1 = 0 ; |
|
6737 int res1 = 0 ; |
|
6738 void *argp2 = 0 ; |
|
6739 int res2 = 0 ; |
|
6740 int argvi = 0; |
|
6741 dXSARGS; |
|
6742 |
|
6743 if ((items < 2) || (items > 2)) { |
|
6744 SWIG_croak("Usage: xdr_dtn_bundle_delivery_opts_t(XDR *,dtn_bundle_delivery_opts_t *);"); |
|
6745 } |
|
6746 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6747 if (!SWIG_IsOK(res1)) { |
|
6748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_delivery_opts_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6749 } |
|
6750 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6751 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_delivery_opts_t, 0 | 0 ); |
|
6752 if (!SWIG_IsOK(res2)) { |
|
6753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_delivery_opts_t" "', argument " "2"" of type '" "dtn_bundle_delivery_opts_t *""'"); |
|
6754 } |
|
6755 arg2 = reinterpret_cast< dtn_bundle_delivery_opts_t * >(argp2); |
|
6756 result = xdr_dtn_bundle_delivery_opts_t(arg1,arg2); |
|
6757 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6758 |
|
6759 |
|
6760 XSRETURN(argvi); |
|
6761 fail: |
|
6762 |
|
6763 |
|
6764 SWIG_croak_null(); |
|
6765 } |
|
6766 } |
|
6767 |
|
6768 |
|
6769 XS(_wrap_xdr_dtn_extension_block_flags_t) { |
|
6770 { |
|
6771 XDR *arg1 = (XDR *) 0 ; |
|
6772 dtn_extension_block_flags_t *arg2 = (dtn_extension_block_flags_t *) 0 ; |
|
6773 bool_t result; |
|
6774 void *argp1 = 0 ; |
|
6775 int res1 = 0 ; |
|
6776 void *argp2 = 0 ; |
|
6777 int res2 = 0 ; |
|
6778 int argvi = 0; |
|
6779 dXSARGS; |
|
6780 |
|
6781 if ((items < 2) || (items > 2)) { |
|
6782 SWIG_croak("Usage: xdr_dtn_extension_block_flags_t(XDR *,dtn_extension_block_flags_t *);"); |
|
6783 } |
|
6784 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6785 if (!SWIG_IsOK(res1)) { |
|
6786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_extension_block_flags_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6787 } |
|
6788 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6789 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_flags_t, 0 | 0 ); |
|
6790 if (!SWIG_IsOK(res2)) { |
|
6791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_extension_block_flags_t" "', argument " "2"" of type '" "dtn_extension_block_flags_t *""'"); |
|
6792 } |
|
6793 arg2 = reinterpret_cast< dtn_extension_block_flags_t * >(argp2); |
|
6794 result = xdr_dtn_extension_block_flags_t(arg1,arg2); |
|
6795 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6796 |
|
6797 |
|
6798 XSRETURN(argvi); |
|
6799 fail: |
|
6800 |
|
6801 |
|
6802 SWIG_croak_null(); |
|
6803 } |
|
6804 } |
|
6805 |
|
6806 |
|
6807 XS(_wrap_xdr_dtn_extension_block_t) { |
|
6808 { |
|
6809 XDR *arg1 = (XDR *) 0 ; |
|
6810 dtn_extension_block_t *arg2 = (dtn_extension_block_t *) 0 ; |
|
6811 bool_t result; |
|
6812 void *argp1 = 0 ; |
|
6813 int res1 = 0 ; |
|
6814 void *argp2 = 0 ; |
|
6815 int res2 = 0 ; |
|
6816 int argvi = 0; |
|
6817 dXSARGS; |
|
6818 |
|
6819 if ((items < 2) || (items > 2)) { |
|
6820 SWIG_croak("Usage: xdr_dtn_extension_block_t(XDR *,dtn_extension_block_t *);"); |
|
6821 } |
|
6822 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6823 if (!SWIG_IsOK(res1)) { |
|
6824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_extension_block_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6825 } |
|
6826 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6827 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_extension_block_t, 0 | 0 ); |
|
6828 if (!SWIG_IsOK(res2)) { |
|
6829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_extension_block_t" "', argument " "2"" of type '" "dtn_extension_block_t *""'"); |
|
6830 } |
|
6831 arg2 = reinterpret_cast< dtn_extension_block_t * >(argp2); |
|
6832 result = xdr_dtn_extension_block_t(arg1,arg2); |
|
6833 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6834 |
|
6835 |
|
6836 XSRETURN(argvi); |
|
6837 fail: |
|
6838 |
|
6839 |
|
6840 SWIG_croak_null(); |
|
6841 } |
|
6842 } |
|
6843 |
|
6844 |
|
6845 XS(_wrap_xdr_dtn_sequence_id_t) { |
|
6846 { |
|
6847 XDR *arg1 = (XDR *) 0 ; |
|
6848 dtn_sequence_id_t *arg2 = (dtn_sequence_id_t *) 0 ; |
|
6849 bool_t result; |
|
6850 void *argp1 = 0 ; |
|
6851 int res1 = 0 ; |
|
6852 void *argp2 = 0 ; |
|
6853 int res2 = 0 ; |
|
6854 int argvi = 0; |
|
6855 dXSARGS; |
|
6856 |
|
6857 if ((items < 2) || (items > 2)) { |
|
6858 SWIG_croak("Usage: xdr_dtn_sequence_id_t(XDR *,dtn_sequence_id_t *);"); |
|
6859 } |
|
6860 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6861 if (!SWIG_IsOK(res1)) { |
|
6862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_sequence_id_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6863 } |
|
6864 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6865 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_sequence_id_t, 0 | 0 ); |
|
6866 if (!SWIG_IsOK(res2)) { |
|
6867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_sequence_id_t" "', argument " "2"" of type '" "dtn_sequence_id_t *""'"); |
|
6868 } |
|
6869 arg2 = reinterpret_cast< dtn_sequence_id_t * >(argp2); |
|
6870 result = xdr_dtn_sequence_id_t(arg1,arg2); |
|
6871 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6872 |
|
6873 |
|
6874 XSRETURN(argvi); |
|
6875 fail: |
|
6876 |
|
6877 |
|
6878 SWIG_croak_null(); |
|
6879 } |
|
6880 } |
|
6881 |
|
6882 |
|
6883 XS(_wrap_xdr_dtn_bundle_spec_t) { |
|
6884 { |
|
6885 XDR *arg1 = (XDR *) 0 ; |
|
6886 dtn_bundle_spec_t *arg2 = (dtn_bundle_spec_t *) 0 ; |
|
6887 bool_t result; |
|
6888 void *argp1 = 0 ; |
|
6889 int res1 = 0 ; |
|
6890 void *argp2 = 0 ; |
|
6891 int res2 = 0 ; |
|
6892 int argvi = 0; |
|
6893 dXSARGS; |
|
6894 |
|
6895 if ((items < 2) || (items > 2)) { |
|
6896 SWIG_croak("Usage: xdr_dtn_bundle_spec_t(XDR *,dtn_bundle_spec_t *);"); |
|
6897 } |
|
6898 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6899 if (!SWIG_IsOK(res1)) { |
|
6900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_spec_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6901 } |
|
6902 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6903 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_spec_t, 0 | 0 ); |
|
6904 if (!SWIG_IsOK(res2)) { |
|
6905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_spec_t" "', argument " "2"" of type '" "dtn_bundle_spec_t *""'"); |
|
6906 } |
|
6907 arg2 = reinterpret_cast< dtn_bundle_spec_t * >(argp2); |
|
6908 result = xdr_dtn_bundle_spec_t(arg1,arg2); |
|
6909 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6910 |
|
6911 |
|
6912 XSRETURN(argvi); |
|
6913 fail: |
|
6914 |
|
6915 |
|
6916 SWIG_croak_null(); |
|
6917 } |
|
6918 } |
|
6919 |
|
6920 |
|
6921 XS(_wrap_xdr_dtn_bundle_id_t) { |
|
6922 { |
|
6923 XDR *arg1 = (XDR *) 0 ; |
|
6924 dtn_bundle_id_t *arg2 = (dtn_bundle_id_t *) 0 ; |
|
6925 bool_t result; |
|
6926 void *argp1 = 0 ; |
|
6927 int res1 = 0 ; |
|
6928 void *argp2 = 0 ; |
|
6929 int res2 = 0 ; |
|
6930 int argvi = 0; |
|
6931 dXSARGS; |
|
6932 |
|
6933 if ((items < 2) || (items > 2)) { |
|
6934 SWIG_croak("Usage: xdr_dtn_bundle_id_t(XDR *,dtn_bundle_id_t *);"); |
|
6935 } |
|
6936 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6937 if (!SWIG_IsOK(res1)) { |
|
6938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_id_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6939 } |
|
6940 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6941 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id_t, 0 | 0 ); |
|
6942 if (!SWIG_IsOK(res2)) { |
|
6943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_id_t" "', argument " "2"" of type '" "dtn_bundle_id_t *""'"); |
|
6944 } |
|
6945 arg2 = reinterpret_cast< dtn_bundle_id_t * >(argp2); |
|
6946 result = xdr_dtn_bundle_id_t(arg1,arg2); |
|
6947 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6948 |
|
6949 |
|
6950 XSRETURN(argvi); |
|
6951 fail: |
|
6952 |
|
6953 |
|
6954 SWIG_croak_null(); |
|
6955 } |
|
6956 } |
|
6957 |
|
6958 |
|
6959 XS(_wrap_xdr_dtn_status_report_reason_t) { |
|
6960 { |
|
6961 XDR *arg1 = (XDR *) 0 ; |
|
6962 dtn_status_report_reason_t *arg2 = (dtn_status_report_reason_t *) 0 ; |
|
6963 bool_t result; |
|
6964 void *argp1 = 0 ; |
|
6965 int res1 = 0 ; |
|
6966 void *argp2 = 0 ; |
|
6967 int res2 = 0 ; |
|
6968 int argvi = 0; |
|
6969 dXSARGS; |
|
6970 |
|
6971 if ((items < 2) || (items > 2)) { |
|
6972 SWIG_croak("Usage: xdr_dtn_status_report_reason_t(XDR *,dtn_status_report_reason_t *);"); |
|
6973 } |
|
6974 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
6975 if (!SWIG_IsOK(res1)) { |
|
6976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_status_report_reason_t" "', argument " "1"" of type '" "XDR *""'"); |
|
6977 } |
|
6978 arg1 = reinterpret_cast< XDR * >(argp1); |
|
6979 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report_reason_t, 0 | 0 ); |
|
6980 if (!SWIG_IsOK(res2)) { |
|
6981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_status_report_reason_t" "', argument " "2"" of type '" "dtn_status_report_reason_t *""'"); |
|
6982 } |
|
6983 arg2 = reinterpret_cast< dtn_status_report_reason_t * >(argp2); |
|
6984 result = xdr_dtn_status_report_reason_t(arg1,arg2); |
|
6985 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
6986 |
|
6987 |
|
6988 XSRETURN(argvi); |
|
6989 fail: |
|
6990 |
|
6991 |
|
6992 SWIG_croak_null(); |
|
6993 } |
|
6994 } |
|
6995 |
|
6996 |
|
6997 XS(_wrap_xdr_dtn_status_report_flags_t) { |
|
6998 { |
|
6999 XDR *arg1 = (XDR *) 0 ; |
|
7000 dtn_status_report_flags_t *arg2 = (dtn_status_report_flags_t *) 0 ; |
|
7001 bool_t result; |
|
7002 void *argp1 = 0 ; |
|
7003 int res1 = 0 ; |
|
7004 void *argp2 = 0 ; |
|
7005 int res2 = 0 ; |
|
7006 int argvi = 0; |
|
7007 dXSARGS; |
|
7008 |
|
7009 if ((items < 2) || (items > 2)) { |
|
7010 SWIG_croak("Usage: xdr_dtn_status_report_flags_t(XDR *,dtn_status_report_flags_t *);"); |
|
7011 } |
|
7012 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
7013 if (!SWIG_IsOK(res1)) { |
|
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_status_report_flags_t" "', argument " "1"" of type '" "XDR *""'"); |
|
7015 } |
|
7016 arg1 = reinterpret_cast< XDR * >(argp1); |
|
7017 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report_flags_t, 0 | 0 ); |
|
7018 if (!SWIG_IsOK(res2)) { |
|
7019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_status_report_flags_t" "', argument " "2"" of type '" "dtn_status_report_flags_t *""'"); |
|
7020 } |
|
7021 arg2 = reinterpret_cast< dtn_status_report_flags_t * >(argp2); |
|
7022 result = xdr_dtn_status_report_flags_t(arg1,arg2); |
|
7023 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
7024 |
|
7025 |
|
7026 XSRETURN(argvi); |
|
7027 fail: |
|
7028 |
|
7029 |
|
7030 SWIG_croak_null(); |
|
7031 } |
|
7032 } |
|
7033 |
|
7034 |
|
7035 XS(_wrap_xdr_dtn_bundle_status_report_t) { |
|
7036 { |
|
7037 XDR *arg1 = (XDR *) 0 ; |
|
7038 dtn_bundle_status_report_t *arg2 = (dtn_bundle_status_report_t *) 0 ; |
|
7039 bool_t result; |
|
7040 void *argp1 = 0 ; |
|
7041 int res1 = 0 ; |
|
7042 void *argp2 = 0 ; |
|
7043 int res2 = 0 ; |
|
7044 int argvi = 0; |
|
7045 dXSARGS; |
|
7046 |
|
7047 if ((items < 2) || (items > 2)) { |
|
7048 SWIG_croak("Usage: xdr_dtn_bundle_status_report_t(XDR *,dtn_bundle_status_report_t *);"); |
|
7049 } |
|
7050 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
7051 if (!SWIG_IsOK(res1)) { |
|
7052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_status_report_t" "', argument " "1"" of type '" "XDR *""'"); |
|
7053 } |
|
7054 arg1 = reinterpret_cast< XDR * >(argp1); |
|
7055 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_status_report_t, 0 | 0 ); |
|
7056 if (!SWIG_IsOK(res2)) { |
|
7057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_status_report_t" "', argument " "2"" of type '" "dtn_bundle_status_report_t *""'"); |
|
7058 } |
|
7059 arg2 = reinterpret_cast< dtn_bundle_status_report_t * >(argp2); |
|
7060 result = xdr_dtn_bundle_status_report_t(arg1,arg2); |
|
7061 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
7062 |
|
7063 |
|
7064 XSRETURN(argvi); |
|
7065 fail: |
|
7066 |
|
7067 |
|
7068 SWIG_croak_null(); |
|
7069 } |
|
7070 } |
|
7071 |
|
7072 |
|
7073 XS(_wrap_xdr_dtn_bundle_payload_location_t) { |
|
7074 { |
|
7075 XDR *arg1 = (XDR *) 0 ; |
|
7076 dtn_bundle_payload_location_t *arg2 = (dtn_bundle_payload_location_t *) 0 ; |
|
7077 bool_t result; |
|
7078 void *argp1 = 0 ; |
|
7079 int res1 = 0 ; |
|
7080 void *argp2 = 0 ; |
|
7081 int res2 = 0 ; |
|
7082 int argvi = 0; |
|
7083 dXSARGS; |
|
7084 |
|
7085 if ((items < 2) || (items > 2)) { |
|
7086 SWIG_croak("Usage: xdr_dtn_bundle_payload_location_t(XDR *,dtn_bundle_payload_location_t *);"); |
|
7087 } |
|
7088 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
7089 if (!SWIG_IsOK(res1)) { |
|
7090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_payload_location_t" "', argument " "1"" of type '" "XDR *""'"); |
|
7091 } |
|
7092 arg1 = reinterpret_cast< XDR * >(argp1); |
|
7093 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_payload_location_t, 0 | 0 ); |
|
7094 if (!SWIG_IsOK(res2)) { |
|
7095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_payload_location_t" "', argument " "2"" of type '" "dtn_bundle_payload_location_t *""'"); |
|
7096 } |
|
7097 arg2 = reinterpret_cast< dtn_bundle_payload_location_t * >(argp2); |
|
7098 result = xdr_dtn_bundle_payload_location_t(arg1,arg2); |
|
7099 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
7100 |
|
7101 |
|
7102 XSRETURN(argvi); |
|
7103 fail: |
|
7104 |
|
7105 |
|
7106 SWIG_croak_null(); |
|
7107 } |
|
7108 } |
|
7109 |
|
7110 |
|
7111 XS(_wrap_xdr_dtn_bundle_payload_t) { |
|
7112 { |
|
7113 XDR *arg1 = (XDR *) 0 ; |
|
7114 dtn_bundle_payload_t *arg2 = (dtn_bundle_payload_t *) 0 ; |
|
7115 bool_t result; |
|
7116 void *argp1 = 0 ; |
|
7117 int res1 = 0 ; |
|
7118 void *argp2 = 0 ; |
|
7119 int res2 = 0 ; |
|
7120 int argvi = 0; |
|
7121 dXSARGS; |
|
7122 |
|
7123 if ((items < 2) || (items > 2)) { |
|
7124 SWIG_croak("Usage: xdr_dtn_bundle_payload_t(XDR *,dtn_bundle_payload_t *);"); |
|
7125 } |
|
7126 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XDR, 0 | 0 ); |
|
7127 if (!SWIG_IsOK(res1)) { |
|
7128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xdr_dtn_bundle_payload_t" "', argument " "1"" of type '" "XDR *""'"); |
|
7129 } |
|
7130 arg1 = reinterpret_cast< XDR * >(argp1); |
|
7131 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_payload_t, 0 | 0 ); |
|
7132 if (!SWIG_IsOK(res2)) { |
|
7133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "xdr_dtn_bundle_payload_t" "', argument " "2"" of type '" "dtn_bundle_payload_t *""'"); |
|
7134 } |
|
7135 arg2 = reinterpret_cast< dtn_bundle_payload_t * >(argp2); |
|
7136 result = xdr_dtn_bundle_payload_t(arg1,arg2); |
|
7137 ST(argvi) = SWIG_NewPointerObj((new bool_t(static_cast< const bool_t& >(result))), SWIGTYPE_p_bool_t, SWIG_POINTER_OWN | 0); argvi++ ; |
|
7138 |
|
7139 |
|
7140 XSRETURN(argvi); |
|
7141 fail: |
|
7142 |
|
7143 |
|
7144 SWIG_croak_null(); |
|
7145 } |
|
7146 } |
|
7147 |
|
7148 |
|
7149 XS(_wrap_dtn_strerror) { |
|
7150 { |
|
7151 int arg1 ; |
|
7152 char *result = 0 ; |
|
7153 int val1 ; |
|
7154 int ecode1 = 0 ; |
|
7155 int argvi = 0; |
|
7156 dXSARGS; |
|
7157 |
|
7158 if ((items < 1) || (items > 1)) { |
|
7159 SWIG_croak("Usage: dtn_strerror(err);"); |
|
7160 } |
|
7161 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7162 if (!SWIG_IsOK(ecode1)) { |
|
7163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_strerror" "', argument " "1"" of type '" "int""'"); |
|
7164 } |
|
7165 arg1 = static_cast< int >(val1); |
|
7166 result = (char *)dtn_strerror(arg1); |
|
7167 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; |
|
7168 |
|
7169 XSRETURN(argvi); |
|
7170 fail: |
|
7171 |
|
7172 SWIG_croak_null(); |
|
7173 } |
|
7174 } |
|
7175 |
|
7176 |
|
7177 XS(_wrap_dtn_open) { |
|
7178 { |
|
7179 int result; |
|
7180 int argvi = 0; |
|
7181 dXSARGS; |
|
7182 |
|
7183 if ((items < 0) || (items > 0)) { |
|
7184 SWIG_croak("Usage: dtn_open();"); |
|
7185 } |
|
7186 result = (int)dtn_open(); |
|
7187 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7188 XSRETURN(argvi); |
|
7189 fail: |
|
7190 SWIG_croak_null(); |
|
7191 } |
|
7192 } |
|
7193 |
|
7194 |
|
7195 XS(_wrap_find_handle) { |
|
7196 { |
|
7197 int arg1 ; |
|
7198 dtn_handle_t result; |
|
7199 int val1 ; |
|
7200 int ecode1 = 0 ; |
|
7201 int argvi = 0; |
|
7202 dXSARGS; |
|
7203 |
|
7204 if ((items < 1) || (items > 1)) { |
|
7205 SWIG_croak("Usage: find_handle(i);"); |
|
7206 } |
|
7207 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7208 if (!SWIG_IsOK(ecode1)) { |
|
7209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "find_handle" "', argument " "1"" of type '" "int""'"); |
|
7210 } |
|
7211 arg1 = static_cast< int >(val1); |
|
7212 result = find_handle(arg1); |
|
7213 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++ ; |
|
7214 |
|
7215 XSRETURN(argvi); |
|
7216 fail: |
|
7217 |
|
7218 SWIG_croak_null(); |
|
7219 } |
|
7220 } |
|
7221 |
|
7222 |
|
7223 XS(_wrap_dtn_close) { |
|
7224 { |
|
7225 int arg1 ; |
|
7226 int val1 ; |
|
7227 int ecode1 = 0 ; |
|
7228 int argvi = 0; |
|
7229 dXSARGS; |
|
7230 |
|
7231 if ((items < 1) || (items > 1)) { |
|
7232 SWIG_croak("Usage: dtn_close(handle);"); |
|
7233 } |
|
7234 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7235 if (!SWIG_IsOK(ecode1)) { |
|
7236 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_close" "', argument " "1"" of type '" "int""'"); |
|
7237 } |
|
7238 arg1 = static_cast< int >(val1); |
|
7239 dtn_close(arg1); |
|
7240 |
|
7241 |
|
7242 XSRETURN(argvi); |
|
7243 fail: |
|
7244 |
|
7245 SWIG_croak_null(); |
|
7246 } |
|
7247 } |
|
7248 |
|
7249 |
|
7250 XS(_wrap_dtn_errno) { |
|
7251 { |
|
7252 int arg1 ; |
|
7253 int result; |
|
7254 int val1 ; |
|
7255 int ecode1 = 0 ; |
|
7256 int argvi = 0; |
|
7257 dXSARGS; |
|
7258 |
|
7259 if ((items < 1) || (items > 1)) { |
|
7260 SWIG_croak("Usage: dtn_errno(handle);"); |
|
7261 } |
|
7262 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7263 if (!SWIG_IsOK(ecode1)) { |
|
7264 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_errno" "', argument " "1"" of type '" "int""'"); |
|
7265 } |
|
7266 arg1 = static_cast< int >(val1); |
|
7267 result = (int)dtn_errno(arg1); |
|
7268 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7269 |
|
7270 XSRETURN(argvi); |
|
7271 fail: |
|
7272 |
|
7273 SWIG_croak_null(); |
|
7274 } |
|
7275 } |
|
7276 |
|
7277 |
|
7278 XS(_wrap_dtn_build_local_eid) { |
|
7279 { |
|
7280 int arg1 ; |
|
7281 char *arg2 = (char *) 0 ; |
|
7282 std::string result; |
|
7283 int val1 ; |
|
7284 int ecode1 = 0 ; |
|
7285 int res2 ; |
|
7286 char *buf2 = 0 ; |
|
7287 int alloc2 = 0 ; |
|
7288 int argvi = 0; |
|
7289 dXSARGS; |
|
7290 |
|
7291 if ((items < 2) || (items > 2)) { |
|
7292 SWIG_croak("Usage: dtn_build_local_eid(handle,service_tag);"); |
|
7293 } |
|
7294 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7295 if (!SWIG_IsOK(ecode1)) { |
|
7296 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_build_local_eid" "', argument " "1"" of type '" "int""'"); |
|
7297 } |
|
7298 arg1 = static_cast< int >(val1); |
|
7299 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); |
|
7300 if (!SWIG_IsOK(res2)) { |
|
7301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_build_local_eid" "', argument " "2"" of type '" "char const *""'"); |
|
7302 } |
|
7303 arg2 = reinterpret_cast< char * >(buf2); |
|
7304 result = dtn_build_local_eid(arg1,(char const *)arg2); |
|
7305 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(result)); argvi++ ; |
|
7306 |
|
7307 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
7308 XSRETURN(argvi); |
|
7309 fail: |
|
7310 |
|
7311 if (alloc2 == SWIG_NEWOBJ) delete[] buf2; |
|
7312 SWIG_croak_null(); |
|
7313 } |
|
7314 } |
|
7315 |
|
7316 |
|
7317 XS(_wrap_build_reginfo) { |
|
7318 { |
|
7319 dtn_reg_info_t *arg1 = (dtn_reg_info_t *) 0 ; |
|
7320 std::string *arg2 = 0 ; |
|
7321 unsigned int arg3 ; |
|
7322 unsigned int arg4 ; |
|
7323 bool arg5 ; |
|
7324 std::string *arg6 = 0 ; |
|
7325 int result; |
|
7326 void *argp1 = 0 ; |
|
7327 int res1 = 0 ; |
|
7328 int res2 = SWIG_OLDOBJ ; |
|
7329 unsigned int val3 ; |
|
7330 int ecode3 = 0 ; |
|
7331 unsigned int val4 ; |
|
7332 int ecode4 = 0 ; |
|
7333 bool val5 ; |
|
7334 int ecode5 = 0 ; |
|
7335 int res6 = SWIG_OLDOBJ ; |
|
7336 int argvi = 0; |
|
7337 dXSARGS; |
|
7338 |
|
7339 if ((items < 6) || (items > 6)) { |
|
7340 SWIG_croak("Usage: build_reginfo(reginfo,endpoint,flags,expiration,init_passive,script);"); |
|
7341 } |
|
7342 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_reg_info_t, 0 | 0 ); |
|
7343 if (!SWIG_IsOK(res1)) { |
|
7344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "build_reginfo" "', argument " "1"" of type '" "dtn_reg_info_t *""'"); |
|
7345 } |
|
7346 arg1 = reinterpret_cast< dtn_reg_info_t * >(argp1); |
|
7347 { |
|
7348 std::string *ptr = (std::string *)0; |
|
7349 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
7350 if (!SWIG_IsOK(res2)) { |
|
7351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "build_reginfo" "', argument " "2"" of type '" "std::string const &""'"); |
|
7352 } |
|
7353 if (!ptr) { |
|
7354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "build_reginfo" "', argument " "2"" of type '" "std::string const &""'"); |
|
7355 } |
|
7356 arg2 = ptr; |
|
7357 } |
|
7358 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
|
7359 if (!SWIG_IsOK(ecode3)) { |
|
7360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "build_reginfo" "', argument " "3"" of type '" "unsigned int""'"); |
|
7361 } |
|
7362 arg3 = static_cast< unsigned int >(val3); |
|
7363 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
|
7364 if (!SWIG_IsOK(ecode4)) { |
|
7365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "build_reginfo" "', argument " "4"" of type '" "unsigned int""'"); |
|
7366 } |
|
7367 arg4 = static_cast< unsigned int >(val4); |
|
7368 ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
|
7369 if (!SWIG_IsOK(ecode5)) { |
|
7370 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "build_reginfo" "', argument " "5"" of type '" "bool""'"); |
|
7371 } |
|
7372 arg5 = static_cast< bool >(val5); |
|
7373 { |
|
7374 std::string *ptr = (std::string *)0; |
|
7375 res6 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(5), &ptr); |
|
7376 if (!SWIG_IsOK(res6)) { |
|
7377 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "build_reginfo" "', argument " "6"" of type '" "std::string const &""'"); |
|
7378 } |
|
7379 if (!ptr) { |
|
7380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "build_reginfo" "', argument " "6"" of type '" "std::string const &""'"); |
|
7381 } |
|
7382 arg6 = ptr; |
|
7383 } |
|
7384 result = (int)build_reginfo(arg1,(std::string const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6); |
|
7385 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7386 |
|
7387 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7388 |
|
7389 |
|
7390 |
|
7391 if (SWIG_IsNewObj(res6)) delete arg6; |
|
7392 XSRETURN(argvi); |
|
7393 fail: |
|
7394 |
|
7395 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7396 |
|
7397 |
|
7398 |
|
7399 if (SWIG_IsNewObj(res6)) delete arg6; |
|
7400 SWIG_croak_null(); |
|
7401 } |
|
7402 } |
|
7403 |
|
7404 |
|
7405 XS(_wrap_dtn_register) { |
|
7406 { |
|
7407 int arg1 ; |
|
7408 std::string *arg2 = 0 ; |
|
7409 unsigned int arg3 ; |
|
7410 int arg4 ; |
|
7411 bool arg5 ; |
|
7412 std::string *arg6 = 0 ; |
|
7413 int result; |
|
7414 int val1 ; |
|
7415 int ecode1 = 0 ; |
|
7416 int res2 = SWIG_OLDOBJ ; |
|
7417 unsigned int val3 ; |
|
7418 int ecode3 = 0 ; |
|
7419 int val4 ; |
|
7420 int ecode4 = 0 ; |
|
7421 bool val5 ; |
|
7422 int ecode5 = 0 ; |
|
7423 int res6 = SWIG_OLDOBJ ; |
|
7424 int argvi = 0; |
|
7425 dXSARGS; |
|
7426 |
|
7427 if ((items < 6) || (items > 6)) { |
|
7428 SWIG_croak("Usage: dtn_register(handle,endpoint,flags,expiration,init_passive,script);"); |
|
7429 } |
|
7430 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7431 if (!SWIG_IsOK(ecode1)) { |
|
7432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_register" "', argument " "1"" of type '" "int""'"); |
|
7433 } |
|
7434 arg1 = static_cast< int >(val1); |
|
7435 { |
|
7436 std::string *ptr = (std::string *)0; |
|
7437 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
7438 if (!SWIG_IsOK(res2)) { |
|
7439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_register" "', argument " "2"" of type '" "std::string const &""'"); |
|
7440 } |
|
7441 if (!ptr) { |
|
7442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_register" "', argument " "2"" of type '" "std::string const &""'"); |
|
7443 } |
|
7444 arg2 = ptr; |
|
7445 } |
|
7446 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
|
7447 if (!SWIG_IsOK(ecode3)) { |
|
7448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dtn_register" "', argument " "3"" of type '" "unsigned int""'"); |
|
7449 } |
|
7450 arg3 = static_cast< unsigned int >(val3); |
|
7451 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
|
7452 if (!SWIG_IsOK(ecode4)) { |
|
7453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dtn_register" "', argument " "4"" of type '" "int""'"); |
|
7454 } |
|
7455 arg4 = static_cast< int >(val4); |
|
7456 ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
|
7457 if (!SWIG_IsOK(ecode5)) { |
|
7458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dtn_register" "', argument " "5"" of type '" "bool""'"); |
|
7459 } |
|
7460 arg5 = static_cast< bool >(val5); |
|
7461 { |
|
7462 std::string *ptr = (std::string *)0; |
|
7463 res6 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(5), &ptr); |
|
7464 if (!SWIG_IsOK(res6)) { |
|
7465 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "dtn_register" "', argument " "6"" of type '" "std::string const &""'"); |
|
7466 } |
|
7467 if (!ptr) { |
|
7468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_register" "', argument " "6"" of type '" "std::string const &""'"); |
|
7469 } |
|
7470 arg6 = ptr; |
|
7471 } |
|
7472 result = (int)dtn_register(arg1,(std::string const &)*arg2,arg3,arg4,arg5,(std::string const &)*arg6); |
|
7473 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7474 |
|
7475 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7476 |
|
7477 |
|
7478 |
|
7479 if (SWIG_IsNewObj(res6)) delete arg6; |
|
7480 XSRETURN(argvi); |
|
7481 fail: |
|
7482 |
|
7483 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7484 |
|
7485 |
|
7486 |
|
7487 if (SWIG_IsNewObj(res6)) delete arg6; |
|
7488 SWIG_croak_null(); |
|
7489 } |
|
7490 } |
|
7491 |
|
7492 |
|
7493 XS(_wrap_dtn_unregister) { |
|
7494 { |
|
7495 int arg1 ; |
|
7496 dtn_reg_id_t arg2 ; |
|
7497 int result; |
|
7498 int val1 ; |
|
7499 int ecode1 = 0 ; |
|
7500 void *argp2 ; |
|
7501 int res2 = 0 ; |
|
7502 int argvi = 0; |
|
7503 dXSARGS; |
|
7504 |
|
7505 if ((items < 2) || (items > 2)) { |
|
7506 SWIG_croak("Usage: dtn_unregister(handle,regid);"); |
|
7507 } |
|
7508 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7509 if (!SWIG_IsOK(ecode1)) { |
|
7510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_unregister" "', argument " "1"" of type '" "int""'"); |
|
7511 } |
|
7512 arg1 = static_cast< int >(val1); |
|
7513 { |
|
7514 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
7515 if (!SWIG_IsOK(res2)) { |
|
7516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_unregister" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
7517 } |
|
7518 if (!argp2) { |
|
7519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_unregister" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
7520 } else { |
|
7521 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2)); |
|
7522 } |
|
7523 } |
|
7524 result = (int)dtn_unregister(arg1,arg2); |
|
7525 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7526 |
|
7527 XSRETURN(argvi); |
|
7528 fail: |
|
7529 |
|
7530 SWIG_croak_null(); |
|
7531 } |
|
7532 } |
|
7533 |
|
7534 |
|
7535 XS(_wrap_dtn_find_registration) { |
|
7536 { |
|
7537 int arg1 ; |
|
7538 std::string *arg2 = 0 ; |
|
7539 int result; |
|
7540 int val1 ; |
|
7541 int ecode1 = 0 ; |
|
7542 int res2 = SWIG_OLDOBJ ; |
|
7543 int argvi = 0; |
|
7544 dXSARGS; |
|
7545 |
|
7546 if ((items < 2) || (items > 2)) { |
|
7547 SWIG_croak("Usage: dtn_find_registration(handle,endpoint);"); |
|
7548 } |
|
7549 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7550 if (!SWIG_IsOK(ecode1)) { |
|
7551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_find_registration" "', argument " "1"" of type '" "int""'"); |
|
7552 } |
|
7553 arg1 = static_cast< int >(val1); |
|
7554 { |
|
7555 std::string *ptr = (std::string *)0; |
|
7556 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
7557 if (!SWIG_IsOK(res2)) { |
|
7558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_find_registration" "', argument " "2"" of type '" "std::string const &""'"); |
|
7559 } |
|
7560 if (!ptr) { |
|
7561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_find_registration" "', argument " "2"" of type '" "std::string const &""'"); |
|
7562 } |
|
7563 arg2 = ptr; |
|
7564 } |
|
7565 result = (int)dtn_find_registration(arg1,(std::string const &)*arg2); |
|
7566 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7567 |
|
7568 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7569 XSRETURN(argvi); |
|
7570 fail: |
|
7571 |
|
7572 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7573 SWIG_croak_null(); |
|
7574 } |
|
7575 } |
|
7576 |
|
7577 |
|
7578 XS(_wrap_dtn_change_registration) { |
|
7579 { |
|
7580 int arg1 ; |
|
7581 dtn_reg_id_t arg2 ; |
|
7582 std::string *arg3 = 0 ; |
|
7583 unsigned int arg4 ; |
|
7584 int arg5 ; |
|
7585 bool arg6 ; |
|
7586 std::string *arg7 = 0 ; |
|
7587 int result; |
|
7588 int val1 ; |
|
7589 int ecode1 = 0 ; |
|
7590 void *argp2 ; |
|
7591 int res2 = 0 ; |
|
7592 int res3 = SWIG_OLDOBJ ; |
|
7593 unsigned int val4 ; |
|
7594 int ecode4 = 0 ; |
|
7595 int val5 ; |
|
7596 int ecode5 = 0 ; |
|
7597 bool val6 ; |
|
7598 int ecode6 = 0 ; |
|
7599 int res7 = SWIG_OLDOBJ ; |
|
7600 int argvi = 0; |
|
7601 dXSARGS; |
|
7602 |
|
7603 if ((items < 7) || (items > 7)) { |
|
7604 SWIG_croak("Usage: dtn_change_registration(handle,regid,endpoint,action,expiration,init_passive,script);"); |
|
7605 } |
|
7606 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7607 if (!SWIG_IsOK(ecode1)) { |
|
7608 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_change_registration" "', argument " "1"" of type '" "int""'"); |
|
7609 } |
|
7610 arg1 = static_cast< int >(val1); |
|
7611 { |
|
7612 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_u_int, 0 ); |
|
7613 if (!SWIG_IsOK(res2)) { |
|
7614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_change_registration" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
7615 } |
|
7616 if (!argp2) { |
|
7617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "2"" of type '" "dtn_reg_id_t""'"); |
|
7618 } else { |
|
7619 arg2 = *(reinterpret_cast< dtn_reg_id_t * >(argp2)); |
|
7620 } |
|
7621 } |
|
7622 { |
|
7623 std::string *ptr = (std::string *)0; |
|
7624 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); |
|
7625 if (!SWIG_IsOK(res3)) { |
|
7626 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_change_registration" "', argument " "3"" of type '" "std::string const &""'"); |
|
7627 } |
|
7628 if (!ptr) { |
|
7629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "3"" of type '" "std::string const &""'"); |
|
7630 } |
|
7631 arg3 = ptr; |
|
7632 } |
|
7633 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); |
|
7634 if (!SWIG_IsOK(ecode4)) { |
|
7635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dtn_change_registration" "', argument " "4"" of type '" "unsigned int""'"); |
|
7636 } |
|
7637 arg4 = static_cast< unsigned int >(val4); |
|
7638 ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); |
|
7639 if (!SWIG_IsOK(ecode5)) { |
|
7640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dtn_change_registration" "', argument " "5"" of type '" "int""'"); |
|
7641 } |
|
7642 arg5 = static_cast< int >(val5); |
|
7643 ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); |
|
7644 if (!SWIG_IsOK(ecode6)) { |
|
7645 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_change_registration" "', argument " "6"" of type '" "bool""'"); |
|
7646 } |
|
7647 arg6 = static_cast< bool >(val6); |
|
7648 { |
|
7649 std::string *ptr = (std::string *)0; |
|
7650 res7 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(6), &ptr); |
|
7651 if (!SWIG_IsOK(res7)) { |
|
7652 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dtn_change_registration" "', argument " "7"" of type '" "std::string const &""'"); |
|
7653 } |
|
7654 if (!ptr) { |
|
7655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_change_registration" "', argument " "7"" of type '" "std::string const &""'"); |
|
7656 } |
|
7657 arg7 = ptr; |
|
7658 } |
|
7659 result = (int)dtn_change_registration(arg1,arg2,(std::string const &)*arg3,arg4,arg5,arg6,(std::string const &)*arg7); |
|
7660 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7661 |
|
7662 if (SWIG_IsNewObj(res3)) delete arg3; |
|
7663 |
|
7664 |
|
7665 |
|
7666 if (SWIG_IsNewObj(res7)) delete arg7; |
|
7667 XSRETURN(argvi); |
|
7668 fail: |
|
7669 |
|
7670 if (SWIG_IsNewObj(res3)) delete arg3; |
|
7671 |
|
7672 |
|
7673 |
|
7674 if (SWIG_IsNewObj(res7)) delete arg7; |
|
7675 SWIG_croak_null(); |
|
7676 } |
|
7677 } |
|
7678 |
|
7679 |
|
7680 XS(_wrap_dtn_bind) { |
|
7681 { |
|
7682 int arg1 ; |
|
7683 int arg2 ; |
|
7684 int result; |
|
7685 int val1 ; |
|
7686 int ecode1 = 0 ; |
|
7687 int val2 ; |
|
7688 int ecode2 = 0 ; |
|
7689 int argvi = 0; |
|
7690 dXSARGS; |
|
7691 |
|
7692 if ((items < 2) || (items > 2)) { |
|
7693 SWIG_croak("Usage: dtn_bind(handle,regid);"); |
|
7694 } |
|
7695 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7696 if (!SWIG_IsOK(ecode1)) { |
|
7697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_bind" "', argument " "1"" of type '" "int""'"); |
|
7698 } |
|
7699 arg1 = static_cast< int >(val1); |
|
7700 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
7701 if (!SWIG_IsOK(ecode2)) { |
|
7702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bind" "', argument " "2"" of type '" "int""'"); |
|
7703 } |
|
7704 arg2 = static_cast< int >(val2); |
|
7705 result = (int)dtn_bind(arg1,arg2); |
|
7706 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7707 |
|
7708 |
|
7709 XSRETURN(argvi); |
|
7710 fail: |
|
7711 |
|
7712 |
|
7713 SWIG_croak_null(); |
|
7714 } |
|
7715 } |
|
7716 |
|
7717 |
|
7718 XS(_wrap_dtn_unbind) { |
|
7719 { |
|
7720 int arg1 ; |
|
7721 int arg2 ; |
|
7722 int result; |
|
7723 int val1 ; |
|
7724 int ecode1 = 0 ; |
|
7725 int val2 ; |
|
7726 int ecode2 = 0 ; |
|
7727 int argvi = 0; |
|
7728 dXSARGS; |
|
7729 |
|
7730 if ((items < 2) || (items > 2)) { |
|
7731 SWIG_croak("Usage: dtn_unbind(handle,regid);"); |
|
7732 } |
|
7733 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
7734 if (!SWIG_IsOK(ecode1)) { |
|
7735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_unbind" "', argument " "1"" of type '" "int""'"); |
|
7736 } |
|
7737 arg1 = static_cast< int >(val1); |
|
7738 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
7739 if (!SWIG_IsOK(ecode2)) { |
|
7740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_unbind" "', argument " "2"" of type '" "int""'"); |
|
7741 } |
|
7742 arg2 = static_cast< int >(val2); |
|
7743 result = (int)dtn_unbind(arg1,arg2); |
|
7744 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
7745 |
|
7746 |
|
7747 XSRETURN(argvi); |
|
7748 fail: |
|
7749 |
|
7750 |
|
7751 SWIG_croak_null(); |
|
7752 } |
|
7753 } |
|
7754 |
|
7755 |
|
7756 XS(_wrap_dtn_bundle_id_source_set) { |
|
7757 { |
|
7758 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7759 std::string *arg2 = 0 ; |
|
7760 void *argp1 = 0 ; |
|
7761 int res1 = 0 ; |
|
7762 int res2 = SWIG_OLDOBJ ; |
|
7763 int argvi = 0; |
|
7764 dXSARGS; |
|
7765 |
|
7766 if ((items < 2) || (items > 2)) { |
|
7767 SWIG_croak("Usage: dtn_bundle_id_source_set(self,source);"); |
|
7768 } |
|
7769 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7770 if (!SWIG_IsOK(res1)) { |
|
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_source_set" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7772 } |
|
7773 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7774 { |
|
7775 std::string *ptr = (std::string *)0; |
|
7776 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
7777 if (!SWIG_IsOK(res2)) { |
|
7778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_id_source_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
7779 } |
|
7780 if (!ptr) { |
|
7781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_id_source_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
7782 } |
|
7783 arg2 = ptr; |
|
7784 } |
|
7785 if (arg1) (arg1)->source = *arg2; |
|
7786 |
|
7787 |
|
7788 |
|
7789 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7790 XSRETURN(argvi); |
|
7791 fail: |
|
7792 |
|
7793 if (SWIG_IsNewObj(res2)) delete arg2; |
|
7794 SWIG_croak_null(); |
|
7795 } |
|
7796 } |
|
7797 |
|
7798 |
|
7799 XS(_wrap_dtn_bundle_id_source_get) { |
|
7800 { |
|
7801 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7802 std::string *result = 0 ; |
|
7803 void *argp1 = 0 ; |
|
7804 int res1 = 0 ; |
|
7805 int argvi = 0; |
|
7806 dXSARGS; |
|
7807 |
|
7808 if ((items < 1) || (items > 1)) { |
|
7809 SWIG_croak("Usage: dtn_bundle_id_source_get(self);"); |
|
7810 } |
|
7811 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7812 if (!SWIG_IsOK(res1)) { |
|
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_source_get" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7814 } |
|
7815 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7816 { |
|
7817 std::string const &_result_ref = ((arg1)->source); |
|
7818 result = (std::string *) &_result_ref; |
|
7819 } |
|
7820 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
7821 |
|
7822 XSRETURN(argvi); |
|
7823 fail: |
|
7824 |
|
7825 SWIG_croak_null(); |
|
7826 } |
|
7827 } |
|
7828 |
|
7829 |
|
7830 XS(_wrap_dtn_bundle_id_creation_secs_set) { |
|
7831 { |
|
7832 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7833 unsigned int arg2 ; |
|
7834 void *argp1 = 0 ; |
|
7835 int res1 = 0 ; |
|
7836 unsigned int val2 ; |
|
7837 int ecode2 = 0 ; |
|
7838 int argvi = 0; |
|
7839 dXSARGS; |
|
7840 |
|
7841 if ((items < 2) || (items > 2)) { |
|
7842 SWIG_croak("Usage: dtn_bundle_id_creation_secs_set(self,creation_secs);"); |
|
7843 } |
|
7844 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7845 if (!SWIG_IsOK(res1)) { |
|
7846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_secs_set" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7847 } |
|
7848 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7849 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
7850 if (!SWIG_IsOK(ecode2)) { |
|
7851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_id_creation_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
7852 } |
|
7853 arg2 = static_cast< unsigned int >(val2); |
|
7854 if (arg1) (arg1)->creation_secs = arg2; |
|
7855 |
|
7856 |
|
7857 |
|
7858 |
|
7859 XSRETURN(argvi); |
|
7860 fail: |
|
7861 |
|
7862 |
|
7863 SWIG_croak_null(); |
|
7864 } |
|
7865 } |
|
7866 |
|
7867 |
|
7868 XS(_wrap_dtn_bundle_id_creation_secs_get) { |
|
7869 { |
|
7870 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7871 unsigned int result; |
|
7872 void *argp1 = 0 ; |
|
7873 int res1 = 0 ; |
|
7874 int argvi = 0; |
|
7875 dXSARGS; |
|
7876 |
|
7877 if ((items < 1) || (items > 1)) { |
|
7878 SWIG_croak("Usage: dtn_bundle_id_creation_secs_get(self);"); |
|
7879 } |
|
7880 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7881 if (!SWIG_IsOK(res1)) { |
|
7882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_secs_get" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7883 } |
|
7884 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7885 result = (unsigned int) ((arg1)->creation_secs); |
|
7886 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
7887 |
|
7888 XSRETURN(argvi); |
|
7889 fail: |
|
7890 |
|
7891 SWIG_croak_null(); |
|
7892 } |
|
7893 } |
|
7894 |
|
7895 |
|
7896 XS(_wrap_dtn_bundle_id_creation_seqno_set) { |
|
7897 { |
|
7898 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7899 unsigned int arg2 ; |
|
7900 void *argp1 = 0 ; |
|
7901 int res1 = 0 ; |
|
7902 unsigned int val2 ; |
|
7903 int ecode2 = 0 ; |
|
7904 int argvi = 0; |
|
7905 dXSARGS; |
|
7906 |
|
7907 if ((items < 2) || (items > 2)) { |
|
7908 SWIG_croak("Usage: dtn_bundle_id_creation_seqno_set(self,creation_seqno);"); |
|
7909 } |
|
7910 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7911 if (!SWIG_IsOK(res1)) { |
|
7912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_seqno_set" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7913 } |
|
7914 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7915 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
7916 if (!SWIG_IsOK(ecode2)) { |
|
7917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_id_creation_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
7918 } |
|
7919 arg2 = static_cast< unsigned int >(val2); |
|
7920 if (arg1) (arg1)->creation_seqno = arg2; |
|
7921 |
|
7922 |
|
7923 |
|
7924 |
|
7925 XSRETURN(argvi); |
|
7926 fail: |
|
7927 |
|
7928 |
|
7929 SWIG_croak_null(); |
|
7930 } |
|
7931 } |
|
7932 |
|
7933 |
|
7934 XS(_wrap_dtn_bundle_id_creation_seqno_get) { |
|
7935 { |
|
7936 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7937 unsigned int result; |
|
7938 void *argp1 = 0 ; |
|
7939 int res1 = 0 ; |
|
7940 int argvi = 0; |
|
7941 dXSARGS; |
|
7942 |
|
7943 if ((items < 1) || (items > 1)) { |
|
7944 SWIG_croak("Usage: dtn_bundle_id_creation_seqno_get(self);"); |
|
7945 } |
|
7946 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
7947 if (!SWIG_IsOK(res1)) { |
|
7948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_id_creation_seqno_get" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7949 } |
|
7950 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7951 result = (unsigned int) ((arg1)->creation_seqno); |
|
7952 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
7953 |
|
7954 XSRETURN(argvi); |
|
7955 fail: |
|
7956 |
|
7957 SWIG_croak_null(); |
|
7958 } |
|
7959 } |
|
7960 |
|
7961 |
|
7962 XS(_wrap_new_dtn_bundle_id) { |
|
7963 { |
|
7964 dtn_bundle_id *result = 0 ; |
|
7965 int argvi = 0; |
|
7966 dXSARGS; |
|
7967 |
|
7968 if ((items < 0) || (items > 0)) { |
|
7969 SWIG_croak("Usage: new_dtn_bundle_id();"); |
|
7970 } |
|
7971 result = (dtn_bundle_id *)new dtn_bundle_id(); |
|
7972 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
7973 XSRETURN(argvi); |
|
7974 fail: |
|
7975 SWIG_croak_null(); |
|
7976 } |
|
7977 } |
|
7978 |
|
7979 |
|
7980 XS(_wrap_delete_dtn_bundle_id) { |
|
7981 { |
|
7982 dtn_bundle_id *arg1 = (dtn_bundle_id *) 0 ; |
|
7983 void *argp1 = 0 ; |
|
7984 int res1 = 0 ; |
|
7985 int argvi = 0; |
|
7986 dXSARGS; |
|
7987 |
|
7988 if ((items < 1) || (items > 1)) { |
|
7989 SWIG_croak("Usage: delete_dtn_bundle_id(self);"); |
|
7990 } |
|
7991 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle_id, SWIG_POINTER_DISOWN | 0 ); |
|
7992 if (!SWIG_IsOK(res1)) { |
|
7993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle_id" "', argument " "1"" of type '" "dtn_bundle_id *""'"); |
|
7994 } |
|
7995 arg1 = reinterpret_cast< dtn_bundle_id * >(argp1); |
|
7996 delete arg1; |
|
7997 |
|
7998 |
|
7999 |
|
8000 XSRETURN(argvi); |
|
8001 fail: |
|
8002 |
|
8003 SWIG_croak_null(); |
|
8004 } |
|
8005 } |
|
8006 |
|
8007 |
|
8008 XS(_wrap_dtn_send__SWIG_0) { |
|
8009 { |
|
8010 int arg1 ; |
|
8011 int arg2 ; |
|
8012 std::string *arg3 = 0 ; |
|
8013 std::string *arg4 = 0 ; |
|
8014 std::string *arg5 = 0 ; |
|
8015 unsigned int arg6 ; |
|
8016 unsigned int arg7 ; |
|
8017 unsigned int arg8 ; |
|
8018 unsigned int arg9 ; |
|
8019 std::string *arg10 = 0 ; |
|
8020 std::string *arg11 = 0 ; |
|
8021 std::string *arg12 = 0 ; |
|
8022 dtn_bundle_id *result = 0 ; |
|
8023 int val1 ; |
|
8024 int ecode1 = 0 ; |
|
8025 int val2 ; |
|
8026 int ecode2 = 0 ; |
|
8027 int res3 = SWIG_OLDOBJ ; |
|
8028 int res4 = SWIG_OLDOBJ ; |
|
8029 int res5 = SWIG_OLDOBJ ; |
|
8030 unsigned int val6 ; |
|
8031 int ecode6 = 0 ; |
|
8032 unsigned int val7 ; |
|
8033 int ecode7 = 0 ; |
|
8034 unsigned int val8 ; |
|
8035 int ecode8 = 0 ; |
|
8036 unsigned int val9 ; |
|
8037 int ecode9 = 0 ; |
|
8038 int res10 = SWIG_OLDOBJ ; |
|
8039 int res11 = SWIG_OLDOBJ ; |
|
8040 int res12 = SWIG_OLDOBJ ; |
|
8041 int argvi = 0; |
|
8042 dXSARGS; |
|
8043 |
|
8044 if ((items < 12) || (items > 12)) { |
|
8045 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data,sequence_id,obsoletes_id);"); |
|
8046 } |
|
8047 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
8048 if (!SWIG_IsOK(ecode1)) { |
|
8049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'"); |
|
8050 } |
|
8051 arg1 = static_cast< int >(val1); |
|
8052 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
8053 if (!SWIG_IsOK(ecode2)) { |
|
8054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'"); |
|
8055 } |
|
8056 arg2 = static_cast< int >(val2); |
|
8057 { |
|
8058 std::string *ptr = (std::string *)0; |
|
8059 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); |
|
8060 if (!SWIG_IsOK(res3)) { |
|
8061 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8062 } |
|
8063 if (!ptr) { |
|
8064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8065 } |
|
8066 arg3 = ptr; |
|
8067 } |
|
8068 { |
|
8069 std::string *ptr = (std::string *)0; |
|
8070 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); |
|
8071 if (!SWIG_IsOK(res4)) { |
|
8072 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8073 } |
|
8074 if (!ptr) { |
|
8075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8076 } |
|
8077 arg4 = ptr; |
|
8078 } |
|
8079 { |
|
8080 std::string *ptr = (std::string *)0; |
|
8081 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); |
|
8082 if (!SWIG_IsOK(res5)) { |
|
8083 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8084 } |
|
8085 if (!ptr) { |
|
8086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8087 } |
|
8088 arg5 = ptr; |
|
8089 } |
|
8090 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); |
|
8091 if (!SWIG_IsOK(ecode6)) { |
|
8092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'"); |
|
8093 } |
|
8094 arg6 = static_cast< unsigned int >(val6); |
|
8095 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); |
|
8096 if (!SWIG_IsOK(ecode7)) { |
|
8097 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'"); |
|
8098 } |
|
8099 arg7 = static_cast< unsigned int >(val7); |
|
8100 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); |
|
8101 if (!SWIG_IsOK(ecode8)) { |
|
8102 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'"); |
|
8103 } |
|
8104 arg8 = static_cast< unsigned int >(val8); |
|
8105 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9); |
|
8106 if (!SWIG_IsOK(ecode9)) { |
|
8107 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'"); |
|
8108 } |
|
8109 arg9 = static_cast< unsigned int >(val9); |
|
8110 { |
|
8111 std::string *ptr = (std::string *)0; |
|
8112 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr); |
|
8113 if (!SWIG_IsOK(res10)) { |
|
8114 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8115 } |
|
8116 if (!ptr) { |
|
8117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8118 } |
|
8119 arg10 = ptr; |
|
8120 } |
|
8121 { |
|
8122 std::string *ptr = (std::string *)0; |
|
8123 res11 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), &ptr); |
|
8124 if (!SWIG_IsOK(res11)) { |
|
8125 SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'"); |
|
8126 } |
|
8127 if (!ptr) { |
|
8128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'"); |
|
8129 } |
|
8130 arg11 = ptr; |
|
8131 } |
|
8132 { |
|
8133 std::string *ptr = (std::string *)0; |
|
8134 res12 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(11), &ptr); |
|
8135 if (!SWIG_IsOK(res12)) { |
|
8136 SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "dtn_send" "', argument " "12"" of type '" "std::string const &""'"); |
|
8137 } |
|
8138 if (!ptr) { |
|
8139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "12"" of type '" "std::string const &""'"); |
|
8140 } |
|
8141 arg12 = ptr; |
|
8142 } |
|
8143 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); |
|
8144 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ; |
|
8145 |
|
8146 |
|
8147 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8148 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8149 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8150 |
|
8151 |
|
8152 |
|
8153 |
|
8154 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8155 if (SWIG_IsNewObj(res11)) delete arg11; |
|
8156 if (SWIG_IsNewObj(res12)) delete arg12; |
|
8157 XSRETURN(argvi); |
|
8158 fail: |
|
8159 |
|
8160 |
|
8161 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8162 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8163 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8164 |
|
8165 |
|
8166 |
|
8167 |
|
8168 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8169 if (SWIG_IsNewObj(res11)) delete arg11; |
|
8170 if (SWIG_IsNewObj(res12)) delete arg12; |
|
8171 SWIG_croak_null(); |
|
8172 } |
|
8173 } |
|
8174 |
|
8175 |
|
8176 XS(_wrap_dtn_send__SWIG_1) { |
|
8177 { |
|
8178 int arg1 ; |
|
8179 int arg2 ; |
|
8180 std::string *arg3 = 0 ; |
|
8181 std::string *arg4 = 0 ; |
|
8182 std::string *arg5 = 0 ; |
|
8183 unsigned int arg6 ; |
|
8184 unsigned int arg7 ; |
|
8185 unsigned int arg8 ; |
|
8186 unsigned int arg9 ; |
|
8187 std::string *arg10 = 0 ; |
|
8188 std::string *arg11 = 0 ; |
|
8189 dtn_bundle_id *result = 0 ; |
|
8190 int val1 ; |
|
8191 int ecode1 = 0 ; |
|
8192 int val2 ; |
|
8193 int ecode2 = 0 ; |
|
8194 int res3 = SWIG_OLDOBJ ; |
|
8195 int res4 = SWIG_OLDOBJ ; |
|
8196 int res5 = SWIG_OLDOBJ ; |
|
8197 unsigned int val6 ; |
|
8198 int ecode6 = 0 ; |
|
8199 unsigned int val7 ; |
|
8200 int ecode7 = 0 ; |
|
8201 unsigned int val8 ; |
|
8202 int ecode8 = 0 ; |
|
8203 unsigned int val9 ; |
|
8204 int ecode9 = 0 ; |
|
8205 int res10 = SWIG_OLDOBJ ; |
|
8206 int res11 = SWIG_OLDOBJ ; |
|
8207 int argvi = 0; |
|
8208 dXSARGS; |
|
8209 |
|
8210 if ((items < 11) || (items > 11)) { |
|
8211 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data,sequence_id);"); |
|
8212 } |
|
8213 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
8214 if (!SWIG_IsOK(ecode1)) { |
|
8215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'"); |
|
8216 } |
|
8217 arg1 = static_cast< int >(val1); |
|
8218 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
8219 if (!SWIG_IsOK(ecode2)) { |
|
8220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'"); |
|
8221 } |
|
8222 arg2 = static_cast< int >(val2); |
|
8223 { |
|
8224 std::string *ptr = (std::string *)0; |
|
8225 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); |
|
8226 if (!SWIG_IsOK(res3)) { |
|
8227 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8228 } |
|
8229 if (!ptr) { |
|
8230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8231 } |
|
8232 arg3 = ptr; |
|
8233 } |
|
8234 { |
|
8235 std::string *ptr = (std::string *)0; |
|
8236 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); |
|
8237 if (!SWIG_IsOK(res4)) { |
|
8238 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8239 } |
|
8240 if (!ptr) { |
|
8241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8242 } |
|
8243 arg4 = ptr; |
|
8244 } |
|
8245 { |
|
8246 std::string *ptr = (std::string *)0; |
|
8247 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); |
|
8248 if (!SWIG_IsOK(res5)) { |
|
8249 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8250 } |
|
8251 if (!ptr) { |
|
8252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8253 } |
|
8254 arg5 = ptr; |
|
8255 } |
|
8256 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); |
|
8257 if (!SWIG_IsOK(ecode6)) { |
|
8258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'"); |
|
8259 } |
|
8260 arg6 = static_cast< unsigned int >(val6); |
|
8261 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); |
|
8262 if (!SWIG_IsOK(ecode7)) { |
|
8263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'"); |
|
8264 } |
|
8265 arg7 = static_cast< unsigned int >(val7); |
|
8266 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); |
|
8267 if (!SWIG_IsOK(ecode8)) { |
|
8268 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'"); |
|
8269 } |
|
8270 arg8 = static_cast< unsigned int >(val8); |
|
8271 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9); |
|
8272 if (!SWIG_IsOK(ecode9)) { |
|
8273 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'"); |
|
8274 } |
|
8275 arg9 = static_cast< unsigned int >(val9); |
|
8276 { |
|
8277 std::string *ptr = (std::string *)0; |
|
8278 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr); |
|
8279 if (!SWIG_IsOK(res10)) { |
|
8280 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8281 } |
|
8282 if (!ptr) { |
|
8283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8284 } |
|
8285 arg10 = ptr; |
|
8286 } |
|
8287 { |
|
8288 std::string *ptr = (std::string *)0; |
|
8289 res11 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), &ptr); |
|
8290 if (!SWIG_IsOK(res11)) { |
|
8291 SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'"); |
|
8292 } |
|
8293 if (!ptr) { |
|
8294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "11"" of type '" "std::string const &""'"); |
|
8295 } |
|
8296 arg11 = ptr; |
|
8297 } |
|
8298 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); |
|
8299 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ; |
|
8300 |
|
8301 |
|
8302 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8303 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8304 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8305 |
|
8306 |
|
8307 |
|
8308 |
|
8309 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8310 if (SWIG_IsNewObj(res11)) delete arg11; |
|
8311 XSRETURN(argvi); |
|
8312 fail: |
|
8313 |
|
8314 |
|
8315 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8316 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8317 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8318 |
|
8319 |
|
8320 |
|
8321 |
|
8322 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8323 if (SWIG_IsNewObj(res11)) delete arg11; |
|
8324 SWIG_croak_null(); |
|
8325 } |
|
8326 } |
|
8327 |
|
8328 |
|
8329 XS(_wrap_dtn_send__SWIG_2) { |
|
8330 { |
|
8331 int arg1 ; |
|
8332 int arg2 ; |
|
8333 std::string *arg3 = 0 ; |
|
8334 std::string *arg4 = 0 ; |
|
8335 std::string *arg5 = 0 ; |
|
8336 unsigned int arg6 ; |
|
8337 unsigned int arg7 ; |
|
8338 unsigned int arg8 ; |
|
8339 unsigned int arg9 ; |
|
8340 std::string *arg10 = 0 ; |
|
8341 dtn_bundle_id *result = 0 ; |
|
8342 int val1 ; |
|
8343 int ecode1 = 0 ; |
|
8344 int val2 ; |
|
8345 int ecode2 = 0 ; |
|
8346 int res3 = SWIG_OLDOBJ ; |
|
8347 int res4 = SWIG_OLDOBJ ; |
|
8348 int res5 = SWIG_OLDOBJ ; |
|
8349 unsigned int val6 ; |
|
8350 int ecode6 = 0 ; |
|
8351 unsigned int val7 ; |
|
8352 int ecode7 = 0 ; |
|
8353 unsigned int val8 ; |
|
8354 int ecode8 = 0 ; |
|
8355 unsigned int val9 ; |
|
8356 int ecode9 = 0 ; |
|
8357 int res10 = SWIG_OLDOBJ ; |
|
8358 int argvi = 0; |
|
8359 dXSARGS; |
|
8360 |
|
8361 if ((items < 10) || (items > 10)) { |
|
8362 SWIG_croak("Usage: dtn_send(handle,regid,source,dest,replyto,priority,dopts,expiration,payload_location,payload_data);"); |
|
8363 } |
|
8364 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
8365 if (!SWIG_IsOK(ecode1)) { |
|
8366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_send" "', argument " "1"" of type '" "int""'"); |
|
8367 } |
|
8368 arg1 = static_cast< int >(val1); |
|
8369 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
8370 if (!SWIG_IsOK(ecode2)) { |
|
8371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_send" "', argument " "2"" of type '" "int""'"); |
|
8372 } |
|
8373 arg2 = static_cast< int >(val2); |
|
8374 { |
|
8375 std::string *ptr = (std::string *)0; |
|
8376 res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); |
|
8377 if (!SWIG_IsOK(res3)) { |
|
8378 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8379 } |
|
8380 if (!ptr) { |
|
8381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "3"" of type '" "std::string const &""'"); |
|
8382 } |
|
8383 arg3 = ptr; |
|
8384 } |
|
8385 { |
|
8386 std::string *ptr = (std::string *)0; |
|
8387 res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); |
|
8388 if (!SWIG_IsOK(res4)) { |
|
8389 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8390 } |
|
8391 if (!ptr) { |
|
8392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "4"" of type '" "std::string const &""'"); |
|
8393 } |
|
8394 arg4 = ptr; |
|
8395 } |
|
8396 { |
|
8397 std::string *ptr = (std::string *)0; |
|
8398 res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); |
|
8399 if (!SWIG_IsOK(res5)) { |
|
8400 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8401 } |
|
8402 if (!ptr) { |
|
8403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "5"" of type '" "std::string const &""'"); |
|
8404 } |
|
8405 arg5 = ptr; |
|
8406 } |
|
8407 ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); |
|
8408 if (!SWIG_IsOK(ecode6)) { |
|
8409 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dtn_send" "', argument " "6"" of type '" "unsigned int""'"); |
|
8410 } |
|
8411 arg6 = static_cast< unsigned int >(val6); |
|
8412 ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); |
|
8413 if (!SWIG_IsOK(ecode7)) { |
|
8414 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "dtn_send" "', argument " "7"" of type '" "unsigned int""'"); |
|
8415 } |
|
8416 arg7 = static_cast< unsigned int >(val7); |
|
8417 ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); |
|
8418 if (!SWIG_IsOK(ecode8)) { |
|
8419 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "dtn_send" "', argument " "8"" of type '" "unsigned int""'"); |
|
8420 } |
|
8421 arg8 = static_cast< unsigned int >(val8); |
|
8422 ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9); |
|
8423 if (!SWIG_IsOK(ecode9)) { |
|
8424 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dtn_send" "', argument " "9"" of type '" "unsigned int""'"); |
|
8425 } |
|
8426 arg9 = static_cast< unsigned int >(val9); |
|
8427 { |
|
8428 std::string *ptr = (std::string *)0; |
|
8429 res10 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), &ptr); |
|
8430 if (!SWIG_IsOK(res10)) { |
|
8431 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8432 } |
|
8433 if (!ptr) { |
|
8434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_send" "', argument " "10"" of type '" "std::string const &""'"); |
|
8435 } |
|
8436 arg10 = ptr; |
|
8437 } |
|
8438 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); |
|
8439 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ; |
|
8440 |
|
8441 |
|
8442 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8443 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8444 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8445 |
|
8446 |
|
8447 |
|
8448 |
|
8449 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8450 XSRETURN(argvi); |
|
8451 fail: |
|
8452 |
|
8453 |
|
8454 if (SWIG_IsNewObj(res3)) delete arg3; |
|
8455 if (SWIG_IsNewObj(res4)) delete arg4; |
|
8456 if (SWIG_IsNewObj(res5)) delete arg5; |
|
8457 |
|
8458 |
|
8459 |
|
8460 |
|
8461 if (SWIG_IsNewObj(res10)) delete arg10; |
|
8462 SWIG_croak_null(); |
|
8463 } |
|
8464 } |
|
8465 |
|
8466 |
|
8467 XS(_wrap_dtn_send) { |
|
8468 dXSARGS; |
|
8469 |
|
8470 { |
|
8471 unsigned long _index = 0; |
|
8472 SWIG_TypeRank _rank = 0; |
|
8473 if (items == 10) { |
|
8474 SWIG_TypeRank _ranki = 0; |
|
8475 SWIG_TypeRank _rankm = 0; |
|
8476 SWIG_TypeRank _pi = 1; |
|
8477 int _v = 0; |
|
8478 { |
|
8479 { |
|
8480 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); |
|
8481 _v = SWIG_CheckState(res); |
|
8482 } |
|
8483 } |
|
8484 if (!_v) goto check_1; |
|
8485 _ranki += _v*_pi; |
|
8486 _rankm += _pi; |
|
8487 _pi *= SWIG_MAXCASTRANK; |
|
8488 { |
|
8489 { |
|
8490 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); |
|
8491 _v = SWIG_CheckState(res); |
|
8492 } |
|
8493 } |
|
8494 if (!_v) goto check_1; |
|
8495 _ranki += _v*_pi; |
|
8496 _rankm += _pi; |
|
8497 _pi *= SWIG_MAXCASTRANK; |
|
8498 { |
|
8499 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0)); |
|
8500 _v = SWIG_CheckState(res); |
|
8501 } |
|
8502 if (!_v) goto check_1; |
|
8503 _ranki += _v*_pi; |
|
8504 _rankm += _pi; |
|
8505 _pi *= SWIG_MAXCASTRANK; |
|
8506 { |
|
8507 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0)); |
|
8508 _v = SWIG_CheckState(res); |
|
8509 } |
|
8510 if (!_v) goto check_1; |
|
8511 _ranki += _v*_pi; |
|
8512 _rankm += _pi; |
|
8513 _pi *= SWIG_MAXCASTRANK; |
|
8514 { |
|
8515 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0)); |
|
8516 _v = SWIG_CheckState(res); |
|
8517 } |
|
8518 if (!_v) goto check_1; |
|
8519 _ranki += _v*_pi; |
|
8520 _rankm += _pi; |
|
8521 _pi *= SWIG_MAXCASTRANK; |
|
8522 { |
|
8523 { |
|
8524 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); |
|
8525 _v = SWIG_CheckState(res); |
|
8526 } |
|
8527 } |
|
8528 if (!_v) goto check_1; |
|
8529 _ranki += _v*_pi; |
|
8530 _rankm += _pi; |
|
8531 _pi *= SWIG_MAXCASTRANK; |
|
8532 { |
|
8533 { |
|
8534 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); |
|
8535 _v = SWIG_CheckState(res); |
|
8536 } |
|
8537 } |
|
8538 if (!_v) goto check_1; |
|
8539 _ranki += _v*_pi; |
|
8540 _rankm += _pi; |
|
8541 _pi *= SWIG_MAXCASTRANK; |
|
8542 { |
|
8543 { |
|
8544 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); |
|
8545 _v = SWIG_CheckState(res); |
|
8546 } |
|
8547 } |
|
8548 if (!_v) goto check_1; |
|
8549 _ranki += _v*_pi; |
|
8550 _rankm += _pi; |
|
8551 _pi *= SWIG_MAXCASTRANK; |
|
8552 { |
|
8553 { |
|
8554 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL); |
|
8555 _v = SWIG_CheckState(res); |
|
8556 } |
|
8557 } |
|
8558 if (!_v) goto check_1; |
|
8559 _ranki += _v*_pi; |
|
8560 _rankm += _pi; |
|
8561 _pi *= SWIG_MAXCASTRANK; |
|
8562 { |
|
8563 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0)); |
|
8564 _v = SWIG_CheckState(res); |
|
8565 } |
|
8566 if (!_v) goto check_1; |
|
8567 _ranki += _v*_pi; |
|
8568 _rankm += _pi; |
|
8569 _pi *= SWIG_MAXCASTRANK; |
|
8570 if (!_index || (_ranki < _rank)) { |
|
8571 _rank = _ranki; _index = 1; |
|
8572 if (_rank == _rankm) goto dispatch; |
|
8573 } |
|
8574 } |
|
8575 check_1: |
|
8576 |
|
8577 if (items == 11) { |
|
8578 SWIG_TypeRank _ranki = 0; |
|
8579 SWIG_TypeRank _rankm = 0; |
|
8580 SWIG_TypeRank _pi = 1; |
|
8581 int _v = 0; |
|
8582 { |
|
8583 { |
|
8584 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); |
|
8585 _v = SWIG_CheckState(res); |
|
8586 } |
|
8587 } |
|
8588 if (!_v) goto check_2; |
|
8589 _ranki += _v*_pi; |
|
8590 _rankm += _pi; |
|
8591 _pi *= SWIG_MAXCASTRANK; |
|
8592 { |
|
8593 { |
|
8594 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); |
|
8595 _v = SWIG_CheckState(res); |
|
8596 } |
|
8597 } |
|
8598 if (!_v) goto check_2; |
|
8599 _ranki += _v*_pi; |
|
8600 _rankm += _pi; |
|
8601 _pi *= SWIG_MAXCASTRANK; |
|
8602 { |
|
8603 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0)); |
|
8604 _v = SWIG_CheckState(res); |
|
8605 } |
|
8606 if (!_v) goto check_2; |
|
8607 _ranki += _v*_pi; |
|
8608 _rankm += _pi; |
|
8609 _pi *= SWIG_MAXCASTRANK; |
|
8610 { |
|
8611 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0)); |
|
8612 _v = SWIG_CheckState(res); |
|
8613 } |
|
8614 if (!_v) goto check_2; |
|
8615 _ranki += _v*_pi; |
|
8616 _rankm += _pi; |
|
8617 _pi *= SWIG_MAXCASTRANK; |
|
8618 { |
|
8619 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0)); |
|
8620 _v = SWIG_CheckState(res); |
|
8621 } |
|
8622 if (!_v) goto check_2; |
|
8623 _ranki += _v*_pi; |
|
8624 _rankm += _pi; |
|
8625 _pi *= SWIG_MAXCASTRANK; |
|
8626 { |
|
8627 { |
|
8628 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); |
|
8629 _v = SWIG_CheckState(res); |
|
8630 } |
|
8631 } |
|
8632 if (!_v) goto check_2; |
|
8633 _ranki += _v*_pi; |
|
8634 _rankm += _pi; |
|
8635 _pi *= SWIG_MAXCASTRANK; |
|
8636 { |
|
8637 { |
|
8638 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); |
|
8639 _v = SWIG_CheckState(res); |
|
8640 } |
|
8641 } |
|
8642 if (!_v) goto check_2; |
|
8643 _ranki += _v*_pi; |
|
8644 _rankm += _pi; |
|
8645 _pi *= SWIG_MAXCASTRANK; |
|
8646 { |
|
8647 { |
|
8648 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); |
|
8649 _v = SWIG_CheckState(res); |
|
8650 } |
|
8651 } |
|
8652 if (!_v) goto check_2; |
|
8653 _ranki += _v*_pi; |
|
8654 _rankm += _pi; |
|
8655 _pi *= SWIG_MAXCASTRANK; |
|
8656 { |
|
8657 { |
|
8658 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL); |
|
8659 _v = SWIG_CheckState(res); |
|
8660 } |
|
8661 } |
|
8662 if (!_v) goto check_2; |
|
8663 _ranki += _v*_pi; |
|
8664 _rankm += _pi; |
|
8665 _pi *= SWIG_MAXCASTRANK; |
|
8666 { |
|
8667 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0)); |
|
8668 _v = SWIG_CheckState(res); |
|
8669 } |
|
8670 if (!_v) goto check_2; |
|
8671 _ranki += _v*_pi; |
|
8672 _rankm += _pi; |
|
8673 _pi *= SWIG_MAXCASTRANK; |
|
8674 { |
|
8675 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), (std::string**)(0)); |
|
8676 _v = SWIG_CheckState(res); |
|
8677 } |
|
8678 if (!_v) goto check_2; |
|
8679 _ranki += _v*_pi; |
|
8680 _rankm += _pi; |
|
8681 _pi *= SWIG_MAXCASTRANK; |
|
8682 if (!_index || (_ranki < _rank)) { |
|
8683 _rank = _ranki; _index = 2; |
|
8684 if (_rank == _rankm) goto dispatch; |
|
8685 } |
|
8686 } |
|
8687 check_2: |
|
8688 |
|
8689 if (items == 12) { |
|
8690 SWIG_TypeRank _ranki = 0; |
|
8691 SWIG_TypeRank _rankm = 0; |
|
8692 SWIG_TypeRank _pi = 1; |
|
8693 int _v = 0; |
|
8694 { |
|
8695 { |
|
8696 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); |
|
8697 _v = SWIG_CheckState(res); |
|
8698 } |
|
8699 } |
|
8700 if (!_v) goto check_3; |
|
8701 _ranki += _v*_pi; |
|
8702 _rankm += _pi; |
|
8703 _pi *= SWIG_MAXCASTRANK; |
|
8704 { |
|
8705 { |
|
8706 int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); |
|
8707 _v = SWIG_CheckState(res); |
|
8708 } |
|
8709 } |
|
8710 if (!_v) goto check_3; |
|
8711 _ranki += _v*_pi; |
|
8712 _rankm += _pi; |
|
8713 _pi *= SWIG_MAXCASTRANK; |
|
8714 { |
|
8715 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), (std::string**)(0)); |
|
8716 _v = SWIG_CheckState(res); |
|
8717 } |
|
8718 if (!_v) goto check_3; |
|
8719 _ranki += _v*_pi; |
|
8720 _rankm += _pi; |
|
8721 _pi *= SWIG_MAXCASTRANK; |
|
8722 { |
|
8723 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), (std::string**)(0)); |
|
8724 _v = SWIG_CheckState(res); |
|
8725 } |
|
8726 if (!_v) goto check_3; |
|
8727 _ranki += _v*_pi; |
|
8728 _rankm += _pi; |
|
8729 _pi *= SWIG_MAXCASTRANK; |
|
8730 { |
|
8731 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), (std::string**)(0)); |
|
8732 _v = SWIG_CheckState(res); |
|
8733 } |
|
8734 if (!_v) goto check_3; |
|
8735 _ranki += _v*_pi; |
|
8736 _rankm += _pi; |
|
8737 _pi *= SWIG_MAXCASTRANK; |
|
8738 { |
|
8739 { |
|
8740 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); |
|
8741 _v = SWIG_CheckState(res); |
|
8742 } |
|
8743 } |
|
8744 if (!_v) goto check_3; |
|
8745 _ranki += _v*_pi; |
|
8746 _rankm += _pi; |
|
8747 _pi *= SWIG_MAXCASTRANK; |
|
8748 { |
|
8749 { |
|
8750 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); |
|
8751 _v = SWIG_CheckState(res); |
|
8752 } |
|
8753 } |
|
8754 if (!_v) goto check_3; |
|
8755 _ranki += _v*_pi; |
|
8756 _rankm += _pi; |
|
8757 _pi *= SWIG_MAXCASTRANK; |
|
8758 { |
|
8759 { |
|
8760 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); |
|
8761 _v = SWIG_CheckState(res); |
|
8762 } |
|
8763 } |
|
8764 if (!_v) goto check_3; |
|
8765 _ranki += _v*_pi; |
|
8766 _rankm += _pi; |
|
8767 _pi *= SWIG_MAXCASTRANK; |
|
8768 { |
|
8769 { |
|
8770 int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL); |
|
8771 _v = SWIG_CheckState(res); |
|
8772 } |
|
8773 } |
|
8774 if (!_v) goto check_3; |
|
8775 _ranki += _v*_pi; |
|
8776 _rankm += _pi; |
|
8777 _pi *= SWIG_MAXCASTRANK; |
|
8778 { |
|
8779 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(9), (std::string**)(0)); |
|
8780 _v = SWIG_CheckState(res); |
|
8781 } |
|
8782 if (!_v) goto check_3; |
|
8783 _ranki += _v*_pi; |
|
8784 _rankm += _pi; |
|
8785 _pi *= SWIG_MAXCASTRANK; |
|
8786 { |
|
8787 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(10), (std::string**)(0)); |
|
8788 _v = SWIG_CheckState(res); |
|
8789 } |
|
8790 if (!_v) goto check_3; |
|
8791 _ranki += _v*_pi; |
|
8792 _rankm += _pi; |
|
8793 _pi *= SWIG_MAXCASTRANK; |
|
8794 { |
|
8795 int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(11), (std::string**)(0)); |
|
8796 _v = SWIG_CheckState(res); |
|
8797 } |
|
8798 if (!_v) goto check_3; |
|
8799 _ranki += _v*_pi; |
|
8800 _rankm += _pi; |
|
8801 _pi *= SWIG_MAXCASTRANK; |
|
8802 if (!_index || (_ranki < _rank)) { |
|
8803 _rank = _ranki; _index = 3; |
|
8804 if (_rank == _rankm) goto dispatch; |
|
8805 } |
|
8806 } |
|
8807 check_3: |
|
8808 |
|
8809 dispatch: |
|
8810 switch(_index) { |
|
8811 case 1: |
|
8812 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_2); return; |
|
8813 case 2: |
|
8814 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_1); return; |
|
8815 case 3: |
|
8816 ++PL_markstack_ptr; SWIG_CALLXS(_wrap_dtn_send__SWIG_0); return; |
|
8817 } |
|
8818 } |
|
8819 |
|
8820 croak("No matching function for overloaded 'dtn_send'"); |
|
8821 XSRETURN(0); |
|
8822 } |
|
8823 |
|
8824 |
|
8825 XS(_wrap_dtn_cancel) { |
|
8826 { |
|
8827 int arg1 ; |
|
8828 dtn_bundle_id *arg2 = 0 ; |
|
8829 int result; |
|
8830 int val1 ; |
|
8831 int ecode1 = 0 ; |
|
8832 void *argp2 ; |
|
8833 int res2 = 0 ; |
|
8834 int argvi = 0; |
|
8835 dXSARGS; |
|
8836 |
|
8837 if ((items < 2) || (items > 2)) { |
|
8838 SWIG_croak("Usage: dtn_cancel(handle,id);"); |
|
8839 } |
|
8840 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
8841 if (!SWIG_IsOK(ecode1)) { |
|
8842 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_cancel" "', argument " "1"" of type '" "int""'"); |
|
8843 } |
|
8844 arg1 = static_cast< int >(val1); |
|
8845 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_dtn_bundle_id, 0 ); |
|
8846 if (!SWIG_IsOK(res2)) { |
|
8847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_cancel" "', argument " "2"" of type '" "dtn_bundle_id const &""'"); |
|
8848 } |
|
8849 if (!argp2) { |
|
8850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_cancel" "', argument " "2"" of type '" "dtn_bundle_id const &""'"); |
|
8851 } |
|
8852 arg2 = reinterpret_cast< dtn_bundle_id * >(argp2); |
|
8853 result = (int)dtn_cancel(arg1,(dtn_bundle_id const &)*arg2); |
|
8854 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
8855 |
|
8856 |
|
8857 XSRETURN(argvi); |
|
8858 fail: |
|
8859 |
|
8860 |
|
8861 SWIG_croak_null(); |
|
8862 } |
|
8863 } |
|
8864 |
|
8865 |
|
8866 XS(_wrap_dtn_status_report_bundle_id_set) { |
|
8867 { |
|
8868 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
8869 dtn_bundle_id *arg2 = (dtn_bundle_id *) 0 ; |
|
8870 void *argp1 = 0 ; |
|
8871 int res1 = 0 ; |
|
8872 void *argp2 = 0 ; |
|
8873 int res2 = 0 ; |
|
8874 int argvi = 0; |
|
8875 dXSARGS; |
|
8876 |
|
8877 if ((items < 2) || (items > 2)) { |
|
8878 SWIG_croak("Usage: dtn_status_report_bundle_id_set(self,bundle_id);"); |
|
8879 } |
|
8880 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
8881 if (!SWIG_IsOK(res1)) { |
|
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_bundle_id_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
8883 } |
|
8884 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
8885 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_bundle_id, 0 | 0 ); |
|
8886 if (!SWIG_IsOK(res2)) { |
|
8887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_status_report_bundle_id_set" "', argument " "2"" of type '" "dtn_bundle_id *""'"); |
|
8888 } |
|
8889 arg2 = reinterpret_cast< dtn_bundle_id * >(argp2); |
|
8890 if (arg1) (arg1)->bundle_id = *arg2; |
|
8891 |
|
8892 |
|
8893 |
|
8894 |
|
8895 XSRETURN(argvi); |
|
8896 fail: |
|
8897 |
|
8898 |
|
8899 SWIG_croak_null(); |
|
8900 } |
|
8901 } |
|
8902 |
|
8903 |
|
8904 XS(_wrap_dtn_status_report_bundle_id_get) { |
|
8905 { |
|
8906 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
8907 dtn_bundle_id *result = 0 ; |
|
8908 void *argp1 = 0 ; |
|
8909 int res1 = 0 ; |
|
8910 int argvi = 0; |
|
8911 dXSARGS; |
|
8912 |
|
8913 if ((items < 1) || (items > 1)) { |
|
8914 SWIG_croak("Usage: dtn_status_report_bundle_id_get(self);"); |
|
8915 } |
|
8916 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
8917 if (!SWIG_IsOK(res1)) { |
|
8918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_bundle_id_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
8919 } |
|
8920 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
8921 result = (dtn_bundle_id *)& ((arg1)->bundle_id); |
|
8922 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle_id, 0 | SWIG_SHADOW); argvi++ ; |
|
8923 |
|
8924 XSRETURN(argvi); |
|
8925 fail: |
|
8926 |
|
8927 SWIG_croak_null(); |
|
8928 } |
|
8929 } |
|
8930 |
|
8931 |
|
8932 XS(_wrap_dtn_status_report_reason_set) { |
|
8933 { |
|
8934 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
8935 unsigned int arg2 ; |
|
8936 void *argp1 = 0 ; |
|
8937 int res1 = 0 ; |
|
8938 unsigned int val2 ; |
|
8939 int ecode2 = 0 ; |
|
8940 int argvi = 0; |
|
8941 dXSARGS; |
|
8942 |
|
8943 if ((items < 2) || (items > 2)) { |
|
8944 SWIG_croak("Usage: dtn_status_report_reason_set(self,reason);"); |
|
8945 } |
|
8946 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
8947 if (!SWIG_IsOK(res1)) { |
|
8948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_reason_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
8949 } |
|
8950 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
8951 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
8952 if (!SWIG_IsOK(ecode2)) { |
|
8953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_reason_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
8954 } |
|
8955 arg2 = static_cast< unsigned int >(val2); |
|
8956 if (arg1) (arg1)->reason = arg2; |
|
8957 |
|
8958 |
|
8959 |
|
8960 |
|
8961 XSRETURN(argvi); |
|
8962 fail: |
|
8963 |
|
8964 |
|
8965 SWIG_croak_null(); |
|
8966 } |
|
8967 } |
|
8968 |
|
8969 |
|
8970 XS(_wrap_dtn_status_report_reason_get) { |
|
8971 { |
|
8972 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
8973 unsigned int result; |
|
8974 void *argp1 = 0 ; |
|
8975 int res1 = 0 ; |
|
8976 int argvi = 0; |
|
8977 dXSARGS; |
|
8978 |
|
8979 if ((items < 1) || (items > 1)) { |
|
8980 SWIG_croak("Usage: dtn_status_report_reason_get(self);"); |
|
8981 } |
|
8982 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
8983 if (!SWIG_IsOK(res1)) { |
|
8984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_reason_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
8985 } |
|
8986 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
8987 result = (unsigned int) ((arg1)->reason); |
|
8988 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
8989 |
|
8990 XSRETURN(argvi); |
|
8991 fail: |
|
8992 |
|
8993 SWIG_croak_null(); |
|
8994 } |
|
8995 } |
|
8996 |
|
8997 |
|
8998 XS(_wrap_dtn_status_report_flags_set) { |
|
8999 { |
|
9000 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9001 unsigned int arg2 ; |
|
9002 void *argp1 = 0 ; |
|
9003 int res1 = 0 ; |
|
9004 unsigned int val2 ; |
|
9005 int ecode2 = 0 ; |
|
9006 int argvi = 0; |
|
9007 dXSARGS; |
|
9008 |
|
9009 if ((items < 2) || (items > 2)) { |
|
9010 SWIG_croak("Usage: dtn_status_report_flags_set(self,flags);"); |
|
9011 } |
|
9012 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9013 if (!SWIG_IsOK(res1)) { |
|
9014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_flags_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9015 } |
|
9016 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9017 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9018 if (!SWIG_IsOK(ecode2)) { |
|
9019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_flags_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9020 } |
|
9021 arg2 = static_cast< unsigned int >(val2); |
|
9022 if (arg1) (arg1)->flags = arg2; |
|
9023 |
|
9024 |
|
9025 |
|
9026 |
|
9027 XSRETURN(argvi); |
|
9028 fail: |
|
9029 |
|
9030 |
|
9031 SWIG_croak_null(); |
|
9032 } |
|
9033 } |
|
9034 |
|
9035 |
|
9036 XS(_wrap_dtn_status_report_flags_get) { |
|
9037 { |
|
9038 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9039 unsigned int result; |
|
9040 void *argp1 = 0 ; |
|
9041 int res1 = 0 ; |
|
9042 int argvi = 0; |
|
9043 dXSARGS; |
|
9044 |
|
9045 if ((items < 1) || (items > 1)) { |
|
9046 SWIG_croak("Usage: dtn_status_report_flags_get(self);"); |
|
9047 } |
|
9048 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9049 if (!SWIG_IsOK(res1)) { |
|
9050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_flags_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9051 } |
|
9052 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9053 result = (unsigned int) ((arg1)->flags); |
|
9054 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9055 |
|
9056 XSRETURN(argvi); |
|
9057 fail: |
|
9058 |
|
9059 SWIG_croak_null(); |
|
9060 } |
|
9061 } |
|
9062 |
|
9063 |
|
9064 XS(_wrap_dtn_status_report_receipt_ts_secs_set) { |
|
9065 { |
|
9066 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9067 unsigned int arg2 ; |
|
9068 void *argp1 = 0 ; |
|
9069 int res1 = 0 ; |
|
9070 unsigned int val2 ; |
|
9071 int ecode2 = 0 ; |
|
9072 int argvi = 0; |
|
9073 dXSARGS; |
|
9074 |
|
9075 if ((items < 2) || (items > 2)) { |
|
9076 SWIG_croak("Usage: dtn_status_report_receipt_ts_secs_set(self,receipt_ts_secs);"); |
|
9077 } |
|
9078 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9079 if (!SWIG_IsOK(res1)) { |
|
9080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9081 } |
|
9082 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9083 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9084 if (!SWIG_IsOK(ecode2)) { |
|
9085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_receipt_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9086 } |
|
9087 arg2 = static_cast< unsigned int >(val2); |
|
9088 if (arg1) (arg1)->receipt_ts_secs = arg2; |
|
9089 |
|
9090 |
|
9091 |
|
9092 |
|
9093 XSRETURN(argvi); |
|
9094 fail: |
|
9095 |
|
9096 |
|
9097 SWIG_croak_null(); |
|
9098 } |
|
9099 } |
|
9100 |
|
9101 |
|
9102 XS(_wrap_dtn_status_report_receipt_ts_secs_get) { |
|
9103 { |
|
9104 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9105 unsigned int result; |
|
9106 void *argp1 = 0 ; |
|
9107 int res1 = 0 ; |
|
9108 int argvi = 0; |
|
9109 dXSARGS; |
|
9110 |
|
9111 if ((items < 1) || (items > 1)) { |
|
9112 SWIG_croak("Usage: dtn_status_report_receipt_ts_secs_get(self);"); |
|
9113 } |
|
9114 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9115 if (!SWIG_IsOK(res1)) { |
|
9116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9117 } |
|
9118 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9119 result = (unsigned int) ((arg1)->receipt_ts_secs); |
|
9120 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9121 |
|
9122 XSRETURN(argvi); |
|
9123 fail: |
|
9124 |
|
9125 SWIG_croak_null(); |
|
9126 } |
|
9127 } |
|
9128 |
|
9129 |
|
9130 XS(_wrap_dtn_status_report_receipt_ts_seqno_set) { |
|
9131 { |
|
9132 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9133 unsigned int arg2 ; |
|
9134 void *argp1 = 0 ; |
|
9135 int res1 = 0 ; |
|
9136 unsigned int val2 ; |
|
9137 int ecode2 = 0 ; |
|
9138 int argvi = 0; |
|
9139 dXSARGS; |
|
9140 |
|
9141 if ((items < 2) || (items > 2)) { |
|
9142 SWIG_croak("Usage: dtn_status_report_receipt_ts_seqno_set(self,receipt_ts_seqno);"); |
|
9143 } |
|
9144 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9145 if (!SWIG_IsOK(res1)) { |
|
9146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9147 } |
|
9148 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9149 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9150 if (!SWIG_IsOK(ecode2)) { |
|
9151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_receipt_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9152 } |
|
9153 arg2 = static_cast< unsigned int >(val2); |
|
9154 if (arg1) (arg1)->receipt_ts_seqno = arg2; |
|
9155 |
|
9156 |
|
9157 |
|
9158 |
|
9159 XSRETURN(argvi); |
|
9160 fail: |
|
9161 |
|
9162 |
|
9163 SWIG_croak_null(); |
|
9164 } |
|
9165 } |
|
9166 |
|
9167 |
|
9168 XS(_wrap_dtn_status_report_receipt_ts_seqno_get) { |
|
9169 { |
|
9170 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9171 unsigned int result; |
|
9172 void *argp1 = 0 ; |
|
9173 int res1 = 0 ; |
|
9174 int argvi = 0; |
|
9175 dXSARGS; |
|
9176 |
|
9177 if ((items < 1) || (items > 1)) { |
|
9178 SWIG_croak("Usage: dtn_status_report_receipt_ts_seqno_get(self);"); |
|
9179 } |
|
9180 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9181 if (!SWIG_IsOK(res1)) { |
|
9182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_receipt_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9183 } |
|
9184 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9185 result = (unsigned int) ((arg1)->receipt_ts_seqno); |
|
9186 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9187 |
|
9188 XSRETURN(argvi); |
|
9189 fail: |
|
9190 |
|
9191 SWIG_croak_null(); |
|
9192 } |
|
9193 } |
|
9194 |
|
9195 |
|
9196 XS(_wrap_dtn_status_report_custody_ts_secs_set) { |
|
9197 { |
|
9198 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9199 unsigned int arg2 ; |
|
9200 void *argp1 = 0 ; |
|
9201 int res1 = 0 ; |
|
9202 unsigned int val2 ; |
|
9203 int ecode2 = 0 ; |
|
9204 int argvi = 0; |
|
9205 dXSARGS; |
|
9206 |
|
9207 if ((items < 2) || (items > 2)) { |
|
9208 SWIG_croak("Usage: dtn_status_report_custody_ts_secs_set(self,custody_ts_secs);"); |
|
9209 } |
|
9210 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9211 if (!SWIG_IsOK(res1)) { |
|
9212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9213 } |
|
9214 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9215 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9216 if (!SWIG_IsOK(ecode2)) { |
|
9217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_custody_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9218 } |
|
9219 arg2 = static_cast< unsigned int >(val2); |
|
9220 if (arg1) (arg1)->custody_ts_secs = arg2; |
|
9221 |
|
9222 |
|
9223 |
|
9224 |
|
9225 XSRETURN(argvi); |
|
9226 fail: |
|
9227 |
|
9228 |
|
9229 SWIG_croak_null(); |
|
9230 } |
|
9231 } |
|
9232 |
|
9233 |
|
9234 XS(_wrap_dtn_status_report_custody_ts_secs_get) { |
|
9235 { |
|
9236 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9237 unsigned int result; |
|
9238 void *argp1 = 0 ; |
|
9239 int res1 = 0 ; |
|
9240 int argvi = 0; |
|
9241 dXSARGS; |
|
9242 |
|
9243 if ((items < 1) || (items > 1)) { |
|
9244 SWIG_croak("Usage: dtn_status_report_custody_ts_secs_get(self);"); |
|
9245 } |
|
9246 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9247 if (!SWIG_IsOK(res1)) { |
|
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9249 } |
|
9250 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9251 result = (unsigned int) ((arg1)->custody_ts_secs); |
|
9252 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9253 |
|
9254 XSRETURN(argvi); |
|
9255 fail: |
|
9256 |
|
9257 SWIG_croak_null(); |
|
9258 } |
|
9259 } |
|
9260 |
|
9261 |
|
9262 XS(_wrap_dtn_status_report_custody_ts_seqno_set) { |
|
9263 { |
|
9264 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9265 unsigned int arg2 ; |
|
9266 void *argp1 = 0 ; |
|
9267 int res1 = 0 ; |
|
9268 unsigned int val2 ; |
|
9269 int ecode2 = 0 ; |
|
9270 int argvi = 0; |
|
9271 dXSARGS; |
|
9272 |
|
9273 if ((items < 2) || (items > 2)) { |
|
9274 SWIG_croak("Usage: dtn_status_report_custody_ts_seqno_set(self,custody_ts_seqno);"); |
|
9275 } |
|
9276 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9277 if (!SWIG_IsOK(res1)) { |
|
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9279 } |
|
9280 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9281 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9282 if (!SWIG_IsOK(ecode2)) { |
|
9283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_custody_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9284 } |
|
9285 arg2 = static_cast< unsigned int >(val2); |
|
9286 if (arg1) (arg1)->custody_ts_seqno = arg2; |
|
9287 |
|
9288 |
|
9289 |
|
9290 |
|
9291 XSRETURN(argvi); |
|
9292 fail: |
|
9293 |
|
9294 |
|
9295 SWIG_croak_null(); |
|
9296 } |
|
9297 } |
|
9298 |
|
9299 |
|
9300 XS(_wrap_dtn_status_report_custody_ts_seqno_get) { |
|
9301 { |
|
9302 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9303 unsigned int result; |
|
9304 void *argp1 = 0 ; |
|
9305 int res1 = 0 ; |
|
9306 int argvi = 0; |
|
9307 dXSARGS; |
|
9308 |
|
9309 if ((items < 1) || (items > 1)) { |
|
9310 SWIG_croak("Usage: dtn_status_report_custody_ts_seqno_get(self);"); |
|
9311 } |
|
9312 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9313 if (!SWIG_IsOK(res1)) { |
|
9314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_custody_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9315 } |
|
9316 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9317 result = (unsigned int) ((arg1)->custody_ts_seqno); |
|
9318 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9319 |
|
9320 XSRETURN(argvi); |
|
9321 fail: |
|
9322 |
|
9323 SWIG_croak_null(); |
|
9324 } |
|
9325 } |
|
9326 |
|
9327 |
|
9328 XS(_wrap_dtn_status_report_forwarding_ts_secs_set) { |
|
9329 { |
|
9330 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9331 unsigned int arg2 ; |
|
9332 void *argp1 = 0 ; |
|
9333 int res1 = 0 ; |
|
9334 unsigned int val2 ; |
|
9335 int ecode2 = 0 ; |
|
9336 int argvi = 0; |
|
9337 dXSARGS; |
|
9338 |
|
9339 if ((items < 2) || (items > 2)) { |
|
9340 SWIG_croak("Usage: dtn_status_report_forwarding_ts_secs_set(self,forwarding_ts_secs);"); |
|
9341 } |
|
9342 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9343 if (!SWIG_IsOK(res1)) { |
|
9344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9345 } |
|
9346 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9347 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9348 if (!SWIG_IsOK(ecode2)) { |
|
9349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_forwarding_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9350 } |
|
9351 arg2 = static_cast< unsigned int >(val2); |
|
9352 if (arg1) (arg1)->forwarding_ts_secs = arg2; |
|
9353 |
|
9354 |
|
9355 |
|
9356 |
|
9357 XSRETURN(argvi); |
|
9358 fail: |
|
9359 |
|
9360 |
|
9361 SWIG_croak_null(); |
|
9362 } |
|
9363 } |
|
9364 |
|
9365 |
|
9366 XS(_wrap_dtn_status_report_forwarding_ts_secs_get) { |
|
9367 { |
|
9368 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9369 unsigned int result; |
|
9370 void *argp1 = 0 ; |
|
9371 int res1 = 0 ; |
|
9372 int argvi = 0; |
|
9373 dXSARGS; |
|
9374 |
|
9375 if ((items < 1) || (items > 1)) { |
|
9376 SWIG_croak("Usage: dtn_status_report_forwarding_ts_secs_get(self);"); |
|
9377 } |
|
9378 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9379 if (!SWIG_IsOK(res1)) { |
|
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9381 } |
|
9382 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9383 result = (unsigned int) ((arg1)->forwarding_ts_secs); |
|
9384 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9385 |
|
9386 XSRETURN(argvi); |
|
9387 fail: |
|
9388 |
|
9389 SWIG_croak_null(); |
|
9390 } |
|
9391 } |
|
9392 |
|
9393 |
|
9394 XS(_wrap_dtn_status_report_forwarding_ts_seqno_set) { |
|
9395 { |
|
9396 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9397 unsigned int arg2 ; |
|
9398 void *argp1 = 0 ; |
|
9399 int res1 = 0 ; |
|
9400 unsigned int val2 ; |
|
9401 int ecode2 = 0 ; |
|
9402 int argvi = 0; |
|
9403 dXSARGS; |
|
9404 |
|
9405 if ((items < 2) || (items > 2)) { |
|
9406 SWIG_croak("Usage: dtn_status_report_forwarding_ts_seqno_set(self,forwarding_ts_seqno);"); |
|
9407 } |
|
9408 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9409 if (!SWIG_IsOK(res1)) { |
|
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9411 } |
|
9412 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9413 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9414 if (!SWIG_IsOK(ecode2)) { |
|
9415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_forwarding_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9416 } |
|
9417 arg2 = static_cast< unsigned int >(val2); |
|
9418 if (arg1) (arg1)->forwarding_ts_seqno = arg2; |
|
9419 |
|
9420 |
|
9421 |
|
9422 |
|
9423 XSRETURN(argvi); |
|
9424 fail: |
|
9425 |
|
9426 |
|
9427 SWIG_croak_null(); |
|
9428 } |
|
9429 } |
|
9430 |
|
9431 |
|
9432 XS(_wrap_dtn_status_report_forwarding_ts_seqno_get) { |
|
9433 { |
|
9434 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9435 unsigned int result; |
|
9436 void *argp1 = 0 ; |
|
9437 int res1 = 0 ; |
|
9438 int argvi = 0; |
|
9439 dXSARGS; |
|
9440 |
|
9441 if ((items < 1) || (items > 1)) { |
|
9442 SWIG_croak("Usage: dtn_status_report_forwarding_ts_seqno_get(self);"); |
|
9443 } |
|
9444 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9445 if (!SWIG_IsOK(res1)) { |
|
9446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_forwarding_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9447 } |
|
9448 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9449 result = (unsigned int) ((arg1)->forwarding_ts_seqno); |
|
9450 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9451 |
|
9452 XSRETURN(argvi); |
|
9453 fail: |
|
9454 |
|
9455 SWIG_croak_null(); |
|
9456 } |
|
9457 } |
|
9458 |
|
9459 |
|
9460 XS(_wrap_dtn_status_report_delivery_ts_secs_set) { |
|
9461 { |
|
9462 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9463 unsigned int arg2 ; |
|
9464 void *argp1 = 0 ; |
|
9465 int res1 = 0 ; |
|
9466 unsigned int val2 ; |
|
9467 int ecode2 = 0 ; |
|
9468 int argvi = 0; |
|
9469 dXSARGS; |
|
9470 |
|
9471 if ((items < 2) || (items > 2)) { |
|
9472 SWIG_croak("Usage: dtn_status_report_delivery_ts_secs_set(self,delivery_ts_secs);"); |
|
9473 } |
|
9474 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9475 if (!SWIG_IsOK(res1)) { |
|
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9477 } |
|
9478 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9479 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9480 if (!SWIG_IsOK(ecode2)) { |
|
9481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_delivery_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9482 } |
|
9483 arg2 = static_cast< unsigned int >(val2); |
|
9484 if (arg1) (arg1)->delivery_ts_secs = arg2; |
|
9485 |
|
9486 |
|
9487 |
|
9488 |
|
9489 XSRETURN(argvi); |
|
9490 fail: |
|
9491 |
|
9492 |
|
9493 SWIG_croak_null(); |
|
9494 } |
|
9495 } |
|
9496 |
|
9497 |
|
9498 XS(_wrap_dtn_status_report_delivery_ts_secs_get) { |
|
9499 { |
|
9500 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9501 unsigned int result; |
|
9502 void *argp1 = 0 ; |
|
9503 int res1 = 0 ; |
|
9504 int argvi = 0; |
|
9505 dXSARGS; |
|
9506 |
|
9507 if ((items < 1) || (items > 1)) { |
|
9508 SWIG_croak("Usage: dtn_status_report_delivery_ts_secs_get(self);"); |
|
9509 } |
|
9510 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9511 if (!SWIG_IsOK(res1)) { |
|
9512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9513 } |
|
9514 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9515 result = (unsigned int) ((arg1)->delivery_ts_secs); |
|
9516 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9517 |
|
9518 XSRETURN(argvi); |
|
9519 fail: |
|
9520 |
|
9521 SWIG_croak_null(); |
|
9522 } |
|
9523 } |
|
9524 |
|
9525 |
|
9526 XS(_wrap_dtn_status_report_delivery_ts_seqno_set) { |
|
9527 { |
|
9528 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9529 unsigned int arg2 ; |
|
9530 void *argp1 = 0 ; |
|
9531 int res1 = 0 ; |
|
9532 unsigned int val2 ; |
|
9533 int ecode2 = 0 ; |
|
9534 int argvi = 0; |
|
9535 dXSARGS; |
|
9536 |
|
9537 if ((items < 2) || (items > 2)) { |
|
9538 SWIG_croak("Usage: dtn_status_report_delivery_ts_seqno_set(self,delivery_ts_seqno);"); |
|
9539 } |
|
9540 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9541 if (!SWIG_IsOK(res1)) { |
|
9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9543 } |
|
9544 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9545 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9546 if (!SWIG_IsOK(ecode2)) { |
|
9547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_delivery_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9548 } |
|
9549 arg2 = static_cast< unsigned int >(val2); |
|
9550 if (arg1) (arg1)->delivery_ts_seqno = arg2; |
|
9551 |
|
9552 |
|
9553 |
|
9554 |
|
9555 XSRETURN(argvi); |
|
9556 fail: |
|
9557 |
|
9558 |
|
9559 SWIG_croak_null(); |
|
9560 } |
|
9561 } |
|
9562 |
|
9563 |
|
9564 XS(_wrap_dtn_status_report_delivery_ts_seqno_get) { |
|
9565 { |
|
9566 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9567 unsigned int result; |
|
9568 void *argp1 = 0 ; |
|
9569 int res1 = 0 ; |
|
9570 int argvi = 0; |
|
9571 dXSARGS; |
|
9572 |
|
9573 if ((items < 1) || (items > 1)) { |
|
9574 SWIG_croak("Usage: dtn_status_report_delivery_ts_seqno_get(self);"); |
|
9575 } |
|
9576 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9577 if (!SWIG_IsOK(res1)) { |
|
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_delivery_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9579 } |
|
9580 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9581 result = (unsigned int) ((arg1)->delivery_ts_seqno); |
|
9582 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9583 |
|
9584 XSRETURN(argvi); |
|
9585 fail: |
|
9586 |
|
9587 SWIG_croak_null(); |
|
9588 } |
|
9589 } |
|
9590 |
|
9591 |
|
9592 XS(_wrap_dtn_status_report_deletion_ts_secs_set) { |
|
9593 { |
|
9594 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9595 unsigned int arg2 ; |
|
9596 void *argp1 = 0 ; |
|
9597 int res1 = 0 ; |
|
9598 unsigned int val2 ; |
|
9599 int ecode2 = 0 ; |
|
9600 int argvi = 0; |
|
9601 dXSARGS; |
|
9602 |
|
9603 if ((items < 2) || (items > 2)) { |
|
9604 SWIG_croak("Usage: dtn_status_report_deletion_ts_secs_set(self,deletion_ts_secs);"); |
|
9605 } |
|
9606 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9607 if (!SWIG_IsOK(res1)) { |
|
9608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9609 } |
|
9610 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9611 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9612 if (!SWIG_IsOK(ecode2)) { |
|
9613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_deletion_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9614 } |
|
9615 arg2 = static_cast< unsigned int >(val2); |
|
9616 if (arg1) (arg1)->deletion_ts_secs = arg2; |
|
9617 |
|
9618 |
|
9619 |
|
9620 |
|
9621 XSRETURN(argvi); |
|
9622 fail: |
|
9623 |
|
9624 |
|
9625 SWIG_croak_null(); |
|
9626 } |
|
9627 } |
|
9628 |
|
9629 |
|
9630 XS(_wrap_dtn_status_report_deletion_ts_secs_get) { |
|
9631 { |
|
9632 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9633 unsigned int result; |
|
9634 void *argp1 = 0 ; |
|
9635 int res1 = 0 ; |
|
9636 int argvi = 0; |
|
9637 dXSARGS; |
|
9638 |
|
9639 if ((items < 1) || (items > 1)) { |
|
9640 SWIG_croak("Usage: dtn_status_report_deletion_ts_secs_get(self);"); |
|
9641 } |
|
9642 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9643 if (!SWIG_IsOK(res1)) { |
|
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9645 } |
|
9646 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9647 result = (unsigned int) ((arg1)->deletion_ts_secs); |
|
9648 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9649 |
|
9650 XSRETURN(argvi); |
|
9651 fail: |
|
9652 |
|
9653 SWIG_croak_null(); |
|
9654 } |
|
9655 } |
|
9656 |
|
9657 |
|
9658 XS(_wrap_dtn_status_report_deletion_ts_seqno_set) { |
|
9659 { |
|
9660 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9661 unsigned int arg2 ; |
|
9662 void *argp1 = 0 ; |
|
9663 int res1 = 0 ; |
|
9664 unsigned int val2 ; |
|
9665 int ecode2 = 0 ; |
|
9666 int argvi = 0; |
|
9667 dXSARGS; |
|
9668 |
|
9669 if ((items < 2) || (items > 2)) { |
|
9670 SWIG_croak("Usage: dtn_status_report_deletion_ts_seqno_set(self,deletion_ts_seqno);"); |
|
9671 } |
|
9672 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9673 if (!SWIG_IsOK(res1)) { |
|
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9675 } |
|
9676 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9677 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9678 if (!SWIG_IsOK(ecode2)) { |
|
9679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_deletion_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9680 } |
|
9681 arg2 = static_cast< unsigned int >(val2); |
|
9682 if (arg1) (arg1)->deletion_ts_seqno = arg2; |
|
9683 |
|
9684 |
|
9685 |
|
9686 |
|
9687 XSRETURN(argvi); |
|
9688 fail: |
|
9689 |
|
9690 |
|
9691 SWIG_croak_null(); |
|
9692 } |
|
9693 } |
|
9694 |
|
9695 |
|
9696 XS(_wrap_dtn_status_report_deletion_ts_seqno_get) { |
|
9697 { |
|
9698 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9699 unsigned int result; |
|
9700 void *argp1 = 0 ; |
|
9701 int res1 = 0 ; |
|
9702 int argvi = 0; |
|
9703 dXSARGS; |
|
9704 |
|
9705 if ((items < 1) || (items > 1)) { |
|
9706 SWIG_croak("Usage: dtn_status_report_deletion_ts_seqno_get(self);"); |
|
9707 } |
|
9708 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9709 if (!SWIG_IsOK(res1)) { |
|
9710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_deletion_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9711 } |
|
9712 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9713 result = (unsigned int) ((arg1)->deletion_ts_seqno); |
|
9714 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9715 |
|
9716 XSRETURN(argvi); |
|
9717 fail: |
|
9718 |
|
9719 SWIG_croak_null(); |
|
9720 } |
|
9721 } |
|
9722 |
|
9723 |
|
9724 XS(_wrap_dtn_status_report_ack_by_app_ts_secs_set) { |
|
9725 { |
|
9726 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9727 unsigned int arg2 ; |
|
9728 void *argp1 = 0 ; |
|
9729 int res1 = 0 ; |
|
9730 unsigned int val2 ; |
|
9731 int ecode2 = 0 ; |
|
9732 int argvi = 0; |
|
9733 dXSARGS; |
|
9734 |
|
9735 if ((items < 2) || (items > 2)) { |
|
9736 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_secs_set(self,ack_by_app_ts_secs);"); |
|
9737 } |
|
9738 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9739 if (!SWIG_IsOK(res1)) { |
|
9740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_secs_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9741 } |
|
9742 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9743 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9744 if (!SWIG_IsOK(ecode2)) { |
|
9745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_ack_by_app_ts_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9746 } |
|
9747 arg2 = static_cast< unsigned int >(val2); |
|
9748 if (arg1) (arg1)->ack_by_app_ts_secs = arg2; |
|
9749 |
|
9750 |
|
9751 |
|
9752 |
|
9753 XSRETURN(argvi); |
|
9754 fail: |
|
9755 |
|
9756 |
|
9757 SWIG_croak_null(); |
|
9758 } |
|
9759 } |
|
9760 |
|
9761 |
|
9762 XS(_wrap_dtn_status_report_ack_by_app_ts_secs_get) { |
|
9763 { |
|
9764 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9765 unsigned int result; |
|
9766 void *argp1 = 0 ; |
|
9767 int res1 = 0 ; |
|
9768 int argvi = 0; |
|
9769 dXSARGS; |
|
9770 |
|
9771 if ((items < 1) || (items > 1)) { |
|
9772 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_secs_get(self);"); |
|
9773 } |
|
9774 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9775 if (!SWIG_IsOK(res1)) { |
|
9776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_secs_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9777 } |
|
9778 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9779 result = (unsigned int) ((arg1)->ack_by_app_ts_secs); |
|
9780 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9781 |
|
9782 XSRETURN(argvi); |
|
9783 fail: |
|
9784 |
|
9785 SWIG_croak_null(); |
|
9786 } |
|
9787 } |
|
9788 |
|
9789 |
|
9790 XS(_wrap_dtn_status_report_ack_by_app_ts_seqno_set) { |
|
9791 { |
|
9792 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9793 unsigned int arg2 ; |
|
9794 void *argp1 = 0 ; |
|
9795 int res1 = 0 ; |
|
9796 unsigned int val2 ; |
|
9797 int ecode2 = 0 ; |
|
9798 int argvi = 0; |
|
9799 dXSARGS; |
|
9800 |
|
9801 if ((items < 2) || (items > 2)) { |
|
9802 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_seqno_set(self,ack_by_app_ts_seqno);"); |
|
9803 } |
|
9804 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9805 if (!SWIG_IsOK(res1)) { |
|
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_seqno_set" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9807 } |
|
9808 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9809 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
9810 if (!SWIG_IsOK(ecode2)) { |
|
9811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_status_report_ack_by_app_ts_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
9812 } |
|
9813 arg2 = static_cast< unsigned int >(val2); |
|
9814 if (arg1) (arg1)->ack_by_app_ts_seqno = arg2; |
|
9815 |
|
9816 |
|
9817 |
|
9818 |
|
9819 XSRETURN(argvi); |
|
9820 fail: |
|
9821 |
|
9822 |
|
9823 SWIG_croak_null(); |
|
9824 } |
|
9825 } |
|
9826 |
|
9827 |
|
9828 XS(_wrap_dtn_status_report_ack_by_app_ts_seqno_get) { |
|
9829 { |
|
9830 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9831 unsigned int result; |
|
9832 void *argp1 = 0 ; |
|
9833 int res1 = 0 ; |
|
9834 int argvi = 0; |
|
9835 dXSARGS; |
|
9836 |
|
9837 if ((items < 1) || (items > 1)) { |
|
9838 SWIG_croak("Usage: dtn_status_report_ack_by_app_ts_seqno_get(self);"); |
|
9839 } |
|
9840 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, 0 | 0 ); |
|
9841 if (!SWIG_IsOK(res1)) { |
|
9842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_status_report_ack_by_app_ts_seqno_get" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9843 } |
|
9844 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9845 result = (unsigned int) ((arg1)->ack_by_app_ts_seqno); |
|
9846 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
9847 |
|
9848 XSRETURN(argvi); |
|
9849 fail: |
|
9850 |
|
9851 SWIG_croak_null(); |
|
9852 } |
|
9853 } |
|
9854 |
|
9855 |
|
9856 XS(_wrap_new_dtn_status_report) { |
|
9857 { |
|
9858 dtn_status_report *result = 0 ; |
|
9859 int argvi = 0; |
|
9860 dXSARGS; |
|
9861 |
|
9862 if ((items < 0) || (items > 0)) { |
|
9863 SWIG_croak("Usage: new_dtn_status_report();"); |
|
9864 } |
|
9865 result = (dtn_status_report *)new dtn_status_report(); |
|
9866 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_status_report, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
9867 XSRETURN(argvi); |
|
9868 fail: |
|
9869 SWIG_croak_null(); |
|
9870 } |
|
9871 } |
|
9872 |
|
9873 |
|
9874 XS(_wrap_delete_dtn_status_report) { |
|
9875 { |
|
9876 dtn_status_report *arg1 = (dtn_status_report *) 0 ; |
|
9877 void *argp1 = 0 ; |
|
9878 int res1 = 0 ; |
|
9879 int argvi = 0; |
|
9880 dXSARGS; |
|
9881 |
|
9882 if ((items < 1) || (items > 1)) { |
|
9883 SWIG_croak("Usage: delete_dtn_status_report(self);"); |
|
9884 } |
|
9885 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_status_report, SWIG_POINTER_DISOWN | 0 ); |
|
9886 if (!SWIG_IsOK(res1)) { |
|
9887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_status_report" "', argument " "1"" of type '" "dtn_status_report *""'"); |
|
9888 } |
|
9889 arg1 = reinterpret_cast< dtn_status_report * >(argp1); |
|
9890 delete arg1; |
|
9891 |
|
9892 |
|
9893 |
|
9894 XSRETURN(argvi); |
|
9895 fail: |
|
9896 |
|
9897 SWIG_croak_null(); |
|
9898 } |
|
9899 } |
|
9900 |
|
9901 |
|
9902 XS(_wrap_dtn_status_report_reason_to_str) { |
|
9903 { |
|
9904 unsigned int arg1 ; |
|
9905 std::string result; |
|
9906 unsigned int val1 ; |
|
9907 int ecode1 = 0 ; |
|
9908 int argvi = 0; |
|
9909 dXSARGS; |
|
9910 |
|
9911 if ((items < 1) || (items > 1)) { |
|
9912 SWIG_croak("Usage: dtn_status_report_reason_to_str(reason);"); |
|
9913 } |
|
9914 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
9915 if (!SWIG_IsOK(ecode1)) { |
|
9916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_status_report_reason_to_str" "', argument " "1"" of type '" "unsigned int""'"); |
|
9917 } |
|
9918 arg1 = static_cast< unsigned int >(val1); |
|
9919 result = dtn_status_report_reason_to_str(arg1); |
|
9920 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(result)); argvi++ ; |
|
9921 |
|
9922 XSRETURN(argvi); |
|
9923 fail: |
|
9924 |
|
9925 SWIG_croak_null(); |
|
9926 } |
|
9927 } |
|
9928 |
|
9929 |
|
9930 XS(_wrap_dtn_bundle_source_set) { |
|
9931 { |
|
9932 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
9933 std::string *arg2 = 0 ; |
|
9934 void *argp1 = 0 ; |
|
9935 int res1 = 0 ; |
|
9936 int res2 = SWIG_OLDOBJ ; |
|
9937 int argvi = 0; |
|
9938 dXSARGS; |
|
9939 |
|
9940 if ((items < 2) || (items > 2)) { |
|
9941 SWIG_croak("Usage: dtn_bundle_source_set(self,source);"); |
|
9942 } |
|
9943 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
9944 if (!SWIG_IsOK(res1)) { |
|
9945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_source_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
9946 } |
|
9947 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
9948 { |
|
9949 std::string *ptr = (std::string *)0; |
|
9950 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
9951 if (!SWIG_IsOK(res2)) { |
|
9952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_source_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
9953 } |
|
9954 if (!ptr) { |
|
9955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_source_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
9956 } |
|
9957 arg2 = ptr; |
|
9958 } |
|
9959 if (arg1) (arg1)->source = *arg2; |
|
9960 |
|
9961 |
|
9962 |
|
9963 if (SWIG_IsNewObj(res2)) delete arg2; |
|
9964 XSRETURN(argvi); |
|
9965 fail: |
|
9966 |
|
9967 if (SWIG_IsNewObj(res2)) delete arg2; |
|
9968 SWIG_croak_null(); |
|
9969 } |
|
9970 } |
|
9971 |
|
9972 |
|
9973 XS(_wrap_dtn_bundle_source_get) { |
|
9974 { |
|
9975 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
9976 std::string *result = 0 ; |
|
9977 void *argp1 = 0 ; |
|
9978 int res1 = 0 ; |
|
9979 int argvi = 0; |
|
9980 dXSARGS; |
|
9981 |
|
9982 if ((items < 1) || (items > 1)) { |
|
9983 SWIG_croak("Usage: dtn_bundle_source_get(self);"); |
|
9984 } |
|
9985 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
9986 if (!SWIG_IsOK(res1)) { |
|
9987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_source_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
9988 } |
|
9989 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
9990 { |
|
9991 std::string const &_result_ref = ((arg1)->source); |
|
9992 result = (std::string *) &_result_ref; |
|
9993 } |
|
9994 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
9995 |
|
9996 XSRETURN(argvi); |
|
9997 fail: |
|
9998 |
|
9999 SWIG_croak_null(); |
|
10000 } |
|
10001 } |
|
10002 |
|
10003 |
|
10004 XS(_wrap_dtn_bundle_dest_set) { |
|
10005 { |
|
10006 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10007 std::string *arg2 = 0 ; |
|
10008 void *argp1 = 0 ; |
|
10009 int res1 = 0 ; |
|
10010 int res2 = SWIG_OLDOBJ ; |
|
10011 int argvi = 0; |
|
10012 dXSARGS; |
|
10013 |
|
10014 if ((items < 2) || (items > 2)) { |
|
10015 SWIG_croak("Usage: dtn_bundle_dest_set(self,dest);"); |
|
10016 } |
|
10017 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10018 if (!SWIG_IsOK(res1)) { |
|
10019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dest_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10020 } |
|
10021 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10022 { |
|
10023 std::string *ptr = (std::string *)0; |
|
10024 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
10025 if (!SWIG_IsOK(res2)) { |
|
10026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_dest_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10027 } |
|
10028 if (!ptr) { |
|
10029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_dest_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10030 } |
|
10031 arg2 = ptr; |
|
10032 } |
|
10033 if (arg1) (arg1)->dest = *arg2; |
|
10034 |
|
10035 |
|
10036 |
|
10037 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10038 XSRETURN(argvi); |
|
10039 fail: |
|
10040 |
|
10041 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10042 SWIG_croak_null(); |
|
10043 } |
|
10044 } |
|
10045 |
|
10046 |
|
10047 XS(_wrap_dtn_bundle_dest_get) { |
|
10048 { |
|
10049 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10050 std::string *result = 0 ; |
|
10051 void *argp1 = 0 ; |
|
10052 int res1 = 0 ; |
|
10053 int argvi = 0; |
|
10054 dXSARGS; |
|
10055 |
|
10056 if ((items < 1) || (items > 1)) { |
|
10057 SWIG_croak("Usage: dtn_bundle_dest_get(self);"); |
|
10058 } |
|
10059 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10060 if (!SWIG_IsOK(res1)) { |
|
10061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dest_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10062 } |
|
10063 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10064 { |
|
10065 std::string const &_result_ref = ((arg1)->dest); |
|
10066 result = (std::string *) &_result_ref; |
|
10067 } |
|
10068 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
10069 |
|
10070 XSRETURN(argvi); |
|
10071 fail: |
|
10072 |
|
10073 SWIG_croak_null(); |
|
10074 } |
|
10075 } |
|
10076 |
|
10077 |
|
10078 XS(_wrap_dtn_bundle_replyto_set) { |
|
10079 { |
|
10080 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10081 std::string *arg2 = 0 ; |
|
10082 void *argp1 = 0 ; |
|
10083 int res1 = 0 ; |
|
10084 int res2 = SWIG_OLDOBJ ; |
|
10085 int argvi = 0; |
|
10086 dXSARGS; |
|
10087 |
|
10088 if ((items < 2) || (items > 2)) { |
|
10089 SWIG_croak("Usage: dtn_bundle_replyto_set(self,replyto);"); |
|
10090 } |
|
10091 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10092 if (!SWIG_IsOK(res1)) { |
|
10093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_replyto_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10094 } |
|
10095 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10096 { |
|
10097 std::string *ptr = (std::string *)0; |
|
10098 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
10099 if (!SWIG_IsOK(res2)) { |
|
10100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_replyto_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10101 } |
|
10102 if (!ptr) { |
|
10103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_replyto_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10104 } |
|
10105 arg2 = ptr; |
|
10106 } |
|
10107 if (arg1) (arg1)->replyto = *arg2; |
|
10108 |
|
10109 |
|
10110 |
|
10111 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10112 XSRETURN(argvi); |
|
10113 fail: |
|
10114 |
|
10115 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10116 SWIG_croak_null(); |
|
10117 } |
|
10118 } |
|
10119 |
|
10120 |
|
10121 XS(_wrap_dtn_bundle_replyto_get) { |
|
10122 { |
|
10123 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10124 std::string *result = 0 ; |
|
10125 void *argp1 = 0 ; |
|
10126 int res1 = 0 ; |
|
10127 int argvi = 0; |
|
10128 dXSARGS; |
|
10129 |
|
10130 if ((items < 1) || (items > 1)) { |
|
10131 SWIG_croak("Usage: dtn_bundle_replyto_get(self);"); |
|
10132 } |
|
10133 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10134 if (!SWIG_IsOK(res1)) { |
|
10135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_replyto_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10136 } |
|
10137 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10138 { |
|
10139 std::string const &_result_ref = ((arg1)->replyto); |
|
10140 result = (std::string *) &_result_ref; |
|
10141 } |
|
10142 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
10143 |
|
10144 XSRETURN(argvi); |
|
10145 fail: |
|
10146 |
|
10147 SWIG_croak_null(); |
|
10148 } |
|
10149 } |
|
10150 |
|
10151 |
|
10152 XS(_wrap_dtn_bundle_priority_set) { |
|
10153 { |
|
10154 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10155 unsigned int arg2 ; |
|
10156 void *argp1 = 0 ; |
|
10157 int res1 = 0 ; |
|
10158 unsigned int val2 ; |
|
10159 int ecode2 = 0 ; |
|
10160 int argvi = 0; |
|
10161 dXSARGS; |
|
10162 |
|
10163 if ((items < 2) || (items > 2)) { |
|
10164 SWIG_croak("Usage: dtn_bundle_priority_set(self,priority);"); |
|
10165 } |
|
10166 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10167 if (!SWIG_IsOK(res1)) { |
|
10168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_priority_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10169 } |
|
10170 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10171 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10172 if (!SWIG_IsOK(ecode2)) { |
|
10173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_priority_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10174 } |
|
10175 arg2 = static_cast< unsigned int >(val2); |
|
10176 if (arg1) (arg1)->priority = arg2; |
|
10177 |
|
10178 |
|
10179 |
|
10180 |
|
10181 XSRETURN(argvi); |
|
10182 fail: |
|
10183 |
|
10184 |
|
10185 SWIG_croak_null(); |
|
10186 } |
|
10187 } |
|
10188 |
|
10189 |
|
10190 XS(_wrap_dtn_bundle_priority_get) { |
|
10191 { |
|
10192 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10193 unsigned int result; |
|
10194 void *argp1 = 0 ; |
|
10195 int res1 = 0 ; |
|
10196 int argvi = 0; |
|
10197 dXSARGS; |
|
10198 |
|
10199 if ((items < 1) || (items > 1)) { |
|
10200 SWIG_croak("Usage: dtn_bundle_priority_get(self);"); |
|
10201 } |
|
10202 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10203 if (!SWIG_IsOK(res1)) { |
|
10204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_priority_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10205 } |
|
10206 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10207 result = (unsigned int) ((arg1)->priority); |
|
10208 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10209 |
|
10210 XSRETURN(argvi); |
|
10211 fail: |
|
10212 |
|
10213 SWIG_croak_null(); |
|
10214 } |
|
10215 } |
|
10216 |
|
10217 |
|
10218 XS(_wrap_dtn_bundle_dopts_set) { |
|
10219 { |
|
10220 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10221 unsigned int arg2 ; |
|
10222 void *argp1 = 0 ; |
|
10223 int res1 = 0 ; |
|
10224 unsigned int val2 ; |
|
10225 int ecode2 = 0 ; |
|
10226 int argvi = 0; |
|
10227 dXSARGS; |
|
10228 |
|
10229 if ((items < 2) || (items > 2)) { |
|
10230 SWIG_croak("Usage: dtn_bundle_dopts_set(self,dopts);"); |
|
10231 } |
|
10232 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10233 if (!SWIG_IsOK(res1)) { |
|
10234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dopts_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10235 } |
|
10236 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10237 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10238 if (!SWIG_IsOK(ecode2)) { |
|
10239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_dopts_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10240 } |
|
10241 arg2 = static_cast< unsigned int >(val2); |
|
10242 if (arg1) (arg1)->dopts = arg2; |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 XSRETURN(argvi); |
|
10248 fail: |
|
10249 |
|
10250 |
|
10251 SWIG_croak_null(); |
|
10252 } |
|
10253 } |
|
10254 |
|
10255 |
|
10256 XS(_wrap_dtn_bundle_dopts_get) { |
|
10257 { |
|
10258 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10259 unsigned int result; |
|
10260 void *argp1 = 0 ; |
|
10261 int res1 = 0 ; |
|
10262 int argvi = 0; |
|
10263 dXSARGS; |
|
10264 |
|
10265 if ((items < 1) || (items > 1)) { |
|
10266 SWIG_croak("Usage: dtn_bundle_dopts_get(self);"); |
|
10267 } |
|
10268 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10269 if (!SWIG_IsOK(res1)) { |
|
10270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_dopts_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10271 } |
|
10272 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10273 result = (unsigned int) ((arg1)->dopts); |
|
10274 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10275 |
|
10276 XSRETURN(argvi); |
|
10277 fail: |
|
10278 |
|
10279 SWIG_croak_null(); |
|
10280 } |
|
10281 } |
|
10282 |
|
10283 |
|
10284 XS(_wrap_dtn_bundle_expiration_set) { |
|
10285 { |
|
10286 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10287 unsigned int arg2 ; |
|
10288 void *argp1 = 0 ; |
|
10289 int res1 = 0 ; |
|
10290 unsigned int val2 ; |
|
10291 int ecode2 = 0 ; |
|
10292 int argvi = 0; |
|
10293 dXSARGS; |
|
10294 |
|
10295 if ((items < 2) || (items > 2)) { |
|
10296 SWIG_croak("Usage: dtn_bundle_expiration_set(self,expiration);"); |
|
10297 } |
|
10298 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10299 if (!SWIG_IsOK(res1)) { |
|
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_expiration_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10301 } |
|
10302 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10303 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10304 if (!SWIG_IsOK(ecode2)) { |
|
10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_expiration_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10306 } |
|
10307 arg2 = static_cast< unsigned int >(val2); |
|
10308 if (arg1) (arg1)->expiration = arg2; |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 XSRETURN(argvi); |
|
10314 fail: |
|
10315 |
|
10316 |
|
10317 SWIG_croak_null(); |
|
10318 } |
|
10319 } |
|
10320 |
|
10321 |
|
10322 XS(_wrap_dtn_bundle_expiration_get) { |
|
10323 { |
|
10324 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10325 unsigned int result; |
|
10326 void *argp1 = 0 ; |
|
10327 int res1 = 0 ; |
|
10328 int argvi = 0; |
|
10329 dXSARGS; |
|
10330 |
|
10331 if ((items < 1) || (items > 1)) { |
|
10332 SWIG_croak("Usage: dtn_bundle_expiration_get(self);"); |
|
10333 } |
|
10334 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10335 if (!SWIG_IsOK(res1)) { |
|
10336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_expiration_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10337 } |
|
10338 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10339 result = (unsigned int) ((arg1)->expiration); |
|
10340 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10341 |
|
10342 XSRETURN(argvi); |
|
10343 fail: |
|
10344 |
|
10345 SWIG_croak_null(); |
|
10346 } |
|
10347 } |
|
10348 |
|
10349 |
|
10350 XS(_wrap_dtn_bundle_creation_secs_set) { |
|
10351 { |
|
10352 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10353 unsigned int arg2 ; |
|
10354 void *argp1 = 0 ; |
|
10355 int res1 = 0 ; |
|
10356 unsigned int val2 ; |
|
10357 int ecode2 = 0 ; |
|
10358 int argvi = 0; |
|
10359 dXSARGS; |
|
10360 |
|
10361 if ((items < 2) || (items > 2)) { |
|
10362 SWIG_croak("Usage: dtn_bundle_creation_secs_set(self,creation_secs);"); |
|
10363 } |
|
10364 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10365 if (!SWIG_IsOK(res1)) { |
|
10366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_secs_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10367 } |
|
10368 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10369 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10370 if (!SWIG_IsOK(ecode2)) { |
|
10371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_creation_secs_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10372 } |
|
10373 arg2 = static_cast< unsigned int >(val2); |
|
10374 if (arg1) (arg1)->creation_secs = arg2; |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 XSRETURN(argvi); |
|
10380 fail: |
|
10381 |
|
10382 |
|
10383 SWIG_croak_null(); |
|
10384 } |
|
10385 } |
|
10386 |
|
10387 |
|
10388 XS(_wrap_dtn_bundle_creation_secs_get) { |
|
10389 { |
|
10390 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10391 unsigned int result; |
|
10392 void *argp1 = 0 ; |
|
10393 int res1 = 0 ; |
|
10394 int argvi = 0; |
|
10395 dXSARGS; |
|
10396 |
|
10397 if ((items < 1) || (items > 1)) { |
|
10398 SWIG_croak("Usage: dtn_bundle_creation_secs_get(self);"); |
|
10399 } |
|
10400 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10401 if (!SWIG_IsOK(res1)) { |
|
10402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_secs_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10403 } |
|
10404 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10405 result = (unsigned int) ((arg1)->creation_secs); |
|
10406 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10407 |
|
10408 XSRETURN(argvi); |
|
10409 fail: |
|
10410 |
|
10411 SWIG_croak_null(); |
|
10412 } |
|
10413 } |
|
10414 |
|
10415 |
|
10416 XS(_wrap_dtn_bundle_creation_seqno_set) { |
|
10417 { |
|
10418 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10419 unsigned int arg2 ; |
|
10420 void *argp1 = 0 ; |
|
10421 int res1 = 0 ; |
|
10422 unsigned int val2 ; |
|
10423 int ecode2 = 0 ; |
|
10424 int argvi = 0; |
|
10425 dXSARGS; |
|
10426 |
|
10427 if ((items < 2) || (items > 2)) { |
|
10428 SWIG_croak("Usage: dtn_bundle_creation_seqno_set(self,creation_seqno);"); |
|
10429 } |
|
10430 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10431 if (!SWIG_IsOK(res1)) { |
|
10432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_seqno_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10433 } |
|
10434 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10435 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10436 if (!SWIG_IsOK(ecode2)) { |
|
10437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_creation_seqno_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10438 } |
|
10439 arg2 = static_cast< unsigned int >(val2); |
|
10440 if (arg1) (arg1)->creation_seqno = arg2; |
|
10441 |
|
10442 |
|
10443 |
|
10444 |
|
10445 XSRETURN(argvi); |
|
10446 fail: |
|
10447 |
|
10448 |
|
10449 SWIG_croak_null(); |
|
10450 } |
|
10451 } |
|
10452 |
|
10453 |
|
10454 XS(_wrap_dtn_bundle_creation_seqno_get) { |
|
10455 { |
|
10456 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10457 unsigned int result; |
|
10458 void *argp1 = 0 ; |
|
10459 int res1 = 0 ; |
|
10460 int argvi = 0; |
|
10461 dXSARGS; |
|
10462 |
|
10463 if ((items < 1) || (items > 1)) { |
|
10464 SWIG_croak("Usage: dtn_bundle_creation_seqno_get(self);"); |
|
10465 } |
|
10466 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10467 if (!SWIG_IsOK(res1)) { |
|
10468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_creation_seqno_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10469 } |
|
10470 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10471 result = (unsigned int) ((arg1)->creation_seqno); |
|
10472 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10473 |
|
10474 XSRETURN(argvi); |
|
10475 fail: |
|
10476 |
|
10477 SWIG_croak_null(); |
|
10478 } |
|
10479 } |
|
10480 |
|
10481 |
|
10482 XS(_wrap_dtn_bundle_delivery_regid_set) { |
|
10483 { |
|
10484 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10485 unsigned int arg2 ; |
|
10486 void *argp1 = 0 ; |
|
10487 int res1 = 0 ; |
|
10488 unsigned int val2 ; |
|
10489 int ecode2 = 0 ; |
|
10490 int argvi = 0; |
|
10491 dXSARGS; |
|
10492 |
|
10493 if ((items < 2) || (items > 2)) { |
|
10494 SWIG_croak("Usage: dtn_bundle_delivery_regid_set(self,delivery_regid);"); |
|
10495 } |
|
10496 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10497 if (!SWIG_IsOK(res1)) { |
|
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_delivery_regid_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10499 } |
|
10500 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10501 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10502 if (!SWIG_IsOK(ecode2)) { |
|
10503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_bundle_delivery_regid_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10504 } |
|
10505 arg2 = static_cast< unsigned int >(val2); |
|
10506 if (arg1) (arg1)->delivery_regid = arg2; |
|
10507 |
|
10508 |
|
10509 |
|
10510 |
|
10511 XSRETURN(argvi); |
|
10512 fail: |
|
10513 |
|
10514 |
|
10515 SWIG_croak_null(); |
|
10516 } |
|
10517 } |
|
10518 |
|
10519 |
|
10520 XS(_wrap_dtn_bundle_delivery_regid_get) { |
|
10521 { |
|
10522 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10523 unsigned int result; |
|
10524 void *argp1 = 0 ; |
|
10525 int res1 = 0 ; |
|
10526 int argvi = 0; |
|
10527 dXSARGS; |
|
10528 |
|
10529 if ((items < 1) || (items > 1)) { |
|
10530 SWIG_croak("Usage: dtn_bundle_delivery_regid_get(self);"); |
|
10531 } |
|
10532 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10533 if (!SWIG_IsOK(res1)) { |
|
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_delivery_regid_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10535 } |
|
10536 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10537 result = (unsigned int) ((arg1)->delivery_regid); |
|
10538 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10539 |
|
10540 XSRETURN(argvi); |
|
10541 fail: |
|
10542 |
|
10543 SWIG_croak_null(); |
|
10544 } |
|
10545 } |
|
10546 |
|
10547 |
|
10548 XS(_wrap_dtn_bundle_sequence_id_set) { |
|
10549 { |
|
10550 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10551 std::string *arg2 = 0 ; |
|
10552 void *argp1 = 0 ; |
|
10553 int res1 = 0 ; |
|
10554 int res2 = SWIG_OLDOBJ ; |
|
10555 int argvi = 0; |
|
10556 dXSARGS; |
|
10557 |
|
10558 if ((items < 2) || (items > 2)) { |
|
10559 SWIG_croak("Usage: dtn_bundle_sequence_id_set(self,sequence_id);"); |
|
10560 } |
|
10561 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10562 if (!SWIG_IsOK(res1)) { |
|
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_sequence_id_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10564 } |
|
10565 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10566 { |
|
10567 std::string *ptr = (std::string *)0; |
|
10568 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
10569 if (!SWIG_IsOK(res2)) { |
|
10570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_sequence_id_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10571 } |
|
10572 if (!ptr) { |
|
10573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_sequence_id_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10574 } |
|
10575 arg2 = ptr; |
|
10576 } |
|
10577 if (arg1) (arg1)->sequence_id = *arg2; |
|
10578 |
|
10579 |
|
10580 |
|
10581 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10582 XSRETURN(argvi); |
|
10583 fail: |
|
10584 |
|
10585 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10586 SWIG_croak_null(); |
|
10587 } |
|
10588 } |
|
10589 |
|
10590 |
|
10591 XS(_wrap_dtn_bundle_sequence_id_get) { |
|
10592 { |
|
10593 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10594 std::string *result = 0 ; |
|
10595 void *argp1 = 0 ; |
|
10596 int res1 = 0 ; |
|
10597 int argvi = 0; |
|
10598 dXSARGS; |
|
10599 |
|
10600 if ((items < 1) || (items > 1)) { |
|
10601 SWIG_croak("Usage: dtn_bundle_sequence_id_get(self);"); |
|
10602 } |
|
10603 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10604 if (!SWIG_IsOK(res1)) { |
|
10605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_sequence_id_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10606 } |
|
10607 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10608 { |
|
10609 std::string const &_result_ref = ((arg1)->sequence_id); |
|
10610 result = (std::string *) &_result_ref; |
|
10611 } |
|
10612 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
10613 |
|
10614 XSRETURN(argvi); |
|
10615 fail: |
|
10616 |
|
10617 SWIG_croak_null(); |
|
10618 } |
|
10619 } |
|
10620 |
|
10621 |
|
10622 XS(_wrap_dtn_bundle_obsoletes_id_set) { |
|
10623 { |
|
10624 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10625 std::string *arg2 = 0 ; |
|
10626 void *argp1 = 0 ; |
|
10627 int res1 = 0 ; |
|
10628 int res2 = SWIG_OLDOBJ ; |
|
10629 int argvi = 0; |
|
10630 dXSARGS; |
|
10631 |
|
10632 if ((items < 2) || (items > 2)) { |
|
10633 SWIG_croak("Usage: dtn_bundle_obsoletes_id_set(self,obsoletes_id);"); |
|
10634 } |
|
10635 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10636 if (!SWIG_IsOK(res1)) { |
|
10637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10638 } |
|
10639 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10640 { |
|
10641 std::string *ptr = (std::string *)0; |
|
10642 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
10643 if (!SWIG_IsOK(res2)) { |
|
10644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10645 } |
|
10646 if (!ptr) { |
|
10647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_obsoletes_id_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10648 } |
|
10649 arg2 = ptr; |
|
10650 } |
|
10651 if (arg1) (arg1)->obsoletes_id = *arg2; |
|
10652 |
|
10653 |
|
10654 |
|
10655 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10656 XSRETURN(argvi); |
|
10657 fail: |
|
10658 |
|
10659 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10660 SWIG_croak_null(); |
|
10661 } |
|
10662 } |
|
10663 |
|
10664 |
|
10665 XS(_wrap_dtn_bundle_obsoletes_id_get) { |
|
10666 { |
|
10667 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10668 std::string *result = 0 ; |
|
10669 void *argp1 = 0 ; |
|
10670 int res1 = 0 ; |
|
10671 int argvi = 0; |
|
10672 dXSARGS; |
|
10673 |
|
10674 if ((items < 1) || (items > 1)) { |
|
10675 SWIG_croak("Usage: dtn_bundle_obsoletes_id_get(self);"); |
|
10676 } |
|
10677 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10678 if (!SWIG_IsOK(res1)) { |
|
10679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_obsoletes_id_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10680 } |
|
10681 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10682 { |
|
10683 std::string const &_result_ref = ((arg1)->obsoletes_id); |
|
10684 result = (std::string *) &_result_ref; |
|
10685 } |
|
10686 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
10687 |
|
10688 XSRETURN(argvi); |
|
10689 fail: |
|
10690 |
|
10691 SWIG_croak_null(); |
|
10692 } |
|
10693 } |
|
10694 |
|
10695 |
|
10696 XS(_wrap_dtn_bundle_payload_set) { |
|
10697 { |
|
10698 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10699 std::string *arg2 = 0 ; |
|
10700 void *argp1 = 0 ; |
|
10701 int res1 = 0 ; |
|
10702 int res2 = SWIG_OLDOBJ ; |
|
10703 int argvi = 0; |
|
10704 dXSARGS; |
|
10705 |
|
10706 if ((items < 2) || (items > 2)) { |
|
10707 SWIG_croak("Usage: dtn_bundle_payload_set(self,payload);"); |
|
10708 } |
|
10709 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10710 if (!SWIG_IsOK(res1)) { |
|
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10712 } |
|
10713 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10714 { |
|
10715 std::string *ptr = (std::string *)0; |
|
10716 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
10717 if (!SWIG_IsOK(res2)) { |
|
10718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_payload_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10719 } |
|
10720 if (!ptr) { |
|
10721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_bundle_payload_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
10722 } |
|
10723 arg2 = ptr; |
|
10724 } |
|
10725 if (arg1) (arg1)->payload = *arg2; |
|
10726 |
|
10727 |
|
10728 |
|
10729 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10730 XSRETURN(argvi); |
|
10731 fail: |
|
10732 |
|
10733 if (SWIG_IsNewObj(res2)) delete arg2; |
|
10734 SWIG_croak_null(); |
|
10735 } |
|
10736 } |
|
10737 |
|
10738 |
|
10739 XS(_wrap_dtn_bundle_payload_get) { |
|
10740 { |
|
10741 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10742 std::string *result = 0 ; |
|
10743 void *argp1 = 0 ; |
|
10744 int res1 = 0 ; |
|
10745 int argvi = 0; |
|
10746 dXSARGS; |
|
10747 |
|
10748 if ((items < 1) || (items > 1)) { |
|
10749 SWIG_croak("Usage: dtn_bundle_payload_get(self);"); |
|
10750 } |
|
10751 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10752 if (!SWIG_IsOK(res1)) { |
|
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_payload_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10754 } |
|
10755 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10756 { |
|
10757 std::string const &_result_ref = ((arg1)->payload); |
|
10758 result = (std::string *) &_result_ref; |
|
10759 } |
|
10760 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
10761 |
|
10762 XSRETURN(argvi); |
|
10763 fail: |
|
10764 |
|
10765 SWIG_croak_null(); |
|
10766 } |
|
10767 } |
|
10768 |
|
10769 |
|
10770 XS(_wrap_dtn_bundle_status_report_set) { |
|
10771 { |
|
10772 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10773 dtn_status_report *arg2 = (dtn_status_report *) 0 ; |
|
10774 void *argp1 = 0 ; |
|
10775 int res1 = 0 ; |
|
10776 void *argp2 = 0 ; |
|
10777 int res2 = 0 ; |
|
10778 int argvi = 0; |
|
10779 dXSARGS; |
|
10780 |
|
10781 if ((items < 2) || (items > 2)) { |
|
10782 SWIG_croak("Usage: dtn_bundle_status_report_set(self,status_report);"); |
|
10783 } |
|
10784 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10785 if (!SWIG_IsOK(res1)) { |
|
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_set" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10787 } |
|
10788 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10789 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dtn_status_report, SWIG_POINTER_DISOWN | 0 ); |
|
10790 if (!SWIG_IsOK(res2)) { |
|
10791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_bundle_status_report_set" "', argument " "2"" of type '" "dtn_status_report *""'"); |
|
10792 } |
|
10793 arg2 = reinterpret_cast< dtn_status_report * >(argp2); |
|
10794 if (arg1) (arg1)->status_report = arg2; |
|
10795 |
|
10796 |
|
10797 |
|
10798 |
|
10799 XSRETURN(argvi); |
|
10800 fail: |
|
10801 |
|
10802 |
|
10803 SWIG_croak_null(); |
|
10804 } |
|
10805 } |
|
10806 |
|
10807 |
|
10808 XS(_wrap_dtn_bundle_status_report_get) { |
|
10809 { |
|
10810 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10811 dtn_status_report *result = 0 ; |
|
10812 void *argp1 = 0 ; |
|
10813 int res1 = 0 ; |
|
10814 int argvi = 0; |
|
10815 dXSARGS; |
|
10816 |
|
10817 if ((items < 1) || (items > 1)) { |
|
10818 SWIG_croak("Usage: dtn_bundle_status_report_get(self);"); |
|
10819 } |
|
10820 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, 0 | 0 ); |
|
10821 if (!SWIG_IsOK(res1)) { |
|
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_bundle_status_report_get" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10823 } |
|
10824 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10825 result = (dtn_status_report *) ((arg1)->status_report); |
|
10826 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_status_report, 0 | SWIG_SHADOW); argvi++ ; |
|
10827 |
|
10828 XSRETURN(argvi); |
|
10829 fail: |
|
10830 |
|
10831 SWIG_croak_null(); |
|
10832 } |
|
10833 } |
|
10834 |
|
10835 |
|
10836 XS(_wrap_new_dtn_bundle) { |
|
10837 { |
|
10838 dtn_bundle *result = 0 ; |
|
10839 int argvi = 0; |
|
10840 dXSARGS; |
|
10841 |
|
10842 if ((items < 0) || (items > 0)) { |
|
10843 SWIG_croak("Usage: new_dtn_bundle();"); |
|
10844 } |
|
10845 result = (dtn_bundle *)new dtn_bundle(); |
|
10846 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
10847 XSRETURN(argvi); |
|
10848 fail: |
|
10849 SWIG_croak_null(); |
|
10850 } |
|
10851 } |
|
10852 |
|
10853 |
|
10854 XS(_wrap_delete_dtn_bundle) { |
|
10855 { |
|
10856 dtn_bundle *arg1 = (dtn_bundle *) 0 ; |
|
10857 void *argp1 = 0 ; |
|
10858 int res1 = 0 ; |
|
10859 int argvi = 0; |
|
10860 dXSARGS; |
|
10861 |
|
10862 if ((items < 1) || (items > 1)) { |
|
10863 SWIG_croak("Usage: delete_dtn_bundle(self);"); |
|
10864 } |
|
10865 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_bundle, SWIG_POINTER_DISOWN | 0 ); |
|
10866 if (!SWIG_IsOK(res1)) { |
|
10867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_bundle" "', argument " "1"" of type '" "dtn_bundle *""'"); |
|
10868 } |
|
10869 arg1 = reinterpret_cast< dtn_bundle * >(argp1); |
|
10870 delete arg1; |
|
10871 |
|
10872 |
|
10873 |
|
10874 XSRETURN(argvi); |
|
10875 fail: |
|
10876 |
|
10877 SWIG_croak_null(); |
|
10878 } |
|
10879 } |
|
10880 |
|
10881 |
|
10882 XS(_wrap_dtn_recv) { |
|
10883 { |
|
10884 int arg1 ; |
|
10885 unsigned int arg2 ; |
|
10886 int arg3 ; |
|
10887 dtn_bundle *result = 0 ; |
|
10888 int val1 ; |
|
10889 int ecode1 = 0 ; |
|
10890 unsigned int val2 ; |
|
10891 int ecode2 = 0 ; |
|
10892 int val3 ; |
|
10893 int ecode3 = 0 ; |
|
10894 int argvi = 0; |
|
10895 dXSARGS; |
|
10896 |
|
10897 if ((items < 3) || (items > 3)) { |
|
10898 SWIG_croak("Usage: dtn_recv(handle,payload_location,timeout);"); |
|
10899 } |
|
10900 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
10901 if (!SWIG_IsOK(ecode1)) { |
|
10902 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_recv" "', argument " "1"" of type '" "int""'"); |
|
10903 } |
|
10904 arg1 = static_cast< int >(val1); |
|
10905 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10906 if (!SWIG_IsOK(ecode2)) { |
|
10907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_recv" "', argument " "2"" of type '" "unsigned int""'"); |
|
10908 } |
|
10909 arg2 = static_cast< unsigned int >(val2); |
|
10910 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); |
|
10911 if (!SWIG_IsOK(ecode3)) { |
|
10912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dtn_recv" "', argument " "3"" of type '" "int""'"); |
|
10913 } |
|
10914 arg3 = static_cast< int >(val3); |
|
10915 result = (dtn_bundle *)dtn_recv(arg1,arg2,arg3); |
|
10916 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_bundle, 0 | SWIG_SHADOW); argvi++ ; |
|
10917 |
|
10918 |
|
10919 |
|
10920 XSRETURN(argvi); |
|
10921 fail: |
|
10922 |
|
10923 |
|
10924 |
|
10925 SWIG_croak_null(); |
|
10926 } |
|
10927 } |
|
10928 |
|
10929 |
|
10930 XS(_wrap_dtn_session_info_status_set) { |
|
10931 { |
|
10932 dtn_session_info *arg1 = (dtn_session_info *) 0 ; |
|
10933 unsigned int arg2 ; |
|
10934 void *argp1 = 0 ; |
|
10935 int res1 = 0 ; |
|
10936 unsigned int val2 ; |
|
10937 int ecode2 = 0 ; |
|
10938 int argvi = 0; |
|
10939 dXSARGS; |
|
10940 |
|
10941 if ((items < 2) || (items > 2)) { |
|
10942 SWIG_croak("Usage: dtn_session_info_status_set(self,status);"); |
|
10943 } |
|
10944 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 ); |
|
10945 if (!SWIG_IsOK(res1)) { |
|
10946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_status_set" "', argument " "1"" of type '" "dtn_session_info *""'"); |
|
10947 } |
|
10948 arg1 = reinterpret_cast< dtn_session_info * >(argp1); |
|
10949 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
10950 if (!SWIG_IsOK(ecode2)) { |
|
10951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_session_info_status_set" "', argument " "2"" of type '" "unsigned int""'"); |
|
10952 } |
|
10953 arg2 = static_cast< unsigned int >(val2); |
|
10954 if (arg1) (arg1)->status = arg2; |
|
10955 |
|
10956 |
|
10957 |
|
10958 |
|
10959 XSRETURN(argvi); |
|
10960 fail: |
|
10961 |
|
10962 |
|
10963 SWIG_croak_null(); |
|
10964 } |
|
10965 } |
|
10966 |
|
10967 |
|
10968 XS(_wrap_dtn_session_info_status_get) { |
|
10969 { |
|
10970 dtn_session_info *arg1 = (dtn_session_info *) 0 ; |
|
10971 unsigned int result; |
|
10972 void *argp1 = 0 ; |
|
10973 int res1 = 0 ; |
|
10974 int argvi = 0; |
|
10975 dXSARGS; |
|
10976 |
|
10977 if ((items < 1) || (items > 1)) { |
|
10978 SWIG_croak("Usage: dtn_session_info_status_get(self);"); |
|
10979 } |
|
10980 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 ); |
|
10981 if (!SWIG_IsOK(res1)) { |
|
10982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_status_get" "', argument " "1"" of type '" "dtn_session_info *""'"); |
|
10983 } |
|
10984 arg1 = reinterpret_cast< dtn_session_info * >(argp1); |
|
10985 result = (unsigned int) ((arg1)->status); |
|
10986 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; |
|
10987 |
|
10988 XSRETURN(argvi); |
|
10989 fail: |
|
10990 |
|
10991 SWIG_croak_null(); |
|
10992 } |
|
10993 } |
|
10994 |
|
10995 |
|
10996 XS(_wrap_dtn_session_info_session_set) { |
|
10997 { |
|
10998 dtn_session_info *arg1 = (dtn_session_info *) 0 ; |
|
10999 std::string *arg2 = 0 ; |
|
11000 void *argp1 = 0 ; |
|
11001 int res1 = 0 ; |
|
11002 int res2 = SWIG_OLDOBJ ; |
|
11003 int argvi = 0; |
|
11004 dXSARGS; |
|
11005 |
|
11006 if ((items < 2) || (items > 2)) { |
|
11007 SWIG_croak("Usage: dtn_session_info_session_set(self,session);"); |
|
11008 } |
|
11009 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 ); |
|
11010 if (!SWIG_IsOK(res1)) { |
|
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_session_set" "', argument " "1"" of type '" "dtn_session_info *""'"); |
|
11012 } |
|
11013 arg1 = reinterpret_cast< dtn_session_info * >(argp1); |
|
11014 { |
|
11015 std::string *ptr = (std::string *)0; |
|
11016 res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); |
|
11017 if (!SWIG_IsOK(res2)) { |
|
11018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dtn_session_info_session_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
11019 } |
|
11020 if (!ptr) { |
|
11021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dtn_session_info_session_set" "', argument " "2"" of type '" "std::string const &""'"); |
|
11022 } |
|
11023 arg2 = ptr; |
|
11024 } |
|
11025 if (arg1) (arg1)->session = *arg2; |
|
11026 |
|
11027 |
|
11028 |
|
11029 if (SWIG_IsNewObj(res2)) delete arg2; |
|
11030 XSRETURN(argvi); |
|
11031 fail: |
|
11032 |
|
11033 if (SWIG_IsNewObj(res2)) delete arg2; |
|
11034 SWIG_croak_null(); |
|
11035 } |
|
11036 } |
|
11037 |
|
11038 |
|
11039 XS(_wrap_dtn_session_info_session_get) { |
|
11040 { |
|
11041 dtn_session_info *arg1 = (dtn_session_info *) 0 ; |
|
11042 std::string *result = 0 ; |
|
11043 void *argp1 = 0 ; |
|
11044 int res1 = 0 ; |
|
11045 int argvi = 0; |
|
11046 dXSARGS; |
|
11047 |
|
11048 if ((items < 1) || (items > 1)) { |
|
11049 SWIG_croak("Usage: dtn_session_info_session_get(self);"); |
|
11050 } |
|
11051 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, 0 | 0 ); |
|
11052 if (!SWIG_IsOK(res1)) { |
|
11053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dtn_session_info_session_get" "', argument " "1"" of type '" "dtn_session_info *""'"); |
|
11054 } |
|
11055 arg1 = reinterpret_cast< dtn_session_info * >(argp1); |
|
11056 { |
|
11057 std::string const &_result_ref = ((arg1)->session); |
|
11058 result = (std::string *) &_result_ref; |
|
11059 } |
|
11060 ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1(static_cast< std::string >(*result)); argvi++ ; |
|
11061 |
|
11062 XSRETURN(argvi); |
|
11063 fail: |
|
11064 |
|
11065 SWIG_croak_null(); |
|
11066 } |
|
11067 } |
|
11068 |
|
11069 |
|
11070 XS(_wrap_new_dtn_session_info) { |
|
11071 { |
|
11072 dtn_session_info *result = 0 ; |
|
11073 int argvi = 0; |
|
11074 dXSARGS; |
|
11075 |
|
11076 if ((items < 0) || (items > 0)) { |
|
11077 SWIG_croak("Usage: new_dtn_session_info();"); |
|
11078 } |
|
11079 result = (dtn_session_info *)new dtn_session_info(); |
|
11080 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_session_info, SWIG_OWNER | SWIG_SHADOW); argvi++ ; |
|
11081 XSRETURN(argvi); |
|
11082 fail: |
|
11083 SWIG_croak_null(); |
|
11084 } |
|
11085 } |
|
11086 |
|
11087 |
|
11088 XS(_wrap_delete_dtn_session_info) { |
|
11089 { |
|
11090 dtn_session_info *arg1 = (dtn_session_info *) 0 ; |
|
11091 void *argp1 = 0 ; |
|
11092 int res1 = 0 ; |
|
11093 int argvi = 0; |
|
11094 dXSARGS; |
|
11095 |
|
11096 if ((items < 1) || (items > 1)) { |
|
11097 SWIG_croak("Usage: delete_dtn_session_info(self);"); |
|
11098 } |
|
11099 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_dtn_session_info, SWIG_POINTER_DISOWN | 0 ); |
|
11100 if (!SWIG_IsOK(res1)) { |
|
11101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_dtn_session_info" "', argument " "1"" of type '" "dtn_session_info *""'"); |
|
11102 } |
|
11103 arg1 = reinterpret_cast< dtn_session_info * >(argp1); |
|
11104 delete arg1; |
|
11105 |
|
11106 |
|
11107 |
|
11108 XSRETURN(argvi); |
|
11109 fail: |
|
11110 |
|
11111 SWIG_croak_null(); |
|
11112 } |
|
11113 } |
|
11114 |
|
11115 |
|
11116 XS(_wrap_dtn_session_update) { |
|
11117 { |
|
11118 int arg1 ; |
|
11119 int arg2 ; |
|
11120 dtn_session_info *result = 0 ; |
|
11121 int val1 ; |
|
11122 int ecode1 = 0 ; |
|
11123 int val2 ; |
|
11124 int ecode2 = 0 ; |
|
11125 int argvi = 0; |
|
11126 dXSARGS; |
|
11127 |
|
11128 if ((items < 2) || (items > 2)) { |
|
11129 SWIG_croak("Usage: dtn_session_update(handle,timeout);"); |
|
11130 } |
|
11131 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
11132 if (!SWIG_IsOK(ecode1)) { |
|
11133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_session_update" "', argument " "1"" of type '" "int""'"); |
|
11134 } |
|
11135 arg1 = static_cast< int >(val1); |
|
11136 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
11137 if (!SWIG_IsOK(ecode2)) { |
|
11138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_session_update" "', argument " "2"" of type '" "int""'"); |
|
11139 } |
|
11140 arg2 = static_cast< int >(val2); |
|
11141 result = (dtn_session_info *)dtn_session_update(arg1,arg2); |
|
11142 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dtn_session_info, 0 | SWIG_SHADOW); argvi++ ; |
|
11143 |
|
11144 |
|
11145 XSRETURN(argvi); |
|
11146 fail: |
|
11147 |
|
11148 |
|
11149 SWIG_croak_null(); |
|
11150 } |
|
11151 } |
|
11152 |
|
11153 |
|
11154 XS(_wrap_dtn_poll_fd) { |
|
11155 { |
|
11156 int arg1 ; |
|
11157 int result; |
|
11158 int val1 ; |
|
11159 int ecode1 = 0 ; |
|
11160 int argvi = 0; |
|
11161 dXSARGS; |
|
11162 |
|
11163 if ((items < 1) || (items > 1)) { |
|
11164 SWIG_croak("Usage: dtn_poll_fd(handle);"); |
|
11165 } |
|
11166 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
11167 if (!SWIG_IsOK(ecode1)) { |
|
11168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_poll_fd" "', argument " "1"" of type '" "int""'"); |
|
11169 } |
|
11170 arg1 = static_cast< int >(val1); |
|
11171 result = (int)dtn_poll_fd(arg1); |
|
11172 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
11173 |
|
11174 XSRETURN(argvi); |
|
11175 fail: |
|
11176 |
|
11177 SWIG_croak_null(); |
|
11178 } |
|
11179 } |
|
11180 |
|
11181 |
|
11182 XS(_wrap_dtn_begin_poll) { |
|
11183 { |
|
11184 int arg1 ; |
|
11185 int arg2 ; |
|
11186 int result; |
|
11187 int val1 ; |
|
11188 int ecode1 = 0 ; |
|
11189 int val2 ; |
|
11190 int ecode2 = 0 ; |
|
11191 int argvi = 0; |
|
11192 dXSARGS; |
|
11193 |
|
11194 if ((items < 2) || (items > 2)) { |
|
11195 SWIG_croak("Usage: dtn_begin_poll(handle,timeout);"); |
|
11196 } |
|
11197 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
11198 if (!SWIG_IsOK(ecode1)) { |
|
11199 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_begin_poll" "', argument " "1"" of type '" "int""'"); |
|
11200 } |
|
11201 arg1 = static_cast< int >(val1); |
|
11202 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); |
|
11203 if (!SWIG_IsOK(ecode2)) { |
|
11204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dtn_begin_poll" "', argument " "2"" of type '" "int""'"); |
|
11205 } |
|
11206 arg2 = static_cast< int >(val2); |
|
11207 result = (int)dtn_begin_poll(arg1,arg2); |
|
11208 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
11209 |
|
11210 |
|
11211 XSRETURN(argvi); |
|
11212 fail: |
|
11213 |
|
11214 |
|
11215 SWIG_croak_null(); |
|
11216 } |
|
11217 } |
|
11218 |
|
11219 |
|
11220 XS(_wrap_dtn_cancel_poll) { |
|
11221 { |
|
11222 int arg1 ; |
|
11223 int result; |
|
11224 int val1 ; |
|
11225 int ecode1 = 0 ; |
|
11226 int argvi = 0; |
|
11227 dXSARGS; |
|
11228 |
|
11229 if ((items < 1) || (items > 1)) { |
|
11230 SWIG_croak("Usage: dtn_cancel_poll(handle);"); |
|
11231 } |
|
11232 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); |
|
11233 if (!SWIG_IsOK(ecode1)) { |
|
11234 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dtn_cancel_poll" "', argument " "1"" of type '" "int""'"); |
|
11235 } |
|
11236 arg1 = static_cast< int >(val1); |
|
11237 result = (int)dtn_cancel_poll(arg1); |
|
11238 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; |
|
11239 |
|
11240 XSRETURN(argvi); |
|
11241 fail: |
|
11242 |
|
11243 SWIG_croak_null(); |
|
11244 } |
|
11245 } |
|
11246 |
|
11247 |
|
11248 |
|
11249 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
|
11250 |
|
11251 static swig_type_info _swigt__p_XDR = {"_p_XDR", "XDR *", 0, 0, (void*)0, 0}; |
|
11252 static swig_type_info _swigt__p_bool_t = {"_p_bool_t", "bool_t *", 0, 0, (void*)0, 0}; |
|
11253 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
|
11254 static swig_type_info _swigt__p_dtn_bundle = {"_p_dtn_bundle", "dtn_bundle *", 0, 0, (void*)"dtnapi::dtn_bundle", 0}; |
|
11255 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}; |
|
11256 static swig_type_info _swigt__p_dtn_bundle_id = {"_p_dtn_bundle_id", "dtn_bundle_id *", 0, 0, (void*)"dtnapi::dtn_bundle_id", 0}; |
|
11257 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}; |
|
11258 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}; |
|
11259 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}; |
|
11260 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}; |
|
11261 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}; |
|
11262 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}; |
|
11263 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}; |
|
11264 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}; |
|
11265 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}; |
|
11266 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}; |
|
11267 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}; |
|
11268 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}; |
|
11269 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}; |
|
11270 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}; |
|
11271 static swig_type_info _swigt__p_dtn_handle_t = {"_p_dtn_handle_t", "dtn_handle_t *", 0, 0, (void*)0, 0}; |
|
11272 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}; |
|
11273 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}; |
|
11274 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}; |
|
11275 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}; |
|
11276 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}; |
|
11277 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}; |
|
11278 static swig_type_info _swigt__p_dtn_session_info = {"_p_dtn_session_info", "dtn_session_info *", 0, 0, (void*)"dtnapi::dtn_session_info", 0}; |
|
11279 static swig_type_info _swigt__p_dtn_status_report = {"_p_dtn_status_report", "dtn_status_report *", 0, 0, (void*)"dtnapi::dtn_status_report", 0}; |
|
11280 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}; |
|
11281 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}; |
|
11282 static swig_type_info _swigt__p_dtn_timestamp_t = {"_p_dtn_timestamp_t", "dtn_timestamp_t *", 0, 0, (void*)"dtnapi::dtn_timestamp_t", 0}; |
|
11283 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}; |
|
11284 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}; |
|
11285 |
|
11286 static swig_type_info *swig_type_initial[] = { |
|
11287 &_swigt__p_XDR, |
|
11288 &_swigt__p_bool_t, |
|
11289 &_swigt__p_char, |
|
11290 &_swigt__p_dtn_bundle, |
|
11291 &_swigt__p_dtn_bundle_delivery_opts_t, |
|
11292 &_swigt__p_dtn_bundle_id, |
|
11293 &_swigt__p_dtn_bundle_id_t, |
|
11294 &_swigt__p_dtn_bundle_payload_location_t, |
|
11295 &_swigt__p_dtn_bundle_payload_t, |
|
11296 &_swigt__p_dtn_bundle_payload_t_buf, |
|
11297 &_swigt__p_dtn_bundle_payload_t_filename, |
|
11298 &_swigt__p_dtn_bundle_priority_t, |
|
11299 &_swigt__p_dtn_bundle_spec_t, |
|
11300 &_swigt__p_dtn_bundle_spec_t_blocks, |
|
11301 &_swigt__p_dtn_bundle_spec_t_metadata, |
|
11302 &_swigt__p_dtn_bundle_status_report_t, |
|
11303 &_swigt__p_dtn_endpoint_id_t, |
|
11304 &_swigt__p_dtn_extension_block_flags_t, |
|
11305 &_swigt__p_dtn_extension_block_t, |
|
11306 &_swigt__p_dtn_extension_block_t_data, |
|
11307 &_swigt__p_dtn_handle_t, |
|
11308 &_swigt__p_dtn_reg_flags_t, |
|
11309 &_swigt__p_dtn_reg_info_t, |
|
11310 &_swigt__p_dtn_reg_info_t_script, |
|
11311 &_swigt__p_dtn_sequence_id_t, |
|
11312 &_swigt__p_dtn_sequence_id_t_data, |
|
11313 &_swigt__p_dtn_service_tag_t, |
|
11314 &_swigt__p_dtn_session_info, |
|
11315 &_swigt__p_dtn_status_report, |
|
11316 &_swigt__p_dtn_status_report_flags_t, |
|
11317 &_swigt__p_dtn_status_report_reason_t, |
|
11318 &_swigt__p_dtn_timestamp_t, |
|
11319 &_swigt__p_mapT_unsigned_int_dtn_handle_t_t, |
|
11320 &_swigt__p_u_int, |
|
11321 }; |
|
11322 |
|
11323 static swig_cast_info _swigc__p_XDR[] = { {&_swigt__p_XDR, 0, 0, 0},{0, 0, 0, 0}}; |
|
11324 static swig_cast_info _swigc__p_bool_t[] = { {&_swigt__p_bool_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11325 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
|
11326 static swig_cast_info _swigc__p_dtn_bundle[] = { {&_swigt__p_dtn_bundle, 0, 0, 0},{0, 0, 0, 0}}; |
|
11327 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}}; |
|
11328 static swig_cast_info _swigc__p_dtn_bundle_id[] = { {&_swigt__p_dtn_bundle_id, 0, 0, 0},{0, 0, 0, 0}}; |
|
11329 static swig_cast_info _swigc__p_dtn_bundle_id_t[] = { {&_swigt__p_dtn_bundle_id_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11330 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}}; |
|
11331 static swig_cast_info _swigc__p_dtn_bundle_payload_t[] = { {&_swigt__p_dtn_bundle_payload_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11332 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}}; |
|
11333 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}}; |
|
11334 static swig_cast_info _swigc__p_dtn_bundle_priority_t[] = { {&_swigt__p_dtn_bundle_priority_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11335 static swig_cast_info _swigc__p_dtn_bundle_spec_t[] = { {&_swigt__p_dtn_bundle_spec_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11336 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}}; |
|
11337 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}}; |
|
11338 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}}; |
|
11339 static swig_cast_info _swigc__p_dtn_endpoint_id_t[] = { {&_swigt__p_dtn_endpoint_id_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11340 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}}; |
|
11341 static swig_cast_info _swigc__p_dtn_extension_block_t[] = { {&_swigt__p_dtn_extension_block_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11342 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}}; |
|
11343 static swig_cast_info _swigc__p_dtn_handle_t[] = { {&_swigt__p_dtn_handle_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11344 static swig_cast_info _swigc__p_dtn_reg_flags_t[] = { {&_swigt__p_dtn_reg_flags_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11345 static swig_cast_info _swigc__p_dtn_reg_info_t[] = { {&_swigt__p_dtn_reg_info_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11346 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}}; |
|
11347 static swig_cast_info _swigc__p_dtn_sequence_id_t[] = { {&_swigt__p_dtn_sequence_id_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11348 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}}; |
|
11349 static swig_cast_info _swigc__p_dtn_service_tag_t[] = { {&_swigt__p_dtn_service_tag_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11350 static swig_cast_info _swigc__p_dtn_session_info[] = { {&_swigt__p_dtn_session_info, 0, 0, 0},{0, 0, 0, 0}}; |
|
11351 static swig_cast_info _swigc__p_dtn_status_report[] = { {&_swigt__p_dtn_status_report, 0, 0, 0},{0, 0, 0, 0}}; |
|
11352 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}}; |
|
11353 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}}; |
|
11354 static swig_cast_info _swigc__p_dtn_timestamp_t[] = { {&_swigt__p_dtn_timestamp_t, 0, 0, 0},{0, 0, 0, 0}}; |
|
11355 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}}; |
|
11356 static swig_cast_info _swigc__p_u_int[] = { {&_swigt__p_u_int, 0, 0, 0},{0, 0, 0, 0}}; |
|
11357 |
|
11358 static swig_cast_info *swig_cast_initial[] = { |
|
11359 _swigc__p_XDR, |
|
11360 _swigc__p_bool_t, |
|
11361 _swigc__p_char, |
|
11362 _swigc__p_dtn_bundle, |
|
11363 _swigc__p_dtn_bundle_delivery_opts_t, |
|
11364 _swigc__p_dtn_bundle_id, |
|
11365 _swigc__p_dtn_bundle_id_t, |
|
11366 _swigc__p_dtn_bundle_payload_location_t, |
|
11367 _swigc__p_dtn_bundle_payload_t, |
|
11368 _swigc__p_dtn_bundle_payload_t_buf, |
|
11369 _swigc__p_dtn_bundle_payload_t_filename, |
|
11370 _swigc__p_dtn_bundle_priority_t, |
|
11371 _swigc__p_dtn_bundle_spec_t, |
|
11372 _swigc__p_dtn_bundle_spec_t_blocks, |
|
11373 _swigc__p_dtn_bundle_spec_t_metadata, |
|
11374 _swigc__p_dtn_bundle_status_report_t, |
|
11375 _swigc__p_dtn_endpoint_id_t, |
|
11376 _swigc__p_dtn_extension_block_flags_t, |
|
11377 _swigc__p_dtn_extension_block_t, |
|
11378 _swigc__p_dtn_extension_block_t_data, |
|
11379 _swigc__p_dtn_handle_t, |
|
11380 _swigc__p_dtn_reg_flags_t, |
|
11381 _swigc__p_dtn_reg_info_t, |
|
11382 _swigc__p_dtn_reg_info_t_script, |
|
11383 _swigc__p_dtn_sequence_id_t, |
|
11384 _swigc__p_dtn_sequence_id_t_data, |
|
11385 _swigc__p_dtn_service_tag_t, |
|
11386 _swigc__p_dtn_session_info, |
|
11387 _swigc__p_dtn_status_report, |
|
11388 _swigc__p_dtn_status_report_flags_t, |
|
11389 _swigc__p_dtn_status_report_reason_t, |
|
11390 _swigc__p_dtn_timestamp_t, |
|
11391 _swigc__p_mapT_unsigned_int_dtn_handle_t_t, |
|
11392 _swigc__p_u_int, |
|
11393 }; |
|
11394 |
|
11395 |
|
11396 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
|
11397 |
|
11398 static swig_constant_info swig_constants[] = { |
|
11399 {0,0,0,0,0,0} |
|
11400 }; |
|
11401 #ifdef __cplusplus |
|
11402 } |
|
11403 #endif |
|
11404 static swig_variable_info swig_variables[] = { |
|
11405 { "dtnapic::Handles", MAGIC_CLASS _wrap_Handles_set, MAGIC_CLASS _wrap_Handles_get,&SWIGTYPE_p_mapT_unsigned_int_dtn_handle_t_t }, |
|
11406 { "dtnapic::HandleID", MAGIC_CLASS _wrap_HandleID_set, MAGIC_CLASS _wrap_HandleID_get,0 }, |
|
11407 {0,0,0,0} |
|
11408 }; |
|
11409 static swig_command_info swig_commands[] = { |
|
11410 {"dtnapic::dtn_endpoint_id_t_uri_set", _wrap_dtn_endpoint_id_t_uri_set}, |
|
11411 {"dtnapic::dtn_endpoint_id_t_uri_get", _wrap_dtn_endpoint_id_t_uri_get}, |
|
11412 {"dtnapic::new_dtn_endpoint_id_t", _wrap_new_dtn_endpoint_id_t}, |
|
11413 {"dtnapic::delete_dtn_endpoint_id_t", _wrap_delete_dtn_endpoint_id_t}, |
|
11414 {"dtnapic::dtn_timestamp_t_secs_set", _wrap_dtn_timestamp_t_secs_set}, |
|
11415 {"dtnapic::dtn_timestamp_t_secs_get", _wrap_dtn_timestamp_t_secs_get}, |
|
11416 {"dtnapic::dtn_timestamp_t_seqno_set", _wrap_dtn_timestamp_t_seqno_set}, |
|
11417 {"dtnapic::dtn_timestamp_t_seqno_get", _wrap_dtn_timestamp_t_seqno_get}, |
|
11418 {"dtnapic::new_dtn_timestamp_t", _wrap_new_dtn_timestamp_t}, |
|
11419 {"dtnapic::delete_dtn_timestamp_t", _wrap_delete_dtn_timestamp_t}, |
|
11420 {"dtnapic::dtn_service_tag_t_tag_set", _wrap_dtn_service_tag_t_tag_set}, |
|
11421 {"dtnapic::dtn_service_tag_t_tag_get", _wrap_dtn_service_tag_t_tag_get}, |
|
11422 {"dtnapic::new_dtn_service_tag_t", _wrap_new_dtn_service_tag_t}, |
|
11423 {"dtnapic::delete_dtn_service_tag_t", _wrap_delete_dtn_service_tag_t}, |
|
11424 {"dtnapic::dtn_reg_info_t_endpoint_set", _wrap_dtn_reg_info_t_endpoint_set}, |
|
11425 {"dtnapic::dtn_reg_info_t_endpoint_get", _wrap_dtn_reg_info_t_endpoint_get}, |
|
11426 {"dtnapic::dtn_reg_info_t_regid_set", _wrap_dtn_reg_info_t_regid_set}, |
|
11427 {"dtnapic::dtn_reg_info_t_regid_get", _wrap_dtn_reg_info_t_regid_get}, |
|
11428 {"dtnapic::dtn_reg_info_t_flags_set", _wrap_dtn_reg_info_t_flags_set}, |
|
11429 {"dtnapic::dtn_reg_info_t_flags_get", _wrap_dtn_reg_info_t_flags_get}, |
|
11430 {"dtnapic::dtn_reg_info_t_expiration_set", _wrap_dtn_reg_info_t_expiration_set}, |
|
11431 {"dtnapic::dtn_reg_info_t_expiration_get", _wrap_dtn_reg_info_t_expiration_get}, |
|
11432 {"dtnapic::dtn_reg_info_t_init_passive_set", _wrap_dtn_reg_info_t_init_passive_set}, |
|
11433 {"dtnapic::dtn_reg_info_t_init_passive_get", _wrap_dtn_reg_info_t_init_passive_get}, |
|
11434 {"dtnapic::dtn_reg_info_t_script_get", _wrap_dtn_reg_info_t_script_get}, |
|
11435 {"dtnapic::new_dtn_reg_info_t", _wrap_new_dtn_reg_info_t}, |
|
11436 {"dtnapic::delete_dtn_reg_info_t", _wrap_delete_dtn_reg_info_t}, |
|
11437 {"dtnapic::dtn_reg_info_t_script_script_len_set", _wrap_dtn_reg_info_t_script_script_len_set}, |
|
11438 {"dtnapic::dtn_reg_info_t_script_script_len_get", _wrap_dtn_reg_info_t_script_script_len_get}, |
|
11439 {"dtnapic::dtn_reg_info_t_script_script_val_set", _wrap_dtn_reg_info_t_script_script_val_set}, |
|
11440 {"dtnapic::dtn_reg_info_t_script_script_val_get", _wrap_dtn_reg_info_t_script_script_val_get}, |
|
11441 {"dtnapic::new_dtn_reg_info_t_script", _wrap_new_dtn_reg_info_t_script}, |
|
11442 {"dtnapic::delete_dtn_reg_info_t_script", _wrap_delete_dtn_reg_info_t_script}, |
|
11443 {"dtnapic::dtn_extension_block_t_type_set", _wrap_dtn_extension_block_t_type_set}, |
|
11444 {"dtnapic::dtn_extension_block_t_type_get", _wrap_dtn_extension_block_t_type_get}, |
|
11445 {"dtnapic::dtn_extension_block_t_flags_set", _wrap_dtn_extension_block_t_flags_set}, |
|
11446 {"dtnapic::dtn_extension_block_t_flags_get", _wrap_dtn_extension_block_t_flags_get}, |
|
11447 {"dtnapic::dtn_extension_block_t_data_get", _wrap_dtn_extension_block_t_data_get}, |
|
11448 {"dtnapic::new_dtn_extension_block_t", _wrap_new_dtn_extension_block_t}, |
|
11449 {"dtnapic::delete_dtn_extension_block_t", _wrap_delete_dtn_extension_block_t}, |
|
11450 {"dtnapic::dtn_extension_block_t_data_data_len_set", _wrap_dtn_extension_block_t_data_data_len_set}, |
|
11451 {"dtnapic::dtn_extension_block_t_data_data_len_get", _wrap_dtn_extension_block_t_data_data_len_get}, |
|
11452 {"dtnapic::dtn_extension_block_t_data_data_val_set", _wrap_dtn_extension_block_t_data_data_val_set}, |
|
11453 {"dtnapic::dtn_extension_block_t_data_data_val_get", _wrap_dtn_extension_block_t_data_data_val_get}, |
|
11454 {"dtnapic::new_dtn_extension_block_t_data", _wrap_new_dtn_extension_block_t_data}, |
|
11455 {"dtnapic::delete_dtn_extension_block_t_data", _wrap_delete_dtn_extension_block_t_data}, |
|
11456 {"dtnapic::dtn_sequence_id_t_data_get", _wrap_dtn_sequence_id_t_data_get}, |
|
11457 {"dtnapic::new_dtn_sequence_id_t", _wrap_new_dtn_sequence_id_t}, |
|
11458 {"dtnapic::delete_dtn_sequence_id_t", _wrap_delete_dtn_sequence_id_t}, |
|
11459 {"dtnapic::dtn_sequence_id_t_data_data_len_set", _wrap_dtn_sequence_id_t_data_data_len_set}, |
|
11460 {"dtnapic::dtn_sequence_id_t_data_data_len_get", _wrap_dtn_sequence_id_t_data_data_len_get}, |
|
11461 {"dtnapic::dtn_sequence_id_t_data_data_val_set", _wrap_dtn_sequence_id_t_data_data_val_set}, |
|
11462 {"dtnapic::dtn_sequence_id_t_data_data_val_get", _wrap_dtn_sequence_id_t_data_data_val_get}, |
|
11463 {"dtnapic::new_dtn_sequence_id_t_data", _wrap_new_dtn_sequence_id_t_data}, |
|
11464 {"dtnapic::delete_dtn_sequence_id_t_data", _wrap_delete_dtn_sequence_id_t_data}, |
|
11465 {"dtnapic::dtn_bundle_spec_t_source_set", _wrap_dtn_bundle_spec_t_source_set}, |
|
11466 {"dtnapic::dtn_bundle_spec_t_source_get", _wrap_dtn_bundle_spec_t_source_get}, |
|
11467 {"dtnapic::dtn_bundle_spec_t_dest_set", _wrap_dtn_bundle_spec_t_dest_set}, |
|
11468 {"dtnapic::dtn_bundle_spec_t_dest_get", _wrap_dtn_bundle_spec_t_dest_get}, |
|
11469 {"dtnapic::dtn_bundle_spec_t_replyto_set", _wrap_dtn_bundle_spec_t_replyto_set}, |
|
11470 {"dtnapic::dtn_bundle_spec_t_replyto_get", _wrap_dtn_bundle_spec_t_replyto_get}, |
|
11471 {"dtnapic::dtn_bundle_spec_t_priority_set", _wrap_dtn_bundle_spec_t_priority_set}, |
|
11472 {"dtnapic::dtn_bundle_spec_t_priority_get", _wrap_dtn_bundle_spec_t_priority_get}, |
|
11473 {"dtnapic::dtn_bundle_spec_t_dopts_set", _wrap_dtn_bundle_spec_t_dopts_set}, |
|
11474 {"dtnapic::dtn_bundle_spec_t_dopts_get", _wrap_dtn_bundle_spec_t_dopts_get}, |
|
11475 {"dtnapic::dtn_bundle_spec_t_expiration_set", _wrap_dtn_bundle_spec_t_expiration_set}, |
|
11476 {"dtnapic::dtn_bundle_spec_t_expiration_get", _wrap_dtn_bundle_spec_t_expiration_get}, |
|
11477 {"dtnapic::dtn_bundle_spec_t_creation_ts_set", _wrap_dtn_bundle_spec_t_creation_ts_set}, |
|
11478 {"dtnapic::dtn_bundle_spec_t_creation_ts_get", _wrap_dtn_bundle_spec_t_creation_ts_get}, |
|
11479 {"dtnapic::dtn_bundle_spec_t_delivery_regid_set", _wrap_dtn_bundle_spec_t_delivery_regid_set}, |
|
11480 {"dtnapic::dtn_bundle_spec_t_delivery_regid_get", _wrap_dtn_bundle_spec_t_delivery_regid_get}, |
|
11481 {"dtnapic::dtn_bundle_spec_t_sequence_id_set", _wrap_dtn_bundle_spec_t_sequence_id_set}, |
|
11482 {"dtnapic::dtn_bundle_spec_t_sequence_id_get", _wrap_dtn_bundle_spec_t_sequence_id_get}, |
|
11483 {"dtnapic::dtn_bundle_spec_t_obsoletes_id_set", _wrap_dtn_bundle_spec_t_obsoletes_id_set}, |
|
11484 {"dtnapic::dtn_bundle_spec_t_obsoletes_id_get", _wrap_dtn_bundle_spec_t_obsoletes_id_get}, |
|
11485 {"dtnapic::dtn_bundle_spec_t_metadata_get", _wrap_dtn_bundle_spec_t_metadata_get}, |
|
11486 {"dtnapic::dtn_bundle_spec_t_blocks_get", _wrap_dtn_bundle_spec_t_blocks_get}, |
|
11487 {"dtnapic::new_dtn_bundle_spec_t", _wrap_new_dtn_bundle_spec_t}, |
|
11488 {"dtnapic::delete_dtn_bundle_spec_t", _wrap_delete_dtn_bundle_spec_t}, |
|
11489 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_len_set", _wrap_dtn_bundle_spec_t_metadata_metadata_len_set}, |
|
11490 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_len_get", _wrap_dtn_bundle_spec_t_metadata_metadata_len_get}, |
|
11491 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_val_set", _wrap_dtn_bundle_spec_t_metadata_metadata_val_set}, |
|
11492 {"dtnapic::dtn_bundle_spec_t_metadata_metadata_val_get", _wrap_dtn_bundle_spec_t_metadata_metadata_val_get}, |
|
11493 {"dtnapic::new_dtn_bundle_spec_t_metadata", _wrap_new_dtn_bundle_spec_t_metadata}, |
|
11494 {"dtnapic::delete_dtn_bundle_spec_t_metadata", _wrap_delete_dtn_bundle_spec_t_metadata}, |
|
11495 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_len_set", _wrap_dtn_bundle_spec_t_blocks_blocks_len_set}, |
|
11496 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_len_get", _wrap_dtn_bundle_spec_t_blocks_blocks_len_get}, |
|
11497 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_val_set", _wrap_dtn_bundle_spec_t_blocks_blocks_val_set}, |
|
11498 {"dtnapic::dtn_bundle_spec_t_blocks_blocks_val_get", _wrap_dtn_bundle_spec_t_blocks_blocks_val_get}, |
|
11499 {"dtnapic::new_dtn_bundle_spec_t_blocks", _wrap_new_dtn_bundle_spec_t_blocks}, |
|
11500 {"dtnapic::delete_dtn_bundle_spec_t_blocks", _wrap_delete_dtn_bundle_spec_t_blocks}, |
|
11501 {"dtnapic::dtn_bundle_id_t_source_set", _wrap_dtn_bundle_id_t_source_set}, |
|
11502 {"dtnapic::dtn_bundle_id_t_source_get", _wrap_dtn_bundle_id_t_source_get}, |
|
11503 {"dtnapic::dtn_bundle_id_t_creation_ts_set", _wrap_dtn_bundle_id_t_creation_ts_set}, |
|
11504 {"dtnapic::dtn_bundle_id_t_creation_ts_get", _wrap_dtn_bundle_id_t_creation_ts_get}, |
|
11505 {"dtnapic::dtn_bundle_id_t_frag_offset_set", _wrap_dtn_bundle_id_t_frag_offset_set}, |
|
11506 {"dtnapic::dtn_bundle_id_t_frag_offset_get", _wrap_dtn_bundle_id_t_frag_offset_get}, |
|
11507 {"dtnapic::dtn_bundle_id_t_orig_length_set", _wrap_dtn_bundle_id_t_orig_length_set}, |
|
11508 {"dtnapic::dtn_bundle_id_t_orig_length_get", _wrap_dtn_bundle_id_t_orig_length_get}, |
|
11509 {"dtnapic::new_dtn_bundle_id_t", _wrap_new_dtn_bundle_id_t}, |
|
11510 {"dtnapic::delete_dtn_bundle_id_t", _wrap_delete_dtn_bundle_id_t}, |
|
11511 {"dtnapic::dtn_bundle_status_report_t_bundle_id_set", _wrap_dtn_bundle_status_report_t_bundle_id_set}, |
|
11512 {"dtnapic::dtn_bundle_status_report_t_bundle_id_get", _wrap_dtn_bundle_status_report_t_bundle_id_get}, |
|
11513 {"dtnapic::dtn_bundle_status_report_t_reason_set", _wrap_dtn_bundle_status_report_t_reason_set}, |
|
11514 {"dtnapic::dtn_bundle_status_report_t_reason_get", _wrap_dtn_bundle_status_report_t_reason_get}, |
|
11515 {"dtnapic::dtn_bundle_status_report_t_flags_set", _wrap_dtn_bundle_status_report_t_flags_set}, |
|
11516 {"dtnapic::dtn_bundle_status_report_t_flags_get", _wrap_dtn_bundle_status_report_t_flags_get}, |
|
11517 {"dtnapic::dtn_bundle_status_report_t_receipt_ts_set", _wrap_dtn_bundle_status_report_t_receipt_ts_set}, |
|
11518 {"dtnapic::dtn_bundle_status_report_t_receipt_ts_get", _wrap_dtn_bundle_status_report_t_receipt_ts_get}, |
|
11519 {"dtnapic::dtn_bundle_status_report_t_custody_ts_set", _wrap_dtn_bundle_status_report_t_custody_ts_set}, |
|
11520 {"dtnapic::dtn_bundle_status_report_t_custody_ts_get", _wrap_dtn_bundle_status_report_t_custody_ts_get}, |
|
11521 {"dtnapic::dtn_bundle_status_report_t_forwarding_ts_set", _wrap_dtn_bundle_status_report_t_forwarding_ts_set}, |
|
11522 {"dtnapic::dtn_bundle_status_report_t_forwarding_ts_get", _wrap_dtn_bundle_status_report_t_forwarding_ts_get}, |
|
11523 {"dtnapic::dtn_bundle_status_report_t_delivery_ts_set", _wrap_dtn_bundle_status_report_t_delivery_ts_set}, |
|
11524 {"dtnapic::dtn_bundle_status_report_t_delivery_ts_get", _wrap_dtn_bundle_status_report_t_delivery_ts_get}, |
|
11525 {"dtnapic::dtn_bundle_status_report_t_deletion_ts_set", _wrap_dtn_bundle_status_report_t_deletion_ts_set}, |
|
11526 {"dtnapic::dtn_bundle_status_report_t_deletion_ts_get", _wrap_dtn_bundle_status_report_t_deletion_ts_get}, |
|
11527 {"dtnapic::dtn_bundle_status_report_t_ack_by_app_ts_set", _wrap_dtn_bundle_status_report_t_ack_by_app_ts_set}, |
|
11528 {"dtnapic::dtn_bundle_status_report_t_ack_by_app_ts_get", _wrap_dtn_bundle_status_report_t_ack_by_app_ts_get}, |
|
11529 {"dtnapic::new_dtn_bundle_status_report_t", _wrap_new_dtn_bundle_status_report_t}, |
|
11530 {"dtnapic::delete_dtn_bundle_status_report_t", _wrap_delete_dtn_bundle_status_report_t}, |
|
11531 {"dtnapic::dtn_bundle_payload_t_location_set", _wrap_dtn_bundle_payload_t_location_set}, |
|
11532 {"dtnapic::dtn_bundle_payload_t_location_get", _wrap_dtn_bundle_payload_t_location_get}, |
|
11533 {"dtnapic::dtn_bundle_payload_t_status_report_set", _wrap_dtn_bundle_payload_t_status_report_set}, |
|
11534 {"dtnapic::dtn_bundle_payload_t_status_report_get", _wrap_dtn_bundle_payload_t_status_report_get}, |
|
11535 {"dtnapic::dtn_bundle_payload_t_buf_get", _wrap_dtn_bundle_payload_t_buf_get}, |
|
11536 {"dtnapic::dtn_bundle_payload_t_filename_get", _wrap_dtn_bundle_payload_t_filename_get}, |
|
11537 {"dtnapic::new_dtn_bundle_payload_t", _wrap_new_dtn_bundle_payload_t}, |
|
11538 {"dtnapic::delete_dtn_bundle_payload_t", _wrap_delete_dtn_bundle_payload_t}, |
|
11539 {"dtnapic::dtn_bundle_payload_t_buf_buf_len_set", _wrap_dtn_bundle_payload_t_buf_buf_len_set}, |
|
11540 {"dtnapic::dtn_bundle_payload_t_buf_buf_len_get", _wrap_dtn_bundle_payload_t_buf_buf_len_get}, |
|
11541 {"dtnapic::dtn_bundle_payload_t_buf_buf_val_set", _wrap_dtn_bundle_payload_t_buf_buf_val_set}, |
|
11542 {"dtnapic::dtn_bundle_payload_t_buf_buf_val_get", _wrap_dtn_bundle_payload_t_buf_buf_val_get}, |
|
11543 {"dtnapic::new_dtn_bundle_payload_t_buf", _wrap_new_dtn_bundle_payload_t_buf}, |
|
11544 {"dtnapic::delete_dtn_bundle_payload_t_buf", _wrap_delete_dtn_bundle_payload_t_buf}, |
|
11545 {"dtnapic::dtn_bundle_payload_t_filename_filename_len_set", _wrap_dtn_bundle_payload_t_filename_filename_len_set}, |
|
11546 {"dtnapic::dtn_bundle_payload_t_filename_filename_len_get", _wrap_dtn_bundle_payload_t_filename_filename_len_get}, |
|
11547 {"dtnapic::dtn_bundle_payload_t_filename_filename_val_set", _wrap_dtn_bundle_payload_t_filename_filename_val_set}, |
|
11548 {"dtnapic::dtn_bundle_payload_t_filename_filename_val_get", _wrap_dtn_bundle_payload_t_filename_filename_val_get}, |
|
11549 {"dtnapic::new_dtn_bundle_payload_t_filename", _wrap_new_dtn_bundle_payload_t_filename}, |
|
11550 {"dtnapic::delete_dtn_bundle_payload_t_filename", _wrap_delete_dtn_bundle_payload_t_filename}, |
|
11551 {"dtnapic::xdr_dtn_endpoint_id_t", _wrap_xdr_dtn_endpoint_id_t}, |
|
11552 {"dtnapic::xdr_dtn_reg_id_t", _wrap_xdr_dtn_reg_id_t}, |
|
11553 {"dtnapic::xdr_dtn_timeval_t", _wrap_xdr_dtn_timeval_t}, |
|
11554 {"dtnapic::xdr_dtn_timestamp_t", _wrap_xdr_dtn_timestamp_t}, |
|
11555 {"dtnapic::xdr_dtn_service_tag_t", _wrap_xdr_dtn_service_tag_t}, |
|
11556 {"dtnapic::xdr_dtn_reg_flags_t", _wrap_xdr_dtn_reg_flags_t}, |
|
11557 {"dtnapic::xdr_dtn_reg_info_t", _wrap_xdr_dtn_reg_info_t}, |
|
11558 {"dtnapic::xdr_dtn_bundle_priority_t", _wrap_xdr_dtn_bundle_priority_t}, |
|
11559 {"dtnapic::xdr_dtn_bundle_delivery_opts_t", _wrap_xdr_dtn_bundle_delivery_opts_t}, |
|
11560 {"dtnapic::xdr_dtn_extension_block_flags_t", _wrap_xdr_dtn_extension_block_flags_t}, |
|
11561 {"dtnapic::xdr_dtn_extension_block_t", _wrap_xdr_dtn_extension_block_t}, |
|
11562 {"dtnapic::xdr_dtn_sequence_id_t", _wrap_xdr_dtn_sequence_id_t}, |
|
11563 {"dtnapic::xdr_dtn_bundle_spec_t", _wrap_xdr_dtn_bundle_spec_t}, |
|
11564 {"dtnapic::xdr_dtn_bundle_id_t", _wrap_xdr_dtn_bundle_id_t}, |
|
11565 {"dtnapic::xdr_dtn_status_report_reason_t", _wrap_xdr_dtn_status_report_reason_t}, |
|
11566 {"dtnapic::xdr_dtn_status_report_flags_t", _wrap_xdr_dtn_status_report_flags_t}, |
|
11567 {"dtnapic::xdr_dtn_bundle_status_report_t", _wrap_xdr_dtn_bundle_status_report_t}, |
|
11568 {"dtnapic::xdr_dtn_bundle_payload_location_t", _wrap_xdr_dtn_bundle_payload_location_t}, |
|
11569 {"dtnapic::xdr_dtn_bundle_payload_t", _wrap_xdr_dtn_bundle_payload_t}, |
|
11570 {"dtnapic::dtn_strerror", _wrap_dtn_strerror}, |
|
11571 {"dtnapic::dtn_open", _wrap_dtn_open}, |
|
11572 {"dtnapic::find_handle", _wrap_find_handle}, |
|
11573 {"dtnapic::dtn_close", _wrap_dtn_close}, |
|
11574 {"dtnapic::dtn_errno", _wrap_dtn_errno}, |
|
11575 {"dtnapic::dtn_build_local_eid", _wrap_dtn_build_local_eid}, |
|
11576 {"dtnapic::build_reginfo", _wrap_build_reginfo}, |
|
11577 {"dtnapic::dtn_register", _wrap_dtn_register}, |
|
11578 {"dtnapic::dtn_unregister", _wrap_dtn_unregister}, |
|
11579 {"dtnapic::dtn_find_registration", _wrap_dtn_find_registration}, |
|
11580 {"dtnapic::dtn_change_registration", _wrap_dtn_change_registration}, |
|
11581 {"dtnapic::dtn_bind", _wrap_dtn_bind}, |
|
11582 {"dtnapic::dtn_unbind", _wrap_dtn_unbind}, |
|
11583 {"dtnapic::dtn_bundle_id_source_set", _wrap_dtn_bundle_id_source_set}, |
|
11584 {"dtnapic::dtn_bundle_id_source_get", _wrap_dtn_bundle_id_source_get}, |
|
11585 {"dtnapic::dtn_bundle_id_creation_secs_set", _wrap_dtn_bundle_id_creation_secs_set}, |
|
11586 {"dtnapic::dtn_bundle_id_creation_secs_get", _wrap_dtn_bundle_id_creation_secs_get}, |
|
11587 {"dtnapic::dtn_bundle_id_creation_seqno_set", _wrap_dtn_bundle_id_creation_seqno_set}, |
|
11588 {"dtnapic::dtn_bundle_id_creation_seqno_get", _wrap_dtn_bundle_id_creation_seqno_get}, |
|
11589 {"dtnapic::new_dtn_bundle_id", _wrap_new_dtn_bundle_id}, |
|
11590 {"dtnapic::delete_dtn_bundle_id", _wrap_delete_dtn_bundle_id}, |
|
11591 {"dtnapic::dtn_send", _wrap_dtn_send}, |
|
11592 {"dtnapic::dtn_cancel", _wrap_dtn_cancel}, |
|
11593 {"dtnapic::dtn_status_report_bundle_id_set", _wrap_dtn_status_report_bundle_id_set}, |
|
11594 {"dtnapic::dtn_status_report_bundle_id_get", _wrap_dtn_status_report_bundle_id_get}, |
|
11595 {"dtnapic::dtn_status_report_reason_set", _wrap_dtn_status_report_reason_set}, |
|
11596 {"dtnapic::dtn_status_report_reason_get", _wrap_dtn_status_report_reason_get}, |
|
11597 {"dtnapic::dtn_status_report_flags_set", _wrap_dtn_status_report_flags_set}, |
|
11598 {"dtnapic::dtn_status_report_flags_get", _wrap_dtn_status_report_flags_get}, |
|
11599 {"dtnapic::dtn_status_report_receipt_ts_secs_set", _wrap_dtn_status_report_receipt_ts_secs_set}, |
|
11600 {"dtnapic::dtn_status_report_receipt_ts_secs_get", _wrap_dtn_status_report_receipt_ts_secs_get}, |
|
11601 {"dtnapic::dtn_status_report_receipt_ts_seqno_set", _wrap_dtn_status_report_receipt_ts_seqno_set}, |
|
11602 {"dtnapic::dtn_status_report_receipt_ts_seqno_get", _wrap_dtn_status_report_receipt_ts_seqno_get}, |
|
11603 {"dtnapic::dtn_status_report_custody_ts_secs_set", _wrap_dtn_status_report_custody_ts_secs_set}, |
|
11604 {"dtnapic::dtn_status_report_custody_ts_secs_get", _wrap_dtn_status_report_custody_ts_secs_get}, |
|
11605 {"dtnapic::dtn_status_report_custody_ts_seqno_set", _wrap_dtn_status_report_custody_ts_seqno_set}, |
|
11606 {"dtnapic::dtn_status_report_custody_ts_seqno_get", _wrap_dtn_status_report_custody_ts_seqno_get}, |
|
11607 {"dtnapic::dtn_status_report_forwarding_ts_secs_set", _wrap_dtn_status_report_forwarding_ts_secs_set}, |
|
11608 {"dtnapic::dtn_status_report_forwarding_ts_secs_get", _wrap_dtn_status_report_forwarding_ts_secs_get}, |
|
11609 {"dtnapic::dtn_status_report_forwarding_ts_seqno_set", _wrap_dtn_status_report_forwarding_ts_seqno_set}, |
|
11610 {"dtnapic::dtn_status_report_forwarding_ts_seqno_get", _wrap_dtn_status_report_forwarding_ts_seqno_get}, |
|
11611 {"dtnapic::dtn_status_report_delivery_ts_secs_set", _wrap_dtn_status_report_delivery_ts_secs_set}, |
|
11612 {"dtnapic::dtn_status_report_delivery_ts_secs_get", _wrap_dtn_status_report_delivery_ts_secs_get}, |
|
11613 {"dtnapic::dtn_status_report_delivery_ts_seqno_set", _wrap_dtn_status_report_delivery_ts_seqno_set}, |
|
11614 {"dtnapic::dtn_status_report_delivery_ts_seqno_get", _wrap_dtn_status_report_delivery_ts_seqno_get}, |
|
11615 {"dtnapic::dtn_status_report_deletion_ts_secs_set", _wrap_dtn_status_report_deletion_ts_secs_set}, |
|
11616 {"dtnapic::dtn_status_report_deletion_ts_secs_get", _wrap_dtn_status_report_deletion_ts_secs_get}, |
|
11617 {"dtnapic::dtn_status_report_deletion_ts_seqno_set", _wrap_dtn_status_report_deletion_ts_seqno_set}, |
|
11618 {"dtnapic::dtn_status_report_deletion_ts_seqno_get", _wrap_dtn_status_report_deletion_ts_seqno_get}, |
|
11619 {"dtnapic::dtn_status_report_ack_by_app_ts_secs_set", _wrap_dtn_status_report_ack_by_app_ts_secs_set}, |
|
11620 {"dtnapic::dtn_status_report_ack_by_app_ts_secs_get", _wrap_dtn_status_report_ack_by_app_ts_secs_get}, |
|
11621 {"dtnapic::dtn_status_report_ack_by_app_ts_seqno_set", _wrap_dtn_status_report_ack_by_app_ts_seqno_set}, |
|
11622 {"dtnapic::dtn_status_report_ack_by_app_ts_seqno_get", _wrap_dtn_status_report_ack_by_app_ts_seqno_get}, |
|
11623 {"dtnapic::new_dtn_status_report", _wrap_new_dtn_status_report}, |
|
11624 {"dtnapic::delete_dtn_status_report", _wrap_delete_dtn_status_report}, |
|
11625 {"dtnapic::dtn_status_report_reason_to_str", _wrap_dtn_status_report_reason_to_str}, |
|
11626 {"dtnapic::dtn_bundle_source_set", _wrap_dtn_bundle_source_set}, |
|
11627 {"dtnapic::dtn_bundle_source_get", _wrap_dtn_bundle_source_get}, |
|
11628 {"dtnapic::dtn_bundle_dest_set", _wrap_dtn_bundle_dest_set}, |
|
11629 {"dtnapic::dtn_bundle_dest_get", _wrap_dtn_bundle_dest_get}, |
|
11630 {"dtnapic::dtn_bundle_replyto_set", _wrap_dtn_bundle_replyto_set}, |
|
11631 {"dtnapic::dtn_bundle_replyto_get", _wrap_dtn_bundle_replyto_get}, |
|
11632 {"dtnapic::dtn_bundle_priority_set", _wrap_dtn_bundle_priority_set}, |
|
11633 {"dtnapic::dtn_bundle_priority_get", _wrap_dtn_bundle_priority_get}, |
|
11634 {"dtnapic::dtn_bundle_dopts_set", _wrap_dtn_bundle_dopts_set}, |
|
11635 {"dtnapic::dtn_bundle_dopts_get", _wrap_dtn_bundle_dopts_get}, |
|
11636 {"dtnapic::dtn_bundle_expiration_set", _wrap_dtn_bundle_expiration_set}, |
|
11637 {"dtnapic::dtn_bundle_expiration_get", _wrap_dtn_bundle_expiration_get}, |
|
11638 {"dtnapic::dtn_bundle_creation_secs_set", _wrap_dtn_bundle_creation_secs_set}, |
|
11639 {"dtnapic::dtn_bundle_creation_secs_get", _wrap_dtn_bundle_creation_secs_get}, |
|
11640 {"dtnapic::dtn_bundle_creation_seqno_set", _wrap_dtn_bundle_creation_seqno_set}, |
|
11641 {"dtnapic::dtn_bundle_creation_seqno_get", _wrap_dtn_bundle_creation_seqno_get}, |
|
11642 {"dtnapic::dtn_bundle_delivery_regid_set", _wrap_dtn_bundle_delivery_regid_set}, |
|
11643 {"dtnapic::dtn_bundle_delivery_regid_get", _wrap_dtn_bundle_delivery_regid_get}, |
|
11644 {"dtnapic::dtn_bundle_sequence_id_set", _wrap_dtn_bundle_sequence_id_set}, |
|
11645 {"dtnapic::dtn_bundle_sequence_id_get", _wrap_dtn_bundle_sequence_id_get}, |
|
11646 {"dtnapic::dtn_bundle_obsoletes_id_set", _wrap_dtn_bundle_obsoletes_id_set}, |
|
11647 {"dtnapic::dtn_bundle_obsoletes_id_get", _wrap_dtn_bundle_obsoletes_id_get}, |
|
11648 {"dtnapic::dtn_bundle_payload_set", _wrap_dtn_bundle_payload_set}, |
|
11649 {"dtnapic::dtn_bundle_payload_get", _wrap_dtn_bundle_payload_get}, |
|
11650 {"dtnapic::dtn_bundle_status_report_set", _wrap_dtn_bundle_status_report_set}, |
|
11651 {"dtnapic::dtn_bundle_status_report_get", _wrap_dtn_bundle_status_report_get}, |
|
11652 {"dtnapic::new_dtn_bundle", _wrap_new_dtn_bundle}, |
|
11653 {"dtnapic::delete_dtn_bundle", _wrap_delete_dtn_bundle}, |
|
11654 {"dtnapic::dtn_recv", _wrap_dtn_recv}, |
|
11655 {"dtnapic::dtn_session_info_status_set", _wrap_dtn_session_info_status_set}, |
|
11656 {"dtnapic::dtn_session_info_status_get", _wrap_dtn_session_info_status_get}, |
|
11657 {"dtnapic::dtn_session_info_session_set", _wrap_dtn_session_info_session_set}, |
|
11658 {"dtnapic::dtn_session_info_session_get", _wrap_dtn_session_info_session_get}, |
|
11659 {"dtnapic::new_dtn_session_info", _wrap_new_dtn_session_info}, |
|
11660 {"dtnapic::delete_dtn_session_info", _wrap_delete_dtn_session_info}, |
|
11661 {"dtnapic::dtn_session_update", _wrap_dtn_session_update}, |
|
11662 {"dtnapic::dtn_poll_fd", _wrap_dtn_poll_fd}, |
|
11663 {"dtnapic::dtn_begin_poll", _wrap_dtn_begin_poll}, |
|
11664 {"dtnapic::dtn_cancel_poll", _wrap_dtn_cancel_poll}, |
|
11665 {0,0} |
|
11666 }; |
|
11667 /* ----------------------------------------------------------------------------- |
|
11668 * Type initialization: |
|
11669 * This problem is tough by the requirement that no dynamic |
|
11670 * memory is used. Also, since swig_type_info structures store pointers to |
|
11671 * swig_cast_info structures and swig_cast_info structures store pointers back |
|
11672 * to swig_type_info structures, we need some lookup code at initialization. |
|
11673 * The idea is that swig generates all the structures that are needed. |
|
11674 * The runtime then collects these partially filled structures. |
|
11675 * The SWIG_InitializeModule function takes these initial arrays out of |
|
11676 * swig_module, and does all the lookup, filling in the swig_module.types |
|
11677 * array with the correct data and linking the correct swig_cast_info |
|
11678 * structures together. |
|
11679 * |
|
11680 * The generated swig_type_info structures are assigned staticly to an initial |
|
11681 * array. We just loop through that array, and handle each type individually. |
|
11682 * First we lookup if this type has been already loaded, and if so, use the |
|
11683 * loaded structure instead of the generated one. Then we have to fill in the |
|
11684 * cast linked list. The cast data is initially stored in something like a |
|
11685 * two-dimensional array. Each row corresponds to a type (there are the same |
|
11686 * number of rows as there are in the swig_type_initial array). Each entry in |
|
11687 * a column is one of the swig_cast_info structures for that type. |
|
11688 * The cast_initial array is actually an array of arrays, because each row has |
|
11689 * a variable number of columns. So to actually build the cast linked list, |
|
11690 * we find the array of casts associated with the type, and loop through it |
|
11691 * adding the casts to the list. The one last trick we need to do is making |
|
11692 * sure the type pointer in the swig_cast_info struct is correct. |
|
11693 * |
|
11694 * First off, we lookup the cast->type name to see if it is already loaded. |
|
11695 * There are three cases to handle: |
|
11696 * 1) If the cast->type has already been loaded AND the type we are adding |
|
11697 * casting info to has not been loaded (it is in this module), THEN we |
|
11698 * replace the cast->type pointer with the type pointer that has already |
|
11699 * been loaded. |
|
11700 * 2) If BOTH types (the one we are adding casting info to, and the |
|
11701 * cast->type) are loaded, THEN the cast info has already been loaded by |
|
11702 * the previous module so we just ignore it. |
|
11703 * 3) Finally, if cast->type has not already been loaded, then we add that |
|
11704 * swig_cast_info to the linked list (because the cast->type) pointer will |
|
11705 * be correct. |
|
11706 * ----------------------------------------------------------------------------- */ |
|
11707 |
|
11708 #ifdef __cplusplus |
|
11709 extern "C" { |
|
11710 #if 0 |
|
11711 } /* c-mode */ |
|
11712 #endif |
|
11713 #endif |
|
11714 |
|
11715 #if 0 |
|
11716 #define SWIGRUNTIME_DEBUG |
|
11717 #endif |
|
11718 |
|
11719 |
|
11720 SWIGRUNTIME void |
|
11721 SWIG_InitializeModule(void *clientdata) { |
|
11722 size_t i; |
|
11723 swig_module_info *module_head, *iter; |
|
11724 int found, init; |
|
11725 |
|
11726 clientdata = clientdata; |
|
11727 |
|
11728 /* check to see if the circular list has been setup, if not, set it up */ |
|
11729 if (swig_module.next==0) { |
|
11730 /* Initialize the swig_module */ |
|
11731 swig_module.type_initial = swig_type_initial; |
|
11732 swig_module.cast_initial = swig_cast_initial; |
|
11733 swig_module.next = &swig_module; |
|
11734 init = 1; |
|
11735 } else { |
|
11736 init = 0; |
|
11737 } |
|
11738 |
|
11739 /* Try and load any already created modules */ |
|
11740 module_head = SWIG_GetModule(clientdata); |
|
11741 if (!module_head) { |
|
11742 /* This is the first module loaded for this interpreter */ |
|
11743 /* so set the swig module into the interpreter */ |
|
11744 SWIG_SetModule(clientdata, &swig_module); |
|
11745 module_head = &swig_module; |
|
11746 } else { |
|
11747 /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
|
11748 found=0; |
|
11749 iter=module_head; |
|
11750 do { |
|
11751 if (iter==&swig_module) { |
|
11752 found=1; |
|
11753 break; |
|
11754 } |
|
11755 iter=iter->next; |
|
11756 } while (iter!= module_head); |
|
11757 |
|
11758 /* if the is found in the list, then all is done and we may leave */ |
|
11759 if (found) return; |
|
11760 /* otherwise we must add out module into the list */ |
|
11761 swig_module.next = module_head->next; |
|
11762 module_head->next = &swig_module; |
|
11763 } |
|
11764 |
|
11765 /* When multiple interpeters are used, a module could have already been initialized in |
|
11766 a different interpreter, but not yet have a pointer in this interpreter. |
|
11767 In this case, we do not want to continue adding types... everything should be |
|
11768 set up already */ |
|
11769 if (init == 0) return; |
|
11770 |
|
11771 /* Now work on filling in swig_module.types */ |
|
11772 #ifdef SWIGRUNTIME_DEBUG |
|
11773 printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
|
11774 #endif |
|
11775 for (i = 0; i < swig_module.size; ++i) { |
|
11776 swig_type_info *type = 0; |
|
11777 swig_type_info *ret; |
|
11778 swig_cast_info *cast; |
|
11779 |
|
11780 #ifdef SWIGRUNTIME_DEBUG |
|
11781 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
|
11782 #endif |
|
11783 |
|
11784 /* if there is another module already loaded */ |
|
11785 if (swig_module.next != &swig_module) { |
|
11786 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
|
11787 } |
|
11788 if (type) { |
|
11789 /* Overwrite clientdata field */ |
|
11790 #ifdef SWIGRUNTIME_DEBUG |
|
11791 printf("SWIG_InitializeModule: found type %s\n", type->name); |
|
11792 #endif |
|
11793 if (swig_module.type_initial[i]->clientdata) { |
|
11794 type->clientdata = swig_module.type_initial[i]->clientdata; |
|
11795 #ifdef SWIGRUNTIME_DEBUG |
|
11796 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
|
11797 #endif |
|
11798 } |
|
11799 } else { |
|
11800 type = swig_module.type_initial[i]; |
|
11801 } |
|
11802 |
|
11803 /* Insert casting types */ |
|
11804 cast = swig_module.cast_initial[i]; |
|
11805 while (cast->type) { |
|
11806 /* Don't need to add information already in the list */ |
|
11807 ret = 0; |
|
11808 #ifdef SWIGRUNTIME_DEBUG |
|
11809 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
|
11810 #endif |
|
11811 if (swig_module.next != &swig_module) { |
|
11812 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
|
11813 #ifdef SWIGRUNTIME_DEBUG |
|
11814 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
|
11815 #endif |
|
11816 } |
|
11817 if (ret) { |
|
11818 if (type == swig_module.type_initial[i]) { |
|
11819 #ifdef SWIGRUNTIME_DEBUG |
|
11820 printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
|
11821 #endif |
|
11822 cast->type = ret; |
|
11823 ret = 0; |
|
11824 } else { |
|
11825 /* Check for casting already in the list */ |
|
11826 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
|
11827 #ifdef SWIGRUNTIME_DEBUG |
|
11828 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
|
11829 #endif |
|
11830 if (!ocast) ret = 0; |
|
11831 } |
|
11832 } |
|
11833 |
|
11834 if (!ret) { |
|
11835 #ifdef SWIGRUNTIME_DEBUG |
|
11836 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
|
11837 #endif |
|
11838 if (type->cast) { |
|
11839 type->cast->prev = cast; |
|
11840 cast->next = type->cast; |
|
11841 } |
|
11842 type->cast = cast; |
|
11843 } |
|
11844 cast++; |
|
11845 } |
|
11846 /* Set entry in modules->types array equal to the type */ |
|
11847 swig_module.types[i] = type; |
|
11848 } |
|
11849 swig_module.types[i] = 0; |
|
11850 |
|
11851 #ifdef SWIGRUNTIME_DEBUG |
|
11852 printf("**** SWIG_InitializeModule: Cast List ******\n"); |
|
11853 for (i = 0; i < swig_module.size; ++i) { |
|
11854 int j = 0; |
|
11855 swig_cast_info *cast = swig_module.cast_initial[i]; |
|
11856 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
|
11857 while (cast->type) { |
|
11858 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
|
11859 cast++; |
|
11860 ++j; |
|
11861 } |
|
11862 printf("---- Total casts: %d\n",j); |
|
11863 } |
|
11864 printf("**** SWIG_InitializeModule: Cast List ******\n"); |
|
11865 #endif |
|
11866 } |
|
11867 |
|
11868 /* This function will propagate the clientdata field of type to |
|
11869 * any new swig_type_info structures that have been added into the list |
|
11870 * of equivalent types. It is like calling |
|
11871 * SWIG_TypeClientData(type, clientdata) a second time. |
|
11872 */ |
|
11873 SWIGRUNTIME void |
|
11874 SWIG_PropagateClientData(void) { |
|
11875 size_t i; |
|
11876 swig_cast_info *equiv; |
|
11877 static int init_run = 0; |
|
11878 |
|
11879 if (init_run) return; |
|
11880 init_run = 1; |
|
11881 |
|
11882 for (i = 0; i < swig_module.size; i++) { |
|
11883 if (swig_module.types[i]->clientdata) { |
|
11884 equiv = swig_module.types[i]->cast; |
|
11885 while (equiv) { |
|
11886 if (!equiv->converter) { |
|
11887 if (equiv->type && !equiv->type->clientdata) |
|
11888 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
|
11889 } |
|
11890 equiv = equiv->next; |
|
11891 } |
|
11892 } |
|
11893 } |
|
11894 } |
|
11895 |
|
11896 #ifdef __cplusplus |
|
11897 #if 0 |
|
11898 { |
|
11899 /* c-mode */ |
|
11900 #endif |
|
11901 } |
|
11902 #endif |
|
11903 |
|
11904 |
|
11905 |
|
11906 #ifdef __cplusplus |
|
11907 extern "C" |
|
11908 #endif |
|
11909 |
|
11910 XS(SWIG_init) { |
|
11911 dXSARGS; |
|
11912 int i; |
|
11913 |
|
11914 SWIG_InitializeModule(0); |
|
11915 |
|
11916 /* Install commands */ |
|
11917 for (i = 0; swig_commands[i].name; i++) { |
|
11918 newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); |
|
11919 } |
|
11920 |
|
11921 /* Install variables */ |
|
11922 for (i = 0; swig_variables[i].name; i++) { |
|
11923 SV *sv; |
|
11924 sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); |
|
11925 if (swig_variables[i].type) { |
|
11926 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); |
|
11927 } else { |
|
11928 sv_setiv(sv,(IV) 0); |
|
11929 } |
|
11930 swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); |
|
11931 } |
|
11932 |
|
11933 /* Install constant */ |
|
11934 for (i = 0; swig_constants[i].type; i++) { |
|
11935 SV *sv; |
|
11936 sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); |
|
11937 switch(swig_constants[i].type) { |
|
11938 case SWIG_INT: |
|
11939 sv_setiv(sv, (IV) swig_constants[i].lvalue); |
|
11940 break; |
|
11941 case SWIG_FLOAT: |
|
11942 sv_setnv(sv, (double) swig_constants[i].dvalue); |
|
11943 break; |
|
11944 case SWIG_STRING: |
|
11945 sv_setpv(sv, (char *) swig_constants[i].pvalue); |
|
11946 break; |
|
11947 case SWIG_POINTER: |
|
11948 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); |
|
11949 break; |
|
11950 case SWIG_BINARY: |
|
11951 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); |
|
11952 break; |
|
11953 default: |
|
11954 break; |
|
11955 } |
|
11956 SvREADONLY_on(sv); |
|
11957 } |
|
11958 |
|
11959 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11960 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_ENDPOINT_ID", TRUE | 0x2 | GV_ADDMULTI); |
|
11961 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(256))); |
|
11962 SvREADONLY_on(sv); |
|
11963 } while(0) /*@SWIG@*/; |
|
11964 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11965 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_AUTHDATA", TRUE | 0x2 | GV_ADDMULTI); |
|
11966 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(1024))); |
|
11967 SvREADONLY_on(sv); |
|
11968 } while(0) /*@SWIG@*/; |
|
11969 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11970 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_REGION_LEN", TRUE | 0x2 | GV_ADDMULTI); |
|
11971 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(64))); |
|
11972 SvREADONLY_on(sv); |
|
11973 } while(0) /*@SWIG@*/; |
|
11974 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11975 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BUNDLE_MEM", TRUE | 0x2 | GV_ADDMULTI); |
|
11976 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(50000))); |
|
11977 SvREADONLY_on(sv); |
|
11978 } while(0) /*@SWIG@*/; |
|
11979 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11980 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BLOCK_LEN", TRUE | 0x2 | GV_ADDMULTI); |
|
11981 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(1024))); |
|
11982 SvREADONLY_on(sv); |
|
11983 } while(0) /*@SWIG@*/; |
|
11984 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11985 SV *sv = get_sv((char*) SWIG_prefix "DTN_MAX_BLOCKS", TRUE | 0x2 | GV_ADDMULTI); |
|
11986 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(256))); |
|
11987 SvREADONLY_on(sv); |
|
11988 } while(0) /*@SWIG@*/; |
|
11989 SWIG_TypeClientData(SWIGTYPE_p_dtn_endpoint_id_t, (void*) "dtnapi::dtn_endpoint_id_t"); |
|
11990 SWIG_TypeClientData(SWIGTYPE_p_dtn_timestamp_t, (void*) "dtnapi::dtn_timestamp_t"); |
|
11991 SWIG_TypeClientData(SWIGTYPE_p_dtn_service_tag_t, (void*) "dtnapi::dtn_service_tag_t"); |
|
11992 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11993 SV *sv = get_sv((char*) SWIG_prefix "DTN_REGID_NONE", TRUE | 0x2 | GV_ADDMULTI); |
|
11994 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(0))); |
|
11995 SvREADONLY_on(sv); |
|
11996 } while(0) /*@SWIG@*/; |
|
11997 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
11998 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_DROP", TRUE | 0x2 | GV_ADDMULTI); |
|
11999 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_DROP))); |
|
12000 SvREADONLY_on(sv); |
|
12001 } while(0) /*@SWIG@*/; |
|
12002 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12003 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_DEFER", TRUE | 0x2 | GV_ADDMULTI); |
|
12004 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_DEFER))); |
|
12005 SvREADONLY_on(sv); |
|
12006 } while(0) /*@SWIG@*/; |
|
12007 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12008 SV *sv = get_sv((char*) SWIG_prefix "DTN_REG_EXEC", TRUE | 0x2 | GV_ADDMULTI); |
|
12009 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_REG_EXEC))); |
|
12010 SvREADONLY_on(sv); |
|
12011 } while(0) /*@SWIG@*/; |
|
12012 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12013 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_CUSTODY", TRUE | 0x2 | GV_ADDMULTI); |
|
12014 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_CUSTODY))); |
|
12015 SvREADONLY_on(sv); |
|
12016 } while(0) /*@SWIG@*/; |
|
12017 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12018 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_PUBLISH", TRUE | 0x2 | GV_ADDMULTI); |
|
12019 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_PUBLISH))); |
|
12020 SvREADONLY_on(sv); |
|
12021 } while(0) /*@SWIG@*/; |
|
12022 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12023 SV *sv = get_sv((char*) SWIG_prefix "DTN_SESSION_SUBSCRIBE", TRUE | 0x2 | GV_ADDMULTI); |
|
12024 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_SESSION_SUBSCRIBE))); |
|
12025 SvREADONLY_on(sv); |
|
12026 } while(0) /*@SWIG@*/; |
|
12027 SWIG_TypeClientData(SWIGTYPE_p_dtn_reg_info_t, (void*) "dtnapi::dtn_reg_info_t"); |
|
12028 SWIG_TypeClientData(SWIGTYPE_p_dtn_reg_info_t_script, (void*) "dtnapi::dtn_reg_info_t_script"); |
|
12029 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12030 SV *sv = get_sv((char*) SWIG_prefix "COS_BULK", TRUE | 0x2 | GV_ADDMULTI); |
|
12031 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_BULK))); |
|
12032 SvREADONLY_on(sv); |
|
12033 } while(0) /*@SWIG@*/; |
|
12034 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12035 SV *sv = get_sv((char*) SWIG_prefix "COS_NORMAL", TRUE | 0x2 | GV_ADDMULTI); |
|
12036 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_NORMAL))); |
|
12037 SvREADONLY_on(sv); |
|
12038 } while(0) /*@SWIG@*/; |
|
12039 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12040 SV *sv = get_sv((char*) SWIG_prefix "COS_EXPEDITED", TRUE | 0x2 | GV_ADDMULTI); |
|
12041 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_EXPEDITED))); |
|
12042 SvREADONLY_on(sv); |
|
12043 } while(0) /*@SWIG@*/; |
|
12044 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12045 SV *sv = get_sv((char*) SWIG_prefix "COS_RESERVED", TRUE | 0x2 | GV_ADDMULTI); |
|
12046 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(COS_RESERVED))); |
|
12047 SvREADONLY_on(sv); |
|
12048 } while(0) /*@SWIG@*/; |
|
12049 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12050 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_NONE", TRUE | 0x2 | GV_ADDMULTI); |
|
12051 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_NONE))); |
|
12052 SvREADONLY_on(sv); |
|
12053 } while(0) /*@SWIG@*/; |
|
12054 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12055 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_CUSTODY", TRUE | 0x2 | GV_ADDMULTI); |
|
12056 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_CUSTODY))); |
|
12057 SvREADONLY_on(sv); |
|
12058 } while(0) /*@SWIG@*/; |
|
12059 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12060 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DELIVERY_RCPT", TRUE | 0x2 | GV_ADDMULTI); |
|
12061 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DELIVERY_RCPT))); |
|
12062 SvREADONLY_on(sv); |
|
12063 } while(0) /*@SWIG@*/; |
|
12064 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12065 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_RECEIVE_RCPT", TRUE | 0x2 | GV_ADDMULTI); |
|
12066 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_RECEIVE_RCPT))); |
|
12067 SvREADONLY_on(sv); |
|
12068 } while(0) /*@SWIG@*/; |
|
12069 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12070 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_FORWARD_RCPT", TRUE | 0x2 | GV_ADDMULTI); |
|
12071 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_FORWARD_RCPT))); |
|
12072 SvREADONLY_on(sv); |
|
12073 } while(0) /*@SWIG@*/; |
|
12074 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12075 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_CUSTODY_RCPT", TRUE | 0x2 | GV_ADDMULTI); |
|
12076 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_CUSTODY_RCPT))); |
|
12077 SvREADONLY_on(sv); |
|
12078 } while(0) /*@SWIG@*/; |
|
12079 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12080 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DELETE_RCPT", TRUE | 0x2 | GV_ADDMULTI); |
|
12081 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DELETE_RCPT))); |
|
12082 SvREADONLY_on(sv); |
|
12083 } while(0) /*@SWIG@*/; |
|
12084 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12085 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_SINGLETON_DEST", TRUE | 0x2 | GV_ADDMULTI); |
|
12086 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_SINGLETON_DEST))); |
|
12087 SvREADONLY_on(sv); |
|
12088 } while(0) /*@SWIG@*/; |
|
12089 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12090 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_MULTINODE_DEST", TRUE | 0x2 | GV_ADDMULTI); |
|
12091 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_MULTINODE_DEST))); |
|
12092 SvREADONLY_on(sv); |
|
12093 } while(0) /*@SWIG@*/; |
|
12094 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12095 SV *sv = get_sv((char*) SWIG_prefix "DOPTS_DO_NOT_FRAGMENT", TRUE | 0x2 | GV_ADDMULTI); |
|
12096 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DOPTS_DO_NOT_FRAGMENT))); |
|
12097 SvREADONLY_on(sv); |
|
12098 } while(0) /*@SWIG@*/; |
|
12099 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12100 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_NONE", TRUE | 0x2 | GV_ADDMULTI); |
|
12101 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_NONE))); |
|
12102 SvREADONLY_on(sv); |
|
12103 } while(0) /*@SWIG@*/; |
|
12104 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12105 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_REPLICATE", TRUE | 0x2 | GV_ADDMULTI); |
|
12106 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_REPLICATE))); |
|
12107 SvREADONLY_on(sv); |
|
12108 } while(0) /*@SWIG@*/; |
|
12109 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12110 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_REPORT", TRUE | 0x2 | GV_ADDMULTI); |
|
12111 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_REPORT))); |
|
12112 SvREADONLY_on(sv); |
|
12113 } while(0) /*@SWIG@*/; |
|
12114 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12115 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_DELETE_BUNDLE", TRUE | 0x2 | GV_ADDMULTI); |
|
12116 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_DELETE_BUNDLE))); |
|
12117 SvREADONLY_on(sv); |
|
12118 } while(0) /*@SWIG@*/; |
|
12119 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12120 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_LAST", TRUE | 0x2 | GV_ADDMULTI); |
|
12121 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_LAST))); |
|
12122 SvREADONLY_on(sv); |
|
12123 } while(0) /*@SWIG@*/; |
|
12124 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12125 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_DISCARD_BLOCK", TRUE | 0x2 | GV_ADDMULTI); |
|
12126 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_DISCARD_BLOCK))); |
|
12127 SvREADONLY_on(sv); |
|
12128 } while(0) /*@SWIG@*/; |
|
12129 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12130 SV *sv = get_sv((char*) SWIG_prefix "BLOCK_FLAG_UNPROCESSED", TRUE | 0x2 | GV_ADDMULTI); |
|
12131 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(BLOCK_FLAG_UNPROCESSED))); |
|
12132 SvREADONLY_on(sv); |
|
12133 } while(0) /*@SWIG@*/; |
|
12134 SWIG_TypeClientData(SWIGTYPE_p_dtn_extension_block_t, (void*) "dtnapi::dtn_extension_block_t"); |
|
12135 SWIG_TypeClientData(SWIGTYPE_p_dtn_extension_block_t_data, (void*) "dtnapi::dtn_extension_block_t_data"); |
|
12136 SWIG_TypeClientData(SWIGTYPE_p_dtn_sequence_id_t, (void*) "dtnapi::dtn_sequence_id_t"); |
|
12137 SWIG_TypeClientData(SWIGTYPE_p_dtn_sequence_id_t_data, (void*) "dtnapi::dtn_sequence_id_t_data"); |
|
12138 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t, (void*) "dtnapi::dtn_bundle_spec_t"); |
|
12139 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t_metadata, (void*) "dtnapi::dtn_bundle_spec_t_metadata"); |
|
12140 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_spec_t_blocks, (void*) "dtnapi::dtn_bundle_spec_t_blocks"); |
|
12141 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_id_t, (void*) "dtnapi::dtn_bundle_id_t"); |
|
12142 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12143 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_ADDTL_INFO", TRUE | 0x2 | GV_ADDMULTI); |
|
12144 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_ADDTL_INFO))); |
|
12145 SvREADONLY_on(sv); |
|
12146 } while(0) /*@SWIG@*/; |
|
12147 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12148 SV *sv = get_sv((char*) SWIG_prefix "REASON_LIFETIME_EXPIRED", TRUE | 0x2 | GV_ADDMULTI); |
|
12149 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_LIFETIME_EXPIRED))); |
|
12150 SvREADONLY_on(sv); |
|
12151 } while(0) /*@SWIG@*/; |
|
12152 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12153 SV *sv = get_sv((char*) SWIG_prefix "REASON_FORWARDED_UNIDIR_LINK", TRUE | 0x2 | GV_ADDMULTI); |
|
12154 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_FORWARDED_UNIDIR_LINK))); |
|
12155 SvREADONLY_on(sv); |
|
12156 } while(0) /*@SWIG@*/; |
|
12157 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12158 SV *sv = get_sv((char*) SWIG_prefix "REASON_TRANSMISSION_CANCELLED", TRUE | 0x2 | GV_ADDMULTI); |
|
12159 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_TRANSMISSION_CANCELLED))); |
|
12160 SvREADONLY_on(sv); |
|
12161 } while(0) /*@SWIG@*/; |
|
12162 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12163 SV *sv = get_sv((char*) SWIG_prefix "REASON_DEPLETED_STORAGE", TRUE | 0x2 | GV_ADDMULTI); |
|
12164 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_DEPLETED_STORAGE))); |
|
12165 SvREADONLY_on(sv); |
|
12166 } while(0) /*@SWIG@*/; |
|
12167 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12168 SV *sv = get_sv((char*) SWIG_prefix "REASON_ENDPOINT_ID_UNINTELLIGIBLE", TRUE | 0x2 | GV_ADDMULTI); |
|
12169 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_ENDPOINT_ID_UNINTELLIGIBLE))); |
|
12170 SvREADONLY_on(sv); |
|
12171 } while(0) /*@SWIG@*/; |
|
12172 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12173 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_ROUTE_TO_DEST", TRUE | 0x2 | GV_ADDMULTI); |
|
12174 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_ROUTE_TO_DEST))); |
|
12175 SvREADONLY_on(sv); |
|
12176 } while(0) /*@SWIG@*/; |
|
12177 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12178 SV *sv = get_sv((char*) SWIG_prefix "REASON_NO_TIMELY_CONTACT", TRUE | 0x2 | GV_ADDMULTI); |
|
12179 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_NO_TIMELY_CONTACT))); |
|
12180 SvREADONLY_on(sv); |
|
12181 } while(0) /*@SWIG@*/; |
|
12182 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12183 SV *sv = get_sv((char*) SWIG_prefix "REASON_BLOCK_UNINTELLIGIBLE", TRUE | 0x2 | GV_ADDMULTI); |
|
12184 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(REASON_BLOCK_UNINTELLIGIBLE))); |
|
12185 SvREADONLY_on(sv); |
|
12186 } while(0) /*@SWIG@*/; |
|
12187 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12188 SV *sv = get_sv((char*) SWIG_prefix "STATUS_RECEIVED", TRUE | 0x2 | GV_ADDMULTI); |
|
12189 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_RECEIVED))); |
|
12190 SvREADONLY_on(sv); |
|
12191 } while(0) /*@SWIG@*/; |
|
12192 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12193 SV *sv = get_sv((char*) SWIG_prefix "STATUS_CUSTODY_ACCEPTED", TRUE | 0x2 | GV_ADDMULTI); |
|
12194 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_CUSTODY_ACCEPTED))); |
|
12195 SvREADONLY_on(sv); |
|
12196 } while(0) /*@SWIG@*/; |
|
12197 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12198 SV *sv = get_sv((char*) SWIG_prefix "STATUS_FORWARDED", TRUE | 0x2 | GV_ADDMULTI); |
|
12199 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_FORWARDED))); |
|
12200 SvREADONLY_on(sv); |
|
12201 } while(0) /*@SWIG@*/; |
|
12202 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12203 SV *sv = get_sv((char*) SWIG_prefix "STATUS_DELIVERED", TRUE | 0x2 | GV_ADDMULTI); |
|
12204 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_DELIVERED))); |
|
12205 SvREADONLY_on(sv); |
|
12206 } while(0) /*@SWIG@*/; |
|
12207 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12208 SV *sv = get_sv((char*) SWIG_prefix "STATUS_DELETED", TRUE | 0x2 | GV_ADDMULTI); |
|
12209 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_DELETED))); |
|
12210 SvREADONLY_on(sv); |
|
12211 } while(0) /*@SWIG@*/; |
|
12212 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12213 SV *sv = get_sv((char*) SWIG_prefix "STATUS_ACKED_BY_APP", TRUE | 0x2 | GV_ADDMULTI); |
|
12214 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(STATUS_ACKED_BY_APP))); |
|
12215 SvREADONLY_on(sv); |
|
12216 } while(0) /*@SWIG@*/; |
|
12217 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_status_report_t, (void*) "dtnapi::dtn_bundle_status_report_t"); |
|
12218 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12219 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_FILE", TRUE | 0x2 | GV_ADDMULTI); |
|
12220 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_FILE))); |
|
12221 SvREADONLY_on(sv); |
|
12222 } while(0) /*@SWIG@*/; |
|
12223 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12224 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_MEM", TRUE | 0x2 | GV_ADDMULTI); |
|
12225 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_MEM))); |
|
12226 SvREADONLY_on(sv); |
|
12227 } while(0) /*@SWIG@*/; |
|
12228 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12229 SV *sv = get_sv((char*) SWIG_prefix "DTN_PAYLOAD_TEMP_FILE", TRUE | 0x2 | GV_ADDMULTI); |
|
12230 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(DTN_PAYLOAD_TEMP_FILE))); |
|
12231 SvREADONLY_on(sv); |
|
12232 } while(0) /*@SWIG@*/; |
|
12233 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t, (void*) "dtnapi::dtn_bundle_payload_t"); |
|
12234 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t_buf, (void*) "dtnapi::dtn_bundle_payload_t_buf"); |
|
12235 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_payload_t_filename, (void*) "dtnapi::dtn_bundle_payload_t_filename"); |
|
12236 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12237 SV *sv = get_sv((char*) SWIG_prefix "DTN_SUCCESS", TRUE | 0x2 | GV_ADDMULTI); |
|
12238 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(0))); |
|
12239 SvREADONLY_on(sv); |
|
12240 } while(0) /*@SWIG@*/; |
|
12241 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12242 SV *sv = get_sv((char*) SWIG_prefix "DTN_ERRBASE", TRUE | 0x2 | GV_ADDMULTI); |
|
12243 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(128))); |
|
12244 SvREADONLY_on(sv); |
|
12245 } while(0) /*@SWIG@*/; |
|
12246 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12247 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINVAL", TRUE | 0x2 | GV_ADDMULTI); |
|
12248 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+1)))); |
|
12249 SvREADONLY_on(sv); |
|
12250 } while(0) /*@SWIG@*/; |
|
12251 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12252 SV *sv = get_sv((char*) SWIG_prefix "DTN_EXDR", TRUE | 0x2 | GV_ADDMULTI); |
|
12253 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+2)))); |
|
12254 SvREADONLY_on(sv); |
|
12255 } while(0) /*@SWIG@*/; |
|
12256 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12257 SV *sv = get_sv((char*) SWIG_prefix "DTN_ECOMM", TRUE | 0x2 | GV_ADDMULTI); |
|
12258 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+3)))); |
|
12259 SvREADONLY_on(sv); |
|
12260 } while(0) /*@SWIG@*/; |
|
12261 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12262 SV *sv = get_sv((char*) SWIG_prefix "DTN_ECONNECT", TRUE | 0x2 | GV_ADDMULTI); |
|
12263 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+4)))); |
|
12264 SvREADONLY_on(sv); |
|
12265 } while(0) /*@SWIG@*/; |
|
12266 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12267 SV *sv = get_sv((char*) SWIG_prefix "DTN_ETIMEOUT", TRUE | 0x2 | GV_ADDMULTI); |
|
12268 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+5)))); |
|
12269 SvREADONLY_on(sv); |
|
12270 } while(0) /*@SWIG@*/; |
|
12271 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12272 SV *sv = get_sv((char*) SWIG_prefix "DTN_ESIZE", TRUE | 0x2 | GV_ADDMULTI); |
|
12273 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+6)))); |
|
12274 SvREADONLY_on(sv); |
|
12275 } while(0) /*@SWIG@*/; |
|
12276 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12277 SV *sv = get_sv((char*) SWIG_prefix "DTN_ENOTFOUND", TRUE | 0x2 | GV_ADDMULTI); |
|
12278 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+7)))); |
|
12279 SvREADONLY_on(sv); |
|
12280 } while(0) /*@SWIG@*/; |
|
12281 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12282 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINTERNAL", TRUE | 0x2 | GV_ADDMULTI); |
|
12283 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+8)))); |
|
12284 SvREADONLY_on(sv); |
|
12285 } while(0) /*@SWIG@*/; |
|
12286 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12287 SV *sv = get_sv((char*) SWIG_prefix "DTN_EINPOLL", TRUE | 0x2 | GV_ADDMULTI); |
|
12288 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+9)))); |
|
12289 SvREADONLY_on(sv); |
|
12290 } while(0) /*@SWIG@*/; |
|
12291 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12292 SV *sv = get_sv((char*) SWIG_prefix "DTN_EBUSY", TRUE | 0x2 | GV_ADDMULTI); |
|
12293 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+10)))); |
|
12294 SvREADONLY_on(sv); |
|
12295 } while(0) /*@SWIG@*/; |
|
12296 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12297 SV *sv = get_sv((char*) SWIG_prefix "DTN_EVERSION", TRUE | 0x2 | GV_ADDMULTI); |
|
12298 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+11)))); |
|
12299 SvREADONLY_on(sv); |
|
12300 } while(0) /*@SWIG@*/; |
|
12301 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12302 SV *sv = get_sv((char*) SWIG_prefix "DTN_EMSGTYPE", TRUE | 0x2 | GV_ADDMULTI); |
|
12303 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+12)))); |
|
12304 SvREADONLY_on(sv); |
|
12305 } while(0) /*@SWIG@*/; |
|
12306 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12307 SV *sv = get_sv((char*) SWIG_prefix "DTN_ENOSPACE", TRUE | 0x2 | GV_ADDMULTI); |
|
12308 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >((128+13)))); |
|
12309 SvREADONLY_on(sv); |
|
12310 } while(0) /*@SWIG@*/; |
|
12311 /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { |
|
12312 SV *sv = get_sv((char*) SWIG_prefix "DTN_ERRMAX", TRUE | 0x2 | GV_ADDMULTI); |
|
12313 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(255))); |
|
12314 SvREADONLY_on(sv); |
|
12315 } while(0) /*@SWIG@*/; |
|
12316 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle_id, (void*) "dtnapi::dtn_bundle_id"); |
|
12317 SWIG_TypeClientData(SWIGTYPE_p_dtn_status_report, (void*) "dtnapi::dtn_status_report"); |
|
12318 SWIG_TypeClientData(SWIGTYPE_p_dtn_bundle, (void*) "dtnapi::dtn_bundle"); |
|
12319 SWIG_TypeClientData(SWIGTYPE_p_dtn_session_info, (void*) "dtnapi::dtn_session_info"); |
|
12320 ST(0) = &PL_sv_yes; |
|
12321 XSRETURN(1); |
|
12322 } |
|
12323 |