blob: 80ed6e8dc639ec81021b1c4773d840b3a5defe8e [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001/***
2 * Copyright 2020 HAProxy Technologies
3 *
4 * This file is part of the HAProxy OpenTracing filter.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20#ifndef _OPENTRACING_CLI_H_
21#define _OPENTRACING_CLI_H_
22
23#define FLT_OT_CLI_CMD "flt-ot"
24
25#define FLT_OT_CLI_LOGGING_OFF "off"
26#define FLT_OT_CLI_LOGGING_ON "on"
27#define FLT_OT_CLI_LOGGING_NOLOGNORM "dontlog-normal"
28#define FLT_OT_CLI_LOGGING_STATE(a) ((a) & FLT_OT_LOGGING_ON) ? (((a) & FLT_OT_LOGGING_NOLOGNORM) ? "enabled, " FLT_OT_CLI_LOGGING_NOLOGNORM : "enabled") : "disabled"
29
30#define FLT_OT_CLI_MSG_CAT(a) ((a) == NULL) ? "" : (a), ((a) == NULL) ? "" : "\n"
31
32enum FLT_OT_LOGGING_enum {
33 FLT_OT_LOGGING_OFF = 0,
34 FLT_OT_LOGGING_ON = 1 << 0,
35 FLT_OT_LOGGING_NOLOGNORM = 1 << 1,
36};
37
38
39void flt_ot_cli_init(void);
40
41#endif /* _OPENTRACING_CLI_H_ */
42
43/*
44 * Local variables:
45 * c-indent-level: 8
46 * c-basic-offset: 8
47 * End:
48 *
49 * vi: noexpandtab shiftwidth=8 tabstop=8
50 */