]> git.proxmox.com Git - libgit2.git/blame - src/socket_stream.h
Merge pull request #3303 from libgit2/cmn/index-add-submodule
[libgit2.git] / src / socket_stream.h
CommitLineData
468d7b11
CMN
1/*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7#ifndef INCLUDE_socket_stream_h__
8#define INCLUDE_socket_stream_h__
9
10#include "netops.h"
11
12typedef struct {
13 git_stream parent;
14 char *host;
15 char *port;
16 GIT_SOCKET s;
17} git_socket_stream;
18
19extern int git_socket_stream_new(git_stream **out, const char *host, const char *port);
20
21#endif