OpenVAS Scanner  7.0.1~git
nasl_debug.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_DEBUG_H__
20 #define NASL_DEBUG_H__
21 
22 #include "nasl_lex_ctxt.h"
23 
24 void
25 nasl_perror (lex_ctxt *, char *, ...);
26 
27 void
28 nasl_trace (lex_ctxt *, char *, ...);
29 
30 int
31 nasl_trace_enabled (void);
32 
33 const char *
35 
36 void
37 nasl_set_plugin_filename (const char *);
38 
39 void
40 nasl_set_filename (const char *);
41 
42 void
43 nasl_set_function_filename (const char *);
44 
45 const char *
46 nasl_get_filename (const char *);
47 
48 void
49 nasl_set_function_name (const char *);
50 
51 const char *
53 #endif
const char * nasl_get_plugin_filename(void)
Get the current launched plugin filename.
Definition: nasl_debug.c:52
void nasl_trace(lex_ctxt *, char *,...)
Prints debug message in printf fashion to nasl_trace_fp if it exists.
Definition: nasl_debug.c:184
void nasl_set_plugin_filename(const char *)
Set the current launched plugin filename.
Definition: nasl_debug.c:63
const char * nasl_get_filename(const char *)
Definition: nasl_debug.c:69
int nasl_trace_enabled(void)
Checks if the nasl_trace_fp is set.
Definition: nasl_debug.c:170
void nasl_set_function_filename(const char *)
Definition: nasl_debug.c:108
const char * nasl_get_function_name(void)
Definition: nasl_debug.c:91
void nasl_perror(lex_ctxt *, char *,...)
Definition: nasl_debug.c:120
void nasl_set_function_name(const char *)
Definition: nasl_debug.c:82
void nasl_set_filename(const char *)
Definition: nasl_debug.c:97