Interface version

As the XJTAG system is developed, new features are added to XJAPI and the prototypes of functions may need to be modified. To retain backwards compatibility, a macro XJAPI_VERSION can be defined before the header file xjapi.h is included to specify which version of the interface is required.

The macro should be set to a 3-byte value, where the most significant byte represents the major portion of the XJTAG/XJAPI version, the second byte the minor portion of the version and the least significant byte the revision number. For example, to use functionality added in XJTAG version 1.3.0:

#define XJAPI_VERSION 0x010300
#include <xjapi.h>