summaryrefslogtreecommitdiffstats
path: root/daemon/service.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/service.h')
-rw-r--r--daemon/service.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/daemon/service.h b/daemon/service.h
new file mode 100644
index 000000000..cb03bec2c
--- /dev/null
+++ b/daemon/service.h
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_SERVICE_H
+#define NETDATA_SERVICE_H 1
+
+#define NETDATA_PLUGIN_HOOK_SERVICE \
+ { \
+ .name = "SERVICE", \
+ .config_section = NULL, \
+ .config_name = NULL, \
+ .enabled = 1, \
+ .thread = NULL, \
+ .init_routine = NULL, \
+ .start_routine = service_main \
+ },
+
+extern void *service_main(void *ptr);
+
+#endif //NETDATA_SERVICE_H