2 * Declarations of UI utility routines; these routines have GUI-independent
3 * APIs, but GUI-dependent implementations, so that they can be called by
4 * GUI-independent code to affect the GUI.
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #endif /* __cplusplus */
36 /* Set the name of the top-level window and its icon. */
37 void set_main_window_name(const gchar *);
38 /* Update the name of the main window if the user-specified decoration
40 void update_main_window_name(void);
41 /* update the main window */
42 extern void main_window_update(void);
43 /* exit the main window */
44 extern void main_window_exit(void);
45 /* quit a nested main window */
46 extern void main_window_nested_quit(void);
47 /* quit the main window */
48 extern void main_window_quit(void);
50 /* read from a pipe (callback) */
51 typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data);
52 /* install callback function, called if pipe input is available */
53 extern void pipe_input_set_handler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb);
57 /* packet list related functions */
58 void packet_list_clear(void);
59 void packet_list_freeze(void);
60 void packet_list_thaw(void);
61 void packet_list_select_row(gint);
62 void packet_list_moveto_end(void);
63 gint packet_list_append(const gchar *text[], gpointer data);
64 void packet_list_set_colors(gint, color_t *, color_t *);
65 gint packet_list_find_row_from_data(gpointer);
66 void packet_list_set_text(gint, gint, const gchar *);
67 void packet_list_set_time_width(gint, gint);
68 gpointer packet_list_get_row_data(gint);
69 void packet_list_set_selected_row(gint);
70 gint packet_list_get_sort_column(void);
71 void packet_list_set_sort_column(void);
72 gboolean packet_list_check_end(void);
77 #endif /* __cplusplus */
79 #endif /* __UI_UTIL_H__ */