0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-26 05:47:20 +00:00
netdata_netdata/collectors/diskspace.plugin/plugin_diskspace.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

34 lines
739 B
C

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