Function

Gdk.content_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.

Parameters

type GType
 

the type of objects that the function can serialize

mime_type const char*
 

the mime type to serialize to

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
serialize GdkContentSerializeFunc
 

the callback

data gpointer
 

data that serialize can access

notify GDestroyNotify
 

destroy notify for data