home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / es2mcf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  67 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_ES2MCF_H_
  20. #define    _RDF_ES2MCF_H_
  21.  
  22. #include "rdf-int.h"
  23. #include "net.h"
  24.  
  25.  
  26.  
  27. /* es2mcf.c data structures and defines */
  28.  
  29. typedef struct  {
  30.         char            *parent;
  31.         char            *child;
  32.         int             method;
  33. } _esFEData;
  34.  
  35.  
  36.  
  37. /* es2mcf.c function prototypes */
  38.  
  39. XP_BEGIN_PROTOS
  40.  
  41. RDFT        MakeESFTPStore (char* url);
  42. _esFEData *     esMakeFEData(RDF_Resource parent, RDF_Resource child, int method);
  43. void            esFreeFEData(_esFEData *feData);
  44. RDF_Error    ESInit (RDFT ntr);
  45. PRBool        ESFTPRT (RDF_Resource u);
  46. PRBool        ESAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  47. PRBool        ESUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  48. PRBool        ESDBAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  49. PRBool        ESDBRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  50. PRBool        ESHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  51. void *        ESGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  52. RDF_Cursor    ESGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  53. void *        ESNextValue (RDFT mcf, RDF_Cursor c);
  54. RDF_Error    ESDisposeCursor (RDFT mcf, RDF_Cursor c);
  55. void        es_GetUrlExitFunc (URL_Struct *urls, int status, MWContext *cx);
  56. char *        nativeFilename(char *filename);
  57. void        ESAddChild (RDF_Resource parent, RDF_Resource child);
  58. void        ESRemoveChild (RDF_Resource parent, RDF_Resource child);
  59. void        possiblyAccessES(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
  60. void        parseNextESFTPLine (RDFFile f, char* line);
  61. int        parseNextESFTPBlob(NET_StreamClass *stream, char* blob, int32 size);
  62.  
  63. XP_END_PROTOS
  64.  
  65. #endif
  66.  
  67.