1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Feature: Also export type="" in stats.xml's <role>s

This commit is contained in:
Philipp Schafft 2014-12-19 11:28:49 +00:00
parent 7093e19523
commit a990756912

View File

@ -878,6 +878,8 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
snprintf(idbuf, sizeof(idbuf), "%lu", auth->id); snprintf(idbuf, sizeof(idbuf), "%lu", auth->id);
role = xmlNewTextChild(authentication, NULL, XMLSTR("role"), NULL); role = xmlNewTextChild(authentication, NULL, XMLSTR("role"), NULL);
xmlSetProp(role, XMLSTR("id"), XMLSTR(idbuf)); xmlSetProp(role, XMLSTR("id"), XMLSTR(idbuf));
if (auth->type)
xmlSetProp(role, XMLSTR("type"), XMLSTR(auth->type));
if (auth->role) if (auth->role)
xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role)); xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role));
if (auth->management_url) if (auth->management_url)