diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-02-19 01:29:42 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-02-19 01:29:42 +0000 |
commit | 9d79b05c1f2c89403b83743a24fb7cc095e79a9f (patch) | |
tree | cef2179782087a7fec0eb004d6fe0018b3547136 /pjlib-util/include | |
parent | ccb90a1dea2a33de1b9d4356bb97e8e3d4f4fb47 (diff) |
Added pj_xml_clone()
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@194 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/include')
-rw-r--r-- | pjlib-util/include/pjlib-util/xml.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pjlib-util/include/pjlib-util/xml.h b/pjlib-util/include/pjlib-util/xml.h index a2b1d9eb..f3c58152 100644 --- a/pjlib-util/include/pjlib-util/xml.h +++ b/pjlib-util/include/pjlib-util/xml.h @@ -97,6 +97,17 @@ PJ_DECL(int) pj_xml_print( const pj_xml_node *node, char *buf, pj_size_t len, pj_bool_t include_prolog); /** + * Clone XML node and all subnodes. + * + * @param pool Pool to allocate memory for new nodes. + * @param rhs The node to clone. + * + * @return Cloned XML node, or NULL on fail. + */ +PJ_DECL(pj_xml_node*) pj_xml_clone( pj_pool_t *pool, const pj_xml_node *rhs); + + +/** * Create an empty node. * * @param pool Pool. |