Ethereal-dev: [Ethereal-dev] Adding list-type data to a column

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

From: "Olivier Biot" <ethereal@xxxxxxxxxx>
Date: Thu, 5 Feb 2004 00:14:36 +0100
Hi list,

There's no function yet in epan/column_utils.[ch] which enables adding
a string to the column if the column is empty, and prefix this string
with a separator otherwise. I'm still having problems in naming that
function. How about:

col_append_str_in_list(column_info *cinfo, gint column_id, const gchar
*list_separator, const gchar *str)
col_append_fstr_in_list(column_info *cinfo, gint column_id, const
gchar *list_separator, const gchar *format, ...)

Maybe we can define a default list separator string: ", ".
The implementation is straightforward and is almost a copy of the
col_append_str() and col_append_fstr() methods.

Any comments?

Regards,

Olivier