diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-05-18 14:02:18 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-04 09:16:21 +0200 |
commit | 9a8897f4ac992741e153d88b54bd2cde877c713d (patch) | |
tree | e827981679708bae6bef1516d69efda3524b719f /src/univalue/univalue.h | |
parent | 3df0411ad9fd75fb27af53e44835d41f5480fe3f (diff) | |
download | bitcoin-9a8897f4ac992741e153d88b54bd2cde877c713d.tar.xz |
Remove JSON Spirit wrapper, remove JSON Spirit leftovers
- implement find_value() function for UniValue
- replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper
- remove JSON Spirit sources
Diffstat (limited to 'src/univalue/univalue.h')
-rw-r--r-- | src/univalue/univalue.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h index c37a3829fc..57a96abe26 100644 --- a/src/univalue/univalue.h +++ b/src/univalue/univalue.h @@ -161,6 +161,7 @@ public: std::istringstream(getValStr()) >> ret; return ret; } + friend const UniValue& find_value( const UniValue& obj, const std::string& name); }; // @@ -248,5 +249,8 @@ extern enum jtokentype getJsonToken(std::string& tokenVal, extern const char *uvTypeName(UniValue::VType t); extern const UniValue NullUniValue; + +const UniValue& find_value( const UniValue& obj, const std::string& name); + #endif // BITCOIN_UNIVALUE_UNIVALUE_H |