home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / fs2rdf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  72 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_FS2RDF_H_
  20. #define    _RDF_FS2RDF_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24. #include "xp_mem.h"
  25. #include "client.h"
  26. #include "prio.h"
  27. #include "prlong.h"
  28.  
  29. #ifdef    XP_MAC
  30. #include <Files.h>
  31. #endif
  32.  
  33.  
  34.  
  35. /* fs2rdf.c data structures and defines */
  36.  
  37. #define fsUnitp(u) (resourceType(u) == LFS_RT)
  38.  
  39. #define XP_DIRECTORY_SEPARATOR '/'
  40.  
  41.  
  42. #ifdef    XP_WIN
  43. #define    FS_URL_OFFSET        8
  44. #else
  45. #define    FS_URL_OFFSET        7
  46. #endif
  47.  
  48.  
  49.  
  50. /* fs2rdf.c function prototypes */
  51.  
  52. XP_BEGIN_PROTOS
  53.  
  54. char *        getVolume(int volNum);
  55. void        buildVolumeList(RDF_Resource fs);
  56. PRDir *        OpenDir(char *name);
  57. RDFT        MakeLFSStore (char* url);
  58. PRBool        fsRemoveFile(char *filePathname, PRBool justCheckWriteAccess);
  59. PRBool        fsRemoveDir(char *filePathname, PRBool justCheckWriteAccess);
  60. PRBool        fsUnassert (RDFT mcf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  61. PRBool        fsHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  62. void *        fsGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  63. PRBool        fileDirectoryp(RDF_Resource u);
  64. RDF_Cursor    fsGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  65. void *        fsNextValue (RDFT rdf, RDF_Cursor c);
  66. RDF_Error    fsDisposeCursor (RDFT rdf, RDF_Cursor c);
  67. RDF_Resource    CreateFSUnit (char* nname, PRBool isDirectoryFlag);
  68.  
  69. XP_END_PROTOS
  70.  
  71. #endif
  72.