|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Infuse version API . More...
Macros | |
| #define | infuse_version mcuboot_img_sem_ver |
| #define | INFUSE_VERSION_INT(v) |
| Convert version struct to sortable integer. | |
Functions | |
| 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 .
| #define infuse_version mcuboot_img_sem_ver |
#include <infuse/version.h>
| #define INFUSE_VERSION_INT | ( | v | ) |
#include <infuse/version.h>
Convert version struct to sortable integer.
| v | struct infuse_version pointer |
| uint32_t | equivalent integer |
| struct mcuboot_img_sem_ver application_version_get | ( | void | ) |
#include <infuse/version.h>
Get version of the currently running application.
|
inlinestatic |
#include <infuse/version.h>
Compare two version structures.
Return value follows the convention of the C library qsort function.
build_num field is ignored for comparison purposes.| a | First version to compare |
| b | Second version to compare |
| 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 |