OpenVAS Libraries  8.0.3
nasl_func.h
Go to the documentation of this file.
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2,
7  * as published by the Free Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef NASL_FUNC_H_INCLUDED
20 #define NASL_FUNC_H_INCLUDED
21 
22 #define FUNC_NAME_HASH 17
23 
24 #define FUNC_FLAG_COMPAT (1 << 0) /* Old interface */
25 #define FUNC_FLAG_INTERNAL (1 << 1) /* Internal C function */
26 
30 typedef struct st_nasl_func
31 {
32  char *func_name;
33  int flags;
35  char **args_names;
36  void *block; /* Can be pointer to a C function! */
37 
38  struct st_nasl_func *next_func; /* next function with same name hash */
39 } nasl_func;
40 
41 void free_func_chain (nasl_func *);
42 
43 #endif
int flags
Definition: nasl_func.h:33
void * block
Definition: nasl_func.h:36
Definition: nasl_func.h:30
char * func_name
Definition: nasl_func.h:32
struct st_nasl_func * next_func
Definition: nasl_func.h:38
char ** args_names
Definition: nasl_func.h:35
int nb_named_args
Definition: nasl_func.h:34
int nb_unnamed_args
Definition: nasl_func.h:34
void free_func_chain(nasl_func *)
Definition: nasl_func.c:366
struct st_nasl_func nasl_func