Re: [PATCH 4/9] plugins/sixaxis: Move device discovery to shared header

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

 



On Tue, 2017-09-05 at 11:13 +0200, Szymon Janc wrote:
> Hi Bastien,
> 
> On 5 September 2017 at 11:03, Bastien Nocera <hadess@xxxxxxxxxx>
> wrote:
> > On Mon, 2017-09-04 at 20:12 +0200, Bastien Nocera wrote:
> > > <snip>
> > > +
> > > +inline CablePairingType
> > > +get_pairing_type(uint16_t   vid,
> > > +              uint16_t   pid,
> > > +              char     **name,
> > > +              uint16_t  *source,
> > > +              uint16_t  *version)
> > 
> > I have a slightly updated version of that section. "static" is
> > missing
> > in front of the inline function for use with RPM build's strict
> > linker
> > settings, and I'm sure the indentation police would like to see
> > that
> > function return type and name on the same line ;)
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-
> > bluetooth" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> I'm not sure why this is in header in first place ?

It should become clear if you look at the rest of the patchset.

As we discussed in Juha's version of this patchset, we want to share
this code between the sixaxis plugin, and the input profiles code. A
code header is the easiest way to do this without getting into build
conditionals.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux