Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #304
Browse files Browse the repository at this point in the history
30d169d Style: move network_database -> net_db. Refs #280 (anonimal)
deba858 Build: update header guards. Fixes #303 (anonimal)
  • Loading branch information
anonimal committed Aug 9, 2016
2 parents 2a398bb + 30d169d commit 504e9f8
Show file tree
Hide file tree
Showing 50 changed files with 79 additions and 83 deletions.
2 changes: 1 addition & 1 deletion src/app/daemon.cc
Expand Up @@ -43,7 +43,7 @@
#include "client/client_context.h"
#include "destination.h"
#include "garlic.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "router_info.h"
#include "version.h"
Expand Down
4 changes: 2 additions & 2 deletions src/app/util/file_system.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_APP_UTIL_FILESYSTEM_H_
#define SRC_APP_UTIL_FILESYSTEM_H_
#ifndef SRC_APP_UTIL_FILE_SYSTEM_H_
#define SRC_APP_UTIL_FILE_SYSTEM_H_

#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/app/win32_service.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_APP_WIN32SERVICE_H_
#define SRC_APP_WIN32SERVICE_H_
#ifndef SRC_APP_WIN32_SERVICE_H_
#define SRC_APP_WIN32_SERVICE_H_

#include <windows.h>
#define WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 1 addition & 1 deletion src/client/address_book.cc
Expand Up @@ -47,7 +47,7 @@

#include "destination.h"
#include "identity.h"
#include "network_database.h"
#include "net_db.h"
#include "crypto/rand.h"
#include "util/http.h"
#include "util/log.h"
Expand Down
4 changes: 2 additions & 2 deletions src/client/address_book.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_ADDRESSBOOK_H_
#define SRC_CLIENT_ADDRESSBOOK_H_
#ifndef SRC_CLIENT_ADDRESS_BOOK_H_
#define SRC_CLIENT_ADDRESS_BOOK_H_

#include <boost/asio.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/client/client_context.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_CLIENTCONTEXT_H_
#define SRC_CLIENT_CLIENTCONTEXT_H_
#ifndef SRC_CLIENT_CLIENT_CONTEXT_H_
#define SRC_CLIENT_CLIENT_CONTEXT_H_

#include <map>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/client/destination.cc
Expand Up @@ -44,7 +44,7 @@
#include <vector>

#include "address_book.h"
#include "network_database.h"
#include "net_db.h"
#include "crypto/elgamal.h"
#include "crypto/rand.h"
#include "util/log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/client/destination.h
Expand Up @@ -46,7 +46,7 @@
#include "garlic.h"
#include "identity.h"
#include "lease_set.h"
#include "network_database.h"
#include "net_db.h"
#include "datagram.h"
#include "streaming.h"
#include "tunnel/tunnel_pool.h"
Expand Down
2 changes: 1 addition & 1 deletion src/client/i2p_control/i2p_control.cc
Expand Up @@ -42,7 +42,7 @@
#include <string>

#include "client/client_context.h"
#include "core/network_database.h"
#include "core/net_db.h"
#include "core/router_context.h"
#include "core/version.h"
#include "crypto/rand.h"
Expand Down
4 changes: 2 additions & 2 deletions src/client/i2p_control/i2p_control.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_I2PCONTROL_I2PCONTROL_H_
#define SRC_CLIENT_I2PCONTROL_I2PCONTROL_H_
#ifndef SRC_CLIENT_I2P_CONTROL_I2P_CONTROL_H_
#define SRC_CLIENT_I2P_CONTROL_I2P_CONTROL_H_

#include <boost/asio.hpp>
#include <boost/property_tree/ptree.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/client/i2p_control/i2p_control_server.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_I2PCONTROL_I2PCONTROLSERVER_H_
#define SRC_CLIENT_I2PCONTROL_I2PCONTROLSERVER_H_
#ifndef SRC_CLIENT_I2P_CONTROL_I2P_CONTROL_SERVER_H_
#define SRC_CLIENT_I2P_CONTROL_I2P_CONTROL_SERVER_H_

#include <inttypes.h>

