diff options
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 33 |
1 files changed, 22 insertions, 11 deletions
@@ -20,16 +20,19 @@ #define PLUGIN_NAME "juick" HINSTANCE hInst; +HANDLE hAccountsChanges; PLUGINLINK *pluginLink; BOOL bWatrackService = FALSE; static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); extern char *date(); -extern int WaMpdOptInit(WPARAM wParam,LPARAM lParam); +IJabberInterface *JabberInterface[10]; +int JabberAccountsCount = 0; struct MM_INTERFACE mmi; struct UTF8_INTERFACE utfi; + PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), 0, @@ -50,17 +53,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) return TRUE; } + extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - { - static char plugname[52]; - strcpy(plugname, PLUGIN_NAME" ["); - strcat(plugname, date()); - strcat(plugname, " "); - strcat(plugname, __TIME__); - strcat(plugname, "]"); - pluginInfo.shortName = plugname; - } + static char plugname[52]; + strcpy(plugname, PLUGIN_NAME" ["); + strcat(plugname, date()); + strcat(plugname, " "); + strcat(plugname, __TIME__); + strcat(plugname, "]"); + pluginInfo.shortName = plugname; return &pluginInfo; } @@ -83,14 +85,23 @@ void InitVars() { } +extern int JuickOptInit(WPARAM wParam,LPARAM lParam); +extern int GetJabberInterface(WPARAM, LPARAM); static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) { + GetJabberInterface(0,0); + HANDLE hHookOptionInit = HookEvent(ME_OPT_INITIALISE, JuickOptInit); + hAccountsChanges = HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface); return 0; } +extern int GetJabberAPIs(WPARAM, LPARAM); + + + -int __declspec(dllexport) Unload(void) +extern "C" int __declspec(dllexport) Unload(void) { return 0; } |