parent
236b6a15e1
commit
088742b3c3
|
@ -250,17 +250,17 @@ int cmp_type(const void *x, const void *y)
|
|||
* \param content The content to examine.
|
||||
* \return The RISC OS filetype corresponding to the content
|
||||
*/
|
||||
int ro_content_filetype(struct content *content)
|
||||
int ro_content_filetype(struct hlcache_handle *c)
|
||||
{
|
||||
int file_type;
|
||||
os_error *error;
|
||||
|
||||
file_type = ro_content_filetype_from_type(content->type);
|
||||
file_type = ro_content_filetype_from_type(content_get_type(c));
|
||||
if (file_type != 0)
|
||||
return file_type;
|
||||
|
||||
error = xmimemaptranslate_mime_type_to_filetype(content->mime_type,
|
||||
(bits *) &file_type);
|
||||
error = xmimemaptranslate_mime_type_to_filetype(
|
||||
content_get_mime_type(c), (bits *) &file_type);
|
||||
if (error)
|
||||
return 0xffd;
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ void ro_gui_hotlist_prepare_entry_dialog(struct node *node);
|
|||
bool ro_gui_hotlist_dialog_apply(wimp_w w);
|
||||
|
||||
/* in filetype.c */
|
||||
int ro_content_filetype(struct content *content);
|
||||
int ro_content_filetype(struct hlcache_handle *c);
|
||||
int ro_content_filetype_from_type(content_type type);
|
||||
bits ro_filetype_from_unix_path(const char *unix_path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue