mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
Feature: Export client history as part of stats XML
This commit is contained in:
parent
f2edcdb0ff
commit
d497412b58
@ -830,6 +830,15 @@ static inline xmlNodePtr __add_listener(client_t *client,
|
|||||||
|
|
||||||
xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR(client_protocol_to_string(client->protocol)));
|
xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR(client_protocol_to_string(client->protocol)));
|
||||||
|
|
||||||
|
do {
|
||||||
|
xmlNodePtr history = xmlNewChild(node, NULL, XMLSTR("history"), NULL);
|
||||||
|
size_t i;
|
||||||
|
|
||||||
|
for (i = 0; i < client->history.fill; i++) {
|
||||||
|
xmlNewTextChild(history, NULL, XMLSTR("mount"), XMLSTR(mount_identifier_get_mount(client->history.history[i])));
|
||||||
|
}
|
||||||
|
} while (0);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user