IDZEBRA  2.1.4
Macros | Functions
version.h File Reference
#include <yaz/yconfig.h>

Go to the source code of this file.

Macros

#define ZEBRAVER   "2.1.4"
 Version as string. More...
 
#define ZEBRA_VERSIONL   0x20104
 Version as integer (for comparison purposes) More...
 
#define ZEBRA_FILEVERSION   2,1,4,1
 Version for Windows DLL/EXE. More...
 
#define ZEBRA_VERSION_SHA1   "45c729bb18ecdd3e0455f47765700b1c9754b1ce"
 SHA1 ID as generated by Git. More...
 

Functions

void zebra_get_version (char *version_str, char *sha1_str)
 Returns Zebra version and SHA1 ID as generated by Git. More...
 

Macro Definition Documentation

◆ ZEBRA_FILEVERSION

#define ZEBRA_FILEVERSION   2,1,4,1

Version for Windows DLL/EXE.

Definition at line 34 of file version.h.

◆ ZEBRA_VERSION_SHA1

#define ZEBRA_VERSION_SHA1   "45c729bb18ecdd3e0455f47765700b1c9754b1ce"

SHA1 ID as generated by Git.

Definition at line 37 of file version.h.

Referenced by zebra_get_version().

◆ ZEBRA_VERSIONL

#define ZEBRA_VERSIONL   0x20104

Version as integer (for comparison purposes)

Definition at line 31 of file version.h.

◆ ZEBRAVER

#define ZEBRAVER   "2.1.4"

Version as string.

Definition at line 28 of file version.h.

Referenced by main(), zebra_get_version(), and zebraExplain_writeTarget().

Function Documentation

◆ zebra_get_version()

void zebra_get_version ( char *  version_str,
char *  sha1_str 
)

Returns Zebra version and SHA1 ID as generated by Git.

Parameters
version_strbuffer for version (at least 16 bytes)
sha1_strSHA1 ID. Use NULL for not getting the ID
Returns
version as integer

The sha1_str if non-NULL must point to a buffer of at least 65 bytes (64 ID + null char).

Definition at line 33 of file version.c.

References ZEBRA_VERSION_SHA1, and ZEBRAVER.

Referenced by bend_init(), main(), and zebra_start_res().