diff options
author | Vicent Marti <vicent@github.com> | 2014-03-03 12:45:46 +0100 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-03-03 12:45:46 +0100 |
commit | f34b9a5984c1e090d995cd792c4135541a153c7b (patch) | |
tree | beaedbaefb17bafb280d74c22a758d8042a7eb42 /include/git2/common.h | |
parent | 494be429ad2d247a8d1fb2b43b8c715a4b9da663 (diff) | |
parent | ebb3c506fd880a383ea66679865e16e24253cb3a (diff) | |
download | libgit2-f34b9a5984c1e090d995cd792c4135541a153c7b.tar.gz |
Merge pull request #2150 from libgit2/vmg/features
caps: Rename to features to avoid confusion
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 492715447..4b3e02e41 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -94,29 +94,34 @@ GIT_BEGIN_DECL GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); /** - * Combinations of these values describe the capabilities of libgit2. + * Combinations of these values describe the features with which libgit2 + * was compiled */ typedef enum { - GIT_CAP_THREADS = ( 1 << 0 ), - GIT_CAP_HTTPS = ( 1 << 1 ), - GIT_CAP_SSH = ( 1 << 2 ), -} git_cap_t; + GIT_FEATURE_THREADS = (1 << 0), + GIT_FEATURE_HTTPS = (1 << 1), + GIT_FEATURE_SSH = (1 << 2), +} git_feature_t; /** * Query compile time options for libgit2. * - * @return A combination of GIT_CAP_* values. + * @return A combination of GIT_FEATURE_* values. * - * - GIT_CAP_THREADS + * - GIT_FEATURE_THREADS * Libgit2 was compiled with thread support. Note that thread support is * still to be seen as a 'work in progress' - basic object lookups are * believed to be threadsafe, but other operations may not be. * - * - GIT_CAP_HTTPS + * - GIT_FEATURE_HTTPS * Libgit2 supports the https:// protocol. This requires the openssl * library to be found when compiling libgit2. + * + * - GIT_FEATURE_SSH + * Libgit2 supports the SSH protocol for network operations. This requires + * the openssh to be found when compiling libgit2 */ -GIT_EXTERN(int) git_libgit2_capabilities(void); +GIT_EXTERN(int) git_libgit2_features(void); typedef enum { |