-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: initialization of LDFlagListener #218
Conversation
This pull request has been linked to Shortcut Story #214881: Extract common bindings from client to common. |
* | ||
* @param listener Listener to initialize. | ||
*/ | ||
LD_EXPORT(void) LDFlagListener_Init(struct LDFlagListener* listener); |
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.
Signature has changed from (struct LDFlagListener listener)
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 think it is fine, it was a bug.
🤖 I have created a release *beep* *boop* --- <details><summary>launchdarkly-cpp-client: 3.0.5</summary> ## [3.0.5](launchdarkly-cpp-client-v3.0.4...launchdarkly-cpp-client-v3.0.5) (2023-08-28) ### Bug Fixes * initialization of LDFlagListener ([#218](#218)) ([6c263dd](6c263dd)) ### Dependencies * The following workspace dependencies were updated * dependencies * launchdarkly-cpp-internal bumped from 0.1.6 to 0.1.7 * launchdarkly-cpp-common bumped from 0.3.3 to 0.3.4 </details> <details><summary>launchdarkly-cpp-common: 0.3.4</summary> ## [0.3.4](launchdarkly-cpp-common-v0.3.3...launchdarkly-cpp-common-v0.3.4) (2023-08-28) ### Bug Fixes * initialization of LDFlagListener ([#218](#218)) ([6c263dd](6c263dd)) </details> <details><summary>launchdarkly-cpp-internal: 0.1.7</summary> ### Dependencies * The following workspace dependencies were updated * dependencies * launchdarkly-cpp-common bumped from 0.3.3 to 0.3.4 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit moves the definition and implementation of
LDFlagListener
intocommon
, so it can be easily shared with the server.Additionally, it fixes a bug in the specification of the
LDFlagListener_Init
method. It previously tookLDFlagListener
by value; now it takes a pointer.The impact would be if a customer forgot to initialize the struct, then the member(s) would be undefined.