register_serialize_format


Description:

[ Version ( since = "2.10" ) ]
public Atom register_serialize_format (string mime_type, owned TextBufferSerializeFunc function)

This function registers a rich text serialization function along with its mime_type with the passed this.

Parameters:

this

a TextBuffer

mime_type

the format’s mime-type

function

the serialize function to register

user_data

function’s user_data

user_data_destroy

a function to call when user_data is no longer needed

Returns:

the Atom that corresponds to the newly registered format’s mime-type.