]> arthur.barton.de Git - netdata.git/blobdiff - src/main.h
Separate net.inet6.icmp6.stats module
[netdata.git] / src / main.h
index be2d1c677b9ead4da24936b27e91b9758c6be758..38df0fea44773d213915d7b1a91c83439ad2a9c6 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef NETDATA_MAIN_H
 #define NETDATA_MAIN_H 1
 
-extern volatile sig_atomic_t netdata_exit;
-
 /**
  * This struct contains information about command line options.
  */
@@ -24,6 +22,20 @@ struct option_def {
  */
 extern struct option_def options[];
 
+struct netdata_static_thread {
+    char *name;
+
+    char *config_section;
+    char *config_name;
+
+    volatile int enabled;
+
+    pthread_t *thread;
+
+    void (*init_routine) (void);
+    void *(*start_routine) (void *);
+};
+
 extern void kill_childs(void);
 extern int killpid(pid_t pid, int signal);
 extern void netdata_cleanup_and_exit(int ret) NORETURN;