Skip to content

Conversation

@cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented May 31, 2023

Introduces an AllFlags binding for C.

The strategy chosen is to convert the std::unordered_map returned by C++ AllFlags into an LDValue, because we already have bindings for object iteration. Additionally, once we add serialization, this could be easily dumped to JSON.

Minor changes:

  • Add enum/struct prefix to some C enums/structs
  • Renamed some Ld prefixes to LD

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #205046: Add AllFlags C binding.

@cwaldren-ld cwaldren-ld force-pushed the cw/sc-205046/allflags-c-binding branch from 131955e to f817d98 Compare May 31, 2023 18:03
@cwaldren-ld cwaldren-ld requested a review from kinyoklion May 31, 2023 18:03
* source.
*/
LD_EXPORT(LDDataSourceStatus_State)
LD_EXPORT(enum LDDataSourceStatus_State)
Copy link
Member

Choose a reason for hiding this comment

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

I feel like I will never remember this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's burned into me by the C server.

@cwaldren-ld cwaldren-ld merged commit 9aa0794 into main May 31, 2023
@cwaldren-ld cwaldren-ld deleted the cw/sc-205046/allflags-c-binding branch May 31, 2023 18:26
@github-actions github-actions bot mentioned this pull request May 31, 2023
cwaldren-ld pushed a commit that referenced this pull request May 31, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-cpp-client: 0.2.0</summary>

##
[0.2.0](launchdarkly-cpp-client-v0.1.0...launchdarkly-cpp-client-v0.2.0)
(2023-05-31)


### Features

* add AllFlags C binding
([#128](#128))
([9aa0794](9aa0794))
* Add C bindings for data source status.
([#124](#124))
([d175abb](d175abb))
* Add c bindings for FlagNotifier.
([#119](#119))
([11a7f61](11a7f61))
* add Version method to obtain SDK version
([#122](#122))
([1003117](1003117))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-internal bumped from 0.1.0 to 0.1.1
    * launchdarkly-cpp-common bumped from 0.1.0 to 0.2.0
</details>

<details><summary>launchdarkly-cpp-common: 0.2.0</summary>

##
[0.2.0](launchdarkly-cpp-common-v0.1.0...launchdarkly-cpp-common-v0.2.0)
(2023-05-31)


### Features

* add AllFlags C binding
([#128](#128))
([9aa0794](9aa0794))
* Add C bindings for data source status.
([#124](#124))
([d175abb](d175abb))
* Add c bindings for FlagNotifier.
([#119](#119))
([11a7f61](11a7f61))
* Allow for easier creation of contexts from existing contexts.
([#130](#130))
([5e18616](5e18616))


### Bug Fixes

* rename C iterator bindings to follow new/free pattern
([#129](#129))
([24dff9a](24dff9a))
</details>

<details><summary>launchdarkly-cpp-internal: 0.1.1</summary>

### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-common bumped from 0.1.0 to 0.2.0
</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 was referenced May 31, 2023
@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.

3 participants