summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenjie Luo2017-04-27 18:49:09 -0500
committerChenjie Luo2017-04-28 19:30:25 -0500
commitfafea32468e0d59c1ce2eb845dd07a0b4e746cf0 (patch)
tree61797e8d7955cb3f00172e5968c191901a36643c /logd/LogListener.h
parent483d2f9a59bf4a5130e0a79306f30c25f675812c (diff)
downloadplatform-system-core-fafea32468e0d59c1ce2eb845dd07a0b4e746cf0.tar.gz
platform-system-core-fafea32468e0d59c1ce2eb845dd07a0b4e746cf0.tar.xz
platform-system-core-fafea32468e0d59c1ce2eb845dd07a0b4e746cf0.zip
Modularize logd.
Separates logd body into a static library liblogd and virtualize LogBuffer::log to be in a new interface class LogBufferInterface. User could have different implementation. Bug: 37756450 Test: liblog-unit-tests, logd-unit-tests and logcat-unit-tests with (b/37791296). Change-Id: I1504ff0e992744001b5a2e9abd45692d1318a152
Diffstat (limited to 'logd/LogListener.h')
-rw-r--r--logd/LogListener.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/logd/LogListener.h b/logd/LogListener.h
index 2973b8bd3..e16c5fb62 100644
--- a/logd/LogListener.h
+++ b/logd/LogListener.h
@@ -21,11 +21,11 @@
21#include "LogReader.h" 21#include "LogReader.h"
22 22
23class LogListener : public SocketListener { 23class LogListener : public SocketListener {
24 LogBuffer* logbuf; 24 LogBufferInterface* logbuf;
25 LogReader* reader; 25 LogReader* reader;
26 26
27 public: 27 public:
28 LogListener(LogBuffer* buf, LogReader* reader); 28 LogListener(LogBufferInterface* buf, LogReader* reader /* nullable */);
29 29
30 protected: 30 protected:
31 virtual bool onDataAvailable(SocketClient* cli); 31 virtual bool onDataAvailable(SocketClient* cli);