diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-04-19 16:38:52 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@elego.de> | 2011-04-19 16:38:55 +0200 |
commit | e69ac2439f71fed2840ad41922d2d3cc76fb453d (patch) | |
tree | f02824c857fb0772a367b8d9da6b09d826f55b7c /include/git2/config.h | |
parent | a99264bff6bc4a16c335a09dab1b6c6c9a763a10 (diff) | |
download | libgit2-e69ac2439f71fed2840ad41922d2d3cc76fb453d.tar.gz |
config: export git_config_[sg]et_long
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index e1e78858..abf59fa9 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -63,6 +63,16 @@ GIT_EXTERN(void) git_config_free(git_config *cfg); GIT_EXTERN(int) git_config_get_int(git_config *cfg, const char *name, int *out); /** + * Get the value of a long integer config variable. + * + * @param cfg where to look for the variable + * @param name the variable's name + * @param out pointer to the variable where the value should be stored + * @return GIT_SUCCESS on success; error code otherwise + */ +GIT_EXTERN(int) git_config_get_long(git_config *cfg, const char *name, long int *out); + +/** * Get the value of a boolean config variable. * * This function uses the usual C convention of 0 being false and @@ -99,6 +109,16 @@ GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const c GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value); /** + * Set the value of a long integer config variable. + * + * @param cfg where to look for the variable + * @param name the variable's name + * @param out pointer to the variable where the value should be stored + * @return GIT_SUCCESS on success; error code otherwise + */ +GIT_EXTERN(int) git_config_set_long(git_config *cfg, const char *name, long int value); + +/** * Set the value of a boolean config variable. * * @param cfg where to look for the variable |