> Also, I haven't been following ethereal development
> in a while...where can I find out about the new tvbuff
> stuff?
"doc/README.tvbuff" discusses it.
> I may have asked this before, but I have forgotten....
> what data structure is used in Ethereal for strings?
"Strings" in what sense?
Strings inside protocol tree items are currently "g_malloc()"ated
null-terminated character arrays, but those strings should be used only
internally to "proto.c", and the implementation of those strings could
change in the future.
Strings used only inside dissectors can use whatever data structure the
dissector writer wants...
> Is it OK to use something like a g_string from the
> GDK toolkit?
...including "g_string()"s from GLib (which is no longer part of GTK+,
so using stuff from GLib doesn't require Tethereal to be linked with
GTK+ and X libraries, and wouldn't get in the way of using MFC or Qt/KDE
or curses or... to implement the UI), as long as the data structure and
the code to implement it doesn't somehow clash with something else used
inside the Ethereal or Tethereal core or any other dissectors.