19#ifndef PINEFORGE_EXECUTION_OBSERVER_H
20#define PINEFORGE_EXECUTION_OBSERVER_H
int strategy_set_execution_observer_v1(pf_strategy_t, const pf_execution_observer_v1 *)
Registers, replaces or removes the strategy's execution observer.
int(* pf_before_results_fn_v1)(void *context, const pf_execution_boundary_v1 *boundary, pf_boundary_receipt_v1 *receipt)
Observer callback.
uint32_t pf_execution_observer_version(void)
Returns the execution observer ABI version, 1.
int strategy_execution_observation_v1(pf_strategy_t, pf_execution_observation_v1 *)
Copies one complete observation into *out.
void * pf_strategy_t
Opaque handle to a compiled strategy instance.
Receipt the callback fills.
uint32_t export_requested
Boundary handed to the observer.
Snapshot of the execution state, filled by strategy_execution_observation_v1().
uint64_t attempt_generation
uint32_t boundary_delivered
Observer descriptor for strategy_set_execution_observer_v1().
pf_before_results_fn_v1 before_results