diff options
author | Vicent Marti <vicent@github.com> | 2014-03-24 13:52:02 +0100 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-03-24 13:52:02 +0100 |
commit | f57cc63811db2717e9ba42e720a75f71557f9451 (patch) | |
tree | bcef5c5d0f5624d720832eb92db5235602f03a00 /include/git2/common.h | |
parent | 0deb534d765cf545f7cd65b9f5e79d344b6fbec0 (diff) | |
parent | 6057c4a038d575ff02cdfce8ad93dfb541e90b2d (diff) | |
download | libgit2-f57cc63811db2717e9ba42e720a75f71557f9451.tar.gz |
Merge pull request #2200 from libgit2/cmn/opts-buf
settings: use git_buf for returning strings
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 1dca8e837..32237efed 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) * @@ -195,7 +195,7 @@ typedef enum { * > across all repositories before libgit2 starts evicting objects * > from the cache. This is a soft limit, in that the library might * > briefly exceed it, but will start aggressively evicting objects - * > from cache when that happens. The default cache size is 256Mb. + * > from cache when that happens. The default cache size is 256MB. * * * opts(GIT_OPT_ENABLE_CACHING, int enabled) * @@ -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) * |