aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-helper.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-10 17:36:11 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-10 17:36:21 +0800
commit134be0531d2aa3926bb6ed441c7839174a8bba17 (patch)
treecf476ae4eb18d15de73dcb4df7fbce07a5eb8453 /src/hs-helper.h
parenta7e49d93b4dd03f8ce3b77f831f9293ba5a3de01 (diff)
modify
add wm proxy add read/write json file add getRunnables to ApplicationGuide.md Change-Id: I65e9e6620ecb207c999e590410782590edd7005d
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);