mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor the structure of source files:
* New src/ripple/crypto and src/ripple/protocol directories * Merged src/ripple/common into src/ripple/basics * Move resource/api files up a level * Add headers for "include what you use" * Normalized include guards * Renamed to JsonFields.h * Remove obsolete files * Remove net.h unity header * Remove resource.h unity header * Removed some deprecated unity includes
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/app/data/DatabaseCon.h>
|
||||
#include <ripple/core/Config.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
DatabaseCon::DatabaseCon (std::string const& strName, const char* initStrings[], int initCount)
|
||||
|
||||
@@ -21,12 +21,15 @@
|
||||
#define RIPPLE_DATABASECON_H
|
||||
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
class Database;
|
||||
|
||||
// VFALCO NOTE This looks like a pointless class. Figure out
|
||||
// what purpose it is really trying to serve and do it better.
|
||||
class DatabaseCon : beast::LeakChecked <DatabaseCon>
|
||||
class DatabaseCon
|
||||
{
|
||||
public:
|
||||
DatabaseCon (std::string const& name, const char* initString[], int countInit);
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/app/data/SqliteDatabase.h>
|
||||
#include <ripple/core/JobQueue.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
SqliteStatement::SqliteStatement (SqliteDatabase* db, const char* sql, bool aux)
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define RIPPLE_SQLITEDATABASE_H_INCLUDED
|
||||
|
||||
#include <beast/threads/Thread.h>
|
||||
#include <mutex>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -80,7 +81,7 @@ private:
|
||||
void run ();
|
||||
void runWal ();
|
||||
|
||||
typedef RippleMutex LockType;
|
||||
typedef std::mutex LockType;
|
||||
typedef std::lock_guard <LockType> ScopedLockType;
|
||||
LockType m_walMutex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user