summaryrefslogtreecommitdiff
path: root/wiretap/5views.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-09 11:54:18 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-09 19:55:13 +0000
commit09f5ff4fc6895f375b3ea07f6151d8e09377fd52 (patch)
tree5829d926242a6297803d52417c41ea5512536c23 /wiretap/5views.c
parentfe12759b8e0370dd3e4e8434b4140c098ade7a38 (diff)
downloadwireshark-09f5ff4fc6895f375b3ea07f6151d8e09377fd52.tar.gz
Call the dumper routine to finish write a file the "finish" routine.
It doesn't actually *close* any handle, so it's best called a "finish" routine rather than a "close" routine. In libwiretap modules, don't bother setting the finish routine pointer to null - it's already initialized to null (it's probably best not to require modules to set it). Change-Id: I19554f3fb826db495f17b36600ae36222cbc21b0 Reviewed-on: https://code.wireshark.org/review/11659 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/5views.c')
-rw-r--r--wiretap/5views.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/5views.c b/wiretap/5views.c
index ce0e4cf34e..1c693a4c58 100644
--- a/wiretap/5views.c
+++ b/wiretap/5views.c
@@ -105,7 +105,7 @@ static int _5views_read_header(wtap *wth, FILE_T fh, t_5VW_TimeStamped_Header *h
struct wtap_pkthdr *phdr, int *err, gchar **err_info);
static gboolean _5views_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err, gchar **err_info);
-static gboolean _5views_dump_close(wtap_dumper *wdh, int *err);
+static gboolean _5views_dump_finish(wtap_dumper *wdh, int *err);
wtap_open_return_val
@@ -337,7 +337,7 @@ gboolean _5views_dump_open(wtap_dumper *wdh, int *err)
/* This is a 5Views file */
wdh->subtype_write = _5views_dump;
- wdh->subtype_close = _5views_dump_close;
+ wdh->subtype_finish = _5views_dump_finish;
_5views = (_5views_dump_t *)g_malloc(sizeof(_5views_dump_t));
wdh->priv = (void *)_5views;
_5views->nframes = 0;
@@ -395,7 +395,7 @@ static gboolean _5views_dump(wtap_dumper *wdh,
return TRUE;
}
-static gboolean _5views_dump_close(wtap_dumper *wdh, int *err)
+static gboolean _5views_dump_finish(wtap_dumper *wdh, int *err)
{
_5views_dump_t *_5views = (_5views_dump_t *)wdh->priv;
t_5VW_Capture_Header file_hdr;