summaryrefslogtreecommitdiff
path: root/src/socket_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket_stream.h')
-rw-r--r--src/socket_stream.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/socket_stream.h b/src/socket_stream.h
new file mode 100644
index 000000000..8e9949fcd
--- /dev/null
+++ b/src/socket_stream.h
@@ -0,0 +1,21 @@
+/*
+ * 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.
+ */
+#ifndef INCLUDE_socket_stream_h__
+#define INCLUDE_socket_stream_h__
+
+#include "netops.h"
+
+typedef struct {
+ git_stream parent;
+ char *host;
+ char *port;
+ GIT_SOCKET s;
+} git_socket_stream;
+
+extern int git_socket_stream_new(git_stream **out, const char *host, const char *port);
+
+#endif