OpenVAS Libraries  9.0.1
Data Structures | Macros | Functions
arglists.c File Reference
#include <string.h>
#include <stdlib.h>
#include <glib.h>
#include "arglists.h"
#include "openvas_logging.h"

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)
 

Macro Definition Documentation

◆ HASH_MAX

#define HASH_MAX   2713

Function Documentation

◆ arg_add_value()

void arg_add_value ( struct arglist arglst,
const char *  name,
int  type,
void *  value 
)

◆ arg_del_value()

void arg_del_value ( struct arglist args,
const char *  name 
)

◆ arg_dump()

void arg_dump ( struct arglist args,
int  level 
)

◆ arg_free()

void arg_free ( struct arglist arg)

◆ arg_free_all()

void arg_free_all ( struct arglist arg)

◆ arg_get_type()

int arg_get_type ( struct arglist args,
const char *  name 
)

◆ arg_get_value()

void* arg_get_value ( struct arglist args,
const char *  name 
)

◆ arg_get_value_int()

int arg_get_value_int ( struct arglist args,
const char *  name 
)

◆ arg_prepend_value()

void arg_prepend_value ( struct arglist **  list,
const char *  name,
int  type,
void *  value 
)

◆ arg_set_value()

int arg_set_value ( struct arglist arglst,
const char *  name,
void *  value 
)