Greenbone Vulnerability Management Libraries
11.0.1
|
KB interface. Functions provided by an implementation. All functions have to be provided, there is no default/fallback. These functions should be called via the corresponding static inline wrappers below. See the wrappers for the documentation. More...
#include <kb.h>
Data Fields | |
int(* | kb_new )(kb_t *, const char *) |
int(* | kb_delete )(kb_t) |
kb_t(* | kb_find )(const char *, const char *) |
kb_t(* | kb_direct_conn )(const char *, const int) |
struct kb_item *(* | kb_get_single )(kb_t, const char *, enum kb_item_type) |
char *(* | kb_get_str )(kb_t, const char *) |
int(* | kb_get_int )(kb_t, const char *) |
char *(* | kb_get_nvt )(kb_t, const char *, enum kb_nvt_pos) |
nvti_t *(* | kb_get_nvt_all )(kb_t, const char *) |
GSList *(* | kb_get_nvt_oids )(kb_t) |
int(* | kb_push_str )(kb_t, const char *, const char *) |
char *(* | kb_pop_str )(kb_t, const char *) |
struct kb_item *(* | kb_get_all )(kb_t, const char *) |
struct kb_item *(* | kb_get_pattern )(kb_t, const char *) |
size_t(* | kb_count )(kb_t, const char *) |
int(* | kb_add_str )(kb_t, const char *, const char *, size_t) |
int(* | kb_add_str_unique )(kb_t, const char *, const char *, size_t) |
int(* | kb_set_str )(kb_t, const char *, const char *, size_t) |
int(* | kb_add_int )(kb_t, const char *, int) |
int(* | kb_add_int_unique )(kb_t, const char *, int) |
int(* | kb_set_int )(kb_t, const char *, int) |
int(* | kb_add_nvt )(kb_t, const nvti_t *, const char *) |
int(* | kb_del_items )(kb_t, const char *) |
int(* | kb_save )(kb_t) |
int(* | kb_lnk_reset )(kb_t) |
int(* | kb_flush )(kb_t, const char *) |
int(* | kb_get_kb_index )(kb_t) |
KB interface. Functions provided by an implementation. All functions have to be provided, there is no default/fallback. These functions should be called via the corresponding static inline wrappers below. See the wrappers for the documentation.
int(* kb_operations::kb_add_int) (kb_t, const char *, int) |
Function provided by an implementation to insert (append) a new entry under a given name.
Definition at line 196 of file kb.h.
Referenced by kb_item_add_int().
int(* kb_operations::kb_add_int_unique) (kb_t, const char *, int) |
Function provided by an implementation to insert (append) a new unique entry under a given name.
Definition at line 201 of file kb.h.
Referenced by kb_item_add_int_unique().
Function provided by an implementation to insert a new nvt.
Definition at line 211 of file kb.h.
Referenced by kb_nvt_add().
int(* kb_operations::kb_add_str) (kb_t, const char *, const char *, size_t) |
Function provided by an implementation to insert (append) a new entry under a given name.
Definition at line 181 of file kb.h.
Referenced by kb_item_add_str().
int(* kb_operations::kb_add_str_unique) (kb_t, const char *, const char *, size_t) |
Function provided by an implementation to insert (append) a new unique entry under a given name.
Definition at line 186 of file kb.h.
Referenced by kb_item_add_str_unique().
size_t(* kb_operations::kb_count) (kb_t, const char *) |
Function provided by an implementation to count all items stored under a given pattern.
Definition at line 176 of file kb.h.
Referenced by kb_item_count().
int(* kb_operations::kb_del_items) (kb_t, const char *) |
Function provided by an implementation to delete all entries under a given name.
Definition at line 216 of file kb.h.
Referenced by kb_del_items().
int(* kb_operations::kb_delete) (kb_t) |
kb_t(* kb_operations::kb_direct_conn) (const char *, const int) |
kb_t(* kb_operations::kb_find) (const char *, const char *) |
int(* kb_operations::kb_flush) (kb_t, const char *) |
Function provided by an implementation to get all items stored under a given name.
Definition at line 166 of file kb.h.
Referenced by kb_item_get_all().
int(* kb_operations::kb_get_int) (kb_t, const char *) |
Function provided by an implementation to get single kb int item.
Definition at line 141 of file kb.h.
Referenced by kb_item_get_int().
int(* kb_operations::kb_get_kb_index) (kb_t) |
char*(* kb_operations::kb_get_nvt) (kb_t, const char *, enum kb_nvt_pos) |
Function provided by an implementation to get field of NVT.
Definition at line 145 of file kb.h.
Referenced by kb_nvt_get().
Function provided by an implementation to get a full NVT.
Definition at line 149 of file kb.h.
Referenced by kb_nvt_get_all().
GSList*(* kb_operations::kb_get_nvt_oids) (kb_t) |
Function provided by an implementation to get list of OIDs.
Definition at line 153 of file kb.h.
Referenced by kb_nvt_get_oids().
Function provided by an implementation to get all items stored under a given pattern.
Definition at line 171 of file kb.h.
Referenced by kb_item_get_pattern().
struct kb_item*(* kb_operations::kb_get_single) (kb_t, const char *, enum kb_item_type) |
Function provided by an implementation to get a single kb element.
Definition at line 133 of file kb.h.
Referenced by kb_item_get_single().
char*(* kb_operations::kb_get_str) (kb_t, const char *) |
Function provided by an implementation to get single kb str item.
Definition at line 137 of file kb.h.
Referenced by kb_item_get_str().
int(* kb_operations::kb_lnk_reset) (kb_t) |
int(* kb_operations::kb_new) (kb_t *, const char *) |
char*(* kb_operations::kb_pop_str) (kb_t, const char *) |
Function provided by an implementation to pop a str under a key.
Definition at line 161 of file kb.h.
Referenced by kb_item_pop_str().
int(* kb_operations::kb_push_str) (kb_t, const char *, const char *) |
Function provided by an implementation to push a new value under a key.
Definition at line 157 of file kb.h.
Referenced by kb_item_push_str().
int(* kb_operations::kb_save) (kb_t) |
int(* kb_operations::kb_set_int) (kb_t, const char *, int) |
Function provided by an implementation to get (replace) a new entry under a given name.
Definition at line 206 of file kb.h.
Referenced by kb_item_set_int().
int(* kb_operations::kb_set_str) (kb_t, const char *, const char *, size_t) |
Function provided by an implementation to get (replace) a new entry under a given name.
Definition at line 191 of file kb.h.
Referenced by kb_item_set_str().