1251881Speter/**
2251881Speter * @copyright
3251881Speter * ====================================================================
4251881Speter *    Licensed to the Apache Software Foundation (ASF) under one
5251881Speter *    or more contributor license agreements.  See the NOTICE file
6251881Speter *    distributed with this work for additional information
7251881Speter *    regarding copyright ownership.  The ASF licenses this file
8251881Speter *    to you under the Apache License, Version 2.0 (the
9251881Speter *    "License"); you may not use this file except in compliance
10251881Speter *    with the License.  You may obtain a copy of the License at
11251881Speter *
12251881Speter *      http://www.apache.org/licenses/LICENSE-2.0
13251881Speter *
14251881Speter *    Unless required by applicable law or agreed to in writing,
15251881Speter *    software distributed under the License is distributed on an
16251881Speter *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17251881Speter *    KIND, either express or implied.  See the License for the
18251881Speter *    specific language governing permissions and limitations
19251881Speter *    under the License.
20251881Speter * ====================================================================
21251881Speter * @endcopyright
22251881Speter *
23251881Speter * @file svn_user.h
24251881Speter * @brief Subversion's wrapper around APR's user information interface.
25251881Speter */
26251881Speter
27251881Speter#ifndef SVN_USER_H
28251881Speter#define SVN_USER_H
29251881Speter
30251881Speter#include <apr_pools.h>
31251881Speter
32251881Speter#ifdef __cplusplus
33251881Speterextern "C" {
34251881Speter#endif /* __cplusplus */
35251881Speter
36251881Speter/** Get the name of the current user, using @a pool for any necessary
37251881Speter * allocation, returning NULL on error.
38251881Speter *
39251881Speter * @since New in 1.4.
40251881Speter */
41251881Speterconst char *
42251881Spetersvn_user_get_name(apr_pool_t *pool);
43251881Speter
44251881Speter/** Get the path of the current user's home directory, using @a pool for
45251881Speter * any necessary allocation, returning NULL on error.
46251881Speter *
47251881Speter * @since New in 1.4.
48251881Speter */
49251881Speterconst char *
50251881Spetersvn_user_get_homedir(apr_pool_t *pool);
51251881Speter
52251881Speter#ifdef __cplusplus
53251881Speter}
54251881Speter#endif /* __cplusplus */
55251881Speter
56251881Speter#endif /* SVN_USER_H */
57