diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-05-27 13:47:55 -0700 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-05-27 13:47:55 -0700 |
commit | bc8510c4ea9da320e263b2eecd11a7b309b0e11e (patch) | |
tree | e1e5325f3635848c95c680d8ea92874e37653007 /libtecla/version.c | |
parent | .gitignore: New file (diff) | |
download | rtems-addon-packages-bc8510c4ea9da320e263b2eecd11a7b309b0e11e.tar.bz2 |
Add libtecla 1.6.3
Diffstat (limited to 'libtecla/version.c')
-rw-r--r-- | libtecla/version.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libtecla/version.c b/libtecla/version.c new file mode 100644 index 0000000..9e1275e --- /dev/null +++ b/libtecla/version.c @@ -0,0 +1,30 @@ +#include "libtecla.h" + +/*....................................................................... + * Return the version number of the tecla library. + * + * Input: + * major int * The major version number of the library + * will be assigned to *major. This number is + * only incremented when a change to the library is + * made that breaks binary (shared library) and/or + * compilation backwards compatibility. + * minor int * The minor version number of the library + * will be assigned to *minor. This number is + * incremented whenever new functions are added to + * the public API. + * micro int * The micro version number of the library will be + * assigned to *micro. This number is incremented + * whenever internal changes are made that don't + * change the public API, such as bug fixes and + * performance enhancements. + */ +void libtecla_version(int *major, int *minor, int *micro) +{ + if(major) + *major = TECLA_MAJOR_VER; + if(minor) + *minor = TECLA_MINOR_VER; + if(micro) + *micro = TECLA_MICRO_VER; +} |