summaryrefslogtreecommitdiffstats
path: root/logd/LogBuffer.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-06-12 11:16:16 -0700
committerMark Salyzyn <salyzyn@google.com>2014-06-13 08:06:14 -0700
commit1a240b47903c0dc3d7f23b609b6520f17f11b953 (patch)
tree62ee2f447e067464c65e9f6a4fe272037faffd67 /logd/LogBuffer.h
parent7fa1cd19638c8ada0786e03abe50b5fe9b9f4270 (diff)
downloadsystem_core-1a240b47903c0dc3d7f23b609b6520f17f11b953.tar.gz
system_core-1a240b47903c0dc3d7f23b609b6520f17f11b953.tar.bz2
system_core-1a240b47903c0dc3d7f23b609b6520f17f11b953.zip
logd: Allow apps to clear their UID-specific data
Bug: 13501501 Change-Id: Ia72e25fc19430ce63fb359cd9b3f0523d41f5aa8
Diffstat (limited to 'logd/LogBuffer.h')
-rw-r--r--logd/LogBuffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h
index b8a54b909..4b982a878 100644
--- a/logd/LogBuffer.h
+++ b/logd/LogBuffer.h
@@ -23,6 +23,8 @@
#include <sysutils/SocketClient.h>
#include <utils/List.h>
+#include <private/android_filesystem_config.h>
+
#include "LogBufferElement.h"
#include "LogTimes.h"
#include "LogStatistics.h"
@@ -55,7 +57,7 @@ public:
bool (*filter)(const LogBufferElement *element, void *arg) = NULL,
void *arg = NULL);
- void clear(log_id_t id);
+ void clear(log_id_t id, uid_t uid = AID_ROOT);
unsigned long getSize(log_id_t id);
int setSize(log_id_t id, unsigned long size);
unsigned long getSizeUsed(log_id_t id);
@@ -77,7 +79,7 @@ public:
private:
void maybePrune(log_id_t id);
- void prune(log_id_t id, unsigned long pruneRows);
+ void prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
};