From 59853eff99f8e849d3223bb7154e263fa05a88ae Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 23 Jan 2013 02:58:58 +0100 Subject: Global options setter --- include/git2/common.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'include/git2/common.h') 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 -- cgit v1.2.1