OpenVAS Scanner  22.7.9
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 266 of file nasl_func.c.

267 {
268  if (!f)
269  return;
270 
271  g_free (f->func_name);
272  g_free (f);
273 }

References st_nasl_func::func_name.

Referenced by init_empty_lex_ctxt().

Here is the caller graph for this function:

◆ func_is_internal()

nasl_func* func_is_internal ( const char *  )

Definition at line 526 of file nasl_init.c.

527 {
528  size_t i;
529 
530  if (!name)
531  return NULL;
532 
533  for (i = 0; i < sizeof (libfuncs) / sizeof (libfuncs[0]) - 1; i++)
534  {
535  if (!strcmp (name, libfuncs[i].name))
536  return (nasl_func *) &libfuncs[i];
537  }
538  return NULL;
539 }

References libfuncs, and name.

Referenced by get_func(), nasl_func_call(), and nasl_lint_call().

Here is the caller graph for this function:
libfuncs
static init_func libfuncs[]
Definition: nasl_init.c:58
st_nasl_func
Definition: nasl_func.h:15
name
const char * name
Definition: nasl_init.c:411