launchdarkly / c-client-sdk

LaunchDarkly Client-side SDK for C/C++
Other
8 stars 13 forks source link

Implement `LDClientRegisterFeatureFlagListenerUserData` #85

Closed ehsan closed 1 year ago

ehsan commented 2 years ago

This fixes #84. In this PR we're adding a version of the LaunchDarkly flag change listener APIs that allows the caller to pass a void * user data argument, which can be used similar to a closure in higher level languages. Also implement the C++ version of this API: registerFeatureFlagListenerUserData.

Requirements

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request. https://github.com/launchdarkly/c-client-sdk/issues/84

The answer to all questions below has been provided in that issue.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

cwaldren-ld commented 1 year ago

For anyone wishing for this feature, please see this update.