![]() |
![]() |
![]() |
libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
FmMimeType; void fm_mime_type_init (); void fm_mime_type_finalize (); FmMimeType* fm_mime_type_get_for_file_name (const char *ufile_name
); FmMimeType* fm_mime_type_get_for_native_file (const char *file_path
,const char *base_name
,struct stat *pstat
); FmMimeType* fm_mime_type_get_for_type (const char *type
); FmMimeType* fm_mime_type_new (const char *type_name
); FmMimeType* fm_mime_type_ref (FmMimeType *mime_type
); void fm_mime_type_unref (gpointer mime_type_
); FmIcon* fm_mime_type_get_icon (FmMimeType *mime_type
); const char* fm_mime_type_get_type (FmMimeType *mime_type
); const char* fm_mime_type_get_desc (FmMimeType *mime_type
); char** fm_mime_type_get_actions (FmMimeType *mime_type
); char* fm_mime_type_get_default_action (FmMimeType *mime_type
); void fm_mime_type_set_default_action (FmMimeType *mime_type
,const char *desktop_id
); void fm_mime_type_add_action (FmMimeType *mime_type
,const char *desktop_id
,char **custom_desktop
); char** fm_mime_type_get_all_known_apps (); char** fm_mime_type_join_actions (char **list1
,gsize len1
,char **list2
,gsize len2
); GList* fm_mime_type_add_reload_cb (GFreeFunc cb
,gpointer user_data
); void fm_mime_type_remove_reload_cb (GList *cb
);
typedef struct { char* type; /* mime type name */ char* description; /* description of the mime type */ FmIcon* icon; int n_ref; } FmMimeType;
FmMimeType* fm_mime_type_get_for_file_name (const char *ufile_name
);
|
|
Returns : |
FmMimeType* fm_mime_type_get_for_native_file (const char *file_path
,const char *base_name
,struct stat *pstat
);
|
|
|
|
|
|
Returns : |
FmMimeType* fm_mime_type_get_for_type (const char *type
);
|
|
Returns : |
FmIcon* fm_mime_type_get_icon (FmMimeType *mime_type
);
|
|
Returns : |
const char* fm_mime_type_get_type (FmMimeType *mime_type
);
|
|
Returns : |
const char* fm_mime_type_get_desc (FmMimeType *mime_type
);
|
|
Returns : |
char** fm_mime_type_get_actions (FmMimeType *mime_type
);
|
|
Returns : |
char* fm_mime_type_get_default_action (FmMimeType *mime_type
);
|
|
Returns : |
void fm_mime_type_set_default_action (FmMimeType *mime_type
,const char *desktop_id
);
|
|
|
void fm_mime_type_add_action (FmMimeType *mime_type
,const char *desktop_id
,char **custom_desktop
);
|
|
|
|
|
char** fm_mime_type_join_actions (char **list1
,gsize len1
,char **list2
,gsize len2
);
|
|
|
|
|
|
|
|
Returns : |
GList* fm_mime_type_add_reload_cb (GFreeFunc cb
,gpointer user_data
);
|
|
|
|
Returns : |