-
Notifications
You must be signed in to change notification settings - Fork 42
C/C++: client publishing support #287
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
Conversation
…ent-publishing-support
…ent-publishing-support
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'm probably not the most qualified person to review the C++, but this change looks good to me.
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.
Looks good, left some comments that don't need to be addressed
const char *FOXGLOVE_NONNULL encoding; | ||
const char *FOXGLOVE_NONNULL schema_name; | ||
const char *schema_encoding; | ||
const void *schema; |
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.
Do people use void * in C instead of byte * ?
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.
As far as I know C doesn't have a byte type (only C++ has std::byte) - so yes. As one example, memcpy
is
void *memcpy(void *restrict dst, const void *restrict src, size_t n);
### Changelog None ### Docs None ### Description I meant to include this in #287, but forgot to actually push the last commit before merging...
Changelog
C/C++: added callbacks for client advertise, publish, and unadvertise
Docs
None
Description
Depends on #286Ran into some annoyances with exposing the capability flags with cbindgen...let me know if you have any better ideas!