Declaration [src]

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.


type GType

The type of objects that the function can serialize.

mime_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 GdkContentSerializeFunc

The callback.

data gpointer

Data that serialize can access.

 The argument can be NULL.
notify GDestroyNotify

Destroy notify for data.