Expand Down
4 changes: 2 additions & 2 deletions src/client/i2p_service.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_I2PSERVICE_H_
#define SRC_CLIENT_I2PSERVICE_H_
#ifndef SRC_CLIENT_I2P_SERVICE_H_
#define SRC_CLIENT_I2P_SERVICE_H_

#include <boost/asio.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/client/i2p_tunnel/http_proxy.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_I2PTUNNEL_HTTPPROXY_H_
#define SRC_CLIENT_I2PTUNNEL_HTTPPROXY_H_
#ifndef SRC_CLIENT_I2PTUNNEL_HTTP_PROXY_H_
#define SRC_CLIENT_I2PTUNNEL_HTTP_PROXY_H_

#include <boost/asio.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/client/i2p_tunnel/i2p_tunnel.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CLIENT_I2PTUNNEL_I2PTUNNEL_H_
#define SRC_CLIENT_I2PTUNNEL_I2PTUNNEL_H_
#ifndef SRC_CLIENT_I2P_TUNNEL_I2P_TUNNEL_H_
#define SRC_CLIENT_I2P_TUNNEL_I2P_TUNNEL_H_

#include <boost/asio.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -8,7 +8,7 @@ set(CORE_SRC
"identity.cc"
"lease_set.cc"
"net_db_requests.cc"
"network_database.cc"
"net_db.cc"
"profiling.cc"
"reseed.cc"
"router_context.cc"
Expand Down
2 changes: 1 addition & 1 deletion src/core/i2np_protocol.cc
Expand Up @@ -39,7 +39,7 @@
#include <set>

#include "garlic.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "crypto/elgamal.h"
#include "crypto/hash.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/i2np_protocol.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_I2NPPROTOCOL_H_
#define SRC_CORE_I2NPPROTOCOL_H_
#ifndef SRC_CORE_I2NP_PROTOCOL_H_
#define SRC_CORE_I2NP_PROTOCOL_H_

#include <inttypes.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion src/core/lease_set.cc
Expand Up @@ -37,7 +37,7 @@
#include <memory>
#include <vector>

#include "network_database.h"
#include "net_db.h"
#include "crypto/rand.h"
#include "tunnel/tunnel_pool.h"
#include "util/i2p_endian.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/lease_set.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_LEASESET_H_
#define SRC_CORE_LEASESET_H_
#ifndef SRC_CORE_LEASE_SET_H_
#define SRC_CORE_LEASE_SET_H_

#include <array>
#include <cstdint>
Expand Down
2 changes: 1 addition & 1 deletion src/core/network_database.cc → src/core/net_db.cc
Expand Up @@ -30,7 +30,7 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#include "network_database.h"
#include "net_db.h"

#include <boost/asio.hpp>

Expand Down
8 changes: 2 additions & 6 deletions src/core/network_database.h → src/core/net_db.h
Expand Up @@ -30,12 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

// Note: this file is named NetworkDatabase.h instead of NetDb.h to avoid
// a possible nameclash with a file included by boost on case insensitive
// filesystems.

#ifndef SRC_CORE_NETWORKDATABASE_H_
#define SRC_CORE_NETWORKDATABASE_H_
#ifndef SRC_CORE_NET_DB_H_
#define SRC_CORE_NET_DB_H_

#include <inttypes.h>

Expand Down
2 changes: 1 addition & 1 deletion src/core/net_db_requests.cc
Expand Up @@ -33,7 +33,7 @@
#include "net_db_requests.h"

#include "i2np_protocol.h"
#include "network_database.h"
#include "net_db.h"
#include "transport/transports.h"
#include "util/log.h"

Expand Down
4 changes: 2 additions & 2 deletions src/core/net_db_requests.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_NETDBREQUESTS_H_
#define SRC_CORE_NETDBREQUESTS_H_
#ifndef SRC_CORE_NET_DB_REQUESTS_H_
#define SRC_CORE_NET_DB_REQUESTS_H_

#include <map>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/core/reseed.cc
Expand Up @@ -43,7 +43,7 @@
#include <vector>

#include "identity.h"
#include "network_database.h"
#include "net_db.h"
#include "crypto/rand.h"
#include "crypto/signature.h"
#include "util/file_system.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/router_context.cc
Expand Up @@ -41,7 +41,7 @@
#include <string>

