master
c 42 lines 1.03 KB
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "common.h"
4
5 #include <AvailabilityMacros.h>
6
7 void macos_main(void *ptr);
8
9 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
10 void timex_main(void *ptr);
11 #endif
12
13 static const struct netdata_static_thread static_threads_macos[] = {
14 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
15 {
16 .name = "P[timex]",
17 .config_section = CONFIG_SECTION_PLUGINS,
18 .config_name = "timex",
19 .enabled = 1,
20 .thread = NULL,
21 .init_routine = NULL,
22 .start_routine = timex_main
23 },
24 #endif
25 {
26 .name = "P[macos]",
27 .config_section = CONFIG_SECTION_PLUGINS,
28 .config_name = "macos",
29 .enabled = 1,
30 .thread = NULL,
31 .init_routine = NULL,
32 .start_routine = macos_main,
33 .env_name = NULL,
34 .global_variable = NULL,
35 },
36
37 {NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL}
38 };
39
40 struct netdata_static_thread *static_threads_get() {
41 return static_threads_concat(static_threads_common, static_threads_macos);
42 }