mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-22 04:15:54 -04:00
Feature: Report libigloo version
This commit is contained in:
parent
c5110c992f
commit
57cda00d9b
11
src/admin.c
11
src/admin.c
@ -60,6 +60,8 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#include <igloo/error.h>
|
||||
|
||||
#include "common/net/sock.h"
|
||||
|
||||
#include "admin.h"
|
||||
@ -1773,6 +1775,14 @@ static inline const char *get_speex_version(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline const char *get_igloo_version(void)
|
||||
{
|
||||
const char *version;
|
||||
if (igloo_version_get(&version, NULL, NULL, NULL) != igloo_ERROR_NONE)
|
||||
return NULL;
|
||||
return version;
|
||||
}
|
||||
|
||||
static void command_version (client_t *client, source_t *source, admin_format_t response)
|
||||
{
|
||||
reportxml_t *report = client_get_reportxml("8cdfc150-094d-42f7-9c61-f9fb9a6e07e7", NULL, NULL);
|
||||
@ -1792,6 +1802,7 @@ static void command_version (client_t *client, source_t *source, adm
|
||||
const char *compiletime;
|
||||
const char *runtime;
|
||||
} dependency_versions[] = {
|
||||
{"libigloo", NULL, get_igloo_version()},
|
||||
{"libxml2", LIBXML_DOTTED_VERSION, NULL},
|
||||
#if defined(HAVE_OPENSSL) && defined(OPENSSL_VERSION_TEXT)
|
||||
{"OpenSSL", OPENSSL_VERSION_TEXT, NULL},
|
||||
|
Loading…
Reference in New Issue
Block a user