From 5387063faa68d774e2f586e6d8284520f3cde12f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 2 May 2015 14:45:42 +0200 Subject: Include version information in all API descriptions --- pcilib/version.h.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pcilib/version.h.in (limited to 'pcilib/version.h.in') diff --git a/pcilib/version.h.in b/pcilib/version.h.in new file mode 100644 index 0000000..6eb3b20 --- /dev/null +++ b/pcilib/version.h.in @@ -0,0 +1,15 @@ +#ifndef _PCILIB_VERSION_H +#define _PCILIB_VERSION_H + +#define PCILIB_VERSION_MAJOR ${PCILIB_VERSION_MAJOR} +#define PCILIB_VERSION_MINOR ${PCILIB_VERSION_MINOR} +#define PCILIB_VERSION_MICRO ${PCILIB_VERSION_MICRO} + +#define PCILIB_MAKE_VERSION(major, minor, micro) ((major<<16)|(minor<<8)|(micro)) +#define PCILIB_VERSION_GET_MAJOR(version) ((version>>16)&&0xFF) +#define PCILIB_VERSION_GET_MINOR(version) ((version>>8)&&0xFF) +#define PCILIB_VERSION_GET_MICRO(version) ((version)&&0xFF) + +#define PCILIB_VERSION PCILIB_MAKE_VERSION(PCILIB_VERSION_MAJOR, PCILIB_VERSION_MINOR, PCILIB_VERSION_MICRO) + +#endif /* _PCILIB_VERSION_H */ -- cgit v1.2.3