summaryrefslogtreecommitdiff
path: root/content/fetchers/doi.h
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2011-05-15 20:01:25 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2011-05-15 20:01:25 +0000
commitd25e5568bb082e26c0c3755b9cd504660cee0e70 (patch)
tree989b6ac5aec15448479fc3b822a97928165ce916 /content/fetchers/doi.h
parent6c2977ec293f61db2f0d5732b9b232fd355cabdf (diff)
downloadnetsurf-d25e5568bb082e26c0c3755b9cd504660cee0e70.tar.gz
netsurf-d25e5568bb082e26c0c3755b9cd504660cee0e70.tar.bz2
Add a redirecting fetcher for the doi: URI scheme. Not much used but just in case...
svn path=/trunk/netsurf/; revision=12412
Diffstat (limited to 'content/fetchers/doi.h')
-rw-r--r--content/fetchers/doi.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/content/fetchers/doi.h b/content/fetchers/doi.h
new file mode 100644
index 000000000..675926285
--- /dev/null
+++ b/content/fetchers/doi.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2011 François Revol <mmu_man@users.sourceforge.net>
+ *
+ * This file is part of NetSurf.
+ *
+ * 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/>.
+ */
+
+/** \file
+ * doi: URL method handler.
+ *
+ * The doi fetcher is intended to provide a redirection of doi URLs
+ * to the canonical doi website accessible via HTTP.
+ * cf. http://tools.ietf.org/html/draft-paskin-doi-uri
+ *
+ */
+
+#ifndef NETSURF_CONTENT_FETCHERS_FETCH_DOI_H
+#define NETSURF_CONTENT_FETCHERS_FETCH_DOI_H
+
+/**
+ * Register the resource scheme.
+ *
+ * should only be called from the fetch initialise
+ */
+void fetch_doi_register(void);
+
+#endif