summaryrefslogtreecommitdiffstats
path: root/include/private/android_logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/android_logger.h')
-rw-r--r--include/private/android_logger.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/private/android_logger.h b/include/private/android_logger.h
index c3ea1ed7b..52ddade65 100644
--- a/include/private/android_logger.h
+++ b/include/private/android_logger.h
@@ -25,10 +25,14 @@
#include <sys/types.h>
#include <log/log.h>
-#include <log/log_read.h>
+#include <log/logger.h>
#define LOGGER_MAGIC 'l'
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* Header Structure to pstore */
typedef struct __attribute__((__packed__)) {
uint8_t magic;
@@ -84,6 +88,7 @@ typedef struct __attribute__((__packed__)) {
* in C++.
* http://stackoverflow.com/questions/4412749/are-flexible-array-members-valid-in-c
*/
+
typedef struct __attribute__((__packed__)) {
int8_t type; // EVENT_TYPE_STRING;
int32_t length; // Little Endian Order
@@ -98,10 +103,6 @@ typedef struct __attribute__((__packed__)) {
char data[];
} android_log_event_string_t;
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
#define ANDROID_LOG_PMSG_FILE_MAX_SEQUENCE 256 /* 1MB file */
#define ANDROID_LOG_PMSG_FILE_SEQUENCE 1000