diff options
| author | Vicent Martà <vicent@github.com> | 2012-08-01 15:18:03 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-08-01 15:18:03 -0700 |
| commit | cf81ded61caa66267be5f27539decae2292ace9a (patch) | |
| tree | c366c6e93b96e2ab6915375d0ab49843475514a3 /include/git2 | |
| parent | 2340b18102eedc73cbbfeca43f0b22e5d4119c38 (diff) | |
| parent | e564e4969c51b585921e1b29627ec2f849e3ff9b (diff) | |
| download | libgit2-cf81ded61caa66267be5f27539decae2292ace9a.tar.gz | |
Merge pull request #849 from scunz/git_caps
Add function to query for compile time settings.
Diffstat (limited to 'include/git2')
| -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 1af045cff..0af37e81f 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -103,6 +103,29 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src); */ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); +/** + * Combinations of these values describe the capabilities of libgit2. + */ +enum { + GIT_CAP_THREADS = ( 1 << 0 ), + GIT_CAP_HTTPS = ( 1 << 1 ) +}; + +/** + * Query compile time options for libgit2. + * + * @return A combination of GIT_CAP_* values. + * + * - GIT_CAP_THREADS + * Libgit2 was compiled with thread support. Note that thread support is still to be seen as a + * 'work in progress'. + * + * - GIT_CAP_HTTPS + * Libgit2 supports the https:// protocol. This requires the open ssl library to be + * found when compiling libgit2. + */ +GIT_EXTERN(int) git_libgit2_capabilities(void); + /** @} */ GIT_END_DECL #endif |
