first commit
This commit is contained in:
32
include/platform/shared/shared_library.h
Normal file
32
include/platform/shared/shared_library.h
Normal file
@ -0,0 +1,32 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __NSHAREDLIB__
|
||||
#define __NSHAREDLIB__
|
||||
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
|
||||
|
||||
namespace GS {
|
||||
|
||||
/*!
|
||||
@short Shared library interface.
|
||||
@author Emmanuel Julien (ejulien@owloh.com)
|
||||
*/
|
||||
struct ISharedLib
|
||||
{
|
||||
/// Lookup for a function exported by the shared library.
|
||||
virtual void *GetFunctionPointer(const char *s) = 0;
|
||||
|
||||
virtual ~ISharedLib() {}
|
||||
};
|
||||
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __NSHAREDLIB__
|
||||
Reference in New Issue
Block a user