"redraw_hex_dump()" can't use "cfile.pd" or "cfile.current_frame", as it
[obnox/wireshark/wip.git] / gtk / proto_draw.h
1 /* gtkpacket.h
2  * Definitions for GTK+ packet display structures and routines
3  *
4  * $Id: proto_draw.h,v 1.10 2000/09/09 10:26:58 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26
27 #ifndef __GTKPACKET_H__
28 #define __GTKPACKET_H__
29
30 void redraw_hex_dump(GtkWidget *bv, guint8 *pd, frame_data *fd,
31     field_info *finfo);
32 void redraw_hex_dump_all(void);
33 void create_byte_view(gint bv_size, GtkWidget *pane, GtkWidget **byte_view_p,
34                 GtkWidget **bv_scrollw_p, int pos);
35 void packet_hex_print(GtkText *, guint8 *, frame_data *, field_info *);
36
37 #define E_TREEINFO_FIELD_INFO_KEY "tree_info_finfo"
38
39 void create_tree_view(gint tv_size, e_prefs *prefs, GtkWidget *pane,
40                 GtkWidget **tv_scrollw_p, GtkWidget **tree_view_p, int pos);
41 void proto_tree_draw(proto_tree *protocol_tree, GtkWidget *tree_view);
42 void expand_all_tree(proto_tree *protocol_tree, GtkWidget *tree_view);
43 void collapse_all_tree(proto_tree *protocol_tree, GtkWidget *tree_view);
44
45 void set_ptree_sel_browse_all(gboolean);
46 void set_ptree_line_style_all(gint style);
47 void set_ptree_expander_style_all(gint style);
48 void set_ptree_font_all(GdkFont *font);
49
50 #endif