Skip to content

Commit e936985

Browse files
committed
stream: Gather streams to src/streams
1 parent 08c1b8f commit e936985

File tree

16 files changed

+32
-29
lines changed

16 files changed

+32
-29
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ ELSE()
320320
ENDIF()
321321
FILE(GLOB SRC_OS unix/*.c unix/*.h)
322322
ENDIF()
323-
FILE(GLOB SRC_GIT2 *.c *.h transports/*.c transports/*.h xdiff/*.c xdiff/*.h)
323+
FILE(GLOB SRC_GIT2 *.c *.h
324+
streams/*.c streams/*.h
325+
transports/*.c transports/*.h
326+
xdiff/*.c xdiff/*.h)
324327

325328
# Determine architecture of the machine
326329
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)

src/global.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "sysdir.h"
1212
#include "filter.h"
1313
#include "merge_driver.h"
14-
#include "openssl_stream.h"
14+
#include "streams/openssl.h"
1515
#include "thread-utils.h"
1616
#include "git2/global.h"
1717
#include "transports/ssh.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "curl_stream.h"
8+
#include "streams/curl.h"
99

1010
#ifdef GIT_CURL
1111

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
#ifndef INCLUDE_curl_stream_h__
8-
#define INCLUDE_curl_stream_h__
7+
#ifndef INCLUDE_streams_curl_h__
8+
#define INCLUDE_streams_curl_h__
99

1010
#include "common.h"
1111

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "openssl_stream.h"
8+
#include "streams/openssl.h"
99

1010
#ifdef GIT_OPENSSL
1111

@@ -14,13 +14,13 @@
1414
#include "global.h"
1515
#include "posix.h"
1616
#include "stream.h"
17-
#include "socket_stream.h"
17+
#include "streams/socket.h"
1818
#include "netops.h"
1919
#include "git2/transport.h"
2020
#include "git2/sys/openssl.h"
2121

2222
#ifdef GIT_CURL
23-
# include "curl_stream.h"
23+
# include "streams/curl.h"
2424
#endif
2525

2626
#ifndef GIT_WIN32
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
#ifndef INCLUDE_openssl_stream_h__
8-
#define INCLUDE_openssl_stream_h__
7+
#ifndef INCLUDE_streams_openssl_h__
8+
#define INCLUDE_streams_openssl_h__
99

1010
#include "common.h"
1111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "socket_stream.h"
8+
#include "streams/socket.h"
99

1010
#include "posix.h"
1111
#include "netops.h"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
#ifndef INCLUDE_socket_stream_h__
8-
#define INCLUDE_socket_stream_h__
7+
#ifndef INCLUDE_streams_socket_h__
8+
#define INCLUDE_streams_socket_h__
99

1010
#include "common.h"
1111

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "stransport_stream.h"
8+
#include "streams/stransport.h"
99

1010
#ifdef GIT_SECURE_TRANSPORT
1111

@@ -15,8 +15,8 @@
1515

1616
#include "git2/transport.h"
1717

18-
#include "socket_stream.h"
19-
#include "curl_stream.h"
18+
#include "streams/socket.h"
19+
#include "streams/curl.h"
2020

2121
static int stransport_error(OSStatus ret)
2222
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
#ifndef INCLUDE_stransport_stream_h__
8-
#define INCLUDE_stransport_stream_h__
7+
#ifndef INCLUDE_streams_stransport_h__
8+
#define INCLUDE_streams_stransport_h__
99

1010
#include "common.h"
1111

0 commit comments

Comments
 (0)