diff options
author | Russell Belfer <rb@github.com> | 2013-05-24 10:32:07 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-05-24 10:32:07 -0700 |
commit | 0f1f9833cf13ac8714ec21fcf29d895ff8cbfe24 (patch) | |
tree | 25238e71d03a9d4c29f335dfbae72c5b19e22f72 /include/git2/common.h | |
parent | 5e57cfa1b34374835f03e8d0ea61c338ed5cd9f0 (diff) | |
download | libgit2-0f1f9833cf13ac8714ec21fcf29d895ff8cbfe24.tar.gz |
Add typedefs on some public enums
Apparently this makes things easier to bind in some languages.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index f9e9929ea..1b0e0cb4f 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -103,10 +103,10 @@ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); /** * Combinations of these values describe the capabilities of libgit2. */ -enum { +typedef enum { GIT_CAP_THREADS = ( 1 << 0 ), GIT_CAP_HTTPS = ( 1 << 1 ) -}; +} git_cap_t; /** * Query compile time options for libgit2. @@ -114,12 +114,13 @@ enum { * @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'. + * 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 - * Libgit2 supports the https:// protocol. This requires the open ssl library to be - * found when compiling libgit2. + * Libgit2 supports the https:// protocol. This requires the openssl + * library to be found when compiling libgit2. */ GIT_EXTERN(int) git_libgit2_capabilities(void); |