summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src/init.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-15 08:18:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-15 08:18:13 +0000
commitda939c25c66bb0add8faf47ce005b06b862fe828 (patch)
treed3b21db0cdfa2fd5dfec958ecf95f8f1b6da5944 /plugins/Watrack_MPD/src/init.cpp
parentd1eea8fde5e87bd79317b923ae61b43b6f9081a4 (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-xplugins/Watrack_MPD/src/init.cpp23
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)
{