bindings: cxx: allow to copy line_settings
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 13 Jan 2023 08:52:24 +0000 (09:52 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 18 Jan 2023 15:17:18 +0000 (16:17 +0100)
commit4febd6d5ceaf4519c2343b3a66e8f00f5cc63115
tree3eaccceac3421aa32f579ddc8e0ddf9f95dd98ef
parent4899f3c65d148b5f0e416ff41f85a07ace10d138
bindings: cxx: allow to copy line_settings

Implement the copy operator for line_settings. We have a copy() method
for line settings in C API while in C++ it's useful to copy line_settings
returned in an std::map from line_config.get_line_settings().

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/cxx/gpiodcxx/line-settings.hpp
bindings/cxx/internal.hpp
bindings/cxx/line-settings.cpp
bindings/cxx/tests/tests-line-settings.cpp