OpenVAS Scanner  22.7.9
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 
13 void
14 nasl_perror (lex_ctxt *, char *, ...);
15 
16 void
17 nasl_trace (lex_ctxt *, char *, ...);
18 
19 int
20 nasl_trace_enabled (void);
21 
22 const char *
24 
25 void
26 nasl_set_plugin_filename (const char *);
27 
28 void
29 nasl_set_filename (const char *);
30 
31 void
32 nasl_set_function_filename (const char *);
33 
34 const char *
35 nasl_get_filename (const char *);
36 
37 void
38 nasl_set_function_name (const char *);
39 
40 int
41 nasl_get_include_order (const char *);
42 
43 const char *
45 #endif
nasl_set_function_filename
void nasl_set_function_filename(const char *)
Definition: nasl_debug.c:99
nasl_set_filename
void nasl_set_filename(const char *)
Definition: nasl_debug.c:88
nasl_perror
void nasl_perror(lex_ctxt *, char *,...)
Definition: nasl_debug.c:111
nasl_get_include_order
int nasl_get_include_order(const char *)
Definition: nasl_grammar.tab.c:2815
nasl_set_plugin_filename
void nasl_set_plugin_filename(const char *)
Set the current launched plugin filename.
Definition: nasl_debug.c:53
nasl_lex_ctxt.h
nasl_trace
void nasl_trace(lex_ctxt *, char *,...)
Prints debug message in printf fashion to nasl_trace_fp if it exists.
Definition: nasl_debug.c:175
nasl_get_plugin_filename
const char * nasl_get_plugin_filename(void)
Get the current launched plugin filename.
Definition: nasl_debug.c:42
nasl_set_function_name
void nasl_set_function_name(const char *)
Definition: nasl_debug.c:73
struct_lex_ctxt
Definition: nasl_lex_ctxt.h:23
nasl_get_function_name
const char * nasl_get_function_name(void)
Definition: nasl_debug.c:82
nasl_trace_enabled
int nasl_trace_enabled(void)
Checks if the nasl_trace_fp is set.
Definition: nasl_debug.c:161
nasl_get_filename
const char * nasl_get_filename(const char *)
Definition: nasl_debug.c:60