2 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef HOMESCREEN_HELPER_H
18 #define HOMESCREEN_HELPER_H
19 #define AFB_BINDING_VERSION 2
20 #include <afb/afb-binding.h>
25 typedef enum REQ_ERROR
33 static const char* evlist[] = {
40 REQ_ERROR get_value_uint16(const struct afb_req request, const char *source, uint16_t *out_id);
41 REQ_ERROR get_value_int16(const struct afb_req request, const char *source, int16_t *out_id);
42 REQ_ERROR get_value_int32(const struct afb_req request, const char *source, int32_t *out_id);
43 void hs_add_object_to_json_object(struct json_object* j_obj, int count, ...);
44 void hs_add_object_to_json_object_str(struct json_object* j_obj, int count, ...);
45 void hs_add_object_to_json_object_func(struct json_object* j_obj, const char* verb_name, int count, ...);
46 int hs_search_event_name_index(const char* value);
48 #endif /*HOMESCREEN_HELPER_H*/