mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1476 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -192,6 +192,14 @@ switch_xml_t switch_xml_idx(switch_xml_t xml, int idx)
|
||||
return xml;
|
||||
}
|
||||
|
||||
// returns the value of the requested tag attribute or "" if not found
|
||||
SWITCH_DECLARE(const char *) switch_xml_attr_soft(switch_xml_t xml, const char *attr)
|
||||
{
|
||||
const char *ret = switch_xml_attr(xml, attr);
|
||||
|
||||
return ret ? ret : "";
|
||||
}
|
||||
|
||||
// returns the value of the requested tag attribute or NULL if not found
|
||||
SWITCH_DECLARE(const char *) switch_xml_attr(switch_xml_t xml, const char *attr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user