branch Attitude Adjustment packages
[12.09/packages.git] / libs / ezxml / patches / 202-ezxml_child.patch
1 --- a/ezxml.h
2 +++ b/ezxml.h
3 @@ -175,6 +175,17 @@ ezxml_t ezxml_insert(ezxml_t xml, ezxml_
4  // removes a tag along with all its subtags
5  #define ezxml_remove(xml) ezxml_free(ezxml_cut(xml))
6  
7 +static inline char const * ezxml_child_txt( ezxml_t node, char const *child )
8 +{
9 +       return ezxml_txt( ezxml_child( node, child ) );
10 +}
11 +
12 +static inline ezxml_t ezxml_child_set_txt_d( ezxml_t node, char const *child,
13 +                                       char const *value )
14 +{
15 +       return ezxml_set_txt_d( ezxml_child( node, child ), value );
16 +}
17 +
18  #ifdef __cplusplus
19  }
20  #endif