Skip to content

Commit 71ca3dc

Browse files
committed
transport: move transport-related typedef in transport.h
1 parent 606f6e2 commit 71ca3dc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

include/git2/transport.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@
2222
*/
2323
GIT_BEGIN_DECL
2424

25+
/**
26+
* Callback for messages recieved by the transport.
27+
*
28+
* Return a negative value to cancel the network operation.
29+
*
30+
* @param str The message from the transport
31+
* @param len The length of the message
32+
* @param payload Payload provided by the caller
33+
*/
34+
typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload);
35+
2536
/** Signature of a function which creates a transport */
2637
typedef int GIT_CALLBACK(git_transport_cb)(git_transport **out, git_remote *owner, void *param);
2738

include/git2/types.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -244,17 +244,6 @@ typedef struct git_push git_push;
244244
typedef struct git_remote_head git_remote_head;
245245
typedef struct git_remote_callbacks git_remote_callbacks;
246246

247-
/**
248-
* Type for messages delivered by the transport. Return a negative value
249-
* to cancel the network operation.
250-
*
251-
* @param str The message from the transport
252-
* @param len The length of the message
253-
* @param payload Payload provided by the caller
254-
*/
255-
typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload);
256-
257-
258247
/**
259248
* Parent type for `git_cert_hostkey` and `git_cert_x509`.
260249
*/

0 commit comments

Comments
 (0)