- fix bug with Intel I9 and Linux
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7125 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 08d9da7d96ca52b06edb7dd47f4eb13bb8dc868e Former-commit-id: 4e4211b7c46423acf5de6d11a3b82ee0a69d3f28
This commit is contained in:
parent
06eb064ec9
commit
2b87c6b689
1 changed files with 11 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
||||||
modinfo.h -- Tools for module interface management
|
modinfo.h -- Tools for module interface management
|
||||||
|
|
||||||
created : Fri Aug 13 22:32:14 CEST 1999
|
created : Fri Aug 13 22:32:14 CEST 1999
|
||||||
copyright : (C) 2008 by Jean-Philippe Meuret
|
copyright : (C) 2008 by Jean-Philippe Meuret
|
||||||
email : jpmeuret@free.fr
|
email : jpmeuret@free.fr
|
||||||
version : $Id$
|
version : $Id$
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
Tools for module interface management.
|
Tools for module interface management.
|
||||||
@author <a href=mailto:jpmeuret@free.fr>Jean-Philippe Meuret</a>
|
@author <a href=mailto:jpmeuret@free.fr>Jean-Philippe Meuret</a>
|
||||||
@version $Id$
|
@version $Id$
|
||||||
*/
|
*/
|
||||||
|
@ -26,14 +26,14 @@
|
||||||
#ifndef __MODINFO__H__
|
#ifndef __MODINFO__H__
|
||||||
#define __MODINFO__H__
|
#define __MODINFO__H__
|
||||||
|
|
||||||
/** Maximum number of interfaces in one "legacy" module
|
/** Maximum number of interfaces in one "legacy" module
|
||||||
(no limit for "Unlimited Number of Interfaces" modules)
|
(no limit for "Unlimited Number of Interfaces" modules)
|
||||||
@see ModList
|
@see ModList
|
||||||
*/
|
*/
|
||||||
#define MAX_MOD_ITF 40
|
#define MAX_MOD_ITF 20
|
||||||
#define GfModInfoDefaultMaxItf MAX_MOD_ITF
|
#define GfModInfoDefaultMaxItf MAX_MOD_ITF
|
||||||
|
|
||||||
/* Name of the module function where run-time informations are exchanged (new scheme)
|
/* Name of the module function where run-time informations are exchanged (new scheme)
|
||||||
This function is called before moduleInitialize if present */
|
This function is called before moduleInitialize if present */
|
||||||
#define GfModInfoWelcomeFuncName "moduleWelcome"
|
#define GfModInfoWelcomeFuncName "moduleWelcome"
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ typedef struct ModWelcomeOut {
|
||||||
unsigned int maxNbItf; /**< Max number of interfaces */
|
unsigned int maxNbItf; /**< Max number of interfaces */
|
||||||
} tModWelcomeOut;
|
} tModWelcomeOut;
|
||||||
|
|
||||||
/** initialisation of the function table
|
/** initialisation of the function table
|
||||||
@see ModInfo
|
@see ModInfo
|
||||||
*/
|
*/
|
||||||
typedef int (*tfModPrivInit)(int index, void *);
|
typedef int (*tfModPrivInit)(int index, void *);
|
||||||
|
@ -71,7 +71,7 @@ typedef struct ModInfo {
|
||||||
int magic; /**< magic number for integrity check */
|
int magic; /**< magic number for integrity check */
|
||||||
} tModInfo;
|
} tModInfo;
|
||||||
|
|
||||||
/** Internal module interface information structure (see GfModInfoDuplicate)
|
/** Internal module interface information structure (see GfModInfoDuplicate)
|
||||||
WARNING: Must have the same fields ; only const-ness may differ */
|
WARNING: Must have the same fields ; only const-ness may differ */
|
||||||
typedef struct ModInfoNC {
|
typedef struct ModInfoNC {
|
||||||
char *name; /**< name of the module (short) (NULL if no module) */
|
char *name; /**< name of the module (short) (NULL if no module) */
|
||||||
|
@ -103,7 +103,7 @@ typedef struct ModList {
|
||||||
} tModList;
|
} tModList;
|
||||||
|
|
||||||
|
|
||||||
/* Interface of module function where run-time informations are exchanged
|
/* Interface of module function where run-time informations are exchanged
|
||||||
This function is called before moduleInitialize if present */
|
This function is called before moduleInitialize if present */
|
||||||
typedef int (*tfModInfoWelcome)(const tModWelcomeIn*, tModWelcomeOut*);
|
typedef int (*tfModInfoWelcome)(const tModWelcomeIn*, tModWelcomeOut*);
|
||||||
|
|
||||||
|
@ -131,8 +131,8 @@ TGF_API void GfModInfoFreeNC(tModInfoNC *array, int maxItf);
|
||||||
TGF_API tModInfoNC* GfModInfoDuplicate(const tModInfo *source, int maxItf);
|
TGF_API tModInfoNC* GfModInfoDuplicate(const tModInfo *source, int maxItf);
|
||||||
|
|
||||||
/* Initialize the module with given handle and library file path */
|
/* Initialize the module with given handle and library file path */
|
||||||
TGF_API int GfModInitialize(tSOHandle soHandle, const char *soPath,
|
TGF_API int GfModInitialize(tSOHandle soHandle, const char *soPath,
|
||||||
unsigned int gfid, tModList **mod);
|
unsigned int gfid, tModList **mod);
|
||||||
|
|
||||||
/* Terminate the module with given handle and library file path */
|
/* Terminate the module with given handle and library file path */
|
||||||
TGF_API int GfModTerminate(tSOHandle soHandle, const char *soPath);
|
TGF_API int GfModTerminate(tSOHandle soHandle, const char *soPath);
|
||||||
|
|
Loading…
Reference in a new issue