Run-time checks against KOS's current version.
More...
|
| bool | kos_version_above (uint8_t major, uint16_t minor, uint8_t patch) |
| | Above version run-time check for KOS.
|
| |
| bool | kos_version_min (uint8_t major, uint16_t minor, uint8_t patch) |
| | Minimum version run-time check for KOS.
|
| |
| bool | kos_version_is (uint8_t major, uint16_t minor, uint8_t patch) |
| | Exact version run-time check for KOS.
|
| |
| bool | kos_version_max (uint8_t major, uint16_t minor, uint8_t patch) |
| | Maximum version run-time check for KOS.
|
| |
| bool | kos_version_below (uint8_t major, uint16_t minor, uint8_t patch) |
| | Below version run-time check for KOS.
|
| |
Run-time checks against KOS's current version.
This API provides several utility functions to check for a particular exact, min, or max run-time version for KOS.
They are meant to be used as conditional expressions as such:
bool kos_version_min(uint8_t major, uint16_t minor, uint8_t patch)
Minimum version run-time check for KOS.
bool kos_version_below(uint8_t major, uint16_t minor, uint8_t patch)
Below version run-time check for KOS.
bool kos_version_is(uint8_t major, uint16_t minor, uint8_t patch)
Exact version run-time check for KOS.
◆ kos_version_above()
| bool kos_version_above |
( |
uint8_t | major, |
|
|
uint16_t | minor, |
|
|
uint8_t | patch ) |
Above version run-time check for KOS.
Check whether the current run-time version of KOS is above the given version.
- Parameters
-
| major | Major version component. |
| minor | Minor version component. |
| patch | Patch version component. |
- Return values
-
| true | KOS is above the given version. |
| false | KOS is at or below the given version. |
◆ kos_version_below()
| bool kos_version_below |
( |
uint8_t | major, |
|
|
uint16_t | minor, |
|
|
uint8_t | patch ) |
Below version run-time check for KOS.
Checks whether the current run-time version of KOS is below the given version.
- Parameters
-
| major | Major version component. |
| minor | Minor version component. |
| patch | Patch version component. |
- Return values
-
| true | KOS is below the given version. |
| false | KOS is at or above the given version. |
◆ kos_version_is()
| bool kos_version_is |
( |
uint8_t | major, |
|
|
uint16_t | minor, |
|
|
uint8_t | patch ) |
Exact version run-time check for KOS.
Checks whether the current run-time version of KOS matches the given version.
- Parameters
-
| major | Major version component. |
| minor | Minor version component. |
| patch | Patch version component. |
- Return values
-
| true | The version matches exactly. |
| false | The version does not match. |
◆ kos_version_max()
| bool kos_version_max |
( |
uint8_t | major, |
|
|
uint16_t | minor, |
|
|
uint8_t | patch ) |
Maximum version run-time check for KOS.
Checks whether the current run-time version of KOS is at most the given version.
- Parameters
-
| major | Major version component. |
| minor | Minor version component. |
| patch | Patch version component. |
- Return values
-
| true | KOS is at or below the maximum version. |
| false | KOS is above the maximum version. |
◆ kos_version_min()
| bool kos_version_min |
( |
uint8_t | major, |
|
|
uint16_t | minor, |
|
|
uint8_t | patch ) |
Minimum version run-time check for KOS.
Check whether the current run-time version of KOS is at least the given version.
- Parameters
-
| major | Major version component. |
| minor | Minor version component. |
| patch | patch version component. |
- Return values
-
| true | KOS is at or above the minimum version. |
| false | KOS is below teh minimum version. |