XPLMGetDatai
XPLM_API int XPLMGetDatai(
XPLMDataRef inDataRef);
Read an integer data ref and return its value. The return value is the dataref value or 0 if the dataref is NULL or the plugin is disabled.