diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-26 19:11:23 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-26 19:11:23 +0000 |
commit | 2ec4f9e91612934c7c60dca4035db0112a8217c2 (patch) | |
tree | b72e1350067ce80a8a61c6b82bf6157a2223f7a0 /file.h | |
parent | e56b0df98f54a77bd7e8e112ba722e45f27bd0d5 (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)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32980 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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". |