Skip to content
Snippets Groups Projects
Commit 089f43d8 authored by Philipp Schafft's avatar Philipp Schafft :lion_face:
Browse files

Feature: Export client history as part of stats XML

parent 5e723d2f
No related branches found
No related tags found
No related merge requests found
......@@ -830,6 +830,15 @@ static inline xmlNodePtr __add_listener(client_t *client,
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment