mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
22 lines
342 B
C++
22 lines
342 B
C++
#include "webfuse_provider/test_util/json_doc.hpp"
|
|
|
|
namespace webfuse_test
|
|
{
|
|
|
|
JsonDoc::JsonDoc(std::string const & json)
|
|
: contents(json)
|
|
{
|
|
doc = wfp_impl_json_parse(const_cast<char*>(contents.data()));
|
|
}
|
|
|
|
JsonDoc::~JsonDoc()
|
|
{
|
|
wfp_impl_json_dispose(doc);
|
|
}
|
|
|
|
wfp_json const * JsonDoc::root()
|
|
{
|
|
return wfp_impl_json_root(doc);
|
|
}
|
|
|
|
} |