aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs-helper.h')
-rw-r--r--src/hs-helper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hs-helper.h b/src/hs-helper.h
index f57799d..55f9386 100644
--- a/src/hs-helper.h
+++ b/src/hs-helper.h
@@ -17,7 +17,7 @@
#ifndef HOMESCREEN_HELPER_H
#define HOMESCREEN_HELPER_H
#define AFB_BINDING_VERSION 3
-#include <afb/afb-binding.h>
+#include <afb/afb-binding>
#include <json-c/json.h>
#include <string>
@@ -53,6 +53,8 @@ void hs_add_object_to_json_object_str(struct json_object* j_obj, int count, ...)
void hs_add_object_to_json_object_func(struct json_object* j_obj, const char* verb_name, int count, ...);
int hs_search_event_name_index(const char* value);
std::string get_application_id(const afb_req_t request);
+int readJsonFile(const char* file, struct json_object **obj);
+int writeJsonFile(const char* file, struct json_object *obj);
typedef int (*event_hook_func)(afb_api_t api, const char *event, struct json_object *object);
void setEventHook(const char *event, const event_hook_func f);