From 599de8d3f35cb0fe56c7e27591862d61944b456b Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 23 Oct 2017 14:06:12 +0900 Subject: Add a new OnScreenReply api to agl-service-homescreen Add a new event named OnScreenReply. Applications can use this event to reply to the homescreen. Also update the documentation for this event. [Patch Sets 8,9] Update ApplicationGuide.md. For details: Use master source build agl-service-homescreen-2017. Change agl version to EE. Add libhomescreen sample code path. [Patch Sets 10] Delete tailing space. BUG-AGL: SPEC-985 Change-Id: Iea0c321731fa62cd94fc08fc5e303c20847fd525 Signed-off-by: zheng_wenlong --- doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html | 204 ++---------------------- 1 file changed, 16 insertions(+), 188 deletions(-) (limited to 'doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html') diff --git a/doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html b/doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html index 0c33842..1aec416 100644 --- a/doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html +++ b/doc/api-ref/html/d0/d8a/libhomescreen_8cpp.html @@ -5,7 +5,7 @@ -HomeScreenBinding: libhomescreen.cpp File Reference +HomeScreenBinding: libhomescreen/libhomescreen.cpp File Reference @@ -63,7 +63,6 @@ $(function() {
@@ -83,22 +82,12 @@ $(function() { #include <cstdlib>
#include <cstring>
#include <libhomescreen.hpp>
+#include "hmi-debug.h"

Go to the source code of this file.

- - - - - -

-Macros

#define ELOG(args, ...)   _ELOG(__FUNCTION__,__LINE__,args,##__VA_ARGS__)
 
#define DLOG(args, ...)   _DLOG(__FUNCTION__,__LINE__,args,##__VA_ARGS__)
 
- - - - @@ -117,168 +106,7 @@ Variables

Functions

static void _DLOG (const char *func, const int line, const char *log,...)
 
static void _ELOG (const char *func, const int line, const char *log,...)
 
static bool has_verb (const string &verb)
 
static void _on_hangup_static (void *closure, struct afb_wsj1 *wsj)
static const char API [] = "homescreen"
 
-

Macro Definition Documentation

- -

◆ DLOG

- -
-
- - - - - - - - - - - - - - - - - - -
#define DLOG( args,
 ... 
)   _DLOG(__FUNCTION__,__LINE__,args,##__VA_ARGS__)
-
- -

Definition at line 33 of file libhomescreen.cpp.

- -
-
- -

◆ ELOG

- -
-
- - - - - - - - - - - - - - - - - - -
#define ELOG( args,
 ... 
)   _ELOG(__FUNCTION__,__LINE__,args,##__VA_ARGS__)
-
- -

Definition at line 32 of file libhomescreen.cpp.

- -
-

Function Documentation

- -

◆ _DLOG()

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static void _DLOG (const char * func,
const int line,
const char * log,
 ... 
)
-
-static
-
- -

Definition at line 545 of file libhomescreen.cpp.

-
546 {
547  char *message;
548  va_list args;
549  va_start(args, log);
550  if (log == NULL || vasprintf(&message, log, args) < 0)
551  message = NULL;
552  cout << "[libhomescreen DEBUG]" << func << "(" << line << "):" << message << endl;
553  va_end(args);
554  free(message);
555 }
-
-
- -

◆ _ELOG()

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static void _ELOG (const char * func,
const int line,
const char * log,
 ... 
)
-
-static
-
- -

Definition at line 533 of file libhomescreen.cpp.

-
534 {
535  char *message;
536  va_list args;
537  va_start(args, log);
538  if (log == NULL || vasprintf(&message, log, args) < 0)
539  message = NULL;
540  cout << "[libhomescreen ERROR]" << func << "(" << line << "):" << message << endl;
541  va_end(args);
542  free(message);
543 }
-
-

◆ _on_call_static()

@@ -325,8 +153,8 @@ Variables
-

Definition at line 66 of file libhomescreen.cpp.

-
67 {
68  /* LibHomeScreen is not called from other process */
69 }
+

Definition at line 64 of file libhomescreen.cpp.

+
65 {
66  /* LibHomeScreen is not called from other process */
67 }
@@ -369,8 +197,8 @@ Variables
-

Definition at line 71 of file libhomescreen.cpp.

-
72 {
73  static_cast<LibHomeScreen*>(closure)->on_event(NULL,event,msg);
74 }
+

Definition at line 69 of file libhomescreen.cpp.

+
70 {
71  static_cast<LibHomeScreen*>(closure)->on_event(NULL,event,msg);
72 }
@@ -410,8 +238,8 @@ Variables

websocket

-

Definition at line 61 of file libhomescreen.cpp.

-
62 {
63  static_cast<LibHomeScreen*>(closure)->on_hangup(NULL,wsj);
64 }
+

Definition at line 59 of file libhomescreen.cpp.

+
60 {
61  static_cast<LibHomeScreen*>(closure)->on_hangup(NULL,wsj);
62 }
@@ -449,8 +277,8 @@ Variables
-

Definition at line 76 of file libhomescreen.cpp.

-
77 {
78  static_cast<LibHomeScreen*>(closure)->on_reply(NULL,msg);
79 }
+

Definition at line 74 of file libhomescreen.cpp.

+
75 {
76  static_cast<LibHomeScreen*>(closure)->on_reply(NULL,msg);
77 }
@@ -478,8 +306,8 @@ Variables
-

Definition at line 204 of file libhomescreen.cpp.

-
205 {
206  struct sd_event* loop = (struct sd_event*)(args);
207  DLOG("start eventloop");
208  for(;;)
209  sd_event_run(loop, 30000000);
210 }
#define DLOG(args,...)
+

Definition at line 201 of file libhomescreen.cpp.

+
202 {
203  struct sd_event* loop = (struct sd_event*)(args);
204  HMI_DEBUG("libhomescreen","start eventloop");
205  for(;;)
206  sd_event_run(loop, 30000000);
207 }
#define HMI_DEBUG(prefix, args,...)
Definition: hmi-debug.h:22
@@ -507,9 +335,9 @@ Variables
-

Definition at line 557 of file libhomescreen.cpp.

-
558 {
559  DLOG("verb is %s", verb.c_str());
560  if(find(LibHomeScreen::api_list.begin(), LibHomeScreen::api_list.end(), verb) != LibHomeScreen::api_list.end())
561  return true;
562  else
563  return false;
564 }
#define DLOG(args,...)
-
static const std::vector< std::string > api_list
+

Definition at line 518 of file libhomescreen.cpp.

+
519 {
520  HMI_DEBUG("libhomescreen","verb is %s", verb.c_str());
521  if(find(LibHomeScreen::api_list.begin(), LibHomeScreen::api_list.end(), verb) != LibHomeScreen::api_list.end())
522  return true;
523  else
524  return false;
525 }
#define HMI_DEBUG(prefix, args,...)
Definition: hmi-debug.h:22
+
static const std::vector< std::string > api_list
@@ -534,7 +362,7 @@ Variables
-

Definition at line 40 of file libhomescreen.cpp.

+

Definition at line 36 of file libhomescreen.cpp.

-- cgit 1.2.3-korg