Switch to unified view

a/upmpd/ohvolume.cxx b/upmpd/ohvolume.cxx
...
...
45
static const string sIdProduct("urn:av-openhome-org:serviceId:Volume");
45
static const string sIdProduct("urn:av-openhome-org:serviceId:Volume");
46
46
47
OHVolume::OHVolume(UpMpd *dev, UpMpdRenderCtl *ctl)
47
OHVolume::OHVolume(UpMpd *dev, UpMpdRenderCtl *ctl)
48
    : UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev), m_ctl(ctl)
48
    : UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev), m_ctl(ctl)
49
{
49
{
50
    dev->addActionMapping("Characteristics", 
50
    dev->addActionMapping(this,"Characteristics", 
51
                          bind(&OHVolume::characteristics, this, _1, _2));
51
                          bind(&OHVolume::characteristics, this, _1, _2));
52
    dev->addActionMapping("SetVolume", 
52
    dev->addActionMapping(this,"SetVolume", 
53
                          bind(&OHVolume::setVolume, this, _1, _2));
53
                          bind(&OHVolume::setVolume, this, _1, _2));
54
    dev->addActionMapping("Volume", 
54
    dev->addActionMapping(this,"Volume", 
55
                          bind(&OHVolume::volume, this, _1, _2));
55
                          bind(&OHVolume::volume, this, _1, _2));
56
    dev->addActionMapping("VolumeInc", 
56
    dev->addActionMapping(this,"VolumeInc", 
57
                          bind(&OHVolume::volumeInc, this, _1, _2));
57
                          bind(&OHVolume::volumeInc, this, _1, _2));
58
    dev->addActionMapping("VolumeDec", 
58
    dev->addActionMapping(this,"VolumeDec", 
59
                          bind(&OHVolume::volumeDec, this, _1, _2));
59
                          bind(&OHVolume::volumeDec, this, _1, _2));
60
    dev->addActionMapping("VolumeLimit", 
60
    dev->addActionMapping(this,"VolumeLimit", 
61
                          bind(&OHVolume::volumeLimit, this, _1, _2));
61
                          bind(&OHVolume::volumeLimit, this, _1, _2));
62
    dev->addActionMapping("Mute", 
62
    dev->addActionMapping(this,"Mute", 
63
                          bind(&OHVolume::mute, this, _1, _2));
63
                          bind(&OHVolume::mute, this, _1, _2));
64
    dev->addActionMapping("SetMute", 
64
    dev->addActionMapping(this,"SetMute", 
65
                          bind(&OHVolume::setMute, this, _1, _2));
65
                          bind(&OHVolume::setMute, this, _1, _2));
66
}
66
}
67
67
68
bool OHVolume::makestate(unordered_map<string, string> &st)
68
bool OHVolume::makestate(unordered_map<string, string> &st)
69
{
69
{