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:
Vinnie Falco
2014-11-07 07:05:38 -08:00
parent b134b7d3f6
commit 5d42604efd
230 changed files with 1176 additions and 1171 deletions

View File

@@ -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)

View File

@@ -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);

View File

@@ -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)

View File

@@ -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;