Add config option screceiverstatefile

The screceiverstatefile config option is useful when the Songcast
Receiver should preserve its Songcast Sender information between
restarts and reboots.

If set, the sender uri and metadata will be read from the state file
when initializing the Songcast Receiver service and written to the file
when the SetSender action is invoked on the Receiver service.

Example usage:

screceiverstatefile = /var/lib/upmpdcli/screceiver.state

Example information saved in the state file:

scsenderuri = ohz://239.255.255.250:51972/a92cc9a4-438d-40ea-c015-1224bfeebddf scsendermetadata = <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" \ xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" \ xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item \ id="0" restricted="True"><dc:title>Songcast Sender</dc:title> \ <res protocolInfo="ohz:*:*:u">ohz://239.255.255.250:51972/a92cc9a4-438d-40ea-c015-0023bfeebddf</res><upnp:albumArtURI>http://192.168.178.34:37931/icon</upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>

Jörg Krause Jörg Krause 2018-02-19

changed src/main.cxx
changed src/ohreceiver.cxx
changed src/ohreceiver.hxx
changed src/upmpd.cxx
changed src/upmpd.hxx
changed src/upmpdcli.conf-dist
src/main.cxx Diff Switch to side-by-side view
Loading...
src/ohreceiver.cxx Diff Switch to side-by-side view
Loading...
src/ohreceiver.hxx Diff Switch to side-by-side view
Loading...
src/upmpd.cxx Diff Switch to side-by-side view
Loading...
src/upmpd.hxx Diff Switch to side-by-side view
Loading...
src/upmpdcli.conf-dist Diff Switch to side-by-side view
Loading...