mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Feature: Add definition ID to the first child of generated reports
This commit is contained in:
parent
6168573e86
commit
4188bd899f
@ -1288,6 +1288,11 @@ reportxml_t * reportxml_database_build_report(reportxml_database_t *db
|
|||||||
for (i = 0; i < (size_t)count; i++) {
|
for (i = 0; i < (size_t)count; i++) {
|
||||||
child = reportxml_node_get_child(definition, i);
|
child = reportxml_node_get_child(definition, i);
|
||||||
|
|
||||||
|
if (i == 0) {
|
||||||
|
/* Attach definition to the first child only. */
|
||||||
|
reportxml_node_set_attribute(child, "definition", id);
|
||||||
|
}
|
||||||
|
|
||||||
/* we can directly attach as it's a already a copy. */
|
/* we can directly attach as it's a already a copy. */
|
||||||
if (reportxml_node_add_child(attach_to, child) != 0) {
|
if (reportxml_node_add_child(attach_to, child) != 0) {
|
||||||
refobject_unref(definition);
|
refobject_unref(definition);
|
||||||
|
Loading…
Reference in New Issue
Block a user