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/sys/stream.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/sys/stream.h')
| -rw-r--r-- | include/git2/sys/stream.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/git2/sys/stream.h b/include/git2/sys/stream.h index 938793124..255c93e2b 100644 --- a/include/git2/sys/stream.h +++ b/include/git2/sys/stream.h @@ -31,13 +31,13 @@ typedef struct git_stream { int encrypted; int proxy_support; - int (*connect)(struct git_stream *); - int (*certificate)(git_cert **, struct git_stream *); - int (*set_proxy)(struct git_stream *, const git_proxy_options *proxy_opts); - ssize_t (*read)(struct git_stream *, void *, size_t); - ssize_t (*write)(struct git_stream *, const char *, size_t, int); - int (*close)(struct git_stream *); - void (*free)(struct git_stream *); + int GIT_CALLBACK(connect)(struct git_stream *); + int GIT_CALLBACK(certificate)(git_cert **, struct git_stream *); + int GIT_CALLBACK(set_proxy)(struct git_stream *, const git_proxy_options *proxy_opts); + ssize_t GIT_CALLBACK(read)(struct git_stream *, void *, size_t); + ssize_t GIT_CALLBACK(write)(struct git_stream *, const char *, size_t, int); + int GIT_CALLBACK(close)(struct git_stream *); + void GIT_CALLBACK(free)(struct git_stream *); } git_stream; typedef struct { @@ -54,7 +54,7 @@ typedef struct { * service name * @return 0 or an error code */ - int (*init)(git_stream **out, const char *host, const char *port); + int GIT_CALLBACK(init)(git_stream **out, const char *host, const char *port); /** * Called to create a new connection on top of the given stream. If @@ -68,7 +68,7 @@ typedef struct { * for certificate validation * @return 0 or an error code */ - int (*wrap)(git_stream **out, git_stream *in, const char *host); + int GIT_CALLBACK(wrap)(git_stream **out, git_stream *in, const char *host); } git_stream_registration; /** @@ -111,7 +111,7 @@ GIT_EXTERN(int) git_stream_register( * @deprecated Provide a git_stream_registration to git_stream_register * @see git_stream_registration */ -typedef int (*git_stream_cb)(git_stream **out, const char *host, const char *port); +typedef int GIT_CALLBACK(git_stream_cb)(git_stream **out, const char *host, const char *port); /** * Register a TLS stream constructor for the library to use. This stream |
