MountT.guessContentTypeSync

Tries to guess the type of content stored on mount. Returns one or more textual identifiers of well-known content types (typically prefixed with "x-content/"), e.g. x-content/image-dcf for camera memory cards. See the shared-mime-info specification for more on x-content types. This is an synchronous operation and as such may block doing IO; see g_mount_guess_content_type() for the asynchronous version. Since 2.18

template MountT(TStruct)
string[]
guessContentTypeSync

Parameters

forceRescan int

Whether to force a rescan of the content. Otherwise a cached result will be used if available

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: string[]

a NULL-terminated array of content types or NULL on error. Caller should free this array with g_strfreev() when done with it. [transfer full][element-type utf8]

Throws

GException on failure.

Meta