From 114f34c23d4def65df398c26a2e4bfb723feeb1e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Jan 2014 13:24:23 +0000 Subject: even more dumb stub that cannot be loaded at all git-svn-id: http://svn.miranda-ng.org/main/trunk@7902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x/src/init.cpp | 48 +---------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'plugins/Db3x') diff --git a/plugins/Db3x/src/init.cpp b/plugins/Db3x/src/init.cpp index da52a4681c..5daf030203 100644 --- a/plugins/Db3x/src/init.cpp +++ b/plugins/Db3x/src/init.cpp @@ -44,60 +44,14 @@ HINSTANCE g_hInst = NULL; ///////////////////////////////////////////////////////////////////////////////////////// -// returns 0 if the profile is created, EMKPRF* -static int makeDatabase(const TCHAR *profile) -{ - return EMKPRF_CREATEFAILED; -} - -// returns 0 if the given profile has a valid header -static int grokHeader(const TCHAR *profile) -{ - return EGROKPRF_CANTREAD; -} - -// returns 0 if all the APIs are injected otherwise, 1 -static MIDatabase* LoadDatabase(const TCHAR *profile) -{ - return NULL; -} - -static int UnloadDatabase(MIDatabase* db) -{ - return 0; -} - -MIDatabaseChecker* CheckDb(const TCHAR* profile, int *error) -{ - if (error != NULL) *error = EGROKPRF_CANTREAD; - return NULL; -} - -static DATABASELINK dblink = -{ - sizeof(DATABASELINK), - "db3x", - _T("db3x driver"), - makeDatabase, - grokHeader, - LoadDatabase, - UnloadDatabase, - CheckDb -}; - -///////////////////////////////////////////////////////////////////////////////////////// - extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_DATABASE, MIID_LAST}; - extern "C" __declspec(dllexport) int Load(void) { - RegisterDatabasePlugin(&dblink); - return 0; + return 1; } extern "C" __declspec(dllexport) int Unload(void) -- cgit v1.2.3