diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3733,6 +3733,15 @@ cf_update_packet_comment(capture_file *cf, frame_data *fdata, gchar *comment) cf->unsaved_changes = TRUE; } +/* + * Does this capture file have any comments? + */ +gboolean +cf_has_comments(capture_file *cf) +{ + return (cf_read_shb_comment(cf) != NULL || cf->packet_comment_count != 0); +} + typedef struct { wtap_dumper *pdh; const char *fname; |