Function

GumEventSinkmake_from_callback

Declaration [src]

GumEventSink*
gum_event_sink_make_from_callback (
  GumEventType mask,
  GumEventSinkCallback callback,
  gpointer data,
  GDestroyNotify data_destroy
)

Description [src]

Creates a GumEventSink that delivers events to callback.

Parameters

mask

Type: GumEventType

Bitfield specifying event types that are of interest.

callback

Type: GumEventSinkCallback

Function called with each event.

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: GumEventSink

A newly created GumEventSink.

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