|
a/src/upmpd.hxx |
|
b/src/upmpd.hxx |
|
... |
|
... |
25 |
#include "libupnpp/device/device.hxx" // for UpnpDevice, etc
|
25 |
#include "libupnpp/device/device.hxx" // for UpnpDevice, etc
|
26 |
|
26 |
|
27 |
class MPDCli;
|
27 |
class MPDCli;
|
28 |
class MpdStatus;
|
28 |
class MpdStatus;
|
29 |
|
29 |
|
|
|
30 |
extern std::string g_configfilename;
|
|
|
31 |
extern std::string g_sc2mpd_path;
|
|
|
32 |
|
30 |
using namespace UPnPProvider;
|
33 |
using namespace UPnPProvider;
|
31 |
|
34 |
|
32 |
// The UPnP MPD frontend device with its services
|
35 |
// The UPnP MPD frontend device with its services
|
33 |
class UpMpd : public UpnpDevice {
|
36 |
class UpMpd : public UpnpDevice {
|
34 |
public:
|
37 |
public:
|
|
... |
|
... |
45 |
upmpdOwnQueue = 1,
|
48 |
upmpdOwnQueue = 1,
|
46 |
// Export OpenHome services
|
49 |
// Export OpenHome services
|
47 |
upmpdDoOH = 2,
|
50 |
upmpdDoOH = 2,
|
48 |
// Save queue metadata to disk for persistence across restarts
|
51 |
// Save queue metadata to disk for persistence across restarts
|
49 |
// (mpd does it)
|
52 |
// (mpd does it)
|
50 |
upmpdOhMetaPersist = 4
|
53 |
upmpdOhMetaPersist = 4,
|
|
|
54 |
// sc2mpd was found: advertise songcast receiver
|
|
|
55 |
upmpdOhReceiver = 8
|
51 |
};
|
56 |
};
|
52 |
struct Options {
|
57 |
struct Options {
|
53 |
Options() : options(upmpdNone), ohmetasleep(0), schttpport(8888) {}
|
58 |
Options() : options(upmpdNone), ohmetasleep(0), schttpport(8888) {}
|
54 |
unsigned int options;
|
59 |
unsigned int options;
|
55 |
std::string cachefn;
|
60 |
std::string cachefn;
|