- some radcom files seem to have a different magic key than the one we
[obnox/wireshark/wip.git] / ui_util.h
1 /* ui_util.h
2  * Definitions for UI utility routines
3  *
4  * $Id: ui_util.h,v 1.12 2002/09/23 19:09:47 oabad 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 #ifndef __UI_UTIL_H__
27 #define __UI_UTIL_H__
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33 /* Set the name of the top-level window and its icon. */
34 void set_main_window_name(gchar *);
35
36 /* packet list related functions */
37 void packet_list_clear(void);
38 void packet_list_freeze(void);
39 void packet_list_thaw(void);
40 void packet_list_select_row(gint);
41 void packet_list_set_column_auto_resize(gint, gboolean);
42 void packet_list_set_column_resizeable(gint, gboolean);
43 void packet_list_set_column_width(gint, gint);
44 void packet_list_moveto_end(void);
45 gint packet_list_append(gchar *text[], gpointer data);
46 void packet_list_set_colors(gint, color_t *, color_t *);
47 gint packet_list_find_row_from_data(gpointer);
48 void packet_list_set_text(gint, gint, const gchar *);
49 void packet_list_set_cls_time_width(gint);
50 gpointer packet_list_get_row_data(gint);
51 void packet_list_set_selected_row(gint);
52
53 /* create byte views in the main window */
54 void add_main_byte_views(epan_dissect_t *edt);
55 /* display the protocol tree in the main window */
56 void main_proto_tree_draw(proto_tree *protocol_tree);
57
58 void clear_tree_and_hex_views(void);
59
60 /* Destroy all popup packet windows. */
61 void destroy_packet_wins(void);
62
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */
66
67 #endif /* __UI_UTIL_H__ */