xref: /illumos-gate/usr/src/lib/libtecla/common/version.c (revision fc910014e8a32a65612105835a10995f2c13d942)
1 #include "libtecla.h"
2 
3 /*.......................................................................
4  * Return the version number of the tecla library.
5  *
6  * Input:
7  *  major    int *   The major version number of the library
8  *                   will be assigned to *major. This number is
9  *                   only incremented when a change to the library is
10  *                   made that breaks binary (shared library) and/or
11  *                   compilation backwards compatibility.
12  *  minor    int *   The minor version number of the library
13  *                   will be assigned to *minor. This number is
14  *                   incremented whenever new functions are added to
15  *                   the public API.
16  *  micro    int *   The micro version number of the library will be
17  *                   assigned to *micro. This number is incremented
18  *                   whenever internal changes are made that don't
19  *                   change the public API, such as bug fixes and
20  *                   performance enhancements.
21  */
22 void libtecla_version(int *major, int *minor, int *micro)
23 {
24   if(major)
25     *major = TECLA_MAJOR_VER;
26   if(minor)
27     *minor = TECLA_MINOR_VER;
28   if(micro)
29     *micro = TECLA_MICRO_VER;
30 }
31