aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r--wiretap/wtap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 00c12f0191..7a6ee5ca48 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -112,6 +112,13 @@ wtapng_section_t* wtap_file_get_shb_info(wtap *wth)
return shb_hdr;
}
+void wtap_write_shb_comment(wtap *wth, gchar *comment)
+{
+ g_free(wth->shb_hdr.opt_comment);
+ wth->shb_hdr.opt_comment = comment;
+
+}
+
wtapng_iface_descriptions_t* wtap_file_get_idb_info(wtap *wth)
{
wtapng_iface_descriptions_t *idb_info;