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