gdataset.h File Reference

__G_DATASET_H__

Typedef GData

typedef typedefG_BEGIN_DECLS struct _GDataGData

Typedef GDataForeachFunc

typedef void(*GDataForeachFunc

g_datalist_init ( GData ** )

IMPORT_C voidg_datalist_init(GData **datalist)

g_datalist_clear ( GData ** )

IMPORT_C voidg_datalist_clear(GData **datalist)

g_datalist_id_get_data ( GData **, GQuark )

IMPORT_C gpointerg_datalist_id_get_data(GData **datalist,
GQuarkkey_id
)

g_datalist_id_set_data_full ( GData **, GQuark, gpointer, GDestroyNotify )

IMPORT_C voidg_datalist_id_set_data_full(GData **datalist,
GQuarkkey_id,
gpointerdata,
GDestroyNotifydestroy_func
)

g_datalist_id_remove_no_notify ( GData **, GQuark )

IMPORT_C gpointerg_datalist_id_remove_no_notify(GData **datalist,
GQuarkkey_id
)

g_datalist_foreach ( GData **, GDataForeachFunc, gpointer )

IMPORT_C voidg_datalist_foreach(GData **datalist,
GDataForeachFuncfunc,
gpointeruser_data
)

G_DATALIST_FLAGS_MASK

G_DATALIST_FLAGS_MASK:

A bitmask that restricts the possible flags passed to g_datalist_set_flags(). Passing a flags value where flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.

g_datalist_set_flags ( GData **, guint )

IMPORT_C voidg_datalist_set_flags(GData **datalist,
guintflags
)

g_datalist_set_flags: : pointer to the location that holds a list : the flags to turn on. The values of the flags are restricted by G_DATALIST_FLAGS_MASK (currently 3; giving two possible boolean flags). A value for that doesn't fit within the mask is an error.

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

g_datalist_unset_flags ( GData **, guint )

IMPORT_C voidg_datalist_unset_flags(GData **datalist,
guintflags
)

g_datalist_unset_flags: : pointer to the location that holds a list : the flags to turn off. The values of the flags are restricted by G_DATALIST_FLAGS_MASK (currently 3: giving two possible boolean flags). A value for that doesn't fit within the mask is an error.

Turns off flag values for a data list. See g_datalist_unset_flags()

Since: 2.8

g_datalist_get_flags ( GData ** )

IMPORT_C guintg_datalist_get_flags(GData **datalist)

g_datalist_get_flags: : pointer to the location that holds a list

Gets flags values packed in together with the datalist. See g_datalist_set_flags().

Return value: the flags of the datalist

Since: 2.8

g_datalist_id_set_data

g_datalist_id_remove_data

g_datalist_get_data

g_datalist_set_data_full

g_datalist_remove_no_notify

g_datalist_set_data

g_datalist_remove_data

g_dataset_destroy ( gconstpointer )

IMPORT_C voidg_dataset_destroy(gconstpointerdataset_location)

g_dataset_id_get_data ( gconstpointer, GQuark )

IMPORT_C gpointerg_dataset_id_get_data(gconstpointerdataset_location,
GQuarkkey_id
)

g_dataset_id_set_data_full ( gconstpointer, GQuark, gpointer, GDestroyNotify )

IMPORT_C voidg_dataset_id_set_data_full(gconstpointerdataset_location,
GQuarkkey_id,
gpointerdata,
GDestroyNotifydestroy_func
)

g_dataset_id_remove_no_notify ( gconstpointer, GQuark )

IMPORT_C gpointerg_dataset_id_remove_no_notify(gconstpointerdataset_location,
GQuarkkey_id
)

g_dataset_foreach ( gconstpointer, GDataForeachFunc, gpointer )

IMPORT_C voidg_dataset_foreach(gconstpointerdataset_location,
GDataForeachFuncfunc,
gpointeruser_data
)

g_dataset_id_set_data

g_dataset_id_remove_data

g_dataset_get_data

g_dataset_set_data_full

g_dataset_remove_no_notify

g_dataset_set_data

g_dataset_remove_data