C++ Client-Side SDK
LaunchDarkly SDK
context_builder.h
Go to the documentation of this file.
1 
2 // NOLINTBEGIN modernize-use-using
3 
4 #pragma once
5 
9 
10 #include <stdbool.h>
11 
12 #ifdef __cplusplus
13 extern "C" { // only need to export C interface if
14 // used by C++ source code
15 #endif
16 
17 typedef struct _LDContextBuilder* LDContextBuilder;
18 
23 LD_EXPORT(LDContextBuilder)
25 
34 LD_EXPORT(void)
35 LDContextBuilder_Free(LDContextBuilder builder);
36 
48 LD_EXPORT(LDContext)
49 LDContextBuilder_Build(LDContextBuilder builder);
50 
67 LD_EXPORT(void)
68 LDContextBuilder_AddKind(LDContextBuilder builder,
69  char const* kind,
70  char const* key);
71 
84 LD_EXPORT(bool)
85 LDContextBuilder_Attributes_Set(LDContextBuilder builder,
86  char const* kind,
87  char const* attr_name,
88  LDValue val);
89 
112 LD_EXPORT(bool)
113 LDContextBuilder_Attributes_SetPrivate(LDContextBuilder builder,
114  char const* kind,
115  char const* attr_key,
116  LDValue val);
117 
130 LD_EXPORT(bool)
131 LDContextBuilder_Attributes_SetName(LDContextBuilder builder,
132  char const* kind,
133  char const* name);
134 
145 LD_EXPORT(bool)
146 LDContextBuilder_Attributes_SetAnonymous(LDContextBuilder builder,
147  char const* kind,
148  bool anonymous);
149 
188 LD_EXPORT(bool)
189 LDContextBuilder_Attributes_AddPrivateAttribute(LDContextBuilder builder,
190  char const* kind,
191  char const* attr_ref);
192 #ifdef __cplusplus
193 }
194 #endif
195 // NOLINTEND modernize-use-using
LDContextBuilder_New()
LDContextBuilder_Build(LDContextBuilder builder)
LDContextBuilder_AddKind(LDContextBuilder builder, char const *kind, char const *key)
Definition: context_builder.cpp:39
LDContextBuilder_Attributes_AddPrivateAttribute(LDContextBuilder builder, char const *kind, char const *attr_ref)
Definition: context_builder.cpp:132
LDContextBuilder_Attributes_SetName(LDContextBuilder builder, char const *kind, char const *name)
Definition: context_builder.cpp:95
LDContextBuilder_Free(LDContextBuilder builder)
LDContextBuilder_Attributes_SetPrivate(LDContextBuilder builder, char const *kind, char const *attr_key, LDValue val)
Definition: context_builder.cpp:73
LDContextBuilder_Attributes_SetAnonymous(LDContextBuilder builder, char const *kind, bool anonymous)
Definition: context_builder.cpp:114
LDContextBuilder_Attributes_Set(LDContextBuilder builder, char const *kind, char const *attr_name, LDValue val)
Definition: context_builder.cpp:52
Export macros for C bindings.
struct _LDValue * LDValue
Definition: value.h:64