]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/slapcommon.h
a5b62b42b15406d1c3757113c18fcd396dc5eb4f
[openldap] / servers / slapd / tools / slapcommon.h
1 /*
2  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5 /* slapcommon.h - common definitions for the slap tools */
6
7 #ifndef SLAPCOMMON_H_
8 #define SLAPCOMMON_H_ 1
9
10 #define SLAPD_TOOLS 1
11 #include "ldap_defaults.h"
12 #include "../slap.h"
13
14 enum slaptool {
15         SLAPCAT=1,      /* database -> LDIF tool */
16         SLAPADD,        /* LDIF -> database tool */
17         SLAPINDEX,      /* database index tool */
18         SLAPTEST        /* database testing tool */
19 };
20
21
22 extern  char    *progname;
23 extern  char    *conffile;
24 extern  Backend *be;
25 extern  int             appendmode;
26 extern  int             verbose;
27
28 extern  char    *ldiffile;
29 extern  FILE    *ldiffp;
30
31 void slap_tool_init LDAP_P((
32         const char* name,
33         int tool,
34         int argc, char **argv ));
35
36 #endif /* SLAPCOMMON_H_ */