OpenVAS Libraries  9.0.3
nasl_debug.h
Go to the documentation of this file.
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2,
7  * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef NASL_DEBUG_H__
20 #define NASL_DEBUG_H__
21 
22 void nasl_perror (lex_ctxt *, char *, ...);
23 void nasl_trace (lex_ctxt *, char *, ...);
24 int nasl_trace_enabled (void);
25 
26 void
27 nasl_set_filename (const char *);
28 
29 void
30 nasl_set_function_filename (const char *);
31 
32 const char *
33 nasl_get_filename (const char *);
34 
35 void
36 nasl_set_function_name (const char *);
37 
38 const char *
40 #endif
nasl_set_function_filename
void nasl_set_function_filename(const char *)
Definition: nasl_debug.c:82
nasl_set_filename
void nasl_set_filename(const char *)
Definition: nasl_debug.c:71
nasl_perror
void nasl_perror(lex_ctxt *, char *,...)
Definition: nasl_debug.c:94
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:165
nasl_set_function_name
void nasl_set_function_name(const char *)
Definition: nasl_debug.c:56
struct_lex_ctxt
Definition: nasl_lex_ctxt.h:32
nasl_get_function_name
const char * nasl_get_function_name(void)
Definition: nasl_debug.c:65
nasl_trace_enabled
int nasl_trace_enabled(void)
Checks if the nasl_trace_fp is set.
Definition: nasl_debug.c:151
nasl_get_filename
const char * nasl_get_filename(const char *)
Definition: nasl_debug.c:43