X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fjson_helper.hpp;h=2f6b817294034421fa4ba391efedafad38411e02;hb=c6f9a9b8468b3746a3dec7ee2a0b7d84ec9fb44a;hp=78e03f7f08d370bc913f35f0e189fbbd81afce41;hpb=a94f6c67c67a68df8a894699686f2eaa8e870208;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/src/json_helper.hpp b/src/json_helper.hpp index 78e03f7..2f6b817 100644 --- a/src/json_helper.hpp +++ b/src/json_helper.hpp @@ -17,9 +17,9 @@ #ifndef TMCAGLWM_JSON_HELPER_HPP #define TMCAGLWM_JSON_HELPER_HPP -#include "result.hpp" +#include +#include "../include/json.hpp" #include "wayland_ivi_wm.hpp" -#include 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 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); +int inputJsonFilie(const char* file, json_object** obj); +} // namespace jh + +#endif // TMCAGLWM_JSON_HELPER_HPP