Annotation of libwww/Library/src/HTHInit.c, revision 2.2
2.1 frystyk 1: /*
2: ** CONFIGURATION-SPECIFIC INITIALIALIZATION FOR HTML PARSER
3: **
4: ** (c) COPYRIGHT MIT 1995.
5: ** Please first read the full copyright statement in the file COPYRIGH.
2.2 ! frystyk 6: ** @(#) $Id: HTHInit.c,v 2.1 1996/06/08 01:52:14 frystyk Exp $
2.1 frystyk 7: **
8: ** Set up the HTML parsers in libwww
9: */
10:
11: /* Library include files */
12: #include "sysdep.h"
13: #include "WWWUtil.h"
2.2 ! frystyk 14: #include "WWWCore.h"
2.1 frystyk 15: #include "HTHInit.h" /* Implemented here */
16:
17: /* ------------------------------------------------------------------------- */
18:
19: /* BINDINGS BETWEEN A SOURCE MEDIA TYPE AND A DEST MEDIA TYPE (CONVERSION)
20: ** ----------------------------------------------------------------------
21: ** Not done automaticly - may be done by application!
22: */
23: PUBLIC void HTMLInit (HTList * c)
24: {
25: /*
26: ** This set of converters uses the HTML/HText interface.
27: ** If you do not want this interface then replace them!
28: */
29: HTConversion_add(c,"text/html", "www/present", HTMLPresent, 1.0, 0.0, 0.0);
30: HTConversion_add(c,"text/plain", "www/present", HTPlainPresent, 1.0, 0.0, 0.0);
31: HTConversion_add(c,"text/html", "text/x-c", HTMLToC, 0.5, 0.0, 0.0);
32: HTConversion_add(c,"text/html", "text/plain", HTMLToPlain, 0.5, 0.0, 0.0);
33: HTConversion_add(c,"text/html", "text/latex", HTMLToTeX, 1.0, 0.0, 0.0);
34: }
Webmaster