summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-24 10:32:07 -0700
committerRussell Belfer <rb@github.com>2013-05-24 10:32:07 -0700
commit0f1f9833cf13ac8714ec21fcf29d895ff8cbfe24 (patch)
tree25238e71d03a9d4c29f335dfbae72c5b19e22f72 /include/git2/odb_backend.h
parent5e57cfa1b34374835f03e8d0ea61c338ed5cd9f0 (diff)
downloadlibgit2-0f1f9833cf13ac8714ec21fcf29d895ff8cbfe24.tar.gz
Add typedefs on some public enums
Apparently this makes things easier to bind in some languages.
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 4c2493a25..af1e3e5b9 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -59,11 +59,11 @@ GIT_EXTERN(int) git_odb_backend_loose(git_odb_backend **out, const char *objects
GIT_EXTERN(int) git_odb_backend_one_pack(git_odb_backend **out, const char *index_file);
/** Streaming mode */
-enum {
+typedef enum {
GIT_STREAM_RDONLY = (1 << 1),
GIT_STREAM_WRONLY = (1 << 2),
GIT_STREAM_RW = (GIT_STREAM_RDONLY | GIT_STREAM_WRONLY),
-};
+} git_odb_stream_t;
/** A stream to read/write from a backend */
struct git_odb_stream {