| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_DLLINTERFACES |
| 14 |
#define H_FREAC_DLLINTERFACES |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
|
| 18 |
using namespace smooth; |
| 19 |
using namespace smooth::System; |
| 20 |
|
| 21 |
namespace freac |
| 22 |
{ |
| 23 |
class DLLInterfaces |
| 24 |
{ |
| 25 |
private: |
| 26 |
static DynamicLoader *eupdatedll; |
| 27 |
public: |
| 28 |
static Bool LoadEUpdateDLL(); |
| 29 |
static Void FreeEUpdateDLL(); |
| 30 |
}; |
| 31 |
}; |
| 32 |
|
| 33 |
#ifdef __WIN32__ |
| 34 |
|
| 35 |
|
| 36 |
typedef S::Void * (_stdcall *EUCREATEUPDATECONTEXT) (const wchar_t *, const wchar_t *, const wchar_t *); |
| 37 |
typedef S::Bool (_stdcall *EUSETCONFIGFILE) (S::Void *, const wchar_t *); |
| 38 |
typedef S::Bool (_stdcall *EUSETLANGUAGE) (S::Void *, const wchar_t *); |
| 39 |
typedef S::Int (_stdcall *EUFREEUPDATECONTEXT) (S::Void *); |
| 40 |
typedef S::Int (_stdcall *EUCHECKFORNEWUPDATES) (S::Void *, S::Bool); |
| 41 |
typedef S::Void (_stdcall *EUAUTOMATICUPDATE) (S::Void *); |
| 42 |
|
| 43 |
extern EUCREATEUPDATECONTEXT ex_eUpdate_CreateUpdateContext; |
| 44 |
extern EUSETCONFIGFILE ex_eUpdate_SetConfigFile; |
| 45 |
extern EUSETLANGUAGE ex_eUpdate_SetLanguage; |
| 46 |
extern EUFREEUPDATECONTEXT ex_eUpdate_FreeUpdateContext; |
| 47 |
extern EUCHECKFORNEWUPDATES ex_eUpdate_CheckForNewUpdates; |
| 48 |
extern EUAUTOMATICUPDATE ex_eUpdate_AutomaticUpdate; |
| 49 |
#endif |
| 50 |
|
| 51 |
#endif |