#include "i2np_protocol.h"
#include "network_database.h"
#include "net_db.h"
#include "version.h"
#include "util/mtu.h"
#include "util/time_stamp.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/router_context.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_ROUTERCONTEXT_H_
#define SRC_CORE_ROUTERCONTEXT_H_
#ifndef SRC_CORE_ROUTER_CONTEXT_H_
#define SRC_CORE_ROUTER_CONTEXT_H_

#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/core/router_info.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_ROUTERINFO_H_
#define SRC_CORE_ROUTERINFO_H_
#ifndef SRC_CORE_ROUTER_INFO_H_
#define SRC_CORE_ROUTER_INFO_H_

#include <boost/asio.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/ntcp.cc
Expand Up @@ -37,7 +37,7 @@
#include <string>

#include "ntcp_session.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "transports.h"
#include "util/log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/ntcp_session.cc
Expand Up @@ -41,7 +41,7 @@

#include "i2np_protocol.h"
#include "ntcp.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "transports.h"
#include "crypto/diffie-hellman.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/transport/ntcp_session.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_TRANSPORT_NTCPSESSION_H_
#define SRC_CORE_TRANSPORT_NTCPSESSION_H_
#ifndef SRC_CORE_TRANSPORT_NTCP_SESSION_H_
#define SRC_CORE_TRANSPORT_NTCP_SESSION_H_

#include <boost/asio.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/ssu.cc
Expand Up @@ -44,7 +44,7 @@

#include "ssu.h"
#include "crypto/rand.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "util/log.h"
#include "util/time_stamp.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/ssu_data.cc
Expand Up @@ -39,7 +39,7 @@
#include <cstdint>
#include <memory>

#include "network_database.h"
#include "net_db.h"
#include "ssu.h"
#include "util/log.h"
#include "util/time_stamp.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/transport/ssu_data.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_TRANSPORT_SSUDATA_H_
#define SRC_CORE_TRANSPORT_SSUDATA_H_
#ifndef SRC_CORE_TRANSPORT_SSU_DATA_H_
#define SRC_CORE_TRANSPORT_SSU_DATA_H_

#include <boost/asio.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/core/transport/ssu_session.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_TRANSPORT_SSUSESSION_H_
#define SRC_CORE_TRANSPORT_SSUSESSION_H_
#ifndef SRC_CORE_TRANSPORT_SSU_SESSION_H_
#define SRC_CORE_TRANSPORT_SSU_SESSION_H_

#include <inttypes.h>

Expand Down
4 changes: 2 additions & 2 deletions src/core/transport/transport_session.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_TRANSPORT_TRANSPORTSESSION_H_
#define SRC_CORE_TRANSPORT_TRANSPORTSESSION_H_
#ifndef SRC_CORE_TRANSPORT_TRANSPORT_SESSION_H_
#define SRC_CORE_TRANSPORT_TRANSPORT_SESSION_H_

#include <cstdint>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/transports.cc
Expand Up @@ -39,7 +39,7 @@
#include <vector>

#include "i2np_protocol.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "crypto/diffie-hellman.h"
#include "crypto/rand.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/transport/upnp.cc
Expand Up @@ -50,7 +50,7 @@
#include <string>
#include <thread>

#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "util/log.h"

Expand Down
4 changes: 2 additions & 2 deletions src/core/tunnel/transit_tunnel.h
Expand Up @@ -30,8 +30,8 @@
* Parts of the project are originally copyright (c) 2013-2015 The PurpleI2P Project //
*/

#ifndef SRC_CORE_TUNNEL_TRANSITTUNNEL_H_
#define SRC_CORE_TUNNEL_TRANSITTUNNEL_H_
#ifndef SRC_CORE_TUNNEL_TRANSIT_TUNNEL_H_
#define SRC_CORE_TUNNEL_TRANSIT_TUNNEL_H_

#include <inttypes.h>

Expand Down
2 changes: 1 addition & 1 deletion src/core/tunnel/tunnel.cc
Expand Up @@ -42,7 +42,7 @@

#include "crypto/rand.h"
#include "i2np_protocol.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "tunnel.h"
#include "transport/transports.h"
Expand Down

0 comments on commit 504e9f8

Please sign in to comment.