2 * Declarations of utilities to with range_utils.c (packet range dialog)
6 * Ulf Lamping <ulf.lamping@web.de>
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.
27 #ifndef __RANGE_UTILS_H__
28 #define __RANGE_UTILS_H__
31 * Packet range widget used for example in the "Save" and "Print" dialogs.
34 /** Check the validity of a packet_range_t, and put up an alert box if
37 * @param range the range to check
38 * @return a Boolean that's TRUE if it's valid and FALSE if it isn't
40 extern gboolean range_check_validity(packet_range_t *range);
42 /** Create a new range widget.
44 * @param range the range to set
45 * @return the new range widget
47 extern GtkWidget *range_new(packet_range_t *range);
49 /* Update all "dynamic" range things.
51 * @param data range widget
53 extern void range_update_dynamics(gpointer data);