bindings_get_next_2.diff
libprelude.i (copie de travail) | ||
---|---|---|
186 | 186 |
idmef_data_t * |
187 | 187 |
}; |
188 | 188 | |
189 |
/* the following typemaps are used to allow NULL pointers to be passed |
|
190 |
* to _get_next_* functions |
|
191 |
*/ |
|
192 |
%apply SWIGTYPE *LISTEDPARAM { |
|
193 |
idmef_reference_t *object, |
|
194 |
idmef_user_id_t *object, |
|
195 |
idmef_address_t *object, |
|
196 |
idmef_file_access_t *object, |
|
197 |
idmef_linkage_t *object, |
|
198 |
idmef_checksum_t *object, |
|
199 |
idmef_file_t *object, |
|
200 |
idmef_action_t *object, |
|
201 |
idmef_alertident_t *object, |
|
202 |
idmef_alertident_t *object, |
|
203 |
idmef_analyzer_t *object, |
|
204 |
idmef_source_t *object, |
|
205 |
idmef_target_t *object, |
|
206 |
idmef_additional_data_t *object, |
|
207 |
idmef_analyzer_t *object, |
|
208 |
idmef_additional_data_t *object |
|
209 |
}; |
|
189 | 210 | |
211 | ||
212 | ||
190 | 213 |
%ignore idmef_path_new_v; |
191 | 214 |
%ignore prelude_string_vprintf; |
192 | 215 |
%ignore _prelude_log_v; |
libprelude_python.i (copie de travail) | ||
---|---|---|
93 | 93 |
}; |
94 | 94 | |
95 | 95 | |
96 |
/* This typemap is used to allow NULL pointers in _get_next_* functions |
|
97 |
*/ |
|
98 |
%typemap(in) SWIGTYPE *LISTEDPARAM { |
|
99 |
if ( $input == Py_None ) { |
|
100 |
$1 = NULL; |
|
101 |
} else { |
|
102 |
if ( SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION|0) ) |
|
103 |
return NULL; |
|
104 |
} |
|
105 |
}; |
|
106 | ||
107 | ||
96 | 108 |
%typemap(in) const char * { |
97 | 109 |
if ( $input == Py_None ) |
98 | 110 |
$1 = NULL; |
libprelude_perl.i (copie de travail) | ||
---|---|---|
74 | 74 | |
75 | 75 |
%} |
76 | 76 | |
77 | ||
78 |
/* This typemap is used to allow NULL pointers in _get_next_* functions |
|
79 |
*/ |
|
80 |
%typemap(in) SWIGTYPE *LISTEDPARAM { |
|
81 |
if ( ! SvOK($input) ) { |
|
82 |
$1 = NULL; |
|
83 |
} else { |
|
84 |
if ( SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, 0) ) { |
|
85 |
croak("Expected type $1_type for argument $argnum."); |
|
86 |
return; |
|
87 |
} |
|
88 |
} |
|
89 |
} |
|
90 | ||
91 | ||
77 | 92 |
%typemap(in) char **argv { |
78 | 93 |
AV *tempav; |
79 | 94 |
I32 len; |