required_dummies.h 835 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_LIB_DUMMIES_H
  3. #define NETDATA_LIB_DUMMIES_H 1
  4. // callback required by fatal()
  5. void netdata_cleanup_and_exit(int ret)
  6. {
  7. exit(ret);
  8. }
  9. void send_statistics(const char *action, const char *action_result, const char *action_data)
  10. {
  11. (void)action;
  12. (void)action_result;
  13. (void)action_data;
  14. return;
  15. }
  16. // callbacks required by popen()
  17. void signals_block(void){};
  18. void signals_unblock(void){};
  19. void signals_reset(void){};
  20. // callback required by eval()
  21. int health_variable_lookup(const char *variable, uint32_t hash, struct rrdcalc *rc, calculated_number *result)
  22. {
  23. (void)variable;
  24. (void)hash;
  25. (void)rc;
  26. (void)result;
  27. return 0;
  28. };
  29. // required by get_system_cpus()
  30. char *netdata_configured_host_prefix = "";
  31. #endif // NETDATA_LIB_DUMMIES_H