2 * win32_xlate.h : Windows xlate stuff.
\r
4 * ====================================================================
\r
5 * Copyright (c) 2007 CollabNet. All rights reserved.
\r
7 * This software is licensed as described in the file COPYING, which
\r
8 * you should have received as part of this distribution. The terms
\r
9 * are also available at http://subversion.tigris.org/license-1.html.
\r
10 * If newer versions of this license are posted there, you may use a
\r
11 * newer version instead, at your option.
\r
13 * This software consists of voluntary contributions made by many
\r
14 * individuals. For exact contribution history, see the revision
\r
15 * history and logs, available at http://subversion.tigris.org/.
\r
16 * ====================================================================
\r
19 #ifndef SVN_LIBSVN_SUBR_WIN32_XLATE_H
\r
20 #define SVN_LIBSVN_SUBR_WIN32_XLATE_H
\r
24 /* Opaque translation buffer. */
\r
25 typedef struct win32_xlate_t win32_xlate_t;
\r
27 /* Set *XLATE_P to a handle node for converting from FROMPAGE to TOPAGE.
\r
28 Returns APR_EINVAL or APR_ENOTIMPL, if a conversion isn't supported.
\r
29 If fail for any other reason, return the error.
\r
31 Allocate *RET in POOL. */
\r
32 apr_status_t svn_subr__win32_xlate_open(win32_xlate_t **xlate_p,
\r
34 const char *frompage,
\r
37 /* Convert SRC_LENGTH bytes of SRC_DATA in NODE->handle, store the result
\r
38 in *DEST, which is allocated in POOL. */
\r
39 apr_status_t svn_subr__win32_xlate_to_stringbuf(win32_xlate_t *handle,
\r
40 const char *src_data,
\r
41 apr_size_t src_length,
\r
42 svn_stringbuf_t **dest,
\r
47 #endif /* SVN_LIBSVN_SUBR_WIN32_XLATE_H */
\r