home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / rdfparse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  60 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_RDFPARSE_H_
  20. #define    _RDF_RDFPARSE_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24.  
  25.  
  26.  
  27.  
  28. /* rdfparse.c data structures and defines */
  29.  
  30. #define wsc(c) ((c == ' ') || (c == '\r') || (c == '\n') || (c == '\t'))
  31.  
  32.  
  33. #define EXPECTING_OBJECT 21
  34. #define EXPECTING_PROPERTY 22
  35.  
  36.  
  37.  
  38. /* rdfparse.c function prototypes */
  39.  
  40. XP_BEGIN_PROTOS
  41.  
  42. char *        getHref(char** attlist);
  43. int        parseNextRDFXMLBlob (NET_StreamClass *stream, char* blob, int32 size);
  44. void        parseRDFProcessingInstruction (RDFFile f, char* token);
  45. PR_PUBLIC_API(char *)        getAttributeValue (char** attlist, char* elName);
  46. PRBool        tagEquals (RDFFile f, char* tag1, char* tag2);
  47. void        addElementProps (char** attlist, char* elementName, RDFFile f, RDF_Resource obj);
  48. PRBool        knownObjectElement (char* eln);
  49. char *        possiblyMakeAbsolute (RDFFile f, char* url);
  50. PRBool        containerTagp (RDFFile f, char* elementName);
  51. RDF_Resource    ResourceFromElementName (RDFFile f, char* elementName);
  52. void        parseNextRDFToken (RDFFile f, char* token);
  53. void        tokenizeElement (char* attr, char** attlist, char** elementName);
  54. void        outputRDFTreeInt (RDF rdf, PRFileDesc *fp, RDF_Resource node, uint32 depth, PRBool localOnly);
  55. void        outputRDFTree (RDF rdf, PRFileDesc *fp, RDF_Resource node);
  56.  
  57. XP_END_PROTOS
  58.  
  59. #endif
  60.