summaryrefslogtreecommitdiffstats
path: root/collectors/checks.plugin/plugin_checks.h
blob: c8057253cbc6a43e2087b944aba059ca53c1d3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_PLUGIN_CHECKS_H
#define NETDATA_PLUGIN_CHECKS_H 1

#include "daemon/common.h"

#ifdef NETDATA_INTERNAL_CHECKS

#define NETDATA_PLUGIN_HOOK_CHECKS \
    { \
        .name = "PLUGIN[check]", \
        .config_section = CONFIG_SECTION_PLUGINS, \
        .config_name = "checks", \
        .enabled = 0, \
        .thread = NULL, \
        .init_routine = NULL, \
        .start_routine = checks_main \
    },

extern void *checks_main(void *ptr);

#else // !NETDATA_INTERNAL_CHECKS

#define NETDATA_PLUGIN_HOOK_CHECKS

#endif // NETDATA_INTERNAL_CHECKS

#endif // NETDATA_PLUGIN_CHECKS_H