summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/spconf_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/spconf_p.h')
-rw-r--r--apps/plugins/zxbox/spconf_p.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/spconf_p.h b/apps/plugins/zxbox/spconf_p.h
new file mode 100644
index 0000000000..fa7c587ace
--- /dev/null
+++ b/apps/plugins/zxbox/spconf_p.h
@@ -0,0 +1,81 @@
1/*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 */
20
21#ifndef SPCONF_P_H
22#define SPCONF_P_H
23
24#include "spconf.h"
25
26struct sp_options {
27 const char *option;
28
29 int argtype;
30 void *argvalp;
31 const char **enums;
32 int disp;
33};
34
35extern struct sp_options spcf_options[];
36
37#define SA_BOOL 1
38#define SA_INT 2
39#define SA_STR 3
40#define SA_ENUM 4
41
42
43extern int showframe;
44extern int scrmul;
45extern int privatemap;
46extern int use_shm;
47
48extern int small_screen;
49
50extern int sound_on;
51extern int bufframes;
52extern const char *sound_dev_name;
53extern int sound_sample_rate;
54extern int sound_to_autoclose;
55extern int sound_dsp_setfrag;
56
57extern int keyboard_type;
58extern int cursor_type;
59extern int color_type;
60extern int pause_on_iconify;
61extern int vga_pause_bg;
62extern int sp_quick_load;
63extern int sp_paused;
64extern int load_immed;
65extern int spt_auto_stop;
66extern int spkb_allow_ascii;
67extern int spkb_trueshift;
68extern int spkb_funcshift;
69
70extern void spcf_set_val(int ix, const char *val, const char *name,
71 int ctr, int fatal);
72
73extern void spcf_set_color(int ix, const char *val, const char *name,
74 int ctr, int fatal);
75extern void spcf_set_key(int ix, const char *val, const char *name,
76 int ctr, int fatal);
77extern int spcf_match_keydef(const char *attr, const char *beg);
78extern int spcf_parse_conf_line(char *line, char **attrp, char **valp);
79
80
81#endif /* SPCONF_P_H */