diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-11-21 16:32:29 +0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-11-23 12:45:14 +0000 |
commit | 31ff5ce755d00cf12ea2ffc96c33ed9acd36358f (patch) | |
tree | a630609b99490a6c55c97688c5a4f39f273d3583 /doc/api-ref/html/df | |
parent | bbb4ee8e9974c4b008da84a1e504120f70606c92 (diff) |
update docguppy_6.99.1guppy/6.99.16.99.1
add new sequence and update doxygen files.
Change-Id: I6737939eb2628577d58b2d1d65086e46e7cb14a4
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'doc/api-ref/html/df')
-rw-r--r-- | doc/api-ref/html/df/d37/structwindow-members.html | 116 | ||||
-rw-r--r-- | doc/api-ref/html/df/d43/libhomescreen_8hpp.html | 49 | ||||
-rw-r--r-- | doc/api-ref/html/df/d43/libhomescreen_8hpp_source.html | 111 | ||||
-rw-r--r-- | doc/api-ref/html/df/d66/hs-helper_8cpp.html | 449 | ||||
-rw-r--r-- | doc/api-ref/html/df/d66/hs-helper_8cpp_source.html | 113 | ||||
-rw-r--r-- | doc/api-ref/html/df/d76/hmi-debug_8h.html | 435 | ||||
-rw-r--r-- | doc/api-ref/html/df/d76/hmi-debug_8h_source.html | 87 | ||||
-rw-r--r-- | doc/api-ref/html/df/d7d/structevent.html | 123 | ||||
-rw-r--r-- | doc/api-ref/html/df/dac/test_8cpp.html | 334 | ||||
-rw-r--r-- | doc/api-ref/html/df/dac/test_8cpp_source.html | 95 |
10 files changed, 788 insertions, 1124 deletions
diff --git a/doc/api-ref/html/df/d37/structwindow-members.html b/doc/api-ref/html/df/d37/structwindow-members.html new file mode 100644 index 0000000..c6ccdf7 --- /dev/null +++ b/doc/api-ref/html/df/d37/structwindow-members.html @@ -0,0 +1,116 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.11"/> +<title>HomeScreenBinding: Member List</title> +<link href="../../tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../jquery.js"></script> +<script type="text/javascript" src="../../dynsections.js"></script> +<link href="../../search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../search/searchdata.js"></script> +<script type="text/javascript" src="../../search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">HomeScreenBinding + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="../../index.html"><span>Main Page</span></a></li> + <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li> + <li><a href="../../files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="../../search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="../../annotated.html"><span>Class List</span></a></li> + <li><a href="../../classes.html"><span>Class Index</span></a></li> + <li><a href="../../functions.html"><span>Class Members</span></a></li> + </ul> + </div> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">window Member List</div> </div> +</div><!--header--> +<div class="contents"> + +<p>This is the complete list of members for <a class="el" href="../../d6/de3/structwindow.html">window</a>, including all inherited members.</p> +<table class="directory"> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a72629bf021a361ad900504732a74cb68">benchmark_time</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a0e634038f669aff472012f25ea250b40">buffer_size</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a35ba639556fa19d9273dad0953a6807e">callback</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#aef10fe94766ccd4831ee611c5ad0e55c">col</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a129486f2bd23791194f389ca1405cfd4">display</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a8de0059f3f1cb0dec33fba1143b7dee1">egl_surface</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a851bcb65083f5ab5ff768b09522bed70">frame_sync</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a633864bb495ec265bee220a5c70cc98f">frames</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a8da44798a9e1feb7ed3fbd18ec3a28b6">fullscreen</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a6975a930e9a3c166f8201fc4ef5e7728">gl</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a40e2c6fb4178953c820fc1b9f41d4b31">ivi_surface</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#ae41be0955d0e73530e1bc13dfeb9d731">native</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a026a50808d8323a5a73d585c19916fa8">opaque</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#aaf965f90f9fc938db2315ff62028c362">pos</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a5202f3b60e262a6fa4fcee68dd47cb67">rotation_uniform</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#a7d0790cfc7c30621611fa26ab5c1ae97">surface</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> + <tr class="even"><td class="entry"><a class="el" href="../../d6/de3/structwindow.html#ad2b6c8ed8044b41fd1189a0ce26d539a">window_size</a></td><td class="entry"><a class="el" href="../../d6/de3/structwindow.html">window</a></td><td class="entry"></td></tr> +</table></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="../../doxygen.png" alt="doxygen"/> +</a> 1.8.11 +</small></address> +</body> +</html> diff --git a/doc/api-ref/html/df/d43/libhomescreen_8hpp.html b/doc/api-ref/html/df/d43/libhomescreen_8hpp.html index c164aaf..52673d2 100644 --- a/doc/api-ref/html/df/d43/libhomescreen_8hpp.html +++ b/doc/api-ref/html/df/d43/libhomescreen_8hpp.html @@ -3,8 +3,7 @@ <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> +<meta name="generator" content="Doxygen 1.8.11"/> <title>HomeScreenBinding: include/libhomescreen.hpp File Reference</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> @@ -12,6 +11,9 @@ <link href="../../search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../search/searchdata.js"></script> <script type="text/javascript" src="../../search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> @@ -29,19 +31,39 @@ </table> </div> <!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> +<!-- Generated by Doxygen 1.8.11 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); </script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="../../index.html"><span>Main Page</span></a></li> + <li><a href="../../annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="../../files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="../../search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="../../files.html"><span>File List</span></a></li> + <li><a href="../../globals.html"><span>File Members</span></a></li> + </ul> + </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" @@ -74,7 +96,6 @@ $(function() { <code>#include <functional></code><br /> <code>#include <json-c/json.h></code><br /> <code>#include <systemd/sd-event.h></code><br /> -<code>#include <afb/afb-binding.h></code><br /> <code>#include <afb/afb-wsj1.h></code><br /> <code>#include <afb/afb-ws-client.h></code><br /> </div> @@ -90,7 +111,7 @@ Classes</h2></td></tr> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 +</a> 1.8.11 </small></address> </body> </html> diff --git a/doc/api-ref/html/df/d43/libhomescreen_8hpp_source.html b/doc/api-ref/html/df/d43/libhomescreen_8hpp_source.html index 5e2f196..bb84463 100644 --- a/doc/api-ref/html/df/d43/libhomescreen_8hpp_source.html +++ b/doc/api-ref/html/df/d43/libhomescreen_8hpp_source.html @@ -3,8 +3,7 @@ <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> +<meta name="generator" content="Doxygen 1.8.11"/> <title>HomeScreenBinding: include/libhomescreen.hpp Source File</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> @@ -12,6 +11,9 @@ <link href="../../search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../search/searchdata.js"></script> <script type="text/javascript" src="../../search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> @@ -29,19 +31,39 @@ </table> </div> <!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> +<!-- Generated by Doxygen 1.8.11 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); </script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="../../index.html"><span>Main Page</span></a></li> + <li><a href="../../annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="../../files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="../../search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="../../files.html"><span>File List</span></a></li> + <li><a href="../../globals.html"><span>File Members</span></a></li> + </ul> + </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" @@ -66,37 +88,54 @@ $(function() { <div class="title">libhomescreen.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="../../df/d43/libhomescreen_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef LIBHOMESCREEN_H</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define LIBHOMESCREEN_H</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <map></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <json-c/json.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <systemd/sd-event.h></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <afb/afb-binding.h></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <afb/afb-wsj1.h></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <afb/afb-ws-client.h></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html"> 32</a></span> <span class="keyword">class </span><a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a249902aebf71a5383ca8ec6ae558d095">~LibHomeScreen</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen</a>(<span class="keyword">const</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &<a class="code" href="../../de/dd0/class_lib_home_screen.html#a23bc17798453cfca50904562736f6b25">operator=</a>(<span class="keyword">const</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// using handler_func = std::function<void(const char*)>;</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a"> 42</a></span>  <span class="keyword">using</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">handler_func</a> = std::function<void(json_object*)>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154"> 44</a></span>  <span class="keyword">enum</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">EventType</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"> 45</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">Event_TapShortcut</a> = 1,</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"> 46</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">Event_OnScreenMessage</a>,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"> 47</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">Event_OnScreenReply</a></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  };</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08"> 50</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> std::vector<std::string> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">api_list</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9"> 51</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> std::vector<std::string> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9">event_list</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="comment">/* Method */</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">init</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> port, <span class="keyword">const</span> std::string& token);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#afb571c9577087b47065eb23e7fdbc903">tapShortcut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* application_name);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ac336482036a72b51a822725f1929523c">onScreenMessage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* display_message);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6c065f41f2c5d1f58d2763bfb4da9c37">onScreenReply</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* reply_message);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<span class="keyword">enum</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">EventType</a> et, <a class="code" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">handler_func</a> f);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a2789e8a5372202cc36f48e71dbb9b7cf">registerCallback</a>(</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> (*event_cb)(<span class="keyword">const</span> std::string& <a class="code" href="../../df/d7d/structevent.html">event</a>, <span class="keyword">struct</span> json_object* event_contents),</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> (*reply_cb)(<span class="keyword">struct</span> json_object* reply_contents),</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> (*hangup_cb)(<span class="keywordtype">void</span>) = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(<span class="keyword">const</span> std::string& verb, <span class="keyword">struct</span> json_object* arg);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* verb, <span class="keyword">struct</span> json_object* arg);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#aa4c189807b75d070f567967f0d690738">subscribe</a>(<span class="keyword">const</span> std::string& event_name);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#aac03a45cbd453ba69ddb00c1016930a6">unsubscribe</a>(<span class="keyword">const</span> std::string& event_name);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">int</span> initialize_websocket();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  void (*onEvent)(<span class="keyword">const</span> std::string& event, <span class="keyword">struct </span>json_object* event_contents);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  void (*onReply)(<span class="keyword">struct </span>json_object* reply);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  void (*onHangup)(void);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">struct </span>afb_wsj1* sp_websock;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">struct </span>afb_wsj1_itf minterface;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  sd_event* mploop;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  std::string muri;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">int</span> mport = 2000;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  std::string mtoken = <span class="stringliteral">"hs"</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  std::map<EventType, handler_func> handlers;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="comment">/* Don't use/ Internal only */</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1c1fa69f24b981e824dd9fb810c4b74">on_hangup</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">struct</span> afb_wsj1 *wsj);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a608638eb87b2772a3dcc92d8ca8f3596">on_call</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">const</span> <span class="keywordtype">char</span> *api, <span class="keyword">const</span> <span class="keywordtype">char</span> *verb, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a9c4885b51b43ab24a548d49fb3ab2de3">on_event</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">const</span> <span class="keywordtype">char</span> *event, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a248d9648c6186287a7632ec1c75fc9c5">on_reply</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> };</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">#endif </span><span class="comment">/* LIBHOMESCREEN_H */</span><span class="preprocessor"></span></div><div class="ttc" id="class_lib_home_screen_html_a9c4885b51b43ab24a548d49fb3ab2de3"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a9c4885b51b43ab24a548d49fb3ab2de3">LibHomeScreen::on_event</a></div><div class="ttdeci">void on_event(void *closure, const char *event, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00458">libhomescreen.cpp:458</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a248d9648c6186287a7632ec1c75fc9c5"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a248d9648c6186287a7632ec1c75fc9c5">LibHomeScreen::on_reply</a></div><div class="ttdeci">void on_reply(void *closure, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00506">libhomescreen.cpp:506</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a6c065f41f2c5d1f58d2763bfb4da9c37"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6c065f41f2c5d1f58d2763bfb4da9c37">LibHomeScreen::onScreenReply</a></div><div class="ttdeci">int onScreenReply(const char *reply_message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00268">libhomescreen.cpp:268</a></div></div> +<a href="../../df/d43/libhomescreen_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef LIBHOMESCREEN_H</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define LIBHOMESCREEN_H</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <map></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <json-c/json.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <systemd/sd-event.h></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <afb/afb-wsj1.h></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <afb/afb-ws-client.h></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html"> 31</a></span> <span class="keyword">class </span><a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a249902aebf71a5383ca8ec6ae558d095">~LibHomeScreen</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen</a>(<span class="keyword">const</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &<a class="code" href="../../de/dd0/class_lib_home_screen.html#a23bc17798453cfca50904562736f6b25">operator=</a>(<span class="keyword">const</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> &) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a"> 40</a></span>  <span class="keyword">using</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">handler_func</a> = std::function<void(json_object*)>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154"> 42</a></span>  <span class="keyword">enum</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">EventType</a> {</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a3fb3563c64786f1a2ae404df6edffd5c"> 43</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a3fb3563c64786f1a2ae404df6edffd5c">Event_ShowWindow</a> = 1,</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"> 44</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">Event_TapShortcut</a> = 1,</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"> 45</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">Event_OnScreenMessage</a>,</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"> 46</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">Event_OnScreenReply</a>,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aef8bb1086ddbc0a125d77af9da3146a0"> 47</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aef8bb1086ddbc0a125d77af9da3146a0">Event_HideWindow</a>,</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aaacb8babce7fac884ab4bf7605da0d9f"> 48</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aaacb8babce7fac884ab4bf7605da0d9f">Event_ReplyShowWindow</a>,</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a68119a9c3ff85e807db38d3282e5ca30"> 49</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a68119a9c3ff85e807db38d3282e5ca30">Event_ShowNotification</a>,</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a1fad2ac5071a1dae7db9c8e1b522669b"> 50</a></span>  <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a1fad2ac5071a1dae7db9c8e1b522669b">Event_ShowInformation</a></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  };</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="comment">/* Key for json obejct */</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a927592eff8e34efbbceaf12522f8897f"> 54</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#a927592eff8e34efbbceaf12522f8897f">_keyParameter</a> = <span class="stringliteral">"parameter"</span>;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a8becda1b035ae45f5a11c7e7963091bf"> 55</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#a8becda1b035ae45f5a11c7e7963091bf">_keyArea</a> = <span class="stringliteral">"area"</span>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">/* display area */</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#aac718b60b83c74e2b061f6f7f7ec3bf5"> 58</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#aac718b60b83c74e2b061f6f7f7ec3bf5">_areaNormal</a> = <span class="stringliteral">"normal"</span>;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#ad0569f5323ead77a43bd8735377a6f25"> 59</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#ad0569f5323ead77a43bd8735377a6f25">_areaFullScreen</a> = <span class="stringliteral">"fullscreen"</span>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a7f201fc366146790520bf8d990f7b2eb"> 60</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#a7f201fc366146790520bf8d990f7b2eb">_areaSplitMain</a> = <span class="stringliteral">"split.main"</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#ab4f54373b0681de11243152f01c48888"> 61</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="../../de/dd0/class_lib_home_screen.html#ab4f54373b0681de11243152f01c48888">_areaSplitSub</a> = <span class="stringliteral">"split.sub"</span>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08"> 63</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> std::vector<std::string> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">api_list</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9"> 64</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> std::vector<std::string> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9">event_list</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">/* Method */</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">init</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="../../de/da4/simple-egl_8cpp.html#a300b6806fe6818927fe4df08f2398124">port</a>, <span class="keyword">const</span> std::string& <a class="code" href="../../de/da4/simple-egl_8cpp.html#a623ef6987ef3bd185c07b28b13e46d34">token</a>);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6ca8ff4a2aa019a735afaff713e0ef44">tapShortcut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* application_id);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ac336482036a72b51a822725f1929523c">onScreenMessage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* display_message);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6c065f41f2c5d1f58d2763bfb4da9c37">onScreenReply</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* reply_message);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<span class="keyword">enum</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">EventType</a> et, <a class="code" href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">handler_func</a> f);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a2789e8a5372202cc36f48e71dbb9b7cf">registerCallback</a>(</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> (*event_cb)(<span class="keyword">const</span> std::string& event, <span class="keyword">struct</span> json_object* event_contents),</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> (*reply_cb)(<span class="keyword">struct</span> json_object* reply_contents),</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> (*hangup_cb)(<span class="keywordtype">void</span>) = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(<span class="keyword">const</span> std::string& verb, <span class="keyword">struct</span> json_object* arg);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* verb, <span class="keyword">struct</span> json_object* arg);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#aa4c189807b75d070f567967f0d690738">subscribe</a>(<span class="keyword">const</span> std::string& event_name);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#aac03a45cbd453ba69ddb00c1016930a6">unsubscribe</a>(<span class="keyword">const</span> std::string& event_name);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a69fc770cb3f94d30a10c2c8c81eb892f">showWindow</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* application_id, json_object* json);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a4dbaea6c7b310e8ce7207155ff11b32a">hideWindow</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* application_id);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a6310b129fc85ef0623e2e2063950cc4b">replyShowWindow</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* application_id, json_object* json);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a93ad567ed597a80a344ba82457c2bd7f">showNotification</a>(json_object* json);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ada999aeb0444c964428bdf1ee236727f">showInformation</a>(json_object* json);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">int</span> initialize_websocket();</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  void (*onEvent)(<span class="keyword">const</span> std::string& event, <span class="keyword">struct </span>json_object* event_contents);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  void (*onReply)(<span class="keyword">struct </span>json_object* reply);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  void (*onHangup)(void);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">struct </span>afb_wsj1* sp_websock;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">struct </span>afb_wsj1_itf minterface;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  sd_event* mploop;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  std::string muri;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">int</span> mport = 2000;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  std::string mtoken = <span class="stringliteral">"hs"</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  std::map<EventType, handler_func> handlers;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">/* Don't use/ Internal only */</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1c1fa69f24b981e824dd9fb810c4b74">on_hangup</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">struct</span> afb_wsj1 *wsj);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a608638eb87b2772a3dcc92d8ca8f3596">on_call</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">const</span> <span class="keywordtype">char</span> *api, <span class="keyword">const</span> <span class="keywordtype">char</span> *verb, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a9c4885b51b43ab24a548d49fb3ab2de3">on_event</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">const</span> <span class="keywordtype">char</span> *event, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">void</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html#a248d9648c6186287a7632ec1c75fc9c5">on_reply</a>(<span class="keywordtype">void</span> *closure, <span class="keyword">struct</span> afb_wsj1_msg *msg);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> };</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#endif </span><span class="comment">/* LIBHOMESCREEN_H */</span><span class="preprocessor"></span></div><div class="ttc" id="class_lib_home_screen_html_a9c4885b51b43ab24a548d49fb3ab2de3"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a9c4885b51b43ab24a548d49fb3ab2de3">LibHomeScreen::on_event</a></div><div class="ttdeci">void on_event(void *closure, const char *event, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00616">libhomescreen.cpp:616</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a248d9648c6186287a7632ec1c75fc9c5"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a248d9648c6186287a7632ec1c75fc9c5">LibHomeScreen::on_reply</a></div><div class="ttdeci">void on_reply(void *closure, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00695">libhomescreen.cpp:695</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a6c065f41f2c5d1f58d2763bfb4da9c37"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6c065f41f2c5d1f58d2763bfb4da9c37">LibHomeScreen::onScreenReply</a></div><div class="ttdeci">int onScreenReply(const char *reply_message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00266">libhomescreen.cpp:266</a></div></div> <div class="ttc" id="class_lib_home_screen_html_a23bc17798453cfca50904562736f6b25"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a23bc17798453cfca50904562736f6b25">LibHomeScreen::operator=</a></div><div class="ttdeci">LibHomeScreen & operator=(const LibHomeScreen &)=delete</div></div> -<div class="ttc" id="class_lib_home_screen_html_a334f11f81c84c98d18284215dcaada3a"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">LibHomeScreen::handler_func</a></div><div class="ttdeci">std::function< void(json_object *)> handler_func</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00042">libhomescreen.hpp:42</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a608638eb87b2772a3dcc92d8ca8f3596"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a608638eb87b2772a3dcc92d8ca8f3596">LibHomeScreen::on_call</a></div><div class="ttdeci">void on_call(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00448">libhomescreen.cpp:448</a></div></div> -<div class="ttc" id="structevent_html"><div class="ttname"><a href="../../df/d7d/structevent.html">event</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1e/homescreen_8c_source.html#l00035">homescreen.c:35</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00046">libhomescreen.hpp:46</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00047">libhomescreen.hpp:47</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ad0569f5323ead77a43bd8735377a6f25"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ad0569f5323ead77a43bd8735377a6f25">LibHomeScreen::_areaFullScreen</a></div><div class="ttdeci">const char * _areaFullScreen</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00059">libhomescreen.hpp:59</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a334f11f81c84c98d18284215dcaada3a"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a334f11f81c84c98d18284215dcaada3a">LibHomeScreen::handler_func</a></div><div class="ttdeci">std::function< void(json_object *)> handler_func</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00040">libhomescreen.hpp:40</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a608638eb87b2772a3dcc92d8ca8f3596"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a608638eb87b2772a3dcc92d8ca8f3596">LibHomeScreen::on_call</a></div><div class="ttdeci">void on_call(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00606">libhomescreen.cpp:606</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ab4f54373b0681de11243152f01c48888"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab4f54373b0681de11243152f01c48888">LibHomeScreen::_areaSplitSub</a></div><div class="ttdeci">const char * _areaSplitSub</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00061">libhomescreen.hpp:61</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a6ca8ff4a2aa019a735afaff713e0ef44"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6ca8ff4a2aa019a735afaff713e0ef44">LibHomeScreen::tapShortcut</a></div><div class="ttdeci">int tapShortcut(const char *application_id)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00222">libhomescreen.cpp:222</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a4dbaea6c7b310e8ce7207155ff11b32a"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a4dbaea6c7b310e8ce7207155ff11b32a">LibHomeScreen::hideWindow</a></div><div class="ttdeci">int hideWindow(const char *application_id)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00503">libhomescreen.cpp:503</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a69fc770cb3f94d30a10c2c8c81eb892f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a69fc770cb3f94d30a10c2c8c81eb892f">LibHomeScreen::showWindow</a></div><div class="ttdeci">int showWindow(const char *application_id, json_object *json)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00467">libhomescreen.cpp:467</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a927592eff8e34efbbceaf12522f8897f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a927592eff8e34efbbceaf12522f8897f">LibHomeScreen::_keyParameter</a></div><div class="ttdeci">const char * _keyParameter</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00054">libhomescreen.hpp:54</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a6310b129fc85ef0623e2e2063950cc4b"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6310b129fc85ef0623e2e2063950cc4b">LibHomeScreen::replyShowWindow</a></div><div class="ttdeci">int replyShowWindow(const char *application_id, json_object *json)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00530">libhomescreen.cpp:530</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00045">libhomescreen.hpp:45</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00046">libhomescreen.hpp:46</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aef8bb1086ddbc0a125d77af9da3146a0"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aef8bb1086ddbc0a125d77af9da3146a0">LibHomeScreen::Event_HideWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00047">libhomescreen.hpp:47</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a3fb3563c64786f1a2ae404df6edffd5c"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a3fb3563c64786f1a2ae404df6edffd5c">LibHomeScreen::Event_ShowWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00043">libhomescreen.hpp:43</a></div></div> +<div class="ttc" id="simple-egl_8cpp_html_a623ef6987ef3bd185c07b28b13e46d34"><div class="ttname"><a href="../../de/da4/simple-egl_8cpp.html#a623ef6987ef3bd185c07b28b13e46d34">token</a></div><div class="ttdeci">string token</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da4/simple-egl_8cpp_source.html#l00061">simple-egl.cpp:61</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a68119a9c3ff85e807db38d3282e5ca30"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a68119a9c3ff85e807db38d3282e5ca30">LibHomeScreen::Event_ShowNotification</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00049">libhomescreen.hpp:49</a></div></div> <div class="ttc" id="class_lib_home_screen_html_a527b49dcfe581be6275d0eb2236ba37f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">LibHomeScreen::call</a></div><div class="ttdeci">int call(const std::string &verb, struct json_object *arg)</div></div> -<div class="ttc" id="class_lib_home_screen_html_ab1c1fa69f24b981e824dd9fb810c4b74"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1c1fa69f24b981e824dd9fb810c4b74">LibHomeScreen::on_hangup</a></div><div class="ttdeci">void on_hangup(void *closure, struct afb_wsj1 *wsj)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00439">libhomescreen.cpp:439</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_afb571c9577087b47065eb23e7fdbc903"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#afb571c9577087b47065eb23e7fdbc903">LibHomeScreen::tapShortcut</a></div><div class="ttdeci">int tapShortcut(const char *application_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00220">libhomescreen.cpp:220</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_aa4c189807b75d070f567967f0d690738"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#aa4c189807b75d070f567967f0d690738">LibHomeScreen::subscribe</a></div><div class="ttdeci">int subscribe(const std::string &event_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00392">libhomescreen.cpp:392</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">LibHomeScreen::EventType</a></div><div class="ttdeci">EventType</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00044">libhomescreen.hpp:44</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a724bd949c4154fad041f96a15ef0f5dc"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen::LibHomeScreen</a></div><div class="ttdeci">LibHomeScreen()</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00083">libhomescreen.cpp:83</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a6a6d8a4d33a006a08652e7377a4c29e9"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9">LibHomeScreen::event_list</a></div><div class="ttdeci">static const std::vector< std::string > event_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00051">libhomescreen.hpp:51</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a6a57b573cc767725762ba9beab032220"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">LibHomeScreen::init</a></div><div class="ttdeci">int init(const int port, const std::string &token)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00116">libhomescreen.cpp:116</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_ac336482036a72b51a822725f1929523c"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ac336482036a72b51a822725f1929523c">LibHomeScreen::onScreenMessage</a></div><div class="ttdeci">int onScreenMessage(const char *display_message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00244">libhomescreen.cpp:244</a></div></div> -<div class="ttc" id="class_lib_home_screen_html"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00032">libhomescreen.hpp:32</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a249902aebf71a5383ca8ec6ae558d095"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a249902aebf71a5383ca8ec6ae558d095">LibHomeScreen::~LibHomeScreen</a></div><div class="ttdeci">~LibHomeScreen()</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00090">libhomescreen.cpp:90</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a5593ff5ac78f6495ccb649904cf0ab08"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a></div><div class="ttdeci">static const std::vector< std::string > api_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00050">libhomescreen.hpp:50</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_aac03a45cbd453ba69ddb00c1016930a6"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#aac03a45cbd453ba69ddb00c1016930a6">LibHomeScreen::unsubscribe</a></div><div class="ttdeci">int unsubscribe(const std::string &event_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00421">libhomescreen.cpp:421</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_ab1b0e08bf35415de9064afed899e9f85"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">LibHomeScreen::set_event_handler</a></div><div class="ttdeci">void set_event_handler(enum EventType et, handler_func f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00293">libhomescreen.cpp:293</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a2789e8a5372202cc36f48e71dbb9b7cf"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a2789e8a5372202cc36f48e71dbb9b7cf">LibHomeScreen::registerCallback</a></div><div class="ttdeci">void registerCallback(void(*event_cb)(const std::string &event, struct json_object *event_contents), void(*reply_cb)(struct json_object *reply_contents), void(*hangup_cb)(void)=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00155">libhomescreen.cpp:155</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00045">libhomescreen.hpp:45</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ada999aeb0444c964428bdf1ee236727f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ada999aeb0444c964428bdf1ee236727f">LibHomeScreen::showInformation</a></div><div class="ttdeci">int showInformation(json_object *json)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00584">libhomescreen.cpp:584</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ab1c1fa69f24b981e824dd9fb810c4b74"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1c1fa69f24b981e824dd9fb810c4b74">LibHomeScreen::on_hangup</a></div><div class="ttdeci">void on_hangup(void *closure, struct afb_wsj1 *wsj)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00597">libhomescreen.cpp:597</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_aa4c189807b75d070f567967f0d690738"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#aa4c189807b75d070f567967f0d690738">LibHomeScreen::subscribe</a></div><div class="ttdeci">int subscribe(const std::string &event_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00409">libhomescreen.cpp:409</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aaacb8babce7fac884ab4bf7605da0d9f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aaacb8babce7fac884ab4bf7605da0d9f">LibHomeScreen::Event_ReplyShowWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00048">libhomescreen.hpp:48</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154">LibHomeScreen::EventType</a></div><div class="ttdeci">EventType</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00042">libhomescreen.hpp:42</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a8becda1b035ae45f5a11c7e7963091bf"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a8becda1b035ae45f5a11c7e7963091bf">LibHomeScreen::_keyArea</a></div><div class="ttdeci">const char * _keyArea</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00055">libhomescreen.hpp:55</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a724bd949c4154fad041f96a15ef0f5dc"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a724bd949c4154fad041f96a15ef0f5dc">LibHomeScreen::LibHomeScreen</a></div><div class="ttdeci">LibHomeScreen()</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00093">libhomescreen.cpp:93</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a1fad2ac5071a1dae7db9c8e1b522669b"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a1fad2ac5071a1dae7db9c8e1b522669b">LibHomeScreen::Event_ShowInformation</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00050">libhomescreen.hpp:50</a></div></div> +<div class="ttc" id="simple-egl_8cpp_html_a300b6806fe6818927fe4df08f2398124"><div class="ttname"><a href="../../de/da4/simple-egl_8cpp.html#a300b6806fe6818927fe4df08f2398124">port</a></div><div class="ttdeci">long port</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da4/simple-egl_8cpp_source.html#l00060">simple-egl.cpp:60</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a6a6d8a4d33a006a08652e7377a4c29e9"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a6d8a4d33a006a08652e7377a4c29e9">LibHomeScreen::event_list</a></div><div class="ttdeci">static const std::vector< std::string > event_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00064">libhomescreen.hpp:64</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a6a57b573cc767725762ba9beab032220"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">LibHomeScreen::init</a></div><div class="ttdeci">int init(const int port, const std::string &token)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00126">libhomescreen.cpp:126</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a7f201fc366146790520bf8d990f7b2eb"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a7f201fc366146790520bf8d990f7b2eb">LibHomeScreen::_areaSplitMain</a></div><div class="ttdeci">const char * _areaSplitMain</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00060">libhomescreen.hpp:60</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_aac718b60b83c74e2b061f6f7f7ec3bf5"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#aac718b60b83c74e2b061f6f7f7ec3bf5">LibHomeScreen::_areaNormal</a></div><div class="ttdeci">const char * _areaNormal</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00058">libhomescreen.hpp:58</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ac336482036a72b51a822725f1929523c"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ac336482036a72b51a822725f1929523c">LibHomeScreen::onScreenMessage</a></div><div class="ttdeci">int onScreenMessage(const char *display_message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00242">libhomescreen.cpp:242</a></div></div> +<div class="ttc" id="class_lib_home_screen_html"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00031">libhomescreen.hpp:31</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a249902aebf71a5383ca8ec6ae558d095"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a249902aebf71a5383ca8ec6ae558d095">LibHomeScreen::~LibHomeScreen</a></div><div class="ttdeci">~LibHomeScreen()</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00100">libhomescreen.cpp:100</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a5593ff5ac78f6495ccb649904cf0ab08"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a></div><div class="ttdeci">static const std::vector< std::string > api_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00063">libhomescreen.hpp:63</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_aac03a45cbd453ba69ddb00c1016930a6"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#aac03a45cbd453ba69ddb00c1016930a6">LibHomeScreen::unsubscribe</a></div><div class="ttdeci">int unsubscribe(const std::string &event_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00438">libhomescreen.cpp:438</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_ab1b0e08bf35415de9064afed899e9f85"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">LibHomeScreen::set_event_handler</a></div><div class="ttdeci">void set_event_handler(enum EventType et, handler_func f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00295">libhomescreen.cpp:295</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a2789e8a5372202cc36f48e71dbb9b7cf"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a2789e8a5372202cc36f48e71dbb9b7cf">LibHomeScreen::registerCallback</a></div><div class="ttdeci">void registerCallback(void(*event_cb)(const std::string &event, struct json_object *event_contents), void(*reply_cb)(struct json_object *reply_contents), void(*hangup_cb)(void)=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00165">libhomescreen.cpp:165</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00044">libhomescreen.hpp:44</a></div></div> +<div class="ttc" id="class_lib_home_screen_html_a93ad567ed597a80a344ba82457c2bd7f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a93ad567ed597a80a344ba82457c2bd7f">LibHomeScreen::showNotification</a></div><div class="ttdeci">int showNotification(json_object *json)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00562">libhomescreen.cpp:562</a></div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 +</a> 1.8.11 </small></address> </body> </html> diff --git a/doc/api-ref/html/df/d66/hs-helper_8cpp.html b/doc/api-ref/html/df/d66/hs-helper_8cpp.html new file mode 100644 index 0000000..303434a --- /dev/null +++ b/doc/api-ref/html/df/d66/hs-helper_8cpp.html @@ -0,0 +1,449 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.11"/> +<title>HomeScreenBinding: src/hs-helper.cpp File Reference</title> +<link href="../../tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../jquery.js"></script> +<script type="text/javascript" src="../../dynsections.js"></script> +<link href="../../search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../search/searchdata.js"></script> +<script type="text/javascript" src="../../search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">HomeScreenBinding + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="../../index.html"><span>Main Page</span></a></li> + <li><a href="../../annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="../../files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="../../search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="../../files.html"><span>File List</span></a></li> + <li><a href="../../globals.html"><span>File Members</span></a></li> + </ul> + </div> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#func-members">Functions</a> | +<a href="#var-members">Variables</a> </div> + <div class="headertitle"> +<div class="title">hs-helper.cpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <string.h></code><br /> +<code>#include <cstdarg></code><br /> +<code>#include "<a class="el" href="../../d3/d3d/hs-helper_8h_source.html">hs-helper.h</a>"</code><br /> +</div> +<p><a href="../../df/d66/hs-helper_8cpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:aba9ca63f68b1991f8650871f4eae8e0b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#aba9ca63f68b1991f8650871f4eae8e0b">get_value_uint16</a> (const afb_req_t request, const char *source, uint16_t *out_id)</td></tr> +<tr class="separator:aba9ca63f68b1991f8650871f4eae8e0b"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:af3043612cf74bb92cb073e10cacd594a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#af3043612cf74bb92cb073e10cacd594a">get_value_int16</a> (const afb_req_t request, const char *source, int16_t *out_id)</td></tr> +<tr class="separator:af3043612cf74bb92cb073e10cacd594a"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a8121d965b6fd795c16b8576ab03dcaf1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#a8121d965b6fd795c16b8576ab03dcaf1">get_value_int32</a> (const afb_req_t request, const char *source, int32_t *out_id)</td></tr> +<tr class="separator:a8121d965b6fd795c16b8576ab03dcaf1"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a1ba31a6a94515ff1730ba0043a67d59e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#a1ba31a6a94515ff1730ba0043a67d59e">hs_add_object_to_json_object</a> (struct json_object *j_obj, int count,...)</td></tr> +<tr class="separator:a1ba31a6a94515ff1730ba0043a67d59e"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a8777c53f1d4d5412f19b134ad85ffedf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a> (struct json_object *j_obj, int count,...)</td></tr> +<tr class="separator:a8777c53f1d4d5412f19b134ad85ffedf"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ae83604a37134e7bdee3ce4f10bb0b47a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#ae83604a37134e7bdee3ce4f10bb0b47a">hs_add_object_to_json_object_func</a> (struct json_object *j_obj, const char *verb_name, int count,...)</td></tr> +<tr class="separator:ae83604a37134e7bdee3ce4f10bb0b47a"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a2ff1b894941c3b461ca8119079c4146a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#a2ff1b894941c3b461ca8119079c4146a">hs_search_event_name_index</a> (const char *value)</td></tr> +<tr class="separator:a2ff1b894941c3b461ca8119079c4146a"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> +Variables</h2></td></tr> +<tr class="memitem:a0cd84b1a2184c9b84d1b7bf24582f28e"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a> []</td></tr> +<tr class="separator:a0cd84b1a2184c9b84d1b7bf24582f28e"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<h2 class="groupheader">Function Documentation</h2> +<a class="anchor" id="af3043612cf74bb92cb073e10cacd594a"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> get_value_int16 </td> + <td>(</td> + <td class="paramtype">const afb_req_t </td> + <td class="paramname"><em>request</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>source</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int16_t * </td> + <td class="paramname"><em>out_id</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>get int16 value from source</p> +<h4>Parameters</h4> +<ul> +<li>request : Describes the request by bindings from afb-daemon</li> +<li>source : input source</li> +<li>out_id : output int16 value</li> +</ul> +<h4>Return</h4> +<p>error code </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00082">82</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span>( (tmp_id > INT16_MAX) || (tmp_id < INT16_MIN) )</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  *out_id = (int16_t)tmp_id;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div><div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00031">hs-helper.h:31</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00034">hs-helper.h:34</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00033">hs-helper.h:33</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00032">hs-helper.h:32</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a class="anchor" id="a8121d965b6fd795c16b8576ab03dcaf1"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> get_value_int32 </td> + <td>(</td> + <td class="paramtype">const afb_req_t </td> + <td class="paramname"><em>request</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>source</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int32_t * </td> + <td class="paramname"><em>out_id</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>get int32 value from source</p> +<h4>Parameters</h4> +<ul> +<li>request : Describes the request by bindings from afb-daemon</li> +<li>source : input source</li> +<li>out_id : output int32 value</li> +</ul> +<h4>Return</h4> +<p>error code </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00118">118</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span>( (tmp_id > INT32_MAX) || (tmp_id < INT32_MIN) )</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  *out_id = (int32_t)tmp_id;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div><div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00031">hs-helper.h:31</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00034">hs-helper.h:34</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00033">hs-helper.h:33</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00032">hs-helper.h:32</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a class="anchor" id="aba9ca63f68b1991f8650871f4eae8e0b"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> get_value_uint16 </td> + <td>(</td> + <td class="paramtype">const afb_req_t </td> + <td class="paramname"><em>request</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>source</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">uint16_t * </td> + <td class="paramname"><em>out_id</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>get uint16 value from source</p> +<h4>Parameters</h4> +<ul> +<li>request : Describes the request by bindings from afb-daemon</li> +<li>source : input source</li> +<li>out_id : output uint16 value</li> +</ul> +<h4>Return</h4> +<p>error code </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00046">46</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span>( (tmp_id > UINT16_MAX) || (tmp_id < 0) )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  *out_id = (uint16_t)tmp_id;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</div><div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00031">hs-helper.h:31</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00034">hs-helper.h:34</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00033">hs-helper.h:33</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00032">hs-helper.h:32</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a class="anchor" id="a1ba31a6a94515ff1730ba0043a67d59e"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void hs_add_object_to_json_object </td> + <td>(</td> + <td class="paramtype">struct json_object * </td> + <td class="paramname"><em>j_obj</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"><em>count</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>...</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>add int object to json object</p> +<h4>Parameters</h4> +<ul> +<li>j_obj : the json object will join in int json object</li> +<li>count : input parameter number</li> +<li>... : parameter list</li> +</ul> +<h4>Return</h4> +<p>None </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00154">154</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  va_list args;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  va_start(args, count);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">int</span> value = va_arg(args, <span class="keywordtype">int</span>);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  json_object_object_add(j_obj, key, json_object_new_int((int32_t)value));</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  ++i;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  va_end(args);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div></div><!-- fragment --> +</div> +</div> +<a class="anchor" id="ae83604a37134e7bdee3ce4f10bb0b47a"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void hs_add_object_to_json_object_func </td> + <td>(</td> + <td class="paramtype">struct json_object * </td> + <td class="paramname"><em>j_obj</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>verb_name</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"><em>count</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>...</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>add new json object to json object</p> +<h4>Parameters</h4> +<ul> +<li>j_obj : the json object will join in new json object</li> +<li>verb_name : new json object's verb value</li> +<li>count : input parameter number</li> +<li>... : parameter list</li> +</ul> +<h4>Return</h4> +<p>None </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00207">207</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> {</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  va_list args;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  va_start(args, count);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  json_object_object_add(j_obj,<span class="stringliteral">"verb"</span>, json_object_new_string(verb_name));</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">int</span> value = va_arg(args, <span class="keywordtype">int</span>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  json_object_object_add(j_obj, key, json_object_new_int((int32_t)value));</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  ++i;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  va_end(args);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div></div><!-- fragment --> +</div> +</div> +<a class="anchor" id="a8777c53f1d4d5412f19b134ad85ffedf"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void hs_add_object_to_json_object_str </td> + <td>(</td> + <td class="paramtype">struct json_object * </td> + <td class="paramname"><em>j_obj</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"><em>count</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>...</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>add string object to json object</p> +<h4>Parameters</h4> +<ul> +<li>j_obj : the json object will join in string json object</li> +<li>count : input parameter number</li> +<li>... : parameter list</li> +</ul> +<h4>Return</h4> +<p>None </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00180">180</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  va_list args;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  va_start(args, count);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">char</span> *value = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  json_object_object_add(j_obj, key, json_object_new_string(value));</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  ++i;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  va_end(args);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> }</div></div><!-- fragment --> +</div> +</div> +<a class="anchor" id="a2ff1b894941c3b461ca8119079c4146a"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int hs_search_event_name_index </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>value</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>search event position in event list</p> +<h4>Parameters</h4> +<ul> +<li>value : searched event name</li> +</ul> +<h4>Return</h4> +<p>event's index in event list </p> + +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00234">234</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">size_t</span> buf_size = 50;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">size_t</span> size = <span class="keyword">sizeof</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a> / <span class="keyword">sizeof</span> *<a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a>;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordtype">int</span> ret = -1;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0 ; i < size ; ++i)</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">if</span>(!strncmp(value, <a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a>[i], buf_size))</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  {</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  ret = i;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div><div class="ttc" id="hs-helper_8cpp_html_a0cd84b1a2184c9b84d1b7bf24582f28e"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a></div><div class="ttdeci">const char * evlist[]</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00022">hs-helper.cpp:22</a></div></div> +</div><!-- fragment --> +</div> +</div> +<h2 class="groupheader">Variable Documentation</h2> +<a class="anchor" id="a0cd84b1a2184c9b84d1b7bf24582f28e"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">const char* evlist[]</td> + </tr> + </table> +</div><div class="memdoc"> +<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line"> <span class="stringliteral">"tap_shortcut"</span>,</div><div class="line"> <span class="stringliteral">"on_screen_message"</span>,</div><div class="line"> <span class="stringliteral">"on_screen_reply"</span>,</div><div class="line"> <span class="stringliteral">"showWindow"</span>,</div><div class="line"> <span class="stringliteral">"hideWindow"</span>,</div><div class="line"> <span class="stringliteral">"replyShowWindow"</span>,</div><div class="line"> <span class="stringliteral">"showNotification"</span>,</div><div class="line"> <span class="stringliteral">"showInformation"</span>,</div><div class="line"> <span class="stringliteral">"reserved"</span></div><div class="line"> }</div></div><!-- fragment --> +<p>Definition at line <a class="el" href="../../df/d66/hs-helper_8cpp_source.html#l00022">22</a> of file <a class="el" href="../../df/d66/hs-helper_8cpp_source.html">hs-helper.cpp</a>.</p> + +</div> +</div> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="../../doxygen.png" alt="doxygen"/> +</a> 1.8.11 +</small></address> +</body> +</html> diff --git a/doc/api-ref/html/df/d66/hs-helper_8cpp_source.html b/doc/api-ref/html/df/d66/hs-helper_8cpp_source.html new file mode 100644 index 0000000..d0f5e2a --- /dev/null +++ b/doc/api-ref/html/df/d66/hs-helper_8cpp_source.html @@ -0,0 +1,113 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.11"/> +<title>HomeScreenBinding: src/hs-helper.cpp Source File</title> +<link href="../../tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../jquery.js"></script> +<script type="text/javascript" src="../../dynsections.js"></script> +<link href="../../search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="../../search/searchdata.js"></script> +<script type="text/javascript" src="../../search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">HomeScreenBinding + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="../../index.html"><span>Main Page</span></a></li> + <li><a href="../../annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="../../files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="../../search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="../../files.html"><span>File List</span></a></li> + <li><a href="../../globals.html"><span>File Members</span></a></li> + </ul> + </div> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">hs-helper.cpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="../../df/d66/hs-helper_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <string.h></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <cstdarg></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="../../d3/d3d/hs-helper_8h.html">hs-helper.h</a>"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#a0cd84b1a2184c9b84d1b7bf24582f28e"> 22</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a>[] = {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="stringliteral">"tap_shortcut"</span>,</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="stringliteral">"on_screen_message"</span>,</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="stringliteral">"on_screen_reply"</span>,</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="stringliteral">"showWindow"</span>,</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="stringliteral">"hideWindow"</span>,</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="stringliteral">"replyShowWindow"</span>,</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="stringliteral">"showNotification"</span>,</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="stringliteral">"showInformation"</span>,</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="stringliteral">"reserved"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  };</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#aba9ca63f68b1991f8650871f4eae8e0b"> 46</a></span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> <a class="code" href="../../df/d66/hs-helper_8cpp.html#aba9ca63f68b1991f8650871f4eae8e0b">get_value_uint16</a>(<span class="keyword">const</span> afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span> *source, uint16_t *out_id)</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span>( (tmp_id > UINT16_MAX) || (tmp_id < 0) )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  *out_id = (uint16_t)tmp_id;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#af3043612cf74bb92cb073e10cacd594a"> 82</a></span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> <a class="code" href="../../df/d66/hs-helper_8cpp.html#af3043612cf74bb92cb073e10cacd594a">get_value_int16</a>(<span class="keyword">const</span> afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span> *source, int16_t *out_id)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span>( (tmp_id > INT16_MAX) || (tmp_id < INT16_MIN) )</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  *out_id = (int16_t)tmp_id;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#a8121d965b6fd795c16b8576ab03dcaf1"> 118</a></span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8121d965b6fd795c16b8576ab03dcaf1">get_value_int32</a>(<span class="keyword">const</span> afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span> *source, int32_t *out_id)</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* tmp = afb_req_value (request, source);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span>(!tmp)</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a>;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">long</span> tmp_id = strtol(tmp,&endptr,10);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span>( (tmp_id > INT32_MAX) || (tmp_id < INT32_MIN) )</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  *out_id = (int32_t)tmp_id;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a>;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#a1ba31a6a94515ff1730ba0043a67d59e"> 154</a></span> <span class="keywordtype">void</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a1ba31a6a94515ff1730ba0043a67d59e">hs_add_object_to_json_object</a>(<span class="keyword">struct</span> json_object* j_obj, <span class="keywordtype">int</span> count,...)</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  va_list args;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  va_start(args, count);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">int</span> value = va_arg(args, <span class="keywordtype">int</span>);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  json_object_object_add(j_obj, key, json_object_new_int((int32_t)value));</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  ++i;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  va_end(args);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#a8777c53f1d4d5412f19b134ad85ffedf"> 180</a></span> <span class="keywordtype">void</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>(<span class="keyword">struct</span> json_object* j_obj, <span class="keywordtype">int</span> count,...)</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  va_list args;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  va_start(args, count);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">char</span> *value = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  json_object_object_add(j_obj, key, json_object_new_string(value));</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  ++i;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  va_end(args);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> }</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#ae83604a37134e7bdee3ce4f10bb0b47a"> 207</a></span> <span class="keywordtype">void</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#ae83604a37134e7bdee3ce4f10bb0b47a">hs_add_object_to_json_object_func</a>(<span class="keyword">struct</span> json_object* j_obj, <span class="keyword">const</span> <span class="keywordtype">char</span>* verb_name, <span class="keywordtype">int</span> count, ...)</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> {</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  va_list args;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  va_start(args, count);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  json_object_object_add(j_obj,<span class="stringliteral">"verb"</span>, json_object_new_string(verb_name));</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < count; ++i )</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordtype">char</span> *key = va_arg(args, <span class="keywordtype">char</span>*);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">int</span> value = va_arg(args, <span class="keywordtype">int</span>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  json_object_object_add(j_obj, key, json_object_new_int((int32_t)value));</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  ++i;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  va_end(args);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="../../d3/d3d/hs-helper_8h.html#a2ff1b894941c3b461ca8119079c4146a"> 234</a></span> <span class="keywordtype">int</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a2ff1b894941c3b461ca8119079c4146a">hs_search_event_name_index</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value)</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">size_t</span> buf_size = 50;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">size_t</span> size = <span class="keyword">sizeof</span> <a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a> / <span class="keyword">sizeof</span> *<a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a>;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordtype">int</span> ret = -1;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0 ; i < size ; ++i)</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">if</span>(!strncmp(value, <a class="code" href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a>[i], buf_size))</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  {</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  ret = i;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div><div class="ttc" id="hs-helper_8cpp_html_aba9ca63f68b1991f8650871f4eae8e0b"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#aba9ca63f68b1991f8650871f4eae8e0b">get_value_uint16</a></div><div class="ttdeci">REQ_ERROR get_value_uint16(const afb_req_t request, const char *source, uint16_t *out_id)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00046">hs-helper.cpp:46</a></div></div> +<div class="ttc" id="hs-helper_8h_html"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html">hs-helper.h</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_af3043612cf74bb92cb073e10cacd594a"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#af3043612cf74bb92cb073e10cacd594a">get_value_int16</a></div><div class="ttdeci">REQ_ERROR get_value_int16(const afb_req_t request, const char *source, int16_t *out_id)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00082">hs-helper.cpp:82</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899a96a855966bc63045222b3dcac524cee1">REQ_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00031">hs-helper.h:31</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899add1c84bf80c5f80741ee8f37fef1e12b">OUT_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00034">hs-helper.h:34</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899aa223eed65c9bee2bf1f4cdecaf90d66a">NOT_NUMBER</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00033">hs-helper.h:33</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899ab093abb14c097b3b7719debb04d5e8ee">REQ_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00032">hs-helper.h:32</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_a8777c53f1d4d5412f19b134ad85ffedf"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a></div><div class="ttdeci">void hs_add_object_to_json_object_str(struct json_object *j_obj, int count,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00180">hs-helper.cpp:180</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_a1ba31a6a94515ff1730ba0043a67d59e"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a1ba31a6a94515ff1730ba0043a67d59e">hs_add_object_to_json_object</a></div><div class="ttdeci">void hs_add_object_to_json_object(struct json_object *j_obj, int count,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00154">hs-helper.cpp:154</a></div></div> +<div class="ttc" id="hs-helper_8h_html_aa49f1dbbf26f01627a5737cf43aad899"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa49f1dbbf26f01627a5737cf43aad899">REQ_ERROR</a></div><div class="ttdeci">REQ_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00029">hs-helper.h:29</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_a0cd84b1a2184c9b84d1b7bf24582f28e"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a0cd84b1a2184c9b84d1b7bf24582f28e">evlist</a></div><div class="ttdeci">const char * evlist[]</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00022">hs-helper.cpp:22</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_ae83604a37134e7bdee3ce4f10bb0b47a"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#ae83604a37134e7bdee3ce4f10bb0b47a">hs_add_object_to_json_object_func</a></div><div class="ttdeci">void hs_add_object_to_json_object_func(struct json_object *j_obj, const char *verb_name, int count,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00207">hs-helper.cpp:207</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_a8121d965b6fd795c16b8576ab03dcaf1"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a8121d965b6fd795c16b8576ab03dcaf1">get_value_int32</a></div><div class="ttdeci">REQ_ERROR get_value_int32(const afb_req_t request, const char *source, int32_t *out_id)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00118">hs-helper.cpp:118</a></div></div> +<div class="ttc" id="hs-helper_8cpp_html_a2ff1b894941c3b461ca8119079c4146a"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a2ff1b894941c3b461ca8119079c4146a">hs_search_event_name_index</a></div><div class="ttdeci">int hs_search_event_name_index(const char *value)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00234">hs-helper.cpp:234</a></div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="../../doxygen.png" alt="doxygen"/> +</a> 1.8.11 +</small></address> +</body> +</html> diff --git a/doc/api-ref/html/df/d76/hmi-debug_8h.html b/doc/api-ref/html/df/d76/hmi-debug_8h.html deleted file mode 100644 index 3931c00..0000000 --- a/doc/api-ref/html/df/d76/hmi-debug_8h.html +++ /dev/null @@ -1,435 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>HomeScreenBinding: include/hmi-debug.h File Reference</title> -<link href="../../tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../jquery.js"></script> -<script type="text/javascript" src="../../dynsections.js"></script> -<link href="../../search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../search/searchdata.js"></script> -<script type="text/javascript" src="../../search/search.js"></script> -<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">HomeScreenBinding - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); -</script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div id="nav-path" class="navpath"> - <ul> -<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="summary"> -<a href="#define-members">Macros</a> | -<a href="#enum-members">Enumerations</a> | -<a href="#func-members">Functions</a> | -<a href="#var-members">Variables</a> </div> - <div class="headertitle"> -<div class="title">hmi-debug.h File Reference</div> </div> -</div><!--header--> -<div class="contents"> -<div class="textblock"><code>#include <time.h></code><br /> -<code>#include <stdio.h></code><br /> -<code>#include <afb/afb-binding.h></code><br /> -</div> -<p><a href="../../df/d76/hmi-debug_8h_source.html">Go to the source code of this file.</a></p> -<table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> -Macros</h2></td></tr> -<tr class="memitem:a65bb6c7cfe38f8a724beab5059d36fb2"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2">HMI_ERROR</a>(prefix, args, ...)   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, __FILE__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)</td></tr> -<tr class="separator:a65bb6c7cfe38f8a724beab5059d36fb2"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a25361812432cd2480bc8f1a8e56ecbf7"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a25361812432cd2480bc8f1a8e56ecbf7">HMI_WARNING</a>(prefix, args, ...)   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td></tr> -<tr class="separator:a25361812432cd2480bc8f1a8e56ecbf7"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:abc0d6e0760017d8ae48b836925b2ef15"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(prefix, args, ...)   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td></tr> -<tr class="separator:abc0d6e0760017d8ae48b836925b2ef15"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a11b249a67108f0f4c50a0fc8a3eb4f5c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a11b249a67108f0f4c50a0fc8a3eb4f5c">HMI_INFO</a>(prefix, args, ...)   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td></tr> -<tr class="separator:a11b249a67108f0f4c50a0fc8a3eb4f5c"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a0d26d8b8201011dade787236519711c0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a0d26d8b8201011dade787236519711c0">HMI_DEBUG</a>(prefix, args, ...)   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td></tr> -<tr class="separator:a0d26d8b8201011dade787236519711c0"><td class="memSeparator" colspan="2"> </td></tr> -</table><table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> -Enumerations</h2></td></tr> -<tr class="memitem:aa5a9053636a30269210c54e734e0d583"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a> { <br /> -  <a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848">LOG_LEVEL_NONE</a> = 0, -<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, -<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a>, -<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a>, -<br /> -  <a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, -<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, -<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444">LOG_LEVEL_MAX</a> = LOG_LEVEL_ERROR -<br /> - }</td></tr> -<tr class="separator:aa5a9053636a30269210c54e734e0d583"><td class="memSeparator" colspan="2"> </td></tr> -</table><table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> -Functions</h2></td></tr> -<tr class="memitem:a0846b9d51e2e0612c4825a9a581aa40a"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a> (enum <a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a> level, const char *file, const char *func, const int line, const char *prefix, const char *log,...)</td></tr> -<tr class="separator:a0846b9d51e2e0612c4825a9a581aa40a"><td class="memSeparator" colspan="2"> </td></tr> -</table><table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> -Variables</h2></td></tr> -<tr class="memitem:a13d4c7647aad2e84766f8b48a6caab09"><td class="memItemLeft" align="right" valign="top">static char </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a> [6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"}</td></tr> -<tr class="separator:a13d4c7647aad2e84766f8b48a6caab09"><td class="memSeparator" colspan="2"> </td></tr> -</table> -<h2 class="groupheader">Macro Definition Documentation</h2> -<a id="a0d26d8b8201011dade787236519711c0"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a0d26d8b8201011dade787236519711c0">◆ </a></span>HMI_DEBUG</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">#define HMI_DEBUG</td> - <td>(</td> - <td class="paramtype"> </td> - <td class="paramname">prefix, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname">args, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td>   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00022">22</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -<a id="a65bb6c7cfe38f8a724beab5059d36fb2"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a65bb6c7cfe38f8a724beab5059d36fb2">◆ </a></span>HMI_ERROR</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">#define HMI_ERROR</td> - <td>(</td> - <td class="paramtype"> </td> - <td class="paramname">prefix, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname">args, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td>   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, __FILE__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00018">18</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -<a id="a11b249a67108f0f4c50a0fc8a3eb4f5c"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a11b249a67108f0f4c50a0fc8a3eb4f5c">◆ </a></span>HMI_INFO</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">#define HMI_INFO</td> - <td>(</td> - <td class="paramtype"> </td> - <td class="paramname">prefix, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname">args, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td>   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00021">21</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -<a id="abc0d6e0760017d8ae48b836925b2ef15"></a> -<h2 class="memtitle"><span class="permalink"><a href="#abc0d6e0760017d8ae48b836925b2ef15">◆ </a></span>HMI_NOTICE</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">#define HMI_NOTICE</td> - <td>(</td> - <td class="paramtype"> </td> - <td class="paramname">prefix, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname">args, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td>   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00020">20</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -<a id="a25361812432cd2480bc8f1a8e56ecbf7"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a25361812432cd2480bc8f1a8e56ecbf7">◆ </a></span>HMI_WARNING</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">#define HMI_WARNING</td> - <td>(</td> - <td class="paramtype"> </td> - <td class="paramname">prefix, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname">args, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td>   <a class="el" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a>, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00019">19</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -<h2 class="groupheader">Enumeration Type Documentation</h2> -<a id="aa5a9053636a30269210c54e734e0d583"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aa5a9053636a30269210c54e734e0d583">◆ </a></span>LOG_LEVEL</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">enum <a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a></td> - </tr> - </table> -</div><div class="memdoc"> -<table class="fieldtable"> -<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848"></a>LOG_LEVEL_NONE </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f"></a>LOG_LEVEL_ERROR </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef"></a>LOG_LEVEL_WARNING </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e"></a>LOG_LEVEL_NOTICE </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4"></a>LOG_LEVEL_INFO </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177"></a>LOG_LEVEL_DEBUG </td><td class="fielddoc"></td></tr> -<tr><td class="fieldname"><a id="aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444"></a>LOG_LEVEL_MAX </td><td class="fielddoc"></td></tr> -</table> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00008">8</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> -<div class="fragment"><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848">LOG_LEVEL_NONE</a> = 0,</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>,</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a>,</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a>,</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>,</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>,</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444">LOG_LEVEL_MAX</a> = <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> };</div><div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00010">hmi-debug.h:10</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00012">hmi-debug.h:12</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00014">hmi-debug.h:14</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00013">hmi-debug.h:13</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444">LOG_LEVEL_MAX</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00015">hmi-debug.h:15</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00011">hmi-debug.h:11</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848">LOG_LEVEL_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00009">hmi-debug.h:9</a></div></div> -</div><!-- fragment --> -</div> -</div> -<h2 class="groupheader">Function Documentation</h2> -<a id="a0846b9d51e2e0612c4825a9a581aa40a"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a0846b9d51e2e0612c4825a9a581aa40a">◆ </a></span>_HMI_LOG()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static void _HMI_LOG </td> - <td>(</td> - <td class="paramtype">enum <a class="el" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a> </td> - <td class="paramname"><em>level</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const char * </td> - <td class="paramname"><em>file</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const char * </td> - <td class="paramname"><em>func</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const int </td> - <td class="paramname"><em>line</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const char * </td> - <td class="paramname"><em>prefix</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const char * </td> - <td class="paramname"><em>log</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"> </td> - <td class="paramname"><em>...</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00026">26</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> -<div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> log_level = (getenv(<span class="stringliteral">"USE_HMI_DEBUG"</span>) == NULL)?0:atoi(getenv(<span class="stringliteral">"USE_HMI_DEBUG"</span>));</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span>(log_level < level)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">char</span> *message;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">struct </span>timespec tp;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> time;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  clock_gettime(CLOCK_REALTIME, &tp);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  va_list args;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  va_start(args, log);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span> (log == NULL || vasprintf(&message, log, args) < 0)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  message = NULL;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  fprintf(stderr, <span class="stringliteral">"[%10.3f] [%s %s] [%s:%d] >>> %s \n"</span>, time / 1000.0, prefix, <a class="code" href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a>[level], func, line, message);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  va_end(args);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  free(message);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> }</div><div class="ttc" id="hmi-debug_8h_html_a13d4c7647aad2e84766f8b48a6caab09"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a></div><div class="ttdeci">static char ERROR_FLAG[6][20]</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00024">hmi-debug.h:24</a></div></div> -</div><!-- fragment --> -</div> -</div> -<h2 class="groupheader">Variable Documentation</h2> -<a id="a13d4c7647aad2e84766f8b48a6caab09"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a13d4c7647aad2e84766f8b48a6caab09">◆ </a></span>ERROR_FLAG</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">char ERROR_FLAG[6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"}</td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/d76/hmi-debug_8h_source.html#l00024">24</a> of file <a class="el" href="../../df/d76/hmi-debug_8h_source.html">hmi-debug.h</a>.</p> - -</div> -</div> -</div><!-- contents --> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 -</small></address> -</body> -</html> diff --git a/doc/api-ref/html/df/d76/hmi-debug_8h_source.html b/doc/api-ref/html/df/d76/hmi-debug_8h_source.html deleted file mode 100644 index 80b0c61..0000000 --- a/doc/api-ref/html/df/d76/hmi-debug_8h_source.html +++ /dev/null @@ -1,87 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>HomeScreenBinding: include/hmi-debug.h Source File</title> -<link href="../../tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../jquery.js"></script> -<script type="text/javascript" src="../../dynsections.js"></script> -<link href="../../search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../search/searchdata.js"></script> -<script type="text/javascript" src="../../search/search.js"></script> -<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">HomeScreenBinding - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); -</script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div id="nav-path" class="navpath"> - <ul> -<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="headertitle"> -<div class="title">hmi-debug.h</div> </div> -</div><!--header--> -<div class="contents"> -<a href="../../df/d76/hmi-debug_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef __HMI_DEBUG_H__</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define __HMI_DEBUG_H__</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <time.h></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <stdio.h></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <afb/afb-binding.h></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583"> 8</a></span> <span class="keyword">enum</span> <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a>{</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848"> 9</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848">LOG_LEVEL_NONE</a> = 0,</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f"> 10</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>,</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef"> 11</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a>,</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e"> 12</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a>,</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4"> 13</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>,</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177"> 14</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>,</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444"> 15</a></span>  <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444">LOG_LEVEL_MAX</a> = <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> };</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2"> 18</a></span> <span class="preprocessor">#define HMI_ERROR(prefix, args,...) _HMI_LOG(LOG_LEVEL_ERROR, __FILE__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)</span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a25361812432cd2480bc8f1a8e56ecbf7"> 19</a></span> <span class="preprocessor">#define HMI_WARNING(prefix, args,...) _HMI_LOG(LOG_LEVEL_WARNING, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15"> 20</a></span> <span class="preprocessor">#define HMI_NOTICE(prefix, args,...) _HMI_LOG(LOG_LEVEL_NOTICE, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</span></div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a11b249a67108f0f4c50a0fc8a3eb4f5c"> 21</a></span> <span class="preprocessor">#define HMI_INFO(prefix, args,...) _HMI_LOG(LOG_LEVEL_INFO, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</span></div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a0d26d8b8201011dade787236519711c0"> 22</a></span> <span class="preprocessor">#define HMI_DEBUG(prefix, args,...) _HMI_LOG(LOG_LEVEL_DEBUG, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09"> 24</a></span> <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a>[6][20] = {<span class="stringliteral">"NONE"</span>, <span class="stringliteral">"ERROR"</span>, <span class="stringliteral">"WARNING"</span>, <span class="stringliteral">"NOTICE"</span>, <span class="stringliteral">"INFO"</span>, <span class="stringliteral">"DEBUG"</span>};</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a"> 26</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a>(<span class="keyword">enum</span> <a class="code" href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span>* file, <span class="keyword">const</span> <span class="keywordtype">char</span>* func, <span class="keyword">const</span> <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span>* prefix, <span class="keyword">const</span> <span class="keywordtype">char</span>* log, ...)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> log_level = (getenv(<span class="stringliteral">"USE_HMI_DEBUG"</span>) == NULL)?0:atoi(getenv(<span class="stringliteral">"USE_HMI_DEBUG"</span>));</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span>(log_level < level)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">char</span> *message;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">struct </span>timespec tp;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> time;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  clock_gettime(CLOCK_REALTIME, &tp);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  va_list args;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  va_start(args, log);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span> (log == NULL || vasprintf(&message, log, args) < 0)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  message = NULL;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  fprintf(stderr, <span class="stringliteral">"[%10.3f] [%s %s] [%s:%d] >>> %s \n"</span>, time / 1000.0, prefix, <a class="code" href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a>[level], func, line, message);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  va_end(args);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  free(message);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#endif //__HMI_DEBUG_H__</span></div><div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00010">hmi-debug.h:10</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a23ae4d711a7bbb3900240cb7316b4b4e">LOG_LEVEL_NOTICE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00012">hmi-debug.h:12</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00014">hmi-debug.h:14</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00013">hmi-debug.h:13</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_a13d4c7647aad2e84766f8b48a6caab09"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#a13d4c7647aad2e84766f8b48a6caab09">ERROR_FLAG</a></div><div class="ttdeci">static char ERROR_FLAG[6][20]</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00024">hmi-debug.h:24</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583">LOG_LEVEL</a></div><div class="ttdeci">LOG_LEVEL</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00008">hmi-debug.h:8</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a0459003454bc8bb17752e6d8e5787444">LOG_LEVEL_MAX</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00015">hmi-debug.h:15</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a5b4dd81b4dc7eefbc55ba03415c627ef">LOG_LEVEL_WARNING</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00011">hmi-debug.h:11</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_a0846b9d51e2e0612c4825a9a581aa40a"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#a0846b9d51e2e0612c4825a9a581aa40a">_HMI_LOG</a></div><div class="ttdeci">static void _HMI_LOG(enum LOG_LEVEL level, const char *file, const char *func, const int line, const char *prefix, const char *log,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00026">hmi-debug.h:26</a></div></div> -<div class="ttc" id="hmi-debug_8h_html_aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848"><div class="ttname"><a href="../../df/d76/hmi-debug_8h.html#aa5a9053636a30269210c54e734e0d583a69dacb1837e1e37c6ed34cc2ee1d8848">LOG_LEVEL_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d76/hmi-debug_8h_source.html#l00009">hmi-debug.h:9</a></div></div> -</div><!-- fragment --></div><!-- contents --> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 -</small></address> -</body> -</html> diff --git a/doc/api-ref/html/df/d7d/structevent.html b/doc/api-ref/html/df/d7d/structevent.html deleted file mode 100644 index 2fcc0eb..0000000 --- a/doc/api-ref/html/df/d7d/structevent.html +++ /dev/null @@ -1,123 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>HomeScreenBinding: event Struct Reference</title> -<link href="../../tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../jquery.js"></script> -<script type="text/javascript" src="../../dynsections.js"></script> -<link href="../../search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../search/searchdata.js"></script> -<script type="text/javascript" src="../../search/search.js"></script> -<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">HomeScreenBinding - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); -</script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -</div><!-- top --> -<div class="header"> - <div class="summary"> -<a href="#pub-attribs">Public Attributes</a> | -<a href="../../dd/d86/structevent-members.html">List of all members</a> </div> - <div class="headertitle"> -<div class="title">event Struct Reference</div> </div> -</div><!--header--> -<div class="contents"> -<table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> -Public Attributes</h2></td></tr> -<tr class="memitem:a45c6cfb7961a21a3366db067e4cc59ab"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d7d/structevent.html#a45c6cfb7961a21a3366db067e4cc59ab">name</a></td></tr> -<tr class="separator:a45c6cfb7961a21a3366db067e4cc59ab"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a58726ebc551d36562ac3f9e1fe293214"><td class="memItemLeft" align="right" valign="top">struct afb_event * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d7d/structevent.html#a58726ebc551d36562ac3f9e1fe293214">event</a></td></tr> -<tr class="separator:a58726ebc551d36562ac3f9e1fe293214"><td class="memSeparator" colspan="2"> </td></tr> -</table> -<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> -<div class="textblock"> -<p class="definition">Definition at line <a class="el" href="../../d0/d1e/homescreen_8c_source.html#l00035">35</a> of file <a class="el" href="../../d0/d1e/homescreen_8c_source.html">homescreen.c</a>.</p> -</div><h2 class="groupheader">Member Data Documentation</h2> -<a id="a58726ebc551d36562ac3f9e1fe293214"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a58726ebc551d36562ac3f9e1fe293214">◆ </a></span>event</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">struct afb_event* event::event</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../d0/d1e/homescreen_8c_source.html#l00037">37</a> of file <a class="el" href="../../d0/d1e/homescreen_8c_source.html">homescreen.c</a>.</p> - -</div> -</div> -<a id="a45c6cfb7961a21a3366db067e4cc59ab"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a45c6cfb7961a21a3366db067e4cc59ab">◆ </a></span>name</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">const char* event::name</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../d0/d1e/homescreen_8c_source.html#l00036">36</a> of file <a class="el" href="../../d0/d1e/homescreen_8c_source.html">homescreen.c</a>.</p> - -</div> -</div> -<hr/>The documentation for this struct was generated from the following file:<ul> -<li>src/<a class="el" href="../../d0/d1e/homescreen_8c_source.html">homescreen.c</a></li> -</ul> -</div><!-- contents --> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 -</small></address> -</body> -</html> diff --git a/doc/api-ref/html/df/dac/test_8cpp.html b/doc/api-ref/html/df/dac/test_8cpp.html deleted file mode 100644 index 00f9515..0000000 --- a/doc/api-ref/html/df/dac/test_8cpp.html +++ /dev/null @@ -1,334 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>HomeScreenBinding: libhomescreen/test.cpp File Reference</title> -<link href="../../tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../jquery.js"></script> -<script type="text/javascript" src="../../dynsections.js"></script> -<link href="../../search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../search/searchdata.js"></script> -<script type="text/javascript" src="../../search/search.js"></script> -<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">HomeScreenBinding - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); -</script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div id="nav-path" class="navpath"> - <ul> -<li class="navelem"><a class="el" href="../../dir_65f76d62445e9e84c0450b12bf77c3bc.html">libhomescreen</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="summary"> -<a href="#func-members">Functions</a> | -<a href="#var-members">Variables</a> </div> - <div class="headertitle"> -<div class="title">test.cpp File Reference</div> </div> -</div><!--header--> -<div class="contents"> -<div class="textblock"><code>#include <<a class="el" href="../../df/d43/libhomescreen_8hpp_source.html">libhomescreen.hpp</a>></code><br /> -<code>#include <iostream></code><br /> -<code>#include <glib-2.0/glib.h></code><br /> -<code>#include <fcntl.h></code><br /> -<code>#include <string></code><br /> -<code>#include <sys/types.h></code><br /> -<code>#include <sys/stat.h></code><br /> -<code>#include <thread></code><br /> -<code>#include <exception></code><br /> -<code>#include <vector></code><br /> -<code>#include <sstream></code><br /> -<code>#include <functional></code><br /> -</div> -<p><a href="../../df/dac/test_8cpp_source.html">Go to the source code of this file.</a></p> -<table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> -Functions</h2></td></tr> -<tr class="memitem:aafb7f182b8bb6ba92354dde1658d86a4"><td class="memItemLeft" align="right" valign="top">static vector< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a> (const string &str, char sep)</td></tr> -<tr class="separator:aafb7f182b8bb6ba92354dde1658d86a4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a64a6014565bb3e03294ec4a952d5add0"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a> ()</td></tr> -<tr class="separator:a64a6014565bb3e03294ec4a952d5add0"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa9b3c43c212b49edee82ac30a11aa255"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a> ()</td></tr> -<tr class="separator:aa9b3c43c212b49edee82ac30a11aa255"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6d3cb4886e7afd45bd56b49800da932d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#a6d3cb4886e7afd45bd56b49800da932d">onRep</a> (struct json_object *reply_contents)</td></tr> -<tr class="separator:a6d3cb4886e7afd45bd56b49800da932d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6a2874c419fe5936fcccadc7e6cf268e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#a6a2874c419fe5936fcccadc7e6cf268e">onEv</a> (const string &<a class="el" href="../../df/d7d/structevent.html">event</a>, struct json_object *event_contents)</td></tr> -<tr class="separator:a6a2874c419fe5936fcccadc7e6cf268e"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr> -<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2"> </td></tr> -</table><table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> -Variables</h2></td></tr> -<tr class="memitem:a529acbd1fed9d98a587edfa62309fa8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a></td></tr> -<tr class="separator:a529acbd1fed9d98a587edfa62309fa8d"><td class="memSeparator" colspan="2"> </td></tr> -</table> -<h2 class="groupheader">Function Documentation</h2> -<a id="aa9b3c43c212b49edee82ac30a11aa255"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aa9b3c43c212b49edee82ac30a11aa255">◆ </a></span>call_test()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static void call_test </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00051">51</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">string</span> command;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  cout << <span class="stringliteral">"input verb and argments"</span> << endl;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">/* read the buffer */</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">for</span>(;;){</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">char</span> line[1023];</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  cin.getline(line, <span class="keyword">sizeof</span>(line));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  command = line;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span>(command.empty()){</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  vector<string> v_command = <a class="code" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a>(command, <span class="charliteral">' '</span>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">/*for(auto itr = v_command.begin(); itr != v_command.end(); ++itr)</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> {</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> cout << *itr <<endl;</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> }*/</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">size_t</span> num = v_command.size();</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">if</span>(num % 2 == 0){</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  cout << <span class="stringliteral">"If command contains args, please input <key,value> in argument part"</span> << endl;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">/* create json object */</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">struct </span>json_object* j_obj = json_object_new_object();</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 1;i < (v_command.size()) ;++i){</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">struct </span>json_object* val = json_object_new_string(v_command[i+1].c_str());</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  json_object_object_add(j_obj, v_command[i].c_str(), val);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  ++i;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">/* call verb via LibHomeScreen */</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>-><a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(v_command[0], j_obj);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">/* free vector */</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  vector<string>().swap(v_command);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  string().swap(command);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> }</div><div class="ttc" id="test_8cpp_html_aafb7f182b8bb6ba92354dde1658d86a4"><div class="ttname"><a href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a></div><div class="ttdeci">static vector< string > split(const string &str, char sep)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00105">test.cpp:105</a></div></div> -<div class="ttc" id="test_8cpp_html_a529acbd1fed9d98a587edfa62309fa8d"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a></div><div class="ttdeci">LibHomeScreen * hs</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00033">test.cpp:33</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a527b49dcfe581be6275d0eb2236ba37f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">LibHomeScreen::call</a></div><div class="ttdeci">int call(const std::string &verb, struct json_object *arg)</div></div> -</div><!-- fragment --> -</div> -</div> -<a id="a3c04138a5bfe5d72780bb7e82a18e627"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a3c04138a5bfe5d72780bb7e82a18e627">◆ </a></span>main()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">int main </td> - <td>(</td> - <td class="paramtype">int </td> - <td class="paramname"><em>argc</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">char ** </td> - <td class="paramname"><em>argv</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00117">117</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">int</span> ret;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">if</span>(argc == 1)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  printf(<span class="stringliteral">"Please input port num in first argument, and token in second argument"</span>);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a>();</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">if</span>(argc == 2)</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">string</span> av(argv[1]);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span>( (av == <span class="stringliteral">"-h"</span>) || (av == <span class="stringliteral">"--help"</span>))</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a>();</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordtype">string</span> port_string(argv[1]);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">string</span> token(argv[2]);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">long</span> port = strtol(port_string.c_str(),&endptr,10);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span>( (port > 20000) || (port < 0) )</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  {</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  printf(<span class="stringliteral">"input under 20000(temporary number)"</span>);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  printf(<span class="stringliteral">"not number"</span>);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  cout << <span class="stringliteral">"Call test for LibHomeScreen"</span> << endl;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a> = <span class="keyword">new</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a>();</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>-><a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">init</a>(port, token);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// hs->registerCallback(&onEv, &onRep);</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">//</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="comment">// hs->subscribe(event_list[0]); // tap_shortcut event subscribe</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="comment">// hs->subscribe(event_list[1]);</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *application_name = json_object_get_string(</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"application_name"</span>));</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  cout << <span class="stringliteral">"set_event_handler Event_TapShortcut application_name = "</span> << application_name << endl;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  });</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *display_message = json_object_get_string(</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"display_message"</span>));</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  cout << <span class="stringliteral">"set_event_handler Event_OnScreenMessage display_message = "</span> << display_message << endl;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  });</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *reply_message = json_object_get_string(</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"reply_message"</span>));</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  cout << <span class="stringliteral">"set_event_handler Event_OnScreenReply reply_message = "</span> << reply_message << endl;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  });</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">if</span> (ret < 0) {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  printf(<span class="stringliteral">"failed to create event loop"</span>);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a>();</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> }</div><div class="ttc" id="test_8cpp_html_a64a6014565bb3e03294ec4a952d5add0"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a></div><div class="ttdeci">static void usage()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00035">test.cpp:35</a></div></div> -<div class="ttc" id="test_8cpp_html_a529acbd1fed9d98a587edfa62309fa8d"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a></div><div class="ttdeci">LibHomeScreen * hs</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00033">test.cpp:33</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00046">libhomescreen.hpp:46</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00047">libhomescreen.hpp:47</a></div></div> -<div class="ttc" id="test_8cpp_html_aa9b3c43c212b49edee82ac30a11aa255"><div class="ttname"><a href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a></div><div class="ttdeci">static void call_test()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00051">test.cpp:51</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a6a57b573cc767725762ba9beab032220"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">LibHomeScreen::init</a></div><div class="ttdeci">int init(const int port, const std::string &token)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00116">libhomescreen.cpp:116</a></div></div> -<div class="ttc" id="class_lib_home_screen_html"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00032">libhomescreen.hpp:32</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_ab1b0e08bf35415de9064afed899e9f85"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">LibHomeScreen::set_event_handler</a></div><div class="ttdeci">void set_event_handler(enum EventType et, handler_func f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00293">libhomescreen.cpp:293</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00045">libhomescreen.hpp:45</a></div></div> -</div><!-- fragment --> -</div> -</div> -<a id="a6a2874c419fe5936fcccadc7e6cf268e"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a6a2874c419fe5936fcccadc7e6cf268e">◆ </a></span>onEv()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static void onEv </td> - <td>(</td> - <td class="paramtype">const string & </td> - <td class="paramname"><em>event</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">struct json_object * </td> - <td class="paramname"><em>event_contents</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00098">98</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* str = json_object_to_json_string(event_contents);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  cout << <span class="stringliteral">"test.cpp [CB onEvent]: event: "</span> << <span class="keyword">event</span>.c_str() << <span class="stringliteral">" contents: "</span> << str << endl;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">//json_object_put(event_contents); do not release!!!</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div></div><!-- fragment --> -</div> -</div> -<a id="a6d3cb4886e7afd45bd56b49800da932d"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a6d3cb4886e7afd45bd56b49800da932d">◆ </a></span>onRep()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static void onRep </td> - <td>(</td> - <td class="paramtype">struct json_object * </td> - <td class="paramname"><em>reply_contents</em></td><td>)</td> - <td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00091">91</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* str = json_object_to_json_string(reply_contents);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  cout << <span class="stringliteral">"test.cpp [CB onRep]: "</span> << str << endl;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">//json_object_put(reply_contents); do not release!!!</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div></div><!-- fragment --> -</div> -</div> -<a id="aafb7f182b8bb6ba92354dde1658d86a4"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aafb7f182b8bb6ba92354dde1658d86a4">◆ </a></span>split()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static vector< string > split </td> - <td>(</td> - <td class="paramtype">const string & </td> - <td class="paramname"><em>str</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">char </td> - <td class="paramname"><em>sep</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00105">105</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  vector<string> v;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  stringstream ss(str);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">string</span> buffer;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">while</span>( getline(ss, buffer, sep) ) {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span>(!buffer.empty())</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  v.push_back(buffer);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> v;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> }</div></div><!-- fragment --> -</div> -</div> -<a id="a64a6014565bb3e03294ec4a952d5add0"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a64a6014565bb3e03294ec4a952d5add0">◆ </a></span>usage()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">static void usage </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">static</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00035">35</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> -<div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  cout << <span class="stringliteral">"verb "</span><< <span class="stringliteral">"key:arg"</span> << endl;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  cout << <span class="stringliteral">"example:"</span> << endl;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  cout << <span class="stringliteral">"ping"</span> << endl;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  cout << <span class="stringliteral">"------- -------- --- "</span> << endl;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  cout << <span class="stringliteral">" verb key value"</span> << endl;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  cout << <span class="stringliteral">"verb list:"</span> << endl;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">for</span>(<span class="keyword">auto</span> itr = <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a>.begin(); itr != <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a>.end(); ++itr)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  cout << <span class="stringliteral">" "</span> << *itr << endl;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// Todo output api list</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  exit(0);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div><div class="ttc" id="class_lib_home_screen_html_a5593ff5ac78f6495ccb649904cf0ab08"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a></div><div class="ttdeci">static const std::vector< std::string > api_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00050">libhomescreen.hpp:50</a></div></div> -</div><!-- fragment --> -</div> -</div> -<h2 class="groupheader">Variable Documentation</h2> -<a id="a529acbd1fed9d98a587edfa62309fa8d"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a529acbd1fed9d98a587edfa62309fa8d">◆ </a></span>hs</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a>* hs</td> - </tr> - </table> -</div><div class="memdoc"> - -<p class="definition">Definition at line <a class="el" href="../../df/dac/test_8cpp_source.html#l00033">33</a> of file <a class="el" href="../../df/dac/test_8cpp_source.html">test.cpp</a>.</p> - -</div> -</div> -</div><!-- contents --> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 -</small></address> -</body> -</html> diff --git a/doc/api-ref/html/df/dac/test_8cpp_source.html b/doc/api-ref/html/df/dac/test_8cpp_source.html deleted file mode 100644 index 2a5c650..0000000 --- a/doc/api-ref/html/df/dac/test_8cpp_source.html +++ /dev/null @@ -1,95 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.13"/> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -<title>HomeScreenBinding: libhomescreen/test.cpp Source File</title> -<link href="../../tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../jquery.js"></script> -<script type="text/javascript" src="../../dynsections.js"></script> -<link href="../../search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="../../search/searchdata.js"></script> -<script type="text/javascript" src="../../search/search.js"></script> -<link href="../../doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">HomeScreenBinding - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.13 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); -</script> -<script type="text/javascript" src="../../menudata.js"></script> -<script type="text/javascript" src="../../menu.js"></script> -<script type="text/javascript"> -$(function() { - initMenu('../../',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div id="nav-path" class="navpath"> - <ul> -<li class="navelem"><a class="el" href="../../dir_65f76d62445e9e84c0450b12bf77c3bc.html">libhomescreen</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="headertitle"> -<div class="title">test.cpp</div> </div> -</div><!--header--> -<div class="contents"> -<a href="../../df/dac/test_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="../../df/d43/libhomescreen_8hpp.html">libhomescreen.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <glib-2.0/glib.h></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <fcntl.h></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <sys/types.h></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <sys/stat.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <thread></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <exception></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <sstream></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">using namespace </span><a class="code" href="../../d8/dcc/namespacestd.html">std</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">static</span> vector<string> <a class="code" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& str, <span class="keywordtype">char</span> sep);</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d"> 33</a></span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a>* <a class="code" href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0"> 35</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a>()</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  cout << <span class="stringliteral">"verb "</span><< <span class="stringliteral">"key:arg"</span> << endl;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  cout << <span class="stringliteral">"example:"</span> << endl;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  cout << <span class="stringliteral">"ping"</span> << endl;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  cout << <span class="stringliteral">"------- -------- --- "</span> << endl;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  cout << <span class="stringliteral">" verb key value"</span> << endl;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  cout << <span class="stringliteral">"verb list:"</span> << endl;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">for</span>(<span class="keyword">auto</span> itr = <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a>.begin(); itr != <a class="code" href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a>.end(); ++itr)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  cout << <span class="stringliteral">" "</span> << *itr << endl;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// Todo output api list</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  exit(0);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255"> 51</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a>()</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">string</span> command;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  cout << <span class="stringliteral">"input verb and argments"</span> << endl;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">/* read the buffer */</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">for</span>(;;){</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">char</span> line[1023];</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  cin.getline(line, <span class="keyword">sizeof</span>(line));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  command = line;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span>(command.empty()){</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  vector<string> v_command = <a class="code" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a>(command, <span class="charliteral">' '</span>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">/*for(auto itr = v_command.begin(); itr != v_command.end(); ++itr)</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> {</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> cout << *itr <<endl;</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> }*/</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">size_t</span> num = v_command.size();</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">if</span>(num % 2 == 0){</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  cout << <span class="stringliteral">"If command contains args, please input <key,value> in argument part"</span> << endl;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">/* create json object */</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">struct </span>json_object* j_obj = json_object_new_object();</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 1;i < (v_command.size()) ;++i){</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">struct </span>json_object* val = json_object_new_string(v_command[i+1].c_str());</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  json_object_object_add(j_obj, v_command[i].c_str(), val);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  ++i;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">/* call verb via LibHomeScreen */</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  hs-><a class="code" href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">call</a>(v_command[0], j_obj);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">/* free vector */</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  vector<string>().swap(v_command);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  string().swap(command);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#a6d3cb4886e7afd45bd56b49800da932d"> 91</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../df/dac/test_8cpp.html#a6d3cb4886e7afd45bd56b49800da932d">onRep</a>(<span class="keyword">struct</span> json_object* reply_contents)</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* str = json_object_to_json_string(reply_contents);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  cout << <span class="stringliteral">"test.cpp [CB onRep]: "</span> << str << endl;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">//json_object_put(reply_contents); do not release!!!</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#a6a2874c419fe5936fcccadc7e6cf268e"> 98</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../df/dac/test_8cpp.html#a6a2874c419fe5936fcccadc7e6cf268e">onEv</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& <a class="code" href="../../df/d7d/structevent.html">event</a>, <span class="keyword">struct</span> json_object* event_contents)</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* str = json_object_to_json_string(event_contents);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  cout << <span class="stringliteral">"test.cpp [CB onEvent]: event: "</span> << <span class="keyword">event</span>.c_str() << <span class="stringliteral">" contents: "</span> << str << endl;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">//json_object_put(event_contents); do not release!!!</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4"> 105</a></span> <span class="keyword">static</span> vector<string> <a class="code" href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& str, <span class="keywordtype">char</span> sep)</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  vector<string> v;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  stringstream ss(str);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">string</span> buffer;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">while</span>( getline(ss, buffer, sep) ) {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span>(!buffer.empty())</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  v.push_back(buffer);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> v;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="../../df/dac/test_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627"> 117</a></span> <span class="keywordtype">int</span> <a class="code" href="../../df/dac/test_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">int</span> ret;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">if</span>(argc == 1)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  printf(<span class="stringliteral">"Please input port num in first argument, and token in second argument"</span>);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a>();</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">if</span>(argc == 2)</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">string</span> av(argv[1]);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span>( (av == <span class="stringliteral">"-h"</span>) || (av == <span class="stringliteral">"--help"</span>))</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a>();</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordtype">string</span> port_string(argv[1]);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">string</span> token(argv[2]);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">char</span>* endptr;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">long</span> port = strtol(port_string.c_str(),&endptr,10);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">/* error check of range */</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span>( (port > 20000) || (port < 0) )</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  {</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  printf(<span class="stringliteral">"input under 20000(temporary number)"</span>);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">if</span>(*endptr != <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  printf(<span class="stringliteral">"not number"</span>);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  cout << <span class="stringliteral">"Call test for LibHomeScreen"</span> << endl;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  hs = <span class="keyword">new</span> <a class="code" href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a>();</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  hs-><a class="code" href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">init</a>(port, token);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// hs->registerCallback(&onEv, &onRep);</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">//</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="comment">// hs->subscribe(event_list[0]); // tap_shortcut event subscribe</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="comment">// hs->subscribe(event_list[1]);</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  hs-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *application_name = json_object_get_string(</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"application_name"</span>));</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  cout << <span class="stringliteral">"set_event_handler Event_TapShortcut application_name = "</span> << application_name << endl;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  });</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  hs-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *display_message = json_object_get_string(</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"display_message"</span>));</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  cout << <span class="stringliteral">"set_event_handler Event_OnScreenMessage display_message = "</span> << display_message << endl;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  });</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  hs-><a class="code" href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">set_event_handler</a>(<a class="code" href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a>, [](json_object *<span class="keywordtype">object</span>){</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *reply_message = json_object_get_string(</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  json_object_object_get(<span class="keywordtype">object</span>, <span class="stringliteral">"reply_message"</span>));</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  cout << <span class="stringliteral">"set_event_handler Event_OnScreenReply reply_message = "</span> << reply_message << endl;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  });</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">if</span> (ret < 0) {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  printf(<span class="stringliteral">"failed to create event loop"</span>);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a>();</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> }</div><div class="ttc" id="test_8cpp_html_a64a6014565bb3e03294ec4a952d5add0"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a64a6014565bb3e03294ec4a952d5add0">usage</a></div><div class="ttdeci">static void usage()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00035">test.cpp:35</a></div></div> -<div class="ttc" id="test_8cpp_html_aafb7f182b8bb6ba92354dde1658d86a4"><div class="ttname"><a href="../../df/dac/test_8cpp.html#aafb7f182b8bb6ba92354dde1658d86a4">split</a></div><div class="ttdeci">static vector< string > split(const string &str, char sep)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00105">test.cpp:105</a></div></div> -<div class="ttc" id="structevent_html"><div class="ttname"><a href="../../df/d7d/structevent.html">event</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1e/homescreen_8c_source.html#l00035">homescreen.c:35</a></div></div> -<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="../../d8/dcc/namespacestd.html">std</a></div></div> -<div class="ttc" id="test_8cpp_html_a529acbd1fed9d98a587edfa62309fa8d"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a529acbd1fed9d98a587edfa62309fa8d">hs</a></div><div class="ttdeci">LibHomeScreen * hs</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00033">test.cpp:33</a></div></div> -<div class="ttc" id="libhomescreen_8hpp_html"><div class="ttname"><a href="../../df/d43/libhomescreen_8hpp.html">libhomescreen.hpp</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d">LibHomeScreen::Event_OnScreenMessage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00046">libhomescreen.hpp:46</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154acae91db4efc2394fd701f581d277a3fd">LibHomeScreen::Event_OnScreenReply</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00047">libhomescreen.hpp:47</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a527b49dcfe581be6275d0eb2236ba37f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a527b49dcfe581be6275d0eb2236ba37f">LibHomeScreen::call</a></div><div class="ttdeci">int call(const std::string &verb, struct json_object *arg)</div></div> -<div class="ttc" id="test_8cpp_html_a6a2874c419fe5936fcccadc7e6cf268e"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a6a2874c419fe5936fcccadc7e6cf268e">onEv</a></div><div class="ttdeci">static void onEv(const string &event, struct json_object *event_contents)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00098">test.cpp:98</a></div></div> -<div class="ttc" id="test_8cpp_html_a3c04138a5bfe5d72780bb7e82a18e627"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a></div><div class="ttdeci">int main(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00117">test.cpp:117</a></div></div> -<div class="ttc" id="test_8cpp_html_aa9b3c43c212b49edee82ac30a11aa255"><div class="ttname"><a href="../../df/dac/test_8cpp.html#aa9b3c43c212b49edee82ac30a11aa255">call_test</a></div><div class="ttdeci">static void call_test()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00051">test.cpp:51</a></div></div> -<div class="ttc" id="test_8cpp_html_a6d3cb4886e7afd45bd56b49800da932d"><div class="ttname"><a href="../../df/dac/test_8cpp.html#a6d3cb4886e7afd45bd56b49800da932d">onRep</a></div><div class="ttdeci">static void onRep(struct json_object *reply_contents)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/dac/test_8cpp_source.html#l00091">test.cpp:91</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a6a57b573cc767725762ba9beab032220"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a6a57b573cc767725762ba9beab032220">LibHomeScreen::init</a></div><div class="ttdeci">int init(const int port, const std::string &token)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00116">libhomescreen.cpp:116</a></div></div> -<div class="ttc" id="class_lib_home_screen_html"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html">LibHomeScreen</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00032">libhomescreen.hpp:32</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a5593ff5ac78f6495ccb649904cf0ab08"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a5593ff5ac78f6495ccb649904cf0ab08">LibHomeScreen::api_list</a></div><div class="ttdeci">static const std::vector< std::string > api_list</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00050">libhomescreen.hpp:50</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_ab1b0e08bf35415de9064afed899e9f85"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#ab1b0e08bf35415de9064afed899e9f85">LibHomeScreen::set_event_handler</a></div><div class="ttdeci">void set_event_handler(enum EventType et, handler_func f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d8a/libhomescreen_8cpp_source.html#l00293">libhomescreen.cpp:293</a></div></div> -<div class="ttc" id="class_lib_home_screen_html_a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f"><div class="ttname"><a href="../../de/dd0/class_lib_home_screen.html#a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f">LibHomeScreen::Event_TapShortcut</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d43/libhomescreen_8hpp_source.html#l00045">libhomescreen.hpp:45</a></div></div> -</div><!-- fragment --></div><!-- contents --> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="../../doxygen.png" alt="doxygen"/> -</a> 1.8.13 -</small></address> -</body> -</html> |