2 * ra_local.h : shared internal declarations for ra_local module
4 * ====================================================================
5 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
7 * This software is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at http://subversion.tigris.org/license-1.html.
10 * If newer versions of this license are posted there, you may use a
11 * newer version instead, at your option.
13 * This software consists of voluntary contributions made by many
14 * individuals. For exact contribution history, see the revision
15 * history and logs, available at http://subversion.tigris.org/.
16 * ====================================================================
19 #ifndef SVN_LIBSVN_RA_LOCAL_H
20 #define SVN_LIBSVN_RA_LOCAL_H
22 #include <apr_pools.h>
23 #include <apr_tables.h>
25 #include "svn_types.h"
27 #include "svn_repos.h"
32 #endif /* __cplusplus */
37 /* A baton which represents a single ra_local session. */
38 typedef struct svn_ra_local__session_baton_t
40 /* The user accessing the repository. */
43 /* The URL of the session, split into two components. */
44 const char *repos_url
;
45 svn_stringbuf_t
*fs_path
; /* URI-decoded, always with a leading slash. */
47 /* A repository object. */
50 /* The filesystem object associated with REPOS above (for
54 /* The UUID associated with REPOS above (cached) */
57 /* Callbacks/baton passed to svn_ra_open. */
58 const svn_ra_callbacks2_t
*callbacks
;
60 } svn_ra_local__session_baton_t
;
65 /** Private routines **/
70 /* Given a `file://' URL, figure out which portion specifies a
71 repository on local disk, and return that in REPOS_URL (if not
72 NULL); URI-decode and return the remainder (the path *within* the
73 repository's filesystem) in FS_PATH. Open REPOS to the repository
74 root (if not NULL). Allocate the return values in POOL.
75 Currently, we are not expecting to handle `file://hostname/'-type
76 URLs; hostname, in this case, is expected to be the empty string or
79 svn_ra_local__split_URL(svn_repos_t
**repos
,
80 const char **repos_url
,
90 #endif /* __cplusplus */
92 #endif /* SVN_LIBSVN_RA_LOCAL_H */