X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-msg-json.h;fp=src%2Fafb-msg-json.h;h=f1d20be53f7b4ca01a7c25ce1eb8a83b0f3ee317;hb=694e6000719d2d003c3046683347f9388d5fb708;hp=0000000000000000000000000000000000000000;hpb=9e3afb8aa598f3e69e2c3723335507c12b4cd1f1;p=src%2Fapp-framework-binder.git diff --git a/src/afb-msg-json.h b/src/afb-msg-json.h new file mode 100644 index 00000000..f1d20be5 --- /dev/null +++ b/src/afb-msg-json.h @@ -0,0 +1,25 @@ +/* + * Copyright 2016 IoT.bzh + * Author: José Bollo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +struct json_object; + +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_event(const char *event, struct json_object *object); +