mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 22:45:49 +00:00
Add missing includes to make headers compile separately
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/basics/CountedObject.h>
|
||||
#include <ripple/core/LoadFeeTrack.h>
|
||||
#include <ripple/overlay/predicates.h>
|
||||
#include <ripple/types/UintTypes.h>
|
||||
|
||||
@@ -20,6 +20,15 @@
|
||||
#ifndef RIPPLE_LEDGER_H
|
||||
#define RIPPLE_LEDGER_H
|
||||
|
||||
#include <ripple/app/shamap/SHAMap.h>
|
||||
#include <ripple/app/tx/Transaction.h>
|
||||
#include <ripple/app/tx/TransactionMeta.h>
|
||||
#include <ripple/app/misc/AccountState.h>
|
||||
#include <ripple/app/misc/SerializedLedger.h>
|
||||
#include <ripple/basics/CountedObject.h>
|
||||
#include <ripple/data/protocol/Serializer.h>
|
||||
#include <ripple/types/Book.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
class Job;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef RIPPLE_NETWORKOPS_H
|
||||
#define RIPPLE_NETWORKOPS_H
|
||||
|
||||
#include <ripple/app/ledger/SerializedValidation.h>
|
||||
#include <ripple/net/InfoSub.h>
|
||||
#include <beast/cxx14/memory.h> // <memory>
|
||||
#include <beast/threads/Stoppable.h>
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
#ifndef RIPPLE_SERIALIZEDLEDGER_H
|
||||
#define RIPPLE_SERIALIZEDLEDGER_H
|
||||
|
||||
#include <ripple/data/protocol/LedgerFormats.h>
|
||||
#include <ripple/data/protocol/STObject.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
// VFALCO NOTE
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_SERIALIZEDTRANSACTION_H
|
||||
#define RIPPLE_SERIALIZEDTRANSACTION_H
|
||||
|
||||
#include <ripple/data/protocol/STObject.h>
|
||||
#include <ripple/data/protocol/TxFormats.h>
|
||||
#include <boost/logic/tribool.hpp>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -20,6 +20,12 @@
|
||||
#ifndef RIPPLE_SHAMAP_H
|
||||
#define RIPPLE_SHAMAP_H
|
||||
|
||||
#include <ripple/app/shamap/SHAMapAddNode.h>
|
||||
#include <ripple/app/shamap/SHAMapItem.h>
|
||||
#include <ripple/app/shamap/SHAMapMissingNode.h>
|
||||
#include <ripple/app/shamap/SHAMapNodeID.h>
|
||||
#include <ripple/app/shamap/SHAMapSyncFilter.h>
|
||||
#include <ripple/app/shamap/SHAMapTreeNode.h>
|
||||
#include <ripple/basics/LoggedTimings.h>
|
||||
#include <ripple/common/UnorderedContainers.h>
|
||||
#include <ripple/app/main/FullBelowCache.h>
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#define RIPPLE_SHAMAPITEM_H
|
||||
|
||||
#include <ripple/basics/CountedObject.h>
|
||||
#include <ripple/data/protocol/Serializer.h>
|
||||
#include <ripple/types/base_uint.h>
|
||||
#include <memory>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef RIPPLE_SHAMAPNODEID_H
|
||||
#define RIPPLE_SHAMAPNODEID_H
|
||||
|
||||
#include <ripple/data/protocol/Serializer.h>
|
||||
#include <ripple/types/base_uint.h>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_SHAMAPSYNCFILTER_H
|
||||
#define RIPPLE_SHAMAPSYNCFILTER_H
|
||||
|
||||
#include <ripple/app/shamap/SHAMapTreeNode.h>
|
||||
|
||||
/** Callback for filtering SHAMap during sync. */
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <ripple/app/shamap/SHAMapNodeID.h>
|
||||
#include <ripple/basics/CountedObject.h>
|
||||
#include <ripple/common/TaggedCache.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
#ifndef RIPPLE_TRANSACTION_H
|
||||
#define RIPPLE_TRANSACTION_H
|
||||
|
||||
#include <ripple/app/misc/SerializedTransaction.h>
|
||||
#include <ripple/data/protocol/TER.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
//
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_TRANSACTIONMETA_H
|
||||
#define RIPPLE_TRANSACTIONMETA_H
|
||||
|
||||
#include <ripple/app/misc/SerializedLedger.h>
|
||||
#include <ripple/data/protocol/STArray.h>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/common/jsonrpc_fields.h>
|
||||
#include <ripple/rpc/RPCHandler.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef RIPPLE_KNOWNFORMATS_H_INCLUDED
|
||||
#define RIPPLE_KNOWNFORMATS_H_INCLUDED
|
||||
|
||||
#include <ripple/data/protocol/SerializedObjectTemplate.h>
|
||||
#include <beast/cxx14/memory.h> // <memory>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_LEDGERFORMATS_H_INCLUDED
|
||||
#define RIPPLE_LEDGERFORMATS_H_INCLUDED
|
||||
|
||||
#include <ripple/data/protocol/KnownFormats.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
/** Ledger entry types.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <ripple/data/protocol/SField.h>
|
||||
#include <ripple/data/protocol/Serializer.h>
|
||||
#include <ripple/data/protocol/SerializedType.h>
|
||||
#include <ripple/types/Issue.h>
|
||||
|
||||
#include <beast/cxx14/memory.h> // <memory>
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
#define RIPPLE_STOBJECT_H
|
||||
|
||||
#include <ripple/basics/CountedObject.h>
|
||||
#include <ripple/data/protocol/STAmount.h>
|
||||
#include <ripple/data/protocol/SerializedType.h>
|
||||
#include <ripple/data/protocol/SerializedTypes.h>
|
||||
#include <ripple/data/protocol/SerializedObjectTemplate.h>
|
||||
#include <boost/ptr_container/ptr_vector.hpp>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#ifndef RIPPLE_SERIALIZER_H
|
||||
#define RIPPLE_SERIALIZER_H
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
#include <ripple/common/byte_view.h>
|
||||
#include <ripple/data/protocol/SField.h>
|
||||
#include <iomanip>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_TXFORMATS_H_INCLUDED
|
||||
#define RIPPLE_TXFORMATS_H_INCLUDED
|
||||
|
||||
#include <ripple/data/protocol/KnownFormats.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
/** Transaction type identifiers.
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_NET_RPC_RPCUTIL_H_INCLUDED
|
||||
#define RIPPLE_NET_RPC_RPCUTIL_H_INCLUDED
|
||||
|
||||
#include <ripple/json/json_value.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
// VFALCO TODO Wrap these up into a class. It looks like they just do some
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_RESOURCE_FEES_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_FEES_H_INCLUDED
|
||||
|
||||
#include <ripple/resource/api/Charge.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
@@ -56,9 +58,6 @@ extern Charge const feeWarning; // The cost of receiving a warning
|
||||
extern Charge const feeDrop; // The cost of being dropped for excess load
|
||||
/** @} */
|
||||
|
||||
/** Returns an appropriate Charge based on the legacy LoadType. */
|
||||
extern Charge legacyFee (LoadType t);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_RESOURCE_LEGACYFEES_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_LEGACYFEES_H_INCLUDED
|
||||
|
||||
#include <ripple/resource/api/Charge.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
enum LoadType
|
||||
@@ -50,6 +52,9 @@ enum LoadType
|
||||
LT_MAX // MUST BE LAST
|
||||
};
|
||||
|
||||
/** Returns an appropriate Charge based on the legacy LoadType. */
|
||||
extern Resource::Charge legacyFee (LoadType t);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,11 +20,13 @@
|
||||
#ifndef RIPPLE_RESOURCE_MANAGER_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_MANAGER_H_INCLUDED
|
||||
|
||||
#include <ripple/json/json_value.h>
|
||||
#include <ripple/resource/api/Consumer.h>
|
||||
#include <ripple/resource/api/Gossip.h>
|
||||
#include <beast/insight/Collector.h>
|
||||
#include <beast/net/IPEndpoint.h>
|
||||
#include <beast/utility/Journal.h>
|
||||
#include <beast/utility/PropertyStream.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
@@ -20,20 +20,12 @@
|
||||
#ifndef RIPPLE_APP_RPC_HANDLER
|
||||
#define RIPPLE_APP_RPC_HANDLER
|
||||
|
||||
#include <ripple/app/main/ServerHandler.h>
|
||||
#include <ripple/core/Config.h>
|
||||
|
||||
#include <ripple/rpc/impl/AccountFromString.h>
|
||||
#include <ripple/rpc/impl/Accounts.h>
|
||||
#include <ripple/rpc/impl/Context.h>
|
||||
#include <ripple/rpc/impl/GetMasterGenerator.h>
|
||||
#include <ripple/rpc/impl/LookupLedger.h>
|
||||
#include <ripple/rpc/impl/ParseAccountIds.h>
|
||||
#include <ripple/rpc/impl/TransactionSign.h>
|
||||
#include <ripple/net/InfoSub.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
// used by the RPCServer or WSDoor to carry out these RPC commands
|
||||
class InfoSub;
|
||||
class NetworkOPs;
|
||||
|
||||
class RPCHandler
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/rpc/impl/AccountFromString.h>
|
||||
#include <ripple/rpc/impl/LookupLedger.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
Json::Value doAccountCurrencies (RPC::Context& context)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/rpc/impl/TransactionSign.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/rpc/impl/ParseAccountIds.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/rpc/impl/Accounts.h>
|
||||
#include <ripple/rpc/impl/GetMasterGenerator.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
#ifndef RIPPLE_RPC_ACCOUNTFROMSTRING_H_INCLUDED
|
||||
#define RIPPLE_RPC_ACCOUNTFROMSTRING_H_INCLUDED
|
||||
|
||||
#include <ripple/app/ledger/Ledger.h>
|
||||
#include <ripple/app/misc/NetworkOPs.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace RPC {
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_RPC_ACCOUNTS_H_INCLUDED
|
||||
#define RIPPLE_RPC_ACCOUNTS_H_INCLUDED
|
||||
|
||||
#include <ripple/app/ledger/Ledger.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace RPC {
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_TYPES_BYTEORDER_H
|
||||
#define RIPPLE_TYPES_BYTEORDER_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
// Routines for converting endianness
|
||||
@@ -27,10 +29,10 @@ namespace ripple {
|
||||
// Reference: http://www.mail-archive.com/licq-commits@googlegroups.com/msg02334.html
|
||||
|
||||
#ifdef _MSC_VER
|
||||
extern uint64_t htobe64 (uint64_t value);
|
||||
extern uint64_t be64toh (uint64_t value);
|
||||
extern uint32_t htobe32 (uint32_t value);
|
||||
extern uint32_t be32toh (uint32_t value);
|
||||
extern std::uint64_t htobe64 (uint64_t value);
|
||||
extern std::uint64_t be64toh (uint64_t value);
|
||||
extern std::uint32_t htobe32 (uint32_t value);
|
||||
extern std::uint32_t be32toh (uint32_t value);
|
||||
|
||||
#elif __APPLE__
|
||||
#define htobe16(x) OSSwapHostToBigInt16(x)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace ripple {
|
||||
|
||||
// from: http://stackoverflow.com/questions/3022552/is-there-any-standard-htonl-like-function-for-64-bits-integers-in-c
|
||||
// but we don't need to check the endianness
|
||||
uint64_t htobe64 (uint64_t value)
|
||||
std::uint64_t htobe64 (uint64_t value)
|
||||
{
|
||||
// The answer is 42
|
||||
//static const int num = 42;
|
||||
@@ -41,17 +41,17 @@ uint64_t htobe64 (uint64_t value)
|
||||
//}
|
||||
}
|
||||
|
||||
uint64_t be64toh (uint64_t value)
|
||||
std::uint64_t be64toh (uint64_t value)
|
||||
{
|
||||
return (_byteswap_uint64 (value));
|
||||
}
|
||||
|
||||
uint32_t htobe32 (uint32_t value)
|
||||
std::uint32_t htobe32 (uint32_t value)
|
||||
{
|
||||
return (htonl (value));
|
||||
}
|
||||
|
||||
uint32_t be32toh (uint32_t value)
|
||||
std::uint32_t be32toh (uint32_t value)
|
||||
{
|
||||
return ( _byteswap_ulong (value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user