From 9c6ffd1f25e7a5b23be5fbc719e29af54d75a5b7 Mon Sep 17 00:00:00 2001 From: sje Date: Mon, 19 Mar 2007 01:28:47 +0000 Subject: added GUID's git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@128 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/common.h | 6 +++++- updater/updater.cpp | 22 ++++++++++++++++++---- updater/version.h | 6 +++--- 3 files changed, 26 insertions(+), 8 deletions(-) (limited to 'updater') diff --git a/updater/common.h b/updater/common.h index 3672961..2e63f31 100644 --- a/updater/common.h +++ b/updater/common.h @@ -162,7 +162,7 @@ typedef std::map FilenameMap; extern HINSTANCE hInst; extern PLUGINLINK *pluginLink; -extern PLUGININFO pluginInfo; +extern PLUGININFOEX pluginInfo; extern bool is_idle; @@ -181,6 +181,10 @@ static int __inline NLog(char *msg) { // maximum number of redirects when getting xml data or download files via HTTP #define MAX_REDIRECT_RECURSE 4 +#ifndef MIID_UPDATER +#define MIID_UPDATER {0x4a47b19b, 0xde5a, 0x4436, { 0xab, 0x4b, 0xe1, 0xf3, 0xa0, 0x22, 0x5d, 0xe7}} +#endif + #endif diff --git a/updater/updater.cpp b/updater/updater.cpp index 61e54bc..f07cfbd 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -13,8 +13,8 @@ bool is_idle = false; //#define TESTING // defined here to reduce build time blowout caused by changing common.h -PLUGININFO pluginInfo={ - sizeof(PLUGININFO), +PLUGININFOEX pluginInfo={ + sizeof(PLUGININFOEX), __PLUGIN_NAME, #ifdef TESTING 0x00000001, @@ -27,7 +27,13 @@ PLUGININFO pluginInfo={ __COPYRIGHT, __AUTHORWEB, UNICODE_AWARE, //not transient - 0 //doesn't replace anything built-in + 0, //doesn't replace anything built-in + +#ifdef _UNICODE + { 0x66dceb80, 0x384, 0x4507, { 0x97, 0x74, 0xcc, 0x20, 0xa7, 0xef, 0x1d, 0x6d } } // {66DCEB80-0384-4507-9774-CC20A7EF1D6D} +#else + { 0x37f59333, 0x8c51, 0x4886, { 0x96, 0xdb, 0xb9, 0xd9, 0xe3, 0x7c, 0xad, 0x38 } } // {37F59333-8C51-4886-96DB-B9D9E37CAD38} +#endif }; extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) @@ -36,11 +42,19 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese return TRUE; } -extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } +static const MUUID interfaces[] = {MIID_UPDATER, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) +{ + return interfaces; +} + + + int IdleChanged(WPARAM wParam, LPARAM lParam) { is_idle = (lParam & IDF_ISIDLE); diff --git a/updater/version.h b/updater/version.h index defca3b..0e355e7 100644 --- a/updater/version.h +++ b/updater/version.h @@ -3,9 +3,9 @@ #define __MAJOR_VERSION 0 -#define __MINOR_VERSION 4 -#define __RELEASE_NUM 12 -#define __BUILD_NUM 5 +#define __MINOR_VERSION 5 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 0 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3