X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-msg-json.h;h=ee3ed20c5f0cef5e68972bfccce1fc71473c5939;hb=9c2e6e45d4c9745c4702ac1992a0cb086e99fb0b;hp=a90fbb0851d1b0ddd4f88f17f33ed6200c4c9043;hpb=c7e9786d408f13d8f8f43c6b68da916bbb1ed5f3;p=src%2Fapp-framework-binder.git diff --git a/src/afb-msg-json.h b/src/afb-msg-json.h index a90fbb08..ee3ed20c 100644 --- a/src/afb-msg-json.h +++ b/src/afb-msg-json.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +18,11 @@ #pragma once struct json_object; +struct afb_context; +struct afb_arg; -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(struct json_object *resp, const char *status, const char *info, struct afb_context *context); extern struct json_object *afb_msg_json_event(const char *event, struct json_object *object); +extern struct json_object *afb_msg_json_internal_error();