diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-02-26 17:04:28 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-02-26 17:04:28 +0000 |
commit | 38c69c84316d96ba5513e86a3745b02472730434 (patch) | |
tree | d596516237fe03a9ec7b96cd63c85f617768baa4 /wiretap/wtap.c | |
parent | e5a91c8632651e7959e2ab53fe98e2c53c935cb7 (diff) |
Make it possible to edit capture comments
svn path=/trunk/; revision=41193
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 7 |
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; |