Subversion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
svn_user.h
Go to the documentation of this file.
1 /**
2  * @copyright
3  * ====================================================================
4  * Copyright (c) 2000-2004 CollabNet. All rights reserved.
5  *
6  * This software is licensed as described in the file COPYING, which
7  * you should have received as part of this distribution. The terms
8  * are also available at http://subversion.tigris.org/license-1.html.
9  * If newer versions of this license are posted there, you may use a
10  * newer version instead, at your option.
11  *
12  * This software consists of voluntary contributions made by many
13  * individuals. For exact contribution history, see the revision
14  * history and logs, available at http://subversion.tigris.org/.
15  * ====================================================================
16  * @endcopyright
17  *
18  * @file svn_user.h
19  * @brief Subversion's wrapper around APR's user information interface.
20  */
21 
22 #ifndef SVN_USER_H
23 #define SVN_USER_H
24 
25 #include <apr_pools.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
31 /** Get the name of the current user, using @a pool for any necessary
32  * allocation, returning NULL on error.
33  *
34  * @since New in 1.4.
35  */
36 const char *
37 svn_user_get_name(apr_pool_t *pool);
38 
39 /** Get the path of the current user's home directory, using @a pool for
40  * any necessary allocation, returning NULL on error.
41  *
42  * @since New in 1.4.
43  */
44 const char *
45 svn_user_get_homedir(apr_pool_t *pool);
46 
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50 
51 #endif /* SVN_USER_H */