Loading...
Searching...
No Matches
misc.hpp
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* SPDX-FileCopyrightText: 2021 Bartosz Golaszewski <brgl@bgdev.pl> */
#ifndef __LIBGPIOD_CXX_MISC_HPP__
#define __LIBGPIOD_CXX_MISC_HPP__
#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
#error "Only gpiod.hpp can be included directly."
#endif
#include <string>
namespace gpiod {
bool is_gpiochip_device(const ::std::filesystem::path& path);
const ::std::string& api_version();
} /* namespace gpiod */
#endif /* __LIBGPIOD_CXX_MISC_HPP__ */
gpiod
Definition chip-info.hpp:18
gpiod::api_version
const ::std::string & api_version()
Get the human readable version string for libgpiod API.
gpiod::is_gpiochip_device
bool is_gpiochip_device(const ::std::filesystem::path &path)
Check if the file pointed to by path is a GPIO chip character device.