From 81e8caf42867b65677efe2bffaa52ecff7303c3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jun 2012 13:58:25 +0000 Subject: no more pluginLink in load() git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/gg.c | 6 +++--- protocols/Gadu-Gadu/gg.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/gg.c b/protocols/Gadu-Gadu/gg.c index 778f62eeb1..07e1e0b05b 100644 --- a/protocols/Gadu-Gadu/gg.c +++ b/protocols/Gadu-Gadu/gg.c @@ -42,7 +42,7 @@ static const MUUID interfaces[] = {MIID_PROTOCOL, MIID_LAST}; // Other variables HINSTANCE hInstance; -PLUGINLINK *pluginLink; + XML_API xi; SSL_API si; CLIST_INTERFACE *pcli; @@ -562,12 +562,12 @@ static int gg_proto_uninit(PROTO_INTERFACE *proto) ////////////////////////////////////////////////////////// // When plugin is loaded -int __declspec(dllexport) Load(PLUGINLINK * link) +int __declspec(dllexport) Load(void) { WSADATA wsaData; PROTOCOLDESCRIPTOR pd; - pluginLink = link; + mir_getXI(&xi); mir_getLP(&pluginInfo); diff --git a/protocols/Gadu-Gadu/gg.h b/protocols/Gadu-Gadu/gg.h index 79abb3190e..7f247c553f 100644 --- a/protocols/Gadu-Gadu/gg.h +++ b/protocols/Gadu-Gadu/gg.h @@ -354,7 +354,6 @@ typedef void (__cdecl GGThreadFunc)(void*, void*); ///////////////////////////////////////////////// extern HINSTANCE hInstance; -extern PLUGINLINK *pluginLink; extern CLIST_INTERFACE *pcli; extern list_t g_Instances; -- cgit v1.2.3