diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2017-12-17 01:12:49 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-01 16:35:49 -0800 |
commit | 97f9a5f0bca920e2ce260b17fa7cea0a2c0991ca (patch) | |
tree | 9aeb6275e1e0c5e6e55b19fbabcd878b9100d402 /src/odb.c | |
parent | c74e9271012454dd46d3b8004b145129bd50cc04 (diff) | |
download | libgit2-97f9a5f0bca920e2ce260b17fa7cea0a2c0991ca.tar.gz |
odb: provide length and type with streaming read
The streaming read functionality should provide the length and the type
of the object, like the normal read functionality does.
Diffstat (limited to 'src/odb.c')
-rw-r--r-- | src/odb.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1396,7 +1396,12 @@ void git_odb_stream_free(git_odb_stream *stream) stream->free(stream); } -int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oid) +int git_odb_open_rstream( + git_odb_stream **stream, + size_t *len, + git_otype *type, + git_odb *db, + const git_oid *oid) { size_t i, reads = 0; int error = GIT_ERROR; @@ -1409,7 +1414,7 @@ int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oi if (b->readstream != NULL) { ++reads; - error = b->readstream(stream, b, oid); + error = b->readstream(stream, len, type, b, oid); } } |