Function

Giocontent_type_is_mime_type

Declaration [src]

gboolean
g_content_type_is_mime_type (
  const gchar* type,
  const gchar* mime_type
)

Description [src]

Determines if type is a subset of mime_type. Convenience wrapper around g_content_type_is_a().

Available since:2.52

Parameters

type const gchar*
 

A content type string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
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: gboolean
 

TRUE if type is a kind of mime_type, FALSE otherwise.