TORCS  1.3.9
The Open Racing Car Simulator
os.h
Go to the documentation of this file.
1 /***************************************************************************
2  Os.h --- os specific functions interface
3  -------------------
4  created : Fri Aug 13 22:27:29 CEST 1999
5  copyright : (C) 1999 by Eric Espie
6  email : torcs@free.fr
7  version : $Id$
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #ifndef _OS__H_
20 #define _OS__H_
21 
22 #include <tgf.h>
23 
24 /* dynamic module (dll) interfaces */
25 typedef int (*tfModLoad)(unsigned int, char*, tModList **);
26 typedef int (*tfModLoadDir)(unsigned int, char*, tModList **);
27 typedef int (*tfModUnloadList)(tModList **);
28 typedef int (*tfModGetInfo)(unsigned int, char*, tModList **);
29 typedef int (*tfModGetInfoDir)(unsigned int, char*, int, tModList **);
30 typedef int (*tfModFreeInfoList)(tModList **);
31 /* directory interface */
32 typedef tFList *(*tfDirGetList)(const char *);
33 typedef tFList *(*tfDirGetListFiltered)(const char *, const char *);
34 /* time interface */
35 typedef double (*tfTimeClock)(void);
36 
37 typedef struct {
47 } tGfOs;
48 
49 #ifdef WIN32
50 #ifdef TGF_EXPORTS
51 __declspec(dllexport)
52 #else // TGF_EXPORTS
53 __declspec(dllimport)
54 #endif // TGF_EXPORTS
55 #endif // WIN32
56 extern tGfOs GfOs;
57 
58 #endif /* _OS__H_ */
tfModGetInfoDir modInfoDir
Definition: os.h:42
tfDirGetList dirGetList
Definition: os.h:44
int(* tfModFreeInfoList)(tModList **)
Definition: os.h:30
tfModLoadDir modLoadDir
Definition: os.h:39
tfModGetInfo modInfo
Definition: os.h:41
List of (DLL) files for a Directory.
Definition: tgf.h:229
int(* tfModUnloadList)(tModList **)
Definition: os.h:27
double(* tfTimeClock)(void)
Definition: os.h:35
int(* tfModLoadDir)(unsigned int, char *, tModList **)
Definition: os.h:26
int(* tfModGetInfo)(unsigned int, char *, tModList **)
Definition: os.h:28
Definition: os.h:37
The Gaming Framework API.
tGfOs GfOs
Definition: os.cpp:37
int(* tfModLoad)(unsigned int, char *, tModList **)
Definition: os.h:25
tFList *(* tfDirGetList)(const char *)
Definition: os.h:32
tfModFreeInfoList modFreeInfoList
Definition: os.h:43
tfModLoad modLoad
Definition: os.h:38
tfTimeClock timeClock
Definition: os.h:46
tFList *(* tfDirGetListFiltered)(const char *, const char *)
Definition: os.h:33
tfDirGetListFiltered dirGetListFiltered
Definition: os.h:45
int(* tfModGetInfoDir)(unsigned int, char *, int, tModList **)
Definition: os.h:29
tfModUnloadList modUnloadList
Definition: os.h:40
list of module interfaces
Definition: tgf.h:203