]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: Config and XML tweaks needed for geolocation
authorGeorge Joseph <gjoseph@digium.com>
Sun, 20 Feb 2022 20:16:22 +0000 (13:16 -0700)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 28 Feb 2022 14:29:20 +0000 (08:29 -0600)
commit83372e7ab56e70f727d7b4f8a0bf8c13048d9ebb
treef9b788ad245cf8f501ead863f18394754859c952
parent466a361626df9cd5bdf6f50a0d1d3a2635722bdd
core: Config and XML tweaks needed for geolocation

Added:

Replace a variable in a list:
int ast_variable_list_replace_variable(struct ast_variable **head,
    struct ast_variable *old, struct ast_variable *new);
Added test as well.

Create a "name=value" string from a variable list:
'name1="val1",name2="val2"', etc.
struct ast_str *ast_variable_list_join(
    const struct ast_variable *head, const char *item_separator,
    const char *name_value_separator, const char *quote_char,
    struct ast_str **str);
Added test as well.

Allow the name of an XML element to be changed.
void ast_xml_set_name(struct ast_xml_node *node, const char *name);

Change-Id: I330a5f63dc0c218e0d8dfc0745948d2812141ccb
include/asterisk/config.h
include/asterisk/xml.h
main/config.c
main/xml.c
tests/test_config.c