Annotation of libwww/Library/src/HTXParse.html, revision 2.6

2.1       frystyk     1: <HTML>
                      2: <HEAD>
                      3: <TITLE>ExtParse: Module to get unparsed stream from libwww</TITLE>
                      4: <!-- Changed by: , 30-Nov-1994 -->
2.5       frystyk     5: <!-- Changed by: Henrik Frystyk Nielsen,  2-Sep-1995 -->
2.1       frystyk     6: </HEAD>
                      7: <BODY>
                      8: 
                      9: <H1>ExtParse: Module to get unparsed stream from libwww</H1>
                     10: 
                     11: <PRE>
                     12: /*
2.3       frystyk    13: **     (c) COPYRIGHT MIT 1995.
2.1       frystyk    14: **     Please first read the full copyright statement in the file COPYRIGH.
                     15: */
                     16: </PRE>
                     17: 
                     18: This version of the stream object is a hook for clients that want an
                     19: unparsed stream from libwww. The HTExtParse_put_* and HTExtParse_write
                     20: routines copy the content of the incoming buffer into a buffer that is
                     21: realloced whenever necessary. This buffer is handed over to the client
                     22: in HTExtParse_free. See also <A HREF="HTFWrite.html">HTFWriter</A>
                     23: for writing to C files.<P>
                     24: 
                     25: <H3>Bugs:</H3>
                     26: 
                     27: <UL>
                     28: <LI>strings written must be less than buffer size.
                     29: </UL>
                     30: 
2.2       frystyk    31: This module is implemented by <A HREF="HTXParse.c">HTXParse.c</A>, and
                     32: it is a part of the <A
2.6     ! frystyk    33: HREF="http://www.w3.org/pub/WWW/Library/">
2.4       frystyk    34: W3C Reference Library</A>.
2.1       frystyk    35: 
                     36: <PRE>
                     37: #ifndef HTEXTPARSE_H
                     38: #define HTEXTPARSE_H
                     39: 
                     40: #include "HTStream.h"
                     41: #include "HTAccess.h"
                     42: 
                     43: typedef struct _HTExtParseStruct HTExtParseStruct;
2.5       frystyk    44: 
                     45: typedef void CallClient PARAMS((HTExtParseStruct *me));
                     46: 
2.1       frystyk    47: struct _HTExtParseStruct {
2.5       frystyk    48:        CallClient      *call_client;
                     49:        int             used;         /* how much of the buffer is being used*/
2.1       frystyk    50:        BOOL            finished;     /* document loaded? */
                     51:         int             length;       /* how long the buffer is */
2.5       frystyk    52:        char *          buffer;       /* storage in until client takes over */
2.1       frystyk    53:        char *          content_type;
                     54:        HTRequest *     request;      /* the request structure */
                     55: };
                     56: 
                     57: extern HTStream* HTExtParse PARAMS((
                     58:        HTRequest *             request,
                     59:        void *                  param,
                     60:        HTFormat                input_format,
                     61:        HTFormat                output_format,
                     62:        HTStream *              output_stream));
                     63: 
                     64: 
                     65: #endif
                     66: 
                     67: 
                     68: </PRE>end</BODY>
                     69: </HTML>

Webmaster