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