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

fix: initialization of LDFlagListener #218

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Aug 28, 2023

This commit moves the definition and implementation of LDFlagListener into common, so it can be easily shared with the server.

Additionally, it fixes a bug in the specification of the LDFlagListener_Init method. It previously took LDFlagListener 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.

@cwaldren-ld cwaldren-ld requested a review from a team August 28, 2023 21:48
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #214881: Extract common bindings from client to common.

@cwaldren-ld cwaldren-ld requested a review from kinyoklion August 28, 2023 21:48
*
* @param listener Listener to initialize.
*/
LD_EXPORT(void) LDFlagListener_Init(struct LDFlagListener* listener);
Copy link
Contributor Author

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)

Copy link
Member

@kinyoklion kinyoklion left a 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.

@cwaldren-ld cwaldren-ld merged commit 6c263dd into main Aug 28, 2023
11 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-214881/extract-common-bindings branch August 28, 2023 22:03
@github-actions github-actions bot mentioned this pull request Aug 28, 2023
cwaldren-ld pushed a commit that referenced this pull request Aug 28, 2023
🤖 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>
@github-actions github-actions bot mentioned this pull request May 13, 2024
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