summaryrefslogtreecommitdiff
path: root/include/git2/sys
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-12-17 01:12:49 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-01 16:35:49 -0800
commit97f9a5f0bca920e2ce260b17fa7cea0a2c0991ca (patch)
tree9aeb6275e1e0c5e6e55b19fbabcd878b9100d402 /include/git2/sys
parentc74e9271012454dd46d3b8004b145129bd50cc04 (diff)
downloadlibgit2-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 'include/git2/sys')
-rw-r--r--include/git2/sys/odb_backend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/sys/odb_backend.h b/include/git2/sys/odb_backend.h
index 9bcc50ddd..792f103fe 100644
--- a/include/git2/sys/odb_backend.h
+++ b/include/git2/sys/odb_backend.h
@@ -56,7 +56,8 @@ struct git_odb_backend {
git_odb_stream **, git_odb_backend *, git_off_t, git_otype);
int (* readstream)(
- git_odb_stream **, git_odb_backend *, const git_oid *);
+ git_odb_stream **, size_t *, git_otype *,
+ git_odb_backend *, const git_oid *);
int (* exists)(
git_odb_backend *, const git_oid *);