Gdk.content_register_serializer
Description: Reference for Gdk.content_register_serializer

### Function

# Gdkcontent_register_serializer

#### Declaration [src]

    void
    gdk_content_register_serializer (
      GType type,
      const char* mime_type,
      GdkContentSerializeFunc serialize,
      gpointer data,
      GDestroyNotify notify
    )

#### Description [src]

Registers a function to serialize objects of a given type.

Since 4.20, when looking up a serializer to use, GTK will use the last registered serializer for a given mime type, so applications can override the built-in serializers.

#### Parameters

`type`

  Type: `GType`

  The type of objects that the function can serialize.

`mime_type`

  Type: `const char*`

  The mime type to serialize to.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`serialize`

  Type: `GdkContentSerializeFunc`

  The callback.

`data`

  Type: `gpointer`

  Data that `serialize` can access.

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

`notify`

  Type: `GDestroyNotify`

  Destroy notify for `data`.