|
a/upmpd/avtransport.cxx |
|
b/upmpd/avtransport.cxx |
|
... |
|
... |
13 |
* along with this program; if not, write to the
|
13 |
* along with this program; if not, write to the
|
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
|
17 |
|
18 |
#include <stdio.h>
|
18 |
#include "avtransport.hxx"
|
19 |
#include <stdlib.h>
|
|
|
20 |
#include <unistd.h>
|
|
|
21 |
#include <sys/types.h>
|
|
|
22 |
#include <pwd.h>
|
|
|
23 |
|
19 |
|
24 |
#include <string>
|
20 |
#include <upnp/upnp.h> // for UPNP_E_SUCCESS, etc
|
25 |
#include <iostream>
|
21 |
|
26 |
#include <sstream>
|
22 |
#include <functional> // for _Bind, bind, _1, _2
|
27 |
#include <vector>
|
23 |
#include <iostream> // for operator<<, etc
|
28 |
#include <functional>
|
24 |
#include <map> // for map, map<>::const_iterator
|
29 |
#include <set>
|
25 |
#include <utility> // for pair
|
|
|
26 |
|
|
|
27 |
#include "libupnpp/log.hxx" // for LOGDEB, LOGDEB1, LOGERR
|
|
|
28 |
#include "libupnpp/soaphelp.hxx" // for SoapData, SoapArgs, etc
|
|
|
29 |
#include "libupnpp/upnpavutils.hxx" // for upnpduration, etc
|
|
|
30 |
|
|
|
31 |
#include "mpdcli.hxx" // for MpdStatus, MPDCli, etc
|
|
|
32 |
#include "ohplaylist.hxx" // for OHPlaylist
|
|
|
33 |
#include "upmpd.hxx" // for UpMpd, etc
|
|
|
34 |
#include "upmpdutils.hxx" // for didlmake, mapget
|
|
|
35 |
|
30 |
using namespace std;
|
36 |
using namespace std;
|
31 |
using namespace std::placeholders;
|
37 |
using namespace std::placeholders;
|
32 |
|
|
|
33 |
#include "libupnpp/upnpplib.hxx"
|
|
|
34 |
#include "libupnpp/soaphelp.hxx"
|
|
|
35 |
#include "libupnpp/log.hxx"
|
|
|
36 |
#include "libupnpp/upnpavutils.hxx"
|
|
|
37 |
#include "libupnpp/device/device.hxx"
|
|
|
38 |
|
|
|
39 |
#include "upmpd.hxx"
|
|
|
40 |
#include "avtransport.hxx"
|
|
|
41 |
#include "mpdcli.hxx"
|
|
|
42 |
#include "upmpdutils.hxx"
|
|
|
43 |
#include "ohplaylist.hxx"
|
|
|
44 |
|
38 |
|
45 |
static const string sIdTransport("urn:upnp-org:serviceId:AVTransport");
|
39 |
static const string sIdTransport("urn:upnp-org:serviceId:AVTransport");
|
46 |
static const string sTpTransport("urn:schemas-upnp-org:service:AVTransport:1");
|
40 |
static const string sTpTransport("urn:schemas-upnp-org:service:AVTransport:1");
|
47 |
|
41 |
|
48 |
UpMpdAVTransport::UpMpdAVTransport(UpMpd *dev)
|
42 |
UpMpdAVTransport::UpMpdAVTransport(UpMpd *dev)
|