Switch to unified view

a/libupnpp/device.hxx b/libupnpp/device.hxx
...
...
18
#define _DEVICE_H_X_INCLUDED_
18
#define _DEVICE_H_X_INCLUDED_
19
19
20
#include <unordered_map>
20
#include <unordered_map>
21
#include <functional>
21
#include <functional>
22
22
23
24
#include "soaphelp.hxx"
23
#include "soaphelp.hxx"
25
24
26
class UpnpDevice;
25
class UpnpDevice;
27
26
28
//typedef int (*soapfun)(const SoapArgs&, void *, SoapData&) ;
27
//typedef int (*soapfun)(const SoapArgs&, void *, SoapData&) ;
...
...
32
/** Define a virtual interface to link libupnp operations to a device 
31
/** Define a virtual interface to link libupnp operations to a device 
33
 * implementation 
32
 * implementation 
34
 */
33
 */
35
class UpnpDevice {
34
class UpnpDevice {
36
public:
35
public:
37
    UpnpDevice(const std::string& deviceId);
36
    UpnpDevice(const std::string& deviceId, 
37
               const std::unordered_map<std::string, std::string>& xmlfiles);
38
    void addServiceType(const std::string& serviceId, 
38
    void addServiceType(const std::string& serviceId, 
39
                        const std::string& serviceType);
39
                        const std::string& serviceType);
40
    void addActionMapping(const std::string& actName, soapfun fun);
40
    void addActionMapping(const std::string& actName, soapfun fun);
41
41
42
    /** Called by the library when a control point subscribes, to
42
    /** Called by the library when a control point subscribes, to