Skip to content

Commit

Permalink
[utils] add mNcp to VendorServer (#1958)
Browse files Browse the repository at this point in the history
BinderServer on Android will need to retrieve the `mNcp` object from
the VendorServer.
  • Loading branch information
wgtdkp authored Aug 3, 2023
1 parent 03d694d commit 54f465f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/agent/vendor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,19 @@ class VendorServer
* @param[in] aNcp A reference to the NCP controller.
*
*/
VendorServer(otbr::Ncp::ControllerOpenThread &aNcp);
VendorServer(otbr::Ncp::ControllerOpenThread &aNcp)
: mNcp(aNcp)
{
}

/**
* This method initializes the vendor server.
*
*/
void Init(void);

private:
otbr::Ncp::ControllerOpenThread &mNcp;
};
} // namespace vendor
} // namespace otbr
Expand Down

0 comments on commit 54f465f

Please sign in to comment.