From f07f96c3cfaeb30f95eb1898d6cc58b200e70831 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 15 Sep 2025 12:40:24 +0200 Subject: check_apt: implement new output --- plugins/check_apt.d/config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/check_apt.d/config.h') diff --git a/plugins/check_apt.d/config.h b/plugins/check_apt.d/config.h index 7355937b..e4d622f1 100644 --- a/plugins/check_apt.d/config.h +++ b/plugins/check_apt.d/config.h @@ -2,6 +2,7 @@ #include "../../config.h" #include +#include "../lib/output.h" /* some constants */ typedef enum { @@ -24,6 +25,9 @@ typedef struct { char *do_exclude; /* regexp to only exclude certain packages */ char *do_critical; /* regexp specifying critical packages */ char *input_filename; /* input filename for testing */ + + bool output_format_is_set; + mp_output_format output_format; } check_apt_config; check_apt_config check_apt_config_init() { @@ -36,6 +40,7 @@ check_apt_config check_apt_config_init() { .do_include = NULL, .do_exclude = NULL, .do_critical = NULL, - .input_filename = NULL}; + .input_filename = NULL, + .output_format_is_set = false}; return tmp; } -- cgit v1.2.3-74-g34f1