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