required_dummies.h 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef UNIT_TESTING
  21. // callback required by eval()
  22. int health_variable_lookup(STRING *variable, struct rrdcalc *rc, NETDATA_DOUBLE *result)
  23. {
  24. (void)variable;
  25. (void)rc;
  26. (void)result;
  27. return 0;
  28. };
  29. #endif
  30. void rrdset_thread_rda_free(void){};
  31. void sender_thread_buffer_free(void){};
  32. void query_target_free(void){};
  33. void service_exits(void){};
  34. // required by get_system_cpus()
  35. char *netdata_configured_host_prefix = "";
  36. #endif // NETDATA_LIB_DUMMIES_H