summaryrefslogtreecommitdiff
path: root/include/wabt/binary-reader.h
diff options
context:
space:
mode:
authorDiego Frias <styx5242@gmail.com>2023-09-15 13:49:31 -0700
committerGitHub <noreply@github.com>2023-09-15 13:49:31 -0700
commitb22be5a08611c53e8a893bbab049e6f18da6c55a (patch)
tree9b998aee94bada6db5b5715afe99d806167c8d52 /include/wabt/binary-reader.h
parent0869da3eb84616b0dabefc34ea0d5326c1f43888 (diff)
downloadwabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.tar.gz
wabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.tar.bz2
wabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.zip
Implement custom section reading/writing (#2284)
Diffstat (limited to 'include/wabt/binary-reader.h')
-rw-r--r--include/wabt/binary-reader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wabt/binary-reader.h b/include/wabt/binary-reader.h
index 1099e217..de7c4e8f 100644
--- a/include/wabt/binary-reader.h
+++ b/include/wabt/binary-reader.h
@@ -424,6 +424,13 @@ class BinaryReaderDelegate {
virtual Result OnFeature(uint8_t prefix, std::string_view name) = 0;
virtual Result EndTargetFeaturesSection() = 0;
+ /* Generic custom section */
+ virtual Result BeginGenericCustomSection(Offset size) = 0;
+ virtual Result OnGenericCustomSection(std::string_view name,
+ const void* data,
+ Offset size) = 0;
+ virtual Result EndGenericCustomSection() = 0;
+
/* Linking section */
virtual Result BeginLinkingSection(Offset size) = 0;
virtual Result OnSymbolCount(Index count) = 0;