OpenVAS Libraries  4.0+rc3.SVN
base/nvticache.h
Go to the documentation of this file.
00001 /* openvas-libraries/base
00002  * $Id$
00003  * Description: API (structs and protos) for NVT Info Cache
00004  *
00005  * Authors:
00006  * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
00007  *
00008  * Copyright:
00009  * Copyright (C) 2009 Greenbone Networks GmbH
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License version 2,
00013  * or, at your option, any later version as published by the Free
00014  * Software Foundation
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00024  */
00025 
00033 #ifndef _NVTICACHE_H
00034 #define _NVTICACHE_H
00035 
00036 /* for gchar */
00037 #include <glib.h>
00038 
00039 /* for nvtis_t */
00040 #include "nvti.h"
00041 
00048 typedef struct nvticache
00049 {
00050   gchar *cache_path;            
00051   gchar *src_path;              
00052 } nvticache_t;
00053 
00054 nvticache_t *nvticache_new (const gchar *, const gchar *);
00055 void nvticache_free (const nvticache_t *);
00056 nvti_t *nvticache_get (const nvticache_t *, const gchar *);
00057 
00058 #endif /* not _NVTICACHE_H */