diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
commit | c3a168743616db6606702db5ad0fecab4dfee3da (patch) | |
tree | 523ef1399093917f3565d769826ceecb7eb2ef6c /plugins/Watrack_MPD/src | |
parent | 90ad600cb38a04c9272a3599c72d6559c822b155 (diff) |
Miranda API update
Watrack refactoring, API changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src')
-rwxr-xr-x | plugins/Watrack_MPD/src/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp index dd9a9feea0..13ca0b6396 100755 --- a/plugins/Watrack_MPD/src/main.cpp +++ b/plugins/Watrack_MPD/src/main.cpp @@ -256,14 +256,14 @@ int Parser() tmp[i] = ptr[i]; tmp[i] = '\0'; if(strstr(tmp, "play")) - gbState = WAT_MES_PLAYING; + gbState = WAT_PLS_PLAYING; if(strstr(tmp, "pause")) - gbState = WAT_MES_PAUSED; + gbState = WAT_PLS_PAUSED; if(strstr(tmp, "stop")) - gbState = WAT_MES_STOPPED; + gbState = WAT_PLS_STOPPED; } else if(!gbState) - gbState = WAT_MES_UNKNOWN; + gbState = WAT_PLS_UNKNOWN; return 0; } @@ -297,9 +297,9 @@ LPCHECKPROC CheckPlayer(HWND wnd, int flags) return 0; } if(Parser()) - return (LPCHECKPROC)WAT_MES_STOPPED; + return (LPCHECKPROC)WAT_PLS_STOPPED; if(Connected) - return (LPCHECKPROC)WAT_MES_PLAYING; + return (LPCHECKPROC)WAT_PLS_PLAYING; return 0; } @@ -384,7 +384,7 @@ LPCOMMANDPROC SendCommand(HWND wnd, int command, int value) Netlib_Send(ghConnection, "previous\n", (int)strlen("previous\n"), 0); break; case WAT_CTRL_PLAY: //add resuming support - if(gbState != WAT_MES_PAUSED) + if(gbState != WAT_PLS_PAUSED) Netlib_Send(ghConnection, "play\n", (int)strlen("play\n"), 0); else Netlib_Send(ghConnection, "pause 0\n", (int)strlen("pause 0\n"), 0); |