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 #include "svn_types.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif /* __cplusplus */ 00032 00033 /** Get the name of the current user, using @a pool for any necessary 00034 * allocation, returning NULL on error. 00035 * 00036 * @since New in 1.4. 00037 */ 00038 const char * 00039 svn_user_get_name(apr_pool_t *pool); 00040 00041 /** Get the path of the current user's home directory, using @a pool for 00042 * any necessary allocation, returning NULL on error. 00043 * 00044 * @since New in 1.4. 00045 */ 00046 const char * 00047 svn_user_get_homedir(apr_pool_t *pool); 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif /* __cplusplus */ 00052 00053 #endif /* SVN_USER_H */