diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-08-01 20:59:38 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-08-01 20:59:38 +0000 |
commit | 08eb36b5af5da365087ea19194a0a00bd1310ce2 (patch) | |
tree | bc8a0b2ba1a0816c79a164025e72873a4cbab715 /file.h | |
parent | 6c5e16185dfd4c9e955618f56ac8827ad7eda9e7 (diff) | |
download | wireshark-08eb36b5af5da365087ea19194a0a00bd1310ce2.tar.gz |
Remove fdata->opt_comment, add pkt_comment to pinfo
Original (read from file) comments can be accessed by pkthdr->opt_comment
Keep user comments in seperated BST, add new method for epan session to get it.
svn path=/trunk/; revision=51090
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -148,7 +148,7 @@ cf_read_status_t cf_read(capture_file *cf, gboolean from_save); * @param buf a Buffer into which to read the packet's raw data * @return TRUE if the read succeeded, FALSE if there was an error */ -gboolean cf_read_frame_r(capture_file *cf, frame_data *fdata, +gboolean cf_read_frame_r(capture_file *cf, const frame_data *fdata, struct wtap_pkthdr *phdr, Buffer *buf); /** @@ -667,6 +667,8 @@ const gchar* cf_read_shb_comment(capture_file *cf); */ void cf_update_capture_comment(capture_file *cf, gchar *comment); +char *cf_get_comment(capture_file *cf, const frame_data *fd); + /** * Update(replace) the comment on a capture from a frame * @@ -674,7 +676,7 @@ void cf_update_capture_comment(capture_file *cf, gchar *comment); * @param fdata the frame_data structure for the frame * @param comment the string replacing the old comment */ -void cf_update_packet_comment(capture_file *cf, frame_data *fdata, gchar *comment); +gboolean cf_set_user_packet_comment(capture_file *cf, frame_data *fd, const gchar *new_comment); /** * What types of comments does this file have? |