CNDP 22.08.0
Loading...
Searching...
No Matches
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)
#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,
d )
Value:
((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()

const char * cne_version ( void )
inlinestatic

Function returning version string

Returns
string

Definition at line 46 of file cne_version.h.