diff options
author | James Bursa <james@netsurf-browser.org> | 2003-06-21 13:18:00 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-06-21 13:18:00 +0000 |
commit | 94073c9bf642727d41a50c278d03a2b2f4af60ee (patch) | |
tree | 18395e80cb5f3984844f88819354d9ed5064794c /debug/filetyped.c | |
parent | 0c0ff3c59631d0968c888279195ea40d4a7fd824 (diff) | |
download | netsurf-94073c9bf642727d41a50c278d03a2b2f4af60ee.tar.gz netsurf-94073c9bf642727d41a50c278d03a2b2f4af60ee.tar.bz2 |
[project @ 2003-06-21 13:18:00 by bursa]
Add debug command line build.
svn path=/import/netsurf/; revision=181
Diffstat (limited to 'debug/filetyped.c')
-rw-r--r-- | debug/filetyped.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debug/filetyped.c b/debug/filetyped.c new file mode 100644 index 000000000..853e1e57e --- /dev/null +++ b/debug/filetyped.c @@ -0,0 +1,21 @@ +/** + * $Id: filetyped.c,v 1.1 2003/06/21 13:18:00 bursa Exp $ + */ + +#include <stdlib.h> +#include "netsurf/content/fetch.h" +#include "netsurf/utils/log.h" +#include "netsurf/utils/utils.h" + +/** + * filetype -- determine the MIME type of a local file + */ + +const char *fetch_filetype(const char *unix_path) +{ + LOG(("unix path %s", unix_path)); + if (strcasecmp(unix_path, "home/james/Projects/netsurf/CSS") == 0) + return "text/css"; + return "text/html"; +} + |