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
342 B
22 lines
342 B
#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);
|
|
}
|
|
|
|
} |