HTXParse.h
Upload User: zlh9724
Upload Date: 2007-01-04
Package Size: 1991k
Code Size: 2k
Category:

Browser Client

Development Platform:

Unix_Linux

  1. /*                                        ExtParse: Module to get unparsed stream from libwww
  2.                     XPARSE: MODULE TO GET UNPARSED STREAM FROM LIBWWW
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    This version of the stream object is a hook for clients that want an unparsed stream
  11.    from libwww. The HTXParse_put_* and HTXParse_write routines copy the content of the
  12.    incoming buffer into a buffer that is realloced whenever necessary. This buffer is
  13.    handed over to the client in HTXParse_free. See also HTFWriter for writing to C files.
  14.    
  15.   BUGS:
  16.   
  17.       strings written must be less than buffer size.
  18.       
  19.    This module is implemented by HTXParse.c, and it is a part of the  W3C Reference
  20.    Library.
  21.    
  22.  */
  23. #ifndef HTXPARSE_H
  24. #define HTXPARSE_H
  25. #include "HTStream.h"
  26. #include "HTReq.h"
  27. typedef struct _HTXParseStruct HTXParseStruct;
  28. typedef void CallClient (HTXParseStruct * me);
  29. struct _HTXParseStruct {
  30.         CallClient      *call_client;
  31.         int             used;         /* how much of the buffer is being used*/
  32.         BOOL            finished;     /* document loaded? */
  33.         int             length;       /* how long the buffer is */
  34.         char *          buffer;       /* storage in until client takes over */
  35.         char *          content_type;
  36.         HTRequest *     request;      /* the request structure */
  37. };
  38. extern HTConverter HTXParse;
  39. #endif
  40. /*
  41.    End of declaration */