![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
FmMimeType; void fm_mime_type_add_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
); FmMimeType * fm_mime_type_from_file_name (const char *ufile_name
); FmMimeType * fm_mime_type_from_name (const char *type
); FmMimeType * fm_mime_type_from_native_file (const char *file_path
,const char *base_name
,struct stat *pstat
); const char * fm_mime_type_get_desc (FmMimeType *mime_type
); FmIcon * fm_mime_type_get_icon (FmMimeType *mime_type
); const GList * fm_mime_type_get_thumbnailers (FmMimeType *mime_type
); FmMimeType * fm_mime_type_ref (FmMimeType *mime_type
); void fm_mime_type_remove_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
); void fm_mime_type_unref (gpointer mime_type_
);
void fm_mime_type_add_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
);
Adds thumbnailer
to list of thumbnailers associated with mime_type
.
|
a FmMimeType descriptor |
|
anonymous thumbnailer pointer |
Since 1.0.0
FmMimeType * fm_mime_type_from_file_name (const char *ufile_name
);
Finds FmMimeType descriptor guessing type from ufile_name
.
Before 1.0.0 this API had name fm_mime_type_get_for_file_name.
|
file name to guess |
Returns : |
a FmMimeType object. [transfer full] |
Since 0.1.0
FmMimeType * fm_mime_type_from_name (const char *type
);
Finds FmMimeType descriptor for type
.
Before 1.0.0 this API had name fm_mime_type_get_for_type.
|
MIME type name |
Returns : |
a FmMimeType object. [transfer full] |
Since 0.1.0
FmMimeType * fm_mime_type_from_native_file (const char *file_path
,const char *base_name
,struct stat *pstat
);
Finds FmMimeType descriptor for provided data.
Before 1.0.0 this API had name fm_mime_type_get_for_native_file.
|
full path to file |
|
file basename |
|
file atrributes. [allow-none] |
Returns : |
a FmMimeType object. [transfer full] |
Since 0.1.0
const char * fm_mime_type_get_desc (FmMimeType *mime_type
);
Retrieves human-readable description of MIME type. Returned data are
owned by mime_type
and should be not freed by caller.
|
a FmMimeType descriptor |
Returns : |
MIME type name. |
Since 0.1.0
FmIcon * fm_mime_type_get_icon (FmMimeType *mime_type
);
Retrieves icon associated with mime_type
. Returned data are owned by
mime_type
and should be not freed by caller.
|
a FmMimeType descriptor |
Returns : |
icon. |
Since 0.1.0
const GList * fm_mime_type_get_thumbnailers (FmMimeType *mime_type
);
Retrieves list of thumbnailers associated with mime_type
. Returned
data are owned by mime_type
and should be not altered by caller.
|
a FmMimeType descriptor |
Returns : |
the list. [element-type gpointer][transfer none] |
Since 1.0.0
FmMimeType * fm_mime_type_ref (FmMimeType *mime_type
);
Increments reference count on mime_type
.
|
a FmMimeType descriptor |
Returns : |
mime_type . |
Since 0.1.0
void fm_mime_type_remove_thumbnailer (FmMimeType *mime_type
,gpointer thumbnailer
);
Removes thumbnailer
from list of thumbnailers associated with
mime_type
.
|
a FmMimeType descriptor |
|
anonymous thumbnailer pointer |
Since 1.0.0
void fm_mime_type_unref (gpointer mime_type_
);
Decrements reference count on mime_type_
.
|
a FmMimeType descriptor |
Since 0.1.0