IDZEBRA  2.2.7
Functions
version.c File Reference

Implements Zebra version utilities. More...

#include <yaz/snprintf.h>
#include <string.h>
#include <idzebra/version.h>

Go to the source code of this file.

Functions

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

Detailed Description

Implements Zebra version utilities.

Definition in file version.c.

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().