transport: move transport-related typedef in transport.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/include/git2/transport.h b/include/git2/transport.h
index 5122bc8..b99bb30 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 dab46ea..de9ee43 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;