diff options
Diffstat (limited to 'db3x_autobackups/init.c')
-rw-r--r-- | db3x_autobackups/init.c | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/db3x_autobackups/init.c b/db3x_autobackups/init.c index a515d90..ae2e7fa 100644 --- a/db3x_autobackups/init.c +++ b/db3x_autobackups/init.c @@ -22,8 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "commonheaders.h"
-#include "database.h"
-#include <m_plugins.h>
struct MM_INTERFACE mmi;
struct LIST_INTERFACE li;
@@ -135,11 +133,10 @@ static int UnloadDatabase(int wasLoaded) static int getFriendlyName( char * buf, size_t cch, int shortName )
{
- strncpy(buf,shortName ? "db3x driver" : "db3x database support",cch);
+ strncpy(buf,shortName ? "db3x mmap driver" : "db3x mmap database support",cch);
return 0;
}
-
static DATABASELINK dblink = {
sizeof(DATABASELINK),
getCapability,
@@ -150,41 +147,24 @@ static DATABASELINK dblink = { UnloadDatabase,
};
-/*
static PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Miranda database driver",
- PLUGIN_MAKE_VERSION(0,6,0,1),
- "Provides Miranda database support: global settings, contacts, history, settings per contact.",
+ "Miranda mmap database driver - with AutoBackups",
+ __VERSION_DWORD,
+ "Provides Miranda database support and backup functionality",
"Miranda-IM project",
- "ghazan@miranda-im.org",
- "Copyright 2000-2006 Miranda IM project",
+ "bio@msx.ru; ghazan@miranda-im.org; mail@scottellis.com.au",
+ "Copyright 2000-2007 Miranda IM project; Autobackups Copyright 2007 Scott Ellis",
"",
0,
DEFMOD_DB,
- {0x1394a3ab, 0x2585, 0x4196, { 0x8f, 0x72, 0xe, 0xae, 0xc2, 0x45, 0xe, 0x11 }} //{1394A3AB-2585-4196-8F72-0EAEC2450E11}
+ { 0x9407902, 0x9b9b, 0x4f14, { 0xba, 0x18, 0xf6, 0x10, 0xbc, 0x1f, 0xde, 0x5f }} // {09407902-9B9B-4f14-BA18-F610BC1FDE5F}
};
-*/
-
-static PLUGININFOEX pluginInfo = {
- sizeof(PLUGININFOEX),
- "Miranda database - with AutoBackups",
- PLUGIN_MAKE_VERSION(0,7,0,0),
- "Provides Miranda database support: global settings, contacts, history, settings per contact.",
- "Miranda-IM project",
- "mail@scottellis.com.au",
- "Copyright 2000-2007 Miranda-IM project",
- "",
- 0,
- DEFMOD_DB,
- //{0x1394a3ab, 0x2585, 0x4196, { 0x8f, 0x72, 0xe, 0xae, 0xc2, 0x45, 0xe, 0x11 }} //{1394A3AB-2585-4196-8F72-0EAEC2450E11}
- { 0x52bbc116, 0x188a, 0x4b55, { 0x9a, 0x4f, 0xf6, 0x84, 0xb3, 0x46, 0x8b, 0x66 } } // {52BBC116-188A-4b55-9A4F-F684B3468B66}
-};
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
{
- g_hInst = hInstDLL;
+ g_hInst=hInstDLL;
return TRUE;
}
@@ -195,25 +175,11 @@ __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved) __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,6,0,15)) {
- MessageBox( NULL, _T("The db3x plugin cannot be loaded. It requires Miranda IM 0.6.0.15 or later."), _T("db3x Plugin"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
return &pluginInfo;
}
-__declspec(dllexport) PLUGININFO * MirandaPluginInfo(DWORD mirandaVersion)
-{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,6,0,15)) {
- MessageBox( NULL, _T("The db3x plugin cannot be loaded. It requires Miranda IM 0.6.0.15 or later."), _T("db3x Plugin"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
- pluginInfo.cbSize = sizeof(PLUGININFO);
- return (PLUGININFO *)&pluginInfo;
-}
-
static const MUUID interfaces[] = {MIID_DATABASE, MIID_LAST};
-__declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
return interfaces;
}
|