summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/name_day/name_day.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-14 09:35:31 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-14 09:35:31 +0000
commit98cc2fb7669f4fe014c78baca0e71015f63b6191 (patch)
treedfe7582b774cdc4fe01b055757002d76e5e5fce7 /plugins/!NotAdopted/name_day/name_day.cpp
parent14efff8cac3612ae7340e1f3ad791418c941468d (diff)
NameDay: Update with my old changes (still not adopted)
- Ignore diacritict when checking names - Check also own defined name through UserInfoEx - Another small fixes / updates - Add TODO list git-svn-id: http://svn.miranda-ng.org/main/trunk@8970 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/name_day/name_day.cpp')
-rw-r--r--plugins/!NotAdopted/name_day/name_day.cpp42
1 files changed, 28 insertions, 14 deletions
diff --git a/plugins/!NotAdopted/name_day/name_day.cpp b/plugins/!NotAdopted/name_day/name_day.cpp
index 822f6ba439..7ef4b65be8 100644
--- a/plugins/!NotAdopted/name_day/name_day.cpp
+++ b/plugins/!NotAdopted/name_day/name_day.cpp
@@ -2,30 +2,38 @@
* @file Name day plugin
*/
#include <windows.h>
-#include "../../headers_c/newpluginapi.h"
+#include <newpluginapi.h>
#include "name_day_core.h"
static name_day_core_t name_day_core;
-HINSTANCE hInst;
-PLUGINLINK *pluginLink;
+HINSTANCE hInst = NULL;
+PLUGINLINK *pluginLink = NULL;
+
/**
* @brief Plugin info.
*
*/
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
- "Name Day Plugin",
- PLUGIN_MAKE_VERSION(0, 0, 0, 7),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
+ #ifdef _WIN64
+ "Name Day x64",
+ #else
+ "Name Day",
+ #endif
+ PLUGIN_MAKE_VERSION(0, 0, 1, 0),
"The Name Day plugin.",
- "Tibor Szabo",
- "tibor.szabo@gmail.com",
- "© 2005 Tibor Szabo",
- "",
- 0, //not transient
- 0 //doesn't replace anything built-in
+ "Tibor Szabo, Robert Pösel",
+ "robyer@seznam.cz",
+ "© 2005 Tibor Szabo, © 2011 Robert Pösel",
+ "http://code.google.com/p/robyer",
+ UNICODE_AWARE, //not transient
+ 0, //doesn't replace anything built-in
+ // {E3FFE398-7004-46df-9FF1-9E0B8239FDE2}
+ { 0xe3ffe398, 0x7004, 0x46df, { 0x9f, 0xf1, 0x9e, 0xb, 0x82, 0x39, 0xfd, 0xe2 } }
+
};
/**
@@ -43,7 +51,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
* @brief Plugin Info
*
*/
-extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
@@ -66,6 +74,12 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
return 0;
}
+static const MUUID interfaces[] = {MIID_NAMEDAY, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
/**
* @brief Unload
*