![Guy Harris](/assets/img/avatar_default.png)
that you can tell from examination whether the search is forward or backward. Make the cf_find_packet routines take the direction as an explicit argument, rather than, in the cases where you don't want to permanently set the direction, saving the direction in the capture_file structure, changing it, doing the search, and restoring the saved direction. Give more information in the Doxygen comments for those routines. Add a cf_find_packet_dfilter_string() routine, which takes a filter string rather than a compiled filter as an argument. Replace find_previous_next_frame_with_filter() with it. Have cf_read_frame_r() and cf_read_frame() pop up the error dialog if the read fails, rather than leaving that up to its caller. That lets us eliminate cf_read_error_message(), by swallowing its code into cf_read_frame_r(). Add Doxygen comments for cf_read_frame_r() and cf_read_frame(). Don't have find_packet() read the packet before calling the callback routine; leave that up to the callback routine. Add cf_find_packet_marked(), to find the next or previous marked packet, and cf_find_packet_time_reference(), to find the next or previous time reference packet. Those routines do *not* need to read the packet data to see if it matches; that lets them run much faster. Clean up indentation. svn path=/trunk/; revision=33791
62 lines
1.7 KiB
C
62 lines
1.7 KiB
C
/* find_dlg.h
|
|
* Definitions for "find frame" window
|
|
*
|
|
* $Id$
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __FIND_DLG_H__
|
|
#define __FIND_DLG_H__
|
|
|
|
/** @file
|
|
* "Find" dialog box and related functions.
|
|
* @ingroup dialog_group
|
|
*/
|
|
|
|
/** User requested the "Find" dialog box by menu or toolbar.
|
|
*
|
|
* @param widget parent widget (unused)
|
|
* @param data unused
|
|
*/
|
|
extern void find_frame_cb(GtkWidget *widget, gpointer data);
|
|
|
|
/** User requested the "Find Next" function.
|
|
*
|
|
* @param widget parent widget (unused)
|
|
* @param data unused
|
|
*/
|
|
extern void find_next_cb(GtkWidget *widget, gpointer data);
|
|
|
|
/** User requested the "Find Previous" function.
|
|
*
|
|
* @param widget parent widget (unused)
|
|
* @param data unused
|
|
*/
|
|
extern void find_previous_cb(GtkWidget *widget, gpointer data);
|
|
|
|
/** Find frame by filter.
|
|
*
|
|
* @param filter the filter string
|
|
*/
|
|
extern void find_frame_with_filter(char *filter);
|
|
|
|
#endif /* find_dlg.h */
|