1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
12
12
#define SWIG_CASTRANK_MODE
13
14
/* -----------------------------------------------------------------------------
14
15
* This section contains generic SWIG labels for method/variable
15
16
* declarations/attributes, and other compiler dependent labels.
116
123
/* -----------------------------------------------------------------------------
119
* This file contains generic CAPI SWIG runtime support for pointer
126
* This file contains generic C API SWIG runtime support for pointer
121
128
* ----------------------------------------------------------------------------- */
137
144
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
138
creating a static or dynamic library from the swig runtime code.
139
In 99.9% of the cases, swig just needs to declare them as 'static'.
145
creating a static or dynamic library from the SWIG runtime code.
146
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
141
But only do this if is strictly necessary, ie, if you have problems
142
with your compiler or so.
148
But only do this if strictly necessary, ie, if you have problems
149
with your compiler or suchlike.
145
152
#ifndef SWIGRUNTIME
167
174
Flags/methods for returning states.
169
The swig conversion methods, as ConvertPtr, return and integer
176
The SWIG conversion methods, as ConvertPtr, return and integer
170
177
that tells if the conversion was successful or not. And if not,
171
178
an error code can be returned (see swigerrors.swg for the codes).
173
180
Use the following macros/flags to set or process the returning
176
In old swig versions, you usually write code as:
183
In old versions of SWIG, code such as the following was usually written:
178
185
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193
that seems to be the same, but now you can also do
200
which is the same really, but now you can also do
196
203
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
209
216
I.e., now SWIG_ConvertPtr can return new objects and you can
210
217
identify the case and take care of the deallocation. Of course that
211
requires also to SWIG_ConvertPtr to return new result values, as
218
also requires SWIG_ConvertPtr to return new result values, such as
213
220
int SWIG_ConvertPtr(obj, ptr,...) {
214
221
if (<obj is ok>) {
227
234
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
228
235
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
231
238
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
232
239
allows to return the 'cast rank', for example, if you have this
391
/* think of this as a c++ template<> or a scheme macro */
392
#define SWIG_TypeCheck_Template(comparison, ty) \
394
swig_cast_info *iter = ty->cast; \
397
if (iter == ty->cast) return iter; \
398
/* Move iter to the top of the linked list */ \
399
iter->prev->next = iter->next; \
401
iter->next->prev = iter->prev; \
402
iter->next = ty->cast; \
404
if (ty->cast) ty->cast->prev = iter; \
414
395
Check the typename
416
397
SWIGRUNTIME swig_cast_info *
417
398
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
418
SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
400
swig_cast_info *iter = ty->cast;
402
if (strcmp(iter->type->name, c) == 0) {
403
if (iter == ty->cast)
405
/* Move iter to the top of the linked list */
406
iter->prev->next = iter->next;
408
iter->next->prev = iter->prev;
409
iter->next = ty->cast;
411
if (ty->cast) ty->cast->prev = iter;
421
/* Same as previous function, except strcmp is replaced with a pointer comparison */
422
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
422
424
SWIGRUNTIME swig_cast_info *
423
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
424
SWIG_TypeCheck_Template(iter->type == from, into);
425
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
427
swig_cast_info *iter = ty->cast;
429
if (iter->type == from) {
430
if (iter == ty->cast)
432
/* Move iter to the top of the linked list */
433
iter->prev->next = iter->next;
435
iter->next->prev = iter->prev;
436
iter->next = ty->cast;
438
if (ty->cast) ty->cast->prev = iter;
1084
/* Identical to SWIG_TypeCheck, except for strcmp comparison */
1063
1085
SWIGRUNTIME swig_cast_info *
1064
1086
SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1065
SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0))
1066
|| (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty);
1088
swig_cast_info *iter = ty->cast;
1090
if ( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) ||
1091
(iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0)) ) {
1092
if (iter == ty->cast)
1094
/* Move iter to the top of the linked list */
1095
iter->prev->next = iter->next;
1097
iter->next->prev = iter->prev;
1098
iter->next = ty->cast;
1100
if (ty->cast) ty->cast->prev = iter;
1070
1110
/* Function for getting a pointer value */
1072
1112
SWIGRUNTIME int
1448
1494
#define SWIG_name "Amanda::Cmdlinec::boot_Amanda__Cmdline"
1449
1495
#define SWIG_prefix "Amanda::Cmdlinec::"
1451
#define SWIGVERSION 0x010335
1497
#define SWIGVERSION 0x010339
1452
1498
#define SWIG_VERSION SWIGVERSION
1526
1572
SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1574
if (SvMAGICAL(obj)) {
1575
SV *tmp = sv_newmortal();
1528
1579
if (SvPOK(obj)) {
1529
1580
STRLEN len = 0;
1530
1581
char *cstr = SvPV(obj, len);
2473
2523
SWIG_TypeClientData(SWIGTYPE_p_dumpspec_t, (void*) "Amanda::Cmdline::dumpspec_t");
2474
/*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
2524
/*@SWIG:/usr/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
2475
2525
SV *sv = get_sv((char*) SWIG_prefix "CMDLINE_PARSE_DATESTAMP", TRUE | 0x2 | GV_ADDMULTI);
2476
2526
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CMDLINE_PARSE_DATESTAMP)));
2477
2527
SvREADONLY_on(sv);
2478
2528
} while(0) /*@SWIG@*/;
2479
/*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
2529
/*@SWIG:/usr/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
2480
2530
SV *sv = get_sv((char*) SWIG_prefix "CMDLINE_PARSE_LEVEL", TRUE | 0x2 | GV_ADDMULTI);
2481
2531
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CMDLINE_PARSE_LEVEL)));
2482
2532
SvREADONLY_on(sv);
2483
2533
} while(0) /*@SWIG@*/;
2484
/*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
2534
/*@SWIG:/usr/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
2485
2535
SV *sv = get_sv((char*) SWIG_prefix "CMDLINE_EMPTY_TO_WILDCARD", TRUE | 0x2 | GV_ADDMULTI);
2486
2536
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(CMDLINE_EMPTY_TO_WILDCARD)));
2487
2537
SvREADONLY_on(sv);