X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-msg-json.h;h=df09a023658370dab2ac044cacf4c5afdb64bf1e;hb=f3d1f19ae308cc0559728c0ccf6281cbce5ee37c;hp=b2f75f2d33babdc147412c15d245b08987495076;hpb=d3c80685ed6067f4899635c0328bbd8b70a2ed90;p=src%2Fapp-framework-binder.git diff --git a/src/afb-msg-json.h b/src/afb-msg-json.h index b2f75f2d..df09a023 100644 --- a/src/afb-msg-json.h +++ b/src/afb-msg-json.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016-2019 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,10 +21,7 @@ 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, 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_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();