OpenVPN
src
tapctl
error.c
Go to the documentation of this file.
1
/*
2
* error -- OpenVPN compatible error reporting API
3
* https://community.openvpn.net/openvpn/wiki/Tapctl
4
*
5
* Copyright (C) 2002-2025 OpenVPN Inc <sales@openvpn.net>
6
* Copyright (C) 2018-2025 Simon Rozman <simon@rozman.si>
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License version 2
10
* as published by the Free Software Foundation.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* with this program; if not, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#include "
error.h
"
22
23
24
/* Globals */
25
unsigned
int
x_debug_level
;
/* GLOBAL */
26
27
28
void
29
x_msg
(
const
unsigned
int
flags,
const
char
*format, ...)
30
{
31
va_list arglist;
32
va_start(arglist, format);
33
x_msg_va
(flags, format, arglist);
34
va_end(arglist);
35
}
x_msg
void x_msg(const msglvl_t flags, const char *format,...)
Definition
error.c:215
x_debug_level
msglvl_t x_debug_level
Definition
error.c:51
x_msg_va
void x_msg_va(const msglvl_t flags, const char *format, va_list arglist)
Definition
error.c:236
error.h
Generated by
1.9.8