man1: Revise Makefile.am for a2x
[quvi-tool.git] / src / opts.h
blobd0b0908a304e9a834f5850c82f923121e1072958
1 /* quvi
2 * Copyright (C) 2012,2013 Toni Gundogdu <legatvs@gmail.com>
4 * This file is part of quvi <http://quvi.sourceforge.net/>.
6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Affero General Public
8 * License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General
17 * Public License along with this program. If not, see
18 * <http://www.gnu.org/licenses/>.
21 #ifndef opts_h
22 #define opts_h
24 struct opts_s
26 struct
28 gchar *subtitle_export_format;
29 gboolean check_mode_offline;
30 gchar *subtitle_language;
31 gboolean print_subtitles;
32 gboolean print_streams;
33 gchar *print_format;
34 gchar *verbosity;
35 gchar *stream;
36 } core;
37 struct
39 gboolean query_metainfo;
40 } dump;
41 struct
43 gboolean enable_stderr;
44 gboolean enable_stdout;
45 gboolean dump_argv;
46 gchar **external;
47 } exec;
48 struct
50 gboolean skip_transfer;
51 gchar **output_regex;
52 gdouble resume_from;
53 gchar *output_name;
54 gchar *output_file;
55 gboolean overwrite;
56 gchar *output_dir;
57 gint throttle;
58 } get;
59 struct
61 gchar *user_agent;
62 } http;
63 gchar **rargs;
66 typedef struct opts_s *opts_t;
68 extern const GOptionEntry option_entries[];
69 extern struct opts_s opts;
71 /* callbacks */
73 void cb_parse_keyfile_values(GKeyFile*, const gchar*);
74 gint cb_cmdline_validate_values();
75 void cb_set_post_parse_defaults();
76 gchar *cb_get_config_fpath();
78 #endif /* opts_h */
80 /* vim: set ts=2 sw=2 tw=72 expandtab: */