diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 22:07:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-17 22:07:24 +0000 |
| commit | 4e0c8a1e73124acc62d295df02f7e92e2e8b3dfc (patch) | |
| tree | a389e3efe372ade4c695b9861b3a119f08fe987d /include/git2/odb_backend.h | |
| parent | 6e17bfda57467b32b5709e8d9014eae767810869 (diff) | |
| parent | 38e61797b579f1738e3c48aaf101ad3ddaff4e6b (diff) | |
| download | libgit2-4e0c8a1e73124acc62d295df02f7e92e2e8b3dfc.tar.gz | |
Merge pull request #4930 from libgit2/ethomson/cdecl
Always build a cdecl library
Diffstat (limited to 'include/git2/odb_backend.h')
| -rw-r--r-- | include/git2/odb_backend.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index 9199538ce..614d0d431 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -92,12 +92,12 @@ struct git_odb_stream { /** * Write at most `len` bytes into `buffer` and advance the stream. */ - int (*read)(git_odb_stream *stream, char *buffer, size_t len); + int GIT_CALLBACK(read)(git_odb_stream *stream, char *buffer, size_t len); /** * Write `len` bytes from `buffer` into the stream. */ - int (*write)(git_odb_stream *stream, const char *buffer, size_t len); + int GIT_CALLBACK(write)(git_odb_stream *stream, const char *buffer, size_t len); /** * Store the contents of the stream as an object with the id @@ -109,7 +109,7 @@ struct git_odb_stream { * - the final number of received bytes differs from the size declared * with `git_odb_open_wstream()` */ - int (*finalize_write)(git_odb_stream *stream, const git_oid *oid); + int GIT_CALLBACK(finalize_write)(git_odb_stream *stream, const git_oid *oid); /** * Free the stream's memory. @@ -117,16 +117,16 @@ struct git_odb_stream { * This method might be called without a call to `finalize_write` if * an error occurs or if the object is already present in the ODB. */ - void (*free)(git_odb_stream *stream); + void GIT_CALLBACK(free)(git_odb_stream *stream); }; /** A stream to write a pack file to the ODB */ struct git_odb_writepack { git_odb_backend *backend; - int (*append)(git_odb_writepack *writepack, const void *data, size_t size, git_transfer_progress *stats); - int (*commit)(git_odb_writepack *writepack, git_transfer_progress *stats); - void (*free)(git_odb_writepack *writepack); + int GIT_CALLBACK(append)(git_odb_writepack *writepack, const void *data, size_t size, git_transfer_progress *stats); + int GIT_CALLBACK(commit)(git_odb_writepack *writepack, git_transfer_progress *stats); + void GIT_CALLBACK(free)(git_odb_writepack *writepack); }; GIT_END_DECL |
