summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-21 14:33:24 +0100
committerGitHub <noreply@github.com>2025-02-21 14:33:24 +0100
commit75658bd04d84d037dbcc9fafd9f7860555ac4836 (patch)
tree6b50ee39401c68a27757abac785c931bd82ae02d /plugins/utils.h
parentb38dec3e9b45efa6a6631acc38ada853e69fc547 (diff)
parent7c8c9d9b3e7bb6c29d82788d05d74e3f18f01aa5 (diff)
downloadmonitoring-plugins-75658bd04d84d037dbcc9fafd9f7860555ac4836.tar.gz
Merge pull request #2064 from RincewindsHat/feature/new_output_infraHEADmaster
Feature/new output infra
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index f939e337..029ae5a6 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -13,11 +13,11 @@ in order to resist overflow attacks. In addition, a few functions are
13provided to standardize version and error reporting across the entire 13provided to standardize version and error reporting across the entire
14suite of plugins. */ 14suite of plugins. */
15 15
16/* now some functions etc are being defined in ../lib/utils_base.c */ 16#include "../config.h"
17#include "utils_base.h"
18
19#include <stdbool.h> 17#include <stdbool.h>
20 18#include <stdint.h>
19#include <stdio.h>
20#include <time.h>
21 21
22#ifdef NP_EXTRA_OPTS 22#ifdef NP_EXTRA_OPTS
23/* Include extra-opts functions if compiled in */ 23/* Include extra-opts functions if compiled in */
@@ -78,9 +78,6 @@ char *strpcat (char *, const char *, const char *);
78int xvasprintf (char **strp, const char *fmt, va_list ap); 78int xvasprintf (char **strp, const char *fmt, va_list ap);
79int xasprintf (char **strp, const char *fmt, ...); 79int xasprintf (char **strp, const char *fmt, ...);
80 80
81int max_state (int a, int b);
82int max_state_alt (int a, int b);
83
84void usage (const char *) __attribute__((noreturn)); 81void usage (const char *) __attribute__((noreturn));
85void usage2(const char *, const char *) __attribute__((noreturn)); 82void usage2(const char *, const char *) __attribute__((noreturn));
86void usage3(const char *, int) __attribute__((noreturn)); 83void usage3(const char *, int) __attribute__((noreturn));
@@ -198,4 +195,8 @@ The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\
198copies of the plugins under the terms of the GNU General Public License.\n\ 195copies of the plugins under the terms of the GNU General Public License.\n\
199For more information about these matters, see the file named COPYING.\n") 196For more information about these matters, see the file named COPYING.\n")
200 197
198#define UT_OUTPUT_FORMAT _("\
199 --output-format=OUTPUT_FORMAT\n\
200 Select output format. Valid values: \"multi-line\", \"mp-test-json\"\n")
201
201#endif /* NP_UTILS_H */ 202#endif /* NP_UTILS_H */