OpenVAS Libraries  6.0+beta5
Data Structures | Macros | Functions
arglists.h File Reference

Go to the source code of this file.

Data Structures

struct  arglist
 
struct  name_cache
 Struct to cache names (keys) of arglist entries. More...
 

Macros

#define ARG_STRING   1
 
#define ARG_PTR   2
 
#define ARG_INT   3
 
#define ARG_ARGLIST   4
 
#define ARG_STRUCT   5
 

Functions

char * cache_inc (const char *name)
 
void cache_dec (const char *name)
 
void arg_add_value_at_head (struct arglist *arglst, const char *name, int type, long length, void *value)
 
void arg_add_value (struct arglist *, const char *, int, long, void *)
 
int arg_set_value (struct arglist *, const char *, long, void *)
 
int arg_set_type (struct arglist *, const char *, int)
 
void * arg_get_value (struct arglist *, const char *)
 
int arg_get_length (struct arglist *, const char *)
 
int arg_get_type (struct arglist *, const char *)
 
void arg_dump (struct arglist *, int)
 
void arg_dup (struct arglist *, struct arglist *)
 
void arg_free (struct arglist *)
 
void arg_free_all (struct arglist *)
 
void arg_free_name (char *)
 
void arg_del_value (struct arglist *, const char *name)
 
struct argliststr2arglist (char *str)
 

Macro Definition Documentation

#define ARG_ARGLIST   4
#define ARG_INT   3
#define ARG_PTR   2
#define ARG_STRING   1
#define ARG_STRUCT   5

Function Documentation

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

Like arg_add_value but inserts the new element near the beginning instead of the end. This is much faster for long lists but leads to a different order of the elements.

See Also
arg_add_value
void arg_del_value ( struct arglist ,
const char *  name 
)
void arg_dump ( struct arglist ,
int   
)
void arg_dup ( struct arglist ,
struct arglist  
)
void arg_free ( struct arglist )
void arg_free_all ( struct arglist )
void arg_free_name ( char *  )
int arg_get_length ( struct arglist ,
const char *   
)
int arg_get_type ( struct arglist ,
const char *   
)
void* arg_get_value ( struct arglist ,
const char *   
)
int arg_set_type ( struct arglist ,
const char *  ,
int   
)
int arg_set_value ( struct arglist ,
const char *  ,
long  ,
void *   
)
void cache_dec ( const char *  name)
char* cache_inc ( const char *  name)
struct arglist* str2arglist ( char *  str)