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

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: 
2.13.2.1! frystyk    19: The initialization consists of definiting three bindings:
        !            20: 
        !            21: <UL>
        !            22: <LI>Bindings between a source media type and a dest media type (conversion)
        !            23: <LI>Bindings between media types and external viewers/presenters
        !            24: <LI>Bindings between file extensions and media types
        !            25: </UL>
        !            26: 
        !            27: To override the default behavior, you can do two things:
        !            28: 
        !            29: <UL>
        !            30: <LI>Use the <CODE>HT_NO_INIT</CODE> preprocessor define
        !            31: <LI>Copy it and link in your version before you link with the library.
        !            32: </UL>
2.6       timbl      33: 
2.11      frystyk    34: This module is implemented by <A HREF="HTInit.c">HTInit.c</A>, and it
                     35: is a part of the <A
2.13.2.1! frystyk    36: HREF="http://www.w3.org/hypertext/WWW/Library/User/Guide/Guide.html">
2.11      frystyk    37: Library of Common Code</A>.
2.7       timbl      38: 
2.9       frystyk    39: <PRE>
2.13      frystyk    40: #ifndef HTINIT_H
                     41: #define HTINIT_H
                     42: 
2.9       frystyk    43: #include "HTList.h"
                     44: </PRE>
2.7       timbl      45: 
2.13.2.1! frystyk    46: <H2>Media Type Conversions</H2>
        !            47: 
        !            48: The <EM>Converters</EM> are used to convert a media type to another
        !            49: media type, or to present it on screen. This is a part of the stream
        !            50: stack algorithm. The Presenters are also used in the stream stack, but
        !            51: are initialized separately.
        !            52: 
        !            53: <PRE>
        !            54: extern void HTConverterInit PARAMS((HTList * conversions));
        !            55: </PRE>
        !            56: 
        !            57: <H2>Presenters</H2>
2.7       timbl      58: 
2.13.2.1! frystyk    59: The <EM>Presenters</EM> are used to present a media type to the use by
        !            60: calling an external program, for example a post script viewer. This is
        !            61: a part of the stream stack algorithm. The Converters are also used in
        !            62: the stream stack, but are initialized separately.
        !            63: 
        !            64: <PRE>
        !            65: extern void HTPresenterInit PARAMS((HTList * conversions));
        !            66: </PRE>
        !            67: 
        !            68: <H2>Converters and Presenters</H2>
        !            69: 
        !            70: This function is only defined in order to preserve backward
        !            71: compatibility.
2.9       frystyk    72: 
                     73: <PRE>
2.10      frystyk    74: extern void HTFormatInit PARAMS((HTList * conversions));
2.9       frystyk    75: </PRE>
                     76: 
                     77: <H2>File Suffix Setup</H2>
                     78: 
2.13.2.1! frystyk    79: This functions defines a basic set of file suffixes and the
        !            80: corresponding media types.
2.9       frystyk    81: 
                     82: <PRE>
2.13.2.1! frystyk    83: #ifndef HT_NO_INIT
2.10      frystyk    84: extern void HTFileInit NOPARAMS;
2.13.2.1! frystyk    85: #endif
        !            86: 
2.13      frystyk    87: #endif
2.9       frystyk    88: </PRE>
2.7       timbl      89: 
2.9       frystyk    90: End of HTInit Module.
                     91: </BODY>
2.6       timbl      92: </HTML>
2.8       frystyk    93: 

Webmaster