summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-20 14:36:52 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-20 21:37:41 +0000
commit77f969958c75a8ba138d5adeeddbef50664f52c0 (patch)
tree1651eb1a190dde5c94b934665d10b6b863e0c410 /file.h
parent0bbe48304a50b6f664c2cef8181c5ba90b62b073 (diff)
downloadwireshark-77f969958c75a8ba138d5adeeddbef50664f52c0.tar.gz
Fix support for writing out edited records.
Add a cf_set_frame_edited() routine to set the record header and data for a record; have it do all the non-GUI work, and have it set the file's "unsaved changes" flag. Have the GUI code just call that routine and then update the title bar to reflect the unsaved changes. While we're at it, unmark a no-longer-unused argument to save_record(). Change-Id: Ieb513fdf423b388519527621ecec4cf634b98caf Reviewed-on: https://code.wireshark.org/review/4885 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.h')
-rw-r--r--file.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/file.h b/file.h
index 79c76d29f3..51ed688f6d 100644
--- a/file.h
+++ b/file.h
@@ -673,6 +673,18 @@ gboolean cf_set_user_packet_comment(capture_file *cf, frame_data *fd, const gcha
*/
guint32 cf_comment_types(capture_file *cf);
+#ifdef WANT_PACKET_EDITOR
+/**
+ * Give a frame new, edited data.
+ *
+ * @param cf the capture file
+ * @param fd frame_data structure for the frame
+ * @param phdr the struct wtap_pkthdr for the frame
+ * @param pd the raw packet data for the frame
+ */
+void cf_set_frame_edited(capture_file *cf, frame_data *fd, struct wtap_pkthdr *phdr, guint8 *pd);
+#endif
+
#if defined(HAVE_HEIMDAL_KERBEROS) || defined(HAVE_MIT_KERBEROS)
WS_DLL_PUBLIC
void read_keytab_file(const char *);