Data package:gi-glib
An opaque data structure that represents a keyed data list.
See also:
Keyed data lists.
Memory-managed wrapper type.
A bitmask that restricts the possible flags passed to
datalistSetFlags. Passing a flags value where flags &
~G_DATALIST_FLAGS_MASK != 0 is an error.
Calls the given function for each data element of the datalist. The
function is called with each data element's
GQuark id
and data, together with the given
userData parameter.
Note that this function is NOT thread-safe. So unless
datalist can be protected from any modifications
during invocation of this function, it should not be called.
func can make changes to
datalist, but
the iteration will not reflect changes made during the
datalistForeach call, other than skipping over elements that
are removed.
Gets a data element, using its string identifier. This is slower than
datalistIdGetData because it compares strings.
Gets flags values packed in together with the datalist. See
datalistSetFlags.
Since: 2.8
Retrieves the data element corresponding to keyId.
Removes multiple keys from a datalist.
This is more efficient than calling
g_datalist_id_remove_data() multiple times in a row.
Before 2.80, nKeys had to be not larger than 16. Now
it can be larger, but note that GData does a linear search, so an
excessive number of keys will perform badly.
Since: 2.74
Turns on flag values for a data list. This function is used to keep a
small number of boolean flags in an object with a data list without
using any additional space. It is not generally useful except in
circumstances where space is very tight. (It is used in the base
GObject type, for example.)
Since: 2.8
Destroys the dataset, freeing all memory allocated, and calling any
destroy functions set for data elements.
Calls the given function for each data element which is associated
with the given location. Note that this function is NOT thread-safe.
So unless
datasetLocation can be protected from any
modifications during invocation of this function, it should not be
called.
func can make changes to the dataset, but the
iteration will not reflect changes made during the
datasetForeach call, other than skipping over elements that are
removed.
Gets the data element corresponding to a GQuark.
Type for the callback on the (unwrapped) C side.
Type for the callback on the (unwrapped) C side.
Type for the callback on the (unwrapped) C side.
The type used for test case functions that take an extra pointer
argument.
Since: 2.28
A simple wrapper that ignores the closure arguments.
A simple wrapper that ignores the closure arguments.
A simple wrapper that ignores the closure arguments.
Given a pointer to a foreign C function, wrap it into a function
callable from Haskell.
Given a pointer to a foreign C function, wrap it into a function
callable from Haskell.
Given a pointer to a foreign C function, wrap it into a function
callable from Haskell.