GLib.datalist_id_set_data
Description: Reference for GLib.datalist_id_set_data

### Function Macro

# GLibdatalist_id_set_data

#### Declaration [src]

    #define g_datalist_id_set_data (
      dl,
      q,
      d
    )

#### Description [src]

Sets the data corresponding to the given `GQuark` id. Any previous data with the same key is removed, and its destroy function is called.

This function is not directly available to language bindings.

#### Parameters

`dl`

  Type: `-`

  A datalist.

`q`

  Type: `-`

  The `GQuark` to identify the data element.

`d`

  Type: `-`

  The data element, or `NULL` to remove any previous element corresponding to `q`.