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/errors.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/errors.h')
| -rw-r--r-- | include/git2/errors.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h index 917f0699c..caf9e62b8 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -18,7 +18,7 @@ GIT_BEGIN_DECL /** Generic return codes */ -enum { +typedef enum { GIT_OK = 0, GIT_ERROR = -1, GIT_ENOTFOUND = -3, @@ -35,7 +35,7 @@ enum { GIT_PASSTHROUGH = -30, GIT_ITEROVER = -31, -}; +} git_error_code; typedef struct { char *message; |
