[Openvas-commits] r5741 - in trunk/gsa: . src src/html/src/img src/html/src/img/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 28 09:37:44 CET 2009


Author: jan
Date: 2009-10-28 09:37:40 +0100 (Wed, 28 Oct 2009)
New Revision: 5741

Added:
   trunk/gsa/src/html/src/img/style/
   trunk/gsa/src/html/src/img/style/logo_l.png
   trunk/gsa/src/html/src/img/style/logo_m.png
   trunk/gsa/src/html/src/img/style/logo_r.png
   trunk/gsa/src/html/src/img/style/window_dec_a.png
   trunk/gsa/src/html/src/img/style/window_dec_a_error.png
   trunk/gsa/src/html/src/img/style/window_dec_b.png
   trunk/gsa/src/html/src/img/style/window_dec_b_error.png
   trunk/gsa/src/html/src/img/style/window_dec_c.png
   trunk/gsa/src/html/src/img/style/window_dec_c_error.png
   trunk/gsa/src/validator.h
Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/CMakeLists.txt
Log:
* src/html/src/img/style/, src/html/src/img/style/logo_l.png,
src/html/src/img/style/logo_m.png, src/html/src/img/style/logo_r.png,
src/html/src/img/style/window_dec_a_error.png,
src/html/src/img/style/window_dec_a.png,
src/html/src/img/style/window_dec_b_error.png,
src/html/src/img/style/window_dec_b.png,
src/html/src/img/style/window_dec_c_error.png,
src/html/src/img/style/window_dec_c.png: New.

* src/validator.h: New.

* src/CMakeLists.txt: Add module validator, fix sequence of modules,
make libs static, remove cmake minimum requirement.



Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2009-10-27 14:15:24 UTC (rev 5740)
+++ trunk/gsa/ChangeLog	2009-10-28 08:37:40 UTC (rev 5741)
@@ -1,3 +1,19 @@
+2009-10-28  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
+	* src/html/src/img/style/, src/html/src/img/style/logo_l.png,
+	src/html/src/img/style/logo_m.png, src/html/src/img/style/logo_r.png,
+	src/html/src/img/style/window_dec_a_error.png,
+	src/html/src/img/style/window_dec_a.png,
+	src/html/src/img/style/window_dec_b_error.png,
+	src/html/src/img/style/window_dec_b.png,
+	src/html/src/img/style/window_dec_c_error.png,
+	src/html/src/img/style/window_dec_c.png: New.
+
+	* src/validator.h: New.
+
+	* src/CMakeLists.txt: Add module validator, fix sequence of modules,
+	make libs static, remove cmake minimum requirement.
+
 2009-10-26  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
 	* VERSION, CMakeLists.txt: Upgraded from 0.7.3.SVN to 0.7.4.SVN.

Modified: trunk/gsa/src/CMakeLists.txt
===================================================================
--- trunk/gsa/src/CMakeLists.txt	2009-10-27 14:15:24 UTC (rev 5740)
+++ trunk/gsa/src/CMakeLists.txt	2009-10-28 08:37:40 UTC (rev 5741)
@@ -25,10 +25,6 @@
 
 ## Config
 
-#project (gsad C)
-
-cmake_minimum_required (VERSION 2.4)
-
 add_definitions (-Werror)
 
 exec_program (pkg-config
@@ -74,19 +70,19 @@
 
 ## Libraries
 
-add_library (gsad_base gsad_base.c)
+add_library (gsad_base STATIC gsad_base.c)
 set_target_properties (gsad_base PROPERTIES COMPILE_FLAGS "${HEADER_TEMP} ${TASKS_CFLAG} ${GLIB_THREAD_CFLAGS} ${GLIB_CFLAGS} ${LIBXML_CFLAGS}")
 
-add_library (gsad_omp gsad_omp.c)
+add_library (gsad_omp STATIC gsad_omp.c)
 set_target_properties (gsad_omp PROPERTIES COMPILE_FLAGS "${HEADER_TEMP} ${TASKS_CFLAG} ${GLIB_THREAD_CFLAGS} ${GLIB_CFLAGS} ${LIBXML_CFLAGS}")
 
-add_library (gsad_oap gsad_oap.c)
+add_library (gsad_oap STATIC gsad_oap.c)
 set_target_properties (gsad_oap PROPERTIES COMPILE_FLAGS "${HEADER_TEMP} ${TASKS_CFLAG} ${GLIB_THREAD_CFLAGS} ${GLIB_CFLAGS} ${LIBXML_CFLAGS}")
 
 ## Program
 
-add_executable (gsad gsad.c)
-target_link_libraries (gsad gsad_base gsad_omp gsad_oap)
+add_executable (gsad gsad.c validator.c)
+target_link_libraries (gsad gsad_omp gsad_oap gsad_base)
 
 set_target_properties (gsad PROPERTIES LINKER_LANGUAGE C)
 

Added: trunk/gsa/src/html/src/img/style/logo_l.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/logo_l.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/logo_m.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/logo_m.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/logo_r.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/logo_r.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_a.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_a.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_a_error.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_a_error.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_b.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_b.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_b_error.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_b_error.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_c.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_c.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/html/src/img/style/window_dec_c_error.png
===================================================================
(Binary files differ)


Property changes on: trunk/gsa/src/html/src/img/style/window_dec_c_error.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gsa/src/validator.h
===================================================================
--- trunk/gsa/src/validator.h	2009-10-27 14:15:24 UTC (rev 5740)
+++ trunk/gsa/src/validator.h	2009-10-28 08:37:40 UTC (rev 5741)
@@ -0,0 +1,47 @@
+/* Greenbone Security Assistant (set for openvas-libraries/base)
+ * $Id$
+ * Description: String validator.
+ *
+ * Authors:
+ * Matthew Mundell <matthew.mundell at intevation.de>
+ * Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+ *
+ * Copyright:
+ * Copyright (C) 2009 Greenbone Networks GmbH
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2,
+ * or, at your option, any later version as published by the Free
+ * Software Foundation
+ *
+ * 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+/**
+ * @file validator.h
+ * @brief Headers/structs for a string validator.
+ */
+
+#ifndef _VALIDATOR_H
+#define _VALIDATOR_H
+
+#include <glib.h>
+
+/**
+ * @brief A set of name validator pairs.
+ */
+typedef GHashTable *validator_t;
+
+validator_t openvas_validator_new ();
+void openvas_validator_add (validator_t, const char *, const char *);
+int openvas_validate (validator_t, const char *, const char *);
+void openvas_validator_free (validator_t);
+
+#endif /* not _VALIDATOR_H */



More information about the Openvas-commits mailing list