Ethereal-dev: Re: [Ethereal-dev] error in printing error message using simple_dialog

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: Thu, 1 Jun 2006 18:57:21 -0700 (PDT)
Raman Singla wrote:

> there is a file (trace.def) which is having all the structure format
> telling
> how the hexdumps should be decode for gprs messages
>
> suppose system is unable to open this file, there should be a error
> message
> indicating that error file is missing.

Unfortunately, there's currently no mechanism to allow a Wiretap module
for handling a particular file type to report such an error - and there's
no mechanism to have an "init" routine for the module, which is where the
file should be read in any case.

You'd have to wait for such a mechanism to be added.  They probably should
be added; Ethereal, Tethereal, etc. would call wtap_init(), or something
such as that, to initialize Wiretap, and it would either return TRUE if it
succeeded or FALSE if an error occurred.  If it failed, it'd also return a
string that Ethereal could put in a dialog box and Tethereal could print.


_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev