warning: overflow in implicit constant conversion
[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.14 2003/12/09 06:48:38 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef __UI_UTIL_H__
26 #define __UI_UTIL_H__
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31
32 /* Set the name of the top-level window and its icon. */
33 void set_main_window_name(gchar *);
34
35 /* packet list related functions */
36 void packet_list_clear(void);
37 void packet_list_freeze(void);
38 void packet_list_thaw(void);
39 void packet_list_select_row(gint);
40 void packet_list_moveto_end(void);
41 gint packet_list_append(gchar *text[], gpointer data);
42 void packet_list_set_colors(gint, color_t *, color_t *);
43 gint packet_list_find_row_from_data(gpointer);
44 void packet_list_set_text(gint, gint, const gchar *);
45 void packet_list_set_cls_time_width(gint);
46 gpointer packet_list_get_row_data(gint);
47 void packet_list_set_selected_row(gint);
48 gint packet_list_get_sort_column(void);
49
50 /* create byte views in the main window */
51 void add_main_byte_views(epan_dissect_t *edt);
52 /* display the protocol tree in the main window */
53 void main_proto_tree_draw(proto_tree *protocol_tree);
54
55 void clear_tree_and_hex_views(void);
56
57 /* Destroy all popup packet windows. */
58 void destroy_packet_wins(void);
59
60 #ifdef __cplusplus
61 }
62 #endif /* __cplusplus */
63
64 #endif /* __UI_UTIL_H__ */