]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/slapcommon.h
Fix the logic for checking if backend DB has all necessary functions.
[openldap] / servers / slapd / tools / slapcommon.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 /* slapcommon.h - common definitions for the slap tools */
7
8 #ifndef SLAPCOMMON_H_
9 #define SLAPCOMMON_H_ 1
10
11 #define SLAPD_TOOLS 1
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 extern  int             noschemacheck;
28 extern  int             continuemode;
29
30 extern  char    *ldiffile;
31 extern  FILE    *ldiffp;
32
33 void slap_tool_init LDAP_P((
34         const char* name,
35         int tool,
36         int argc, char **argv ));
37
38 void slap_tool_destroy LDAP_P((void));
39
40 #endif /* SLAPCOMMON_H_ */