Annotation of libwww/Library/src/HTInit.html, revision 2.27
2.6 timbl 1: <HTML>
2: <HEAD>
2.19 frystyk 3: <TITLE>Initialization Routines</TITLE>
2.27 ! frystyk 4: <!-- Changed by: Henrik Frystyk Nielsen, 19-Nov-1995 -->
2.6 timbl 5: </HEAD>
6: <BODY>
2.9 frystyk 7: <H1>Initialization Module</H1>
8:
2.11 frystyk 9: <PRE>
10: /*
2.16 frystyk 11: ** (c) COPYRIGHT MIT 1995.
2.11 frystyk 12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
15:
2.24 frystyk 16: This module resisters all the plug & play software modules which
17: will be used in the program on client side (The server has it's own
18: initialization module). None of the functions in this module are
19: called from the Library. They are uniquely a help for the application
20: programmer in order to set up the functionality of the Library. <P>
2.9 frystyk 21:
2.27 ! frystyk 22: The initialization consists of definiting the following bindings:
2.14 frystyk 23:
24: <UL>
2.17 frystyk 25: <LI>Between a source media type and a dest media type (conversion)
26: <LI>Between media types and external viewers/presenters
27: <LI>Between file extensions and media types
28: <LI>Between an access method and a protocol module
2.14 frystyk 29: </UL>
30:
2.11 frystyk 31: This module is implemented by <A HREF="HTInit.c">HTInit.c</A>, and it
2.21 frystyk 32: is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
2.27 ! frystyk 33: Reference Library</A>. <P>
! 34:
! 35: <IMG SRC="../../Icons/32x32/warning.gif"> <B>THE APPLICATION MAY USE
! 36: THESE FUNCTIONS BUT IT IS NOT REQUIRED</B>
2.7 timbl 37:
2.9 frystyk 38: <PRE>
2.13 frystyk 39: #ifndef HTINIT_H
40: #define HTINIT_H
2.27 ! frystyk 41: #include "WWWLib.h"
2.9 frystyk 42: </PRE>
2.7 timbl 43:
2.14 frystyk 44: <H2>Media Type Conversions</H2>
45:
46: The <EM>Converters</EM> are used to convert a media type to another
47: media type, or to present it on screen. This is a part of the stream
48: stack algorithm. The Presenters are also used in the stream stack, but
49: are initialized separately.
50:
51: <PRE>
2.23 frystyk 52: #include "HTML.h" /* Uses HTML/HText interface */
53: #include "HTPlain.h" /* Uses HTML/HText interface */
54:
55: #include "HTTeXGen.h"
56: #include "HTMLGen.h"
57: #include "HTMIME.h"
2.24 frystyk 58: #include "HTBound.h"
2.25 frystyk 59: #include "HTGuess.h"
2.26 frystyk 60: #include "HTRules.h"
2.23 frystyk 61: #include "HTWSRC.h"
62: #include "HTFWrite.h"
63: #include "HTNewsLs.h"
64:
2.21 frystyk 65: extern void HTConverterInit (HTList * conversions);
2.14 frystyk 66: </PRE>
67:
68: <H2>Presenters</H2>
2.7 timbl 69:
2.14 frystyk 70: The <EM>Presenters</EM> are used to present a media type to the use by
71: calling an external program, for example a post script viewer. This is
72: a part of the stream stack algorithm. The Converters are also used in
73: the stream stack, but are initialized separately.
74:
75: <PRE>
2.21 frystyk 76: extern void HTPresenterInit (HTList * conversions);
2.14 frystyk 77: </PRE>
78:
79: <H2>Converters and Presenters</H2>
80:
81: This function is only defined in order to preserve backward
82: compatibility.
2.21 frystyk 83:
84: <PRE>
85: extern void HTFormatInit (HTList * conversions);
2.9 frystyk 86: </PRE>
87:
2.15 frystyk 88: <H2>Protocol Modules</H2>
89:
90: Set up default bindings between access schemes and the set of protocol
91: modules in the Library.
92:
93: <PRE>
2.25 frystyk 94: #include "HTIcons.h"
2.23 frystyk 95: #include "HTTP.h"
96: #include "HTFile.h"
97: #include "HTFTP.h"
98: #include "HTGopher.h"
99: #include "HTTelnet.h"
100: #include "HTNews.h"
101:
102: #ifdef HT_DIRECT_WAIS
103: #include "HTWAIS.h"
104: #endif
105:
2.21 frystyk 106: extern void HTAccessInit (void);
2.15 frystyk 107: </PRE>
108:
2.9 frystyk 109: <H2>File Suffix Setup</H2>
110:
2.14 frystyk 111: This functions defines a basic set of file suffixes and the
112: corresponding media types.
2.9 frystyk 113:
114: <PRE>
2.21 frystyk 115: extern void HTFileInit (void);
2.27 ! frystyk 116: </PRE>
! 117:
! 118: <H2>Register Callbacks For the NET manager</H2>
! 119:
! 120: We register two often used callback functions: a BEFORE and a AFTER
! 121: callback Not done automaticly - may be done by application!
! 122:
! 123: <PRE>
! 124: #include "HTHome.h"
! 125:
! 126: extern void HTNetInit (void);
! 127: </PRE>
2.14 frystyk 128:
2.27 ! frystyk 129: <H2>Register Callbacks for the ALERT Manager</H2>
! 130:
! 131: We register a set of alert messages Not done automaticly - may be done
! 132: by application!
! 133:
! 134: <PRE>
! 135: #include "HTDialog.h"
! 136:
! 137: extern void HTAlertInit (void);
! 138: </PRE>
! 139:
! 140: <PRE>
2.13 frystyk 141: #endif
2.9 frystyk 142: </PRE>
2.7 timbl 143:
2.9 frystyk 144: End of HTInit Module.
145: </BODY>
2.6 timbl 146: </HTML>
2.8 frystyk 147:
Webmaster