]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/slapcommon.h
ffa400786121ea67f92698b0b93933a4309678db
[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 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_ */