Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / dist / servers / slapd / overlays / overlays.c
blob9ef32c10e99d7ac2c79a4254fc81bce9ea9b3469
1 /* overlays.c - Static overlay framework */
2 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/overlays.c,v 1.24.2.3 2008/02/11 23:26:48 kurt Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2003-2008 The OpenLDAP Foundation.
6 * Copyright 2003 by Howard Chu.
7 * All rights reserved.
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.
13 * A copy of this license is available in the file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
17 /* ACKNOWLEDGEMENTS:
18 * This work was initially developed by Howard Chu for inclusion in
19 * OpenLDAP Software.
22 #include "portable.h"
24 #include "slap.h"
26 extern OverlayInit slap_oinfo[];
28 int
29 overlay_init(void)
31 int i, rc = 0;
33 for ( i= 0 ; slap_oinfo[i].ov_type; i++ ) {
34 rc = slap_oinfo[i].ov_init();
35 if ( rc ) {
36 Debug( LDAP_DEBUG_ANY,
37 "%s overlay setup failed, err %d\n",
38 slap_oinfo[i].ov_type, rc, 0 );
39 break;
43 return rc;