Browse Source

Moved some files to util/

pull/239/head
EinMByte 9 years ago
parent
commit
3668c27db6
  1. 2
      AddressBook.cpp
  2. 2
      AddressBook.h
  3. 2
      ClientContext.cpp
  4. 2
      Daemon.cpp
  5. 2
      DaemonLinux.cpp
  6. 2
      DaemonWin32.cpp
  7. 4
      Destination.cpp
  8. 2
      Garlic.cpp
  9. 2
      Garlic.h
  10. 2
      HTTPProxy.cpp
  11. 2
      I2NPProtocol.cpp
  12. 2
      I2PControl.cpp
  13. 2
      LeaseSet.cpp
  14. 2
      Log.h
  15. 3
      Makefile
  16. 4
      NetDb.cpp
  17. 2
      NetDb.h
  18. 2
      Profiling.cpp
  19. 2
      Reseed.cpp
  20. 4
      RouterContext.cpp
  21. 2
      RouterInfo.cpp
  22. 2
      Streaming.cpp
  23. 2
      Tunnel.cpp
  24. 2
      Tunnel.h
  25. 2
      TunnelBase.h
  26. 2
      TunnelConfig.h
  27. 2
      TunnelPool.cpp
  28. 2
      UPnP.cpp
  29. 2
      UPnP.h
  30. 2
      api.cpp
  31. 8
      filelist.mk
  32. 0
      util/LittleBigEndian.h
  33. 0
      util/Queue.h
  34. 0
      util/Timestamp.h
  35. 0
      util/util.cpp
  36. 0
      util/util.h

2
AddressBook.cpp

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <boost/lexical_cast.hpp>
#include <cryptopp/osrng.h>
#include "base64.h"
#include "util.h"
#include "util/util.h"
#include "Identity.h"
#include "Log.h"
#include "NetDb.h"

2
AddressBook.h

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <mutex>
#include <boost/asio.hpp>
#include "base64.h"
#include "util.h"
#include "util/util.h"
#include "Identity.h"
#include "Log.h"

2
ClientContext.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include "util.h"
#include "util/util.h"
#include "Log.h"
#include "Identity.h"
#include "ClientContext.h"

2
Daemon.cpp

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#include "Tunnel.h"
#include "NetDb.h"
#include "Garlic.h"
#include "util.h"
#include "util/util.h"
#include "Streaming.h"
#include "Destination.h"
#include "HTTPServer.h"

2
DaemonLinux.cpp

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <sys/stat.h>
#include "Log.h"
#include "util.h"
#include "util/util.h"
void handle_signal(int sig)

2
DaemonWin32.cpp

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include "Daemon.h"
#include "util.h"
#include "util/util.h"
#include "Log.h"
#ifdef _WIN32

4
Destination.cpp

@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
#include <cassert>
#include <boost/lexical_cast.hpp>
#include "Log.h"
#include "util.h"
#include "util/util.h"
#include "ElGamal.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "NetDb.h"
#include "AddressBook.h"
#include "Destination.h"

2
Garlic.cpp

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include "I2NPProtocol.h"
#include "Tunnel.h"
#include "TunnelPool.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "Destination.h"
#include "Garlic.h"

2
Garlic.h

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#include "aes.h"
#include "I2NPProtocol.h"
#include "LeaseSet.h"
#include "Queue.h"
#include "util/Queue.h"
#include "Identity.h"
namespace i2p

2
HTTPProxy.cpp

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
#include <string>
#include <atomic>
#include "HTTPProxy.h"
#include "util.h"
#include "util/util.h"
#include "Identity.h"
#include "Streaming.h"
#include "Destination.h"

2
I2NPProtocol.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "I2PEndian.h"
#include <cryptopp/gzip.h>
#include "ElGamal.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "RouterContext.h"
#include "NetDb.h"
#include "Tunnel.h"

2
I2PControl.cpp

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
#include "RouterContext.h"
#include "Daemon.h"
#include "Tunnel.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "transport/Transports.h"
#include "version.h"

2
LeaseSet.cpp

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include <cryptopp/osrng.h>
#include "CryptoConst.h"
#include "Log.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "NetDb.h"
#include "TunnelPool.h"
#include "LeaseSet.h"

2
Log.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include <fstream>
#include <functional>
#include <chrono>
#include "Queue.h"
#include "util/Queue.h"
enum LogLevel
{

3
Makefile

@ -29,6 +29,7 @@ tests: mk_build_test_dir $(TESTS) @@ -29,6 +29,7 @@ tests: mk_build_test_dir $(TESTS)
mk_build_dir:
mkdir -p obj
mkdir -p obj/transport
mkdir -p obj/util
mk_build_test_dir:
mkdir -p obj/tests
@ -45,6 +46,7 @@ deps: @@ -45,6 +46,7 @@ deps:
@mkdir -p obj
@mkdir -p obj/transport
@mkdir -p obj/tests
@mkdir -p obj/util
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) -MM *.cpp > $(DEPS)
@sed -i -e '/\.o:/ s/^/obj\//' $(DEPS)
@ -52,6 +54,7 @@ obj/%.o : %.cpp @@ -52,6 +54,7 @@ obj/%.o : %.cpp
@mkdir -p obj
@mkdir -p obj/transport
@mkdir -p obj/tests
@mkdir -p obj/util
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
# '-' is 'ignore if missing' on first run

