Constructor

FoundryAcpContentBlocknew_text_resource

unstable since: 1.2

Declaration [src]

FoundryAcpContentBlock*
foundry_acp_content_block_new_text_resource (
  const char* uri,
  const char* mime_type,
  const char* text
)

Description [src]

Creates an embedded text resource content block.

Available since: 1.2

Parameters

uri

Type: const char*

A resource URI.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
mime_type

Type: const char*

A MIME type.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
text

Type: const char*

UTF-8 resource contents.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

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