OpenVAS Scanner 21.4.1
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
24void
25nasl_perror (lex_ctxt *, char *, ...);
26
27void
28nasl_trace (lex_ctxt *, char *, ...);
29
30int
32
33const char *
35
36void
37nasl_set_plugin_filename (const char *);
38
39void
40nasl_set_filename (const char *);
41
42void
43nasl_set_function_filename (const char *);
44
45const char *
46nasl_get_filename (const char *);
47
48void
49nasl_set_function_name (const char *);
50
51const char *
53#endif
int nasl_trace_enabled(void)
Checks if the nasl_trace_fp is set.
Definition: nasl_debug.c:171
void nasl_set_plugin_filename(const char *)
Set the current launched plugin filename.
Definition: nasl_debug.c:63
void nasl_set_function_name(const char *)
Definition: nasl_debug.c:83
const char * nasl_get_function_name(void)
Definition: nasl_debug.c:92
const char * nasl_get_filename(const char *)
Definition: nasl_debug.c:70
void nasl_set_function_filename(const char *)
Definition: nasl_debug.c:109
void nasl_set_filename(const char *)
Definition: nasl_debug.c:98
void nasl_perror(lex_ctxt *, char *,...)
Definition: nasl_debug.c:121
void nasl_trace(lex_ctxt *, char *,...)
Prints debug message in printf fashion to nasl_trace_fp if it exists.
Definition: nasl_debug.c:185
const char * nasl_get_plugin_filename(void)
Get the current launched plugin filename.
Definition: nasl_debug.c:52
Definition: nasl_lex_ctxt.h:34