lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7410] Don't include internal headers in api header f


From: Simon Goldschmidt
Subject: [lwip-devel] [task #7410] Don't include internal headers in api header files
Date: Tue, 06 Nov 2007 19:46:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9

Follow-up Comment #3, task #7410 (project lwip):

OK, that doesn't sound too excited...

> After all, users can always include api_internal.h and directly 
> access to netconn fields

In C++, users can also #define private public before including a class header
and then freely access private fields and still people regard this as being
protected...

What I want to do is some 'information hiding' where it's not needed. I made
a second patch that forward-defines the needed internal structs (mainly the
PCB structs).

> I don't think it's good to increase code size just to separate API headers

This second patch definitvely doesn't increase code size, BTW.

(file #14332)
    _______________________________________________________

Additional Item Attachment:

File name: api_h_cleanup.patch            Size:5 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7410>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]