Skip to content
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

Allow for calling rd_kafka_queue_io_event_enable() from the C++ world #1483

Merged
merged 1 commit into from Oct 24, 2017

Conversation

akhi3030
Copy link
Contributor

Hi,

As discussed in, #617, I've created a pull request. Awaiting feedback.

Thanks,
Akhi

Copy link
Contributor

@edenhill edenhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff, some minor tweaks needed

@@ -1428,6 +1428,8 @@ class RD_EXPORT Queue {
*/
virtual int poll (int timeout_ms) = 0;

virtual void io_event_enable (int fd, const void *payload, size_t size) = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a doc string here. Copy (and reformat) the one from rdkafka.h

@@ -1428,6 +1428,8 @@ class RD_EXPORT Queue {
*/
virtual int poll (int timeout_ms) = 0;

virtual void io_event_enable (int fd, const void *payload, size_t size) = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this declaration to the end of the class for ABI stability

@akhi3030
Copy link
Contributor Author

Thank you very much for the feedback. This is my first PR so I hope I've done things correctly.

@edenhill edenhill merged commit bbcfddc into confluentinc:master Oct 24, 2017
@edenhill
Copy link
Contributor

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants