summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-01-23 02:58:58 +0100
committerVicent Marti <tanoku@gmail.com>2013-01-23 02:58:58 +0100
commit59853eff99f8e849d3223bb7154e263fa05a88ae (patch)
treebb977fa5d6f2d0aa13884c01a5aaa5294c29fd8a /include/git2/common.h
parentd47c6aabfe8301577a6e4067aacd9ed6782e4035 (diff)
downloadlibgit2-59853eff99f8e849d3223bb7154e263fa05a88ae.tar.gz
Global options setter
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h23
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