From bfe1bd0fc087be44c70904aee0fe4276643d206d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Jul 2012 15:56:25 +0000 Subject: - db3x_mmap is completely moved to a class; - the old nightmare in the core "How to detect a db plugin and load it" is eliminated forever; - databases are the usual plugins now (loadable via Load) - dynamic DATABASELINK registration git-svn-id: http://svn.miranda-ng.org/main/trunk@1082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/plugins.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/modules/plugins/plugins.h') diff --git a/src/modules/plugins/plugins.h b/src/modules/plugins/plugins.h index 64118a45ed..e0466ccc35 100644 --- a/src/modules/plugins/plugins.h +++ b/src/modules/plugins/plugins.h @@ -1,8 +1,7 @@ // returns true if the API exports were good, otherwise, passed in data is returned #define CHECKAPI_NONE 0 -#define CHECKAPI_DB 1 -#define CHECKAPI_CLIST 2 +#define CHECKAPI_CLIST 1 // block these plugins #define DEFMOD_REMOVED_UIPLUGINOPTS 21 @@ -13,8 +12,6 @@ typedef int (__cdecl * Miranda_Plugin_Load) (void); typedef int (__cdecl * Miranda_Plugin_Unload) (void); // version control typedef PLUGININFOEX * (__cdecl * Miranda_Plugin_InfoEx) (DWORD mirandaVersion); -// prototype for databases -typedef DATABASELINK * (__cdecl * Database_Plugin_Info) (void * reserved); // prototype for clists typedef int (__cdecl * CList_Initialise) (void); @@ -25,11 +22,9 @@ struct BASIC_PLUGIN_INFO Miranda_Plugin_Load Load; Miranda_Plugin_Unload Unload; Miranda_Plugin_InfoEx InfoEx; - Database_Plugin_Info DbInfo; CList_Initialise clistlink; PLUGININFOEX * pluginInfo; // must be freed if hInst = = NULL then its a copy MUUID *Interfaces; // array of supported interfaces - DATABASELINK * dblink; // only valid during module being in memory }; #define PCLASS_FAILED 0x1 // not a valid plugin, or API is invalid, pluginname is valid -- cgit v1.2.3