Method

GioMountguess_content_type_finish

Declaration

gchar**
g_mount_guess_content_type_finish (
  GMount* mount,
  GAsyncResult* result,
  GError** error
)

Description

Finishes guessing content types of mount. If any errors occurred during the operation, error will be set to contain the errors and FALSE will be returned. In particular, you may get an G_IO_ERROR_NOT_SUPPORTED if the mount does not support content guessing.

Available since:2.18

Parameters

result

Type: GAsyncResult

A GAsyncResult.

The data is owned by the caller of the function.
error

Type: GError **

The return location for a GError*, or NULL.

Return value

Type: An array of utf8

A NULL-terminated array of content types or NULL on error. Caller should free this array with g_strfreev() when done with it.

The array is NULL-terminated.
The caller of the method takes ownership of the data, and is responsible for freeing it.
Each element is a NUL terminated UTF-8 string.