Re: [libgpiod][RFC] helper functions for basic use cases

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

 



On Wed, May 15, 2024 at 4:14 PM Kent Gibson <warthog618@xxxxxxxxx> wrote:
>
> On Wed, May 15, 2024 at 06:54:15AM -0700, Bartosz Golaszewski wrote:
> >
> > I think the code should go into ext/, the gpiod-ext.h header can go right next
> > to gpiod.h in include/ and the examples can be in the same examples/ directory,
> > just call them something_something_ext.c to indicate they use the simpler API.
> >
> > Does that sound right?
> >
>
> At the moment I've made the code a conditionally compiled block in
> line-request.c, so it can directly use the line-request internals.
> Pretty sure that can be changed to use the core API, but isn't pimpl within
> the library itself a tad extreme?

I have a strong preference for that code to live in a separate .so
file (and by extension - a separate compilation unit).

Bart





[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