diff options
Diffstat (limited to 'init/uevent_listener.cpp')
-rw-r--r-- | init/uevent_listener.cpp | 8 |
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 | ||
29 | namespace android { | ||
30 | namespace init { | ||
31 | |||
29 | static void ParseEvent(const char* msg, Uevent* uevent) { | 32 | static 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 | ||
168 | const char* kRegenerationPaths[] = {"/sys/class", "/sys/block", "/sys/devices"}; | 171 | static const char* kRegenerationPaths[] = {"/sys/class", "/sys/block", "/sys/devices"}; |
169 | 172 | ||
170 | void UeventListener::RegenerateUevents(const ListenerCallback& callback) const { | 173 | void 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 | ||