On 2/9/06, ENDOH Akira <endoh@xxxxxxxxxxxxxx> wrote:
> Hi list,
>
> Does ethereal have a multi-line text field (like GtkText) for
> preferences ? I guess no, but I just want to make sure, anyway,
> if no, I'll add this feature as a function like
> prefs_register_text_preference().
No, and I don't think is a good idea...
BTW I do not think we need a multiline preference type, a semicolon
separated list might be much cheaper to come up with and would be
effective as well.
Be aware that the parser of the preferences file does not handle
preferences on more than one line. So you'll have to change that too
to handle more lines per preference.
> I'm actually planning to add a feature of editable media types
> as a preference value to the XML dissector, so that users can
> add/delete their own XML media types. Since there are so many
> media types, including many proprietary ones, which should be
> dissected as XML, this feature would be convinient, I think.
take a look at the dtds directory in the ethereal data dir... Maybe
there's already much more than you want !
Ethereal's dtd parser is not complete (there's some dtd tags it
doesn't handle) but it is enough to instruct the xml parser what each
tag is so that you can filter on its content.
Try downloading an RSS and see how it works.
Whithout having to write the dtd, It is enough to add an empty file
with a tag like the first one in smil.dtd. and that media type would
be handled as xml... it won't be able to create filters for the text
and attributes of the tags but it certainly can assign a media type.
<? ethereal:protocol
proto_name="smil"
media="application/smil"
description="Synchronized Multimedia Integration Language"
?>
Luis
--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan