Commit e9369856 by Etienne Samson

stream: Gather streams to src/streams

parent 08c1b8fc
...@@ -320,7 +320,10 @@ ELSE() ...@@ -320,7 +320,10 @@ ELSE()
ENDIF() ENDIF()
FILE(GLOB SRC_OS unix/*.c unix/*.h) FILE(GLOB SRC_OS unix/*.c unix/*.h)
ENDIF() ENDIF()
FILE(GLOB SRC_GIT2 *.c *.h transports/*.c transports/*.h xdiff/*.c xdiff/*.h) FILE(GLOB SRC_GIT2 *.c *.h
streams/*.c streams/*.h
transports/*.c transports/*.h
xdiff/*.c xdiff/*.h)
# Determine architecture of the machine # Determine architecture of the machine
IF (CMAKE_SIZEOF_VOID_P EQUAL 8) IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "sysdir.h" #include "sysdir.h"
#include "filter.h" #include "filter.h"
#include "merge_driver.h" #include "merge_driver.h"
#include "openssl_stream.h" #include "streams/openssl.h"
#include "thread-utils.h" #include "thread-utils.h"
#include "git2/global.h" #include "git2/global.h"
#include "transports/ssh.h" #include "transports/ssh.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "curl_stream.h" #include "streams/curl.h"
#ifdef GIT_CURL #ifdef GIT_CURL
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef INCLUDE_curl_stream_h__ #ifndef INCLUDE_streams_curl_h__
#define INCLUDE_curl_stream_h__ #define INCLUDE_streams_curl_h__
#include "common.h" #include "common.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "openssl_stream.h" #include "streams/openssl.h"
#ifdef GIT_OPENSSL #ifdef GIT_OPENSSL
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
#include "global.h" #include "global.h"
#include "posix.h" #include "posix.h"
#include "stream.h" #include "stream.h"
#include "socket_stream.h" #include "streams/socket.h"
#include "netops.h" #include "netops.h"
#include "git2/transport.h" #include "git2/transport.h"
#include "git2/sys/openssl.h" #include "git2/sys/openssl.h"
#ifdef GIT_CURL #ifdef GIT_CURL
# include "curl_stream.h" # include "streams/curl.h"
#endif #endif
#ifndef GIT_WIN32 #ifndef GIT_WIN32
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef INCLUDE_openssl_stream_h__ #ifndef INCLUDE_streams_openssl_h__
#define INCLUDE_openssl_stream_h__ #define INCLUDE_streams_openssl_h__
#include "common.h" #include "common.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "socket_stream.h" #include "streams/socket.h"
#include "posix.h" #include "posix.h"
#include "netops.h" #include "netops.h"
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef INCLUDE_socket_stream_h__ #ifndef INCLUDE_streams_socket_h__
#define INCLUDE_socket_stream_h__ #define INCLUDE_streams_socket_h__
#include "common.h" #include "common.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "stransport_stream.h" #include "streams/stransport.h"
#ifdef GIT_SECURE_TRANSPORT #ifdef GIT_SECURE_TRANSPORT
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include "git2/transport.h" #include "git2/transport.h"
#include "socket_stream.h" #include "streams/socket.h"
#include "curl_stream.h" #include "streams/curl.h"
static int stransport_error(OSStatus ret) static int stransport_error(OSStatus ret)
{ {
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef INCLUDE_stransport_stream_h__ #ifndef INCLUDE_streams_stransport_h__
#define INCLUDE_stransport_stream_h__ #define INCLUDE_streams_stransport_h__
#include "common.h" #include "common.h"
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "tls_stream.h" #include "streams/tls.h"
#include "git2/errors.h" #include "git2/errors.h"
#include "openssl_stream.h" #include "streams/openssl.h"
#include "stransport_stream.h" #include "streams/stransport.h"
static git_stream_cb tls_ctor; static git_stream_cb tls_ctor;
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef INCLUDE_tls_stream_h__ #ifndef INCLUDE_streams_tls_h__
#define INCLUDE_tls_stream_h__ #define INCLUDE_streams_tls_h__
#include "common.h" #include "common.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "netops.h" #include "netops.h"
#include "git2/sys/transport.h" #include "git2/sys/transport.h"
#include "stream.h" #include "stream.h"
#include "socket_stream.h" #include "streams/socket.h"
#define OWNING_SUBTRANSPORT(s) ((git_subtransport *)(s)->parent.subtransport) #define OWNING_SUBTRANSPORT(s) ((git_subtransport *)(s)->parent.subtransport)
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include "smart.h" #include "smart.h"
#include "auth.h" #include "auth.h"
#include "auth_negotiate.h" #include "auth_negotiate.h"
#include "tls_stream.h" #include "streams/tls.h"
#include "socket_stream.h" #include "streams/socket.h"
#include "curl_stream.h" #include "streams/curl.h"
git_http_auth_scheme auth_schemes[] = { git_http_auth_scheme auth_schemes[] = {
{ GIT_AUTHTYPE_NEGOTIATE, "Negotiate", GIT_CREDTYPE_DEFAULT, git_http_auth_negotiate }, { GIT_AUTHTYPE_NEGOTIATE, "Negotiate", GIT_CREDTYPE_DEFAULT, git_http_auth_negotiate },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "netops.h" #include "netops.h"
#include "smart.h" #include "smart.h"
#include "cred.h" #include "cred.h"
#include "socket_stream.h" #include "streams/socket.h"
#ifdef GIT_SSH #ifdef GIT_SSH
......
#include "clar_libgit2.h" #include "clar_libgit2.h"
#include "git2/sys/stream.h" #include "git2/sys/stream.h"
#include "tls_stream.h" #include "streams/tls.h"
#include "stream.h" #include "stream.h"
static git_stream test_stream; static git_stream test_stream;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment