GLib.datalist_id_get_data
Description: Reference for GLib.datalist_id_get_data

### Function

# GLibdatalist_id_get_data

#### Declaration [src]

    gpointer
    g_datalist_id_get_data (
      GData** datalist,
      GQuark key_id
    )

#### Description [src]

Retrieves the data element corresponding to `key_id`.

#### Parameters

`datalist`

  Type: `GData`

  A datalist.

  The data is owned by the caller of the function.

`key_id`

  Type: `GQuark`

  The `GQuark` identifying a data element.

#### Return value

Type: `gpointer`

The data element, or `NULL` if it is not found.

The data is owned by the called function.
The return value can be `NULL`.