diff options
author | George Hazan <ghazan@miranda.im> | 2022-05-07 15:00:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-05-07 15:00:02 +0300 |
commit | c4ffab658f422e84259a0a9769f0003b33a013bd (patch) | |
tree | 667448a4911b47f72acbb82a0142e13ddefb3b6d /plugins/Watrack_MPD | |
parent | fd1ca33248519ee530d1d05c6a451c9c63bf4e8a (diff) |
Netlib_OpenConnection - finally old stupid structure NETLIBOPENCONNECTION died and converted into a set of parameters + code cleaning
Diffstat (limited to 'plugins/Watrack_MPD')
-rw-r--r-- | plugins/Watrack_MPD/src/main.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp index fb5d454ab5..821e2f4074 100644 --- a/plugins/Watrack_MPD/src/main.cpp +++ b/plugins/Watrack_MPD/src/main.cpp @@ -24,14 +24,8 @@ SONGINFO SongInfo = {}; void Start(void*) { - NETLIBOPENCONNECTION nloc = {}; - char *tmp = (char*)mir_u2a(gbHost); - nloc.szHost = tmp; - nloc.timeout = 5; - nloc.flags = NLOCF_V2; - nloc.wPort = gbPort; Connected = FALSE; - ghConnection = Netlib_OpenConnection(ghNetlibUser, &nloc); + ghConnection = Netlib_OpenConnection(ghNetlibUser, _T2A(gbHost), gbPort, 5); if (ghConnection) ghPacketReciever = Netlib_CreatePacketReceiver(ghConnection, 2048); } |