Removing the --rotate option, as it is unused. Use lwes-journaller-rotate instead.
[lwes-journaller.git] / src / opt.h
blob5447dcefe6929a044c8a4ee0ec96216215da6e5c
1 /*======================================================================*
2 * Copyright (C) 2008 Light Weight Event System *
3 * All rights reserved. *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
18 * Boston, MA 02110-1301 USA. *
19 *======================================================================*/
21 #ifndef OPT_DOT_H
22 #define OPT_DOT_H
24 extern int arg_args;
25 extern char* arg_basename;
26 extern const char* arg_interface;
27 /*TODO: extern int arg_interval;*/
28 extern const char* arg_ip;
29 extern int arg_hurryup_at;
30 extern int arg_hurrydown_at;
31 extern int arg_join_group;
32 extern char** arg_journalls;
33 extern char* arg_disk_journals[10];
34 extern char* arg_journ_name;
35 extern const char* arg_journ_type;
36 extern char* arg_monitor_type;
37 extern int arg_log_level;
38 extern int arg_njournalls;
39 extern int arg_nodaemonize;
40 extern int arg_nopong;
41 extern int arg_nreaders;
42 extern const char* arg_pid_file;
43 extern int arg_port;
44 extern const char* arg_proc_type;
45 extern int arg_queue_max_cnt;
46 extern int arg_queue_max_sz;
47 extern const char* arg_queue_name;
48 extern const char* arg_queue_type;
49 extern int arg_rotate_mask;
50 extern int arg_rt;
51 extern char* arg_sink_ram;
52 extern int arg_site;
53 extern int arg_sockbuffer;
54 extern int arg_ttl;
55 extern int arg_version;
56 extern const char* arg_xport;
58 /* arg_proc_type: */
59 #define ARG_PROCESS "process"
60 #define ARG_THREAD "thread"
62 /* arg_queue_type: */
63 #define ARG_MQ "mq"
64 #define ARG_MSG "msg"
66 /* arg_journ_type: */
67 #define ARG_GZ "gz"
68 #define ARG_FILE "file"
70 /* arg_xport: */
71 #define ARG_UDP "udp"
73 void process_options(int argc, const char* argv[]);
75 #endif /* OPT_DOT_H */