summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-26 23:41:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-26 23:41:55 +0000
commit25221b7d2afb70f82eb3805330fd39a6f6708049 (patch)
tree6fdd3eb5c5642788e1f8286385b15535f9a7ec16 /plugins/SecureIM/main.cpp
parentef81e9edc10e2478f514e1fbfb0828ad1e7d8e49 (diff)
mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances.
all related functions moved to mir_core. git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/main.cpp')
-rw-r--r--plugins/SecureIM/main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/SecureIM/main.cpp b/plugins/SecureIM/main.cpp
index de80e12cf0..461d903bd0 100644
--- a/plugins/SecureIM/main.cpp
+++ b/plugins/SecureIM/main.cpp
@@ -1,7 +1,6 @@
#include "commonheaders.h"
PLUGINLINK *pluginLink;
-MM_INTERFACE mmi = {0};
int hLangpack = 0;
extern "C" BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID) {
@@ -27,7 +26,7 @@ MUUID* MirandaPluginInterfaces(void) {
void AddServiceFunction(LPCSTR serviceName, MIRANDASERVICE serviceFunction) {
-
+
g_hService = (HANDLE*) mir_realloc(g_hService,sizeof(HANDLE)*(iService+1));
g_hService[iService] = CreateServiceFunction(serviceName, serviceFunction);
iService++;
@@ -35,7 +34,7 @@ void AddServiceFunction(LPCSTR serviceName, MIRANDASERVICE serviceFunction) {
void AddProtoServiceFunction(LPCSTR serviceName, MIRANDASERVICE serviceFunction) {
-
+
g_hService = (HANDLE*) mir_realloc(g_hService,sizeof(HANDLE)*(iService+1));
g_hService[iService] = CreateProtoServiceFunction(szModuleName, serviceName, serviceFunction);
iService++;
@@ -43,7 +42,7 @@ void AddProtoServiceFunction(LPCSTR serviceName, MIRANDASERVICE serviceFunction)
void AddHookFunction(LPCSTR eventName, MIRANDAHOOK hookFunction) {
-
+
g_hHook = (HANDLE*) mir_realloc(g_hHook,sizeof(HANDLE)*(iHook+1));
g_hHook[iHook] = HookEvent(eventName, hookFunction);
iHook++;
@@ -98,7 +97,6 @@ int __cdecl Load(PLUGINLINK *link) {
}
// get memoryManagerInterface address
- mir_getMMI( &mmi );
//get per-plugin langpack interface
mir_getLP(&pluginInfoEx);
@@ -147,7 +145,7 @@ int __cdecl Load(PLUGINLINK *link) {
// hook events
AddHookFunction(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
- AddHookFunction(ME_SYSTEM_OKTOEXIT, onSystemOKToExit);
+ AddHookFunction(ME_SYSTEM_OKTOEXIT, onSystemOKToExit);
g_hEvent[0] = CreateHookableEvent(MODULENAME"/Disabled");
g_hEvent[1] = CreateHookableEvent(MODULENAME"/Established");
@@ -238,7 +236,7 @@ int __cdecl onModulesLoaded(WPARAM wParam,LPARAM lParam) {
// DBDeleteContactSetting(0, szModuleName, "rsa_pub_4096");
rsa_4096=1;
- }
+ }
if ( !rsa_4096 ) {
unsigned int tID;
@@ -463,7 +461,7 @@ int __cdecl onModulesLoaded(WPARAM wParam,LPARAM lParam) {
g_hMenu[13] = AddMenuItem(sim231[2],110013,NULL,MODULENAME"/MODE_GPG");
g_hMenu[14] = AddMenuItem(sim231[3],110014,NULL,MODULENAME"/MODE_RSA");
}
-
+
// updater plugin support
if(ServiceExists(MS_UPDATE_REGISTERFL)) {
CallService(MS_UPDATE_REGISTERFL, (WPARAM)2445, (LPARAM)&pluginInfoEx);