wmix: created new file config.c to contain configuration related stuff
[dockapps.git] / wmix / include / config.h
blob5d84ae91ed867958bc9a2a739efcffa8d16bf93a
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 /* Global Configuration */
24 extern struct _Config {
25 char *file; /* full path to config file name */
27 unsigned int osd : 1; /* show OSD? */
28 unsigned int mousewheel : 1; /* mousewheel enabled? */
29 unsigned int scrolltext : 1; /* scroll channel names? */
31 unsigned int wheel_button_up; /* up button */
32 unsigned int wheel_button_down; /* down button */
34 float scrollstep; /* scroll mouse step adjustment */
35 char *osd_color; /* osd color */
36 } config;
38 /* Read configuration from file */
39 void config_read(void);
41 #endif /* WMIX_CONFIG_H */