(GTKUImanger)
[obnox/wireshark/wip.git] / gtk / export_object.h
1 /* export_object.h
2  * Common routines for tracking & saving objects found in streams of data
3  * Copyright 2007, Stephen Fisher (see AUTHORS file)
4  *
5  * $Id$
6  * 
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
24  * USA.
25  */
26
27 #ifndef __EXPORT_OBJECT_H__
28 #define __EXPORT_OBJECT_H__
29
30 /* Common between protocols */
31 typedef struct _export_object_list_t {
32         GSList *entries;
33         GtkWidget *tree, *dlg;
34         GtkTreeView *tree_view;
35         GtkTreeIter *iter;
36         GtkTreeStore *store;
37         gint row_selected;
38 } export_object_list_t;
39
40 typedef struct _export_object_entry_t {
41         guint32 pkt_num;
42         gchar *hostname;
43         gchar *content_type;
44         gchar *filename;
45         /* We need to store a 64 bit integer to hold a file length
46            (was guint payload_len;) */
47         gint64 payload_len;
48         guint8 *payload_data;
49 } export_object_entry_t;
50
51 void export_object_window(const gchar *tapname, const gchar *name,
52                           tap_packet_cb tap_packet);
53
54 /* Protocol specific */
55 void eo_http_cb(GtkWidget *widget _U_, gpointer data _U_);
56 void eo_dicom_cb(GtkWidget *widget _U_, gpointer data _U_);
57 void eo_smb_cb(GtkWidget *widget _U_, gpointer data _U_);
58
59 #endif /* __EXPORT_OBJECT_H__ */