From a81a7a1b4e4c6a947604982ec2da3e0753627c51 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Wed, 10 Nov 2021 14:07:34 -0800 Subject: 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 Change-Id: I0f241d2ddbb7188df030cc5dddaa6a0b5dad7a45 --- include/tosa_serialization_handler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/tosa_serialization_handler.h') 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 */ -- cgit v1.2.1