fsPlannedRouteRegisterForRequest

Registers a callback for route request from the EFB. This is triggered when the player clicks the "Sync Route From Avionics" button.

 

Syntax
bool fsPlannedRouteRegisterForRequest(
  fsPlannedRouteRequestCallback callback,
  void* ctx
)

 

Parameters
Parameter Description Type
callback The callback to call when a route request is received from the EFB. Callback
ctx A user data pointer that will be sent with the callback. Pointer

 

Return Values

The function will return a bool indicating if the call was successful.

  

Remarks

Modules which have registered callbacks via this function will receive route request IDs when the player requests a route from avionics to be synchronized to the EFB. Responses should be made with the fsPlannedRouteRespondToRequest function.

 

Only one response should be made to any given request. If multiple responses are made, undefined behavior may occur on the EFB.