home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / ldap2rdf.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_LDAP2RDF_H_
  20. #define    _RDF_LDAP2RDF_H_
  21.  
  22.  
  23. #include "rdf-int.h"
  24.  
  25. #ifdef MOZ_LDAP
  26. #include "ldap.h"
  27. #include "xpgetstr.h"
  28. #include "htmldlgs.h"
  29. #endif
  30.  
  31.  
  32.  
  33. /* ldap2rdf.c data structures and defines */
  34.  
  35. #define    ADMIN_ID    "uid=rjc, ou=People, o=airius.com"
  36. #define    ADMIN_PW    "netscape"
  37.  
  38.  
  39.  
  40. /* ldap2rdf.c function prototypes */
  41.  
  42. XP_BEGIN_PROTOS
  43.  
  44. RDFT        MakeLdapStore (char* url);
  45. RDF_Error    LdapInit (RDFT ntr);
  46. void        ldap2rdfInit (RDFT rdf);
  47. Assertion    ldaparg1 (RDF_Resource u);
  48. Assertion    setldaparg1 (RDF_Resource u, Assertion as);
  49. Assertion    ldaparg2 (RDF_Resource u);
  50. Assertion    setldaparg2 (RDF_Resource u, Assertion as);
  51. PRBool        ldapAssert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  52. PRBool        ldapUnassert (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  53. PRBool        ldapDBAdd (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  54. PRBool        ldapDBRemove (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type);
  55. PRBool        ldapHasAssertion (RDFT rdf, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type, PRBool tv);
  56. void *        ldapGetSlotValue (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type, PRBool inversep,  PRBool tv);
  57. RDF_Cursor    ldapGetSlotValues (RDFT rdf, RDF_Resource u, RDF_Resource s, RDF_ValueType type,  PRBool inversep, PRBool tv);
  58. void *        ldapNextValue (RDFT mcf, RDF_Cursor c);
  59. RDF_Error    ldapDisposeCursor (RDFT mcf, RDF_Cursor c);
  60. RDF_Resource    ldapNewContainer(char *id);
  61. int        ldapModifyEntry (RDFT rdf, RDF_Resource parent, RDF_Resource child, PRBool addFlag);
  62. PRBool        ldapAddChild (RDFT rdf, RDF_Resource parent, RDF_Resource child);
  63. PRBool        ldapRemoveChild (RDFT rdf, RDF_Resource parent, RDF_Resource child);
  64. void        possiblyAccessldap(RDFT rdf, RDF_Resource u, RDF_Resource s, PRBool inversep);
  65. PRBool        ldapContainerp (RDF_Resource u);
  66.  
  67. XP_END_PROTOS
  68.  
  69. #endif
  70.