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

Add events "ready" and "free context" and add event privdata. #179

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

zuiderkwast
Copy link
Collaborator

@zuiderkwast zuiderkwast commented Aug 22, 2023

The event callback is changed to take an extra argument, which is a change to the unreleased event callback feature.

The two new events are

  • HIRCLUSTER_EVENT_READY when the slot mapping has been fetched for the first time and the client is ready to accept commands;
  • HIRCLUSTER_EVENT_FREE_CONTEXT when the cluster context is being freed, so that the user can free the event privdata.

hircluster.c Outdated Show resolved Hide resolved
@zuiderkwast zuiderkwast changed the title Add events "started" and "free context" and add event privdata. Add events "ready" and "free context" and add event privdata. Aug 23, 2023
hircluster.h Outdated Show resolved Hide resolved
The event callback is changed to take an extra argument, which is a change
to the unreleased event callback feature.
Co-authored-by: Bjorn Svensson <[email protected]>
Copy link
Collaborator

@bjosv bjosv left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@zuiderkwast zuiderkwast merged commit 9d306c4 into Nordix:master Aug 23, 2023
32 checks passed
@zuiderkwast zuiderkwast deleted the event-started branch August 23, 2023 12:01
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.

2 participants