Use afb_service_call instead of afb_service_call_sync
[apps/agl-service-windowmanager.git] / src / json_helper.hpp
index 22ec3e6..cad129f 100644 (file)
 #ifndef TMCAGLWM_JSON_HELPER_HPP
 #define TMCAGLWM_JSON_HELPER_HPP
 
-#include "result.hpp"
+
 #include "wayland_ivi_wm.hpp"
 #include <json-c/json.h>
-#include <json.hpp>
-
 
-struct json_object;
 
 json_object *to_json(compositor::screen const *s);
 json_object *to_json(compositor::controller::props_map const &s);
@@ -32,6 +29,7 @@ json_object *to_json(std::vector<uint32_t> const &v);
 namespace jh {
 const char* getStringFromJson(json_object* obj, const char* key);
 int getIntFromJson(json_object* obj, const char* key);
+double getDoubleFromJson(json_object* obj, const char* key);
 json_bool getBoolFromJson(json_object* obj, const char* key);
 int inputJsonFilie(const char* file, json_object** obj);
 } // namespace jh