Mercurial > hg > xmms-sid
annotate src/xs_config.h @ 953:b2caef664524
Add new helper functions xs_fread_str() and xs_fread_byte().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 Nov 2012 21:26:25 +0200 |
parents | d624258d7800 |
children | be2a8436461a |
rev | line source |
---|---|
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
487
diff
changeset
|
1 #ifndef XS_CONFIG_H |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
487
diff
changeset
|
2 #define XS_CONFIG_H |
20 | 3 |
214 | 4 #include "xmms-sid.h" |
548
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
5 #include "xs_curve.h" |
214 | 6 |
20 | 7 #ifdef __cplusplus |
8 extern "C" { | |
9 #endif | |
10 | |
548
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
11 |
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
12 /* Configuration structure |
20 | 13 */ |
903 | 14 enum XS_EMUENGINE |
15 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
16 XS_ENG_SIDPLAY1 = 1, |
835
d508c7c4bc69
Add libSIDPlay2-FP backend interface module.
Matti Hamalainen <ccr@tnsp.org>
parents:
773
diff
changeset
|
17 XS_ENG_SIDPLAY2, |
839
29f3c3f29c0d
Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents:
835
diff
changeset
|
18 XS_ENG_SIDPLAYFP |
72
e3b205a6bc7e
Lots re-arranging and new code for upcoming modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
19 }; |
e3b205a6bc7e
Lots re-arranging and new code for upcoming modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
20 |
e3b205a6bc7e
Lots re-arranging and new code for upcoming modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
21 |
903 | 22 enum XS_BUILDER |
23 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
24 XS_BLD_RESID = 1, |
773
45108b3d88db
Add resid-fp and resid backend to sidplay2fp support.
Matti Hamalainen <ccr@tnsp.org>
parents:
748
diff
changeset
|
25 XS_BLD_HARDSID, |
45108b3d88db
Add resid-fp and resid backend to sidplay2fp support.
Matti Hamalainen <ccr@tnsp.org>
parents:
748
diff
changeset
|
26 XS_BLD_RESID_FP |
78
ab522ab65c85
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
75
diff
changeset
|
27 }; |
ab522ab65c85
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
75
diff
changeset
|
28 |
904
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
29 |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
30 enum XS_RESID |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
31 { |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
32 XS_RESID_INTERPOLATE = 1, |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
33 XS_RESID_RESAMPLE_FIR, |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
34 }; |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
35 |
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
36 |
903 | 37 enum XS_RESOLUTION |
38 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
39 XS_RES_8BIT = 8, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
40 XS_RES_16BIT = 16 |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
41 }; |
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
42 |
903 | 43 enum XS_CHANNELS |
44 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
45 XS_CHN_MONO = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
46 XS_CHN_STEREO = 2, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
47 XS_CHN_AUTOPAN = 3 |
20 | 48 }; |
49 | |
50 | |
903 | 51 enum XS_CLOCK |
52 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
53 XS_CLOCK_PAL = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
54 XS_CLOCK_NTSC, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
55 XS_CLOCK_VBI, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
56 XS_CLOCK_CIA, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
57 XS_CLOCK_ANY |
20 | 58 }; |
59 | |
60 | |
903 | 61 enum XS_MPU |
62 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
63 XS_MPU_BANK_SWITCHING = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
64 XS_MPU_TRANSPARENT_ROM, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
65 XS_MPU_PLAYSID_ENVIRONMENT, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
66 XS_MPU_REAL |
20 | 67 }; |
68 | |
69 | |
903 | 70 enum XS_SSC |
71 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
72 XS_SSC_NONE = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
73 XS_SSC_POPUP, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
74 XS_SSC_PATCH, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
75 XS_SSC_SEEK |
78
ab522ab65c85
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
75
diff
changeset
|
76 }; |
ab522ab65c85
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
75
diff
changeset
|
77 |
ab522ab65c85
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
75
diff
changeset
|
78 |
903 | 79 enum XS_SIDMODEL |
80 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
81 XS_SIDMODEL_UNKNOWN = 0, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
82 XS_SIDMODEL_6581, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
83 XS_SIDMODEL_8580, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
84 XS_SIDMODEL_ANY |
202 | 85 }; |
86 | |
87 | |
903 | 88 typedef struct |
89 { | |
713
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
90 gchar *name; |
702 | 91 gint type; |
719 | 92 |
722
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
93 /* Filter type 0 for SIDPlay 1 */ |
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
94 gfloat fs, fm, ft; |
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
95 |
719 | 96 /* Filter type 1-2 points */ |
702 | 97 xs_int_point_t points[XS_SIDPLAY2_NFPOINTS]; |
98 gint npoints; | |
713
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
99 |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
100 /* Distortion patch tunables */ |
719 | 101 gfloat rate, point, voice_nonlinearity, |
102 cf_treshold; | |
713
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
103 |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
104 /* Filter Type 3 tunables */ |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
105 gfloat baseresistance, offset, steepness, |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
106 minimumfetresistance; |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
107 |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
108 /* Filter Type 4 tunables */ |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
109 gfloat k, b; |
722
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
110 } xs_sid_filter_t; |
713
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
111 |
06db79680afe
Added new variables for distortion tunables and made few changes to SID1
Matti Hamalainen <ccr@tnsp.org>
parents:
702
diff
changeset
|
112 |
903 | 113 extern struct xs_cfg_t |
114 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
115 /* General audio settings */ |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
116 gint audioBitsPerSample; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
117 gint audioChannels; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
118 gint audioFrequency; |
20 | 119 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
120 /* Emulation settings */ |
685 | 121 gboolean mos8580; /* TRUE = 8580, FALSE = 6581 */ |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
122 gboolean forceModel; |
685 | 123 gint memoryMode; /* See XS_MPU-constants */ |
124 gint clockSpeed; /* PAL (50Hz) or NTSC (60Hz) */ | |
125 gboolean forceSpeed; /* TRUE = force to given clockspeed */ | |
75
653c9b0d1320
SIDPlay2 support "works" now. Borked problems with threads.
Matti Hamalainen <ccr@tnsp.org>
parents:
73
diff
changeset
|
126 |
685 | 127 gint playerEngine; /* Selected player engine */ |
190 | 128 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
129 gboolean emulateFilters; |
722
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
130 xs_sid_filter_t sid1Filter; /* Current SIDPlay1 filter */ |
548
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
131 |
685 | 132 gint sid2OptLevel; /* SIDPlay2 emulation optimization */ |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
133 gint sid2Builder; /* SIDPlay2 "builder" aka SID-emu */ |
722
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
134 xs_sid_filter_t sid2Filter; /* Current SIDPlay2 filter */ |
5923dfff1fac
Unify xs_sid*_filter_t into one.
Matti Hamalainen <ccr@tnsp.org>
parents:
719
diff
changeset
|
135 xs_sid_filter_t **sid2FilterPresets; |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
136 gint sid2NFilterPresets; |
904
5d26b869a48e
Add resampling configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
903
diff
changeset
|
137 gint residSampling; |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
138 |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
139 |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
140 /* Playing settings */ |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
141 gboolean playMaxTimeEnable, |
685 | 142 playMaxTimeUnknown; /* Use max-time only when song-length is unknown */ |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
143 gint playMaxTime; /* MAX playtime in seconds */ |
169 | 144 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
145 gboolean playMinTimeEnable; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
146 gint playMinTime; /* MIN playtime in seconds */ |
169 | 147 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
148 gboolean songlenDBEnable; |
685 | 149 gchar *songlenDBPath; /* Path to Songlengths.txt */ |
20 | 150 |
151 | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
152 /* Miscellaneous settings */ |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
153 gboolean stilDBEnable; |
685 | 154 gchar *stilDBPath; /* Path to STIL.txt */ |
155 gchar *hvscPath; /* Path-prefix for HVSC */ | |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
156 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
157 gint subsongControl; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
158 gboolean detectMagic; |
40
1788f4ce6a44
Numerous changes towards 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
24
diff
changeset
|
159 |
685 | 160 gboolean titleOverride; /* TRUE if XMMS titles are overriden */ |
161 gchar *titleFormat; | |
72
e3b205a6bc7e
Lots re-arranging and new code for upcoming modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
162 |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
163 gboolean subAutoEnable, |
685 | 164 subAutoMinOnly; |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
165 gint subAutoMinTime; |
871
d183ac29b879
Add ROM image path configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
839
diff
changeset
|
166 |
d183ac29b879
Add ROM image path configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
839
diff
changeset
|
167 gchar *romPath; |
20 | 168 } xs_cfg; |
169 | |
228
a9a5924eb10c
Have and use a mutex for xs_cfg configuration structure.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
170 XS_MUTEX_H(xs_cfg); |
20 | 171 |
548
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
172 |
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
173 /* Configuration-file |
20 | 174 */ |
903 | 175 enum |
176 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
177 CTYPE_INT = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
178 CTYPE_FLOAT, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
179 CTYPE_STR, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
180 CTYPE_BOOL |
57
85811bcd049e
Improved, re-written configuration code and lots of minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
181 }; |
85811bcd049e
Improved, re-written configuration code and lots of minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
182 |
903 | 183 enum |
184 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
185 WTYPE_BGROUP = 1, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
186 WTYPE_SPIN, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
187 WTYPE_SCALE, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
188 WTYPE_BUTTON, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
189 WTYPE_TEXT, |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
190 WTYPE_COMBO |
20 | 191 }; |
192 | |
193 | |
903 | 194 typedef struct |
195 { | |
685 | 196 gint itemType; /* Type of item (CTYPE_*) */ |
197 void *itemData; /* Pointer to variable */ | |
198 gchar *itemName; /* Name of configuration item */ | |
702 | 199 } xs_cfg_item_t; |
20 | 200 |
201 | |
903 | 202 typedef struct |
203 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
204 gint widType; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
205 gint itemType; |
685 | 206 gchar *widName; |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
207 void *itemData; |
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
208 gint itemSet; |
702 | 209 } xs_wid_item_t; |
57
85811bcd049e
Improved, re-written configuration code and lots of minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
210 |
85811bcd049e
Improved, re-written configuration code and lots of minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents:
50
diff
changeset
|
211 |
548
ba80c052e425
Configuration widget naming cleanups and GUI-related improvements;
Matti Hamalainen <ccr@tnsp.org>
parents:
526
diff
changeset
|
212 /* Functions |
20 | 213 */ |
940
d624258d7800
Make messagebox functions public.
Matti Hamalainen <ccr@tnsp.org>
parents:
939
diff
changeset
|
214 void xs_messagebox_const(const gchar *title, const gchar *msg); |
d624258d7800
Make messagebox functions public.
Matti Hamalainen <ccr@tnsp.org>
parents:
939
diff
changeset
|
215 void xs_messagebox(const gchar *title, const gchar *fmt, ...); |
d624258d7800
Make messagebox functions public.
Matti Hamalainen <ccr@tnsp.org>
parents:
939
diff
changeset
|
216 |
939
49b689449a37
Change xs_read_configuration() to return a boolean value, TRUE if
Matti Hamalainen <ccr@tnsp.org>
parents:
904
diff
changeset
|
217 void xs_init_configuration(void); |
49b689449a37
Change xs_read_configuration() to return a boolean value, TRUE if
Matti Hamalainen <ccr@tnsp.org>
parents:
904
diff
changeset
|
218 void xs_configure(void); |
49b689449a37
Change xs_read_configuration() to return a boolean value, TRUE if
Matti Hamalainen <ccr@tnsp.org>
parents:
904
diff
changeset
|
219 gboolean xs_read_configuration(void); |
49b689449a37
Change xs_read_configuration() to return a boolean value, TRUE if
Matti Hamalainen <ccr@tnsp.org>
parents:
904
diff
changeset
|
220 gint xs_write_configuration(void); |
20 | 221 |
903 | 222 |
20 | 223 #ifdef __cplusplus |
224 } | |
225 #endif | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
548
diff
changeset
|
226 #endif /* XS_CONFIG_H */ |