|
a/libupnpp/device/device.hxx |
|
b/libupnpp/device/device.hxx |
|
... |
|
... |
47 |
: content(ct), mimetype(mt) {}
|
47 |
: content(ct), mimetype(mt) {}
|
48 |
std::string content;
|
48 |
std::string content;
|
49 |
std::string mimetype;
|
49 |
std::string mimetype;
|
50 |
};
|
50 |
};
|
51 |
|
51 |
|
|
|
52 |
/**
|
52 |
/** Define an interface to link libupnp operations to a device implementation
|
53 |
* Interface to link libupnp operations to a device implementation.
|
|
|
54 |
* libupnp can only support a single root device per instance.
|
53 |
*/
|
55 |
*/
|
54 |
class UpnpDevice {
|
56 |
class UpnpDevice {
|
55 |
public:
|
57 |
public:
|
56 |
/** Construct device object. Do not start it (this is done by the
|
58 |
/** Construct device object. Do not start it (this is done by the
|
57 |
* eventloop() call when everything is set up).
|
59 |
* eventloop() call when everything is set up).
|
58 |
*
|
60 |
*
|
59 |
* @param deviceId uuid for device: "uuid:UUIDvalue"
|
61 |
* @param deviceId uuid for device: "uuid:UUIDvalue"
|
60 |
* @param files for a root device, list of path/content pairs to
|
62 |
* @param files for a root device, list of path/content pairs to
|
61 |
* be added to the virtual directory.
|
63 |
* be added to the virtual directory.
|
|
|
64 |
* The description document *must* be named 'xxx/description.xml'
|
62 |
* The file paths should include a sub-directory component.
|
65 |
* The file paths should include a sub-directory component.
|
63 |
* The list must include the description document, but this will not
|
66 |
* The list must include the description document, but this will not
|
64 |
* be directly served out. Instead a version modified by libupnp
|
67 |
* be directly served out. Instead a version modified by libupnp
|
65 |
* (with URLBase possibly added/edited) will be served from '/'.
|
68 |
* (with URLBase possibly added/edited) will be served from '/'.
|
66 |
* Of course, the list and the paths in description.xml must be
|
69 |
* Of course, the list and the paths in description.xml must be
|