All of lore.kernel.org
 help / color / mirror / Atom feed
* add extern "C" {..} to libnetfilter_conntrack headers?
@ 2007-03-14  0:40 Phil Dibowitz
  2007-03-14 13:33 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Dibowitz @ 2007-03-14  0:40 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

Is there a reason that there aren't extern "C" {} enclosures in the
libnetfilter_conntrack header files?

My app is C++, and currently I put the libnetfilter #include's in an extern
"C" {}, but this should probably be in the header files so any C++ app can
easily use the library.

I can submit a patch if it's desired, but I thought I'd ask if there was a
reason it wasn't there first.

-- 
Phil Dibowitz                             phil@ipom.com
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: add extern "C" {..} to libnetfilter_conntrack headers?
  2007-03-14  0:40 add extern "C" {..} to libnetfilter_conntrack headers? Phil Dibowitz
@ 2007-03-14 13:33 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2007-03-14 13:33 UTC (permalink / raw)
  To: Phil Dibowitz; +Cc: netfilter-devel

Phil Dibowitz wrote:
> Is there a reason that there aren't extern "C" {} enclosures in the
> libnetfilter_conntrack header files?

Well, the only reason that I can find is that I think that low-level 
stuff should be written in C, however someone could come here and say 
that wants to write a graphical interface for conntrack in qt, which is 
not so low-level stuff.

If nobody objects here, send me the patch. I'd accept a similar patch 
for the other libnetfilter_* libraries. Thanks.

-- 
The dawn of the fourth age of Linux firewalling is coming; a time of 
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-14 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14  0:40 add extern "C" {..} to libnetfilter_conntrack headers? Phil Dibowitz
2007-03-14 13:33 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.