From e69ac2439f71fed2840ad41922d2d3cc76fb453d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 19 Apr 2011 16:38:52 +0200 Subject: [PATCH] config: export git_config_[sg]et_long MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- include/git2/config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/git2/config.h b/include/git2/config.h index e1e78858b..abf59fa9e 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -62,6 +62,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. * @@ -98,6 +108,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. *