gchar * cache_path
The directory where the cache is located.
Definition: nvticache.h:50
The structure of a information record that corresponds to a NVT.
Definition: nvti.h:64
void nvticache_init(const gchar *, const gchar *)
Initializes the nvti cache.
Definition: nvticache.c:70
struct nvticache nvticache_t
The structure for a NVTI Cache.
nvti_t * nvticache_get(const gchar *)
Retrieve NVT Information from the nvt cache for the given filename.
Definition: nvticache.c:112
int nvticache_add(const nvti_t *, const char *)
Add a NVT Information to the cache.
Definition: nvticache.c:162
char * nvticache_get_src(const char *)
Get the full source filename of an OID.
Definition: nvticache.c:218
Protos and data structures for NVT Information data sets.
nvti_t * nvticache_get_by_oid_full(const char *)
Get a full NVTI from the cache by OID.
Definition: nvticache.c:188
GHashTable * nvtis
Collection of NVT Information cached in memory.
Definition: nvticache.h:52
int nvticache_initialized(void)
Return whether the nvt cache is initialized.
Definition: nvticache.c:58
const char * nvticache_get_filename(const char *)
Get the source filename of an OID without the NVT main directory path.
Definition: nvticache.c:238
void nvticache_free(void)
Free the nvti cache.
Definition: nvticache.c:88
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