Infuse version API.
More...
|
| struct mcuboot_img_sem_ver | application_version_get (void) |
| | Get version of the currently running application.
|
| static int | infuse_version_compare (struct mcuboot_img_sem_ver *a, struct mcuboot_img_sem_ver *b) |
| | Compare two version structures.
|
Infuse version API.
◆ infuse_version
| #define infuse_version mcuboot_img_sem_ver |
◆ INFUSE_VERSION_INT
| #define INFUSE_VERSION_INT |
( |
| v | ) |
|
◆ application_version_get()
| struct mcuboot_img_sem_ver application_version_get |
( |
void | | ) |
|
◆ infuse_version_compare()
| int infuse_version_compare |
( |
struct mcuboot_img_sem_ver * | a, |
|
|
struct mcuboot_img_sem_ver * | b ) |
|
inlinestatic |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/version.h>
Compare two version structures.
Return value follows the convention of the C library qsort function.
- Note
- The build_num field is ignored for comparison purposes.
- Parameters
-
| a | First version to compare |
| b | Second version to compare |
- Return values
-
| 1 | a is an earlier version than b |
| -1 | a is a later version than b |
| 0 | if a and b are the same version |