gchar * cache_path
The directory where the cache is located.
Definition: nvticache.h:50
nvticache_t * nvticache_new(const gchar *, const gchar *)
Create a new nvticache structure initialized with a path.
Definition: nvticache.c:55
void nvticache_free(const nvticache_t *)
Free memory of a nvticache structure.
Definition: nvticache.c:78
The structure of a information record that corresponds to a NVT.
Definition: nvti.h:64
struct nvticache nvticache_t
The structure for a NVTI Cache.
nvti_t * nvticache_get(const nvticache_t *, const gchar *)
Retrieve NVT Information from a cache for the given filename.
Definition: nvticache.c:103
nvtis_t * nvtis
Collection of NVT Information cached in memory.
Definition: nvticache.h:52
gchar * nvticache_get_src_by_oid(const nvticache_t *, const gchar *)
Get the src element of a NVT Information from the cache by OID.
Definition: nvticache.c:221
nvti_t * nvticache_get_by_oid(const nvticache_t *, const gchar *)
Get a NVT Information from the cache by OID.
Definition: nvticache.c:182
Protos and data structures for NVT Information data sets.
int nvticache_add(const nvticache_t *, nvti_t *, gchar *)
Add a NVT Information to the cache.
Definition: nvticache.c:160
The structure for a NVTI Cache.
Definition: nvticache.h:48
gchar * src_path
The directory where the primary source is located.
Definition: nvticache.h:51
GHashTable nvtis_t
A collection of information records corresponding to NVTs.
Definition: nvti.h:165