forked from osmocom/wireshark
Make get_column_longest_string() static.
It's not used outside epan/column.c, so don't export it. Change-Id: I38e084946d92f3c31b06fc4fc1991c88e652f58a Reviewed-on: https://code.wireshark.org/review/4334 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
6e83b38020
commit
006790927f
|
@ -450,18 +450,6 @@ get_timestamp_column_longest_string(const gint type, const gint precision)
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns the longer string of the column title or the hard-coded width of
|
|
||||||
* its contents for building the packet list layout. */
|
|
||||||
const gchar *
|
|
||||||
get_column_width_string(const gint format, const gint col)
|
|
||||||
{
|
|
||||||
if(strlen(get_column_longest_string(format)) >
|
|
||||||
strlen(get_column_title(col)))
|
|
||||||
return get_column_longest_string(format);
|
|
||||||
else
|
|
||||||
return get_column_title(col);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Returns a string representing the longest possible value for a
|
/* Returns a string representing the longest possible value for a
|
||||||
particular column type. See also get_column_width_string() above.
|
particular column type. See also get_column_width_string() above.
|
||||||
|
|
||||||
|
@ -474,7 +462,7 @@ get_column_width_string(const gint format, const gint col)
|
||||||
is done, and given that the width for COL...SRC and COL...DST columns
|
is done, and given that the width for COL...SRC and COL...DST columns
|
||||||
is somewhat arbitrary in any case. We should probably clean
|
is somewhat arbitrary in any case. We should probably clean
|
||||||
that up eventually, though. */
|
that up eventually, though. */
|
||||||
const char *
|
static const char *
|
||||||
get_column_longest_string(const gint format)
|
get_column_longest_string(const gint format)
|
||||||
{
|
{
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
@ -620,6 +608,18 @@ get_column_longest_string(const gint format)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Returns the longer string of the column title or the hard-coded width of
|
||||||
|
* its contents for building the packet list layout. */
|
||||||
|
const gchar *
|
||||||
|
get_column_width_string(const gint format, const gint col)
|
||||||
|
{
|
||||||
|
if(strlen(get_column_longest_string(format)) >
|
||||||
|
strlen(get_column_title(col)))
|
||||||
|
return get_column_longest_string(format);
|
||||||
|
else
|
||||||
|
return get_column_title(col);
|
||||||
|
}
|
||||||
|
|
||||||
/* Returns the longest possible width, in characters, for a particular
|
/* Returns the longest possible width, in characters, for a particular
|
||||||
column type. */
|
column type. */
|
||||||
gint
|
gint
|
||||||
|
|
|
@ -74,8 +74,6 @@ void set_column_custom_occurrence(const gint, const gint);
|
||||||
WS_DLL_PUBLIC
|
WS_DLL_PUBLIC
|
||||||
const gchar *get_column_width_string(const gint, const gint);
|
const gchar *get_column_width_string(const gint, const gint);
|
||||||
WS_DLL_PUBLIC
|
WS_DLL_PUBLIC
|
||||||
const char *get_column_longest_string(const gint);
|
|
||||||
WS_DLL_PUBLIC
|
|
||||||
gint get_column_char_width(const gint format);
|
gint get_column_char_width(const gint format);
|
||||||
|
|
||||||
WS_DLL_PUBLIC
|
WS_DLL_PUBLIC
|
||||||
|
|
Loading…
Reference in New Issue