Function

GumStalkerTransformermake_from_callback

Declaration [src]

GumStalkerTransformer*
gum_stalker_transformer_make_from_callback (
  GumStalkerTransformerCallback callback,
  gpointer data,
  GDestroyNotify data_destroy
)

Description [src]

Creates a GumStalkerTransformer that recompiles code by letting callback apply custom transformations for any given basic block.

Parameters

callback

Type: GumStalkerTransformerCallback

Function called to transform each basic block.

data

Type: gpointer

Data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the function.
data_destroy

Type: GDestroyNotify

Function to destroy data.

Return value

Type: GumStalkerTransformer

A newly created GumStalkerTransformer.

The caller of the function takes ownership of the data, and is responsible for freeing it.