diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-31 23:58:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 23:58:02 +0200 |
| commit | 4924bc877f714ec00ac8b02378d11f1508bbe8b4 (patch) | |
| tree | 276d2c7b746e593133cf1fc6ca548e10f71e1b5f /lib/output.h | |
| parent | 922d16ab2e44594d0ae4e4ac0c2b095cb1a1003f (diff) | |
| parent | d0647ec7e1500c0e6164ac9820a7d623582bdde2 (diff) | |
| download | monitoring-plugins-4924bc877f714ec00ac8b02378d11f1508bbe8b4.tar.gz | |
Merge pull request #2113 from RincewindsHat/refactor/check_disk
Refactor/check disk
Diffstat (limited to 'lib/output.h')
| -rw-r--r-- | lib/output.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/output.h b/lib/output.h index 2bdfa074..3bd91f90 100644 --- a/lib/output.h +++ b/lib/output.h | |||
| @@ -38,8 +38,18 @@ typedef enum output_format { | |||
| 38 | /* | 38 | /* |
| 39 | * Format related functions | 39 | * Format related functions |
| 40 | */ | 40 | */ |
| 41 | void mp_set_format(mp_output_format format); | 41 | void mp_set_format(mp_output_format format); |
| 42 | mp_output_format mp_get_format(void); | 42 | mp_output_format mp_get_format(void); |
| 43 | |||
| 44 | // Output detail level | ||
| 45 | |||
| 46 | typedef enum output_detail_level { | ||
| 47 | MP_DETAIL_ALL, | ||
| 48 | MP_DETAIL_NON_OK_ONLY, | ||
| 49 | } mp_output_detail_level; | ||
| 50 | |||
| 51 | void mp_set_level_of_detail(mp_output_detail_level level); | ||
| 52 | mp_output_detail_level mp_get_level_of_detail(void); | ||
| 43 | 53 | ||
| 44 | /* | 54 | /* |
| 45 | * The main state object of a plugin. Exists only ONCE per plugin. | 55 | * The main state object of a plugin. Exists only ONCE per plugin. |
| @@ -48,7 +58,7 @@ typedef enum output_format { | |||
| 48 | * in the first layer of subchecks | 58 | * in the first layer of subchecks |
| 49 | */ | 59 | */ |
| 50 | typedef struct { | 60 | typedef struct { |
| 51 | char *summary; // Overall summary, if not set a summary will be automatically generated | 61 | char *summary; // Overall summary, if not set a summary will be automatically generated |
| 52 | mp_subcheck_list *subchecks; | 62 | mp_subcheck_list *subchecks; |
| 53 | } mp_check; | 63 | } mp_check; |
| 54 | 64 | ||
