XenevaOS
Loading...
Searching...
No Matches
i_system.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
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// DESCRIPTION:
16// System specific interface stuff.
17//
18
19
20#ifndef __I_SYSTEM__
21#define __I_SYSTEM__
22
23#include "d_ticcmd.h"
24#include "d_event.h"
25
26
27typedef void (*atexit_func_t)(void);
28
29// Called by DoomMain.
30void I_Init (void);
31
32// Called by startup code
33// to get the ammount of memory to malloc
34// for the zone management.
35byte* I_ZoneBase (int *size);
36
37boolean I_ConsoleStdout(void);
38
39
40// Asynchronous interrupt functions should maintain private queues
41// that are read by the synchronous functions
42// to be converted into events.
43
44// Either returns a null ticcmd,
45// or calls a loadable driver to build it.
46// This ticcmd will then be modified by the gameloop
47// for normal input.
49
50
51// Called by M_Responder when quit is selected.
52// Clean exit, displays sell blurb.
53void I_Quit (void);
54
55void I_Error (char *error, ...);
56
57void I_Tactile (int on, int off, int total);
58
59boolean I_GetMemoryValue(unsigned int offset, void *value, int size);
60
61// Schedule a function to be called when the program exits.
62// If run_if_error is true, the function is called if the exit
63// is due to an error (I_Error)
64
65void I_AtExit(atexit_func_t func, boolean run_if_error);
66
67// Add all system-specific config file variable bindings.
68
69void I_BindVariables(void);
70
71// Print startup banner copyright message.
72
74
75// Print a centered text banner displaying the given string.
76
77void I_PrintBanner(char *text);
78
79// Print a dividing line for startup banners.
80
81void I_PrintDivider(void);
82
83#endif
84
char * gamedescription
Definition doomstat.c:28
size_t size
Definition drm_bridge.h:1299
size_t size_t offset
Definition drm_bridge.h:1299
void I_AtExit(atexit_func_t func, boolean run_if_error)
Definition i_system.c:74
ticcmd_t * I_BaseTiccmd(void)
void I_PrintBanner(char *text)
Definition i_system.c:167
void I_PrintStartupBanner(char *gamedescription)
Definition i_system.c:190
boolean I_GetMemoryValue(unsigned int offset, void *value, int size)
Definition i_system.c:513
void I_Init(void)
void I_Tactile(int on, int off, int total)
Definition i_system.c:88
void I_PrintDivider(void)
Definition i_system.c:178
void I_BindVariables(void)
boolean I_ConsoleStdout(void)
Definition i_system.c:211
byte * I_ZoneBase(int *size)
Definition i_system.c:134
void I_Error(char *error,...)
Definition i_system.c:365
void I_Quit(void)
Definition i_system.c:247
void(* atexit_func_t)(void)
Definition i_system.h:27
Definition d_ticcmd.h:33