-
Notifications
You must be signed in to change notification settings - Fork 673
Add callback for mDNS service resolver #7986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add callback for mDNS service resolver #7986
Conversation
|
Also fixed a bug where the byte order was wrong. |
PeterJohnson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love the names, but I don't have a better suggestion.
| * not send the data to the event queue. | ||
| */ | ||
| bool SetCopyCallback(std::function<bool(const ServiceData&)> callback); | ||
| /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have a newline before each of these comment blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason this is what the formatter did. Not sure why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The #ifdef __cplusplus around around the whole file is confusing wpiformat's #include parser. It expects #ifdefs to stop before the non-include part of the code starts, since it has to rely on that to sort groups of #ifdef'd #includes properly.
Without this, the only way to read items is to use the event. And in my use case, adding that would require adding my own thread just for handling that event.