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 userdata context variable API to PPP callbacks #1116

Merged
merged 5 commits into from
Oct 25, 2021

Conversation

jamcleod
Copy link
Member

See #1105 for additional context as to the rationale. As for the implementation--PPP callbacks were trickier and required a minor breaking change. The typedefs for PPP callbacks must now be generated using the PPP_CB_TYPEDEF macro. Unlike the base callback implementation, this implementation doesn't use trampoline generation and simply hold a separate callback list for those with context variables.

@jamcleod
Copy link
Member Author

Worth noting for anyone who reviews: only these first 3 files are particularly relevant. Most of the rest of the 15k line diff is just migrating the breaking change

image

Copy link
Member

@AndrewFasano AndrewFasano left a comment

Choose a reason for hiding this comment

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

Code changes look good to me (assuming CI passes) - but you should update the docs for PPP functions too so new plugins will be created with the right macros

@jamcleod jamcleod enabled auto-merge (rebase) October 25, 2021 16:01
@AndrewFasano
Copy link
Member

Pretty sure the CI failure is just a one-off-bug in the CI, not an issue with this PR. Merging 🙈

@AndrewFasano AndrewFasano merged commit 0d46c5c into dev Oct 25, 2021
@AndrewFasano AndrewFasano deleted the ppp_callback_context branch October 25, 2021 17:30
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