@cryptotaxi247 / netdata-1 / commits / b8cd2bdc5

Remove unecessary relative paths when including headers. (#11124)

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.

vkalintiris committed May 24, 2021 at 17:44 UTC b8cd2bdc50fd8d10eb38c173b97b5918012271e7
69 files changed +84 -84
aclk/aclk.h
+1 -1
@@ -6,7 +6,7 @@ typedef struct aclk_rrdhost_state {
6 char *claimed_id; // Claimed ID if host has one otherwise NULL
7 } aclk_rrdhost_state;
8
9 -#include "../daemon/common.h"
9 +#include "daemon/common.h"
10 #include "aclk_util.h"
11
12 // version for aclk legacy (old cloud arch)
aclk/aclk_otp.c
+2 -2
@@ -3,9 +3,9 @@
3
4 #include "aclk_otp.h"
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 -#include "../mqtt_websockets/c-rbuf/include/ringbuffer.h"
8 +#include "mqtt_websockets/c-rbuf/include/ringbuffer.h"
9
10 // CentOS 7 has older version that doesn't define this
11 // same goes for MacOS
aclk/aclk_otp.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef ACLK_OTP_H
4 #define ACLK_OTP_H
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #include "https_client.h"
9
aclk/aclk_query_queue.h
+1 -1
@@ -4,7 +4,7 @@
4 #define NETDATA_ACLK_QUERY_QUEUE_H
5
6 #include "libnetdata/libnetdata.h"
7 -#include "../daemon/common.h"
7 +#include "daemon/common.h"
8
9 typedef enum {
10 UNKNOWN,
aclk/aclk_rx_msgs.h
+1 -1
@@ -5,7 +5,7 @@
5 #ifndef ACLK_RX_MSGS_H
6 #define ACLK_RX_MSGS_H
7
8 -#include "../daemon/common.h"
8 +#include "daemon/common.h"
9 #include "libnetdata/libnetdata.h"
10
11 int aclk_handle_cloud_message(char *payload);
aclk/aclk_stats.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ACLK_STATS_H
4 #define NETDATA_ACLK_STATS_H
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "libnetdata/libnetdata.h"
8
9 #define ACLK_STATS_THREAD_NAME "ACLK_Stats"
aclk/aclk_tx_msgs.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "aclk_tx_msgs.h"
4 -#include "../daemon/common.h"
4 +#include "daemon/common.h"
5 #include "aclk_util.h"
6 #include "aclk_stats.h"
7
aclk/aclk_tx_msgs.h
+1 -1
@@ -4,7 +4,7 @@
4
5 #include <json-c/json.h>
6 #include "libnetdata/libnetdata.h"
7 -#include "../daemon/common.h"
7 +#include "daemon/common.h"
8 #include "mqtt_wss_client.h"
9
10 void aclk_send_info_metadata(mqtt_wss_client client, int metadata_submitted, RRDHOST *host);
aclk/aclk_util.c
+1 -1
@@ -4,7 +4,7 @@
4
5 #include <stdio.h>
6
7 -#include "../daemon/common.h"
7 +#include "daemon/common.h"
8
9 // CentOS 7 has older version that doesn't define this
10 // same goes for MacOS
aclk/https_client.c
+1 -1
@@ -4,7 +4,7 @@
4
5 #include "https_client.h"
6
7 -#include "../mqtt_websockets/c-rbuf/include/ringbuffer.h"
7 +#include "mqtt_websockets/c-rbuf/include/ringbuffer.h"
8
9 enum http_parse_state {
10 HTTP_PARSE_INITIAL = 0,
aclk/legacy/aclk_common.c
+1 -1
@@ -1,6 +1,6 @@
1 #include "aclk_common.h"
2
3 -#include "../../daemon/common.h"
3 +#include "daemon/common.h"
4
5 #ifdef ENABLE_ACLK
6 #include <libwebsockets.h>
aclk/legacy/aclk_common.h
+1 -1
@@ -2,7 +2,7 @@
2 #define ACLK_COMMON_H
3
4 #include "aclk_rrdhost_state.h"
5 -#include "../../daemon/common.h"
5 +#include "daemon/common.h"
6
7 extern netdata_mutex_t aclk_shared_state_mutex;
8 #define ACLK_SHARED_STATE_LOCK netdata_mutex_lock(&aclk_shared_state_mutex)
aclk/legacy/aclk_lws_https_client.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_LWS_HTTPS_CLIENT_H
4 #define NETDATA_LWS_HTTPS_CLIENT_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "libnetdata/libnetdata.h"
8
9 #define DATAMAXLEN 1024*16
aclk/legacy/aclk_lws_wss_client.c
+1 -1
@@ -3,7 +3,7 @@
3 #include "aclk_lws_wss_client.h"
4
5 #include "libnetdata/libnetdata.h"
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "aclk_common.h"
8 #include "aclk_stats.h"
9
aclk/legacy/aclk_rrdhost_state.h
+1 -1
@@ -1,7 +1,7 @@
1 #ifndef ACLK_RRDHOST_STATE_H
2 #define ACLK_RRDHOST_STATE_H
3
4 -#include "../../libnetdata/libnetdata.h"
4 +#include "libnetdata/libnetdata.h"
5
6 typedef enum aclk_cmd {
7 ACLK_CMD_CLOUD,
aclk/legacy/aclk_rx_msgs.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ACLK_RX_MSGS_H
4 #define NETDATA_ACLK_RX_MSGS_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "libnetdata/libnetdata.h"
8
9 int aclk_handle_cloud_message(char *payload);
aclk/legacy/aclk_stats.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ACLK_STATS_H
4 #define NETDATA_ACLK_STATS_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "libnetdata/libnetdata.h"
8 #include "aclk_common.h"
9
aclk/legacy/agent_cloud_link.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_AGENT_CLOUD_LINK_H
4 #define NETDATA_AGENT_CLOUD_LINK_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "mqtt.h"
8 #include "aclk_common.h"
9
aclk/legacy/mqtt.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include <libnetdata/json/json.h>
4 -#include "../../daemon/common.h"
4 +#include "daemon/common.h"
5 #include "mqtt.h"
6 #include "aclk_lws_wss_client.h"
7 #include "aclk_stats.h"
claim/claim.c
+3 -3
@@ -1,11 +1,11 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "claim.h"
4 -#include "../registry/registry_internals.h"
4 +#include "registry/registry_internals.h"
5 #ifndef ACLK_NG
6 -#include "../aclk/legacy/aclk_common.h"
6 +#include "aclk/legacy/aclk_common.h"
7 #else
8 -#include "../aclk/aclk.h"
8 +#include "aclk/aclk.h"
9 #endif
10
11 char *claiming_pending_arguments = NULL;
claim/claim.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_CLAIM_H
4 #define NETDATA_CLAIM_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 extern char *claiming_pending_arguments;
9 extern struct config cloud_config;
cli/cli.c
+2 -2
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "cli.h"
4 -#include "../libnetdata/required_dummies.h"
4 +#include "libnetdata/required_dummies.h"
5
6 static uv_pipe_t client_pipe;
7 static uv_write_t write_req;
@@ -198,4 +198,4 @@ int main(int argc, char **argv)
198 uv_close((uv_handle_t *)&client_pipe, NULL);
199
200 return exit_status;
201 -}
\ No newline at end of file
201 +}
cli/cli.h
+1 -1
@@ -3,6 +3,6 @@
3 #ifndef NETDATA_CLI_H
4 #define NETDATA_CLI_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #endif //NETDATA_CLI_H
collectors/all.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ALL_H
4 #define NETDATA_ALL_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 // netdata internal data collection plugins
9
collectors/apps.plugin/apps_plugin.c
+1 -1
@@ -6,7 +6,7 @@
6 * Released under GPL v3+
7 */
8
9 -#include "../../libnetdata/libnetdata.h"
9 +#include "libnetdata/libnetdata.h"
10
11 // ----------------------------------------------------------------------------
12
collectors/cgroups.plugin/sys_fs_cgroup.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_SYS_FS_CGROUP_H
4 #define NETDATA_SYS_FS_CGROUP_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #if (TARGET_OS == OS_LINUX)
9
collectors/checks.plugin/plugin_checks.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_CHECKS_H
4 #define NETDATA_PLUGIN_CHECKS_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #ifdef NETDATA_INTERNAL_CHECKS
9
collectors/cups.plugin/cups_plugin.c
+1 -1
@@ -6,7 +6,7 @@
6 * Released under GPL v3+
7 */
8
9 -#include "../../libnetdata/libnetdata.h"
9 +#include "libnetdata/libnetdata.h"
10 #include <cups/cups.h>
11 #include <limits.h>
12
collectors/diskspace.plugin/plugin_diskspace.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_PROC_DISKSPACE_H
4 #define NETDATA_PLUGIN_PROC_DISKSPACE_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8
9 #if (TARGET_OS == OS_LINUX)
collectors/freeipmi.plugin/freeipmi_plugin.c
+1 -1
@@ -15,7 +15,7 @@
15 * UCRL-CODE-222073
16 */
17
18 -#include "../../libnetdata/libnetdata.h"
18 +#include "libnetdata/libnetdata.h"
19
20 #include <stdio.h>
21 #include <stdlib.h>
collectors/idlejitter.plugin/plugin_idlejitter.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_IDLEJITTER_H
4 #define NETDATA_PLUGIN_IDLEJITTER_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define NETDATA_PLUGIN_HOOK_IDLEJITTER \
9 { \
collectors/macos.plugin/plugin_macos.h
+1 -1
@@ -4,7 +4,7 @@
4 #ifndef NETDATA_PLUGIN_MACOS_H
5 #define NETDATA_PLUGIN_MACOS_H 1
6
7 -#include "../../daemon/common.h"
7 +#include "daemon/common.h"
8
9 #if (TARGET_OS == OS_MACOS)
10
collectors/nfacct.plugin/plugin_nfacct.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../../libnetdata/libnetdata.h"
3 +#include "libnetdata/libnetdata.h"
4 #include <linux/netfilter/nfnetlink_conntrack.h>
5 #include <libmnl/libmnl.h>
6 #include <libnetfilter_acct/libnetfilter_acct.h>
collectors/perf.plugin/perf_plugin.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../../libnetdata/libnetdata.h"
3 +#include "libnetdata/libnetdata.h"
4
5 #include <linux/perf_event.h>
6
collectors/plugins.d/plugins_d.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGINS_D_H
4 #define NETDATA_PLUGINS_D_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define NETDATA_PLUGIN_HOOK_PLUGINSD \
9 { \
collectors/plugins.d/pluginsd_parser.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGINSD_PARSER_H
4 #define NETDATA_PLUGINSD_PARSER_H
5
6 -#include "../../parser/parser.h"
6 +#include "parser/parser.h"
7
8
9 typedef struct parser_user_object {
collectors/proc.plugin/plugin_proc.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_PROC_H
4 #define NETDATA_PLUGIN_PROC_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #if (TARGET_OS == OS_LINUX)
9
collectors/proc.plugin/zfs_common.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ZFS_COMMON_H
4 #define NETDATA_ZFS_COMMON_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define ZFS_FAMILY_SIZE "size"
9 #define ZFS_FAMILY_EFFICIENCY "efficiency"
collectors/statsd.plugin/statsd.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_STATSD_H
4 #define NETDATA_STATSD_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define STATSD_LISTEN_PORT 8125
9 #define STATSD_LISTEN_BACKLOG 4096
collectors/tc.plugin/plugin_tc.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_TC_H
4 #define NETDATA_PLUGIN_TC_H 1
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #if (TARGET_OS == OS_LINUX)
9
collectors/timex.plugin/plugin_timex.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_PLUGIN_TIMEX_H
4 #define NETDATA_PLUGIN_TIMEX_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #if (TARGET_OS == OS_LINUX)
9
collectors/xenstat.plugin/xenstat_plugin.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../../libnetdata/libnetdata.h"
3 +#include "libnetdata/libnetdata.h"
4
5 #include <xenstat.h>
6 #include <libxl.h>
daemon/analytics.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_ANALYTICS_H
4 #define NETDATA_ANALYTICS_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 /* Max number of seconds before the first META analytics is sent */
9 #define ANALYTICS_INIT_SLEEP_SEC 120
daemon/commands.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "common.h"
4 -#include "../database/engine/rrdenginelib.h"
4 +#include "database/engine/rrdenginelib.h"
5
6 static uv_thread_t thread;
7 static uv_loop_t* loop;
daemon/common.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_COMMON_H
4 #define NETDATA_COMMON_H 1
5
6 -#include "../libnetdata/libnetdata.h"
6 +#include "libnetdata/libnetdata.h"
7
8 // ----------------------------------------------------------------------------
9 // shortcuts for the default netdata configuration
database/engine/metadata_log/metalogpluginsd.h
+3 -3
@@ -3,9 +3,9 @@
3 #ifndef NETDATA_METALOGPLUGINSD_H
4 #define NETDATA_METALOGPLUGINSD_H
5
6 -#include "../../../collectors/plugins.d/pluginsd_parser.h"
7 -#include "../../../collectors/plugins.d/plugins_d.h"
8 -#include "../../../parser/parser.h"
6 +#include "collectors/plugins.d/pluginsd_parser.h"
7 +#include "collectors/plugins.d/plugins_d.h"
8 +#include "parser/parser.h"
9
10 struct metalog_pluginsd_state {
11 struct metalog_instance *ctx;
database/engine/rrdengine.h
+1 -1
@@ -11,7 +11,7 @@
11 #include <Judy.h>
12 #include <openssl/sha.h>
13 #include <openssl/evp.h>
14 -#include "../../daemon/common.h"
14 +#include "daemon/common.h"
15 #include "../rrd.h"
16 #include "rrddiskprotocol.h"
17 #include "rrdenginelib.h"
database/rrd.h
+3 -3
@@ -26,17 +26,17 @@ struct rrdengine_instance;
26 struct pg_cache_page_index;
27 #endif
28
29 -#include "../daemon/common.h"
29 +#include "daemon/common.h"
30 #include "web/api/queries/query.h"
31 #include "rrdvar.h"
32 #include "rrdsetvar.h"
33 #include "rrddimvar.h"
34 #include "rrdcalc.h"
35 #include "rrdcalctemplate.h"
36 -#include "../streaming/rrdpush.h"
36 +#include "streaming/rrdpush.h"
37
38 #ifndef ACLK_NG
39 -#include "../aclk/legacy/aclk_rrdhost_state.h"
39 +#include "aclk/legacy/aclk_rrdhost_state.h"
40 #else
41 #include "aclk/aclk.h"
42 #endif
database/sqlite/sqlite_functions.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_SQLITE_FUNCTIONS_H
4 #define NETDATA_SQLITE_FUNCTIONS_H
5
6 -#include "../../daemon/common.h"
6 +#include "daemon/common.h"
7 #include "sqlite3.h"
8
9 // return a node list
health/health.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_HEALTH_H
4 #define NETDATA_HEALTH_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define NETDATA_PLUGIN_HOOK_HEALTH \
9 { \
parser/parser.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_INCREMENTAL_PARSER_H
4 #define NETDATA_INCREMENTAL_PARSER_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define PARSER_MAX_CALLBACKS 20
9 #define PARSER_MAX_RECOVER_KEYWORDS 128
registry/registry.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 #define REGISTRY_STATUS_OK "ok"
registry/registry.h
+1 -1
@@ -49,7 +49,7 @@
49 #ifndef NETDATA_REGISTRY_H
50 #define NETDATA_REGISTRY_H 1
51
52 -#include "../daemon/common.h"
52 +#include "daemon/common.h"
53
54 #define NETDATA_REGISTRY_COOKIE_NAME "netdata_registry_id"
55
registry/registry_db.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 int registry_db_should_be_saved(void) {
registry/registry_init.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 int registry_init(void) {
registry/registry_internals.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 struct registry registry;
registry/registry_log.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 void registry_log(char action, REGISTRY_PERSON *p, REGISTRY_MACHINE *m, REGISTRY_URL *u, char *name) {
registry/registry_machine.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 // ----------------------------------------------------------------------------
registry/registry_person.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 // ----------------------------------------------------------------------------
registry/registry_url.c
+1 -1
@@ -1,6 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../daemon/common.h"
3 +#include "daemon/common.h"
4 #include "registry_internals.h"
5
6 // ----------------------------------------------------------------------------
spawn/spawn.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "spawn.h"
4 -#include "../database/engine/rrdenginelib.h"
4 +#include "database/engine/rrdenginelib.h"
5
6 static uv_thread_t thread;
7 int spawn_thread_error;
spawn/spawn.h
+1 -1
@@ -3,7 +3,7 @@
3 #ifndef NETDATA_SPAWN_H
4 #define NETDATA_SPAWN_H 1
5
6 -#include "../daemon/common.h"
6 +#include "daemon/common.h"
7
8 #define SPAWN_SERVER_COMMAND_LINE_ARGUMENT "--special-spawn-server"
9
spawn/spawn_client.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "spawn.h"
4 -#include "../database/engine/rrdenginelib.h"
4 +#include "database/engine/rrdenginelib.h"
5
6 static uv_process_t process;
7 static uv_pipe_t spawn_channel;
streaming/receiver.c
+1 -1
@@ -49,7 +49,7 @@ static void rrdpush_receiver_thread_cleanup(void *ptr) {
49 }
50 }
51
52 -#include "../collectors/plugins.d/pluginsd_parser.h"
52 +#include "collectors/plugins.d/pluginsd_parser.h"
53
54 PARSER_RC streaming_timestamp(char **words, void *user, PLUGINSD_ACTION *plugins_action)
55 {
streaming/rrdpush.c
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "rrdpush.h"
4 -#include "../parser/parser.h"
4 +#include "parser/parser.h"
5
6 /*
7 * rrdpush
streaming/rrdpush.h
+2 -2
@@ -3,8 +3,8 @@
3 #ifndef NETDATA_RRDPUSH_H
4 #define NETDATA_RRDPUSH_H 1
5
6 -#include "../database/rrd.h"
7 -#include "../libnetdata/libnetdata.h"
6 +#include "database/rrd.h"
7 +#include "libnetdata/libnetdata.h"
8 #include "web/server/web_client.h"
9 #include "daemon/common.h"
10
web/api/queries/rrdr.h
+1 -1
@@ -99,7 +99,7 @@ typedef struct rrdresult {
99
100 #define rrdr_rows(r) ((r)->rows)
101
102 -#include "../../../database/rrd.h"
102 +#include "database/rrd.h"
103 extern void rrdr_free(RRDR *r);
104 extern RRDR *rrdr_create(struct rrdset *st, long n, struct context_param *context_param_list);
105
web/api/tests/valid_urls.c
+4 -4
@@ -1,9 +1,9 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../../../libnetdata/libnetdata.h"
4 -#include "../../../libnetdata/required_dummies.h"
5 -#include "../../../database/rrd.h"
6 -#include "../../../web/server/web_client.h"
3 +#include "libnetdata/libnetdata.h"
4 +#include "libnetdata/required_dummies.h"
5 +#include "database/rrd.h"
6 +#include "web/server/web_client.h"
7 #include <setjmp.h>
8 #include <cmocka.h>
9 #include <stdbool.h>
web/api/tests/web_api.c
+4 -4
@@ -1,9 +1,9 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 -#include "../../../libnetdata/libnetdata.h"
4 -#include "../../../libnetdata/required_dummies.h"
5 -#include "../../../database/rrd.h"
6 -#include "../../../web/server/web_client.h"
3 +#include "libnetdata/libnetdata.h"
4 +#include "libnetdata/required_dummies.h"
5 +#include "database/rrd.h"
6 +#include "web/server/web_client.h"
7 #include <setjmp.h>
8 #include <cmocka.h>
9 #include <stdbool.h>