29 typedef struct _LDClientSDK* LDClientSDK;
44 LD_EXPORT(LDClientSDK)
51 LD_EXPORT(
char const*)
103 unsigned int milliseconds,
104 bool* out_succeeded);
151 char const* event_name,
233 unsigned int milliseconds,
234 bool* out_succeeded);
246 char const* flag_key,
263 char const* flag_key,
265 LDEvalDetail* out_detail);
279 char const* flag_key,
280 char const* default_value);
298 char const* flag_key,
299 char const* default_value,
300 LDEvalDetail* out_detail);
312 char const* flag_key,
329 char const* flag_key,
331 LDEvalDetail* out_detail);
343 char const* flag_key,
344 double default_value);
360 char const* flag_key,
361 double default_value,
362 LDEvalDetail* out_detail);
376 char const* flag_key,
395 char const* flag_key,
397 LDEvalDetail* out_detail);
449 char const* flag_key,
452 typedef struct _LDDataSourceStatus* LDDataSourceStatus;
507 LD_DATASOURCESTATUS_STATE_UNUSED_MAXVALUE =
518 LD_EXPORT(
char const*)
520 char const* default_if_unknown);
545 LD_EXPORT(LDDataSourceStatus_ErrorInfo)
569 typedef
void (*DataSourceStatusCallbackFn)(LDDataSourceStatus status,
587 DataSourceStatusCallbackFn StatusChanged;
634 LD_EXPORT(LDDataSourceStatus)
LaunchDarkly Server-side C Bindings for Data Source Error Info.
Export macros for C bindings.
struct _LDListenerConnection * LDListenerConnection
Definition: listener_connection.h:23
LDClientSDK_Initialized(LDClientSDK sdk)
LDDataSourceStatus_StateSince(LDDataSourceStatus status)
LDClientSDK_Flush(LDClientSDK sdk, unsigned int reserved)
Definition: sdk.cpp:141
LDClientSDK_TrackEvent(LDClientSDK sdk, char const *event_name)
Definition: sdk.cpp:104
LDClientSDK_IntVariation(LDClientSDK sdk, char const *flag_key, int default_value)
Definition: sdk.cpp:226
LDClientSDK_DataSourceStatus_OnStatusChange(LDClientSDK sdk, struct LDDataSourceStatusListener listener)
Definition: sdk.cpp:391
LDClientSDK_JsonVariationDetail(LDClientSDK sdk, char const *flag_key, LDValue default_value, LDEvalDetail *out_detail)
Definition: sdk.cpp:286
LDClientSDK_JsonVariation(LDClientSDK sdk, char const *flag_key, LDValue default_value)
Definition: sdk.cpp:272
LDClientSDK_BoolVariationDetail(LDClientSDK sdk, char const *flag_key, bool default_value, LDEvalDetail *out_detail)
Definition: sdk.cpp:186
LDClientSDK_Free(LDClientSDK sdk)
LDClientSDK_TrackMetric(LDClientSDK sdk, char const *event_name, double metric_value, LDValue data)
Definition: sdk.cpp:112
LDClientSDK_Identify(LDClientSDK sdk, LDContext context, unsigned int milliseconds, bool *out_succeeded)
Definition: sdk.cpp:148
LDClientSDK_AllFlags(LDClientSDK sdk)
Definition: sdk.cpp:303
LDDataSourceStatus_GetLastError(LDDataSourceStatus status)
Definition: sdk.cpp:364
LDDataSourceStatus_GetState(LDDataSourceStatus status)
Definition: sdk.cpp:349
LDClientSDK_BoolVariation(LDClientSDK sdk, char const *flag_key, bool default_value)
Definition: sdk.cpp:176
LDClientSDK_DoubleVariation(LDClientSDK sdk, char const *flag_key, double default_value)
Definition: sdk.cpp:249
LDClientSDK_DataSourceStatus_Status(LDClientSDK sdk)
Definition: sdk.cpp:410
LDClientSDK_Start(LDClientSDK sdk, unsigned int milliseconds, bool *out_succeeded)
Definition: sdk.cpp:75
LDClientSDK_FlagNotifier_OnFlagChange(LDClientSDK sdk, char const *flag_key, struct LDFlagListener listener)
Definition: sdk.cpp:322
LDClientSDK_TrackData(LDClientSDK sdk, char const *event_name, LDValue data)
Definition: sdk.cpp:128
LDClientSDK_IntVariationDetail(LDClientSDK sdk, char const *flag_key, int default_value, LDEvalDetail *out_detail)
Definition: sdk.cpp:236
LDDataSourceStatusListener_Init(struct LDDataSourceStatusListener *listener)
Definition: sdk.cpp:385
LDClientSDK_StringVariationDetail(LDClientSDK sdk, char const *flag_key, char const *default_value, LDEvalDetail *out_detail)
Definition: sdk.cpp:211
LDClientSDK_Version(void)
Definition: sdk.cpp:70
LDClientSDK_DoubleVariationDetail(LDClientSDK sdk, char const *flag_key, double default_value, LDEvalDetail *out_detail)
Definition: sdk.cpp:259
LDDataSourceStatus_State
Definition: sdk.h:457
@ LD_DATASOURCESTATUS_STATE_SHUTDOWN
Definition: sdk.h:505
@ LD_DATASOURCESTATUS_STATE_INTERRUPTED
Definition: sdk.h:490
@ LD_DATASOURCESTATUS_STATE_VALID
Definition: sdk.h:478
@ LD_DATASOURCESTATUS_STATE_INITIALIZING
Definition: sdk.h:467
@ LD_DATASOURCESTATUS_STATE_OFFLINE
Definition: sdk.h:495
LDClientSDK_StringVariation(LDClientSDK sdk, char const *flag_key, char const *default_value)
Definition: sdk.cpp:199
LDDataSourceStatus_State_Name(enum LDDataSourceStatus_State state, char const *default_if_unknown)
Definition: sdk.cpp:356
LDClientSDK_New(LDClientConfig config, LDContext context)
Definition: sdk.cpp:54
LDDataSourceStatus_Free(LDDataSourceStatus status)
void * UserData
Definition: sdk.h:592
Definition: flag_listener.h:24
struct _LDValue * LDValue
Definition: value.h:64