TORCS  1.3.9
The Open Racing Car Simulator
module.cpp File Reference

Dynamic module API. More...

#include <tgf.h>
#include "os.h"
Include dependency graph for module.cpp:

Go to the source code of this file.

Functions

void gfModInit (void)
 
int GfModLoad (unsigned int gfid, char *dllname, tModList **modlist)
 Load the specified DLLs. More...
 
int GfModLoadDir (unsigned int gfid, char *dir, tModList **modlist)
 Load the DLLs in the specified directory. More...
 
int GfModUnloadList (tModList **modlist)
 Unload the DLLs of a list. More...
 
int GfModInfo (unsigned int gfid, char *dllname, tModList **modlist)
 Get the generic information of the specified DLL. More...
 
int GfModInfoDir (unsigned int gfid, char *dir, int level, tModList **modlist)
 Get the generic module information of the DLLs of the specified directory. More...
 
int GfModFreeInfoList (tModList **modlist)
 Free the info contained in the specified list. More...
 

Detailed Description

Dynamic module API.

This is the interface to load/unload the shared libraries (or DLLs). Two modes are allowed, the access by filename, of the access by the entire directory. When the directory mode is used, the filenames are not known in advance, this allows more flexibility at runtime.

The generic information can be retrieved, without keeping the DLL loaded. The gfid parameter is used to differentiate the modules using different includes. This functionality is not used yet. This API is not used for shared libraries linked staticaly at compilation time.

Author
Bernhard Wymann, Eric Espie
Version
$Id$

Definition in file module.cpp.

Function Documentation

◆ gfModInit()

void gfModInit ( void  )

Definition at line 42 of file module.cpp.