Re: [libgpiod][PATCH 6/6] core: hide the GPIOD_API symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 09, 2021 at 02:26:39PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> 
> 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





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux