libgit2

git_stream_registration

Version:

Signature

typedef struct git_stream_registration { int version int (*)(git_stream **, const char *, const char *) init int (*)(git_stream **, git_stream *, const char *) wrap };

Members

int
version

The version field should be set to GIT_STREAM_VERSION.

int (*)(git_stream **, const char *, const char *)
init

Called to create a new connection to a given host.

int (*)(git_stream **, git_stream *, const char *)
wrap

Called to create a new connection on top of the given stream. If this is a TLS stream, then this function may be used to proxy a TLS stream over an HTTP CONNECT session. If this is unset, then HTTP CONNECT proxies will not be supported.

Parameter To

Versions