summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-03 17:29:59 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-07 16:23:19 +0100
commit283cd05d0112b08753cb0b0c505a370ebccc52d1 (patch)
treeb1f385e00df72d20b360e9787fc5f4f8716235f6 /atari
parentf6867efcf895e0010fcdabe0351a5d3fa4a67d89 (diff)
downloadnetsurf-283cd05d0112b08753cb0b0c505a370ebccc52d1.tar.gz
netsurf-283cd05d0112b08753cb0b0c505a370ebccc52d1.tar.bz2
Improve documentation on mimetype fetcher table
Diffstat (limited to 'atari')
-rwxr-xr-xatari/filetype.c6
-rw-r--r--atari/filetype.h24
-rw-r--r--atari/gui.c1
3 files changed, 23 insertions, 8 deletions
diff --git a/atari/filetype.c b/atari/filetype.c
index 9b73a0508..5e700a0c6 100755
--- a/atari/filetype.c
+++ b/atari/filetype.c
@@ -91,9 +91,3 @@ error:
LOG(("mime type: %s", res ));
return( res );
}
-
-
-char *fetch_mimetype(const char *ro_path)
-{
- return strdup("text/plain");
-}
diff --git a/atari/filetype.h b/atari/filetype.h
index 54d915bf5..97ba75b80 100644
--- a/atari/filetype.h
+++ b/atari/filetype.h
@@ -1,2 +1,24 @@
-char *fetch_mimetype(const char *ro_path);
+/*
+ * Copyright 2010 Ole Loots <ole@monochrom.net>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NS_ATARI_FILETYPE_H_
+#define NS_ATARI_FILETYPE_H_
+
const char *fetch_filetype(const char *unix_path);
+
+#endif
diff --git a/atari/gui.c b/atari/gui.c
index 4e077bdab..c275bfdc4 100644
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -1078,7 +1078,6 @@ static struct gui_fetch_table atari_fetch_table = {
.url_to_path = url_to_path,
.get_resource_url = gui_get_resource_url,
- .mimetype = fetch_mimetype,
};
static struct gui_browser_table atari_browser_table = {