Function

GLib-2.0GLibdatalist_set_flagsSince 2.8

  • 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.Object type, for example.)

    Parameters

    • datalist: GLib.Data

      pointer to the location that holds a list

    • flags: number

      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 flags that doesn't fit within the mask is an error.

    Returns void

    2.8