TortoiseGitMerge: Updated libsvn stuff
[TortoiseGit.git] / src / TortoiseMerge / libsvn_diff / win32_xlate.h
blob6776051d450f4e9b242b7aaf31f7a424fc07177a
1 /*
2 * win32_xlate.h : Windows xlate stuff.
4 * ====================================================================
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 * ====================================================================
24 #ifndef SVN_LIBSVN_SUBR_WIN32_XLATE_H
25 #define SVN_LIBSVN_SUBR_WIN32_XLATE_H
27 #ifdef WIN32
29 /* Opaque translation buffer. */
30 typedef struct win32_xlate_t win32_xlate_t;
32 /* Set *XLATE_P to a handle node for converting from FROMPAGE to TOPAGE.
33 Returns APR_EINVAL or APR_ENOTIMPL, if a conversion isn't supported.
34 If fail for any other reason, return the error.
36 Allocate *RET in POOL. */
37 apr_status_t svn_subr__win32_xlate_open(win32_xlate_t **xlate_p,
38 const char *topage,
39 const char *frompage,
40 apr_pool_t *pool);
42 /* Convert SRC_LENGTH bytes of SRC_DATA in NODE->handle, store the result
43 in *DEST, which is allocated in POOL. */
44 apr_status_t svn_subr__win32_xlate_to_stringbuf(win32_xlate_t *handle,
45 const char *src_data,
46 apr_size_t src_length,
47 svn_stringbuf_t **dest,
48 apr_pool_t *pool);
50 #endif /* WIN32 */
52 #endif /* SVN_LIBSVN_SUBR_WIN32_XLATE_H */