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