1 /* zx_ext_pt.h - Decoder extension point macros 2 * Copyright (c) 2010 Sampo Kellomaki (sampo@iki.fi). All Rights Reserved. 3 * See file COPYING for licensing terms. 4 * Included by decoders. Define dummy extention point macros if not already set. 5 * You may consider editing this file for your debugging or other special needs 6 * to insert debug prints or hooks inside parser in various points. */ 7 8 #ifndef ZX_ATTR_DEC_EXT 9 #define ZX_ATTR_DEC_EXT(ss) /* Extension point called just after decoding known attribute */ 10 #endif 11 12 #ifndef ZX_XMLNS_DEC_EXT 13 #define ZX_XMLNS_DEC_EXT(ss) /* Extension point called just after decoding xmlns attribute */ 14 #endif 15 16 #ifndef ZX_UNKNOWN_ATTR_DEC_EXT 17 #define ZX_UNKNOWN_ATTR_DEC_EXT(ss) /* Extension point called just after decoding unknown attr */ 18 #endif 19 20 #ifndef ZX_START_DEC_EXT 21 #define ZX_START_DEC_EXT(x) /* Extension point called just after decoding element name and allocating struct, but before decoding any of the attributes. */ 22 #endif 23 24 #ifndef ZX_END_DEC_EXT 25 #define ZX_END_DEC_EXT(x) /* Extension point called just after decoding the entire element. */ 26 #endif 27 28 #ifndef ZX_START_BODY_DEC_EXT 29 #define ZX_START_BODY_DEC_EXT(x) /* Extension point called just after decoding element tag, including attributes, but before decoding the body of the element. */ 30 #endif 31 32 #ifndef ZX_PI_DEC_EXT 33 #define ZX_PI_DEC_EXT(pi) /* Extension point called just after decoding processing instruction */ 34 #endif 35 36 #ifndef ZX_COMMENT_DEC_EXT 37 #define ZX_COMMENT_DEC_EXT(comment) /* Extension point called just after decoding comment */ 38 #endif 39 40 #ifndef ZX_CONTENT_DEC 41 #define ZX_CONTENT_DEC(ss) /* Extension point called just after decoding string content */ 42 #endif 43 44 #ifndef ZX_UNKNOWN_ELEM_DEC_EXT 45 #define ZX_UNKNOWN_ELEM_DEC_EXT(elem) /* Extension point called just after decoding unknown element */ 46 #endif 47 48 /* EOF - zx_ext_pt.h */ 49