0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 17:48:37 +00:00
netdata_netdata/collectors/tc.plugin/plugin_tc.h
vkalintiris b8cd2bdc50
Remove unecessary relative paths when including headers. ()
Currently, we add the repository's top-level dir in the compiler's
header search path. This means that code in every top-level directory
within the repo can include headers sibling top-level directories.

This patch makes header inclusion consistent when it comes to files
that are included from sibling top-level directories within the repo.
2021-05-24 17:44:50 +03:00

31 lines
625 B
C

// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_PLUGIN_TC_H
#define NETDATA_PLUGIN_TC_H 1
#include "daemon/common.h"
#if (TARGET_OS == OS_LINUX)
#define NETDATA_PLUGIN_HOOK_LINUX_TC \
{ \
.name = "PLUGIN[tc]", \
.config_section = CONFIG_SECTION_PLUGINS, \
.config_name = "tc", \
.enabled = 1, \
.thread = NULL, \
.init_routine = NULL, \
.start_routine = tc_main \
},
extern void *tc_main(void *ptr);
#else // (TARGET_OS == OS_LINUX)
#define NETDATA_PLUGIN_HOOK_LINUX_TC
#endif // (TARGET_OS == OS_LINUX)
#endif /* NETDATA_PLUGIN_TC_H */