neighbor: new subsystem to detect file servers on the local network
This commit adds the NeighborPlugin API which can be used to detect nearby file servers that can be used by input plugins. This list of servers is exported using the new "listneighbors" command. The idle even "neighbor" notifies interested clients when a new neighbor is found or an existing one is lost. There's a lot missing currently: protocol&user documentation, and a way to "mount" remote servers into the music database. Obviously, some code from the UPnP database plugin can be moved to a neighbor plugin.
This commit is contained in:
@@ -77,6 +77,7 @@ enum ConfigOption {
|
||||
CONF_DESPOTIFY_HIGH_BITRATE,
|
||||
CONF_AUDIO_FILTER,
|
||||
CONF_DATABASE,
|
||||
CONF_NEIGHBORS,
|
||||
CONF_MAX
|
||||
};
|
||||
|
||||
|
@@ -77,6 +77,7 @@ const ConfigTemplate config_templates[] = {
|
||||
{ "despotify_high_bitrate", false, false },
|
||||
{ "filter", true, true },
|
||||
{ "database", false, true },
|
||||
{ "neighbors", true, true },
|
||||
};
|
||||
|
||||
static constexpr unsigned n_config_templates =
|
||||
|
Reference in New Issue
Block a user