Fix filetype.c.

svn path=/trunk/netsurf/; revision=10260
This commit is contained in:
Michael Drake 2010-04-07 09:12:46 +00:00
parent 236b6a15e1
commit 088742b3c3
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);