[api] add a monotonic version number (#5012)

This commit is contained in:
Yakun Xu
2020-05-28 22:01:33 -07:00
committed by GitHub
parent 752ad977db
commit 72717f5178
+10
View File
@@ -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
*