slapd-common.h revision 1.1.1.3 1 /* $NetBSD: slapd-common.h,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
2
3 /* OpenLDAP: pkg/ldap/tests/progs/slapd-common.h,v 1.2.2.8 2010/04/13 20:23:58 kurt Exp */
4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 *
6 * Copyright 1999-2010 The OpenLDAP Foundation.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
11 * Public License.
12 *
13 * A copy of this license is available in file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
16 */
17 /* ACKNOWLEDGEMENTS:
18 * This work was initially developed by Howard Chu for inclusion
19 * in OpenLDAP Software.
20 */
21
22 #ifndef SLAPD_COMMON_H
23 #define SLAPD_COMMON_H
24
25 typedef enum {
26 TESTER_TESTER,
27 TESTER_ADDEL,
28 TESTER_BIND,
29 TESTER_MODIFY,
30 TESTER_MODRDN,
31 TESTER_READ,
32 TESTER_SEARCH,
33 TESTER_LAST
34 } tester_t;
35
36 extern void tester_init( const char *pname, tester_t ptype );
37 extern char * tester_uri( char *uri, char *host, int port );
38 extern void tester_error( const char *msg );
39 extern void tester_perror( const char *fname, const char *msg );
40 extern void tester_ldap_error( LDAP *ld, const char *fname, const char *msg );
41 extern int tester_ignore_str2errlist( const char *err );
42 extern int tester_ignore_err( int err );
43
44 extern pid_t pid;
45
46 #endif /* SLAPD_COMMON_H */
47