From: Bartosz Golaszewski Date: Tue, 8 May 2018 20:55:02 +0000 (+0200) Subject: bindings: cxx: export static members of gpiod::line_request X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c44b55d597492464246d11ea9c34e237a5be744e;p=qemu-gpiodev%2Flibgpiod.git bindings: cxx: export static members of gpiod::line_request The static flags definitions of gpiod::line_request are not exported. Add the missing GPIOD_API attributes. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/cxx/gpiod.hpp b/bindings/cxx/gpiod.hpp index d066ca8..fd08b17 100644 --- a/bindings/cxx/gpiod.hpp +++ b/bindings/cxx/gpiod.hpp @@ -228,11 +228,11 @@ struct line_request /**< Listen for all types of events. */ }; - static const ::std::bitset<32> FLAG_ACTIVE_LOW; + GPIOD_API static const ::std::bitset<32> FLAG_ACTIVE_LOW; /**< Set the active state to 'low' (high is the default). */ - static const ::std::bitset<32> FLAG_OPEN_SOURCE; + GPIOD_API static const ::std::bitset<32> FLAG_OPEN_SOURCE; /**< The line is an open-source port. */ - static const ::std::bitset<32> FLAG_OPEN_DRAIN; + GPIOD_API static const ::std::bitset<32> FLAG_OPEN_DRAIN; /**< The line is an open-drain port. */ ::std::string consumer;