diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-15 08:18:13 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-15 08:18:13 +0000 |
commit | da939c25c66bb0add8faf47ce005b06b862fe828 (patch) | |
tree | d3b21db0cdfa2fd5dfec958ecf95f8f1b6da5944 /plugins/Watrack_MPD/src/init.cpp | |
parent | d1eea8fde5e87bd79317b923ae61b43b6f9081a4 (diff) |
plusification
git-svn-id: http://svn.miranda-ng.org/main/trunk@4039 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src/init.cpp')
-rwxr-xr-x | plugins/Watrack_MPD/src/init.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/plugins/Watrack_MPD/src/init.cpp b/plugins/Watrack_MPD/src/init.cpp index bfd7199856..13e0b85351 100755 --- a/plugins/Watrack_MPD/src/init.cpp +++ b/plugins/Watrack_MPD/src/init.cpp @@ -21,9 +21,9 @@ HINSTANCE hInst; BOOL bWatrackService = FALSE; int hLangpack = 0; -static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); -extern char *date(); -extern int WaMpdOptInit(WPARAM wParam,LPARAM lParam); +TCHAR *gbHost, *gbPassword; +WORD gbPort; +HANDLE ghNetlibUser; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), @@ -50,13 +50,6 @@ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) return &pluginInfo; } -int __declspec(dllexport) Load() -{ - mir_getLP(&pluginInfo); - HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); - return 0; -} - void InitVars() { gbPort = DBGetContactSettingWord(NULL, szModuleName, "Port", 6600); @@ -66,9 +59,7 @@ void InitVars() gbPassword = UniGetContactSettingUtf(NULL, szModuleName, "Password", _T("")); } - -extern void RegisterPlayer(); -static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) +static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) { HANDLE hHookOptionInit; NETLIBUSER nlu = {0}; @@ -86,6 +77,12 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) return 0; } +int __declspec(dllexport) Load() +{ + mir_getLP(&pluginInfo); + HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); + return 0; +} int __declspec(dllexport) Unload(void) { |