libxode
about
-
docs
-
get
-
faq
-
sf project page
Libxode Application Programmer Interface (API)
Libxode Application Programmer Interface (API)
Keith Minkler
Jabber.com, Inc.
kminkler@jabber.com
Copyright
© 2001 by Keith Minkler
Table of Contents
1.
Memory Pools
Data Structures
xode_pool_new(), and xode_pool_heap() - Creating Memory pools
xode_pool_malloc(), xode_pool_mallocx(), and xode_pool_malloco() - Getting memory from a pool
xode_pool_strdup() - Copying strings with pools
xode_pool_free(), and xode_pool_cleanup() - Freeing Memory Pools
xode_pool_size() - Pool Debugging
2.
String Pools
Data Structures
xode_spool_new(), and xode_spool_frompool() - Creating a new spool object
xode_spooler(), and xode_spool_add() -- Adding strings to the spool
xode_spool_tostr() - Getting the whole string
xode_spools() - Convienence wrapper around spool functions
3.
XML functions and interface
Data Structures
xode_new(), xode_dup(), xode_dup_frompool(), xode_from_str(), and xode_from_file() - xode creation routines
xode_insert_tag(), xode_insert_cdata(), xode_insert_tagnode(), xode_insert_node(), xode_wrap() -- Inserting XML objects into existing xodes
xode_put_attrib(), xode_get_attrib(), xode_put_vattrib(), and xode_get_vattrib() -- Accessing xode attribute items
xode_hide(), xode_hide_attrib(), and xode_free() -- Removing nodes from an xode
xode_get_pool() -- Accessing an xode's memory pool
xode_get_tag(), xode_get_firstattrib(), xode_get_firstchild(), xode_get_lastchild(), xode_get_nextsibling(), xode_get_prevsibling(), and xode_get_parent() -- Retrieving parts of an xode
xode_get_name(), xode_get_data(), xode_get_dataz(), xode_get_type(), xode_has_children(), and xode_has_attribs() -- Getting information from an xode
xode_to_str(), xode_to_prettystr(), xode_to_file(), and xode_cmp() -- Writing xodes to strings
List of Examples
1-1.
xode_pool struct
1-2.
xode_pool_free struct
1-3.
xode_pool_heap struct
1-4.
Creating Memory Pools
1-5.
Getting memory from a pool
1-6.
Copying strings with pools
1-7.
Freeing Memory Pools
1-8.
Pool Debugging
2-1.
xode_spool struct
2-2.
Creating a new spool object
2-3.
Adding strings to the spool
2-4.
Getting the whole string
2-5.
Convienence wrapper around spool functions
3-1.
xode struct
3-2.
xode creation routines
3-3.
Inserting XML objects into existing xodes
3-4.
Accessing xode attribute items
3-5.
Removing nodes from an xode
3-6.
Accessing an xode's memory pool
3-7.
Retrieving parts of an xode
3-8.
Getting information from an xode
3-9.
Writing xodes to strings
Next
Memory Pools
Contact info:
Chris Moyer
or
Keith Minkler