1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

refactor: renamed getter functions of json node

This commit is contained in:
Falk Werner
2020-07-12 15:34:50 +02:00
parent bf8ba05863
commit ea15d8c5cf
17 changed files with 60 additions and 60 deletions

View File

@@ -205,13 +205,13 @@ public:
wfp_json const * method = wfp_impl_json_object_get(message, "method");
if (wfp_impl_json_is_string(method))
{
if (0 == strcmp("add_filesystem", wfp_impl_json_get_string(method)))
if (0 == strcmp("add_filesystem", wfp_impl_json_string_get(method)))
{
wfp_json const * id = wfp_impl_json_object_get(message, "id");
std::ostringstream response;
response << "{\"result\": {\"id\": \"" << GetFilesystem() << "\"}, "
<< "\"id\": " << wfp_impl_json_get_int(id) << "}";
<< "\"id\": " << wfp_impl_json_int_get(id) << "}";
{
std::unique_lock<std::mutex> lock(mutex);
write_queue.push(response.str());