FwupdPlugin.Plugin.alloc_data

### Method

# FwupdPlugin Pluginalloc_data

#### Declaration [src]

    FuPluginData*
    fu_plugin_alloc_data (
      FuPlugin* self,
      gsize data_sz
    )

#### Description [src]

Allocates the per-plugin allocated private data.

Available since: | 0.8.0
This method is not directly available to language bindings.

#### Parameters

`data_sz` | `gsize`
| The size to allocate.

#### Return value

Returns: | `FuPluginData`
| A pointer to a structure, or `NULL` for unset.
| The caller of the method takes ownership of the data, and is responsible for freeing it.