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