src/connectivity/bluetooth/core/bt-host/host_device.cc
// Route ddk fidl messages to the dispatcher function
Route ddk fidl messages to the dispatcher function
Route ddk fidl messages to the dispatcher function
zx_status_t HostDevice::DdkMessage(fidl_msg_t* msg, fidl_txn_t* txn) {
  static constexpr fuchsia_hardware_bluetooth_Host_ops_t fidl_ops = {
      .Open = [](void* ctx, zx_handle_t channel) {
        return static_cast<HostDevice*>(ctx)->OpenHostChannel(zx::channel(channel));
      }};
  bt_log(DEBUG, "bt-host", "fidl message");
  return fuchsia_hardware_bluetooth_Host_dispatch(this, txn, msg, &fidl_ops);
}
zx_status_t HostDevice :: DdkMessage ( fidl_msg_t * msg , fidl_txn_t * txn ) { static constexpr fuchsia_hardware_bluetooth_Host_ops_t fidl_ops = { . Open = [ ] ( void * ctx , zx_handle_t channel ) { return static_cast < HostDevice * > ( ctx ) -> OpenHostChannel ( zx :: channel ( channel ) ) ; } } ; bt_log ( DEBUG , " " , " " ) ; return fuchsia_hardware_bluetooth_Host_dispatch ( this , txn , msg , & fidl_ops ) ; }
Route ddk fidl messages to the dispatcher function
Route ddk fidl messages to the dispatcher function
// Struct containing function pointers for all fidl ops to be dispatched on