Annotation of libwww/Library/src/HTInit.html, revision 2.11

2.6       timbl       1: <HTML>
                      2: <HEAD>
2.9       frystyk     3: <TITLE>Initialization routines in libwww</TITLE>
2.6       timbl       4: </HEAD>
                      5: <BODY>
2.9       frystyk     6: <H1>Initialization Module</H1>
                      7: 
2.11    ! frystyk     8: <PRE>
        !             9: /*
        !            10: **     (c) COPYRIGHT CERN 1994.
        !            11: **     Please first read the full copyright statement in the file COPYRIGH.
        !            12: */
        !            13: </PRE>
        !            14: 
2.9       frystyk    15: This module resisters all the plug &amp; play software modules which will
                     16: be used in the program on client side (The server has it's own initialization
2.11    ! frystyk    17: module). <P>
2.9       frystyk    18: 
                     19: The initialization consists of two phases: Setting up the MIME type conversions
                     20: and defining the relation between a basic set of file suffixes and MIME types. 
                     21: To override this, just copy it and link in your version before you link
2.6       timbl      22: with the library.<P>
                     23: 
2.11    ! frystyk    24: This module is implemented by <A HREF="HTInit.c">HTInit.c</A>, and it
        !            25: is a part of the <A
        !            26: HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">
        !            27: Library of Common Code</A>.
2.7       timbl      28: 
2.9       frystyk    29: <PRE>
                     30: #include "HTUtils.h"
                     31: #include "HTList.h"
                     32: </PRE>
2.7       timbl      33: 
2.9       frystyk    34: <H2>MIME Type Conversions</H2>
2.7       timbl      35: 
2.9       frystyk    36: Two default functions can be used to do the MIME type initialization. The
                     37: first contains all MIME types the client can handle <B>plus</B> the types
                     38: that can be handled using save and execute calls, e.g. to start a PostScript
                     39: viewer. The second function only contains MIME type conversions that can
                     40: be handled internally in the client. As an example, the latter is used
                     41: when <A HREF="http://info.cern.ch/hypertext/WWW/LineMode/Status.html">
                     42: Line Mode Browser</A> is started in Non-Interactive mode.
                     43: 
                     44: <PRE>
2.10      frystyk    45: extern void HTFormatInit PARAMS((HTList * conversions));
                     46: extern void HTFormatInitNIM PARAMS((HTList * conversions));
2.9       frystyk    47: </PRE>
                     48: 
                     49: <H2>File Suffix Setup</H2>
                     50: 
                     51: This functions defines a basic set of file suffixes and the corresponding
                     52: MIME types.
                     53: 
                     54: <PRE>
2.10      frystyk    55: extern void HTFileInit NOPARAMS;
2.9       frystyk    56: </PRE>
2.7       timbl      57: 
2.9       frystyk    58: End of HTInit Module.
                     59: </BODY>
2.6       timbl      60: </HTML>
2.8       frystyk    61: 

Webmaster