Constructor
GdkContentProvidernew_for_bytes
Declaration [src]
GdkContentProvider*
gdk_content_provider_new_for_bytes (
const char* mime_type,
GBytes* bytes
)
Description [src]
Create a content provider that provides the given bytes as data for
the given mime_type.
Parameters
mime_type |
const char* |
The mime type. |
|
| The data is owned by the caller of the function. | |
| The string is a NUL terminated UTF-8 string. | |
bytes |
GBytes* |
A |
|
| The data is owned by the caller of the function. |
Return value
| Returns: | GdkContentProvider |
A new |
|
| The caller of the function takes ownership of the data, and is responsible for freeing it. |