WPEPlatform.Buffer.set_user_data

### Method

# WPEPlatform Bufferset_user_data

#### Declaration [src]

    void
    wpe_buffer_set_user_data (
      WPEBuffer* buffer,
      gpointer user_data,
      GDestroyNotify destroy_func
    )

#### Description [src]

Set `user_data` to `buffer`. When `buffer` is destroyed `destroy_func` is called with `user_data`.

#### Parameters

`user_data`

  Type: `gpointer`

  Data to associate with `buffer`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`destroy_func`

  Type: `GDestroyNotify`

  The function to call to release `user_data`.

  The argument can be `NULL`.