]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/slapcommon.h
Implement slapcat -s <dn>: Only dump a subtree of the database.
[openldap] / servers / slapd / tools / slapcommon.h
index a5b62b42b15406d1c3757113c18fcd396dc5eb4f..3a1120ba98caac7a7a0669ab1c2e0be8770430b1 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 {
@@ -24,6 +24,10 @@ extern       char    *conffile;
 extern Backend *be;
 extern int             appendmode;
 extern int             verbose;
+extern int             continuemode;
+extern int             nosubordinates;
+extern int             dryrun;
+extern struct berval   sub_ndn;
 
 extern char    *ldiffile;
 extern FILE    *ldiffp;
@@ -33,4 +37,6 @@ void slap_tool_init LDAP_P((
        int tool,
        int argc, char **argv ));
 
+void slap_tool_destroy LDAP_P((void));
+
 #endif /* SLAPCOMMON_H_ */