diff options
Diffstat (limited to 'db3x_autobackups/init.c')
-rw-r--r-- | db3x_autobackups/init.c | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/db3x_autobackups/init.c b/db3x_autobackups/init.c index 11b0f61..a282f0c 100644 --- a/db3x_autobackups/init.c +++ b/db3x_autobackups/init.c @@ -104,19 +104,6 @@ static int grokHeader( char * profile, int * error ) return rc;
}
-static PLUGININFO pluginInfo = {
- sizeof(PLUGININFO),
- "Miranda database - with AutoBackups",
- PLUGIN_MAKE_VERSION(0,6,0,1),
- "Provides Miranda database support: global settings, contacts, history, settings per contact.",
- "Miranda-IM project",
- "mail@scottellis.com.au",
- "Copyright 2000-2005 Miranda-IM project",
- "",
- 0,
- DEFMOD_DB
-};
-
// returns 0 if all the APIs are injected otherwise, 1
static int LoadDatabase( char * profile, void * plink )
{
@@ -164,9 +151,8 @@ static DATABASELINK dblink = { };
/*
-
-static PLUGININFO pluginInfo = {
- sizeof(PLUGININFO),
+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.",
@@ -175,10 +161,27 @@ static PLUGININFO pluginInfo = { "Copyright 2000-2006 Miranda IM project",
"",
0,
- DEFMOD_DB
+ DEFMOD_DB,
+ {0x1394a3ab, 0x2585, 0x4196, { 0x8f, 0x72, 0xe, 0xae, 0xc2, 0x45, 0xe, 0x11 }} //{1394A3AB-2585-4196-8F72-0EAEC2450E11}
};
*/
+
+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-2005 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;
@@ -190,7 +193,7 @@ __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved) return &dblink;
}
-__declspec(dllexport) PLUGININFO * MirandaPluginInfo(DWORD mirandaVersion)
+__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 );
@@ -199,6 +202,12 @@ __declspec(dllexport) PLUGININFO * MirandaPluginInfo(DWORD mirandaVersion) return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_DATABASE, MIID_LAST};
+__declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
int __declspec(dllexport) Load(PLUGINLINK * link)
{
return 1;
|