2000-05-28 13:40:48 +00:00
|
|
|
/*
|
|
|
|
GEOS system functions
|
|
|
|
|
2001-09-10 21:43:15 +00:00
|
|
|
by Maciej 'YTM/Elysium' Witkowiak
|
2000-05-28 13:40:48 +00:00
|
|
|
*/
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
#ifndef _GSYS_H
|
2000-05-28 13:40:48 +00:00
|
|
|
#define _GSYS_H
|
|
|
|
|
2003-08-28 20:51:38 +00:00
|
|
|
void FirstInit(void);
|
|
|
|
void InitForIO(void);
|
|
|
|
void DoneWithIO(void);
|
|
|
|
void MainLoop(void);
|
|
|
|
void EnterDeskTop(void);
|
|
|
|
void ToBASIC(void);
|
|
|
|
void Panic(void);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
void __fastcall__ CallRoutine(void *myRoutine);
|
|
|
|
|
2003-08-28 20:51:38 +00:00
|
|
|
unsigned GetSerialNumber(void);
|
|
|
|
char GetRandom(void);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
void __fastcall__ SetDevice(char newdev);
|
|
|
|
|
2003-08-28 20:51:38 +00:00
|
|
|
char get_ostype(void);
|
2003-04-17 14:38:53 +00:00
|
|
|
|
2001-09-10 21:43:15 +00:00
|
|
|
/* possible return values of get_ostype, machine and version flags will
|
2003-04-17 14:38:53 +00:00
|
|
|
be combined with OR */
|
|
|
|
/* machine flags */
|
2013-05-09 11:56:54 +00:00
|
|
|
#define GEOS64 0x00
|
2010-02-27 14:46:43 +00:00
|
|
|
#define GEOS4 0x04 /* plus4 geos is not or'ed with version */
|
2013-05-09 11:56:54 +00:00
|
|
|
#define GEOS128 0x80
|
2003-04-17 14:38:53 +00:00
|
|
|
/* version flags */
|
2013-05-09 11:56:54 +00:00
|
|
|
#define GEOS_V10 0x10
|
2010-02-27 14:46:43 +00:00
|
|
|
#define GEOS_V11 0x11
|
2013-05-09 11:56:54 +00:00
|
|
|
#define GEOS_V12 0x12 /* ??? not sure */
|
|
|
|
#define GEOS_V20 0x20
|
|
|
|
#define WHEELS 0x40 /* only Wheels? */
|
2001-09-10 21:43:15 +00:00
|
|
|
|
2003-08-28 20:51:38 +00:00
|
|
|
char get_tv(void);
|
2003-04-17 14:38:53 +00:00
|
|
|
|
2001-09-10 21:43:15 +00:00
|
|
|
/* possible return values of get_tv, these flags will be combined
|
2003-04-17 14:38:53 +00:00
|
|
|
note that columns state can be changed during runtime and get_tv
|
|
|
|
always returns the current state */
|
2013-05-09 11:56:54 +00:00
|
|
|
#define COLUMNS40 0x00
|
|
|
|
#define COLUMNS80 0x01
|
|
|
|
#define TV_PAL 0x00
|
|
|
|
#define TV_NTSC 0x80
|
2001-09-10 21:43:15 +00:00
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
#endif
|