/usr/include/wbxml_handlers.h is in libwbxml2-dev 0.10.7-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | /*
* libwbxml, the WBXML Library.
* Copyright (C) 2002-2008 Aymerick Jehanne <aymerick@jehanne.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* LGPL v2.1: http://www.gnu.org/copyleft/lesser.txt
*
* Contact: aymerick@jehanne.org
* Home: http://libwbxml.aymerick.com
*/
/**
* @file wbxml_handlers.h
* @ingroup wbxml_parser
*
* @author Aymerick Jehanne <aymerick@jehanne.org>
* @date 02/06/09
*
* @brief WBXML Parser Handlers
*/
#ifndef WBXML_HANDLERS_H
#define WBXML_HANDLERS_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/** @addtogroup wbxml_parser
* @{
*/
/**
* @brief Start Document Handler
* @param ctx User data
* @param charset Charset (The MIBenum from IANA character-sets assignements. See "http://www.iana.org/assignments/character-sets")
* @param lang Language Table for this Document (cf: wbxml_table.[h|c])
*/
typedef void (*WBXMLStartDocumentHandler)(void *ctx, WBXMLCharsetMIBEnum charset, const WBXMLLangEntry *lang);
/**
* @brief End Document handler
* @param ctx User data
*/
typedef void (*WBXMLEndDocumentHandler)(void *ctx);
/**
* @brief Start Element handler
* @param ctx User data
* @param localName The local tag name
* @param atts The attributes attached to the element
* @param empty Set to TRUE if this is an empty element
*/
typedef void (*WBXMLStartElementHandler)(void *ctx, WBXMLTag *localName, WBXMLAttribute **atts, WB_BOOL empty);
/**
* @brief End Element handler
* @param ctx User data
* @param localName The local tag name
* @param empty Set to TRUE if this is an empty element
*/
typedef void (*WBXMLEndElementHandler)(void *ctx, WBXMLTag *localName, WB_BOOL empty);
/**
* @brief Characters handler
* @param ctx User data
* @param ch The characters
* @param start The start position in the array
* @param length The number of characters to read from the array
*/
typedef void (*WBXMLCharactersHandler)(void *ctx, WB_UTINY *ch, WB_ULONG start, WB_ULONG length);
/**
* @brief Processing Instruction Handler
* @param ctx User data
* @param target The processing instruction target.
* @param data The processing instruction data, or null if none was supplied. The data does
* not include any whitespace separating it from the target
*/
typedef void (*WBXMLProcessingInstructionHandler)(void *ctx, const WB_UTINY *target, WB_UTINY *data);
/**
* @brief WBXMLContentHandler structure
*/
typedef struct WBXMLContentHandler_s {
WBXMLStartDocumentHandler start_document_clb; /**< Start Document Handler */
WBXMLEndDocumentHandler end_document_clb; /**< End Document handler */
WBXMLStartElementHandler start_element_clb; /**< Start Element handler */
WBXMLEndElementHandler end_element_clb; /**< End Element handler */
WBXMLCharactersHandler characters_clb; /**< Characters handler */
WBXMLProcessingInstructionHandler pi_clb; /**< Processing Instruction Handler */
} WBXMLContentHandler;
/** @} */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* WBXML_HANDLERS_H */
|