diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2013-08-17 01:41:08 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-08-17 01:41:08 +0200 |
| commit | fe0c6d4e712fa1bb072b8a847783bad47f3e91eb (patch) | |
| tree | a6d2aa207b418038028ccd5d806c74dc65b34646 /include/git2/odb_backend.h | |
| parent | d4e6cf0cd05540b373bfcb8908e4bc8f8f72c73c (diff) | |
| download | libgit2-fe0c6d4e712fa1bb072b8a847783bad47f3e91eb.tar.gz | |
odb: make it clearer that the id is calculated in the frontend
The frontend is in charge of calculating the id of the objects. Thus
the backends should treat it as a read-only value. The positioning in
the function signature made it seem as though it was an output
parameter.
Make the id const and move it from the front to behind the subject
(backend or stream).
Diffstat (limited to 'include/git2/odb_backend.h')
| -rw-r--r-- | include/git2/odb_backend.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index d004238a4..5696ee07d 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -75,7 +75,7 @@ struct git_odb_stream { int (*read)(git_odb_stream *stream, char *buffer, size_t len); int (*write)(git_odb_stream *stream, const char *buffer, size_t len); - int (*finalize_write)(git_oid *oid_p, git_odb_stream *stream); + int (*finalize_write)(git_odb_stream *stream, const git_oid *oid); void (*free)(git_odb_stream *stream); }; |
