vendor/libgit2/include/git2/sys/odb_backend.h in rugged-0.27.10.1 vs vendor/libgit2/include/git2/sys/odb_backend.h in rugged-0.28.0

- old
+ new

@@ -30,41 +30,41 @@ /* read and read_prefix each return to libgit2 a buffer which * will be freed later. The buffer should be allocated using * 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 *); + int GIT_CALLBACK(read)( + 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 *, + int GIT_CALLBACK(read_prefix)( + 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 *); + int GIT_CALLBACK(read_header)( + 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); + int GIT_CALLBACK(write)( + 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); + int GIT_CALLBACK(writestream)( + git_odb_stream **, git_odb_backend *, git_off_t, git_object_t); - int (* readstream)( - git_odb_stream **, size_t *, git_otype *, + int GIT_CALLBACK(readstream)( + git_odb_stream **, size_t *, git_object_t *, git_odb_backend *, const git_oid *); - int (* exists)( + int GIT_CALLBACK(exists)( git_odb_backend *, const git_oid *); - int (* exists_prefix)( + int GIT_CALLBACK(exists_prefix)( git_oid *, git_odb_backend *, const git_oid *, size_t); /** * If the backend implements a refreshing mechanism, it should be exposed * through this endpoint. Each call to `git_odb_refresh()` will invoke it. @@ -73,16 +73,16 @@ * as possible by itself as libgit2 will not automatically invoke * `git_odb_refresh()`. For instance, a potential strategy for the backend * implementation to achieve this could be to internally invoke this * endpoint on failed lookups (ie. `exists()`, `read()`, `read_header()`). */ - int (* refresh)(git_odb_backend *); + int GIT_CALLBACK(refresh)(git_odb_backend *); - int (* foreach)( + int GIT_CALLBACK(foreach)( git_odb_backend *, git_odb_foreach_cb cb, void *payload); - int (* writepack)( + int GIT_CALLBACK(writepack)( git_odb_writepack **, git_odb_backend *, git_odb *odb, git_transfer_progress_cb progress_cb, void *progress_payload); /** * "Freshens" an already existing object, updating its last-used @@ -91,16 +91,16 @@ * underlying implementation may want to update last-used timestamps. * * If callers implement this, they should return `0` if the object * exists and was freshened, and non-zero otherwise. */ - int (* freshen)(git_odb_backend *, const git_oid *); + int GIT_CALLBACK(freshen)(git_odb_backend *, const git_oid *); /** * Frees any resources held by the odb (including the `git_odb_backend` * itself). An odb backend implementation must provide this function. */ - void (* free)(git_odb_backend *); + void GIT_CALLBACK(free)(git_odb_backend *); }; #define GIT_ODB_BACKEND_VERSION 1 #define GIT_ODB_BACKEND_INIT {GIT_ODB_BACKEND_VERSION}