summaryrefslogtreecommitdiff
path: root/ui/tap_export_pdu.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-15 13:15:27 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-15 20:15:59 +0000
commit480089435746411ac973cc2d3146be6f7317ec5f (patch)
tree52979b6f1c89b8a0bd6f0b40992fc9eba7f2b1a6 /ui/tap_export_pdu.h
parent52a4f3d121765ce758c16137b03e7b9d2e15908c (diff)
downloadwireshark-480089435746411ac973cc2d3146be6f7317ec5f.tar.gz
Cleanup the "export PDU" common code.
exp_pdu_file_open() isn't used outside ui/tap_export_pdu.c; make it static. do_export_pdu() isn't a tap routine, it's called *from* tap routines, so its last argument doesn't need to be a generic pointer; its last argument must be a pointer to an exp_pdu_t, so declare it as such. Clean up comments while we're at it. Change-Id: Iab51b54a0c272052d7876110a095f2fff66fa2c1 Reviewed-on: https://code.wireshark.org/review/3060 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/tap_export_pdu.h')
-rw-r--r--ui/tap_export_pdu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/tap_export_pdu.h b/ui/tap_export_pdu.h
index 25c39d733a..df6b5bad45 100644
--- a/ui/tap_export_pdu.h
+++ b/ui/tap_export_pdu.h
@@ -1,5 +1,5 @@
/* tap_export_pdu.h
- * Routines for exporting PDU:s to file
+ * Routines for exporting PDUs to file
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
@@ -32,8 +32,7 @@ typedef struct _exp_pdu_t {
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);
+gboolean do_export_pdu(const char *filter, gchar *tap_name, exp_pdu_t *data);
#ifdef __cplusplus
}