X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=doc%2Fapi-ref%2Fhtml%2Fd3%2Fd3d%2Fhs-helper_8h_source.html;h=3406ab27627e89ee33146b3dd784f22bee7a0e24;hb=31ff5ce755d00cf12ea2ffc96c33ed9acd36358f;hp=f0a581a2da8ca7e3ae16b24f8c813b673376ac0a;hpb=bbb4ee8e9974c4b008da84a1e504120f70606c92;p=apps%2Fagl-service-homescreen.git diff --git a/doc/api-ref/html/d3/d3d/hs-helper_8h_source.html b/doc/api-ref/html/d3/d3d/hs-helper_8h_source.html index f0a581a..3406ab2 100644 --- a/doc/api-ref/html/d3/d3d/hs-helper_8h_source.html +++ b/doc/api-ref/html/d3/d3d/hs-helper_8h_source.html @@ -3,8 +3,7 @@ - - + HomeScreenBinding: src/hs-helper.h Source File @@ -12,6 +11,9 @@ + @@ -29,19 +31,39 @@ - + - - - - + +
hs-helper.h
-Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #ifndef HOMESCREEN_HELPER_H
18 #define HOMESCREEN_HELPER_H
19 #define AFB_BINDING_VERSION 2
20 #include <afb/afb-binding.h>
21 #include <stdint.h>
22 #include <glib.h>
23 #include <errno.h>
24 #include "hmi-debug.h"
25 
26 typedef enum REQ_ERROR
27 {
28  REQ_FAIL = -1,
29  REQ_OK=0,
32 }REQ_ERROR;
33 
34 static const char* evlist[] = {
35  "tap_shortcut",
36  "on_screen_message",
37  "on_screen_reply",
38  "reserved"
39  };
40 
41 REQ_ERROR get_value_uint16(const struct afb_req request, const char *source, uint16_t *out_id);
42 REQ_ERROR get_value_int16(const struct afb_req request, const char *source, int16_t *out_id);
43 REQ_ERROR get_value_int32(const struct afb_req request, const char *source, int32_t *out_id);
44 void hs_add_object_to_json_object(struct json_object* j_obj, int count, ...);
45 void hs_add_object_to_json_object_str(struct json_object* j_obj, int count, ...);
46 void hs_add_object_to_json_object_func(struct json_object* j_obj, const char* verb_name, int count, ...);
47 int hs_search_event_name_index(const char* value);
48 
49 #endif /*HOMESCREEN_HELPER_H*/
void hs_add_object_to_json_object_func(struct json_object *j_obj, const char *verb_name, int count,...)
Definition: hs-helper.c:125
-
REQ_ERROR get_value_uint16(const struct afb_req request, const char *source, uint16_t *out_id)
Definition: hs-helper.c:24
-
void hs_add_object_to_json_object(struct json_object *j_obj, int count,...)
Definition: hs-helper.c:96
-
REQ_ERROR get_value_int32(const struct afb_req request, const char *source, int32_t *out_id)
Definition: hs-helper.c:72
-
REQ_ERROR get_value_int16(const struct afb_req request, const char *source, int16_t *out_id)
Definition: hs-helper.c:48
-
int hs_search_event_name_index(const char *value)
Definition: hs-helper.c:142
-
static const char * evlist[]
Definition: hs-helper.h:34
- - - - -
REQ_ERROR
Definition: hs-helper.h:26
- -
void hs_add_object_to_json_object_str(struct json_object *j_obj, int count,...)
Definition: hs-helper.c:110
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #ifndef HOMESCREEN_HELPER_H
18 #define HOMESCREEN_HELPER_H
19 #define AFB_BINDING_VERSION 3
20 #include <afb/afb-binding.h>
21 #include <json-c/json.h>
22 
23 #define AFB_EVENT_BAD_REQUEST 100
24 #define AFB_REQ_SUBSCRIBE_ERROR 101
25 #define AFB_REQ_UNSUBSCRIBE_ERROR 102
26 #define AFB_REQ_SHOWNOTIFICATION_ERROR 103
27 #define AFB_REQ_SHOWINFORMATION_ERROR 104
28 
29 typedef enum REQ_ERROR
30 {
31  REQ_FAIL = -1,
32  REQ_OK=0,
35 }REQ_ERROR;
36 
37 extern const char* evlist[];
38 extern const char _error[];
39 extern const char _application_id[];
40 extern const char _display_message[];
41 extern const char _reply_message[];
42 
43 REQ_ERROR get_value_uint16(const afb_req_t request, const char *source, uint16_t *out_id);
44 REQ_ERROR get_value_int16(const afb_req_t request, const char *source, int16_t *out_id);
45 REQ_ERROR get_value_int32(const afb_req_t request, const char *source, int32_t *out_id);
46 void hs_add_object_to_json_object(struct json_object* j_obj, int count, ...);
47 void hs_add_object_to_json_object_str(struct json_object* j_obj, int count, ...);
48 void hs_add_object_to_json_object_func(struct json_object* j_obj, const char* verb_name, int count, ...);
49 int hs_search_event_name_index(const char* value);
50 
51 #endif /*HOMESCREEN_HELPER_H*/
const char _application_id[]
Definition: homescreen.cpp:28
+
void hs_add_object_to_json_object_func(struct json_object *j_obj, const char *verb_name, int count,...)
Definition: hs-helper.cpp:207
+
const char _reply_message[]
Definition: homescreen.cpp:30
+
const char _display_message[]
Definition: homescreen.cpp:29
+
REQ_ERROR get_value_int32(const afb_req_t request, const char *source, int32_t *out_id)
Definition: hs-helper.cpp:118
+
void hs_add_object_to_json_object(struct json_object *j_obj, int count,...)
Definition: hs-helper.cpp:154
+
const char _error[]
Definition: homescreen.cpp:27
+
int hs_search_event_name_index(const char *value)
Definition: hs-helper.cpp:234
+
const char * evlist[]
Definition: hs-helper.cpp:22
+ + +
REQ_ERROR get_value_uint16(const afb_req_t request, const char *source, uint16_t *out_id)
Definition: hs-helper.cpp:46
+ + +
REQ_ERROR
Definition: hs-helper.h:29
+
void hs_add_object_to_json_object_str(struct json_object *j_obj, int count,...)
Definition: hs-helper.cpp:180
+
REQ_ERROR get_value_int16(const afb_req_t request, const char *source, int16_t *out_id)
Definition: hs-helper.cpp:82