OpenVAS Scanner 21.4.1
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
26typedef struct
27{
30 int index;
32 char *buffer;
33 kb_t kb;
34} naslctxt;
35
36int
37init_nasl_ctx (naslctxt *, const char *);
38
39void
41
42#endif
int init_nasl_ctx(naslctxt *, const char *)
Initialize a NASL context for a NASL file.
Definition: nasl_grammar.tab.c:2666
void nasl_clean_ctx(naslctxt *)
Definition: nasl_grammar.tab.c:2768
Definition: nasl_tree.h:105
Definition: nasl_global_ctxt.h:27
int index
Definition: nasl_global_ctxt.h:30
tree_cell * tree
Definition: nasl_global_ctxt.h:31
int line_nb
Definition: nasl_global_ctxt.h:28
char * buffer
Definition: nasl_global_ctxt.h:32
kb_t kb
Definition: nasl_global_ctxt.h:33
int always_signed
Definition: nasl_global_ctxt.h:29