aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'file.h')
-rw-r--r--file.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/file.h b/file.h
index 18e537f151..0d9bcb318e 100644
--- a/file.h
+++ b/file.h
@@ -150,8 +150,19 @@ cf_read_status_t cf_read(capture_file *cf, gboolean from_save);
* @param buf a Buffer into which to read the record's raw data
* @return TRUE if the read succeeded, FALSE if there was an error
*/
-gboolean cf_read_record(capture_file *cf, const frame_data *fdata,
- wtap_rec *rec, Buffer *buf);
+gboolean cf_read_record_r(capture_file *cf, const frame_data *fdata,
+ wtap_rec *rec, Buffer *buf);
+
+/**
+ * Read the metadata and raw data for a record into a
+ * capture_file structure's phdr and buf members.
+ * It will pop up an alert box if there's an error.
+ *
+ * @param cf the capture file from which to read the record
+ * @param fdata the frame_data structure for the record in question
+ * @return TRUE if the read succeeded, FALSE if there was an error
+ */
+gboolean cf_read_record(capture_file *cf, frame_data *fdata);
/**
* Read packets from the "end" of a capture file.