summaryrefslogtreecommitdiff
path: root/init/firmware_handler.h
diff options
context:
space:
mode:
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 b4138f127..8b758aee7 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_;