diff options
author | Keith Dahlby <dahlbyk@gmail.com> | 2012-12-02 02:26:31 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-12-05 17:26:57 +0400 |
commit | ac4801ca51f8047bb6a1d06e804eb8b5e381b965 (patch) | |
tree | fffe2746f2d6e557e27733dc3a9e6ad7dd5887f1 /LibGit2Sharp/OdbBackend.cs | |
parent | a9dc96946aae73ba7ed177e73c5ea8652da2bf35 (diff) |
Add ReadStream callback to OdbBackend
Diffstat (limited to 'LibGit2Sharp/OdbBackend.cs')
-rw-r--r-- | LibGit2Sharp/OdbBackend.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LibGit2Sharp/OdbBackend.cs b/LibGit2Sharp/OdbBackend.cs index f0716884..18164699 100644 --- a/LibGit2Sharp/OdbBackend.cs +++ b/LibGit2Sharp/OdbBackend.cs @@ -143,6 +143,11 @@ namespace LibGit2Sharp nativeBackend.ReadHeader = BackendEntryPoints.ReadHeaderCallback; } + if ((supportedOperations & OdbBackendOperations.ReadStream) != 0) + { + nativeBackend.ReadStream = BackendEntryPoints.ReadStreamCallback; + } + if ((supportedOperations & OdbBackendOperations.Write) != 0) { nativeBackend.Write = BackendEntryPoints.WriteCallback; @@ -181,6 +186,7 @@ namespace LibGit2Sharp public static GitOdbBackend.read_callback ReadCallback = new GitOdbBackend.read_callback(Read); public static GitOdbBackend.read_prefix_callback ReadPrefixCallback = new GitOdbBackend.read_prefix_callback(ReadPrefix); public static GitOdbBackend.read_header_callback ReadHeaderCallback = new GitOdbBackend.read_header_callback(ReadHeader); + public static GitOdbBackend.readstream_callback ReadStreamCallback = new GitOdbBackend.readstream_callback(ReadStream); public static GitOdbBackend.write_callback WriteCallback = new GitOdbBackend.write_callback(Write); public static GitOdbBackend.writestream_callback WriteStreamCallback = new GitOdbBackend.writestream_callback(WriteStream); public static GitOdbBackend.exists_callback ExistsCallback = new GitOdbBackend.exists_callback(Exists); |