summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_real.d')
-rw-r--r--plugins/check_real.d/config.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/plugins/check_real.d/config.h b/plugins/check_real.d/config.h
new file mode 100644
index 00000000..2d99ad49
--- /dev/null
+++ b/plugins/check_real.d/config.h
@@ -0,0 +1,42 @@
1#pragma once
2
3#include "../../config.h"
4#include "output.h"
5#include "thresholds.h"
6#include <stddef.h>
7
8enum {
9 PORT = 554
10};
11
12const char *default_expect = "RTSP/1.";
13
14typedef struct {
15 char *server_address;
16 char *host_name;
17 int server_port;
18 char *server_url;
19
20 char *server_expect;
21
22 mp_thresholds time_thresholds;
23
24 bool output_format_is_set;
25 mp_output_format output_format;
26} check_real_config;
27
28check_real_config check_real_config_init() {
29 check_real_config tmp = {
30 .server_address = NULL,
31 .host_name = NULL,
32 .server_port = PORT,
33 .server_url = NULL,
34
35 .server_expect = default_expect,
36
37 .time_thresholds = mp_thresholds_init(),
38
39 .output_format_is_set = false,
40 };
41 return tmp;
42}