libgpiod 2.1.2
misc.hpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/* SPDX-FileCopyrightText: 2021 Bartosz Golaszewski <brgl@bgdev.pl> */
3
8#ifndef __LIBGPIOD_CXX_MISC_HPP__
9#define __LIBGPIOD_CXX_MISC_HPP__
10
11#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12#error "Only gpiod.hpp can be included directly."
13#endif
14
15#include <string>
16
17namespace gpiod {
18
30bool is_gpiochip_device(const ::std::filesystem::path& path);
31
36const ::std::string& api_version();
37
42} /* namespace gpiod */
43
44#endif /* __LIBGPIOD_CXX_MISC_HPP__ */
const ::std::string & api_version()
Get the human readable version string for libgpiod API.
bool is_gpiochip_device(const ::std::filesystem::path &path)
Check if the file pointed to by path is a GPIO chip character device.