aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-05-26 19:11:23 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-05-26 19:11:23 +0000
commit65ee4e797adad6f26d5672bc0b4fbd00d7e41301 (patch)
treeb72e1350067ce80a8a61c6b82bf6157a2223f7a0 /file.h
parenta59da6ffd8d21d01eda12e61ebf1387fed0ae4dd (diff)
From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame It's much easier to write: cf_read_frame (cf, fdata, &err, &err_info) Than: wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd, fdata->cap_len, &err, &err_info) svn path=/trunk/; revision=32980
Diffstat (limited to 'file.h')
-rw-r--r--file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/file.h b/file.h
index b546f3e86f..f4e51c7d5d 100644
--- a/file.h
+++ b/file.h
@@ -110,6 +110,13 @@ void cf_reload(capture_file *cf);
*/
cf_read_status_t cf_read(capture_file *cf, gboolean from_save);
+gboolean cf_read_frame_r(capture_file *cf, frame_data *fdata,
+ union wtap_pseudo_header *pseudo_header, guint8 *pd,
+ int *err, gchar **err_info);
+
+gboolean cf_read_frame(capture_file *cf, frame_data *fdata,
+ int *err, gchar **err_info);
+
/**
* Start reading from the end of a capture file.
* This is used in "Update list of packets in Real-Time".