OpenVAS Libraries  8.0.8
Data Structures | Macros | Functions | Variables
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

 if (arglst!=NULL)
 
int arg_get_value_int (struct arglist *args, const char *name)
 
else return (args->value)
 
 if (!args)
 
 while (args->next)
 
 while (pivot->next!=NULL)
 
 if (args==element)
 
 arg_free (element)
 

Variables

void struct arglistarglst = arglst->next
 
const char * name = cache_inc (name)
 
int type = type
 
void * value = value
 
arglst next = g_malloc0 (sizeof (struct arglist))
 
arglst hash = mkhash (arglst->name)
 
else return
 
void *struct arglistargs = arg_get (args, name)
 
return NULL
 
int level
 
void struct arglistarg
 
struct arglistpivot
 
struct arglistelement = NULL
 
struct arglist store
 
 else
 

Macro Definition Documentation

#define HASH_MAX   2713

Function Documentation

arg_free ( element  )
int arg_get_value_int ( struct arglist args,
const char *  name 
)
if ( arglst!  = NULL)
if ( args)
if ( args  = element)
else return ( args->  value)
while ( args->  next)
while ( pivot->next!  = NULL)

Variable Documentation

void struct arglist* arg
int struct arglist * arglst = arglst->next
void struct arglist * args = arg_get (args, name)
struct arglist* element = NULL
else
Initial value:
{
void *struct arglist * args
Definition: arglists.c:236
struct arglist * pivot
Definition: arglists.c:346
arglst hash = mkhash (arglst->name)
int level
const char * name = cache_inc (name)
element next = g_malloc0 (sizeof (struct arglist))
return NULL
pivot
Initial value:
{
int h = mkhash (name)
const char * name
Definition: arglists.c:172
else return
Initial value:
{
args = arg_get (args, name)
void *struct arglist * args
Definition: arglists.c:236
const char * name
Definition: arglists.c:172
struct arglist store
arglst type = type
void * value = value