summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_time.d/config.h
blob: 99dabbbdc0f3c6d2499ddf4738e7f7df2551636f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "../../config.h"
#include "thresholds.h"
#include <stddef.h>

typedef struct {
	char *server_address;
	char *port;

	bool quiet;
	int time_offset;

	thresholds *offset_thresholds;
} check_ntp_time_config;

check_ntp_time_config check_ntp_time_config_init() {
	check_ntp_time_config tmp = {
		.server_address = NULL,
		.port = "123",

		.quiet = false,
		.time_offset = 0,

		.offset_thresholds = NULL,
	};
	return tmp;
}