content_register_serializer


Description:


public void content_register_serializer (Type type, string mime_type, ContentSerializeFunc serialize, void* data, DestroyNotify notify)

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

the type of objects that the function can serialize

mime_type

the mime type to serialize to

serialize

the callback

data

data that serialize can access

notify

destroy notify for data


Namespace: Gdk
Package: gtk4