aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-23 10:50:02 +0000
committerGuy Harris <guy@alum.mit.edu>2014-05-23 10:50:10 +0000
commita344c9736efe5519543da1290e1ad9065d0b0cff (patch)
tree7757d80d74ae710e5d4e4a1b0cb638d0ec644fc4 /wiretap/wtap-int.h
parent716fdc8e398ea7435b23192ab1f7d59e7b21e32b (diff)
downloadwireshark-a344c9736efe5519543da1290e1ad9065d0b0cff.tar.gz
wireshark-a344c9736efe5519543da1290e1ad9065d0b0cff.tar.bz2
wireshark-a344c9736efe5519543da1290e1ad9065d0b0cff.zip
Revert "Allow wtap_read() and wtap_seek_read() to return non-packet records."
This reverts commit c0c480d08c175eed4524ea9e73ec86298f468cf4. A better way to do this is to have the record type be part of struct wtap_pkthdr; that keeps the metadata for the record together and requires fewer API changes. That is in-progress. Change-Id: Ic558f163a48e2c6d0df7f55e81a35a5e24b53bc6 Reviewed-on: https://code.wireshark.org/review/1741 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index 8291609b73..dfa3441835 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -40,10 +40,10 @@
WS_DLL_PUBLIC
int wtap_fstat(wtap *wth, ws_statb64 *statb, int *err);
-typedef int (*subtype_read_func)(struct wtap*, int*, char**, gint64*);
-typedef int (*subtype_seek_read_func)(struct wtap*, gint64,
- struct wtap_pkthdr *, Buffer *,
- int *, char **);
+typedef gboolean (*subtype_read_func)(struct wtap*, int*, char**, gint64*);
+typedef gboolean (*subtype_seek_read_func)(struct wtap*, gint64,
+ struct wtap_pkthdr *, Buffer *buf,
+ int *, char **);
/**
* Struct holding data of the currently read file.
*/