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/df/d76/hmi-debug_8h.html | 435 ++++++++++++++++++++++++++++++ 1 file changed, 435 insertions(+) create mode 100644 doc/api-ref/html/df/d76/hmi-debug_8h.html (limited to 'doc/api-ref/html/df/d76/hmi-debug_8h.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 new file mode 100644 index 0000000..3931c00 --- /dev/null +++ b/doc/api-ref/html/df/d76/hmi-debug_8h.html @@ -0,0 +1,435 @@ + + + + + + + +HomeScreenBinding: include/hmi-debug.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HomeScreenBinding +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
hmi-debug.h File Reference
+
+
+
#include <time.h>
+#include <stdio.h>
+#include <afb/afb-binding.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + +

+Macros

#define HMI_ERROR(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_ERROR, __FILE__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)
 
#define HMI_WARNING(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_WARNING, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_NOTICE(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_NOTICE, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_INFO(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_INFO, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_DEBUG(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_DEBUG, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
+ + + +

+Enumerations

enum  LOG_LEVEL {
+  LOG_LEVEL_NONE = 0, +LOG_LEVEL_ERROR, +LOG_LEVEL_WARNING, +LOG_LEVEL_NOTICE, +
+  LOG_LEVEL_INFO, +LOG_LEVEL_DEBUG, +LOG_LEVEL_MAX = LOG_LEVEL_ERROR +
+ }
 
+ + + +

+Functions

static void _HMI_LOG (enum LOG_LEVEL level, const char *file, const char *func, const int line, const char *prefix, const char *log,...)
 
+ + + +

+Variables

static char ERROR_FLAG [6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"}
 
+

Macro Definition Documentation

+ +

◆ HMI_DEBUG

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define HMI_DEBUG( prefix,
 args,
 ... 
)   _HMI_LOG(LOG_LEVEL_DEBUG, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
+
+ +

Definition at line 22 of file hmi-debug.h.

+ +
+
+ +

◆ HMI_ERROR

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define HMI_ERROR( prefix,
 args,
 ... 
)   _HMI_LOG(LOG_LEVEL_ERROR, __FILE__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)
+
+ +

Definition at line 18 of file hmi-debug.h.

+ +
+
+ +

◆ HMI_INFO

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define HMI_INFO( prefix,
 args,
 ... 
)   _HMI_LOG(LOG_LEVEL_INFO, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
+
+ +

Definition at line 21 of file hmi-debug.h.

+ +
+
+ +

◆ HMI_NOTICE

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define HMI_NOTICE( prefix,
 args,
 ... 
)   _HMI_LOG(LOG_LEVEL_NOTICE, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
+
+ +

Definition at line 20 of file hmi-debug.h.

+ +
+
+ +

◆ HMI_WARNING

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define HMI_WARNING( prefix,
 args,
 ... 
)   _HMI_LOG(LOG_LEVEL_WARNING, __FILE__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
+
+ +

Definition at line 19 of file hmi-debug.h.

+ +
+
+

Enumeration Type Documentation

+ +

◆ LOG_LEVEL

+ +
+
+ + + + +
enum LOG_LEVEL
+
+ + + + + + + + +
Enumerator
LOG_LEVEL_NONE 
LOG_LEVEL_ERROR 
LOG_LEVEL_WARNING 
LOG_LEVEL_NOTICE 
LOG_LEVEL_INFO 
LOG_LEVEL_DEBUG 
LOG_LEVEL_MAX 
+ +

Definition at line 8 of file hmi-debug.h.

+ +
+
+

Function Documentation

+ +

◆ _HMI_LOG()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
static void _HMI_LOG (enum LOG_LEVEL level,
const char * file,
const char * func,
const int line,
const char * prefix,
const char * log,
 ... 
)
+
+static
+
+ +

Definition at line 26 of file hmi-debug.h.

+
27 {
28  const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?0:atoi(getenv("USE_HMI_DEBUG"));
29  if(log_level < level)
30  {
31  return;
32  }
33 
34  char *message;
35  struct timespec tp;
36  unsigned int time;
37 
38  clock_gettime(CLOCK_REALTIME, &tp);
39  time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
40 
41  va_list args;
42  va_start(args, log);
43  if (log == NULL || vasprintf(&message, log, args) < 0)
44  message = NULL;
45  fprintf(stderr, "[%10.3f] [%s %s] [%s:%d] >>> %s \n", time / 1000.0, prefix, ERROR_FLAG[level], func, line, message);
46  va_end(args);
47  free(message);
48 }
static char ERROR_FLAG[6][20]
Definition: hmi-debug.h:24
+
+
+
+

Variable Documentation

+ +

◆ ERROR_FLAG

+ +
+
+ + + + + +
+ + + + +
char ERROR_FLAG[6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"}
+
+static
+
+ +

Definition at line 24 of file hmi-debug.h.

+ +
+
+
+ + + + -- cgit