main.h 824 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_MAIN_H
  3. #define NETDATA_MAIN_H 1
  4. #include "common.h"
  5. extern struct config netdata_config;
  6. /**
  7. * This struct contains information about command line options.
  8. */
  9. struct option_def {
  10. /** The option character */
  11. const char val;
  12. /** The name of the long option. */
  13. const char *description;
  14. /** Short description what the option does */
  15. /** Name of the argument displayed in SYNOPSIS */
  16. const char *arg_name;
  17. /** Default value if not set */
  18. const char *default_value;
  19. };
  20. extern void cancel_main_threads(void);
  21. extern int killpid(pid_t pid);
  22. extern void netdata_cleanup_and_exit(int ret) NORETURN;
  23. extern void send_statistics(const char *action, const char *action_result, const char *action_data);
  24. #endif /* NETDATA_MAIN_H */