Re: error in printing error message using simple_dialog

"Guy Harris" <[email protected]>
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.