diff options
Diffstat (limited to 'src/json_helper.hpp')
-rw-r--r-- | src/json_helper.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/json_helper.hpp b/src/json_helper.hpp index 5333130..d4ae85a 100644 --- a/src/json_helper.hpp +++ b/src/json_helper.hpp @@ -14,24 +14,21 @@ * limitations under the License. */ -#ifndef TMCAGLWM_JSON_HELPER_HPP -#define TMCAGLWM_JSON_HELPER_HPP +#ifndef JSON_HELPER_HPP +#define JSON_HELPER_HPP #include <json-c/json.h> -#include "../include/json.hpp" -#include "wayland_ivi_wm.hpp" +#include <vector> struct json_object; - -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); 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 +#endif // JSON_HELPER_HPP |