2009-06-30 18:05:04 +00:00
|
|
|
/* new_packet_list.h
|
|
|
|
*
|
|
|
|
* $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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
* USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NEW_PACKET_LIST_H__
|
|
|
|
#define __NEW_PACKET_LIST_H__
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
2009-08-14 19:35:01 +00:00
|
|
|
|
2010-08-29 15:14:38 +00:00
|
|
|
/** @file
|
|
|
|
* @ingroup main_window_group
|
|
|
|
*/
|
|
|
|
|
2009-11-26 09:09:07 +00:00
|
|
|
typedef enum {
|
|
|
|
COLUMN_SELECTED_SORT_ASCENDING,
|
|
|
|
COLUMN_SELECTED_SORT_DESCENDING,
|
2009-12-01 16:23:20 +00:00
|
|
|
COLUMN_SELECTED_SORT_NONE,
|
2010-06-25 06:42:34 +00:00
|
|
|
COLUMN_SELECTED_TOGGLE_RESOLVED,
|
2009-11-27 18:12:30 +00:00
|
|
|
COLUMN_SELECTED_ALIGN_LEFT,
|
2009-12-01 17:07:13 +00:00
|
|
|
COLUMN_SELECTED_ALIGN_CENTER,
|
2009-11-27 18:12:30 +00:00
|
|
|
COLUMN_SELECTED_ALIGN_RIGHT,
|
2009-12-01 17:07:13 +00:00
|
|
|
COLUMN_SELECTED_ALIGN_DEFAULT,
|
2009-11-26 09:09:07 +00:00
|
|
|
COLUMN_SELECTED_RESIZE,
|
2010-10-09 15:22:53 +00:00
|
|
|
COLUMN_SELECTED_CHANGE,
|
2010-06-20 16:23:43 +00:00
|
|
|
COLUMN_SELECTED_HIDE,
|
2009-11-26 09:09:07 +00:00
|
|
|
COLUMN_SELECTED_REMOVE
|
|
|
|
} COLUMN_SELECTED_E;
|
|
|
|
|
2010-08-29 15:14:38 +00:00
|
|
|
/** Create the packet list */
|
2009-07-01 14:37:02 +00:00
|
|
|
GtkWidget *new_packet_list_create(void);
|
2010-08-29 15:14:38 +00:00
|
|
|
/** Recreate the packetr list */
|
2009-11-19 21:11:41 +00:00
|
|
|
void new_packet_list_recreate(void);
|
2010-06-20 16:23:43 +00:00
|
|
|
void new_packet_list_toggle_visible_column (gint col_id);
|
|
|
|
void new_packet_list_set_all_columns_visible (void);
|
2009-11-30 15:58:57 +00:00
|
|
|
void new_packet_list_column_menu_cb (GtkWidget *w, gpointer data, COLUMN_SELECTED_E action);
|
2009-07-01 14:37:02 +00:00
|
|
|
void new_packet_list_resize_columns_cb(GtkWidget *widget _U_, gpointer data _U_);
|
2009-08-14 19:35:01 +00:00
|
|
|
gboolean new_packet_list_get_event_row_column(GdkEventButton *event_button, gint *physical_row, gint *row, gint *column);
|
2010-07-01 12:21:29 +00:00
|
|
|
guint new_packet_list_get_column_id (gint col_num);
|
2009-06-30 18:05:04 +00:00
|
|
|
|
2009-08-06 22:06:37 +00:00
|
|
|
/** Set the font of the packet list window.
|
|
|
|
*
|
|
|
|
* @param font new font
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_set_font(PangoFontDescription *font);
|
|
|
|
|
2009-07-28 22:18:19 +00:00
|
|
|
/** Mark the currently selected packet.
|
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_mark_frame_cb(GtkWidget *widget, gpointer data);
|
|
|
|
|
2010-12-22 17:25:06 +00:00
|
|
|
/** Toggle Mark on all displayed packets.
|
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_toggle_mark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
|
|
|
|
|
|
|
/** Mark all displayed packets.
|
2009-12-17 01:18:14 +00:00
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
2010-08-16 18:17:45 +00:00
|
|
|
extern void new_packet_list_mark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
2009-12-17 01:18:14 +00:00
|
|
|
|
2010-08-16 18:17:45 +00:00
|
|
|
/** UnMark all packets in the capture.
|
2009-12-17 01:18:14 +00:00
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
2010-12-22 17:25:06 +00:00
|
|
|
extern void new_packet_list_unmark_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
2009-08-15 04:19:45 +00:00
|
|
|
|
2009-12-17 01:18:14 +00:00
|
|
|
/** Ignore the currently selected packet.
|
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_ignore_frame_cb(GtkWidget *widget, gpointer data);
|
|
|
|
|
2010-08-16 18:17:45 +00:00
|
|
|
/** Ignore/Unignore all displayed packets.
|
2009-12-21 23:07:14 +00:00
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
2010-08-16 18:17:45 +00:00
|
|
|
extern void new_packet_list_ignore_all_displayed_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
2009-12-21 23:07:14 +00:00
|
|
|
|
2009-12-17 12:05:13 +00:00
|
|
|
/** Un-ignore all packets in the list.
|
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_unignore_all_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
|
|
|
|
2010-08-16 18:17:45 +00:00
|
|
|
/** Un-Time Reference all packets in the capture.
|
|
|
|
*
|
|
|
|
* @param widget parent widget (unused)
|
|
|
|
* @param data unused
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_untime_reference_all_frames_cb(GtkWidget *w _U_, gpointer data _U_);
|
|
|
|
|
2010-08-29 15:14:38 +00:00
|
|
|
/** Different modes of copying summary data */
|
2009-08-18 14:40:51 +00:00
|
|
|
typedef enum {
|
2010-08-29 15:14:38 +00:00
|
|
|
CS_TEXT, /**< Packet summary data (tab separated) */
|
|
|
|
CS_CSV /**< Packet summary data (comma separated) */
|
2009-08-18 14:40:51 +00:00
|
|
|
} copy_summary_type;
|
|
|
|
|
|
|
|
/** Called when user clicks on menu item to copy summary data.
|
|
|
|
*
|
|
|
|
* @param w Not used.
|
|
|
|
* @param data Not used.
|
|
|
|
* @param copy_type Mode in which to copy data (e.g. tab-separated, CSV)
|
|
|
|
*/
|
2011-08-27 09:43:27 +00:00
|
|
|
void new_packet_list_copy_summary_cb(gpointer data _U_, copy_summary_type copy_type);
|
2009-08-18 14:40:51 +00:00
|
|
|
|
2012-02-12 23:09:14 +00:00
|
|
|
gchar *new_packet_list_get_packet_comment(void);
|
2012-02-13 17:33:05 +00:00
|
|
|
void new_packet_list_update_packet_comment(gchar *new_packet_comment);
|
2012-02-12 23:09:14 +00:00
|
|
|
|
2009-09-07 12:04:59 +00:00
|
|
|
GtkWidget * new_packet_list_get_widget(void);
|
2009-09-02 17:51:48 +00:00
|
|
|
void new_packet_list_colorize_packets(void);
|
2009-09-07 12:04:59 +00:00
|
|
|
|
2009-09-22 12:39:16 +00:00
|
|
|
/** Set the selection mode of the packet list window.
|
|
|
|
*
|
|
|
|
* @param val TRUE for GTK_SELECTION_SINGLE, FALSE for GTK_SELECTION_BROWSE
|
|
|
|
* @param force_set TRUE to force setting of the selection mode even if it
|
|
|
|
* was already set (used within packet_list_recreate).
|
|
|
|
*/
|
|
|
|
extern void new_packet_list_set_sel_browse(gboolean val, gboolean force_set);
|
|
|
|
|
2009-06-30 18:05:04 +00:00
|
|
|
#endif /* __NEW_PACKET_LIST_H__ */
|