CNDP  22.08.0
cne_version.h File Reference
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <cne_common.h>

Go to the source code of this file.

Macros

#define CNE_VERSION_NUM(a, b, c, d)   ((a) << 24 | (b) << 16 | (c) << 8 | (d))
 
#define CNE_VERSION
 

Functions

static const char * cne_version (void)
 

Detailed Description

Definitions of CNDP version numbers

Definition in file cne_version.h.

Macro Definition Documentation

◆ CNE_VERSION_NUM

#define CNE_VERSION_NUM (   a,
  b,
  c,
 
)    ((a) << 24 | (b) << 16 | (c) << 8 | (d))

Macro to compute a version number usable for comparisons

Definition at line 26 of file cne_version.h.

◆ CNE_VERSION

#define CNE_VERSION
Value:
CNE_VER_YEAR, \
CNE_VER_MONTH, \
CNE_VER_MINOR, \
CNE_VER_RELEASE)
#define CNE_VERSION_NUM(a, b, c, d)
Definition: cne_version.h:26

All version numbers in one define to compare with CNE_VERSION_NUM()

Definition at line 32 of file cne_version.h.

Function Documentation

◆ cne_version()

static const char* cne_version ( void  )
inlinestatic

Function returning version string

Returns
string

Definition at line 46 of file cne_version.h.