From b812d23e32c858e5ef9cb1b4965e49aee8a97a74 Mon Sep 17 00:00:00 2001 From: Paul Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> Date: Tue, 5 Mar 2019 10:10:09 +0000 Subject: Minor fixes around plugin_directories initialization (#5536) * Daemon minor cleanups: 1) pull in plugin directories logic, inside the pluginsd where it belongs and call a method from the daemon to do so, 2) Magic numbers are evil, give a meaningful definition for that plugin directories retrieval * Rename netdata_configured_plugins_dir -> netdata_configured_primary_plugins_dir. We allow multiple plugin directories and this is actually the primary (or stock?) directory, just make it clear to avoid confusion * In this new wrapper, just return whatever the string splitter would return * Reduce the scope - consider moving this to somewhere else in a common place if needed by other modules later --- daemon/common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'daemon/common.h') diff --git a/daemon/common.h b/daemon/common.h index d1172ad8d1..d688d28286 100644 --- a/daemon/common.h +++ b/daemon/common.h @@ -70,8 +70,7 @@ extern char *netdata_configured_hostname; extern char *netdata_configured_user_config_dir; extern char *netdata_configured_stock_config_dir; extern char *netdata_configured_log_dir; -extern char *netdata_configured_plugins_dir_base; -extern char *netdata_configured_plugins_dir; +extern char *netdata_configured_primary_plugins_dir; extern char *netdata_configured_web_dir; extern char *netdata_configured_cache_dir; extern char *netdata_configured_varlib_dir; -- cgit v1.2.3