Revert "Add PolicyManager as plugin"
[apps/agl-service-windowmanager-2017.git] / src / json_helper.hpp
index 6c9cdab..2f6b817 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef TMCAGLWM_JSON_HELPER_HPP
 #define TMCAGLWM_JSON_HELPER_HPP
 
-#include "result.hpp"
+#include <json-c/json.h>
+#include "../include/json.hpp"
 #include "wayland_ivi_wm.hpp"
-#include <json.hpp>
 
 struct json_object;
 
@@ -27,4 +27,10 @@ json_object *to_json(compositor::screen const *s);
 json_object *to_json(compositor::controller::props_map const &s);
 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);
+int inputJsonFilie(const char* file, json_object** obj);
+}  // namespace jh
+
 #endif // TMCAGLWM_JSON_HELPER_HPP