Function

Giocontent_type_from_mime_type

Declaration [src]

gchar*
g_content_type_from_mime_type (
  const gchar* mime_type
)

Description [src]

Tries to find a content type based on the mime type name.

Available since:2.18

Parameters

mime_type const gchar*
 

A mime type string.

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

Return value

Returns: gchar*
 

Newly allocated string with content type or NULL. Free with g_free()

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.
 The string is a NUL terminated UTF-8 string.