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

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

Webmaster