]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/include/svn_user.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / include / svn_user.h
1 /**
2  * @copyright
3  * ====================================================================
4  *    Licensed to the Apache Software Foundation (ASF) under one
5  *    or more contributor license agreements.  See the NOTICE file
6  *    distributed with this work for additional information
7  *    regarding copyright ownership.  The ASF licenses this file
8  *    to you under the Apache License, Version 2.0 (the
9  *    "License"); you may not use this file except in compliance
10  *    with the License.  You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  *    Unless required by applicable law or agreed to in writing,
15  *    software distributed under the License is distributed on an
16  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17  *    KIND, either express or implied.  See the License for the
18  *    specific language governing permissions and limitations
19  *    under the License.
20  * ====================================================================
21  * @endcopyright
22  *
23  * @file svn_user.h
24  * @brief Subversion's wrapper around APR's user information interface.
25  */
26
27 #ifndef SVN_USER_H
28 #define SVN_USER_H
29
30 #include <apr_pools.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 /** Get the name of the current user, using @a pool for any necessary
37  * allocation, returning NULL on error.
38  *
39  * @since New in 1.4.
40  */
41 const char *
42 svn_user_get_name(apr_pool_t *pool);
43
44 /** Get the path of the current user's home directory, using @a pool for
45  * any necessary allocation, returning NULL on error.
46  *
47  * @since New in 1.4.
48  */
49 const char *
50 svn_user_get_homedir(apr_pool_t *pool);
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55
56 #endif /* SVN_USER_H */