]> git.sur5r.net Git - openldap/blob - servers/slapd/slapi/slapi_cl.h
SLAPI - Netscape plugin API for slapd - based on patch contributed by Steve Omrani...
[openldap] / servers / slapd / slapi / slapi_cl.h
1 /*
2  * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5 /*
6  * (C) Copyright IBM Corp. 1997,2002
7  * Redistribution and use in source and binary forms are permitted
8  * provided that this notice is preserved and that due credit is 
9  * given to IBM Corporation. This software is provided ``as is'' 
10  * without express or implied warranty.
11  */
12
13 #ifndef _SLAPI_CL_H
14 #define _SLAPI_CL_H
15
16 #define TIME_SIZE 20
17 #define OBJECTCLASS "objectclass"
18 #define TOP "top"
19 #define CHANGE_TIME "changetime"
20 #define CHANGE_TYPE "changetype"
21 #define CHANGE_TARGETDN "targetdn"
22 #define CHANGES "changes"
23 #define CHANGE_NUMBER "changenumber"
24 /*
25  * FIXME: I get complaints like "ADD" being redefined - first definition
26  * being in "/usr/include/arpa/nameser.h:552"
27  */
28 #undef ADD
29 #define ADD "add: "
30 #define ADDLEN 5
31 #define DEL "delete: "
32 #define DELLEN 8
33 #define REPLACE "replace: "
34 #define REPLEN 9
35 #define MOD "modify"
36 #define MODRDN "modrdn"
37 #define CHANGE_LOGENTRY "changelogentry"
38 #define IBM_CHANGE_LOGENTRY "ibm-changelog"
39 #define CL_NEWRDN "newrdn"
40 #define CL_DELRDN "deleteoldrdn"
41 #define CHANGE_INITIATOR "ibm-changeInitiatorsName" 
42
43 void slapi_register_changelog_suffix(char *suffix);
44 char **slapi_get_changelog_suffixes();
45 void slapi_update_changelog_counters(long curNum, long numEntries);
46 char *slapi_get_cl_firstNum();
47 char *slapi_get_cl_lastNum();
48 int slapi_add_to_changelog(Slapi_Entry *ent, char *suffix, char *chNum, Operation* op); 
49 int slapi_delete_changelog(char *dn, char *suffix, char *chNum, Operation* op); 
50 int slapi_modify_changelog(char *dn,LDAPMod     *mods,char *suffix, char *chNum, Operation* op); 
51 int slapi_modifyrdn_changelog(char *olddn, char *newRdn, int delRdn, char *suffix, char *chNum, Operation* op);
52 Backend * slapi_cl_get_be(char *dn);
53
54 #endif /* _SLAPI_CL_H */
55