summaryrefslogtreecommitdiff
path: root/init/firmware_handler.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-22 01:04:47 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-22 01:04:47 +0000
commit07da083e6bf36dd4be64a85b3461623d2488476d (patch)
treefc21546830650c084339a9892ea0aee2569408f7 /init/firmware_handler.h
parent79c5fee02e1430bec2f75956297f5b631e70b407 (diff)
parentfb16db72d227d373b0ef8cc04c7efb6091f6cc68 (diff)
Snap for 6852218 from fb16db72d227d373b0ef8cc04c7efb6091f6cc68 to sc-release
Change-Id: Iae251c05f967d42661cc2d19a0fac485c7972cf4
Diffstat (limited to 'init/firmware_handler.h')
-rw-r--r--init/firmware_handler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/firmware_handler.h b/init/firmware_handler.h
index b4138f1277..8b758aee7a 100644
--- a/init/firmware_handler.h
+++ b/init/firmware_handler.h
@@ -18,6 +18,7 @@
#include <pwd.h>
+#include <functional>
#include <string>
#include <vector>
@@ -52,6 +53,7 @@ class FirmwareHandler : public UeventHandler {
const Uevent& uevent) const;
std::string GetFirmwarePath(const Uevent& uevent) const;
void ProcessFirmwareEvent(const std::string& root, const std::string& firmware) const;
+ bool ForEachFirmwareDirectory(std::function<bool(const std::string&)> handler) const;
std::vector<std::string> firmware_directories_;
std::vector<ExternalFirmwareHandler> external_firmware_handlers_;