1 /* 2 * SPDX-FileCopyrightText: Copyright (c) 2022-2024. 3 * All rights reserved. SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #include "gpio_presence_manager.hpp" 7 8 #include <phosphor-logging/lg2.hpp> 9 #include <sdbusplus/async/context.hpp> 10 11 using namespace gpio_presence; 12 13 auto main() -> int 14 { 15 lg2::debug("starting GPIO Presence Sensor"); 16 17 sdbusplus::async::context ctx; 18 19 gpio_presence::GPIOPresenceManager controller(ctx); 20 21 controller.setupBusName(); 22 23 controller.start(); 24 25 ctx.run(); 26 } 27