mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
transport: move transport-related typedef in transport.h
This commit is contained in:
@@ -22,6 +22,17 @@
|
||||
*/
|
||||
GIT_BEGIN_DECL
|
||||
|
||||
/**
|
||||
* Callback for messages recieved by the transport.
|
||||
*
|
||||
* Return a negative value to cancel the network operation.
|
||||
*
|
||||
* @param str The message from the transport
|
||||
* @param len The length of the message
|
||||
* @param payload Payload provided by the caller
|
||||
*/
|
||||
typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload);
|
||||
|
||||
/** Signature of a function which creates a transport */
|
||||
typedef int GIT_CALLBACK(git_transport_cb)(git_transport **out, git_remote *owner, void *param);
|
||||
|
||||
|
||||
@@ -244,17 +244,6 @@ typedef struct git_push git_push;
|
||||
typedef struct git_remote_head git_remote_head;
|
||||
typedef struct git_remote_callbacks git_remote_callbacks;
|
||||
|
||||
/**
|
||||
* Type for messages delivered by the transport. Return a negative value
|
||||
* to cancel the network operation.
|
||||
*
|
||||
* @param str The message from the transport
|
||||
* @param len The length of the message
|
||||
* @param payload Payload provided by the caller
|
||||
*/
|
||||
typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload);
|
||||
|
||||
|
||||
/**
|
||||
* Parent type for `git_cert_hostkey` and `git_cert_x509`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user