Skip to content

Commit

Permalink
Style: move network_database -> net_db. Refs monero-project#280
Browse files Browse the repository at this point in the history
  • Loading branch information
anonimal committed Aug 9, 2016
1 parent deba858 commit 30d169d
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 27 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
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
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
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
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
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_NETWORK_DATABASE_H_
#define SRC_CORE_NETWORK_DATABASE_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
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
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
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
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
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
2 changes: 1 addition & 1 deletion src/core/tunnel/tunnel_endpoint.cc
Expand Up @@ -37,7 +37,7 @@
#include <utility>

#include "i2np_protocol.h"
#include "network_database.h"
#include "net_db.h"
#include "router_context.h"
#include "crypto/hash.h"
#include "transport/transports.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/tunnel/tunnel_pool.cc
Expand Up @@ -36,7 +36,7 @@
#include <vector>

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

0 comments on commit 30d169d

Please sign in to comment.