|
Packit |
90a5c9 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
Packit |
90a5c9 |
* contributor license agreements. See the NOTICE file distributed with
|
|
Packit |
90a5c9 |
* this work for additional information regarding copyright ownership.
|
|
Packit |
90a5c9 |
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
Packit |
90a5c9 |
* (the "License"); you may not use this file except in compliance with
|
|
Packit |
90a5c9 |
* the License. You may obtain a copy of the License at
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
90a5c9 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
90a5c9 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
90a5c9 |
* See the License for the specific language governing permissions and
|
|
Packit |
90a5c9 |
* limitations under the License.
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#ifndef MOD_XML2ENC
|
|
Packit |
90a5c9 |
#define MOD_XML2ENC
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#define ENCIO_INPUT 0x01
|
|
Packit |
90a5c9 |
#define ENCIO_OUTPUT 0x02
|
|
Packit |
90a5c9 |
#define ENCIO_INPUT_CHECKS 0x04
|
|
Packit |
90a5c9 |
#define ENCIO (ENCIO_INPUT|ENCIO_OUTPUT|ENCIO_INPUT_CHECKS)
|
|
Packit |
90a5c9 |
#define ENCIO_SKIPTO 0x10
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/* declarations to deal with WIN32 compile-flag-in-source-code crap */
|
|
Packit |
90a5c9 |
#if !defined(WIN32)
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE(type) type
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_NONSTD(type) type
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_DATA
|
|
Packit |
90a5c9 |
#elif defined(XML2ENC_DECLARE_STATIC)
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE(type) type __stdcall
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_NONSTD(type) type
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_DATA
|
|
Packit |
90a5c9 |
#elif defined(XML2ENC_DECLARE_EXPORT)
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE(type) __declspec(dllexport) type __stdcall
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_NONSTD(type) __declspec(dllexport) type
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_DATA __declspec(dllexport)
|
|
Packit |
90a5c9 |
#else
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE(type) __declspec(dllimport) type __stdcall
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_NONSTD(type) __declspec(dllimport) type
|
|
Packit |
90a5c9 |
#define XML2ENC_DECLARE_DATA __declspec(dllimport)
|
|
Packit |
90a5c9 |
#endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APR_DECLARE_OPTIONAL_FN(apr_status_t, xml2enc_charset,
|
|
Packit |
90a5c9 |
(request_rec* r, xmlCharEncoding* enc,
|
|
Packit |
90a5c9 |
const char** cenc));
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APR_DECLARE_OPTIONAL_FN(apr_status_t, xml2enc_filter,
|
|
Packit |
90a5c9 |
(request_rec* r, const char* enc, unsigned int mode));
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APR_DECLARE_EXTERNAL_HOOK(xml2enc, XML2ENC, int, preprocess,
|
|
Packit |
90a5c9 |
(ap_filter_t *f, char** bufp, apr_size_t* bytesp))
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#endif
|