From 94073c9bf642727d41a50c278d03a2b2f4af60ee Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 21 Jun 2003 13:18:00 +0000 Subject: [project @ 2003-06-21 13:18:00 by bursa] Add debug command line build. svn path=/import/netsurf/; revision=181 --- debug/filetyped.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debug/filetyped.c (limited to 'debug/filetyped.c') 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 +#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"; +} + -- cgit v1.2.3