home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / mcff2mcf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  62 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_MCFF2MCF_H_
  20. #define    _RDF_MCFF2MCF_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24.  
  25.  
  26.  
  27. /* mcff2mcf.c data structures and defines */
  28.  
  29.  
  30.  
  31.  
  32. /* mcff2mcf.c function prototypes */
  33.  
  34. XP_BEGIN_PROTOS
  35.  
  36. RDF_Resource        getMCFFrtop (char* furl);
  37. RDFFile            makeRDFFile (char* url, RDF_Resource top, PRBool localp);
  38. void            initRDFFile (RDFFile ans);
  39. void            finishRDFParse (RDFFile f);
  40. void            abortRDFParse (RDFFile f);
  41. void            addToResourceList (RDFFile f, RDF_Resource u);
  42. void            addToAssertionList (RDFFile f, Assertion as);
  43. void            parseNextRDFBlob (RDFFile f, char* blob, int32 size);
  44. int            parseNextMCFBlob(NET_StreamClass *stream, char* blob, int32 size);
  45. void            parseNextMCFLine (RDFFile f, char* line);
  46. void            finishMCFParse (RDFFile f);
  47. void            resourceTransition (RDFFile f);
  48. void            assignHeaderSlot (RDFFile f, char* slot, char* value);
  49. RDF_Error        getFirstToken (char* line, char* nextToken, int16* l);
  50. void            addSlotValue (RDFFile f, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  51. void            assignSlot (RDF_Resource u, char* slot, char* value, RDFFile f);
  52. RDF_Error        parseSlotValue (RDFFile f, RDF_Resource s, char* value, void** parsed_value, RDF_ValueType* data_type);
  53. void            derelativizeURL (char* tok, char* url, RDFFile f);
  54. RDF_Resource        resolveReference (char *tok, RDFFile f);
  55. RDF_Resource        resolveGenlPosReference(char* tok,  RDFFile f);
  56. char *            getRelURL (RDF_Resource u, RDF_Resource top);
  57. PRBool            bookmarkSlotp (RDF_Resource s);
  58.  
  59. XP_END_PROTOS
  60.  
  61. #endif
  62.