diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-23 13:34:33 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-24 13:21:51 +0100 |
commit | 42dee8ecd78a10c91056ac80fdf0c67a4df57337 (patch) | |
tree | d5d34f5a1d91f0d6c14cb598d8a8c11daacf97c0 /include/git2/common.h | |
parent | 0deb534d765cf545f7cd65b9f5e79d344b6fbec0 (diff) | |
download | libgit2-42dee8ecd78a10c91056ac80fdf0c67a4df57337.tar.gz |
settings: use git_buf for returning strings
This survived the last round of culling, as the signature is only in the
comments.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 1dca8e837..a357d98ca 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -161,12 +161,12 @@ typedef enum { * >Set the maximum amount of memory that can be mapped at any time * by the library * - * * opts(GIT_OPT_GET_SEARCH_PATH, int level, char *out, size_t len) + * * opts(GIT_OPT_GET_SEARCH_PATH, int level, git_buf *buf) * * > Get the search path for a given level of config data. "level" must * > be one of `GIT_CONFIG_LEVEL_SYSTEM`, `GIT_CONFIG_LEVEL_GLOBAL`, or * > `GIT_CONFIG_LEVEL_XDG`. The search path is written to the `out` - * > buffer up to size `len`. Returns GIT_EBUFS if buffer is too small. + * > buffer. * * * opts(GIT_OPT_SET_SEARCH_PATH, int level, const char *path) * @@ -210,11 +210,10 @@ typedef enum { * > Get the current bytes in cache and the maximum that would be * > allowed in the cache. * - * * opts(GIT_OPT_GET_TEMPLATE_PATH, char *out, size_t len) + * * opts(GIT_OPT_GET_TEMPLATE_PATH, git_buf *out) * * > Get the default template path. - * > The path is written to the `out` - * > buffer up to size `len`. Returns GIT_EBUFS if buffer is too small. + * > The path is written to the `out` buffer. * * * opts(GIT_OPT_SET_TEMPLATE_PATH, const char *path) * |