diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-09 12:44:44 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-09 12:44:44 +0100 |
commit | 66b1997e0529bf3461982672c458b3c0c4f1d129 (patch) | |
tree | 1650d36bb89c385f7be23e514dcb5cd80297c8e0 /lib/output.h | |
parent | 8b8ce8a6055664b8db2156093fd6afa9cfa1c42f (diff) | |
parent | 6dbc84f93595be81aee4de4ac3122b942047c22d (diff) | |
download | monitoring-plugins-66b1997e0529bf3461982672c458b3c0c4f1d129.tar.gz |
Merge branch 'master' into refactor/check_dns
Diffstat (limited to 'lib/output.h')
-rw-r--r-- | lib/output.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/output.h b/lib/output.h index ffc36f53..2bdfa074 100644 --- a/lib/output.h +++ b/lib/output.h | |||
@@ -36,13 +36,18 @@ typedef enum output_format { | |||
36 | #define MP_FORMAT_DEFAULT MP_FORMAT_MULTI_LINE | 36 | #define MP_FORMAT_DEFAULT MP_FORMAT_MULTI_LINE |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * Format related functions | ||
40 | */ | ||
41 | void mp_set_format(mp_output_format format); | ||
42 | mp_output_format mp_get_format(void); | ||
43 | |||
44 | /* | ||
39 | * The main state object of a plugin. Exists only ONCE per plugin. | 45 | * The main state object of a plugin. Exists only ONCE per plugin. |
40 | * This is the "root" of a tree of singular checks. | 46 | * This is the "root" of a tree of singular checks. |
41 | * The final result is always derived from the children and the "worst" state | 47 | * The final result is always derived from the children and the "worst" state |
42 | * in the first layer of subchecks | 48 | * in the first layer of subchecks |
43 | */ | 49 | */ |
44 | typedef struct { | 50 | typedef struct { |
45 | mp_output_format format; // The output format | ||
46 | char *summary; // Overall summary, if not set a summary will be automatically generated | 51 | char *summary; // Overall summary, if not set a summary will be automatically generated |
47 | mp_subcheck_list *subchecks; | 52 | mp_subcheck_list *subchecks; |
48 | } mp_check; | 53 | } mp_check; |