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:
21
configure.ac
21
configure.ac
@@ -884,6 +884,27 @@ if test x$enable_mms = xyes; then
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_MMS, test x$enable_mms = xyes)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Neighbor Plugins
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(neighbor-plugins,
|
||||
AS_HELP_STRING([--enable-neighbor-plugins],
|
||||
[enable support for neighbor discovery (default: auto)]),,
|
||||
[enable_neighbor_plugins=auto])
|
||||
|
||||
if test x$enable_neighbor_plugins = xauto; then
|
||||
if test x$enable_smbclient = xyes; then
|
||||
enable_neighbor_plugins=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
if test x$enable_neighbor_plugins = xyes; then
|
||||
AC_DEFINE(ENABLE_NEIGHBOR_PLUGINS, 1,
|
||||
[Define to enable support for neighbor discovery])
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_NEIGHBOR_PLUGINS, test x$enable_neighbor_plugins = xyes)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Archive Plugins
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user