From 31ff5ce755d00cf12ea2ffc96c33ed9acd36358f Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Wed, 21 Nov 2018 16:32:29 +0800 Subject: update doc add new sequence and update doxygen files. Change-Id: I6737939eb2628577d58b2d1d65086e46e7cb14a4 Signed-off-by: wang_zhiqiang --- doc/api-ref/html/d2/d66/include_2hmi-debug_8h.html | 490 +++++++++++++++++++++ .../html/d2/d66/include_2hmi-debug_8h_source.html | 109 +++++ 2 files changed, 599 insertions(+) create mode 100644 doc/api-ref/html/d2/d66/include_2hmi-debug_8h.html create mode 100644 doc/api-ref/html/d2/d66/include_2hmi-debug_8h_source.html (limited to 'doc/api-ref/html/d2/d66') diff --git a/doc/api-ref/html/d2/d66/include_2hmi-debug_8h.html b/doc/api-ref/html/d2/d66/include_2hmi-debug_8h.html new file mode 100644 index 0000000..10e01be --- /dev/null +++ b/doc/api-ref/html/d2/d66/include_2hmi-debug_8h.html @@ -0,0 +1,490 @@ + + + + + + +HomeScreenBinding: include/hmi-debug.h File Reference + + + + + + + + + + +
+
+ + + + + + +
+
HomeScreenBinding +
+
+
+ + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
hmi-debug.h File Reference
+
+
+
#include <time.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <string.h>
+#include <stdlib.h>
+
+

Go to the source code of this file.

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

+Macros

#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
 
#define HMI_ERROR(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_ERROR, __FILENAME__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)
 
#define HMI_WARNING(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_WARNING, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_NOTICE(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_NOTICE, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_INFO(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
 
#define HMI_DEBUG(prefix, args, ...)   _HMI_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __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_DEBUG, +LOG_LEVEL_NONE = 0, +
+  LOG_LEVEL_ERROR, +LOG_LEVEL_WARNING, +LOG_LEVEL_NOTICE, +LOG_LEVEL_INFO, +
+  LOG_LEVEL_DEBUG, +LOG_LEVEL_MAX = LOG_LEVEL_DEBUG +
+ }
 
+ + + +

+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

+ +
+
+ + + + +
#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
+
+ +

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

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

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

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

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

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

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

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

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

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

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

+ +
+
+

Enumeration Type Documentation

+ +
+
+ + + + +
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  +
LOG_LEVEL_NONE  +
LOG_LEVEL_ERROR  +
LOG_LEVEL_WARNING  +
LOG_LEVEL_NOTICE  +
LOG_LEVEL_INFO  +
LOG_LEVEL_DEBUG  +
LOG_LEVEL_MAX  +
+ +

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

+ +
+
+

Function Documentation

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 46 of file hmi-debug.h.

+
47 {
48  const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?LOG_LEVEL_ERROR:atoi(getenv("USE_HMI_DEBUG"));
49  if(log_level < level)
50  {
51  return;
52  }
53 
54  char *message;
55  struct timespec tp;
56  unsigned int time;
57 
58  clock_gettime(CLOCK_REALTIME, &tp);
59  time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
60 
61  va_list args;
62  va_start(args, log);
63  if (log == NULL || vasprintf(&message, log, args) < 0)
64  message = NULL;
65  fprintf(stderr, "[%10.3f] [%s %s] [%s, %s(), Line:%d] >>> %s \n", time / 1000.0, prefix, ERROR_FLAG[level], file, func, line, message);
66  va_end(args);
67  free(message);
68 }
+
static char ERROR_FLAG[6][20]
Definition: hmi-debug.h:44
+
+
+
+

Variable Documentation

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

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

+ +
+
+
+ + + + diff --git a/doc/api-ref/html/d2/d66/include_2hmi-debug_8h_source.html b/doc/api-ref/html/d2/d66/include_2hmi-debug_8h_source.html new file mode 100644 index 0000000..54a369f --- /dev/null +++ b/doc/api-ref/html/d2/d66/include_2hmi-debug_8h_source.html @@ -0,0 +1,109 @@ + + + + + + +HomeScreenBinding: include/hmi-debug.h Source File + + + + + + + + + + +
+
+ + + + + + +
+
HomeScreenBinding +
+
+
+ + + + + + +
+
+ + +
+ +
+ + +
+
+
+
hmi-debug.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __HMI_DEBUG_H__
18 #define __HMI_DEBUG_H__
19 
20 #include <time.h>
21 #include <stdio.h>
22 #include <stdarg.h>
23 #include <string.h>
24 #include <stdlib.h>
25 
26 enum LOG_LEVEL{
34 };
35 
36 #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
37 
38 #define HMI_ERROR(prefix, args,...) _HMI_LOG(LOG_LEVEL_ERROR, __FILENAME__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__)
39 #define HMI_WARNING(prefix, args,...) _HMI_LOG(LOG_LEVEL_WARNING, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
40 #define HMI_NOTICE(prefix, args,...) _HMI_LOG(LOG_LEVEL_NOTICE, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
41 #define HMI_INFO(prefix, args,...) _HMI_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
42 #define HMI_DEBUG(prefix, args,...) _HMI_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__)
43 
44 static char ERROR_FLAG[6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"};
45 
46 static void _HMI_LOG(enum LOG_LEVEL level, const char* file, const char* func, const int line, const char* prefix, const char* log, ...)
47 {
48  const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?LOG_LEVEL_ERROR:atoi(getenv("USE_HMI_DEBUG"));
49  if(log_level < level)
50  {
51  return;
52  }
53 
54  char *message;
55  struct timespec tp;
56  unsigned int time;
57 
58  clock_gettime(CLOCK_REALTIME, &tp);
59  time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
60 
61  va_list args;
62  va_start(args, log);
63  if (log == NULL || vasprintf(&message, log, args) < 0)
64  message = NULL;
65  fprintf(stderr, "[%10.3f] [%s %s] [%s, %s(), Line:%d] >>> %s \n", time / 1000.0, prefix, ERROR_FLAG[level], file, func, line, message);
66  va_end(args);
67  free(message);
68 }
69 
70 #endif //__HMI_DEBUG_H__
+
LOG_LEVEL
Definition: hmi-debug.h:26
+
static void _HMI_LOG(enum LOG_LEVEL level, const char *file, const char *func, const int line, const char *prefix, const char *log,...)
Definition: hmi-debug.h:46
+ + + + + +
static char ERROR_FLAG[6][20]
Definition: hmi-debug.h:44
+ +
+ + + + -- cgit 1.2.3-korg