libgit2

git_stream_register

Version:

Register stream constructors for the library to use

If a registration structure is already set, it will be overwritten. Pass NULL in order to deregister the current constructor and return to the system defaults.

The type parameter may be a bitwise AND of types.

Signature

int git_stream_register(git_stream_t type, git_stream_registration *registration);

Parameters

In
type

the type or types of stream to register

In
registration

the registration data

Returns

int

0 or an error code

Versions