Function

Talkatumarkup_serialize_html

Declaration [src]

guint8*
talkatu_markup_serialize_html (
  GtkTextBuffer* register_buffer,
  GtkTextBuffer* content_buffer,
  const GtkTextIter* start,
  const GtkTextIter* end,
  gsize* length,
  gpointer user_data
)

Description [src]

This is a GtkTextBufferSerializeFunc that should be registered with

gtk_text_buffer_register_serialize_func in the buffer's instance_init

method.

Parameters

register_buffer GtkTextBuffer
 

The GtkTextBuffer for which the format is registered.

 The data is owned by the caller of the function.
content_buffer GtkTextBuffer
 

The GtkTextBuffer to serialize.

 The data is owned by the caller of the function.
start GtkTextIter
 

Start of the block of text to serialize.

 The data is owned by the caller of the function.
end GtkTextIter
 

End of the block of text to serialize.

 The data is owned by the caller of the function.
length gsize*
 

Return location for the length of the serialized data.

 The data is owned by the caller of the function.
user_data gpointer
 

User data that was specified when registering the format.

 The argument can be NULL.

Return value

Returns: guint8*
 

The serialized HTML data.

 The caller of the function takes ownership of the data, and is responsible for freeing it.