00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XALAN_TRANSFORMER_DEFINITIONS_HEADER_GUARD_1357924680) 00019 #define XALAN_TRANSFORMER_DEFINITIONS_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/Include/PlatformDefinitions.hpp> 00024 00025 00026 00027 #include <stddef.h> 00028 00029 00030 00031 #if defined(XALAN_BUILD_DLL) 00032 00033 #define XALAN_TRANSFORMER_EXPORT XALAN_PLATFORM_EXPORT 00034 00035 #define XALAN_TRANSFORMER_EXPORT_FUNCTION(T) XALAN_PLATFORM_EXPORT_FUNCTION(T) 00036 00037 #else 00038 00039 #define XALAN_TRANSFORMER_EXPORT XALAN_PLATFORM_IMPORT 00040 00041 #define XALAN_TRANSFORMER_EXPORT_FUNCTION(T) XALAN_PLATFORM_IMPORT_FUNCTION(T) 00042 00043 #endif 00044 00045 #if defined(__cplusplus) 00046 extern "C" 00047 { 00048 #endif 00049 00050 typedef size_t CallbackSizeType; 00051 00052 /** 00053 * Callback function passed to the XalanTransformer APIs. 00054 * Used to process transformation output in blocks of data. 00055 * Caller is responsible for streaming or copying data to a user 00056 * allocated buffer. Caller should not attempt to write to or 00057 * free this data. 00058 * 00059 * The callback should return the number of bytes written, and 00060 * this number should match the length received. Otherwise the 00061 * XalanTransformToHandler function terminates and returns an error status. 00062 * 00063 * static unsigned long xalanOutputHandler(const void* data, unsigned long length, const void *handle); 00064 * 00065 * @param data a block of data 00066 * @param length length of block 00067 * @param handle handle of XalanTransformer instance. 00068 * @return number of bytes written 00069 */ 00070 typedef CallbackSizeType (*XalanOutputHandlerType) (const char*, CallbackSizeType, void*); 00071 00072 /** 00073 * Callback function passed to the XalanTransformer APIs. 00074 * Used to flush the buffer once transform is completed. 00075 * 00076 * static void xalanFlushHandler(const void *handle); 00077 * 00078 * @param handle handle of XalanTransformer instance. 00079 */ 00080 typedef void (*XalanFlushHandlerType) (void*); 00081 00082 #if defined(__cplusplus) 00083 } 00084 #endif 00085 00086 00087 00088 #endif // XALAN_TRANSFORMER_DEFINITIONS_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|