Ethereal-dev: Re: [Ethereal-dev] C++ plugins

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 27 Feb 2006 17:05:26 +0100
On Mon, Feb 27, 2006 at 04:55:00PM +0100, Lars Ruoff wrote:
> So, the question would rather be what changes do you have to make to C++
> code in order to use it as a C plugin?
> But that is not a problem: There should be no difficulties in using C++ for
> the implementation of those interface functions as long as the calling
> interface remains C style.
> Basically it comes down to defining the required functions
> extern "C" in your C++ code,
> and/or eventually force a certain calling- and linkage convention in your
> C++ compiler/linker.

This question seems to come up again and again. If anyone has done this
already: Could you provide a skeleton plugin (code plus Makefile) that
demonstrates how to do this? We could add this to README.plugins and the
developers guide.

Ciao
   Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.