You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
367 B

#include "webfuse_provider/test_util/json_doc.hpp"
namespace webfuse_test
{
JsonDoc::JsonDoc(std::string const & json)
: contents(json)
{
doc = wfp_impl_json_doc_loadb(const_cast<char*>(contents.data()), json.size());
}
JsonDoc::~JsonDoc()
{
wfp_impl_json_doc_dispose(doc);
}
wfp_json const * JsonDoc::root()
{
return wfp_impl_json_doc_root(doc);
}
}