annotate gui/cfg.h @ 33179:218edd8fc782

Cosmetic: Format to MPlayer coding style. Additionally: remove needless includes, group and sort includes, group and sort variables, rename gtkAOFakeSurround declaration gtkAOSurround, add #ifdefs to variable declarations, group statements by adding or removing new lines to ease reading, move assignments outside conditions, add parentheses, avoid mixing declaration and code, revise comments and add new ones.
author ib
date Fri, 15 Apr 2011 14:30:58 +0000
parents 00c918779261
children 8e423915a5bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26458
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
1 /*
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
2 * This file is part of MPlayer.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
3 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
5 * it under the terms of the GNU General Public License as published by
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
7 * (at your option) any later version.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
8 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
12 * GNU General Public License for more details.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
13 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
14 * You should have received a copy of the GNU General Public License along
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
17 */
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26007
diff changeset
19 #ifndef MPLAYER_GUI_CFG_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26007
diff changeset
20 #define MPLAYER_GUI_CFG_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21
30162
00c918779261 Add missing config.h #include; remove a redundant one.
diego
parents: 28051
diff changeset
22 #include "config.h"
00c918779261 Add missing config.h #include; remove a redundant one.
diego
parents: 28051
diff changeset
23
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
24 extern int gtkCacheOn;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
25 extern int gtkCacheSize;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
27 extern int gtkVfLAVC;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
28 extern int gtkVfPP;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
29
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
30 #ifdef CONFIG_DXR3
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
31 extern char *gtkDXR3Device;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
32 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
34 extern int gtkAutoSyncOn;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
35 extern int gtkAutoSync;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
37 extern int gtkAONorm;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
38 extern int gtkAOSurround;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
39 extern int gtkAOExtraStereo;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
40 extern float gtkAOExtraStereoMul;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
41
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
42 #ifdef CONFIG_ALSA
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
43 extern char *gtkAOALSAMixer;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
44 extern char *gtkAOALSAMixerChannel;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
45 extern char *gtkAOALSADevice;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
46 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
48 #ifdef CONFIG_OSS_AUDIO
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
49 extern char *gtkAOOSSMixer;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
50 extern char *gtkAOOSSMixerChannel;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
51 extern char *gtkAOOSSDevice;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
52 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
54 #ifdef CONFIG_ESD
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
55 extern char *gtkAOESDDevice;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
56 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
58 #ifdef CONFIG_SDL
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
59 extern char *gtkAOSDLDriver;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
60 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
62 extern int gtkEnableAudioEqualizer;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
63 extern char *gtkEquChannel1;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
64 extern char *gtkEquChannel2;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
65 extern char *gtkEquChannel3;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
66 extern char *gtkEquChannel4;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
67 extern char *gtkEquChannel5;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
68 extern char *gtkEquChannel6;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
69
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
70 extern int gtkSubDumpMPSub;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
71 extern int gtkSubDumpSrt;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72
27341
e7c989f7a7c9 Start unifying names of internal preprocessor directives.
diego
parents: 26458
diff changeset
73 #ifdef CONFIG_ASS
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 typedef struct {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 int enabled;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 int use_margins;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 int top_margin;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 int bottom_margin;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 } gtkASS_t;
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
80
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 extern gtkASS_t gtkASS;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83
33179
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
84 extern int gtkEnablePlayBar;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
85 extern int gtkLoadFullscreen;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
86 extern int gtkShowVideoWindow;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
87
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
88 extern int gui_save_pos;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
89 extern int gui_main_pos_x;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
90 extern int gui_main_pos_y;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
91 extern int gui_sub_pos_x;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
92 extern int gui_sub_pos_y;
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
93
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
94 int cfg_read(void);
218edd8fc782 Cosmetic: Format to MPlayer coding style.
ib
parents: 30162
diff changeset
95 int cfg_write(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26007
diff changeset
97 #endif /* MPLAYER_GUI_CFG_H */