]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/slapcommon.h
misc syncrpel updates
[openldap] / servers / slapd / tools / slapcommon.h
index c610539c91e76df14bb09cee508525659034f0ab..4d3b7b5694b75b0779b1571b70c924d9d4770ff7 100644 (file)
@@ -1,5 +1,6 @@
+/* $OpenLDAP$ */
 /*
- * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /* slapcommon.h - common definitions for the slap tools */
@@ -8,7 +9,6 @@
 #define SLAPCOMMON_H_ 1
 
 #define SLAPD_TOOLS 1
-#include "ldap_defaults.h"
 #include "../slap.h"
 
 enum slaptool {
@@ -18,14 +18,27 @@ enum slaptool {
        SLAPTEST        /* database testing tool */
 };
 
+#define SLAP_TOOL_CTXCSN_KEEP  0
+#define SLAP_TOOL_CTXCSN_ENTRY 1
+#define SLAP_TOOL_CTXCSN_BATCH 2
 
 extern char    *progname;
 extern char    *conffile;
 extern Backend *be;
 extern int             appendmode;
 extern int             verbose;
-extern int             noschemacheck;
+extern int             update_ctxcsn;
+extern int             retrieve_ctxcsn;
+extern int             retrieve_synccookie;
+extern int             replica_promotion;
+extern int             replica_demotion;
+extern char    *replica_id_string;
+extern char    **replica_id_strlist;
+extern int     *replica_id_list;
 extern int             continuemode;
+extern int             nosubordinates;
+extern int             dryrun;
+extern struct berval   sub_ndn;
 
 extern char    *ldiffile;
 extern FILE    *ldiffp;
@@ -35,4 +48,6 @@ void slap_tool_init LDAP_P((
        int tool,
        int argc, char **argv ));
 
+void slap_tool_destroy LDAP_P((void));
+
 #endif /* SLAPCOMMON_H_ */