Matt Spinler | fb35a32 | 2018-11-26 14:30:30 -0600 | [diff] [blame] | 1 | #include "button_handler.hpp" |
2 | |||||
George Liu | 94afa4b | 2022-06-20 13:36:43 +0800 | [diff] [blame] | 3 | int main(void) |
Matt Spinler | fb35a32 | 2018-11-26 14:30:30 -0600 | [diff] [blame] | 4 | { |
5 | auto bus = sdbusplus::bus::new_default(); | ||||
6 | |||||
7 | phosphor::button::Handler handler{bus}; | ||||
8 | |||||
9 | while (true) | ||||
10 | { | ||||
11 | bus.process_discard(); | ||||
12 | bus.wait(); | ||||
13 | } | ||||
14 | return 0; | ||||
15 | } |