Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions centipede/engine_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ typedef struct FuzzTestAdapter {
const FuzzTestBytesView* metadata,
FuzzTestInputHandle input);

// Drops the ownership of `input` from the engine.
// Callback to run when the engine is done with `input`.
void (*FreeInput)(FuzzTestAdapterCtx* ctx, FuzzTestInputHandle input);

// Drops the ownership of `ctx` from the engine.
// Callback to run when the engine is done with `ctx` (and the adapter).
void (*FreeCtx)(FuzzTestAdapterCtx* ctx);
} FuzzTestAdapter;

Expand All @@ -225,7 +225,8 @@ typedef struct {

// Constructs an adapter of the test into `adapter_out`. Any diagnostics
// happening during the construction or running the adapter should be emitted
// to `diagnostic_sink`.
// to `diagnostic_sink`. `diagnostic_sink` is guaranteed to live until
// `FreeCtx` is called on the adapter.
void (*ConstructAdapter)(FuzzTestAdapterManagerCtx* ctx,
const FuzzTestDiagnosticSink* diagnostic_sink,
FuzzTestAdapter* adapter_out);
Expand Down
Loading