Ethereal-dev: Re: [Ethereal-dev] How to re-use a dissect subroutine from another dissector?

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 29 Mar 2005 17:08:34 -0800
Jacques, Olivier (OCBU-Test Infra) wrote:

In order to avoid duplication, I would like to use in the camel
dissector some routines of ISUP dissector, like
"dissect_isup_called_party_number_parameter".

How could I do that while respecting Ethereal's coding standard?

Make it non-static in packet-isup.c, declare it in packet-isup.h, and have the CAMEL dissector include packet-isup.h and call the routine.