Function

Gdk.intern_mime_type

Declaration [src]

const char*
gdk_intern_mime_type (
  const char* string
)

Description [src]

Canonicalizes the given mime type and interns the result.

If string is not a valid mime type, NULL is returned instead. See RFC 2048 for the syntax if mime types.

Parameters

string const char*
 

string of a potential mime type

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string

Return value

Returns: const char*

An interned string for the canonicalized mime type or NULL if the string wasn’t a valid mime type

Ownership is not transferred to the caller
The string is a NUL terminated UTF-8 string