home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / xmlglue.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  65 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef    _RDF_XMLGLUE_H_
  20. #define    _RDF_XMLGLUE_H_
  21.  
  22. #include "xmlparse.h"
  23.  
  24. #ifdef XP_UNIX
  25. #include <sys/fcntl.h>
  26. #elif defined(XP_MAC)
  27. #include <fcntl.h>
  28. #endif
  29.  
  30.  
  31.  
  32. /* xmlglue.c data structures and defines */
  33.  
  34. #define XML_LINE_SIZE 500
  35.  
  36.  
  37.  
  38. /* xmlglue.c function prototypes */
  39.  
  40. XP_BEGIN_PROTOS
  41.  
  42. unsigned int            xml_write_ready(NET_StreamClass *stream);
  43. void                xml_abort(NET_StreamClass *stream, int status);
  44. void                xml_complete (NET_StreamClass *stream);
  45. unsigned int            xmlcss_write_ready(NET_StreamClass *stream);
  46. void                xmlcss_abort(NET_StreamClass *stream, int status);
  47. void                xmlcss_complete (NET_StreamClass *stream);
  48. void                outputToStream (XMLFile f, char* s);
  49. void                xmlcss_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
  50. void                readCSS (StyleSheet ss);
  51. int                xmlhtml_write(NET_StreamClass *stream, const char *str, int32 len);
  52. unsigned int            xmlhtml_write_ready(NET_StreamClass *stream);
  53. void                xmlhtml_abort(NET_StreamClass *stream, int status);
  54. void                xmlhtml_complete  (NET_StreamClass *stream);
  55. void                xmlhtml_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
  56. void                readHTML (char* url, XMLHTMLInclusion ss);
  57.  
  58. PUBLIC NET_StreamClass *    XML_XMLConverter(FO_Present_Types  format_out, void *data_object, URL_Struct *URL_s, MWContext  *window_id);
  59. PUBLIC NET_StreamClass *    XML_CSSConverter(FO_Present_Types  format_out, void *data_object, URL_Struct *URL_s, MWContext  *window_id);
  60. PUBLIC NET_StreamClass *    XML_HTMLConverter(FO_Present_Types  format_out, void *data_object, URL_Struct *URL_s, MWContext  *window_id);
  61.  
  62. XP_END_PROTOS
  63.  
  64. #endif
  65.