1251881Speter/* 2251881Speter * win32_xlate.h : Windows xlate stuff. 3251881Speter * 4251881Speter * ==================================================================== 5251881Speter * Licensed to the Apache Software Foundation (ASF) under one 6251881Speter * or more contributor license agreements. See the NOTICE file 7251881Speter * distributed with this work for additional information 8251881Speter * regarding copyright ownership. The ASF licenses this file 9251881Speter * to you under the Apache License, Version 2.0 (the 10251881Speter * "License"); you may not use this file except in compliance 11251881Speter * with the License. You may obtain a copy of the License at 12251881Speter * 13251881Speter * http://www.apache.org/licenses/LICENSE-2.0 14251881Speter * 15251881Speter * Unless required by applicable law or agreed to in writing, 16251881Speter * software distributed under the License is distributed on an 17251881Speter * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18251881Speter * KIND, either express or implied. See the License for the 19251881Speter * specific language governing permissions and limitations 20251881Speter * under the License. 21251881Speter * ==================================================================== 22251881Speter */ 23251881Speter 24251881Speter#ifndef SVN_LIBSVN_SUBR_WIN32_XLATE_H 25251881Speter#define SVN_LIBSVN_SUBR_WIN32_XLATE_H 26251881Speter 27251881Speter#ifdef WIN32 28251881Speter 29251881Speter/* Opaque translation buffer. */ 30251881Spetertypedef struct win32_xlate_t win32_xlate_t; 31251881Speter 32251881Speter/* Set *XLATE_P to a handle node for converting from FROMPAGE to TOPAGE. 33251881Speter Returns APR_EINVAL or APR_ENOTIMPL, if a conversion isn't supported. 34251881Speter If fail for any other reason, return the error. 35251881Speter 36251881Speter Allocate *RET in POOL. */ 37251881Speterapr_status_t svn_subr__win32_xlate_open(win32_xlate_t **xlate_p, 38251881Speter const char *topage, 39251881Speter const char *frompage, 40251881Speter apr_pool_t *pool); 41251881Speter 42251881Speter/* Convert SRC_LENGTH bytes of SRC_DATA in NODE->handle, store the result 43251881Speter in *DEST, which is allocated in POOL. */ 44251881Speterapr_status_t svn_subr__win32_xlate_to_stringbuf(win32_xlate_t *handle, 45251881Speter const char *src_data, 46251881Speter apr_size_t src_length, 47251881Speter svn_stringbuf_t **dest, 48251881Speter apr_pool_t *pool); 49251881Speter 50251881Speter#endif /* WIN32 */ 51251881Speter 52251881Speter#endif /* SVN_LIBSVN_SUBR_WIN32_XLATE_H */ 53