3 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 /* slapcommon.h - common definitions for the slap tools */
9 #define SLAPCOMMON_H_ 1
15 SLAPCAT=1, /* database -> LDIF tool */
16 SLAPADD, /* LDIF -> database tool */
17 SLAPINDEX, /* database index tool */
18 SLAPTEST /* database testing tool */
21 #define SLAP_TOOL_CTXCSN_NONE 0
22 #define SLAP_TOOL_CTXCSN_ENTRY 1
23 #define SLAP_TOOL_CTXCSN_BATCH 2
25 extern char *progname;
26 extern char *conffile;
28 extern int appendmode;
30 extern int update_ctxcsn;
31 extern int retrieve_ctxcsn;
32 extern int retrieve_synccookie;
33 extern int continuemode;
34 extern int nosubordinates;
36 extern struct berval sub_ndn;
38 extern char *ldiffile;
41 void slap_tool_init LDAP_P((
44 int argc, char **argv ));
46 void slap_tool_destroy LDAP_P((void));
48 #endif /* SLAPCOMMON_H_ */