added forgotten files
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#define DLL_CLASS_EXPORT __attribute__ ((visibility("default")))
|
||||
#define DLL_CLASS_IMPORT
|
||||
|
||||
#define DLL_GLOBAL_EXPORT extern __attribute ((visibility("default")))
|
||||
#define DLL_GLOBAL_EXPORT __attribute ((visibility("default")))
|
||||
#define DLL_GLOBAL_IMPORT extern
|
||||
|
||||
#endif
|
||||
@@ -50,6 +50,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#define POSIX
|
||||
#endif
|
||||
|
||||
|
||||
#define abstract_class class
|
||||
|
||||
PLATFORM_INTERFACE void Plat_FatalErrorFunc( const char *szFormat, ... );
|
||||
|
||||
@@ -26,11 +26,11 @@ public:
|
||||
static CInterfaceRegistry __Create##interfaceName##_registry( functionName, versionName );
|
||||
|
||||
#define EXPOSE_INTERFACE_GLOBALVAR( className, interfaceName, versionName, globalVarName ) \
|
||||
static void *__Create##interfaceName##_interface() { return ( interfaceName* )( &globalVarName ); }; \
|
||||
static void *__Create##className##_interface() { return ( interfaceName* )( &globalVarName ); }; \
|
||||
static CInterfaceRegistry __Create##interfaceName##_registry( __Create##className##_interface, versionName );
|
||||
|
||||
|
||||
void *CreateInterface( const char *szName, int *pReturnCode );
|
||||
DLL_EXPORT void *CreateInterface( const char *szName, int *pReturnCode );
|
||||
|
||||
CreateInterfaceFn Sys_GetFactory( void *pLibrary );
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ class IFileHandle
|
||||
{
|
||||
public:
|
||||
IFileSystem *m_pFileSystem;
|
||||
|
||||
size_t Write( const void *pData, size_t nDataSize );
|
||||
size_t Read( void *pData, size_t nDataSize );
|
||||
size_t Seek( ESeekMode eSeekMode, size_t nOffset );
|
||||
size_t Tell( void );
|
||||
size_t Size( void );
|
||||
void Close( void );
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -68,19 +59,8 @@ public:
|
||||
void RegisterFileSystem();
|
||||
};
|
||||
|
||||
#define FILESYSTEM_INTERFACE_VERSION "FileSystem001"
|
||||
|
||||
extern IFileSystem *filesystem;
|
||||
extern IFileSystem *g_pFileSystems;
|
||||
|
||||
typedef IFileSystem *( *InstantiateFileSystemFn )( void );
|
||||
class CFileSystemRegistry
|
||||
{
|
||||
public:
|
||||
CFileSystemRegistry( InstantiateFileSystemFn fn, const char *szFileSystem );
|
||||
};
|
||||
|
||||
#define EXPOSE_FILESYSTEM( className, filesystemName ) \
|
||||
static IFileSystem *__Create##className##_filesystem() { return ( IFileSystem* )( new className ); }; \
|
||||
static CFileSystemRegistry __Create##className##_registry( __Create##className##_filesystem, filesystemName );
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user