monitoring-plugins/plugins/check_real.d/config.h
Lorenz Kästle 1eace3a997
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Spellcheck / codespell (push) Has been cancelled
Tests / Running unit and integrationt tests (push) Has been cancelled
Tests / Running rpm build test on almalinux:9 (push) Has been cancelled
Tests / Running rpm build test on fedora:latest (push) Has been cancelled
Tests / Running rpm build test on rockylinux:8 (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running unit and integrationt tests (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running rpm build test on fedora:rawhide (push) Has been cancelled
Fix/compiler warnings (#2255)
* Fix compiler warning about comparing different signedness

* Fix compiler warning about constant strings
2026-04-09 14:54:08 +02:00

42 lines
707 B
C

#pragma once
#include "../../config.h"
#include "output.h"
#include "thresholds.h"
#include <stddef.h>
enum {
PORT = 554
};
const char *default_expect = "RTSP/1.";
typedef struct {
char *server_address;
char *host_name;
int server_port;
char *server_url;
const char *server_expect;
mp_thresholds time_thresholds;
bool output_format_is_set;
mp_output_format output_format;
} check_real_config;
check_real_config check_real_config_init() {
check_real_config tmp = {
.server_address = NULL,
.host_name = NULL,
.server_port = PORT,
.server_url = NULL,
.server_expect = default_expect,
.time_thresholds = mp_thresholds_init(),
.output_format_is_set = false,
};
return tmp;
}