summaryrefslogtreecommitdiff
path: root/plugins/Db3x/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-26 13:24:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-26 13:24:23 +0000
commit114f34c23d4def65df398c26a2e4bfb723feeb1e (patch)
tree9dccd58c9d0cb5ed79115b374a7c1168d8f5ba95 /plugins/Db3x/src
parent6956996d9757af785e815de46688ba2a6fb5f8ed (diff)
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
Diffstat (limited to 'plugins/Db3x/src')
-rw-r--r--plugins/Db3x/src/init.cpp48
1 files changed, 1 insertions, 47 deletions
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)