summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'init/uevent_listener.cpp')
-rw-r--r--init/uevent_listener.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/init/uevent_listener.cpp b/init/uevent_listener.cpp
index 923fa8e8f..ac1d7c7ed 100644
--- a/init/uevent_listener.cpp
+++ b/init/uevent_listener.cpp
@@ -26,6 +26,9 @@
26#include <android-base/logging.h> 26#include <android-base/logging.h>
27#include <cutils/uevent.h> 27#include <cutils/uevent.h>
28 28
29namespace android {
30namespace init {
31
29static void ParseEvent(const char* msg, Uevent* uevent) { 32static void ParseEvent(const char* msg, Uevent* uevent) {
30 uevent->partition_num = -1; 33 uevent->partition_num = -1;
31 uevent->major = -1; 34 uevent->major = -1;
@@ -165,7 +168,7 @@ ListenerAction UeventListener::RegenerateUeventsForPath(const std::string& path,
165 return RegenerateUeventsForDir(d.get(), callback); 168 return RegenerateUeventsForDir(d.get(), callback);
166} 169}
167 170
168const char* kRegenerationPaths[] = {"/sys/class", "/sys/block", "/sys/devices"}; 171static const char* kRegenerationPaths[] = {"/sys/class", "/sys/block", "/sys/devices"};
169 172
170void UeventListener::RegenerateUevents(const ListenerCallback& callback) const { 173void UeventListener::RegenerateUevents(const ListenerCallback& callback) const {
171 for (const auto path : kRegenerationPaths) { 174 for (const auto path : kRegenerationPaths) {
@@ -212,3 +215,6 @@ void UeventListener::Poll(const ListenerCallback& callback,
212 } 215 }
213 } 216 }
214} 217}
218
219} // namespace init
220} // namespace android