From 124659e45004bc70e783389ebc94a40260150aa1 Mon Sep 17 00:00:00 2001 From: Lev Proleev Date: Fri, 31 Jan 2020 14:18:03 +0000 Subject: [PATCH] NNAPI: Add OptionalTimeoutDuration to 1.3/types.t To sync 1.3/types.t with 1.3/types.hal Test: generate_api.sh Change-Id: I6a6e46ec82b4f25d77f7e1af18cc9d6f9478e5b7 Merged-In: I6a6e46ec82b4f25d77f7e1af18cc9d6f9478e5b7 (cherry picked from commit a9c097abec1b3ebb909638e36b37c2a908a88c47) --- neuralnetworks/1.3/types.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/neuralnetworks/1.3/types.t b/neuralnetworks/1.3/types.t index a973923d8d..d4351ec8d7 100644 --- a/neuralnetworks/1.3/types.t +++ b/neuralnetworks/1.3/types.t @@ -552,6 +552,19 @@ safe_union OptionalTimePoint { uint64_t nanoseconds; }; +/** + * Optional timeout duration measured in nanoseconds. + */ +safe_union OptionalTimeoutDuration { + /** No time point provided. */ + Monostate none; + + /** + * Timeout duration measured in nanoseconds. + */ + uint64_t nanoseconds; +}; + /** * Return status of a function. */