blob: 7c21fe9cd20dc178ccf6801335b573cd226686b6 [file] [log] [blame]
Matt Spinlerfb35a322018-11-26 14:30:30 -06001#include "button_handler.hpp"
2
Matt Spinler9479b062023-04-04 11:02:39 -05003#include <sdeventplus/event.hpp>
4
George Liu94afa4b2022-06-20 13:36:43 +08005int main(void)
Matt Spinlerfb35a322018-11-26 14:30:30 -06006{
7 auto bus = sdbusplus::bus::new_default();
Matt Spinler9479b062023-04-04 11:02:39 -05008 auto event = sdeventplus::Event::get_default();
9
10 bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL);
Matt Spinlerfb35a322018-11-26 14:30:30 -060011
12 phosphor::button::Handler handler{bus};
13
Matt Spinler9479b062023-04-04 11:02:39 -050014 return event.loop();
Matt Spinlerfb35a322018-11-26 14:30:30 -060015}