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