OpenVAS Libraries
4.0+rc3.SVN
|
Protos and data structures for NVT Information Cache. More...
Go to the source code of this file.
Data Structures | |
struct | nvticache |
The structure for a NVTI Cache. More... | |
Typedefs | |
typedef struct nvticache | nvticache_t |
The structure for a NVTI Cache. | |
Functions | |
nvticache_t * | nvticache_new (const gchar *, const gchar *) |
Create a new nvticache structure initialized with a path. | |
void | nvticache_free (const nvticache_t *) |
Free memory of a nvticache structure. | |
nvti_t * | nvticache_get (const nvticache_t *, const gchar *) |
Retrieve NVT Information from a cache for the given filename. |
Protos and data structures for NVT Information Cache.
This file contains the protos for nvticache.c
typedef struct nvticache nvticache_t |
The structure for a NVTI Cache.
The elements of this structure should never be accessed directly. Only the functions corresponding to this module should be used.
void nvticache_free | ( | const nvticache_t * | cache | ) |
Free memory of a nvticache structure.
cache | The structure to be freed. |
nvti_t* nvticache_get | ( | const nvticache_t * | cache, |
const gchar * | filename | ||
) |
Retrieve NVT Information from a cache for the given filename.
cache | The NVTI Cache to use |
filename | The name of the original NVT without the path to the base location of NVTs (e.g. "scriptname1.nasl" or even "subdir1/subdir2/scriptname2.nasl" ) |
nvticache_t* nvticache_new | ( | const gchar * | cache_path, |
const gchar * | src_path | ||
) |
Create a new nvticache structure initialized with a path.
path | The directory where the cache is to be stored. |