diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-09-30 13:52:01 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-09-30 13:52:01 -0700 |
| commit | a70b3c7386aab50a3607731a0db1e69d01e11c73 (patch) | |
| tree | e8a030ddc6532dccf190ab32d0606ff04b7fdf74 /include/git2/config.h | |
| parent | 358a15fd65cdc56ddc02b3ea261851f20c7ac618 (diff) | |
| parent | 107e30e9c58facc3fdafefa7bb17ab6f04ddd2ec (diff) | |
| download | libgit2-a70b3c7386aab50a3607731a0db1e69d01e11c73.tar.gz | |
Merge pull request #436 from libgit2/config-int-types
config: Proper type declarations for 64 bit ints
Diffstat (limited to 'include/git2/config.h')
| -rw-r--r-- | include/git2/config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index bafac6804..36647591a 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -166,7 +166,7 @@ GIT_EXTERN(void) git_config_free(git_config *cfg); * @param out pointer to the variable where the value should be stored * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_get_int(git_config *cfg, const char *name, int *out); +GIT_EXTERN(int) git_config_get_int32(git_config *cfg, const char *name, int32_t *out); /** * Get the value of a long integer config variable. @@ -176,7 +176,7 @@ GIT_EXTERN(int) git_config_get_int(git_config *cfg, const char *name, int *out); * @param out pointer to the variable where the value should be stored * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_get_long(git_config *cfg, const char *name, long long *out); +GIT_EXTERN(int) git_config_get_int64(git_config *cfg, const char *name, int64_t *out); /** * Get the value of a boolean config variable. @@ -212,7 +212,7 @@ GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const c * @param value Integer value for the variable * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value); +GIT_EXTERN(int) git_config_set_int32(git_config *cfg, const char *name, int32_t value); /** * Set the value of a long integer config variable. @@ -222,7 +222,7 @@ GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value) * @param value Long integer value for the variable * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_set_long(git_config *cfg, const char *name, long long value); +GIT_EXTERN(int) git_config_set_int64(git_config *cfg, const char *name, int64_t value); /** * Set the value of a boolean config variable. |
