You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is the forward declaration required? I am concerned when these show up since it may hint that some circular dependencies or wrong build dependencies are being introduced (i.e. we can use this to bypass gn enforcement of library dependencies).
You are correct in the sense that CHIPDeviceController.h includes SetUpCodePairer.h and SetupCodePairer.h declares a member of type DeviceCommissioner which is defined into CHIPDeviceController.h.
As I mentioned in the initial comment of the issue, all the "mdns" operations are tied to CHIPDeviceController, and SetupCodePairer uses it... It is unclear that this mdns code needs to be tied to CHIPDeviceController directly.
As such I could have added a delegate to call back into DeviceCommissioner::PairDevice(NodeId remoteId, RendezvousParameters & params) instead of doing mCommissioner->PairDevice directly but since I do need to have a reference to an instance of the commissioner already for mdns operations I have used it...
I think the real fix here would be to move the mdns operations to a separate class, and have it beeing used from multiple classes.
Why is the forward declaration required? I am concerned when these show up since it may hint that some circular dependencies or wrong build dependencies are being introduced (i.e. we can use this to bypass gn enforcement of library dependencies).
please include the header instead.
Originally posted by @andy31415 in #9847 (comment)
The text was updated successfully, but these errors were encountered: