[package] update xmlrpc-c to 1.22.2 (#7250)
[openwrt/svn-archive/archive.git] / libs / ezxml / patches / 400-ezxml_child.patch
1 diff -pruN ezxml-0.8.6.orig/ezxml.h ezxml-0.8.6/ezxml.h
2 --- ezxml-0.8.6.orig/ezxml.h 2008-12-16 17:07:47.585487234 +0100
3 +++ ezxml-0.8.6/ezxml.h 2008-12-16 17:08:29.037939949 +0100
4 @@ -175,6 +175,17 @@ ezxml_t ezxml_insert(ezxml_t xml, ezxml_
5 // removes a tag along with all its subtags
6 #define ezxml_remove(xml) ezxml_free(ezxml_cut(xml))
7
8 +static inline char const * ezxml_child_txt( ezxml_t node, char const *child )
9 +{
10 + return ezxml_txt( ezxml_child( node, child ) );
11 +}
12 +
13 +static inline ezxml_t ezxml_child_set_txt_d( ezxml_t node, char const *child,
14 + char const *value )
15 +{
16 + return ezxml_set_txt_d( ezxml_child( node, child ), value );
17 +}
18 +
19 #ifdef __cplusplus
20 }
21 #endif