Crinit -- Configurable Rootfs Init
version.h File Reference

(2023-08-02, commit: 9434b31)

Header definitions related to component versioning. More...

#include <stdint.h>
Include dependency graph for version.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crinitVersion_t
 

Macros

#define CRINIT_GIT_HASH_MAX_LEN   40
 

Typedefs

typedef struct crinitVersion_t crinitVersion_t
 

Functions

const char * crinitGetVersionString (void)
 

Variables

const crinitVersion_t crinitVersion
 

Detailed Description

Header definitions related to component versioning.

Macro Definition Documentation

◆ CRINIT_GIT_HASH_MAX_LEN

#define CRINIT_GIT_HASH_MAX_LEN   40

Maximum length of a git commit ID in characters.

Typedef Documentation

◆ crinitVersion_t

Structure to hold version information for this software component.

Function Documentation

◆ crinitGetVersionString()

const char* crinitGetVersionString ( void  )

Returns a const char pointer to a formatted human-readable version string for this software component.

Generated via CMake in version.c.in. Format is MAJOR.MINOR.MICRO.GIT if a git commit hash exists or MAJOR.MINOR.MICRO if the git hash is an empty string.

Returns
Pointer to a version string constant.

Variable Documentation

◆ crinitVersion

const crinitVersion_t crinitVersion
extern

Crinit software component version. Generated via CMake in version.c.in.