diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-08-15 15:48:35 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-08-15 16:29:27 +0400 |
commit | 376e6c9f96ffcd572ba974c9cc4d13b4f1e31474 (patch) | |
tree | 8f8cfb27e725e962e3c7cec5e7fa2c4bfa2987bd /tests-clar/object | |
parent | 2af9bcb2dbb47adafa7eecbf41ff113da7fa9d1b (diff) |
odb: wrap the stream reading and writing functions
This is in preparation for moving the hashing to the frontend, which
requires us to handle the incoming data before passing it to the
backend's stream.
Diffstat (limited to 'tests-clar/object')
-rw-r--r-- | tests-clar/object/raw/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/object/raw/write.c b/tests-clar/object/raw/write.c index 9709c0302..273f08f2c 100644 --- a/tests-clar/object/raw/write.c +++ b/tests-clar/object/raw/write.c @@ -31,9 +31,9 @@ static void streaming_write(git_oid *oid, git_odb *odb, git_rawobj *raw) int error; cl_git_pass(git_odb_open_wstream(&stream, odb, raw->len, raw->type)); - stream->write(stream, raw->data, raw->len); - error = stream->finalize_write(oid, stream); - stream->free(stream); + git_odb_stream_write(stream, raw->data, raw->len); + error = git_odb_stream_finalize_write(oid, stream); + git_odb_stream_free(stream); cl_git_pass(error); } |