home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / remstore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.8 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_REMSTORE_H_
  20. #define    _RDF_REMSTORE_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24.  
  25. #ifdef NSPR20
  26. #include "prtime.h"
  27. #else
  28. #include "prtime.h"
  29. #endif
  30.  
  31.  
  32.  
  33. /* remstore.c data structures and defines */
  34.  
  35.  
  36.  
  37.  
  38. /* remstore.c function prototypes */
  39.  
  40. XP_BEGIN_PROTOS
  41.  
  42. RDFT        MakeRemoteStore (char* url);
  43. RDFT        MakeFileDB (char* url);
  44. PRBool        asEqual(Assertion as, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  45. Assertion    makeNewAssertion (RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  46. void        freeAssertion (Assertion as);
  47. PRBool        remoteAssert3 (RDFFile fi, RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  48. Assertion    remoteStoreAdd (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  49. Assertion    remoteStoreRemove (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  50. PRBool        fileReadablep (char* id);
  51. PRBool        remoteStoreHasAssertionInt (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  52. PRBool        remoteStoreHasAssertion (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  53. void *        remoteStoreGetSlotValue (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  54. RDF_Cursor    remoteStoreGetSlotValuesInt (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  55. RDF_Cursor    remoteStoreGetSlotValues (RDFT mcf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  56. void *        remoteStoreNextValue (RDFT mcf, RDF_Cursor c);
  57. RDF_Error    remoteStoreDisposeCursor (RDFT mcf, RDF_Cursor c);
  58. void        gcRDFFile (RDFFile f);
  59. RDFFile        readRDFFile (char* url, RDF_Resource top, PRBool localp);
  60. void        possiblyRefreshRDFFiles ();
  61.  
  62. static PRBool    fileReadp (char* url, PRBool mark);
  63. static void    possiblyAccessFile (RDFT mcf, RDF_Resource u, RDF_Resource s, PRBool inversep);
  64. static RDFFile    leastRecentlyUsedRDFFile (RDF mcf);
  65. static PRBool    freeSomeRDFSpace (RDF mcf);
  66.  
  67. XP_END_PROTOS
  68.  
  69. #endif
  70.