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: "Lars Ruoff" <Lars.Ruoff@xxxxxxxxxx>
Date: Mon, 27 Feb 2006 16:55:00 +0100
Hello,
I dont know if i understand the question.
Ethereal defines a C function interface for the plugins.
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.
Did that answer your question?

br,
Lars Ruoff

----- Original Message ----- 
From: "Jasim Tariq" <jasimtariqjt@xxxxxxxxxxx>
To: <ethereal-dev@xxxxxxxxxxxx>
Sent: Friday, February 24, 2006 10:22 PM
Subject: [Ethereal-dev] C++ plugins


> Hello,
>
>         I have written a dissector for Ethereal in C which works fine. My
> question is that what changes I have to make in in the C dissector file in
> order to use it as a C++ plugin. I want other classes to be included as
well
> and that is why I want to add it as a C++ plugin. Also what other changes
> should I make to other files, if there are any, to achieve my target?
>
> Thanks
>
> Jasim Tariq
>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev