From 836b47cb7e99a977c5a23b059ca1d0b5065d310e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 24 Jul 2024 11:54:23 +0200 Subject: Merging upstream version 1.46.3. Signed-off-by: Daniel Baumann --- src/daemon/static_threads_windows.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/daemon/static_threads_windows.c (limited to 'src/daemon/static_threads_windows.c') diff --git a/src/daemon/static_threads_windows.c b/src/daemon/static_threads_windows.c new file mode 100644 index 000000000..57c47be0c --- /dev/null +++ b/src/daemon/static_threads_windows.c @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "common.h" + +void *win_plugin_main(void *ptr); + +static const struct netdata_static_thread static_threads_windows[] = { + { + .name = "P[windows]", + .config_section = CONFIG_SECTION_PLUGINS, + .config_name = "windows", + .enabled = 1, + .thread = NULL, + .init_routine = NULL, + .start_routine = win_plugin_main + }, + + // terminator + { + .name = NULL, + .config_section = NULL, + .config_name = NULL, + .env_name = NULL, + .enabled = 0, + .thread = NULL, + .init_routine = NULL, + .start_routine = NULL + } +}; + +struct netdata_static_thread *static_threads_get() { + return static_threads_concat(static_threads_common, static_threads_windows); +} -- cgit v1.2.3