Switch to unified view

a/src/ohplaylist.cxx b/src/ohplaylist.cxx
...
...
36
#include "mpdcli.hxx"
36
#include "mpdcli.hxx"
37
#include "upmpd.hxx"
37
#include "upmpd.hxx"
38
#include "upmpdutils.hxx"
38
#include "upmpdutils.hxx"
39
#include "smallut.h"
39
#include "smallut.h"
40
#include "ohproduct.hxx"
40
#include "ohproduct.hxx"
41
#include "protocolinfo.hxx"
41
42
42
using namespace std;
43
using namespace std;
43
using namespace std::placeholders;
44
using namespace std::placeholders;
44
45
45
static const string sTpProduct("urn:av-openhome-org:service:Playlist:1");
46
static const string sTpProduct("urn:av-openhome-org:service:Playlist:1");
...
...
249
    st["TransportState"] =  mpdstatusToTransportState(mpds.state);
250
    st["TransportState"] =  mpdstatusToTransportState(mpds.state);
250
    st["Repeat"] = SoapHelp::i2s(mpds.rept);
251
    st["Repeat"] = SoapHelp::i2s(mpds.rept);
251
    st["Shuffle"] = SoapHelp::i2s(mpds.random);
252
    st["Shuffle"] = SoapHelp::i2s(mpds.random);
252
    st["Id"] = mpds.songid == -1 ? "0" : SoapHelp::i2s(mpds.songid);
253
    st["Id"] = mpds.songid == -1 ? "0" : SoapHelp::i2s(mpds.songid);
253
    st["TracksMax"] = SoapHelp::i2s(tracksmax);
254
    st["TracksMax"] = SoapHelp::i2s(tracksmax);
254
    st["ProtocolInfo"] = g_protocolInfo;
255
    st["ProtocolInfo"] = Protocolinfo::the()->gettext();
255
    makeIdArray(st["IdArray"]);
256
    makeIdArray(st["IdArray"]);
256
257
257
    return true;
258
    return true;
258
}
259
}
259
260
...
...
790
}
791
}
791
792
792
int OHPlaylist::protocolInfo(const SoapIncoming& sc, SoapOutgoing& data)
793
int OHPlaylist::protocolInfo(const SoapIncoming& sc, SoapOutgoing& data)
793
{
794
{
794
    LOGDEB("OHPlaylist::protocolInfo" << endl);
795
    LOGDEB("OHPlaylist::protocolInfo" << endl);
795
    data.addarg("Value", g_protocolInfo);
796
    data.addarg("Value", Protocolinfo::the()->gettext());
796
    return UPNP_E_SUCCESS;
797
    return UPNP_E_SUCCESS;
797
}
798
}