aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-msg-json.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-06-08 10:13:17 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-06-08 11:49:58 +0200
commitb57505f0f80f6394f04a041df6e808c857b01d4b (patch)
tree8f9d2abb6544d2a2be0890c2b959bcd680ab3a1b /src/afb-msg-json.h
parentcee4240979b3b9c4ebb877631e66157918598c3d (diff)
Improves message formating
Change-Id: Ifde5ff73cd6a73715fd4d6fd58101d9e97a3bef4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-msg-json.h')
-rw-r--r--src/afb-msg-json.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/afb-msg-json.h b/src/afb-msg-json.h
index a90fbb08..53ab0861 100644
--- a/src/afb-msg-json.h
+++ b/src/afb-msg-json.h
@@ -18,8 +18,11 @@
#pragma once
struct json_object;
+struct afb_context;
-extern struct json_object *afb_msg_json_reply(const char *status, const char *info, struct json_object *resp, const char *token, const char *uuid);
+extern struct json_object *afb_msg_json_reply(const char *status, const char *info, struct json_object *resp, struct afb_context *context, const char *reqid);
+extern struct json_object *afb_msg_json_reply_ok(const char *info, struct json_object *resp, struct afb_context *context, const char *reqid);
+extern struct json_object *afb_msg_json_reply_error(const char *status, const char *info, struct afb_context *context, const char *reqid);
extern struct json_object *afb_msg_json_event(const char *event, struct json_object *object);