|
a/upmpd/renderctl.cxx |
|
b/upmpd/renderctl.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 "renderctl.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 <stdlib.h> // for atoi
|
25 |
#include <iostream>
|
21 |
#include <upnp/upnp.h> // for UPNP_E_INVALID_PARAM, etc
|
26 |
#include <sstream>
|
22 |
|
27 |
#include <vector>
|
23 |
#include <functional> // for _Bind, bind, _1, _2
|
28 |
#include <functional>
|
24 |
#include <iostream> // for basic_ostream::operator<<, etc
|
29 |
#include <set>
|
25 |
#include <map> // for _Rb_tree_const_iterator, etc
|
|
|
26 |
#include <string> // for string, basic_string
|
|
|
27 |
#include <unordered_map> // for unordered_map, etc
|
|
|
28 |
#include <utility> // for pair
|
|
|
29 |
#include <vector> // for vector
|
|
|
30 |
|
|
|
31 |
#include "libupnpp/log.hxx" // for LOGDEB
|
|
|
32 |
#include "libupnpp/soaphelp.hxx" // for SoapArgs, SoapData, i2s, etc
|
|
|
33 |
|
|
|
34 |
#include "mpdcli.hxx" // for MPDCli, MpdStatus
|
|
|
35 |
#include "upmpd.hxx" // for UpMpd
|
|
|
36 |
#include "upmpdutils.hxx" // for dbvaluetopercent, mapget, etc
|
|
|
37 |
|
30 |
using namespace std;
|
38 |
using namespace std;
|
31 |
using namespace std::placeholders;
|
39 |
using namespace std::placeholders;
|
32 |
|
|
|
33 |
#include "libupnpp/upnpplib.hxx"
|
|
|
34 |
#include "libupnpp/soaphelp.hxx"
|
|
|
35 |
#include "libupnpp/log.hxx"
|
|
|
36 |
#include "libupnpp/device/device.hxx"
|
|
|
37 |
|
|
|
38 |
#include "upmpd.hxx"
|
|
|
39 |
#include "renderctl.hxx"
|
|
|
40 |
#include "mpdcli.hxx"
|
|
|
41 |
#include "upmpdutils.hxx"
|
|
|
42 |
|
|
|
43 |
using namespace UPnPP;
|
40 |
using namespace UPnPP;
|
44 |
|
41 |
|
45 |
static const string
|
42 |
static const string
|
46 |
sTpRender("urn:schemas-upnp-org:service:RenderingControl:1");
|
43 |
sTpRender("urn:schemas-upnp-org:service:RenderingControl:1");
|
47 |
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
|
44 |
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
|