Debian Codegraph @

include/dosbox.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2002-2010 The DOSBox Team
3 *
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.
8 *
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.
13 *
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 /* $Id: dosbox.h,v 1.32 2009-05-27 09:15:41 qbix79 Exp $ */
20
21 #ifndef DOSBOX_DOSBOX_H
22 #define DOSBOX_DOSBOX_H
23
24 #include "config.h"
25
26 GCC_ATTRIBUTE(noreturn) void E_Exit(const char * message,...) GCC_ATTRIBUTE( __format__(__printf__, 1, 2));
27
28 void MSG_Add(const char*,const char*); //add messages to the internal langaugefile
29 const char* MSG_Get(char const *); //get messages from the internal langaugafile
30
31 class Section;
32
33 typedef Bitu (LoopHandler)(void);
34
35 void DOSBOX_RunMachine();
36 void DOSBOX_SetLoop(LoopHandler * handler);
37 void DOSBOX_SetNormalLoop();
38
39 void DOSBOX_Init(void);
40
41 class Config;
42 extern Config * control;
43
44 enum MachineType {
45 MCH_HERC,
46 MCH_CGA,
47 MCH_TANDY,
48 MCH_PCJR,
49 MCH_EGA,
50 MCH_VGA
51 };
52
53 enum SVGACards {
54 SVGA_None,
55 SVGA_S3Trio,
56 SVGA_TsengET4K,
57 SVGA_TsengET3K,
58 SVGA_ParadisePVGA1A
59 };
60
61 extern SVGACards svgaCard;
62 extern MachineType machine;
63 extern bool SDLNetInited;
64
65 #define IS_TANDY_ARCH ((machine==MCH_TANDY) || (machine==MCH_PCJR))
66 #define IS_EGAVGA_ARCH ((machine==MCH_EGA) || (machine==MCH_VGA))
67 #define IS_VGA_ARCH (machine==MCH_VGA)
68 #define TANDY_ARCH_CASE MCH_TANDY: case MCH_PCJR
69 #define EGAVGA_ARCH_CASE MCH_EGA: case MCH_VGA
70 #define VGA_ARCH_CASE MCH_VGA
71
72 #ifndef DOSBOX_LOGGING_H
73 #include "logging.h"
74 #endif // the logging system.
75
76 #endif /* DOSBOX_DOSBOX_H */