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 --- ping_protocol/pingproto.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'ping_protocol/pingproto.cpp') diff --git a/ping_protocol/pingproto.cpp b/ping_protocol/pingproto.cpp index 9412233..eb98e4e 100644 --- a/ping_protocol/pingproto.cpp +++ b/ping_protocol/pingproto.cpp @@ -136,17 +136,18 @@ int GetStatus(WPARAM wParam,LPARAM lParam) } // plugin stuff -PLUGININFO pluginInfo={ - sizeof(PLUGININFO), +PLUGININFOEX pluginInfo={ + sizeof(PLUGININFOEX), "Ping Protocol", - PLUGIN_MAKE_VERSION(0, 4, 0, 0), + PLUGIN_MAKE_VERSION(0, 5, 0, 0), "Ping labelled IP addresses or domain names.", "Scott Ellis", "mail@scottellis.com.au", "© 2005 Scott Ellis", "http://www.scottellis.com.au/", 0, //not transient - 0 //doesn't replace anything built-in + 0, //doesn't replace anything built-in + { 0x9eb87960, 0x61ab, 0x4625, { 0x94, 0xc7, 0xa0, 0xee, 0xd, 0x9, 0x38, 0x85 } } // {9EB87960-61AB-4625-94C7-A0EE0D093885} }; extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) @@ -155,11 +156,18 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese return TRUE; } -extern "C" PINGPROTO_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) +extern "C" PINGPROTO_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } +static const MUUID interfaces[] = {MIID_PROTOCOL, MIID_PING, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) +{ + return interfaces; +} + + int ContactDeleted(WPARAM wParam, LPARAM lParam) { if ( CallService(MS_PROTO_ISPROTOONCONTACT, wParam, (LPARAM)PROTO) ) { CallService(MS_PROTO_REMOVEFROMCONTACT, wParam, (LPARAM)PROTO); -- cgit v1.2.3