We no longer support UCD SNMP - and *do* support Net-SNMP, and have
[metze/wireshark/wip.git] / ui_util.h
1 /* ui_util.h
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.
5  *
6  * $Id$
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
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.
16  *
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.
21  *
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.
25  */
26
27 #ifndef __UI_UTIL_H__
28 #define __UI_UTIL_H__
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
34 /* gui_utils.c */
35
36 /* Set the name of the top-level window and its icon. */
37 void set_main_window_name(gchar *);
38 /* update the main window */
39 extern void main_window_update(void);
40 /* exit the main window */
41 extern void main_window_exit(void);
42 /* quit a nested main window */
43 extern void main_window_nested_quit(void);
44 /* quit the main window */
45 extern void main_window_quit(void);
46
47 /* read from a pipe (callback) */
48 typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data);
49 /* install callback function, called if pipe input is available */
50 extern void pipe_input_set_handler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb);
51
52 /* packet_list.c */
53
54 /* packet list related functions */
55 void packet_list_clear(void);
56 void packet_list_freeze(void);
57 void packet_list_thaw(void);
58 void packet_list_select_row(gint);
59 void packet_list_moveto_end(void);
60 gint packet_list_append(const gchar *text[], gpointer data);
61 void packet_list_set_colors(gint, color_t *, color_t *);
62 gint packet_list_find_row_from_data(gpointer);
63 void packet_list_set_text(gint, gint, const gchar *);
64 void packet_list_set_cls_time_width(gint);
65 gpointer packet_list_get_row_data(gint);
66 void packet_list_set_selected_row(gint);
67 gint packet_list_get_sort_column(void);
68
69
70 #ifdef __cplusplus
71 }
72 #endif /* __cplusplus */
73
74 #endif /* __UI_UTIL_H__ */