libprelude/master: Add C++ bindings for prelude_check_version().

[email protected] Fri, 5 Jun 2009 18:45:49 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit ffb878593face4f782147a44e46724d8a3f757b3
Author: Yoann Vandoorselaere <[email protected]>
Date:   Fri Jun 5 17:34:57 2009 +0200

    Add C++ bindings for prelude_check_version().


========================================

 bindings/c++/Makefile.am         |    1 +
 bindings/c++/include/prelude.hxx |    4 ++++
 bindings/c++/prelude.cxx         |   31 +++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)

========================================

diff --git a/bindings/c++/Makefile.am b/bindings/c++/Makefile.am
index fe9200a..5bffc88 100644
--- a/bindings/c++/Makefile.am
+++ b/bindings/c++/Makefile.am
@@ -11,6 +11,7 @@ libpreludecpp_la_SOURCES = \
 	idmef-path.cxx \
 	idmef-time.cxx \
 	idmef-value.cxx \
+	prelude.cxx	\
 	prelude-client.cxx \
 	prelude-client-easy.cxx \
 	prelude-client-profile.cxx \
diff --git a/bindings/c++/include/prelude.hxx b/bindings/c++/include/prelude.hxx
index bc2e634..5674c05 100644
--- a/bindings/c++/include/prelude.hxx
+++ b/bindings/c++/include/prelude.hxx
@@ -21,6 +21,8 @@
 *
 *****/
 
+#include <stdio.h>
+
 #ifndef _LIBPRELUDE_PRELUDE_HXX
 #define _LIBPRELUDE_PRELUDE_HXX
 
@@ -34,4 +36,6 @@
 #include "idmef-value.hxx"
 #include "idmef-criteria.hxx"
 
+const char *CheckVersion(const char *version = NULL);
+
 #endif
diff --git a/bindings/c++/prelude.cxx b/bindings/c++/prelude.cxx
new file mode 100644
index 0000000..ed9947a
--- /dev/null
+++ b/bindings/c++/prelude.cxx
@@ -0,0 +1,31 @@
+/*****
+*
+* Copyright (C) 2009 PreludeIDS Technologies. All Rights Reserved.
+* Author: Yoann Vandoorselaere <[email protected]>
+*
+* This file is part of the Prelude library.
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2, or (at your option)
+* any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; see the file COPYING.  If not, write to
+* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+*****/
+
+#include <prelude.h>
+#include "prelude.hxx"
+
+const char *CheckVersion(const char *version)
+{
+        return prelude_check_version(version);
+}
+
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog