static_threads_macos.c 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "common.h"
  3. void *macos_main(void *ptr);
  4. void *timex_main(void *ptr);
  5. static const struct netdata_static_thread static_threads_macos[] = {
  6. {
  7. .name = "P[timex]",
  8. .config_section = CONFIG_SECTION_PLUGINS,
  9. .config_name = "timex",
  10. .enabled = 1,
  11. .thread = NULL,
  12. .init_routine = NULL,
  13. .start_routine = timex_main
  14. },
  15. {
  16. .name = "P[macos]",
  17. .config_section = CONFIG_SECTION_PLUGINS,
  18. .config_name = "macos",
  19. .enabled = 1,
  20. .thread = NULL,
  21. .init_routine = NULL,
  22. .start_routine = macos_main,
  23. .env_name = NULL,
  24. .global_variable = NULL,
  25. },
  26. {NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL}
  27. };
  28. struct netdata_static_thread *static_threads_get() {
  29. return static_threads_concat(static_threads_common, static_threads_macos);
  30. }