Re: [libgpiod][PATCH 6/6] core: hide the GPIOD_API symbol
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2021-03-09 15:08:42
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2021-03-09 15:08:42
On Tue, Mar 09, 2021 at 02:26:39PM +0100, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <redacted> GPIOD_API is unneccesarily polluting the user-facing headers. There's no advantage to having it in public files. Let's make them internal to the library. Upcoming modifications will also make GPIOD_BIT() redundant so we'll be able to remove all macros unrelated to the main functionality from gpiod.h.
-libgpiodcxx_la_SOURCES = chip.cpp iter.cpp line.cpp line_bulk.cpp +libgpiodcxx_la_SOURCES = chip.cpp internal.h iter.cpp line.cpp line_bulk.cpp
Don't we have something like _HEADERS ? ...
+#include "internal.hpp"
I forgot C++ approximately when I tried it first time :-) But I'm confused between this and above file name. Do we have *.h and *.hpp with the same name? ...
-libgpiod_la_SOURCES = core.c helpers.c misc.c uapi/gpio.h +libgpiod_la_SOURCES = core.c helpers.c internal.h misc.c uapi/gpio.h
As above. -- With Best Regards, Andy Shevchenko