1*539b608fSJim Wright /** 2*539b608fSJim Wright * Copyright © 2021 IBM Corporation 3*539b608fSJim Wright * 4*539b608fSJim Wright * Licensed under the Apache License, Version 2.0 (the "License"); 5*539b608fSJim Wright * you may not use this file except in compliance with the License. 6*539b608fSJim Wright * You may obtain a copy of the License at 7*539b608fSJim Wright * 8*539b608fSJim Wright * http://www.apache.org/licenses/LICENSE-2.0 9*539b608fSJim Wright * 10*539b608fSJim Wright * Unless required by applicable law or agreed to in writing, software 11*539b608fSJim Wright * distributed under the License is distributed on an "AS IS" BASIS, 12*539b608fSJim Wright * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*539b608fSJim Wright * See the License for the specific language governing permissions and 14*539b608fSJim Wright * limitations under the License. 15*539b608fSJim Wright */ 16*539b608fSJim Wright 17*539b608fSJim Wright #include "power_control.hpp" 18*539b608fSJim Wright 19*539b608fSJim Wright #include <sdbusplus/bus.hpp> 20*539b608fSJim Wright #include <sdeventplus/event.hpp> 21*539b608fSJim Wright main()22*539b608fSJim Wrightint main() 23*539b608fSJim Wright { 24*539b608fSJim Wright auto bus = sdbusplus::bus::new_default(); 25*539b608fSJim Wright auto event = sdeventplus::Event::get_default(); 26*539b608fSJim Wright bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL); 27*539b608fSJim Wright 28*539b608fSJim Wright phosphor::power::sequencer::PowerControl control{bus, event}; 29*539b608fSJim Wright return event.loop(); 30*539b608fSJim Wright } 31