home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / scook.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.7 KB  |  70 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_SCOOK_H_
  20. #define    _RDF_SCOOK_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24.  
  25.  
  26.  
  27. /* scook.c data structures */
  28.  
  29. typedef struct _SCookDBStruct {
  30.   PLHashTable* lhash;
  31.   PLHashTable* rhash;
  32.   char* reader;
  33.   RDFFile rf;
  34.   RDFT   db;
  35. } SCookDBStruct;
  36.  
  37. typedef SCookDBStruct* SCookDB;
  38.  
  39.  
  40.  
  41. /* scook.c function prototypes */
  42.  
  43. XP_BEGIN_PROTOS
  44.  
  45. char *        makeSCookPathname(char* name);
  46. PRBool        SCookAssert1 (RDFT mcf,   RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  47. PRBool        SCookAssert3 (RDFT mcf,   RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  48. PRBool        SCookAssert2 (RDFFile  file, RDFT mcf,  RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  49. Assertion    SCookAssert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  50. PRBool        SCookUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  51. Assertion    SCookRemove (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  52. PRBool        SCookHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  53. void *        SCookGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  54. RDF_Cursor    SCookGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  55. void *        SCookNextValue (RDFT mcf, RDF_Cursor c);
  56. RDF_Error    SCookDisposeCursor (RDFT mcf, RDF_Cursor c);
  57. Assertion    getArg1 (RDFT r, RDF_Resource u);
  58. Assertion    getArg2 (RDFT r, RDF_Resource u);
  59. void        setArg1 (RDFT r, RDF_Resource u, Assertion as);
  60. void        setArg2 (RDFT r, RDF_Resource u, Assertion as);
  61. void        gcSCookFile (RDFT rdf, RDFFile f);
  62. void        disposeAllSCookFiles (RDFT rdf, RDFFile f);
  63. void        SCookDisposeDB (RDFT rdf);
  64. void        possiblyAccessSCookFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep);
  65. RDFT        MakeSCookDB (char* url);
  66.  
  67. XP_END_PROTOS
  68.  
  69. #endif
  70.