From 72717f517876dbb6938a8c2b1820b520fb397c6c Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Fri, 29 May 2020 13:01:33 +0800 Subject: [PATCH] [api] add a monotonic version number (#5012) --- include/openthread/instance.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/openthread/instance.h b/include/openthread/instance.h index 4f69083f6..d32eb65d8 100644 --- a/include/openthread/instance.h +++ b/include/openthread/instance.h @@ -45,6 +45,16 @@ extern "C" { #endif +/** + * The OpenThread API monotonic version number. + * + * This number MUST increase by one each time the contents of public OpenThread API include headers change. + * + * @note This number versions both OpenThread platform and user APIs. + * + */ +#define OPENTHREAD_API_VERSION (1) + /** * @addtogroup api-instance *