r11144 - libprelude/trunk/bindings

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2009-04-14 18:18:39 +0200 (Tue, 14 Apr 2009)
New Revision: 11144

Modified:
   libprelude/trunk/bindings/libpreludecpp.i
Log:
When an IDMEF value carry a class, return the IDMEFValue proxy to the caller since we currently cannot map it to the real IDMEF datatype.

Modified: libprelude/trunk/bindings/libpreludecpp.i
===================================================================
--- libprelude/trunk/bindings/libpreludecpp.i	2009-04-10 10:12:52 UTC (rev 11143)
+++ libprelude/trunk/bindings/libpreludecpp.i	2009-04-14 16:18:39 UTC (rev 11144)
@@ -134,6 +134,9 @@
                         *ret = SWIG_From_unsigned_SS_long_SS_long(idmef_data_get_uint64(d));
         }
 
+        else if ( type == IDMEF_VALUE_TYPE_CLASS )
+                *ret = SWIG_NewPointerObj(new IDMEFValue(value), SWIGTYPE_p_Prelude__IDMEFValue, 1);
+        
         else return -1;
 
         return 0;

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.