From b90a947429fdce96b1d684b9a7af9683cb4a13c1 Mon Sep 17 00:00:00 2001 From: Etienne Pierre-doray Date: Thu, 28 Oct 2021 21:16:04 +0000 Subject: [Zucchini]: Add patch version. This is a breaking change to zucchini patch format: Zucchini 1.0, see changelog. Add major/minor patch-wide version, and element version. Also add VerifyPatch() API and command line option to verify patch compatibility. Design: go/zucchini-versions Bug: 1231882 Change-Id: I19f1fbe2ee866c23f0814ffe6a912fb72812edbc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3140224 Commit-Queue: Etienne Pierre-Doray Reviewed-by: Samuel Huang Reviewed-by: Calder Kitagawa Cr-Commit-Position: refs/heads/main@{#936096} NOKEYCHECK=True GitOrigin-RevId: 559d77a9741428a48add017d389d104e431e6de7 --- element_detection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'element_detection.h') diff --git a/element_detection.h b/element_detection.h index 856ec27..febedc5 100644 --- a/element_detection.h +++ b/element_detection.h @@ -28,6 +28,9 @@ std::unique_ptr MakeDisassemblerWithoutFallback( std::unique_ptr MakeDisassemblerOfType(ConstBufferView image, ExecutableType exe_type); +// Returns the version associated with disassembler of type |exe_type|. +uint16_t DisassemblerVersionOfType(ExecutableType exe_type); + // Attempts to detect an element associated with |image| and returns it, or // returns nullopt if no element is detected. using ElementDetector = -- cgit v1.2.3