git_transport_register

Add a custom transport definition, to be used in addition to the built-in set of transports that come with libgit2.

The caller is responsible for synchronizing calls to git_transport_register and git_transport_unregister with other calls to the library that instantiate transports.

package extern (C) nothrow @nogc
int
git_transport_register

Parameters

prefix const(char)*

The scheme (ending in "://") to match, i.e. "git://"

cb libgit2_d.transport.git_transport_cb

The callback used to create an instance of the transport

param void*

A fixed parameter to pass to cb at creation time

Return Value

Type: int

0 or an error code

Meta