1 #pragma once 2 3 #include <gpioplus/handle.hpp> 4 5 #include <memory> 6 #include <string> 7 8 namespace gpio 9 { 10 11 /** 12 * Method called to validate inputs and create a GpioHandle. 13 * 14 * @param[in] gpiochip - gpiochip id as string, e.g. "0", or "1" 15 * @param[in] line - gpio line offset as string. 16 * @return A gpioplus::HandleInterface on success nullptr on failure. 17 */ 18 std::unique_ptr<gpioplus::HandleInterface> 19 BuildGpioHandle(const std::string& gpiochip, const std::string& line); 20 21 } // namespace gpio 22