This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/19668 ) Change subject: vty: print program specific attributes in the XML reference ...................................................................... vty: print program specific attributes in the XML reference Change-Id: I1f35368ba9178e1454f2e3ddfcad9d96576143ef Related: SYS#4937 --- M src/vty/command.c 1 file changed, 15 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/68/19668/1 diff --git a/src/vty/command.c b/src/vty/command.c index 6d2bdbe..336622d 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -631,6 +631,21 @@ unsigned int i, j; print_func(data, " <command id='%s'>%s", xml_string, newline); + + /* Print application specific attributes and their description */ + for (i = 0; host.app_info->attr_desc != NULL; i++) { + const struct value_string *vs = &host.app_info->attr_desc[i]; + if (vs->value == 0 && vs->str == NULL) + break; /* array terminator */ + if (~cmd->usrattr & (1 << vs->value)) + continue; /* skip if not set */ + + char *xml_att_desc = xml_escape(vs->str); + print_func(data, " <attribute type='application'>%s</attribute>%s", + xml_att_desc, newline); + talloc_free(xml_att_desc); + } + print_func(data, " <params>%s", newline); for (j = 0; j < vector_count(cmd->strvec); ++j) { -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19668 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I1f35368ba9178e1454f2e3ddfcad9d96576143ef Gerrit-Change-Number: 19668 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200816/f3c6ff73/attachment.htm>