| 1 | // SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]> |
| 3 | |
| 4 | #include "internal.hpp" |
| 5 | |
| 6 | namespace gpiod { |
| 7 | |
| 8 | GPIOD_CXX_API bool is_gpiochip_device(const ::std::filesystem::path& path) |
| 9 | { |
| 10 | return ::gpiod_is_gpiochip_device(path.c_str()); |
| 11 | } |
| 12 | |
| 13 | GPIOD_CXX_API const ::std::string& api_version() |
| 14 | { |
| 15 | static const ::std::string version(::gpiod_api_version()); |
| 16 | |
| 17 | return version; |
| 18 | } |
| 19 | |
| 20 | } /* namespace gpiod */ |