X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fjson_helper.hpp;h=2f6b817294034421fa4ba391efedafad38411e02;hb=320122bc177cccd69509d284a4c68c79a23e1753;hp=125473ee9f9fa78908dd43ec1704e1bc48cbd618;hpb=be9cbe2c4d0bc0f65cbe08de2bad3eb6e7f248c0;p=apps%2Fagl-service-windowmanager.git diff --git a/src/json_helper.hpp b/src/json_helper.hpp index 125473e..2f6b817 100644 --- a/src/json_helper.hpp +++ b/src/json_helper.hpp @@ -17,6 +17,7 @@ #ifndef TMCAGLWM_JSON_HELPER_HPP #define TMCAGLWM_JSON_HELPER_HPP +#include #include "../include/json.hpp" #include "wayland_ivi_wm.hpp" @@ -26,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 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