svn_config.h

Go to the documentation of this file.
00001 /**
00002  * @copyright
00003  * ====================================================================
00004  * Copyright (c) 2000-2008 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_config.h
00019  * @brief Accessing SVN configuration files.
00020  */
00021 
00022 
00023 
00024 #ifndef SVN_CONFIG_H
00025 #define SVN_CONFIG_H
00026 
00027 #include <apr_pools.h>
00028 
00029 #include "svn_types.h"
00030 #include "svn_error.h"
00031 
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif /* __cplusplus */
00036 
00037 
00038 /**************************************************************************
00039  ***                                                                    ***
00040  ***  For a description of the SVN configuration file syntax, see       ***
00041  ***  your ~/.subversion/README, which is written out automatically by  ***
00042  ***  svn_config_ensure().                                              ***
00043  ***                                                                    ***
00044  **************************************************************************/
00045 
00046 
00047 /** Opaque structure describing a set of configuration options. */
00048 typedef struct svn_config_t svn_config_t;
00049 
00050 
00051 /*** Configuration Defines ***/
00052 
00053 /**
00054  * @name Client configuration files strings
00055  * Strings for the names of files, sections, and options in the
00056  * client configuration files.
00057  * @{
00058  */
00059 #define SVN_CONFIG_CATEGORY_SERVERS        "servers"
00060 #define SVN_CONFIG_SECTION_GROUPS               "groups"
00061 #define SVN_CONFIG_SECTION_GLOBAL               "global"
00062 #define SVN_CONFIG_OPTION_HTTP_PROXY_HOST           "http-proxy-host"
00063 #define SVN_CONFIG_OPTION_HTTP_PROXY_PORT           "http-proxy-port"
00064 #define SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME       "http-proxy-username"
00065 #define SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD       "http-proxy-password"
00066 #define SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS     "http-proxy-exceptions"
00067 #define SVN_CONFIG_OPTION_HTTP_TIMEOUT              "http-timeout"
00068 #define SVN_CONFIG_OPTION_HTTP_COMPRESSION          "http-compression"
00069 #define SVN_CONFIG_OPTION_NEON_DEBUG_MASK           "neon-debug-mask"
00070 #define SVN_CONFIG_OPTION_HTTP_AUTH_TYPES           "http-auth-types"
00071 #define SVN_CONFIG_OPTION_SSL_AUTHORITY_FILES       "ssl-authority-files"
00072 #define SVN_CONFIG_OPTION_SSL_TRUST_DEFAULT_CA      "ssl-trust-default-ca"
00073 #define SVN_CONFIG_OPTION_SSL_CLIENT_CERT_FILE      "ssl-client-cert-file"
00074 #define SVN_CONFIG_OPTION_SSL_CLIENT_CERT_PASSWORD  "ssl-client-cert-password"
00075 #define SVN_CONFIG_OPTION_SSL_PKCS11_PROVIDER       "ssl-pkcs11-provider"
00076 #define SVN_CONFIG_OPTION_HTTP_LIBRARY              "http-library"
00077 #define SVN_CONFIG_OPTION_STORE_PASSWORDS           "store-passwords"
00078 #define SVN_CONFIG_OPTION_STORE_PLAINTEXT_PASSWORDS "store-plaintext-passwords"
00079 #define SVN_CONFIG_OPTION_STORE_AUTH_CREDS          "store-auth-creds"
00080 #define SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP  "store-ssl-client-cert-pp"
00081 #define SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT \
00082                                           "store-ssl-client-cert-pp-plaintext"
00083 #define SVN_CONFIG_OPTION_USERNAME                  "username"
00084 
00085 #define SVN_CONFIG_CATEGORY_CONFIG          "config"
00086 #define SVN_CONFIG_SECTION_AUTH                 "auth"
00087 #define SVN_CONFIG_OPTION_PASSWORD_STORES           "password-stores"
00088 /* The majority of options of the "auth" section
00089  * has been moved to SVN_CONFIG_CATEGORY_SERVERS. */
00090 #define SVN_CONFIG_SECTION_HELPERS              "helpers"
00091 #define SVN_CONFIG_OPTION_EDITOR_CMD                "editor-cmd"
00092 #define SVN_CONFIG_OPTION_DIFF_CMD                  "diff-cmd"
00093 #define SVN_CONFIG_OPTION_DIFF3_CMD                 "diff3-cmd"
00094 #define SVN_CONFIG_OPTION_DIFF3_HAS_PROGRAM_ARG     "diff3-has-program-arg"
00095 #define SVN_CONFIG_OPTION_MERGE_TOOL_CMD            "merge-tool-cmd"
00096 #define SVN_CONFIG_SECTION_MISCELLANY           "miscellany"
00097 #define SVN_CONFIG_OPTION_GLOBAL_IGNORES            "global-ignores"
00098 #define SVN_CONFIG_OPTION_LOG_ENCODING              "log-encoding"
00099 #define SVN_CONFIG_OPTION_USE_COMMIT_TIMES          "use-commit-times"
00100 #define SVN_CONFIG_OPTION_TEMPLATE_ROOT             "template-root"
00101 #define SVN_CONFIG_OPTION_ENABLE_AUTO_PROPS         "enable-auto-props"
00102 #define SVN_CONFIG_OPTION_NO_UNLOCK                 "no-unlock"
00103 #define SVN_CONFIG_OPTION_MIMETYPES_FILE            "mime-types-file"
00104 #define SVN_CONFIG_OPTION_PRESERVED_CF_EXTS         "preserved-conflict-file-exts"
00105 #define SVN_CONFIG_OPTION_INTERACTIVE_CONFLICTS     "interactive-conflicts"
00106 #define SVN_CONFIG_SECTION_TUNNELS              "tunnels"
00107 #define SVN_CONFIG_SECTION_AUTO_PROPS           "auto-props"
00108 /** @} */
00109 
00110 /** @name Repository conf directory configuration files strings
00111  * Strings for the names of sections and options in the
00112  * repository conf directory configuration files.
00113  * @{
00114  */
00115 /* For repository svnserve.conf files */
00116 #define SVN_CONFIG_SECTION_GENERAL              "general"
00117 #define SVN_CONFIG_OPTION_ANON_ACCESS               "anon-access"
00118 #define SVN_CONFIG_OPTION_AUTH_ACCESS               "auth-access"
00119 #define SVN_CONFIG_OPTION_PASSWORD_DB               "password-db"
00120 #define SVN_CONFIG_OPTION_REALM                     "realm"
00121 #define SVN_CONFIG_OPTION_AUTHZ_DB                  "authz-db"
00122 #define SVN_CONFIG_SECTION_SASL                 "sasl"
00123 #define SVN_CONFIG_OPTION_USE_SASL                  "use-sasl"
00124 #define SVN_CONFIG_OPTION_MIN_SSF                   "min-encryption"
00125 #define SVN_CONFIG_OPTION_MAX_SSF                   "max-encryption"
00126 
00127 /* For repository password database */
00128 #define SVN_CONFIG_SECTION_USERS                "users"
00129 /** @} */
00130 
00131 /*** Configuration Default Values ***/
00132 
00133 /* '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'. */
00134 /* We want this to be printed on two lines in the generated config file,
00135  * but we don't want the # character to end up in the variable.
00136  */
00137 #define SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_1 \
00138   "*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo"
00139 #define SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_2 \
00140   "*.rej *~ #*# .#* .*.swp .DS_Store"
00141 
00142 #define SVN_CONFIG_DEFAULT_GLOBAL_IGNORES \
00143   SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_1 " " \
00144   SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_2
00145 
00146 #define SVN_CONFIG_TRUE  "TRUE"
00147 #define SVN_CONFIG_FALSE "FALSE"
00148 #define SVN_CONFIG_ASK   "ASK"
00149 
00150 /* Default values for some options. Should be passed as default values
00151  * to svn_config_get and friends, instead of hard-coding the defaults in
00152  * multiple places. */
00153 #define SVN_CONFIG_DEFAULT_OPTION_STORE_PASSWORDS            TRUE
00154 #define SVN_CONFIG_DEFAULT_OPTION_STORE_PLAINTEXT_PASSWORDS  SVN_CONFIG_ASK
00155 #define SVN_CONFIG_DEFAULT_OPTION_STORE_AUTH_CREDS           TRUE
00156 #define SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP   TRUE
00157 #define SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT \
00158                                                              SVN_CONFIG_ASK
00159 
00160 /** Read configuration information from the standard sources and merge it
00161  * into the hash @a *cfg_hash.  If @a config_dir is not NULL it specifies a
00162  * directory from which to read the configuration files, overriding all
00163  * other sources.  Otherwise, first read any system-wide configurations
00164  * (from a file or from the registry), then merge in personal
00165  * configurations (again from file or registry).  The hash and all its data
00166  * are allocated in @a pool.
00167  *
00168  * @a *cfg_hash is a hash whose keys are @c const char * configuration
00169  * categories (@c SVN_CONFIG_CATEGORY_SERVERS,
00170  * @c SVN_CONFIG_CATEGORY_CONFIG, etc.) and whose values are the @c
00171  * svn_config_t * items representing the configuration values for that
00172  * category.
00173  */
00174 svn_error_t *
00175 svn_config_get_config(apr_hash_t **cfg_hash,
00176                       const char *config_dir,
00177                       apr_pool_t *pool);
00178 
00179 
00180 /** Read configuration data from @a file (a file or registry path) into
00181  * @a *cfgp, allocated in @a pool.
00182  *
00183  * If @a file does not exist, then if @a must_exist, return an error,
00184  * otherwise return an empty @c svn_config_t.
00185  */
00186 svn_error_t *
00187 svn_config_read(svn_config_t **cfgp,
00188                 const char *file,
00189                 svn_boolean_t must_exist,
00190                 apr_pool_t *pool);
00191 
00192 /** Like svn_config_read(), but merges the configuration data from @a file
00193  * (a file or registry path) into @a *cfg, which was previously returned
00194  * from svn_config_read().  This function invalidates all value
00195  * expansions in @a cfg, so that the next svn_config_get() takes the
00196  * modifications into account.
00197  */
00198 svn_error_t *
00199 svn_config_merge(svn_config_t *cfg,
00200                  const char *file,
00201                  svn_boolean_t must_exist);
00202 
00203 
00204 /** Find the value of a (@a section, @a option) pair in @a cfg, set @a
00205  * *valuep to the value.
00206  *
00207  * If @a cfg is @c NULL, just sets @a *valuep to @a default_value. If
00208  * the value does not exist, expand and return @a default_value. @a
00209  * default_value can be NULL.
00210  *
00211  * The returned value will be valid at least until the next call to
00212  * svn_config_get(), or for the lifetime of @a default_value. It is
00213  * safest to consume the returned value immediately.
00214  *
00215  * This function may change @a cfg by expanding option values.
00216  */
00217 void
00218 svn_config_get(svn_config_t *cfg,
00219                const char **valuep,
00220                const char *section,
00221                const char *option,
00222                const char *default_value);
00223 
00224 /** Add or replace the value of a (@a section, @a option) pair in @a cfg with
00225  * @a value.
00226  *
00227  * This function invalidates all value expansions in @a cfg.
00228  *
00229  * To remove an option, pass NULL for the @c value.
00230  */
00231 void
00232 svn_config_set(svn_config_t *cfg,
00233                const char *section,
00234                const char *option,
00235                const char *value);
00236 
00237 /** Like svn_config_get(), but for boolean values.
00238  *
00239  * Parses the option as a boolean value. The recognized representations
00240  * are 'TRUE'/'FALSE', 'yes'/'no', 'on'/'off', '1'/'0'; case does not
00241  * matter. Returns an error if the option doesn't contain a known string.
00242  */
00243 svn_error_t *
00244 svn_config_get_bool(svn_config_t *cfg,
00245                     svn_boolean_t *valuep,
00246                     const char *section,
00247                     const char *option,
00248                     svn_boolean_t default_value);
00249 
00250 /** Like svn_config_set(), but for boolean values.
00251  *
00252  * Sets the option to 'TRUE'/'FALSE', depending on @a value.
00253  */
00254 void
00255 svn_config_set_bool(svn_config_t *cfg,
00256                     const char *section,
00257                     const char *option,
00258                     svn_boolean_t value);
00259 
00260 /** Like svn_config_get(), but only for yes/no/ask values.
00261  *
00262  * Parse @a option in @a section and set @a *valuep to one of
00263  * SVN_CONFIG_TRUE, SVN_CONFIG_FALSE, or SVN_CONFIG_ASK.  If there is
00264  * no setting for @a option, then parse @a default_value and set
00265  * @a *valuep accordingly.  If @a default_value is NULL, the result is
00266  * undefined, and may be an error; we recommend that you pass one of
00267  * SVN_CONFIG_TRUE, SVN_CONFIG_FALSE, or SVN_CONFIG_ASK for @a default value.
00268  *
00269  * Valid representations are (at least) "true"/"false", "yes"/"no",
00270  * "on"/"off", "1"/"0", and "ask"; they are case-insensitive.  Return
00271  * an SVN_ERR_BAD_CONFIG_VALUE error if either @a default_value or
00272  * @a option's value is not a valid representation.
00273  *
00274  * @since New in 1.6.
00275  */
00276 svn_error_t *
00277 svn_config_get_yes_no_ask(svn_config_t *cfg,
00278                           const char **valuep,
00279                           const char *section,
00280                           const char *option,
00281                           const char* default_value);
00282 
00283 /** Similar to @c svn_config_section_enumerator2_t, but is not
00284  * provided with a memory pool argument.
00285  *
00286  * See svn_config_enumerate_sections() for the details of this type.
00287  *
00288  * @deprecated Provided for backwards compatibility with the 1.2 API.
00289  */
00290 typedef svn_boolean_t (*svn_config_section_enumerator_t)(const char *name,
00291                                                          void *baton);
00292 
00293 /** Similar to svn_config_enumerate_sections2(), but uses a memory pool of
00294  * @a cfg instead of one that is explicitely provided.
00295  *
00296  * @deprecated Provided for backwards compatibility with the 1.2 API.
00297  */
00298 SVN_DEPRECATED
00299 int
00300 svn_config_enumerate_sections(svn_config_t *cfg,
00301                               svn_config_section_enumerator_t callback,
00302                               void *baton);
00303 
00304 /** A callback function used in enumerating config sections.
00305  *
00306  * See svn_config_enumerate_sections2() for the details of this type.
00307  *
00308  * @since New in 1.3.
00309  */
00310 typedef svn_boolean_t (*svn_config_section_enumerator2_t)(const char *name,
00311                                                           void *baton,
00312                                                           apr_pool_t *pool);
00313 
00314 /** Enumerate the sections, passing @a baton and the current section's name
00315  * to @a callback.  Continue the enumeration if @a callback returns @c TRUE.
00316  * Return the number of times @a callback was called.
00317  *
00318  * ### See kff's comment to svn_config_enumerate2().  It applies to this
00319  * function, too. ###
00320  *
00321  * @a callback's @a name parameter is only valid for the duration of the call.
00322  *
00323  * @since New in 1.3.
00324  */
00325 int
00326 svn_config_enumerate_sections2(svn_config_t *cfg,
00327                                svn_config_section_enumerator2_t callback,
00328                                void *baton, apr_pool_t *pool);
00329 
00330 /** Similar to @c svn_config_enumerator2_t, but is not
00331  * provided with a memory pool argument.
00332  * See svn_config_enumerate() for the details of this type.
00333  *
00334  * @deprecated Provided for backwards compatibility with the 1.2 API.
00335  */
00336 typedef svn_boolean_t (*svn_config_enumerator_t)(const char *name,
00337                                                  const char *value,
00338                                                  void *baton);
00339 
00340 /** Similar to svn_config_enumerate2(), but uses a memory pool of
00341  * @a cfg instead of one that is explicitely provided.
00342  *
00343  * @deprecated Provided for backwards compatibility with the 1.2 API.
00344  */
00345 SVN_DEPRECATED
00346 int
00347 svn_config_enumerate(svn_config_t *cfg,
00348                      const char *section,
00349                      svn_config_enumerator_t callback,
00350                      void *baton);
00351 
00352 
00353 /** A callback function used in enumerating config options.
00354  *
00355  * See svn_config_enumerate2() for the details of this type.
00356  *
00357  * @since New in 1.3.
00358  */
00359 typedef svn_boolean_t (*svn_config_enumerator2_t)(const char *name,
00360                                                   const char *value,
00361                                                   void *baton,
00362                                                   apr_pool_t *pool);
00363 
00364 /** Enumerate the options in @a section, passing @a baton and the current
00365  * option's name and value to @a callback.  Continue the enumeration if
00366  * @a callback returns @c TRUE.  Return the number of times @a callback
00367  * was called.
00368  *
00369  * ### kff asks: A more usual interface is to continue enumerating
00370  *     while @a callback does not return error, and if @a callback does
00371  *     return error, to return the same error (or a wrapping of it)
00372  *     from svn_config_enumerate().  What's the use case for
00373  *     svn_config_enumerate()?  Is it more likely to need to break out
00374  *     of an enumeration early, with no error, than an invocation of
00375  *     @a callback is likely to need to return an error? ###
00376  *
00377  * @a callback's @a name and @a value parameters are only valid for the
00378  * duration of the call.
00379  *
00380  * @since New in 1.3.
00381  */
00382 int
00383 svn_config_enumerate2(svn_config_t *cfg,
00384                       const char *section,
00385                       svn_config_enumerator2_t callback,
00386                       void *baton,
00387                       apr_pool_t *pool);
00388 
00389 /**
00390  * Return @c TRUE if @a section exists in @a cfg, @c FALSE otherwise.
00391  *
00392  * @since New in 1.4.
00393  */
00394 svn_boolean_t
00395 svn_config_has_section(svn_config_t *cfg,
00396                        const char *section);
00397 
00398 /** Enumerate the group @a master_section in @a cfg.  Each variable
00399  * value is interpreted as a list of glob patterns (separated by comma
00400  * and optional whitespace).  Return the name of the first variable
00401  * whose value matches @a key, or @c NULL if no variable matches.
00402  */
00403 const char *
00404 svn_config_find_group(svn_config_t *cfg,
00405                       const char *key,
00406                       const char *master_section,
00407                       apr_pool_t *pool);
00408 
00409 /** Retrieve value corresponding to @a option_name in @a cfg, or
00410  *  return @a default_value if none is found.
00411  *
00412  *  The config will first be checked for a default.
00413  *  If @a server_group is not @c NULL, the config will also be checked
00414  *  for an override in a server group,
00415  *
00416  */
00417 const char *
00418 svn_config_get_server_setting(svn_config_t *cfg,
00419                               const char* server_group,
00420                               const char* option_name,
00421                               const char* default_value);
00422 
00423 /** Retrieve value into @a result_value corresponding to @a option_name for a
00424  *  given @a server_group in @a cfg, or return @a default_value if none is
00425  *  found.
00426  *
00427  *  The config will first be checked for a default, then will be checked for
00428  *  an override in a server group. If the value found is not a valid integer,
00429  *  a @c svn_error_t* will be returned.
00430  */
00431 svn_error_t *
00432 svn_config_get_server_setting_int(svn_config_t *cfg,
00433                                   const char *server_group,
00434                                   const char *option_name,
00435                                   apr_int64_t default_value,
00436                                   apr_int64_t *result_value,
00437                                   apr_pool_t *pool);
00438 
00439 
00440 /** Set @a *valuep according to @a option_name for a given
00441  * @a  server_group in @a cfg, or set to @a default_value if no value is
00442  * specified.
00443  *
00444  * Check first a default, then for an override in a server group.  If
00445  * a value is found but is not a valid boolean, return an
00446  * SVN_ERR_BAD_CONFIG_VALUE error.
00447  *
00448  * @since New in 1.6.
00449  */
00450 svn_error_t *
00451 svn_config_get_server_setting_bool(svn_config_t *cfg,
00452                                    svn_boolean_t *valuep,
00453                                    const char *server_group,
00454                                    const char *option_name,
00455                                    svn_boolean_t default_value);
00456 
00457 
00458 
00459 /** Try to ensure that the user's ~/.subversion/ area exists, and create
00460  * no-op template files for any absent config files.  Use @a pool for any
00461  * temporary allocation.  If @a config_dir is not @c NULL it specifies a
00462  * directory from which to read the config overriding all other sources.
00463  *
00464  * Don't error if something exists but is the wrong kind (for example,
00465  * ~/.subversion exists but is a file, or ~/.subversion/servers exists
00466  * but is a directory).
00467  *
00468  * Also don't error if trying to create something and failing -- it's
00469  * okay for the config area or its contents not to be created.
00470  * However, if creating a config template file succeeds, return an
00471  * error if unable to initialize its contents.
00472  */
00473 svn_error_t *
00474 svn_config_ensure(const char *config_dir,
00475                   apr_pool_t *pool);
00476 
00477 
00478 
00479 
00480 /** Accessing cached authentication data in the user config area.
00481  *
00482  * @defgroup cached_authentication_data Cached authentication data
00483  * @{
00484  */
00485 
00486 
00487 /** A hash-key pointing to a realmstring.  Every file containing
00488  * authentication data should have this key.
00489  */
00490 #define SVN_CONFIG_REALMSTRING_KEY  "svn:realmstring"
00491 
00492 /** Use @a cred_kind and @a realmstring to locate a file within the
00493  * ~/.subversion/auth/ area.  If the file exists, initialize @a *hash
00494  * and load the file contents into the hash, using @a pool.  If the
00495  * file doesn't exist, set @a *hash to NULL.
00496  *
00497  * If @a config_dir is not NULL it specifies a directory from which to
00498  * read the config overriding all other sources.
00499  *
00500  * Besides containing the original credential fields, the hash will
00501  * also contain @c SVN_CONFIG_REALMSTRING_KEY.  The caller can examine
00502  * this value as a sanity-check that the correct file was loaded.
00503  *
00504  * The hashtable will contain <tt>const char *</tt> keys and
00505  * <tt>svn_string_t *</tt> values.
00506  */
00507 svn_error_t *
00508 svn_config_read_auth_data(apr_hash_t **hash,
00509                           const char *cred_kind,
00510                           const char *realmstring,
00511                           const char *config_dir,
00512                           apr_pool_t *pool);
00513 
00514 /** Use @a cred_kind and @a realmstring to create or overwrite a file
00515  * within the ~/.subversion/auth/ area.  Write the contents of @a hash into
00516  * the file.  If @a config_dir is not NULL it specifies a directory to read
00517  * the config overriding all other sources.
00518  *
00519  * Also, add @a realmstring to the file, with key @c
00520  * SVN_CONFIG_REALMSTRING_KEY.  This allows programs (or users) to
00521  * verify exactly which set credentials live within the file.
00522  *
00523  * The hashtable must contain <tt>const char *</tt> keys and
00524  * <tt>svn_string_t *</tt> values.
00525  */
00526 svn_error_t *
00527 svn_config_write_auth_data(apr_hash_t *hash,
00528                            const char *cred_kind,
00529                            const char *realmstring,
00530                            const char *config_dir,
00531                            apr_pool_t *pool);
00532 
00533 /** Put the absolute path to the user's configuration directory,
00534  * or to a file within that directory, into @a *path.
00535  *
00536  * If @a config_dir is not NULL, it must point to an alternative
00537  * config directory location. If it is NULL, the default location
00538  * is used.  If @a fname is not NULL, it must specify the last
00539  * component of the path to be returned. This can be used to create
00540  * a path to any file in the configuration directory.
00541  *
00542  * Do all allocations in @a pool.
00543  *
00544  * Hint:
00545  * To get the user configuration file, pass @c SVN_CONFIG_CATEGORY_CONFIG
00546  * for @a fname. To get the servers configuration file, pass
00547  * @c SVN_CONFIG_CATEGORY_SERVERS for @a fname.
00548  *
00549  * @since New in 1.6.
00550  */
00551 svn_error_t *
00552 svn_config_get_user_config_path(const char **path,
00553                                 const char *config_dir,
00554                                 const char *fname,
00555                                 apr_pool_t *pool);
00556 
00557 /** @} */
00558 
00559 #ifdef __cplusplus
00560 }
00561 #endif /* __cplusplus */
00562 
00563 #endif /* SVN_CONFIG_H */

Generated on Fri Aug 29 04:08:30 2008 for Subversion by  doxygen 1.3.9.1