Switch to unified view

a/upmpd/rendering.cxx b/upmpd/rendering.cxx
...
...
45
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
45
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
46
46
47
UpMpdRenderCtl::UpMpdRenderCtl(UpMpd *dev)
47
UpMpdRenderCtl::UpMpdRenderCtl(UpMpd *dev)
48
    : UpnpService(sTpRender, sIdRender, dev), m_dev(dev), m_desiredvolume(-1)
48
    : UpnpService(sTpRender, sIdRender, dev), m_dev(dev), m_desiredvolume(-1)
49
{
49
{
50
    m_dev->addActionMapping("SetMute", 
50
    m_dev->addActionMapping(this, "SetMute", 
51
                            bind(&UpMpdRenderCtl::setMute, this, _1, _2));
51
                            bind(&UpMpdRenderCtl::setMute, this, _1, _2));
52
    m_dev->addActionMapping("GetMute", 
52
    m_dev->addActionMapping(this, "GetMute", 
53
                            bind(&UpMpdRenderCtl::getMute, this, _1, _2));
53
                            bind(&UpMpdRenderCtl::getMute, this, _1, _2));
54
    m_dev->addActionMapping("SetVolume", bind(&UpMpdRenderCtl::setVolume, 
54
    m_dev->addActionMapping(this, "SetVolume", bind(&UpMpdRenderCtl::setVolume, 
55
                                              this, _1, _2, false));
55
                                              this, _1, _2, false));
56
    m_dev->addActionMapping("GetVolume", bind(&UpMpdRenderCtl::getVolume, 
56
    m_dev->addActionMapping(this, "GetVolume", bind(&UpMpdRenderCtl::getVolume, 
57
                                              this, _1, _2, false));
57
                                              this, _1, _2, false));
58
    m_dev->addActionMapping("ListPresets", 
58
    m_dev->addActionMapping(this, "ListPresets", 
59
                            bind(&UpMpdRenderCtl::listPresets, this, _1, _2));
59
                            bind(&UpMpdRenderCtl::listPresets, this, _1, _2));
60
    m_dev->addActionMapping("SelectPreset", 
60
    m_dev->addActionMapping(this, "SelectPreset", 
61
                            bind(&UpMpdRenderCtl::selectPreset, this, _1, _2));
61
                            bind(&UpMpdRenderCtl::selectPreset, this, _1, _2));
62
}
62
}
63
63
64
////////////////////////////////////////////////////
64
////////////////////////////////////////////////////
65
/// RenderingControl methods
65
/// RenderingControl methods