torcs - 1.2.2

src/libs/tgf/os.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                         Os.h --- os specific functions interface                                
00003                              -------------------                                         
00004     created              : Fri Aug 13 22:27:29 CEST 1999
00005     copyright            : (C) 1999 by Eric Espie                         
00006     email                : torcs@free.fr   
00007     version              : $Id: os.h,v 1.1.1.1 2001/06/24 18:29:32 torcs Exp $                                  
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018  
00019 #ifndef _OS__H_
00020 #define _OS__H_
00021 
00022 #include <tgf.h>
00023      
00024 /* dynamic module (dll) interfaces */
00025 typedef int (*tfModLoad)(unsigned int, char*, tModList **);
00026 typedef int (*tfModLoadDir)(unsigned int, char*, tModList **);
00027 typedef int (*tfModUnloadList)(tModList **);
00028 typedef int (*tfModGetInfo)(unsigned int, char*, tModList **);
00029 typedef int (*tfModGetInfoDir)(unsigned int, char*, int, tModList **);
00030 typedef int (*tfModFreeInfoList)(tModList **);
00031 /* directory interface */
00032 typedef tFList *(*tfDirGetList)(char *);
00033 /* time interface */
00034 typedef double (*tfTimeClock)(void);
00035 
00036 typedef struct {
00037     tfModLoad                   modLoad;
00038     tfModLoadDir                modLoadDir;
00039     tfModUnloadList             modUnloadList;
00040     tfModGetInfo                modInfo;
00041     tfModGetInfoDir             modInfoDir;
00042     tfModFreeInfoList           modFreeInfoList;
00043     tfDirGetList                dirGetList;
00044     tfTimeClock                 timeClock;
00045 } tGfOs;
00046 
00047 #ifdef WIN32
00048 #ifdef TGF_EXPORTS
00049 __declspec(dllexport)
00050 #else // TGF_EXPORTS
00051 __declspec(dllimport)
00052 #endif // TGF_EXPORTS
00053 #endif // WIN32
00054 extern tGfOs GfOs;
00055 
00056 #endif /* _OS__H_ */

Generated at Thu Feb 26 21:52:28 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.