TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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 */
25typedef int (*tfModLoad)(unsigned int, char*, tModList **);
26typedef int (*tfModLoadDir)(unsigned int, char*, tModList **);
27typedef int (*tfModUnloadList)(tModList **);
28typedef int (*tfModGetInfo)(unsigned int, char*, tModList **);
29typedef int (*tfModGetInfoDir)(unsigned int, char*, int, tModList **);
30typedef int (*tfModFreeInfoList)(tModList **);
31/* directory interface */
32typedef tFList *(*tfDirGetList)(const char *);
33typedef tFList *(*tfDirGetListFiltered)(const char *, const char *);
34/* time interface */
35typedef double (*tfTimeClock)(void);
36
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
56extern tGfOs GfOs;
57
58#endif /* _OS__H_ */
tGfOs GfOs
Definition os.cpp:37
double(* tfTimeClock)(void)
Definition os.h:35
int(* tfModFreeInfoList)(tModList **)
Definition os.h:30
tFList *(* tfDirGetList)(const char *)
Definition os.h:32
int(* tfModLoadDir)(unsigned int, char *, tModList **)
Definition os.h:26
int(* tfModUnloadList)(tModList **)
Definition os.h:27
int(* tfModGetInfoDir)(unsigned int, char *, int, tModList **)
Definition os.h:29
tFList *(* tfDirGetListFiltered)(const char *, const char *)
Definition os.h:33
int(* tfModLoad)(unsigned int, char *, tModList **)
Definition os.h:25
int(* tfModGetInfo)(unsigned int, char *, tModList **)
Definition os.h:28
Definition os.h:37
tfDirGetList dirGetList
Definition os.h:44
tfModGetInfoDir modInfoDir
Definition os.h:42
tfModLoadDir modLoadDir
Definition os.h:39
tfModFreeInfoList modFreeInfoList
Definition os.h:43
tfTimeClock timeClock
Definition os.h:46
tfDirGetListFiltered dirGetListFiltered
Definition os.h:45
tfModUnloadList modUnloadList
Definition os.h:40
tfModLoad modLoad
Definition os.h:38
tfModGetInfo modInfo
Definition os.h:41
The Gaming Framework API.
struct ModList tModList
list of module interfaces
struct FList tFList
List of (DLL) files for a Directory.