Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

column-info.h
Go to the documentation of this file.
1 /* column-info.h
2 * Definitions for column structures and routines
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11 #ifndef __COLUMN_INFO_H__
12 #define __COLUMN_INFO_H__
13
14 #include <glib.h>
15 #include <epan/column-utils.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20
25 #define COL_MAX_LEN 256
26 #define COL_MAX_INFO_LEN 4096
27 #define COL_CUSTOM_PRIME_REGEX " *([^ \\|]+) *(?:(?:\\|\\|)|(?:or)| *$){1}"
28
30 typedef struct {
31 const gchar **col_expr;
32 gchar **col_expr_val;
33 } col_expr_t;
34
36 typedef struct {
37 gint col_fmt;
38 gboolean *fmt_matx;
39 gchar *col_title;
40 gchar *col_custom_fields;
41 gint col_custom_occurrence;
42 GSList *col_custom_fields_ids;
43 struct epan_dfilter *col_custom_dfilter;
44 const gchar *col_data;
45 gchar *col_buf;
46 int col_fence;
47 gboolean writable;
48 } col_item_t;
49
51 struct epan_column_info {
52 const struct epan_session *epan;
53 gint num_cols;
54 col_item_t *columns;
55 gint *col_first;
56 gint *col_last;
57 col_expr_t col_expr;
58 gboolean writable;
59 GRegex *prime_regex;
60 };
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65
66 #endif /* __COLUMN_INFO_H__ */
col_item_t::col_data
const gchar * col_data
Definition: column-info.h:44
col_item_t::col_custom_dfilter
struct epan_dfilter * col_custom_dfilter
Definition: column-info.h:43
epan_column_info::writable
gboolean writable
Definition: column-info.h:58
epan_column_info::prime_regex
GRegex * prime_regex
Definition: column-info.h:59
col_item_t::col_fence
int col_fence
Definition: column-info.h:46
epan_column_info
Definition: column-info.h:51
epan_column_info::col_expr
col_expr_t col_expr
Definition: column-info.h:57
col_item_t::col_custom_occurrence
gint col_custom_occurrence
Definition: column-info.h:41
col_item_t::col_buf
gchar * col_buf
Definition: column-info.h:45
col_item_t::col_title
gchar * col_title
Definition: column-info.h:39
col_item_t
Definition: column-info.h:36
col_item_t::writable
gboolean writable
Definition: column-info.h:47
col_expr_t::col_expr
const gchar ** col_expr
Definition: column-info.h:31
epan_column_info::columns
col_item_t * columns
Definition: column-info.h:54
epan_dfilter
Definition: dfilter-int.h:19
col_item_t::fmt_matx
gboolean * fmt_matx
Definition: column-info.h:38
col_expr_t::col_expr_val
gchar ** col_expr_val
Definition: column-info.h:32
col_expr_t
Definition: column-info.h:30
epan_column_info::col_last
gint * col_last
Definition: column-info.h:56
col_item_t::col_custom_fields
gchar * col_custom_fields
Definition: column-info.h:40
col_item_t::col_fmt
gint col_fmt
Definition: column-info.h:37
epan_column_info::col_first
gint * col_first
Definition: column-info.h:55
epan_column_info::num_cols
gint num_cols
Definition: column-info.h:53
epan_session
Definition: epan.c:348
col_item_t::col_custom_fields_ids
GSList * col_custom_fields_ids
Definition: column-info.h:42