X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fjson_helper.hpp;h=cad129f0d0156dbb0420080a1c6f5185414c49fc;hb=5f05e17be59881ea450f2cc3a76a2dd0e408974f;hp=73f79d28cede05e6654611867b3a0d800d6c39d2;hpb=4e1f6616b5ce24022f088943912e4b98e7764100;p=apps%2Fagl-service-windowmanager.git diff --git a/src/json_helper.hpp b/src/json_helper.hpp index 73f79d2..cad129f 100644 --- a/src/json_helper.hpp +++ b/src/json_helper.hpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Mentor Graphics Development (Deutschland) GmbH + * Copyright (c) 2017 TOYOTA MOTOR CORPORATION * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,14 +17,20 @@ #ifndef TMCAGLWM_JSON_HELPER_HPP #define TMCAGLWM_JSON_HELPER_HPP -#include "result.hpp" -#include "wayland.hpp" -#include -struct json_object; +#include "wayland_ivi_wm.hpp" +#include + 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); +double getDoubleFromJson(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 // TMCAGLWM_JSON_HELPER_HPP