]> git.proxmox.com Git - libgit2.git/blobdiff - src/remote.h
New upstream version 0.28.1+dfsg.1
[libgit2.git] / src / remote.h
index a94481f2559af54385a1b824c8967e04eb759438..62bd1d2ae9fbd857d3eabb4f16b6c5fd5a03f062 100644 (file)
@@ -36,6 +36,15 @@ struct git_remote {
        int passed_refspecs;
 };
 
+typedef struct git_remote_connection_opts {
+       const git_strarray *custom_headers;
+       const git_proxy_options *proxy;
+} git_remote_connection_opts;
+
+#define GIT_REMOTE_CONNECTION_OPTIONS_INIT { NULL, NULL }
+
+int git_remote__connect(git_remote *remote, git_direction direction, const git_remote_callbacks *callbacks, const git_remote_connection_opts *conn);
+
 const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
 int git_remote__get_http_proxy(git_remote *remote, bool use_ssl, char **proxy_url);