|
OpenVAS Libraries
9.0.3
|
#include <string.h>#include <stdlib.h>#include <glib.h>#include "arglists.h"#include "openvas_logging.h"
Go to the source code of this file.
Data Structures | |
| struct | name_cache |
| Struct to cache names (keys) of arglist entries. More... | |
Macros | |
| #define | HASH_MAX 2713 |
Functions | |
| void | arg_add_value (struct arglist *arglst, const char *name, int type, void *value) |
| void | arg_prepend_value (struct arglist **list, const char *name, int type, void *value) |
| int | arg_set_value (struct arglist *arglst, const char *name, void *value) |
| int | arg_get_value_int (struct arglist *args, const char *name) |
| void * | arg_get_value (struct arglist *args, const char *name) |
| int | arg_get_type (struct arglist *args, const char *name) |
| void | arg_dump (struct arglist *args, int level) |
| void | arg_free (struct arglist *arg) |
| void | arg_free_all (struct arglist *arg) |
| void | arg_del_value (struct arglist *args, const char *name) |
| #define HASH_MAX 2713 |
Definition at line 34 of file arglists.c.
| void arg_add_value | ( | struct arglist * | arglst, |
| const char * | name, | ||
| int | type, | ||
| void * | value | ||
| ) |
Definition at line 170 of file arglists.c.
References arglist::name, and arglist::next.
Referenced by exec_nasl_script(), init(), and nasl_start_denial().

| void arg_del_value | ( | struct arglist * | args, |
| const char * | name | ||
| ) |
Definition at line 358 of file arglists.c.
| void arg_dump | ( | struct arglist * | args, |
| int | level | ||
| ) |
Definition at line 280 of file arglists.c.
References ARG_ARGLIST, arg_dump(), ARG_INT, ARG_STRING, log_legacy_write(), arglist::name, arglist::next, arglist::type, and arglist::value.
Referenced by arg_dump(), and open_sock_option().


| void arg_free | ( | struct arglist * | arg | ) |
| void arg_free_all | ( | struct arglist * | arg | ) |
Definition at line 336 of file arglists.c.
References ARG_ARGLIST, arg_free_all(), ARG_STRING, arglist::next, arglist::type, and arglist::value.
Referenced by arg_free_all().


| int arg_get_type | ( | struct arglist * | args, |
| const char * | name | ||
| ) |
Definition at line 268 of file arglists.c.
| void* arg_get_value | ( | struct arglist * | args, |
| const char * | name | ||
| ) |
Definition at line 252 of file arglists.c.
Referenced by add_plugin_preference(), arg_get_value_int(), exec_nasl_script(), get_plugin_preference_file_content(), get_plugin_preference_file_size(), nasl_perror(), nasl_start_denial(), nasl_trace(), network_targets(), plug_get_host_fqdn(), plug_get_host_ip(), plug_get_hostname(), plug_get_kb(), plug_set_dep(), plug_set_tag(), plug_set_xref(), plugin_run_find_service(), plugin_run_openvas_tcp_scanner(), plugin_run_synscan(), scan_phase(), script_bugtraq_id(), script_category(), script_copyright(), script_cve_id(), script_exclude_keys(), script_family(), script_id(), script_mandatory_keys(), script_name(), script_oid(), script_require_keys(), script_require_ports(), script_require_udp_ports(), script_timeout(), and script_version().

| int arg_get_value_int | ( | struct arglist * | args, |
| const char * | name | ||
| ) |
Definition at line 246 of file arglists.c.
References arg_get_value(), and name.
Referenced by nasl_end_denial(), and plugin_run_find_service().


| void arg_prepend_value | ( | struct arglist ** | list, |
| const char * | name, | ||
| int | type, | ||
| void * | value | ||
| ) |
Definition at line 189 of file arglists.c.
| int arg_set_value | ( | struct arglist * | arglst, |
| const char * | name, | ||
| void * | value | ||
| ) |
Definition at line 225 of file arglists.c.
References name.
Referenced by exec_nasl_script(), and nasl_start_denial().
