From 8c9edf12800bc6d68894dc457e7ebaf994429da8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 16 Jun 2013 00:20:00 +0000 Subject: Have the seek-read routines take a Buffer rather than a guint8 pointer as the "where to put the packet data" argument. This lets more of the libwiretap code be common between the read and seek-read code paths, and also allows for more flexibility in the "fill in the data" path - we can expand the buffer as needed in both cases. svn path=/trunk/; revision=49949 --- file.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index 5d4c0700a8..b1f20530f7 100644 --- a/file.h +++ b/file.h @@ -145,15 +145,15 @@ cf_read_status_t cf_read(capture_file *cf, gboolean from_save); * @param fdata the frame_data structure for the packet in question * @param phdr pointer to a wtap_pkthdr structure to contain the * packet's pseudo-header and other metadata - * @param pd a guin8 array into which to read the packet's raw data + * @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, - struct wtap_pkthdr *phdr, guint8 *pd); + struct wtap_pkthdr *phdr, Buffer *buf); /** * Read the pseudo-header and raw data for a packet into a - * capture_file structure's pseudo_header and pd members. + * capture_file structure's pseudo_header 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 packet -- cgit v1.2.1