X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fjson_helper.hpp;h=2321f8b9eaebac6eb62f2b92eafe5edcbdf65a0c;hb=2fd5d33ca200d27c73e0fffc57987ddc751eb84a;hp=687fd8949e59ad5c475c24e5581e3733afc5389b;hpb=afd5c59cdfeeb142feb57afe7d3d47f5f83fda45;p=apps%2Fagl-service-windowmanager.git diff --git a/src/json_helper.hpp b/src/json_helper.hpp index 687fd89..2321f8b 100644 --- a/src/json_helper.hpp +++ b/src/json_helper.hpp @@ -14,12 +14,12 @@ * 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 +#include +#include +#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 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