aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Cheng <kevin.cheng@arm.com>2021-11-10 14:07:34 -0800
committerKevin Cheng <kevin.cheng@arm.com>2021-11-15 05:55:17 -0800
commita81a7a1b4e4c6a947604982ec2da3e0753627c51 (patch)
tree0394b3a3414fe226f12dd949a9aef457317467f7 /include
parent545a508429afe1d22760563d252839e13ecd12a3 (diff)
downloadserialization_lib-a81a7a1b4e4c6a947604982ec2da3e0753627c51.tar.gz
Parse and check schema version when LoadSchemaFile()
- This is useful if user has two different copies of serialization_lib code, an incorrectly load the incompatible one. Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: I0f241d2ddbb7188df030cc5dddaa6a0b5dad7a45
Diffstat (limited to 'include')
-rw-r--r--include/tosa_serialization_handler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tosa_serialization_handler.h b/include/tosa_serialization_handler.h
index b07fa3b..b588fa0 100644
--- a/include/tosa_serialization_handler.h
+++ b/include/tosa_serialization_handler.h
@@ -377,6 +377,7 @@ protected:
tosa_err_t Clear();
tosa_err_t Deserialize(const uint8_t* buf);
tosa_err_t Serialize();
+ TosaVersion ParseTosaSchemaVersion(std::string schema);
private:
TosaVersion _version; /* version struct */