C++ Client-Side SDK
LaunchDarkly SDK
context.h
Go to the documentation of this file.
1 
2 // NOLINTBEGIN modernize-use-using
3 
4 #pragma once
5 
8 
9 #include <stdbool.h>
10 
11 #ifdef __cplusplus
12 extern "C" { // only need to export C interface if
13 // used by C++ source code
14 #endif
15 
16 typedef struct _LDContext* LDContext;
17 typedef struct _LDContext_PrivateAttributesIter*
18  LDContext_PrivateAttributesIter;
19 
25 LD_EXPORT(char const*)
26 LDContext_CanonicalKey(LDContext context);
27 
34 LD_EXPORT(bool)
35 LDContext_Valid(LDContext context);
36 
42 LD_EXPORT(void)
43 LDContext_Free(LDContext context);
44 
61 LD_EXPORT(LDValue)
62 LDContext_Get(LDContext context, char const* kind, char const* ref);
63 
73 LD_EXPORT(char const*)
74 LDContext_Errors(LDContext context);
75 
90 LD_EXPORT(LDContext_PrivateAttributesIter)
91 LDContext_PrivateAttributesIter_New(LDContext context, char const* kind);
92 
98 LD_EXPORT(void)
99 LDContext_PrivateAttributesIter_Free(LDContext_PrivateAttributesIter iter);
100 
106 LD_EXPORT(void)
107 LDContext_PrivateAttributesIter_Next(LDContext_PrivateAttributesIter iter);
108 
115 LD_EXPORT(bool)
116 LDContext_PrivateAttributesIter_End(LDContext_PrivateAttributesIter iter);
117 
126 LD_EXPORT(char const*)
127 LDContext_PrivateAttributesIter_Value(LDContext_PrivateAttributesIter iter);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 // NOLINTEND modernize-use-using
LDContext_Free(LDContext context)
LDContext_Errors(LDContext context)
LDContext_Get(LDContext context, char const *kind, char const *ref)
Definition: context.cpp:37
LDContext_Valid(LDContext context)
LDContext_CanonicalKey(LDContext context)
Definition: context.cpp:30
LDContext_PrivateAttributesIter_Free(LDContext_PrivateAttributesIter iter)
Definition: context.cpp:72
LDContext_PrivateAttributesIter_New(LDContext context, char const *kind)
Definition: context.cpp:53
LDContext_PrivateAttributesIter_Value(LDContext_PrivateAttributesIter iter)
Definition: context.cpp:91
LDContext_PrivateAttributesIter_End(LDContext_PrivateAttributesIter iter)
Definition: context.cpp:84
LDContext_PrivateAttributesIter_Next(LDContext_PrivateAttributesIter iter)
Definition: context.cpp:77
Export macros for C bindings.
struct _LDValue * LDValue
Definition: value.h:64