[main/misc] Add misc-function to retrieve enabled buildoptions

This commit is contained in:
chme
2017-09-02 07:30:23 +02:00
parent a04604f693
commit 5d5ed42749
3 changed files with 46 additions and 29 deletions

View File

@@ -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)
{