OpenVAS Scanner  7.0.1~git
nasl_func.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  st_nasl_func
 

Typedefs

typedef struct st_nasl_func nasl_func
 

Functions

nasl_funcfunc_is_internal (const char *)
 
void free_func (nasl_func *)
 

Typedef Documentation

◆ nasl_func

typedef struct st_nasl_func nasl_func

Type for a built-in nasl function.

Function Documentation

◆ free_func()

void free_func ( nasl_func )

Definition at line 269 of file nasl_func.c.

References st_nasl_func::func_name.

Referenced by init_empty_lex_ctxt().

270 {
271  if (!f)
272  return;
273 
274  g_free (f->func_name);
275  g_free (f);
276 }
Here is the caller graph for this function:

◆ func_is_internal()

nasl_func* func_is_internal ( const char *  )

Definition at line 486 of file nasl_init.c.

References libfuncs, and name.

Referenced by get_func(), and nasl_func_call().

487 {
488  size_t i;
489 
490  if (!name)
491  return NULL;
492 
493  for (i = 0; i < sizeof (libfuncs) / sizeof (libfuncs[0]) - 1; i++)
494  {
495  if (!strcmp (name, libfuncs[i].name))
496  return (nasl_func *) &libfuncs[i];
497  }
498  return NULL;
499 }
const char * name
Definition: nasl_init.c:377
static init_func libfuncs[]
Definition: nasl_init.c:67
Here is the caller graph for this function: