OpenVAS Scanner 23.23.1
nasl_debug.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2003 Michel Arboi
3 * SPDX-FileCopyrightText: 2002-2003 Renaud Deraison
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
8#ifndef NASL_NASL_DEBUG_H
9#define NASL_NASL_DEBUG_H
10
11#include "nasl_lex_ctxt.h"
12
13void
14nasl_perror (lex_ctxt *, char *, ...);
15
16void
17nasl_trace (lex_ctxt *, char *, ...);
18
19int
21
22const char *
24
25void
26nasl_set_plugin_filename (const char *);
27
28void
29nasl_set_filename (const char *);
30
31void
32nasl_set_function_filename (const char *);
33
34const char *
35nasl_get_filename (const char *);
36
37void
38nasl_set_function_name (const char *);
39
40int
41nasl_get_include_order (const char *);
42
43const char *
45#endif
int nasl_trace_enabled(void)
Checks if the nasl_trace_fp is set.
Definition nasl_debug.c:155
void nasl_set_plugin_filename(const char *)
Set the current launched plugin filename.
Definition nasl_debug.c:47
void nasl_set_function_name(const char *)
Definition nasl_debug.c:67
const char * nasl_get_function_name(void)
Definition nasl_debug.c:76
const char * nasl_get_filename(const char *)
Definition nasl_debug.c:54
void nasl_set_function_filename(const char *)
Definition nasl_debug.c:93
void nasl_set_filename(const char *)
Definition nasl_debug.c:82
void nasl_perror(lex_ctxt *, char *,...)
Definition nasl_debug.c:105
void nasl_trace(lex_ctxt *, char *,...)
Prints debug message in printf fashion to nasl_trace_fp if it exists.
Definition nasl_debug.c:169
const char * nasl_get_plugin_filename(void)
Get the current launched plugin filename.
Definition nasl_debug.c:36
int nasl_get_include_order(const char *)
Definition nasl_grammar.tab.c:2812
struct struct_lex_ctxt lex_ctxt