[prelude-devel] [Prelude Hybrid IDS] #269: Wrong idmef_*_get_next_* python binding functions?
Prelude Hybrid IDS
noreply at prelude-ids.org
Wed Jan 9 11:48:07 CET 2008
#269: Wrong idmef_*_get_next_* python binding functions?
------------------------------------+---------------------------------------
Reporter: benchistador at gmail.com | Owner: yoann
Type: defect | Status: new
Priority: normal | Milestone: Libprelude 0.9.17
Component: libprelude | Version: 0.9
Severity: normal | Resolution:
Keywords: python binding |
------------------------------------+---------------------------------------
Comment (by anonymous):
Ok, the correct code is the following:
{{{
%typemap(in) idmef_source_t *object {
if ( $input == Py_None )
$1 = NULL;
else {
if ( SWIG_ConvertPtr($input, (void **)&$1,
SWIGTYPE_p_idmef_source, SWIG_POINTER_EXCEPTION|0) )
return NULL;
}
};
}}}
This code works as expected, and returns None when there is no more
source.
Can you test it ? Thanks
Pierre
--
Ticket URL: <https://trac.prelude-ids.org/ticket/269#comment:6>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite
More information about the Prelude-devel
mailing list