diff options
Diffstat (limited to 'aclk/aclk_api.c')
-rw-r--r-- | aclk/aclk_api.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/aclk/aclk_api.c b/aclk/aclk_api.c index edbe02be34..4838f4b7f4 100644 --- a/aclk/aclk_api.c +++ b/aclk/aclk_api.c @@ -146,6 +146,19 @@ void aclk_del_collector(RRDHOST *host, const char *plugin_name, const char *modu error_report("No usable aclk_del_collector implementation"); } +void aclk_host_state_update(RRDHOST *host, int connect) +{ +#ifdef ACLK_NG + if (aclk_ng) + return ng_aclk_host_state_update(host, connect); +#endif +#ifdef ACLK_LEGACY + if (!aclk_ng) + return legacy_aclk_host_state_update(host, connect); +#endif + error_report("Couldn't use any version of aclk_host_state_update"); +} + #endif /* ENABLE_ACLK */ struct label *add_aclk_host_labels(struct label *label) { |