Re: [PATCH BlueZ 05/26] attrib: Get rid of guint* types

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

 



Hi Lucas,

On Thu, May 9, 2013 at 8:15 AM, Lucas De Marchi
<lucas.demarchi@xxxxxxxxxxxxxx> wrote:
>> We used to avoid adding includes into headers, and instead add them on
>> the .c files only. (The existing include above is a unfortunate
>> exception). Not sure if this convention has changed since.
>
> Sure, but when you use a certain type in header you need the header
> (or if it's a pointer you have the option to do a forward declaration,
> but it's not the case here). If you don't do this you depend on the
> include order in each .c, risking to break the build, which is way
> worse.

My point is, I know of all these aspects of not having self-contained
headers, and I am personally okay with it. But there was a tendency in
BlueZ to explicitly add #include's to each .c where it was needed and
keep headers free from #include's. Maybe I just misinterpreted this
convention, but I wanted to have it noted (and maybe Johan/Marcel
could clarify whether this is relevant).

Best Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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