mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-22 02:35:32 -05:00
[main/misc] Add misc-function to retrieve enabled buildoptions
This commit is contained in:
35
src/misc.c
35
src/misc.c
@@ -46,6 +46,41 @@
|
||||
#include "misc.h"
|
||||
|
||||
|
||||
static char *buildopts[] =
|
||||
{
|
||||
#ifdef ITUNES
|
||||
"iTunes XML",
|
||||
#endif
|
||||
#ifdef SPOTIFY
|
||||
"Spotify",
|
||||
#endif
|
||||
#ifdef LASTFM
|
||||
"LastFM",
|
||||
#endif
|
||||
#ifdef CHROMECAST
|
||||
"Chromecast",
|
||||
#endif
|
||||
#ifdef MPD
|
||||
"MPD",
|
||||
#endif
|
||||
#ifdef RAOP_VERIFICATION
|
||||
"Device verification",
|
||||
#endif
|
||||
#ifdef HAVE_ALSA
|
||||
"ALSA",
|
||||
#endif
|
||||
#ifdef HAVE_LIBPULSE
|
||||
"Pulseaudio",
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
char **
|
||||
buildopts_get()
|
||||
{
|
||||
return buildopts;
|
||||
}
|
||||
|
||||
int
|
||||
safe_atoi32(const char *str, int32_t *val)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user