1*fb35a325SMatt Spinler #include "button_handler.hpp" 2*fb35a325SMatt Spinler 3*fb35a325SMatt Spinler int main(int argc, char* argv[]) 4*fb35a325SMatt Spinler { 5*fb35a325SMatt Spinler auto bus = sdbusplus::bus::new_default(); 6*fb35a325SMatt Spinler 7*fb35a325SMatt Spinler phosphor::button::Handler handler{bus}; 8*fb35a325SMatt Spinler 9*fb35a325SMatt Spinler while (true) 10*fb35a325SMatt Spinler { 11*fb35a325SMatt Spinler bus.process_discard(); 12*fb35a325SMatt Spinler bus.wait(); 13*fb35a325SMatt Spinler } 14*fb35a325SMatt Spinler return 0; 15*fb35a325SMatt Spinler } 16