Closed michaelrsweet closed 1 month ago
Still need to finish documentation, but the core implementation is now done:
[master e676eb3] Implement mxmlOptions APIs to normalize all of the load/save option stuff (Issue #312)
[master db39074] Finalize documentation changes (Issue #312)
The current 4.0 API can be further improved by moving all of the thread-global options/callbacks and call-time load/save callbacks into a common
mxml_options_t
object that can be passed to themxmlLoadXxx
andmxmlSaveXxx
functions. Proposed API is as follows:The string callback functions would remain thread-global since otherwise we'd need to pass the options everywhere or maintain extra pointers in the
mxml_node_t
structure.