Subversion 1.6.16
|
00001 /** 00002 * @copyright 00003 * ==================================================================== 00004 * Copyright (c) 2000-2004 CollabNet. All rights reserved. 00005 * 00006 * This software is licensed as described in the file COPYING, which 00007 * you should have received as part of this distribution. The terms 00008 * are also available at http://subversion.tigris.org/license-1.html. 00009 * If newer versions of this license are posted there, you may use a 00010 * newer version instead, at your option. 00011 * 00012 * This software consists of voluntary contributions made by many 00013 * individuals. For exact contribution history, see the revision 00014 * history and logs, available at http://subversion.tigris.org/. 00015 * ==================================================================== 00016 * @endcopyright 00017 * 00018 * @file svn_user.h 00019 * @brief Subversion's wrapper around APR's user information interface. 00020 */ 00021 00022 #ifndef SVN_USER_H 00023 #define SVN_USER_H 00024 00025 #include <apr_pools.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif /* __cplusplus */ 00030 00031 /** Get the name of the current user, using @a pool for any necessary 00032 * allocation, returning NULL on error. 00033 * 00034 * @since New in 1.4. 00035 */ 00036 const char * 00037 svn_user_get_name(apr_pool_t *pool); 00038 00039 /** Get the path of the current user's home directory, using @a pool for 00040 * any necessary allocation, returning NULL on error. 00041 * 00042 * @since New in 1.4. 00043 */ 00044 const char * 00045 svn_user_get_homedir(apr_pool_t *pool); 00046 00047 #ifdef __cplusplus 00048 } 00049 #endif /* __cplusplus */ 00050 00051 #endif /* SVN_USER_H */