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_KEEP 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 replica_promotion;
34 extern int replica_demotion;
35 extern char *replica_id_string;
36 extern char **replica_id_strlist;
37 extern int *replica_id_list;
38 extern int continuemode;
39 extern int nosubordinates;
41 extern struct berval sub_ndn;
43 extern char *ldiffile;
46 void slap_tool_init LDAP_P((
49 int argc, char **argv ));
51 void slap_tool_destroy LDAP_P((void));
53 #endif /* SLAPCOMMON_H_ */