diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-14 23:35:48 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-01 10:44:16 +0000 |
| commit | 19faf7c5fcd24fab789d9b7a619b343c1fae7c86 (patch) | |
| tree | bddd1859390e2ad0421ecf05a2d5fa5272503653 /include/git2/sys | |
| parent | 26b21b391235e708ae41751a5b8d2743af0194fb (diff) | |
| download | libgit2-19faf7c5fcd24fab789d9b7a619b343c1fae7c86.tar.gz | |
object_type: update public API to use git_object_t
git_object_t is the future; update the public API to use it. This will
also ensure that we can build our tests which make use of the old API
without modification (and without compiler warnings).
Diffstat (limited to 'include/git2/sys')
| -rw-r--r-- | include/git2/sys/odb_backend.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/git2/sys/odb_backend.h b/include/git2/sys/odb_backend.h index 792f103fe..75341e8ab 100644 --- a/include/git2/sys/odb_backend.h +++ b/include/git2/sys/odb_backend.h @@ -33,30 +33,30 @@ struct git_odb_backend { * the function git_odb_backend_malloc to ensure that it can * be safely freed later. */ int (* read)( - void **, size_t *, git_otype *, git_odb_backend *, const git_oid *); + void **, size_t *, git_object_t *, git_odb_backend *, const git_oid *); /* To find a unique object given a prefix of its oid. The oid given * must be so that the remaining (GIT_OID_HEXSZ - len)*4 bits are 0s. */ int (* read_prefix)( - git_oid *, void **, size_t *, git_otype *, + git_oid *, void **, size_t *, git_object_t *, git_odb_backend *, const git_oid *, size_t); int (* read_header)( - size_t *, git_otype *, git_odb_backend *, const git_oid *); + size_t *, git_object_t *, git_odb_backend *, const git_oid *); /** * Write an object into the backend. The id of the object has * already been calculated and is passed in. */ int (* write)( - git_odb_backend *, const git_oid *, const void *, size_t, git_otype); + git_odb_backend *, const git_oid *, const void *, size_t, git_object_t); int (* writestream)( - git_odb_stream **, git_odb_backend *, git_off_t, git_otype); + git_odb_stream **, git_odb_backend *, git_off_t, git_object_t); int (* readstream)( - git_odb_stream **, size_t *, git_otype *, + git_odb_stream **, size_t *, git_object_t *, git_odb_backend *, const git_oid *); int (* exists)( |
