summaryrefslogtreecommitdiffstats
path: root/src/libhomescreen.cpp
AgeCommit message (Collapse)AuthorFilesLines
2018-07-30Fix problem when pointer is nullptr.zheng_wenlong1-0/+3
When event_only pointer is nullptr, print out a warning log and return. Change-Id: I1115cc1d17a1cbfa4b9a2cdee57fe56069a3fe81 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2018-07-27Fix not to release json_object on Event(Reply)Kazumasa Mitsunari1-5/+5
libafbwsc releases json_object on behalf of application. Then calling json_object in this library may cause double free, so fix it. Bug-AGL: SPEC-1471 Change-Id: I1bb3109c80891718f7bfd69e67688c1c880e95de Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-10-30Use new OnScreenReply API in libhomescreenzheng_wenlong1-1/+36
As homescreen-service added the OnScreenReply function, we can add the OnScreenReply to libhomescreen so applications can use this api easily. BUG-AGL: SPEC-985 Change-Id: I8038fea7471d1ae0777dcbff19e45c38fb6f614f Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2017-10-30Modify function argument from char to jsonzheng_wenlong1-12/+2
Change libhomescreen event api from char to json. Also modify samples who use this. BUG-AGL: SPEC-992 Change-Id: Id3986d413f9494019f6b175488dd73de226ba020 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2017-10-30Remove the redundant thread loopzheng_wenlong1-45/+0
Because libhomescreen already has a thread to receive events, we can remove the thread loop in libhomescreen. Related Commit: https://gerrit.automotivelinux.org/gerrit/#/c/11403/ BUG-AGL: SPEC-989 Change-Id: I32d65efcf32f3395719837339659ff94b3e64889 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2017-10-26Add debug message control by environment variablezheng_wenlong1-53/+23
Add HMI_DEBUG to print debug message, It is controlled by the USE_HMI_DEBUG environment variable. BUG-AGL: SPEC-998 Change-Id: I4b948f3af0d3a1b5e8707518e5b83a1029df3667 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2017-10-23Split libhomescreen from agl-homescreen-service-2017zheng_wenlong1-0/+566
Split libhomescreen library from agl-homescreen-service-2017. Relative commit: https://gerrit.automotivelinux.org/gerrit/#/c/11413/ Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>