diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-01-23 02:58:58 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-01-23 02:58:58 +0100 |
commit | 59853eff99f8e849d3223bb7154e263fa05a88ae (patch) | |
tree | bb977fa5d6f2d0aa13884c01a5aaa5294c29fd8a /include/git2/common.h | |
parent | d47c6aabfe8301577a6e4067aacd9ed6782e4035 (diff) | |
download | libgit2-59853eff99f8e849d3223bb7154e263fa05a88ae.tar.gz |
Global options setter
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 7a4c54c10..7e7c7e31f 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -123,6 +123,29 @@ enum { */ GIT_EXTERN(int) git_libgit2_capabilities(void); + +enum { + GIT_OPT_MWINDOW_SIZE, + GIT_OPT_MWINDOW_MAPPED_LIMIT +}; + +/** + * Set or query a library global option + * + * Available options: + * + * opts(GIT_OPT_MWINDOW_SIZE, size_t): + * set the maximum mmap window size + * + * opts(GIT_OPT_MWINDOW_MAPPED_LIMIT, size_t): + * set the maximum amount of memory that can be mapped at any time + * by the library + * + * @param option Option key + * @param ... value to set the option + */ +GIT_EXTERN(void) git_libgit2_opts(int option, ...); + /** @} */ GIT_END_DECL |