Rename file names
[apps/agl-service-windowmanager.git] / src / json_helper.hpp
index 687fd89..2321f8b 100644 (file)
  * limitations under the License.
  */
 
-#ifndef TMCAGLWM_JSON_HELPER_HPP
-#define TMCAGLWM_JSON_HELPER_HPP
+#ifndef JSON_HELPER_HPP
+#define JSON_HELPER_HPP
 
-#include "result.hpp"
-#include "wayland.hpp"
-#include <json.hpp>
+#include <json-c/json.h>
+#include <vector>
+#include "wayland_ivi_wm.hpp"
 
 struct json_object;
 
@@ -27,4 +27,11 @@ 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);
 
-#endif  // TMCAGLWM_JSON_HELPER_HPP
+namespace jh {
+const char* getStringFromJson(json_object* obj, const char* key);
+int getIntFromJson(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
+
+#endif // JSON_HELPER_HPP