]> git.proxmox.com Git - libgit2.git/blobdiff - include/git2/sys/remote.h
New upstream version 1.5.0+ds
[libgit2.git] / include / git2 / sys / remote.h
index dd243ca55d6f1cf7248b75828e2bc718ae1771df..0eae9234debe488c078d90ce0664ccb4a159cf40 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef INCLUDE_sys_git_remote_h
 #define INCLUDE_sys_git_remote_h
 
+#include "git2/remote.h"
+
 /**
  * @file git2/sys/remote.h
  * @brief Low-level remote functionality for custom transports
@@ -26,6 +28,19 @@ typedef enum {
        GIT_REMOTE_CAPABILITY_REACHABLE_OID = (1 << 1),
 } git_remote_capability_t;
 
+/**
+ * Disposes libgit2-initialized fields from a git_remote_connect_options.
+ * This should only be used for git_remote_connect_options returned by
+ * git_transport_remote_connect_options.
+ *
+ * Note that this does not free the `git_remote_connect_options` itself, just
+ * the memory pointed to by it.
+ *
+ * @param opts The `git_remote_connect_options` struct to dispose.
+ */
+GIT_EXTERN(void) git_remote_connect_options_dispose(
+               git_remote_connect_options *opts);
+
 /** @} */
 GIT_END_DECL
 #endif