]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move buffers.c and buffers_tls.c into src/common
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Aug 2017 19:10:32 +0000 (15:10 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Sep 2017 17:57:51 +0000 (13:57 -0400)
These are no longer tor-specific, so they can be part of the
infrastructure.

src/common/buffers.c [moved from src/or/buffers.c with 100% similarity]
src/common/buffers.h [moved from src/or/buffers.h with 100% similarity]
src/common/buffers_tls.c [moved from src/or/buffers_tls.c with 100% similarity]
src/common/buffers_tls.h [moved from src/or/buffers_tls.h with 100% similarity]
src/common/include.am
src/or/include.am

similarity index 100%
rename from src/or/buffers.c
rename to src/common/buffers.c
similarity index 100%
rename from src/or/buffers.h
rename to src/common/buffers.h
index 12538888159cc2dcf09e5c7d52e0da054d46e62a..cd5eea34043f5ab65c85c3f50113c3c6f0132228 100644 (file)
@@ -81,6 +81,7 @@ src_common_libor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS)
 LIBOR_A_SRC = \
   src/common/address.c                                 \
   src/common/backtrace.c                               \
+  src/common/buffers.c                                 \
   src/common/compat.c                                  \
   src/common/compat_threads.c                          \
   src/common/compat_time.c                             \
@@ -110,6 +111,7 @@ src/common/src_common_libor_testing_a-log.$(OBJEXT) \
 
 LIBOR_CRYPTO_A_SRC = \
   src/common/aes.c             \
+  src/common/buffers_tls.c     \
   src/common/compress.c        \
   src/common/compress_lzma.c   \
   src/common/compress_none.c   \
@@ -147,6 +149,8 @@ src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
 COMMONHEADERS = \
   src/common/address.h                         \
   src/common/backtrace.h                       \
+  src/common/buffers.h                         \
+  src/common/buffers_tls.h                     \
   src/common/aes.h                             \
   src/common/ciphers.inc                       \
   src/common/compat.h                          \
index 6dc43749b7e52b2271b922c6065aa4844ed08bec..021f5f9d5d311eab9b381a09c4dc46b54e9cf2c5 100644 (file)
@@ -20,8 +20,6 @@ EXTRA_DIST+= src/or/ntmain.c src/or/Makefile.nmake
 LIBTOR_A_SOURCES = \
        src/or/addressmap.c                             \
        src/or/bridges.c                                \
-       src/or/buffers.c                                \
-       src/or/buffers_tls.c                            \
        src/or/channel.c                                \
        src/or/channelpadding.c                         \
        src/or/channeltls.c                             \
@@ -156,8 +154,6 @@ endif
 ORHEADERS = \
        src/or/addressmap.h                             \
        src/or/bridges.h                                \
-       src/or/buffers.h                                \
-       src/or/buffers_tls.h                            \
        src/or/channel.h                                \
        src/or/channelpadding.h                         \
        src/or/channeltls.h                             \