XPLMUnregisterDataAccessor

From X-Plane SDK
Jump to: navigation, search

XPLMUnregisterDataAccessor

XPLM_API void                 XPLMUnregisterDataAccessor(
                                   XPLMDataRef          inDataRef);    

Use this routine to unregister any data accessors you may have registered. You unregister a data ref by the XPLMDataRef you get back from registration. Once you unregister a data ref, your function pointer will not be called anymore.

For maximum compatibility, do not unregister your data accessors until final shutdown (when your XPluginStop routine is called). This allows other plugins to find your data reference once and use it for their entire time of operation.