Liara interface version definitions. More...
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | LIARA_MAKE_VERSION(major, minor, patch) |
| Create a version number from major, minor, and patch components. | |
| #define | LIARA_VERSION_MAJOR(v) |
| Extract the major version component from a combined version number. | |
| #define | LIARA_VERSION_MINOR(v) |
| Extract the minor version component from a combined version number. | |
| #define | LIARA_VERSION_PATCH(v) |
| Extract the patch version component from a combined version number. | |
| #define | LIARA_INTERFACE_VERSION |
| The current version of the Liara interface. | |
Enumerations | |
| enum | { LIARA_INTERFACE_VERSION_MAJOR = 0 , LIARA_INTERFACE_VERSION_MINOR = 0 , LIARA_INTERFACE_VERSION_PATCH = 0 } |
| Liara interface version components. More... | |
Functions | |
| static uint32_t | liara_make_version (uint32_t major, uint32_t minor, uint32_t patch) |
| Inline function to create a version number from major, minor, and patch components. | |
| static uint32_t | liara_version_major (uint32_t v) |
| Inline function to extract the major version component from a combined version number. | |
| static uint32_t | liara_version_minor (uint32_t v) |
| Inline function to extract the minor version component from a combined version number. | |
| static uint32_t | liara_version_patch (uint32_t v) |
| Inline function to extract the patch version component from a combined version number. | |
| static uint32_t | liara_interface_version (void) |
| Inline function to get the current version of the Liara interface. | |
Liara interface version definitions.
This header defines the versioning scheme for the Liara interface, including macros and inline functions for creating and extracting version numbers.
The version is represented as a 32-bit unsigned integer, where:
This allows for a maximum major version of 1023, a maximum minor version of 1023, and a maximum patch version of 4095.
| #define LIARA_INTERFACE_VERSION |
The current version of the Liara interface.
This macro defines the current version of the Liara interface by combining the major, minor, and patch version numbers defined above. It can be used to check for compatibility with specific versions of the interface.
@threadsafety This macro is thread-safe as it does not modify any shared state.
| #define LIARA_MAKE_VERSION | ( | major, | |
| minor, | |||
| patch ) |
Create a version number from major, minor, and patch components.
This macro combines the major, minor, and patch version numbers into a single 32-bit unsigned integer.
| major | The major version number (0-1023). |
| minor | The minor version number (0-1023). |
| patch | The patch version number (0-4095). |
@threadsafety This macro is thread-safe as it does not modify any shared state.
| #define LIARA_VERSION_MAJOR | ( | v | ) |
Extract the major version component from a combined version number.
This macro extracts the major version number from a combined version number by shifting and masking.
| v | The combined version number from which to extract the major version. |
@threadsafety This macro is thread-safe as it does not modify any shared state.
| #define LIARA_VERSION_MINOR | ( | v | ) |
Extract the minor version component from a combined version number.
This macro extracts the minor version number from a combined version number by shifting and masking.
| v | The combined version number from which to extract the minor version. |
@threadsafety This macro is thread-safe as it does not modify any shared state.
| #define LIARA_VERSION_PATCH | ( | v | ) |
Extract the patch version component from a combined version number.
This macro extracts the patch version number from a combined version number by masking.
| v | The combined version number from which to extract the patch version. |
@threadsafety This macro is thread-safe as it does not modify any shared state.
| anonymous enum |
Liara interface version components.
These constants define the major, minor, and patch version numbers for the Liara interface. They can be updated as needed to reflect changes in the interface.
|
inlinestatic |
Inline function to get the current version of the Liara interface.
This function is a wrapper around the LIARA_INTERFACE_VERSION macro for other languages that may not support macros or for better type safety in C. It returns the current version of the Liara interface by combining the major, minor, and patch version numbers defined above.
@threadsafety This function is thread-safe as it does not modify any shared state.
|
inlinestatic |
Inline function to create a version number from major, minor, and patch components.
This function is a wrapper around the LIARA_MAKE_VERSION macro for other languages that may not support macros or for better type safety in C. It combines the major, minor, and patch version numbers into a single 32-bit unsigned integer.
| major | The major version number (0-1023). |
| minor | The minor version number (0-1023). |
| patch | The patch version number (0-4095). |
@threadsafety This function is thread-safe as it does not modify any shared state.
|
inlinestatic |
Inline function to extract the major version component from a combined version number.
This function is a wrapper around the LIARA_VERSION_MAJOR macro for other languages that may not support macros or for better type safety in C. It extracts the major version number from a combined version number by shifting and masking.
| v | The combined version number from which to extract the major version. |
@threadsafety This function is thread-safe as it does not modify any shared state.
|
inlinestatic |
Inline function to extract the minor version component from a combined version number.
This function is a wrapper around the LIARA_VERSION_MINOR macro for other languages that may not support macros or for better type safety in C. It extracts the minor version number from a combined version number by shifting and masking.
| v | The combined version number from which to extract the minor version. |
@threadsafety This function is thread-safe as it does not modify any shared state.
|
inlinestatic |
Inline function to extract the patch version component from a combined version number.
This function is a wrapper around the LIARA_VERSION_PATCH macro for other languages that may not support macros or for better type safety in C. It extracts the patch version number from a combined version number by masking.
| v | The combined version number from which to extract the patch version. |
@threadsafety This function is thread-safe as it does not modify any shared state.