/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/version.h.in

  • Committer: Suren A. Chilingaryan
  • Date: 2015-05-02 12:45:42 UTC
  • Revision ID: csa@suren.me-20150502124542-u57tbtwoix0qfhb8
Include version information in all API descriptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_VERSION_H
 
2
#define _PCILIB_VERSION_H
 
3
 
 
4
#define PCILIB_VERSION_MAJOR ${PCILIB_VERSION_MAJOR}
 
5
#define PCILIB_VERSION_MINOR ${PCILIB_VERSION_MINOR}
 
6
#define PCILIB_VERSION_MICRO ${PCILIB_VERSION_MICRO}
 
7
 
 
8
#define PCILIB_MAKE_VERSION(major, minor, micro) ((major<<16)|(minor<<8)|(micro))
 
9
#define PCILIB_VERSION_GET_MAJOR(version) ((version>>16)&&0xFF)
 
10
#define PCILIB_VERSION_GET_MINOR(version) ((version>>8)&&0xFF)
 
11
#define PCILIB_VERSION_GET_MICRO(version) ((version)&&0xFF)
 
12
 
 
13
#define PCILIB_VERSION PCILIB_MAKE_VERSION(PCILIB_VERSION_MAJOR, PCILIB_VERSION_MINOR, PCILIB_VERSION_MICRO)
 
14
 
 
15
#endif /* _PCILIB_VERSION_H */