Constructor

BirbCustomFilternew

unstable since: 0.3

Declaration [src]

BirbCustomFilter*
birb_custom_filter_new (
  BirbCustomFilterFunc match_func,
  gpointer data,
  GDestroyNotify destroy_notify
)

Description [src]

Creates a new filter using match_func to determine what to filter.

If match_func is NULL, the filter will match all items.

Available since: 0.3

Parameters

match_func

Type: BirbCustomFilterFunc

The function used for matching.

The argument can be NULL.
data

Type: gpointer

User data to pass to match_func.

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

Type: GDestroyNotify

A destroy notify for data.

The argument can be NULL.

Return value

Type: BirbCustomFilter

The new instance.

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