@@ -534,6 +534,8 @@ typedef struct ddog_DslString ddog_DslString;
534534 */
535535typedef struct ddog_FfeCdnConfig ddog_FfeCdnConfig;
536536
537+ typedef struct ddog_FfeEvaluation ddog_FfeEvaluation;
538+
537539typedef struct ddog_FfeFeatures ddog_FfeFeatures;
538540
539541/* *
@@ -599,6 +601,30 @@ typedef struct ddog_DsmIdentity {
599601 ddog_CharSlice base_hash;
600602} ddog_DsmIdentity;
601603
604+ /* *
605+ * All slices and features are borrowed until ddog_ffe_evaluation_drop.
606+ * NULL slices mean absent strings; non-NULL empty slices mean empty strings.
607+ */
608+ typedef struct ddog_FfeResultView {
609+ ddog_CharSlice value_json;
610+ ddog_CharSlice variant;
611+ ddog_CharSlice allocation_key;
612+ int32_t reason;
613+ int32_t error_code;
614+ int32_t serial_id;
615+ bool has_serial_id;
616+ bool do_log;
617+ bool observe_full_evaluation_data;
618+ bool valid;
619+ const struct ddog_FfeFeatures *features;
620+ } ddog_FfeResultView;
621+
622+ typedef struct ddog_FfeDependencyView {
623+ ddog_CharSlice key;
624+ struct ddog_FfeResultView result;
625+ bool exposure_eligible;
626+ } ddog_FfeDependencyView;
627+
602628typedef struct ddog_FfeFeature {
603629 ddog_CharSlice key;
604630 /* *
@@ -611,23 +637,6 @@ typedef struct ddog_FfeFeature {
611637 uintptr_t destinations_count;
612638} ddog_FfeFeature;
613639
614- typedef struct ddog_FfeResult {
615- _zend_string * value_json;
616- _zend_string * variant;
617- _zend_string * allocation_key;
618- int32_t reason;
619- int32_t error_code;
620- int32_t serial_id;
621- bool has_serial_id;
622- bool do_log;
623- bool observe_full_evaluation_data;
624- bool valid;
625- /* *
626- * NULL when the selected split has no features. Release with ddog_ffe_features_drop.
627- */
628- struct ddog_FfeFeatures *features;
629- } ddog_FfeResult;
630-
631640typedef struct ddog_FfeAttribute {
632641 ddog_CharSlice key;
633642 int32_t value_type;
0 commit comments