diff options
Diffstat (limited to 'init/modalias_handler.h')
-rw-r--r-- | init/modalias_handler.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/init/modalias_handler.h b/init/modalias_handler.h index e79da3275..3247c86d4 100644 --- a/init/modalias_handler.h +++ b/init/modalias_handler.h | |||
@@ -16,22 +16,23 @@ | |||
16 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
19 | #include "result.h" | ||
20 | #include "uevent.h" | ||
21 | |||
22 | #include <string> | 19 | #include <string> |
23 | #include <unordered_map> | 20 | #include <unordered_map> |
24 | #include <vector> | 21 | #include <vector> |
25 | 22 | ||
23 | #include "result.h" | ||
24 | #include "uevent.h" | ||
25 | #include "uevent_handler.h" | ||
26 | |||
26 | namespace android { | 27 | namespace android { |
27 | namespace init { | 28 | namespace init { |
28 | 29 | ||
29 | class ModaliasHandler { | 30 | class ModaliasHandler : public UeventHandler { |
30 | public: | 31 | public: |
31 | ModaliasHandler(); | 32 | ModaliasHandler(); |
32 | ~ModaliasHandler(){}; | 33 | virtual ~ModaliasHandler() = default; |
33 | 34 | ||
34 | void HandleModaliasEvent(const Uevent& uevent); | 35 | void HandleUevent(const Uevent& uevent) override; |
35 | 36 | ||
36 | private: | 37 | private: |
37 | Result<Success> InsmodWithDeps(const std::string& module_name, const std::string& args); | 38 | Result<Success> InsmodWithDeps(const std::string& module_name, const std::string& args); |