Method
FoundryFileManagerguess_language
Declaration [src]
DexFuture*
foundry_file_manager_guess_language (
FoundryFileManager* self,
GFile* file,
const char* content_type,
GBytes* contents
)
Description [src]
Attempts to guess the language of file, content_type, or contents.
One of file, content_type, or contents must be set.
Parameters
file-
Type:
GFileA
GFileorNULL.The argument can be NULL.The data is owned by the caller of the method. content_type-
Type:
const char*The content-type as a string or
NULL.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. contents-
Type:
GBytesA
GBytesof file contents orNULL.The argument can be NULL.The data is owned by the caller of the method.