diff options
| author | Etienne Samson <samson.etienne@gmail.com> | 2019-09-12 16:50:30 +0200 |
|---|---|---|
| committer | Etienne Samson <samson.etienne@gmail.com> | 2019-09-13 16:54:40 +0200 |
| commit | 71ca3dc7713ff40b11aebc41274c7be6cae42350 (patch) | |
| tree | 6061dedb9dfa99a8c5c49ccea34cfb975b045628 /include | |
| parent | 606f6e21a9f08f54d7354e9441f6b6a08abdda3b (diff) | |
| download | libgit2-71ca3dc7713ff40b11aebc41274c7be6cae42350.tar.gz | |
transport: move transport-related typedef in transport.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/transport.h | 11 | ||||
| -rw-r--r-- | include/git2/types.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h index 5122bc8d6..b99bb30e1 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -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); diff --git a/include/git2/types.h b/include/git2/types.h index dab46eaf8..de9ee43dd 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -245,17 +245,6 @@ 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`. */ typedef struct git_cert git_cert; |
