User's Manual

Table Of Contents
4-14 Millennial Net
Using the MeshScape API
20. ibApi_Heatbeat_EVENT_DATA
typedef struct {
ibApi_UINT8 dataType; // Must be first!
ibApi_BOOL heartBeat; // Will always be set to
ibApi_TRUE
ibApi_DEVICEID deviceID;
}
This data structure will be passed to event callbacks to convey information about heart beat
events.
Use the first argument ibApi_EVENTMASK to determine how to cast the callback data.
21. ibApi_VERSION
typedef ibApi_UINT32 ibApi_VERSION;
#define ibApi_MAKE_VERSION(MAJOR,MINOR,RELEASE)
((ibApi_VERSION)((MAJOR<<16)|(MINOR<<8)|RELEASE))
#define ibApi_GET_VERSION_MAJOR(VER) ((VER>>16) & 0xff)
#define ibApi_GET_VERSION_MINOR(VER) ((VER>>8) & 0xff)
#define ibApi_GET_VERSION_RELEASE(VER) (VER & 0xff)
These macros encode API version numbers as a 32-bit integer. Binary compatibility is only
guaranteed when the major and minor components are the same. Note that this is a
non-negative number to enable casting as ibApi_RESULT.
22. ibApi_EXPECTED_VERSION
#define ibApi_EXPECTED_MASC_VERSION
ibApi_MAKE_VERSION(N,N,N)
This macro encodes the API version number that the application was compiled with. It is
passed to ibApi_Open() as a safeguard to ensure that the correct DLL file is being loaded
by the application. Note that N, N, N above represents the API version number, for example,
5.0.13.