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