aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tap_export_pdu.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2014-01-20 05:51:10 +0000
committerAnders Broman <anders.broman@ericsson.com>2014-01-20 05:51:10 +0000
commite45896cafc3f6f2b452d80396d38ea0accd3510e (patch)
tree02e9a49a5a2fd94eac88124ac622222227a3b80d /ui/tap_export_pdu.h
parenta8002aa0b74e747d835889d8897c5733ba052ee0 (diff)
Split the GUI and the tap part to make it possible to adapt to Qt.
svn path=/trunk/; revision=54850
Diffstat (limited to 'ui/tap_export_pdu.h')
-rw-r--r--ui/tap_export_pdu.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/ui/tap_export_pdu.h b/ui/tap_export_pdu.h
new file mode 100644
index 0000000000..ba5ee3d51b
--- /dev/null
+++ b/ui/tap_export_pdu.h
@@ -0,0 +1,57 @@
+/* tap_export_pdu.h
+ * Routines for exporting PDU:s to file
+ *
+ * $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 __TAP_EXPORT_PDU_H__
+#define __TAP_EXPORT_PDU_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+typedef struct _exp_pdu_t {
+ int pkt_encap;
+ wtap_dumper* wdh;
+} exp_pdu_t;
+
+void exp_pdu_file_open(exp_pdu_t *exp_pdu_tap_data);
+gboolean do_export_pdu(const char *filter, gchar *tap_name, gpointer data);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __TAP_EXPORT_PDU_H__ */
+
+/*
+ * Editor modelines
+ *
+ * Local Variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */