summaryrefslogtreecommitdiff
path: root/src/proxy.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-11 16:35:24 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-04-19 13:54:19 +0200
commita7bece2014ec043cfe58418dc13e982f79dcfcba (patch)
treebf8a44e3c7d80c0c8fecad6ccd0b7c6219af3c93 /src/proxy.c
parent029c93464f3124556286ccc46164c1d4181edfcc (diff)
downloadlibgit2-a7bece2014ec043cfe58418dc13e982f79dcfcba.tar.gz
proxy: introduce a proxy options struct
It is currently unused; it will go into the remote's options.
Diffstat (limited to 'src/proxy.c')
-rw-r--r--src/proxy.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/proxy.c b/src/proxy.c
new file mode 100644
index 000000000..2112596e9
--- /dev/null
+++ b/src/proxy.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
+#include "common.h"
+#include "git2/proxy.h"
+
+int git_proxy_init_options(git_proxy_options *opts, unsigned int version)
+{
+ GIT_INIT_STRUCTURE_FROM_TEMPLATE(
+ opts, version, git_proxy_options, GIT_PROXY_OPTIONS_INIT);
+ return 0;
+}