Back to index

openldap  2.4.31
slapd-common.h
Go to the documentation of this file.
00001 /* $OpenLDAP$ */
00002 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00003  *
00004  * Copyright 1999-2012 The OpenLDAP Foundation.
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted only as authorized by the OpenLDAP
00009  * Public License.
00010  *
00011  * A copy of this license is available in file LICENSE in the
00012  * top-level directory of the distribution or, alternatively, at
00013  * <http://www.OpenLDAP.org/license.html>.
00014  */
00015 /* ACKNOWLEDGEMENTS:
00016  * This work was initially developed by Howard Chu for inclusion
00017  * in OpenLDAP Software.
00018  */
00019 
00020 #ifndef SLAPD_COMMON_H
00021 #define SLAPD_COMMON_H
00022 
00023 typedef enum {
00024        TESTER_TESTER,
00025        TESTER_ADDEL,
00026        TESTER_BIND,
00027        TESTER_MODIFY,
00028        TESTER_MODRDN,
00029        TESTER_READ,
00030        TESTER_SEARCH,
00031        TESTER_LAST
00032 } tester_t;
00033 
00034 extern void tester_init( const char *pname, tester_t ptype );
00035 extern char * tester_uri( char *uri, char *host, int port );
00036 extern void tester_error( const char *msg );
00037 extern void tester_perror( const char *fname, const char *msg );
00038 extern void tester_ldap_error( LDAP *ld, const char *fname, const char *msg );
00039 extern int tester_ignore_str2errlist( const char *err );
00040 extern int tester_ignore_err( int err );
00041 
00042 extern pid_t         pid;
00043 
00044 #endif /* SLAPD_COMMON_H */