1998-11-17 04:29:13 +00:00
|
|
|
/* column.h
|
|
|
|
* Definitions for column handling routines
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1998-11-17 04:29:13 +00:00
|
|
|
*
|
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
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1998-11-17 04:29:13 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1998-11-17 04:29:13 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COLUMN_H__
|
|
|
|
#define __COLUMN_H__
|
|
|
|
|
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 {
|
|
|
|
gchar *title;
|
|
|
|
gchar *fmt;
|
2008-02-22 22:47:19 +00:00
|
|
|
gchar *custom_field;
|
2010-09-22 20:56:14 +00:00
|
|
|
gint custom_occurrence;
|
2010-06-20 16:23:43 +00:00
|
|
|
gboolean visible;
|
2010-06-25 06:42:34 +00:00
|
|
|
gboolean resolved;
|
1998-11-17 04:29:13 +00:00
|
|
|
} fmt_data;
|
|
|
|
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *col_format_to_string(const gint);
|
|
|
|
const gchar *col_format_desc(const gint);
|
|
|
|
gint get_column_format(const gint);
|
|
|
|
void get_column_format_matches(gboolean *, const gint);
|
|
|
|
gint get_column_format_from_str(const gchar *);
|
|
|
|
gchar *get_column_title(const gint);
|
2010-06-20 16:23:43 +00:00
|
|
|
gboolean get_column_visible(const gint);
|
|
|
|
void set_column_visible(const gint, gboolean);
|
2010-06-25 06:42:34 +00:00
|
|
|
gboolean get_column_resolved(const gint);
|
|
|
|
void set_column_resolved(const gint, gboolean);
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *get_column_custom_field(const gint);
|
2010-09-22 20:56:14 +00:00
|
|
|
gint get_column_custom_occurrence(const gint);
|
2010-04-03 18:18:50 +00:00
|
|
|
const gchar *get_column_width_string(const gint, const gint);
|
|
|
|
const char *get_column_longest_string(const gint);
|
|
|
|
gint get_column_char_width(const gint format);
|
1998-11-17 04:29:13 +00:00
|
|
|
|
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
|
|
|
|
2007-01-18 18:43:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1998-11-17 04:29:13 +00:00
|
|
|
#endif /* column.h */
|