wmix: moved parsing of Command-Line options to the config handling file
[dockapps.git] / wmix / include / config.h
blob71a79d4ae698eab7925621934d9c2b696bc9bea3
1 /* WMix -- a mixer using the OSS mixer API
2 * Copyright (C)2014 Christophe CURIS for the WindowMaker Team
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 /* include/config.h: functions related to setting the configuration */
20 #ifndef WMIX_CONFIG_H
21 #define WMIX_CONFIG_H
23 /* Needed for SOUND_MIXER_NRDEVICES */
24 #include <sys/soundcard.h>
27 /* Global Configuration */
28 extern struct _Config {
29 char *file; /* full path to config file name */
30 char *display_name; /* X Display to connect to */
31 char *mixer_device; /* device file to use for controlling Mixer volumes */
33 unsigned int verbose : 1; /* be Verbose when starting */
34 unsigned int osd : 1; /* show OSD? */
35 unsigned int mousewheel : 1; /* mousewheel enabled? */
36 unsigned int scrolltext : 1; /* scroll channel names? */
38 unsigned int wheel_button_up; /* up button */
39 unsigned int wheel_button_down; /* down button */
41 float scrollstep; /* scroll mouse step adjustment */
42 char *osd_color; /* osd color */
44 char *exclude_channel[SOUND_MIXER_NRDEVICES + 1]; /* Devices to exclude from GUI's list */
45 } config;
47 /* Current version of WMixer */
48 #define VERSION "3.0"
50 /* Sets configuration from command line */
51 void parse_cli_options(int argc, char **argv);
53 /* Read configuration from file */
54 void config_read(void);
56 #endif /* WMIX_CONFIG_H */