4
NetDb.cpp

@ -6,14 +6,14 @@ @@ -6,14 +6,14 @@
#include <cryptopp/gzip.h>
#include "base64.h"
#include "Log.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "I2NPProtocol.h"
#include "Tunnel.h"
#include "transport/Transports.h"
#include "RouterContext.h"
#include "Garlic.h"
#include "NetDb.h"
#include "util.h"
#include "util/util.h"
using namespace i2p::transport;

2
NetDb.h

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <thread>
#include <mutex>
#include <boost/filesystem.hpp>
#include "Queue.h"
#include "util/Queue.h"
#include "I2NPProtocol.h"
#include "RouterInfo.h"
#include "LeaseSet.h"

2
Profiling.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include "base64.h"
#include "util.h"
#include "util/util.h"
#include "Profiling.h"
namespace i2p

2
Reseed.cpp

@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
#include "Identity.h"
#include "CryptoConst.h"
#include "NetDb.h"
#include "util.h"
#include "util/util.h"
namespace i2p

4
RouterContext.cpp

@ -4,10 +4,10 @@ @@ -4,10 +4,10 @@
#include <boost/lexical_cast.hpp>
#include "CryptoConst.h"
#include "RouterContext.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "I2NPProtocol.h"
#include "NetDb.h"
#include "util.h"
#include "util/util.h"
#include "version.h"
namespace i2p

2
RouterInfo.cpp

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include <cryptopp/dsa.h>
#include "CryptoConst.h"
#include "base64.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "Log.h"
#include "RouterInfo.h"
#include "RouterContext.h"

2
Streaming.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Tunnel.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "Destination.h"
#include "Streaming.h"

2
Tunnel.cpp

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include <cryptopp/sha.h>
#include "RouterContext.h"
#include "Log.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "I2NPProtocol.h"
#include "transport/Transports.h"
#include "NetDb.h"

2
Tunnel.h

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <thread>
#include <mutex>
#include <memory>
#include "Queue.h"
#include "util/Queue.h"
#include "TunnelConfig.h"
#include "TunnelPool.h"
#include "TransitTunnel.h"

2
TunnelBase.h

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include <inttypes.h>
#include <memory>
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "I2NPProtocol.h"
#include "Identity.h"

2
TunnelConfig.h

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "aes.h"
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
namespace i2p
{

2
TunnelPool.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "CryptoConst.h"
#include "Tunnel.h"
#include "NetDb.h"
#include "Timestamp.h"
#include "util/Timestamp.h"
#include "Garlic.h"
#include "transport/Transports.h"
#include "TunnelPool.h"

2
UPnP.cpp

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "RouterContext.h"
#include "UPnP.h"
#include "NetDb.h"
#include "util.h"
#include "util/util.h"
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>

2
UPnP.h

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#include <boost/asio.hpp>
#include "util.h"
#include "util/util.h"
#define I2P_UPNP_TCP 1
#define I2P_UPNP_UDP 2

2
api.cpp

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include "RouterContext.h"
#include "Identity.h"
#include "Destination.h"
#include "util.h"
#include "util/util.h"
#include "api.h"
namespace i2p

8
filelist.mk

@ -1,19 +1,21 @@ @@ -1,19 +1,21 @@
COMMON_SRC = \
transport/NTCPSession.cpp transport/SSU.cpp transport/SSUSession.cpp \
transport/SSUData.cpp transport/Transports.cpp \
util/util.cpp \
CryptoConst.cpp Datagram.cpp Garlic.cpp I2NPProtocol.cpp LeaseSet.cpp \
Log.cpp NetDb.cpp NetDbRequests.cpp Profiling.cpp Reseed.cpp \
RouterContext.cpp RouterInfo.cpp Signature.cpp Streaming.cpp Identity.cpp \
TransitTunnel.cpp Tunnel.cpp TunnelEndpoint.cpp TunnelPool.cpp \
TunnelGateway.cpp Destination.cpp UPnP.cpp util.cpp aes.cpp base64.cpp
TunnelGateway.cpp Destination.cpp UPnP.cpp aes.cpp base64.cpp
ifeq ($(UNAME),Darwin)
# This is needed on OS X for some reason I don't understand (yet).
# Else will get linker error about unknown symbols. - torkel
COMMON_SRC += \
AddressBook.cpp BOB.cpp ClientContext.cpp Daemon.cpp I2PTunnel.cpp I2PService.cpp SAM.cpp SOCKS.cpp \
UPnP.cpp HTTPServer.cpp HTTPProxy.cpp i2p.cpp DaemonLinux.cpp I2PControl.cpp
AddressBook.cpp BOB.cpp ClientContext.cpp Daemon.cpp I2PTunnel.cpp I2PService.cpp \
SAM.cpp SOCKS.cpp UPnP.cpp HTTPProxy.cpp i2p.cpp DaemonLinux.cpp I2PControl.cpp \
HTTPServer.cpp
endif

0
LittleBigEndian.h → util/LittleBigEndian.h

0
Queue.h → util/Queue.h

0
Timestamp.h → util/Timestamp.h

0
util.cpp → util/util.cpp

0
util.h → util/util.h

Loading…
Cancel
Save