1 #include "button_handler.hpp" 2 3 #include <sdeventplus/event.hpp> 4 5 int main(void) 6 { 7 auto bus = sdbusplus::bus::new_default(); 8 auto event = sdeventplus::Event::get_default(); 9 10 bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL); 11 12 phosphor::button::Handler handler{bus}; 13 14 return event.loop(); 15 } 16