OpenVAS Scanner
7.0.1~git
nasl_global_ctxt.h
Go to the documentation of this file.
1
/* Based on work Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
2
*
3
* SPDX-License-Identifier: GPL-2.0-only
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* version 2 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 St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef _NASL_CTX_H
20
#define _NASL_CTX_H
21
22
/* for FILE */
23
#include <gvm/util/kb.h>
24
#include <stdio.h>
25
26
typedef
struct
27
{
28
int
line_nb
;
29
int
always_signed
;
30
int
index
;
31
tree_cell
*
tree
;
32
char
*
buffer
;
33
kb_t
kb
;
34
}
naslctxt
;
35
36
int
37
init_nasl_ctx
(
naslctxt
*,
const
char
*);
38
39
void
40
nasl_clean_ctx
(
naslctxt
*);
41
42
#endif
naslctxt
Definition:
nasl_global_ctxt.h:26
naslctxt::kb
kb_t kb
Definition:
nasl_global_ctxt.h:33
naslctxt::buffer
char * buffer
Definition:
nasl_global_ctxt.h:32
nasl_clean_ctx
void nasl_clean_ctx(naslctxt *)
Definition:
nasl_grammar.tab.c:2996
init_nasl_ctx
int init_nasl_ctx(naslctxt *, const char *)
Initialize a NASL context for a NASL file.
Definition:
nasl_grammar.tab.c:2894
TC
Definition:
nasl_tree.h:104
naslctxt::tree
tree_cell * tree
Definition:
nasl_global_ctxt.h:31
naslctxt::always_signed
int always_signed
Definition:
nasl_global_ctxt.h:29
naslctxt::index
int index
Definition:
nasl_global_ctxt.h:30
naslctxt::line_nb
int line_nb
Definition:
nasl_global_ctxt.h:28
nasl
nasl_global_ctxt.h
Generated on Sat May 23 2020 00:00:00 for OpenVAS Scanner by
1.8.17