NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_version.h File Reference
#include <stddef.h>
#include <doca_compat.h>
Include dependency graph for doca_version.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DOCA_VERSION_MAJOR   3
 Major version number 0-255. More...
 
#define DOCA_VERSION_MINOR   0
 Minor version number 0-255. More...
 
#define DOCA_VERSION_PATCH   58
 Patch version number 0-9999. More...
 
#define DOCA_VERSION_STRING   "3.0.0058"
 DOCA Version String. More...
 
#define DOCA_VERSION_CALC_EXACT(major, minor, patch)   ((size_t)((major) << 24 | (minor) << 16 | (patch)))
 Macro to calculate exact version number for comparisons. More...
 
#define DOCA_VERSION_EXACT   DOCA_VERSION_CALC_EXACT(DOCA_VERSION_MAJOR, DOCA_VERSION_MINOR, DOCA_VERSION_PATCH)
 Macro of current exact version number. More...
 
#define DOCA_VERSION_CALC(major, minor, patch)   ((size_t)((major) << 24 | (minor) << 16 | (patch * 1000)))
 Macro to calculate official version number for comparisons. More...
 
#define DOCA_VERSION_OFFICIAL   DOCA_VERSION_CALC(DOCA_VERSION_MAJOR, DOCA_VERSION_MINOR, DOCA_VERSION_PATCH)
 Macro of current official version number. More...
 
#define DOCA_VERSION_EQ_CURRENT(major, minor, patch)   (DOCA_VERSION_CALC(major, minor, patch) == DOCA_VERSION_OFFICIAL)
 Check if the specified version is equal to the current official version. More...
 
#define DOCA_VERSION_LTE_CURRENT(major, minor, patch)   (DOCA_VERSION_CALC(major, minor, patch) <= DOCA_VERSION_OFFICIAL)
 Check if the specified version is less then or equal to current official version. More...
 

Functions

static const char * doca_version (void)
 Function returning DOCA's (SDK) exact version string. More...
 
DOCA_EXPERIMENTAL const char * doca_version_runtime (void)
 Function returning DOCA's (runtime) exact version string. More...