]> arthur.barton.de Git - netdata.git/blob - src/main.h
dns_query_time plugin: replace "." with "_" in dimensions
[netdata.git] / src / main.h
1 #ifndef NETDATA_MAIN_H
2 #define NETDATA_MAIN_H 1
3
4 /**
5  * This struct contains information about command line options.
6  */
7 struct option_def {
8     /** The option character */
9     const char val;
10     /** The name of the long option. */
11     const char *description;
12     /** Short descripton what the option does */
13     /** Name of the argument displayed in SYNOPSIS */
14     const char *arg_name;
15     /** Default value if not set */
16     const char *default_value;
17 };
18
19 /**
20  * List of command line options.
21  * This can be used to compute manpage, help messages, ect.
22  */
23 extern struct option_def options[];
24
25 struct netdata_static_thread {
26     char *name;
27
28     char *config_section;
29     char *config_name;
30
31     volatile int enabled;
32
33     pthread_t *thread;
34
35     void (*init_routine) (void);
36     void *(*start_routine) (void *);
37 };
38
39 extern void kill_childs(void);
40 extern int killpid(pid_t pid, int signal);
41 extern void netdata_cleanup_and_exit(int ret) NORETURN;
42
43 #endif /* NETDATA_MAIN_H */