change formatting of namespace declarations

This commit is contained in:
arvidn 2017-04-12 13:00:57 -04:00 committed by Arvid Norberg
parent 591d9716c3
commit 480bde9333
310 changed files with 650 additions and 760 deletions

View File

@ -47,8 +47,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
#include "libtorrent/units.hpp" #include "libtorrent/units.hpp"
namespace libtorrent namespace libtorrent {
{
class torrent_info; class torrent_info;
struct torrent_plugin; struct torrent_plugin;
struct torrent_handle; struct torrent_handle;

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
#endif // SIMULATOR #endif // SIMULATOR
namespace libtorrent namespace libtorrent {
{
#if defined TORRENT_BUILD_SIMULATOR #if defined TORRENT_BUILD_SIMULATOR
using address = sim::asio::ip::address; using address = sim::asio::ip::address;
using address_v4 = sim::asio::ip::address_v4; using address_v4 = sim::asio::ip::address_v4;

View File

@ -64,8 +64,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/time.hpp" #include "libtorrent/time.hpp"
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent namespace libtorrent {
{
// The ``alert`` class is the base class that specific messages are derived from. // The ``alert`` class is the base class that specific messages are derived from.
// alert types are not copyable, and cannot be constructed by the client. The // alert types are not copyable, and cannot be constructed by the client. The

View File

@ -57,8 +57,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/shared_array.hpp> #include <boost/shared_array.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent {
{
// maps an operation id (from peer_error_alert and peer_disconnected_alert) // maps an operation id (from peer_error_alert and peer_disconnected_alert)
// to its name. See peer_connection for the constants // to its name. See peer_connection for the constants
TORRENT_EXPORT char const* operation_name(int op); TORRENT_EXPORT char const* operation_name(int op);

View File

@ -36,8 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstddef> #include <cstddef>
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent namespace libtorrent {
{
TORRENT_EXTRA_EXPORT int page_size(); TORRENT_EXTRA_EXPORT int page_size();

View File

@ -41,8 +41,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <string> #include <string>
#include <cstdint> #include <cstdint>
namespace libtorrent namespace libtorrent {
{
// this class holds information about one bittorrent tracker, as it // this class holds information about one bittorrent tracker, as it
// relates to a specific torrent. // relates to a specific torrent.
struct TORRENT_EXPORT announce_entry struct TORRENT_EXPORT announce_entry

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <type_traits> #include <type_traits>
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
// this is meant to provide the actual storage for the handler allocator. // this is meant to provide the actual storage for the handler allocator.
// There's only a single slot, so the allocator is only supposed to be used // There's only a single slot, so the allocator is only supposed to be used
// for handlers where there's only a single outstanding operation at a time, // for handlers where there's only a single outstanding operation at a time,

View File

@ -50,9 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
namespace libtorrent { namespace libtorrent { namespace aux {
namespace aux {
// these need to be within the disabled warnings because on OSX // these need to be within the disabled warnings because on OSX
// the htonl and ntohl macros cause lots of old-style case warnings // the htonl and ntohl macros cause lots of old-style case warnings
inline std::uint32_t host_to_network(std::uint32_t x) inline std::uint32_t host_to_network(std::uint32_t x)

View File

@ -8,6 +8,7 @@
namespace boost { namespace boost {
namespace multiprecision { namespace multiprecision {
namespace detail { namespace detail {

View File

@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
// initialized by static initializers (in cpuid.cpp) // initialized by static initializers (in cpuid.cpp)
TORRENT_EXTRA_EXPORT extern bool const sse42_support; TORRENT_EXTRA_EXPORT extern bool const sse42_support;
TORRENT_EXTRA_EXPORT extern bool const mmx_support; TORRENT_EXTRA_EXPORT extern bool const mmx_support;

View File

@ -44,8 +44,8 @@ namespace libtorrent {
struct disk_io_job; struct disk_io_job;
struct counters; struct counters;
namespace aux namespace aux {
{
// implements the disk I/O job fence used by the storage_interface // implements the disk I/O job fence used by the storage_interface
// to provide to the disk thread. Whenever a disk job needs // to provide to the disk thread. Whenever a disk job needs
// exclusive access to the storage for that torrent, it raises // exclusive access to the storage for that torrent, it raises

View File

@ -38,8 +38,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
#include "libtorrent/string_view.hpp" #include "libtorrent/string_view.hpp"
namespace libtorrent namespace libtorrent {
{
namespace string namespace string
{ {
enum flags_t enum flags_t

View File

@ -37,8 +37,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/export.hpp" #include "libtorrent/export.hpp"
#include "libtorrent/span.hpp" #include "libtorrent/span.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
// For a general reference of the problems these routines are about // For a general reference of the problems these routines are about
// see http://en.wikipedia.org/wiki/Find_first_set // see http://en.wikipedia.org/wiki/Find_first_set

View File

@ -50,15 +50,15 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/bitfield.hpp" #include "libtorrent/bitfield.hpp"
#endif #endif
namespace libtorrent namespace libtorrent {
{
class piece_picker; class piece_picker;
class file_storage; class file_storage;
class alert_manager; class alert_manager;
struct torrent_handle; struct torrent_handle;
namespace aux namespace aux {
{
struct TORRENT_EXTRA_EXPORT file_progress struct TORRENT_EXTRA_EXPORT file_progress
{ {
file_progress(); file_progress();

View File

@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/piece_block.hpp" #include "libtorrent/piece_block.hpp"
namespace libtorrent { namespace aux { namespace libtorrent { namespace aux {
struct has_block struct has_block
{ {
has_block(has_block const&) = default; has_block(has_block const&) = default;

View File

@ -38,8 +38,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <type_traits> #include <type_traits>
#include "libtorrent/span.hpp" #include "libtorrent/span.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
template <class T> struct type {}; template <class T> struct type {};
// reads an integer from a byte stream // reads an integer from a byte stream

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
#include "libtorrent/io_service.hpp" #include "libtorrent/io_service.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
struct TORRENT_EXTRA_EXPORT ip_change_notifier struct TORRENT_EXTRA_EXPORT ip_change_notifier
{ {
// cb will be invoked when a change is detected in the // cb will be invoked when a change is detected in the

View File

@ -35,9 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent { namespace libtorrent { namespace aux {
namespace aux
{
struct TORRENT_EXTRA_EXPORT lsd_callback struct TORRENT_EXTRA_EXPORT lsd_callback
{ {
virtual void on_lsd_peer(tcp::endpoint const& peer, sha1_hash const& ih) = 0; virtual void on_lsd_peer(tcp::endpoint const& peer, sha1_hash const& ih) = 0;

View File

@ -36,8 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
#include "libtorrent/assert.hpp" #include "libtorrent/assert.hpp"
namespace libtorrent namespace libtorrent {
{
TORRENT_EXTRA_EXPORT int merkle_num_leafs(int); TORRENT_EXTRA_EXPORT int merkle_num_leafs(int);
TORRENT_EXTRA_EXPORT int merkle_num_nodes(int); TORRENT_EXTRA_EXPORT int merkle_num_nodes(int);
TORRENT_EXTRA_EXPORT int merkle_get_parent(int); TORRENT_EXTRA_EXPORT int merkle_get_parent(int);

View File

@ -63,9 +63,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <openssl/safestack.h> // for sk_GENERAL_NAME_value #include <openssl/safestack.h> // for sk_GENERAL_NAME_value
#include <openssl/x509v3.h> // for GENERAL_NAME #include <openssl/x509v3.h> // for GENERAL_NAME
namespace libtorrent { namespace libtorrent { namespace aux {
namespace aux {
inline void openssl_set_tlsext_hostname(SSL* s, char const* name) inline void openssl_set_tlsext_hostname(SSL* s, char const* name)
{ {
#if OPENSSL_VERSION_NUMBER >= 0x90812f #if OPENSSL_VERSION_NUMBER >= 0x90812f

View File

@ -84,8 +84,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/assert.hpp" #include "libtorrent/assert.hpp"
#include "libtorrent/time.hpp" #include "libtorrent/time.hpp"
namespace libtorrent namespace libtorrent {
{
struct file_status struct file_status
{ {
std::int64_t file_size = 0; std::int64_t file_size = 0;

View File

@ -35,9 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent { namespace libtorrent { namespace aux {
namespace aux
{
// TODO: move this for a better place and integrate it with // TODO: move this for a better place and integrate it with
// portmap error alerts // portmap error alerts
enum class portmap_transport : std::uint8_t enum class portmap_transport : std::uint8_t

View File

@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <string> #include <string>
namespace libtorrent { namespace libtorrent {
struct settings_pack; struct settings_pack;
namespace aux { namespace aux {

View File

@ -100,8 +100,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstdarg> // for va_start, va_end #include <cstdarg> // for va_start, va_end
#include <unordered_map> #include <unordered_map>
namespace libtorrent namespace libtorrent {
{
struct plugin; struct plugin;
struct upnp; struct upnp;
@ -112,8 +111,8 @@ namespace libtorrent
struct cache_info; struct cache_info;
struct torrent_handle; struct torrent_handle;
namespace dht namespace dht {
{
struct dht_tracker; struct dht_tracker;
class item; class item;
} }
@ -176,8 +175,8 @@ namespace libtorrent
std::shared_ptr<udp_socket> udp_sock; std::shared_ptr<udp_socket> udp_sock;
}; };
namespace aux namespace aux {
{
struct session_impl; struct session_impl;
struct session_settings; struct session_settings;

View File

@ -52,8 +52,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
#endif #endif
namespace libtorrent namespace libtorrent {
{
class peer_connection; class peer_connection;
class torrent; class torrent;
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
@ -82,15 +82,15 @@ namespace libtorrent
struct resolver_interface; struct resolver_interface;
#ifndef TORRENT_DISABLE_DHT #ifndef TORRENT_DISABLE_DHT
namespace dht namespace dht {
{
struct dht_tracker; struct dht_tracker;
} }
#endif #endif
} }
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
struct proxy_settings; struct proxy_settings;
struct session_settings; struct session_settings;

View File

@ -41,13 +41,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include <array> #include <array>
#include <bitset> #include <bitset>
namespace libtorrent namespace libtorrent {
{
TORRENT_EXTRA_EXPORT void initialize_default_settings(aux::session_settings& s); TORRENT_EXTRA_EXPORT void initialize_default_settings(aux::session_settings& s);
} }
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
struct TORRENT_EXTRA_EXPORT session_settings struct TORRENT_EXTRA_EXPORT session_settings
{ {

View File

@ -44,8 +44,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <sys/uio.h> // for iovec #include <sys/uio.h> // for iovec
#endif #endif
namespace libtorrent namespace libtorrent {
{
class file_storage; class file_storage;
struct part_file; struct part_file;
struct storage_error; struct storage_error;

View File

@ -42,7 +42,6 @@ POSSIBILITY OF SUCH DAMAGE.
namespace libtorrent { namespace aux { namespace libtorrent { namespace aux {
struct suggest_piece struct suggest_piece
{ {
// pick at most n piece indices that are _not_ in p (which represents // pick at most n piece indices that are _not_ in p (which represents

View File

@ -37,8 +37,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
template <typename T, typename... Args> template <typename T, typename... Args>
void TORRENT_NO_RETURN throw_ex(Args&&... args) void TORRENT_NO_RETURN throw_ex(Args&&... args)
{ {

View File

@ -36,8 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
#include "libtorrent/time.hpp" #include "libtorrent/time.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
// returns the current time, as represented by time_point. The // returns the current time, as represented by time_point. The
// resolution of this timer is about 100 ms. // resolution of this timer is about 100 ms.
TORRENT_EXTRA_EXPORT time_point time_now(); TORRENT_EXTRA_EXPORT time_point time_now();

View File

@ -42,8 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <wincrypt.h> #include <wincrypt.h>
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
inline HCRYPTPROV crypt_acquire_provider(DWORD provider_type) inline HCRYPTPROV crypt_acquire_provider(DWORD provider_type)
{ {

View File

@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent { namespace aux namespace libtorrent { namespace aux {
{
template <typename Library> template <typename Library>
HMODULE get_library_handle() HMODULE get_library_handle()
{ {

View File

@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/export.hpp" #include "libtorrent/export.hpp"
namespace libtorrent namespace libtorrent {
{
struct TORRENT_EXTRA_EXPORT bandwidth_socket struct TORRENT_EXTRA_EXPORT bandwidth_socket
{ {
virtual void assign_bandwidth(int channel, int amount) = 0; virtual void assign_bandwidth(int channel, int amount) = 0;

View File

@ -156,8 +156,8 @@ TORRENT_EXTRA_EXPORT char const* parse_int(char const* start
, char const* end, char delimiter, std::int64_t& val , char const* end, char delimiter, std::int64_t& val
, bdecode_errors::error_code_enum& ec); , bdecode_errors::error_code_enum& ec);
namespace detail namespace detail {
{
// internal // internal
struct bdecode_token struct bdecode_token
{ {

View File

@ -77,15 +77,14 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/io.hpp" // for write_string #include "libtorrent/io.hpp" // for write_string
#include "libtorrent/string_util.hpp" // for is_digit #include "libtorrent/string_util.hpp" // for is_digit
namespace libtorrent namespace libtorrent {
{
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
using invalid_encoding = system_error; using invalid_encoding = system_error;
#endif #endif
namespace detail namespace detail {
{
template <class OutIt, class In, typename Cond template <class OutIt, class In, typename Cond
= typename std::enable_if<std::is_integral<In>::value>::type> = typename std::enable_if<std::is_integral<In>::value>::type>
int write_integer(OutIt& out, In data) int write_integer(OutIt& out, In data)

View File

@ -42,8 +42,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstring> // for memset and memcpy #include <cstring> // for memset and memcpy
#include <cstdint> // uint32_t #include <cstdint> // uint32_t
namespace libtorrent namespace libtorrent {
{
// The bitfield type stores any number of bits as a bitfield // The bitfield type stores any number of bits as a bitfield
// in a heap allocated array. // in a heap allocated array.
struct TORRENT_EXPORT bitfield struct TORRENT_EXPORT bitfield

View File

@ -53,14 +53,14 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/vector.hpp" #include "libtorrent/aux_/vector.hpp"
#endif #endif
namespace libtorrent namespace libtorrent {
{
struct disk_io_job; struct disk_io_job;
struct storage_interface; struct storage_interface;
struct cache_status; struct cache_status;
struct counters; struct counters;
namespace aux namespace aux {
{
struct session_settings; struct session_settings;
struct block_cache_reference; struct block_cache_reference;
} }

View File

@ -38,8 +38,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cmath> // for log() #include <cmath> // for log()
#include <cstdint> #include <cstdint>
namespace libtorrent namespace libtorrent {
{
TORRENT_EXTRA_EXPORT void set_bits(std::uint8_t const* b, std::uint8_t* bits, int len); TORRENT_EXTRA_EXPORT void set_bits(std::uint8_t const* b, std::uint8_t* bits, int len);
TORRENT_EXTRA_EXPORT bool has_bits(std::uint8_t const* b, std::uint8_t const* bits, int len); TORRENT_EXTRA_EXPORT bool has_bits(std::uint8_t const* b, std::uint8_t const* bits, int len);
TORRENT_EXTRA_EXPORT int count_zero_bits(std::uint8_t const* bits, int len); TORRENT_EXTRA_EXPORT int count_zero_bits(std::uint8_t const* bits, int len);

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
#include <list> #include <list>
namespace libtorrent namespace libtorrent {
{
// TODO: 2 factor these functions out // TODO: 2 factor these functions out
TORRENT_EXTRA_EXPORT bool is_local(address const& a); TORRENT_EXTRA_EXPORT bool is_local(address const& a);
TORRENT_EXTRA_EXPORT bool is_loopback(address const& addr); TORRENT_EXTRA_EXPORT bool is_loopback(address const& addr);

View File

@ -54,8 +54,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
#include "libtorrent/pe_crypto.hpp" #include "libtorrent/pe_crypto.hpp"
namespace libtorrent namespace libtorrent {
{
class torrent; class torrent;
#ifndef TORRENT_DISABLE_EXTENSIONS #ifndef TORRENT_DISABLE_EXTENSIONS

View File

@ -54,8 +54,8 @@ POSSIBILITY OF SUCH DAMAGE.
#define TORRENT_CPP98_DEQUE 0 #define TORRENT_CPP98_DEQUE 0
#endif #endif
namespace libtorrent namespace libtorrent {
{
// TODO: 2 this type should probably be renamed to send_buffer // TODO: 2 this type should probably be renamed to send_buffer
struct TORRENT_EXTRA_EXPORT chained_buffer : private single_threaded struct TORRENT_EXTRA_EXPORT chained_buffer : private single_threaded
{ {

View File

@ -34,8 +34,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/time.hpp" // for time_duration #include "libtorrent/time.hpp" // for time_duration
#include <vector> #include <vector>
namespace libtorrent namespace libtorrent {
{
namespace aux { struct session_settings; } namespace aux { struct session_settings; }
class peer_connection; class peer_connection;

View File

@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
namespace libtorrent namespace libtorrent {
{
// internal: these are all the reasons to disconnect a peer // internal: these are all the reasons to disconnect a peer
// all reasons caused by the peer sending unexpected data // all reasons caused by the peer sending unexpected data
// are 256 and up. // are 256 and up.

View File

@ -33,8 +33,8 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_COPY_PTR #ifndef TORRENT_COPY_PTR
#define TORRENT_COPY_PTR #define TORRENT_COPY_PTR
namespace libtorrent namespace libtorrent {
{
template <class T> template <class T>
struct copy_ptr struct copy_ptr
{ {

View File

@ -36,8 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstdint> #include <cstdint>
#include "libtorrent/export.hpp" #include "libtorrent/export.hpp"
namespace libtorrent namespace libtorrent {
{
// this is the crc32c (Castagnoli) polynomial // this is the crc32c (Castagnoli) polynomial
TORRENT_EXTRA_EXPORT std::uint32_t crc32c_32(std::uint32_t v); TORRENT_EXTRA_EXPORT std::uint32_t crc32c_32(std::uint32_t v);
TORRENT_EXTRA_EXPORT std::uint32_t crc32c(std::uint64_t const* v TORRENT_EXTRA_EXPORT std::uint32_t crc32c(std::uint64_t const* v

View File

@ -88,8 +88,8 @@ POSSIBILITY OF SUCH DAMAGE.
// ofstream out("my_torrent.torrent", std::ios_base::binary); // ofstream out("my_torrent.torrent", std::ios_base::binary);
// bencode(std::ostream_iterator<char>(out), t.generate()); // bencode(std::ostream_iterator<char>(out), t.generate());
// //
namespace libtorrent namespace libtorrent {
{
class torrent_info; class torrent_info;
// This class holds state for creating a torrent. After having added // This class holds state for creating a torrent. After having added
@ -366,8 +366,8 @@ namespace libtorrent
bool m_include_symlinks:1; bool m_include_symlinks:1;
}; };
namespace detail namespace detail {
{
inline void nop(piece_index_t) {} inline void nop(piece_index_t) {}
} }

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
#endif // SIMULATOR #endif // SIMULATOR
namespace libtorrent namespace libtorrent {
{
#if defined TORRENT_BUILD_SIMULATOR #if defined TORRENT_BUILD_SIMULATOR
typedef sim::asio::high_resolution_timer deadline_timer; typedef sim::asio::high_resolution_timer deadline_timer;
#else #else

View File

@ -62,8 +62,8 @@ const mach_msg_type_number_t task_events_info_count = TASK_EVENTS_INFO_COUNT;
std::string demangle(char const* name); std::string demangle(char const* name);
namespace libtorrent namespace libtorrent {
{
struct async_t struct async_t
{ {
async_t() : refs(0) {} async_t() : refs(0) {}
@ -173,8 +173,8 @@ namespace libtorrent
#endif // TORRENT_ASIO_DEBUGGING #endif // TORRENT_ASIO_DEBUGGING
namespace libtorrent namespace libtorrent {
{
#if TORRENT_USE_ASSERTS #if TORRENT_USE_ASSERTS
struct TORRENT_EXTRA_EXPORT single_threaded struct TORRENT_EXTRA_EXPORT single_threaded
{ {

View File

@ -40,8 +40,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
namespace libtorrent namespace libtorrent {
{
struct disk_io_thread; struct disk_io_thread;
struct disk_observer; struct disk_observer;
struct disk_buffer_holder; struct disk_buffer_holder;

View File

@ -56,8 +56,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/span.hpp" #include "libtorrent/span.hpp"
#include "libtorrent/aux_/storage_utils.hpp" // for iovec_t #include "libtorrent/aux_/storage_utils.hpp" // for iovec_t
namespace libtorrent namespace libtorrent {
{
namespace aux { struct session_settings; } namespace aux { struct session_settings; }
class alert; class alert;
struct disk_observer; struct disk_observer;

View File

@ -46,8 +46,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/time.hpp" #include "libtorrent/time.hpp"
#include "libtorrent/sha1_hash.hpp" #include "libtorrent/sha1_hash.hpp"
namespace libtorrent namespace libtorrent {
{
struct storage_interface; struct storage_interface;
struct peer_request; struct peer_request;
struct disk_observer; struct disk_observer;

View File

@ -51,8 +51,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
#include <functional> #include <functional>
namespace libtorrent namespace libtorrent {
{
struct storage_interface; struct storage_interface;
struct cached_piece_entry; struct cached_piece_entry;
class torrent_info; class torrent_info;

View File

@ -53,15 +53,15 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
#include <vector> #include <vector>
namespace libtorrent namespace libtorrent {
{
class alert; class alert;
struct add_torrent_params; struct add_torrent_params;
struct counters; struct counters;
class alert_manager; class alert_manager;
namespace aux namespace aux {
{
struct block_cache_reference; struct block_cache_reference;
} }

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <mutex> #include <mutex>
#include <atomic> #include <atomic>
namespace libtorrent namespace libtorrent {
{
struct disk_io_thread_pool; struct disk_io_thread_pool;
struct pool_thread_interface struct pool_thread_interface

View File

@ -40,8 +40,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/pool/pool.hpp> #include <boost/pool/pool.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent {
{
struct disk_io_job; struct disk_io_job;
struct TORRENT_EXTRA_EXPORT disk_job_pool struct TORRENT_EXTRA_EXPORT disk_job_pool

View File

@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
namespace libtorrent namespace libtorrent {
{
struct TORRENT_EXTRA_EXPORT disk_observer struct TORRENT_EXTRA_EXPORT disk_observer
{ {
// called when the disk cache size has dropped // called when the disk cache size has dropped

View File

@ -4,8 +4,8 @@
#include "libtorrent/export.hpp" // for TORRENT_EXPORT #include "libtorrent/export.hpp" // for TORRENT_EXPORT
#include <stddef.h> // for size_t #include <stddef.h> // for size_t
namespace libtorrent namespace libtorrent {
{
enum enum
{ {
ed25519_seed_size = 32, ed25519_seed_size = 32,

View File

@ -76,8 +76,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/string_view.hpp" #include "libtorrent/string_view.hpp"
#include "libtorrent/aux_/aligned_union.hpp" #include "libtorrent/aux_/aligned_union.hpp"
namespace libtorrent namespace libtorrent {
{
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
struct lazy_entry; struct lazy_entry;
// backwards compatibility // backwards compatibility
@ -85,8 +85,8 @@ namespace libtorrent
#endif #endif
struct bdecode_node; struct bdecode_node;
namespace aux namespace aux {
{
#if (__cplusplus > 201103) || (defined _MSC_VER && _MSC_VER >= 1900) #if (__cplusplus > 201103) || (defined _MSC_VER && _MSC_VER >= 1900)
// this enables us to compare a string_view against the std::string that's // this enables us to compare a string_view against the std::string that's
// held by the std::map // held by the std::map
@ -342,8 +342,8 @@ namespace libtorrent
mutable std::uint8_t m_type_queried:1; mutable std::uint8_t m_type_queried:1;
}; };
namespace detail namespace detail {
{
TORRENT_EXPORT char const* integer_to_str(char* buf, int size TORRENT_EXPORT char const* integer_to_str(char* buf, int size
, entry::integer_type val); , entry::integer_type val);
} }

View File

@ -51,8 +51,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector> #include <vector>
namespace libtorrent namespace libtorrent {
{
struct socket_type; struct socket_type;
// the interface should not have a netmask // the interface should not have a netmask

View File

@ -44,8 +44,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/asio/error.hpp> #include <boost/asio/error.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent {
{
namespace error = boost::asio::error; namespace error = boost::asio::error;
} }

View File

@ -41,8 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
#include "libtorrent/units.hpp" #include "libtorrent/units.hpp"
namespace libtorrent namespace libtorrent {
{
namespace errors namespace errors
{ {

View File

@ -168,8 +168,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/socket.hpp" #include "libtorrent/socket.hpp"
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
namespace libtorrent namespace libtorrent {
{
struct peer_plugin; struct peer_plugin;
struct peer_request; struct peer_request;
class entry; class entry;

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
namespace libtorrent namespace libtorrent {
{
struct torrent_plugin; struct torrent_plugin;
struct torrent_handle; struct torrent_handle;

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
namespace libtorrent namespace libtorrent {
{
struct torrent_plugin; struct torrent_plugin;
struct torrent_handle; struct torrent_handle;

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
namespace libtorrent namespace libtorrent {
{
struct torrent_plugin; struct torrent_plugin;
struct torrent_handle; struct torrent_handle;

View File

@ -84,8 +84,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/assert.hpp" #include "libtorrent/assert.hpp"
#include "libtorrent/time.hpp" #include "libtorrent/time.hpp"
namespace libtorrent namespace libtorrent {
{
#ifdef TORRENT_WINDOWS #ifdef TORRENT_WINDOWS
using handle_type = HANDLE; using handle_type = HANDLE;
#else #else

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/storage_defs.hpp" #include "libtorrent/storage_defs.hpp"
#include "libtorrent/disk_interface.hpp" // for open_file_state #include "libtorrent/disk_interface.hpp" // for open_file_state
namespace libtorrent namespace libtorrent {
{
class file_storage; class file_storage;
struct open_file_state; struct open_file_state;

View File

@ -46,8 +46,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/string_view.hpp" #include "libtorrent/string_view.hpp"
#include "libtorrent/aux_/vector.hpp" #include "libtorrent/aux_/vector.hpp"
namespace libtorrent namespace libtorrent {
{
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
// information about a file in a file_storage // information about a file in a file_storage
struct TORRENT_DEPRECATED_EXPORT file_entry struct TORRENT_DEPRECATED_EXPORT file_entry

View File

@ -40,8 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/peer_id.hpp" #include "libtorrent/peer_id.hpp"
#include "libtorrent/export.hpp" #include "libtorrent/export.hpp"
namespace libtorrent namespace libtorrent {
{
// This is a utility function to produce a client ID fingerprint formatted to // This is a utility function to produce a client ID fingerprint formatted to
// the most common convention. // the most common convention.

View File

@ -38,8 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector> #include <vector>
namespace libtorrent namespace libtorrent {
{
TORRENT_EXTRA_EXPORT void inflate_gzip( TORRENT_EXTRA_EXPORT void inflate_gzip(
char const* in, int size char const* in, int size

View File

@ -60,8 +60,8 @@ extern "C" {
#endif #endif
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent {
{
// this is a SHA-1 hash class. // this is a SHA-1 hash class.
// //
// You use it by first instantiating it, then call ``update()`` to feed it // You use it by first instantiating it, then call ``update()`` to feed it

View File

@ -61,8 +61,8 @@ extern "C" {
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent {
{
using sha512_hash = digest32<512>; using sha512_hash = digest32<512>;
// this is a SHA-512 hash class. // this is a SHA-512 hash class.

View File

@ -45,6 +45,7 @@ POSSIBILITY OF SUCH DAMAGE.
namespace libtorrent { namespace libtorrent {
namespace aux { namespace aux {
struct free_deleter struct free_deleter
{ void operator()(char* ptr) { return std::free(ptr); } }; { void operator()(char* ptr) { return std::free(ptr); } };

View File

@ -39,8 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <string> #include <string>
namespace libtorrent namespace libtorrent {
{
namespace aux { namespace aux {
TORRENT_EXTRA_EXPORT int hex_to_int(char in); TORRENT_EXTRA_EXPORT int hex_to_int(char in);

View File

@ -57,8 +57,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/i2p_stream.hpp" #include "libtorrent/i2p_stream.hpp"
#include "libtorrent/aux_/vector.hpp" #include "libtorrent/aux_/vector.hpp"
namespace libtorrent namespace libtorrent {
{
struct http_connection; struct http_connection;
struct resolver_interface; struct resolver_interface;

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
#include "libtorrent/buffer.hpp" #include "libtorrent/buffer.hpp"
namespace libtorrent namespace libtorrent {
{
// return true if the status code is 200, 206, or in the 300-400 range // return true if the status code is 200, 206, or in the 300-400 range
TORRENT_EXTRA_EXPORT bool is_ok_status(int http_status); TORRENT_EXTRA_EXPORT bool is_ok_status(int http_status);

View File

@ -42,8 +42,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/web_connection_base.hpp" #include "libtorrent/web_connection_base.hpp"
#include "libtorrent/piece_block_progress.hpp" #include "libtorrent/piece_block_progress.hpp"
namespace libtorrent namespace libtorrent {
{
class torrent; class torrent;
struct peer_request; struct peer_request;

View File

@ -44,8 +44,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/i2p_stream.hpp" #include "libtorrent/i2p_stream.hpp"
#include "libtorrent/error_code.hpp" #include "libtorrent/error_code.hpp"
namespace libtorrent namespace libtorrent {
{
struct http_connection; struct http_connection;
class entry; class entry;

View File

@ -46,8 +46,8 @@ POSSIBILITY OF SUCH DAMAGE.
// TODO: hide this declaration when deprecated functions are disabled, and // TODO: hide this declaration when deprecated functions are disabled, and
// remove its internal use // remove its internal use
namespace libtorrent namespace libtorrent {
{
// these functions don't really need to be public. This mechanism of // these functions don't really need to be public. This mechanism of
// advertising client software and version is also out-dated. // advertising client software and version is also out-dated.

View File

@ -35,9 +35,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/socket_type.hpp" #include "libtorrent/socket_type.hpp"
namespace libtorrent namespace libtorrent {
{
namespace aux { namespace aux {
struct proxy_settings; struct proxy_settings;
} }

View File

@ -11,8 +11,7 @@
#if TORRENT_USE_INVARIANT_CHECKS #if TORRENT_USE_INVARIANT_CHECKS
namespace libtorrent namespace libtorrent {
{
class invariant_access class invariant_access
{ {

View File

@ -42,10 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
#include "assert.hpp" #include "assert.hpp"
namespace libtorrent namespace libtorrent {
{
namespace detail namespace detail {
{
template <class T> struct type {}; template <class T> struct type {};
// reads an integer from a byte stream // reads an integer from a byte stream

View File

@ -41,8 +41,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_pop.hpp" #include "libtorrent/aux_/disable_warnings_pop.hpp"
#endif // SIMULATOR #endif // SIMULATOR
namespace libtorrent namespace libtorrent {
{
#if defined TORRENT_BUILD_SIMULATOR #if defined TORRENT_BUILD_SIMULATOR
using sim::asio::io_service; using sim::asio::io_service;
#else #else

View File

@ -37,16 +37,18 @@ POSSIBILITY OF SUCH DAMAGE.
#if defined TORRENT_BUILD_SIMULATOR #if defined TORRENT_BUILD_SIMULATOR
namespace sim { namespace asio { namespace sim { namespace asio {
struct io_service; struct io_service;
}} }}
#else #else
namespace boost { namespace asio { namespace boost { namespace asio {
class io_service; class io_service;
}} }}
#endif #endif
namespace libtorrent namespace libtorrent {
{
#if defined TORRENT_BUILD_SIMULATOR #if defined TORRENT_BUILD_SIMULATOR
typedef sim::asio::io_service io_service; typedef sim::asio::io_service io_service;
#else #else

View File

@ -45,8 +45,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/address.hpp" #include "libtorrent/address.hpp"
#include "libtorrent/assert.hpp" #include "libtorrent/assert.hpp"
namespace libtorrent namespace libtorrent {
{
// hidden // hidden
inline bool operator<=(address const& lhs inline bool operator<=(address const& lhs
@ -63,8 +62,7 @@ struct ip_range
std::uint32_t flags; std::uint32_t flags;
}; };
namespace detail namespace detail {
{
template<class Addr> template<class Addr>
Addr zero() Addr zero()

View File

@ -38,8 +38,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/bloom_filter.hpp" #include "libtorrent/bloom_filter.hpp"
#include "libtorrent/time.hpp" // for time_point #include "libtorrent/time.hpp" // for time_point
namespace libtorrent namespace libtorrent {
{
// this is an object that keeps the state for a single external IP // this is an object that keeps the state for a single external IP
// based on peoples votes // based on peoples votes
struct TORRENT_EXTRA_EXPORT ip_voter struct TORRENT_EXTRA_EXPORT ip_voter

View File

@ -37,8 +37,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/address.hpp" #include "libtorrent/address.hpp"
#include "libtorrent/kademlia/msg.hpp" #include "libtorrent/kademlia/msg.hpp"
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct TORRENT_EXTRA_EXPORT dht_logger struct TORRENT_EXTRA_EXPORT dht_logger
{ {
#ifndef TORRENT_DISABLE_LOGGING #ifndef TORRENT_DISABLE_LOGGING

View File

@ -41,14 +41,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector> #include <vector>
namespace libtorrent namespace libtorrent {
{
struct bdecode_node; struct bdecode_node;
} }
namespace libtorrent { namespace libtorrent { namespace dht {
namespace dht
{
// This structure helps to store and load the state // This structure helps to store and load the state
// of the ``dht_tracker``. // of the ``dht_tracker``.
// At this moment the library is only a dual stack // At this moment the library is only a dual stack

View File

@ -43,15 +43,13 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/span.hpp> #include <libtorrent/span.hpp>
#include <libtorrent/string_view.hpp> #include <libtorrent/string_view.hpp>
namespace libtorrent namespace libtorrent {
{
struct dht_settings; struct dht_settings;
class entry; class entry;
} }
namespace libtorrent { namespace libtorrent { namespace dht {
namespace dht
{
// This structure hold the relevant counters for the storage // This structure hold the relevant counters for the storage
struct TORRENT_EXPORT dht_storage_counters struct TORRENT_EXPORT dht_storage_counters
{ {

View File

@ -44,8 +44,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/span.hpp> #include <libtorrent/span.hpp>
#include <libtorrent/io_service.hpp> #include <libtorrent/io_service.hpp>
namespace libtorrent namespace libtorrent {
{
struct counters; struct counters;
struct dht_settings; struct dht_settings;
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
@ -53,8 +53,8 @@ namespace libtorrent
#endif #endif
} }
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct TORRENT_EXTRA_EXPORT dht_tracker final struct TORRENT_EXTRA_EXPORT dht_tracker final
: udp_socket_interface : udp_socket_interface
, std::enable_shared_from_this<dht_tracker> , std::enable_shared_from_this<dht_tracker>

View File

@ -36,8 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/kademlia/msg.hpp> #include <libtorrent/kademlia/msg.hpp>
#include <libtorrent/kademlia/traversal_algorithm.hpp> #include <libtorrent/kademlia/traversal_algorithm.hpp>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct direct_traversal : traversal_algorithm struct direct_traversal : traversal_algorithm
{ {

View File

@ -38,8 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/address.hpp" #include "libtorrent/address.hpp"
#include "libtorrent/assert.hpp" #include "libtorrent/assert.hpp"
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct dht_logger; struct dht_logger;

View File

@ -40,9 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <array> #include <array>
#include <tuple> #include <tuple>
namespace libtorrent { namespace libtorrent { namespace dht {
namespace dht
{
// See documentation of internal random_bytes // See documentation of internal random_bytes
TORRENT_EXPORT std::array<char, 32> ed25519_create_seed(); TORRENT_EXPORT std::array<char, 32> ed25519_create_seed();

View File

@ -43,8 +43,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector> #include <vector>
#include <map> #include <map>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
class node; class node;

View File

@ -38,8 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <memory> #include <memory>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
class get_item : public find_data class get_item : public find_data
{ {

View File

@ -35,8 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/kademlia/find_data.hpp> #include <libtorrent/kademlia/find_data.hpp>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct get_peers : find_data struct get_peers : find_data
{ {

View File

@ -39,8 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/span.hpp> #include <libtorrent/span.hpp>
#include <libtorrent/kademlia/types.hpp> #include <libtorrent/kademlia/types.hpp>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
// calculate the target hash for an immutable item. // calculate the target hash for an immutable item.
TORRENT_EXTRA_EXPORT sha1_hash item_target_id(span<char const> v); TORRENT_EXTRA_EXPORT sha1_hash item_target_id(span<char const> v);

View File

@ -50,13 +50,13 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/string_view.hpp> #include <libtorrent/string_view.hpp>
namespace libtorrent { namespace libtorrent {
struct counters; struct counters;
struct dht_routing_bucket; struct dht_routing_bucket;
struct dht_settings; struct dht_settings;
} }
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct traversal_algorithm; struct traversal_algorithm;
struct dht_observer; struct dht_observer;

View File

@ -39,8 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/union_endpoint.hpp" #include "libtorrent/union_endpoint.hpp"
#include "libtorrent/time.hpp" // for time_point #include "libtorrent/time.hpp" // for time_point
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
struct TORRENT_EXTRA_EXPORT node_entry struct TORRENT_EXTRA_EXPORT node_entry
{ {

View File

@ -39,8 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/sha1_hash.hpp> #include <libtorrent/sha1_hash.hpp>
#include <libtorrent/address.hpp> #include <libtorrent/address.hpp>
namespace libtorrent { namespace dht namespace libtorrent { namespace dht {
{
using node_id = libtorrent::sha1_hash; using node_id = libtorrent::sha1_hash;

Some files were not shown because too many files have changed in this diff Show More