diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 07:32:35 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 07:32:35 +0000 |
commit | cd6ad9d4c0ea750b5f7b644380f46aa52be68ca1 (patch) | |
tree | 64ac821606f069c1656af4e51649446c846dc3dc /epan/column-utils.h | |
parent | 21d1ad637505bee8d2086a7b024f170c1afe610d (diff) | |
download | wireshark-cd6ad9d4c0ea750b5f7b644380f46aa52be68ca1.tar.gz wireshark-cd6ad9d4c0ea750b5f7b644380f46aa52be68ca1.tar.bz2 wireshark-cd6ad9d4c0ea750b5f7b644380f46aa52be68ca1.zip |
Moved the the remaining column related routines out of packet.{c,h}
and into column-utils{c,h}.
svn path=/trunk/; revision=3231
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h new file mode 100644 index 0000000000..025ecc0b33 --- /dev/null +++ b/epan/column-utils.h @@ -0,0 +1,65 @@ +/* column-utils.h + * Definitions for column utility structures and routines + * + * $Id: column-utils.h,v 1.1 2001/04/01 07:32:35 hagbard Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@zing.org> + * 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. + * + * 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. + * + * 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_UTILS_H__ +#define __COLUMN_UTILS_H__ + +#include <glib.h> + +#define COL_MAX_LEN 256 +#define COL_MAX_INFO_LEN 4096 + +#include "column_info.h" +#include "frame_data.h" + +/* Allocate all the data structures for constructing column data, given + the number of columns. */ +void col_init(column_info *, gint); + +/* Utility routines used by packet*.c */ + +void col_set_writable(frame_data *fd, gboolean writable); +gint check_col(frame_data *, gint); +void col_clear(frame_data *, gint); +void col_set_str(frame_data *, gint, gchar *); +#if __GNUC__ == 2 +void col_add_fstr(frame_data *, gint, gchar *, ...) + __attribute__((format (printf, 3, 4))); +void col_append_fstr(frame_data *, gint, gchar *, ...) + __attribute__((format (printf, 3, 4))); +#else +void col_add_fstr(frame_data *, gint, gchar *, ...); +void col_append_fstr(frame_data *, gint, gchar *, ...); +#endif +void col_add_str(frame_data *, gint, const gchar *); +void col_append_str(frame_data *, gint, gchar *); +void col_set_cls_time(frame_data *, int); +void fill_in_columns(frame_data *); + +#endif /* __COLUMN_UTILS_H__ */ + + + |