OpenVAS Scanner 23.40.3
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 * f)

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}
char * func_name
Definition nasl_func.h:16

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 * name)

Definition at line 555 of file nasl_init.c.

556{
557 size_t i;
558
559 if (!name)
560 return NULL;
561
562 for (i = 0; i < sizeof (libfuncs) / sizeof (libfuncs[0]) - 1; i++)
563 {
564 if (!strcmp (name, libfuncs[i].name))
565 return (nasl_func *) &libfuncs[i];
566 }
567 return NULL;
568}
struct st_nasl_func nasl_func
static init_func libfuncs[]
Definition nasl_init.c:60
const char * name
Definition nasl_init.c:440

References libfuncs, and name.

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

Here is the caller graph for this function: