YAZ  5.25.0
Macros | Functions
yaz-version.h File Reference

Defines YAZ version. More...

#include <yaz/yconfig.h>

Go to the source code of this file.

Macros

#define YAZ_VERSION   "5.25.0"
 YAZ version as string. More...
 
#define YAZ_VERSIONL   0x51900
 YAZ version as integer (for comparison purposes) More...
 
#define YAZ_FILEVERSION   5,25,0,1
 YAZ file version for YAZ DLL (resource) More...
 
#define YAZ_VERSION_SHA1   "1c5763e4be32dc7b7c3e6c89a03a1e85b51c2481"
 SHA1 ID for YAZ (Git) More...
 

Functions

unsigned long yaz_version (char *version_str, char *sha1_str)
 returns YAZ version More...
 

Detailed Description

Defines YAZ version.

Definition in file yaz-version.h.

Macro Definition Documentation

◆ YAZ_FILEVERSION

#define YAZ_FILEVERSION   5,25,0,1

YAZ file version for YAZ DLL (resource)

Definition at line 42 of file yaz-version.h.

◆ YAZ_VERSION

#define YAZ_VERSION   "5.25.0"

◆ YAZ_VERSION_SHA1

#define YAZ_VERSION_SHA1   "1c5763e4be32dc7b7c3e6c89a03a1e85b51c2481"

SHA1 ID for YAZ (Git)

Definition at line 45 of file yaz-version.h.

Referenced by show_version(), yaz_version(), zget_InitRequest(), and zget_InitResponse().

◆ YAZ_VERSIONL

#define YAZ_VERSIONL   0x51900

YAZ version as integer (for comparison purposes)

Definition at line 39 of file yaz-version.h.

Referenced by yaz_version().

Function Documentation

◆ yaz_version()

unsigned long yaz_version ( char *  version_str,
char *  sha1_str 
)

returns YAZ version

Parameters
version_strholds version upon completion (YAZ_VERSION)
sha1_strholds SHA1 (Git) upon completion (YAZ_VERSION_SHA1)
Returns
long version value (YAZ_VERSIONL)

The version_str may be NULL in which case version is not returned. When not-null, version_str, should point to a buffer of at least 20 charcters in size (including "\0"). The sha1_str may be NULL in which case the SHA1 is not returnd. When not-null, sha1_str whould point to a buffer of at least 41 characters in size (including "\0").

Definition at line 18 of file version.c.

References YAZ_VERSION, YAZ_VERSION_SHA1, and YAZ_VERSIONL.

Referenced by show_version().