blob: 5b482d05ba75637f4e0b9639d993409642716266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_LIB_DUMMIES_H
#define NETDATA_LIB_DUMMIES_H 1
// callback required by fatal()
void netdata_cleanup_and_exit(int ret)
{
exit(ret);
}
void send_statistics(const char *action, const char *action_result, const char *action_data)
{
(void)action;
(void)action_result;
(void)action_data;
return;
}
// callbacks required by popen()
void signals_block(void){};
void signals_unblock(void){};
void signals_reset(void){};
#ifndef UNIT_TESTING
// callback required by eval()
int health_variable_lookup(STRING *variable, struct rrdcalc *rc, NETDATA_DOUBLE *result)
{
(void)variable;
(void)rc;
(void)result;
return 0;
};
#endif
void rrdset_thread_rda_free(void){};
void sender_thread_buffer_free(void){};
// required by get_system_cpus()
char *netdata_configured_host_prefix = "";
#endif // NETDATA_LIB_DUMMIES_H
|