1998-11-17 04:29:13 +00:00
|
|
|
/* column.h
|
|
|
|
* Definitions for column handling routines
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1998-11-17 04:29:13 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
1998-11-17 04:29:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COLUMN_H__
|
|
|
|
#define __COLUMN_H__
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2013-12-21 17:23:17 +00:00
|
|
|
#include <epan/column-info.h>
|
2013-03-01 23:53:11 +00:00
|
|
|
|
2007-01-18 18:43:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1998-11-17 04:29:13 +00:00
|
|
|
typedef struct _fmt_data {
|
2011-11-13 22:51:49 +00:00
|
|
|
gchar *title; /* title of the column */
|
|
|
|
int fmt; /* format of column */
|
2015-12-11 08:34:08 +00:00
|
|
|
gchar *custom_fields; /* fields names for COL_CUSTOM */
|
2011-11-13 22:51:49 +00:00
|
|
|
gint custom_occurrence; /* optional ordinal of occurrence of that field */
|
|
|
|
gboolean visible; /* if FALSE, hide this column */
|
|
|
|
gboolean resolved; /* if TRUE, show a more human-readable name */
|
1998-11-17 04:29:13 +00:00
|
|
|
} fmt_data;
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *col_format_to_string(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *col_format_desc(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
gint get_column_format(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-10-09 15:22:53 +00:00
|
|
|
void set_column_format(const gint, const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
void get_column_format_matches(gboolean *, const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
gint get_column_format_from_str(const gchar *);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
gchar *get_column_title(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-10-09 15:22:53 +00:00
|
|
|
void set_column_title(const gint, const gchar *);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-06-20 16:23:43 +00:00
|
|
|
gboolean get_column_visible(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-06-20 16:23:43 +00:00
|
|
|
void set_column_visible(const gint, gboolean);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-06-25 06:42:34 +00:00
|
|
|
gboolean get_column_resolved(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-06-25 06:42:34 +00:00
|
|
|
void set_column_resolved(const gint, gboolean);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2015-12-11 08:34:08 +00:00
|
|
|
const gchar *get_column_custom_fields(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2015-12-11 08:34:08 +00:00
|
|
|
void set_column_custom_fields(const gint, const char *);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-09-22 20:56:14 +00:00
|
|
|
gint get_column_custom_occurrence(const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-10-09 15:22:53 +00:00
|
|
|
void set_column_custom_occurrence(const gint, const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *get_column_width_string(const gint, const gint);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2010-04-03 18:18:50 +00:00
|
|
|
gint get_column_char_width(const gint format);
|
2015-11-22 20:25:15 +00:00
|
|
|
WS_DLL_PUBLIC
|
|
|
|
gchar *get_column_tooltip(const gint col);
|
1998-11-17 04:29:13 +00:00
|
|
|
|
2017-09-27 20:03:43 +00:00
|
|
|
WS_DLL_PUBLIC
|
|
|
|
void
|
|
|
|
col_finalize(column_info *cinfo);
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2007-06-04 20:15:10 +00:00
|
|
|
void
|
2010-04-03 18:18:50 +00:00
|
|
|
build_column_format_array(column_info *cinfo, const gint num_cols, const gboolean reset_fences);
|
2007-06-04 20:15:10 +00:00
|
|
|
|
2013-10-15 18:27:35 +00:00
|
|
|
WS_DLL_PUBLIC
|
|
|
|
void column_dump_column_formats(void);
|
|
|
|
|
2007-01-18 18:43:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1998-11-17 04:29:13 +00:00
|
|
|
#endif /* column.h */
|