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
int nvticache_add(const nvti_t *nvti, const char *filename)
Add a NVT Information to the cache.
Definition: nvticache.c:162
struct nvticache nvticache_t
The structure for a NVTI Cache.
char * nvticache_get_src(const char *oid)
Get the full source filename of an OID.
Definition: nvticache.c:218
const char * nvticache_get_filename(const char *oid)
Get the source filename of an OID without the NVT main directory path.
Definition: nvticache.c:238
nvti_t * nvticache_get(const gchar *filename)
Retrieve NVT Information from the nvt cache for the given filename.
Definition: nvticache.c:112
nvti_t * nvticache_get_by_oid_full(const char *oid)
Get a full NVTI from the cache by OID.
Definition: nvticache.c:188
Protos and data structures for NVT Information data sets.
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
The structure for a NVTI Cache.
Definition: nvticache.h:48
void nvticache_free(void)
Free the nvti cache.
Definition: nvticache.c:88
gchar * src_path
The directory where the primary source is located.
Definition: nvticache.h:51
void nvticache_init(const gchar *cache_path, const gchar *src_path)
Initializes the nvti cache.
Definition: nvticache.c:70