From 6ac236c1ef06ef17541d3919aed2a008aabaa7f4 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 12 Mar 2025 22:01:46 +0100 Subject: Refactor check_users --- plugins/check_users.d/config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/check_users.d/config.h (limited to 'plugins/check_users.d/config.h') diff --git a/plugins/check_users.d/config.h b/plugins/check_users.d/config.h new file mode 100644 index 00000000..26d3ee70 --- /dev/null +++ b/plugins/check_users.d/config.h @@ -0,0 +1,20 @@ +#pragma once + +#include "output.h" +#include "thresholds.h" + +typedef struct check_users_config { + mp_thresholds thresholds; + + bool output_format_is_set; + mp_output_format output_format; +} check_users_config; + +check_users_config check_users_config_init() { + check_users_config tmp = { + .thresholds = mp_thresholds_init(), + + .output_format_is_set = false, + }; + return tmp; +} -- cgit v1.2.3-74-g34f1