[mpd] add option enable_httpd_plugin

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen
2024-08-08 20:03:06 +02:00
committed by ejurgensen
parent 5e68381fe4
commit 8f3c99ec43
3 changed files with 8 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ static struct evhttp *evhttpd;
static struct evconnlistener *mpd_listener;
static int mpd_sockfd;
static bool mpd_plugin_httpd;
// Virtual path to the default playlist directory
static char *default_pl_dir;
@@ -4859,6 +4860,8 @@ mpd_init(void)
if (pl_dir)
default_pl_dir = safe_asprintf("/file:%s", pl_dir);
mpd_plugin_httpd = cfg_getbool(cfg_getsec(cfg, "mpd"), "enable_httpd_plugin");
/* Handle deprecated config options */
if (0 < cfg_opt_size(cfg_getopt(cfg_getsec(cfg, "mpd"), "allow_modifying_stored_playlists")))
{