OpenVAS Libraries
9.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
;
34
int
nb_unnamed_args
,
nb_named_args
;
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
st_nasl_func::flags
int flags
Definition:
nasl_func.h:33
st_nasl_func::block
void * block
Definition:
nasl_func.h:36
st_nasl_func
Definition:
nasl_func.h:30
st_nasl_func::func_name
char * func_name
Definition:
nasl_func.h:32
st_nasl_func::next_func
struct st_nasl_func * next_func
Definition:
nasl_func.h:38
st_nasl_func::args_names
char ** args_names
Definition:
nasl_func.h:35
st_nasl_func::nb_named_args
int nb_named_args
Definition:
nasl_func.h:34
st_nasl_func::nb_unnamed_args
int nb_unnamed_args
Definition:
nasl_func.h:34
free_func_chain
void free_func_chain(nasl_func *)
Definition:
nasl_func.c:375
nasl_func
struct st_nasl_func nasl_func
nasl
nasl_func.h
Generated on Tue Feb 26 2019 09:44:08 for OpenVAS Libraries by
1.8.14