### Function

# GObject boxed_copy

since: 2.0

#### Declaration

    gpointer
    g_boxed_copy (
      GType boxed_type,
      gconstpointer src_boxed
    )

#### Description

Provide a copy of a boxed structure `src_boxed` which is of type `boxed_type`.

Available since: 2.0

#### Parameters

`boxed_type`

  Type: `GType`

  The type of `src_boxed`.

`src_boxed`

  Type: `gconstpointer`

  The boxed structure to be copied.

  The data is owned by the caller of the function.

#### Return value

Type: `gpointer`

The newly created copy of the boxed structure.

The caller of the function takes ownership of the data, and is responsible for freeing it.