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