aboutsummaryrefslogtreecommitdiffstats
path: root/src/json_helper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/json_helper.hpp')
-rw-r--r--src/json_helper.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/json_helper.hpp b/src/json_helper.hpp
index 78e03f7..c2087cf 100644
--- a/src/json_helper.hpp
+++ b/src/json_helper.hpp
@@ -19,12 +19,19 @@
#include "result.hpp"
#include "wayland_ivi_wm.hpp"
+#include <json-c/json.h>
#include <json.hpp>
+
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);
+json_bool getBoolFromJson(json_object* obj, const char* key);
+} // namespace jh
#endif // TMCAGLWM_JSON_HELPER_HPP