summaryrefslogtreecommitdiff
path: root/include/git2/sys/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/sys/transport.h')
-rw-r--r--include/git2/sys/transport.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h
index b50438ecd..69d4e15c5 100644
--- a/include/git2/sys/transport.h
+++ b/include/git2/sys/transport.h
@@ -21,6 +21,11 @@
GIT_BEGIN_DECL
+/**
+ * Flags to pass to transport
+ *
+ * Currently unused.
+ */
typedef enum {
GIT_TRANSPORTFLAGS_NONE = 0,
} git_transport_flags_t;
@@ -286,12 +291,20 @@ typedef int (*git_smart_subtransport_cb)(
git_smart_subtransport **out,
git_transport* owner);
+/**
+ * Definition for a "subtransport"
+ *
+ * This is used to let the smart protocol code know about the protocol
+ * which you are implementing.
+ */
typedef struct git_smart_subtransport_definition {
- /* The function to use to create the git_smart_subtransport */
+ /** The function to use to create the git_smart_subtransport */
git_smart_subtransport_cb callback;
- /* True if the protocol is stateless; false otherwise. For example,
- * http:// is stateless, but git:// is not. */
+ /**
+ * True if the protocol is stateless; false otherwise. For example,
+ * http:// is stateless, but git:// is not.
+ */
unsigned rpc;
} git_smart_subtransport_definition;