Blame src/socket_stream.h
|
Packit |
ae9e2a |
/*
|
|
Packit |
ae9e2a |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit |
ae9e2a |
*
|
|
Packit |
ae9e2a |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit |
ae9e2a |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
#ifndef INCLUDE_socket_stream_h__
|
|
Packit |
ae9e2a |
#define INCLUDE_socket_stream_h__
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#include "netops.h"
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
typedef struct {
|
|
Packit |
ae9e2a |
git_stream parent;
|
|
Packit |
ae9e2a |
char *host;
|
|
Packit |
ae9e2a |
char *port;
|
|
Packit |
ae9e2a |
GIT_SOCKET s;
|
|
Packit |
ae9e2a |
} git_socket_stream;
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
extern int git_socket_stream_new(git_stream **out, const char *host, const char *port);
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#endif
|